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

 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 Zz,hVW,MqV,Wa,zu,WZV,paV,qN,fd,Gua,zVN,azW,Sq,o$q,Izu,w$,B$O,COx,q4$,N$4,xNd,waZ,lzu,v$z,HdO,KZ4,MA,XaZ,Gf,Y4W,am,sWu,il,dB,kuO,yMZ,rB,mf,AMO,hHZ,EMV,KD,MFO,WfZ,nD,pMO,Gfq,zHM,YM,gMO,sD,cn$,Ilx,LfO,iJ,jmz,dAz,cc,Plu,Gp,BBd,UAz,SDZ,wMZ,DAz,CU,mAZ,rn4,vMZ,HDz,$Ad,ODO,nM4,smO,VFZ,FfW,TBO,uCZ,ZU$,Wia,MxZ,vc,pc$,iUd,KU,IRz,Liq,PJV,jGa,BIx,O0,KfV,XX,s0,VG,dZz,yG,eCq,CJM,JCz,bJ,q0u,fR$,NIx,txx,xZx,S04,wcW,DZW,lRW,AC,mZu,HUM,Kix,nU4,Mo,Y0q,kpN,pM,ACq,uXu,Vxu,QGa,ErM,grW,a04,W24,iMO,I0q,RaZ,BU$,UoN,CxV,
JL4,f0V,SGz,wi$,Do$,rL4,HMd,YG$,SL,VLV,yLz,F2a,vi,Hi,OG,yF,AL,ux,gE4,Wn4,pAd,aT$,iXZ,oEM,ir,ITd,IH,RH,PA,BA,PrM,Bxq,UcM,LnN,jHM,Cru,Jh$,eLz,qZd,NxO,dx,jK,tKV,SZ4,xcu,Dcz,wAN,lTx,rhV,mc$,xE,wx,DT,lr,mn,HX$,vA,Knd,sHz,KX,VK$,kH$,yhM,nX,Fna,Ahx,Txd,XU,QHz,VL,gp4,Zta,kE,W8$,M84,pRd,GRW,zuO,abZ,Ah,cba,itO,TH,opq,Ibd,br,ur,hb,E6,Rud,B2x,Pnz,g2,L8$,jf4,dsx,Ms,pt,GR,zR,af,cR,CnN,JbO,q6O,fb4,N2Z,t8z,S6q,xsz,wRV,Dsx,lbZ,rbN,msa,vpx,Rf,Htq,$sW,Lt,K84,Ct,Jb,OtN,Y6$,sf$,V8Z,yb4,F8q,AbZ,Qfz,hlM,EdM,gdd,Z8z,MfN,
Wxz,aJ4,ft,cAq,i8q,oda,IJq,RlM,P4V,U3d,x3u,whq,D3z,m34,vdu,m8,H8$,O8V,Yt$,sDM,VfM,k8N,yAz,Fxz,AAZ,TO4,uR$,QDZ,ndV,hou,EZx,gZ$,Zwu,MAV,WEN,pmz,G94,zoq,oZz,cV$,PX4,Ia$,RoZ,LE$,jpM,d6$,B9u,JV4,U6W,q9z,un,faM,Qw,Et,N9W,S9u,x64,laZ,Y9Z,m64,rV4,Hwu,KEz,vZV,AVu,k9M,T94,bwW,uhz,Qpq,hJd,g3q,E3d,ZFd,MXZ,W1M,pJu,zJu,cxV,iFq,o3u,RJW,IG4,NXz,Wh,tXq,xaM,wJO,Da$,lG4,rx$,v3M,HFa,$a$,oD,ID,K1q,VX$,Bh,Ut,Axq,bFx,GFW,JA,clx,ilM,PNq,IV4,RwN,tA,Bf$,UdW,jCz,ddZ,CNO,JlW,ewd,qqa,fVV,ty$,SqV,wxa,xdz,rl$,Hh,Ot,vXx,HlW,$d$,
KXa,OlV,nXW,Yqx,Vyq,sCz,hV,g9,Lg4,pw,qYZ,fpM,G9,tsV,Ne$,HPu,$2M,KgO,nLM,VsW,ytz,Fgu,AtV,Teu,uL$,h8V,EWa,iX,ZIa,pTz,GqV,z8$,aPM,iId,WJZ,gWd,c1W,Ip,R8W,LJV,BQ4,Pm,dKu,J1a,e84,q$$,fPV,jA,NQM,S$z,tMz,xKz,DKx,JV,$K$,s8$,y1z,kqV,TQV,N6,Q8O,xZ,Da,w9,ZgV,uix,MYV,mE,zIN,Kw,O9,igd,RIV,BaN,UCd,LOq,nw,jTZ,Xh,dCW,Jfu,eId,qvW,f_O,tYM,V6,Sva,xCO,AV,uX,l_a,rfO,mCN,vwV,KOa,Og$,X6V,Yvd,TaO,bgN,yfd,QTz,hk$,ENO,ao,iI,oo,Wrz,plN,PJ,Ge$,zkq,aNa,cQz,oNN,INZ,Rka,PC$,iQ$,BAq,LF,Lrz,ekd,dX,JQz,qHz,U_O,fN$,Jx,tNx,SHN,x_W,wlV,
lNO,D_4,rQq,HQ4,m_M,Kru,VNa,yQz,AQM,uaq,bQN,TAz,Q5$,EeM,ZZ$,gez,Wc$,lI,GGO,zhM,aA4,cT$,IAz,PwO,RhV,BCz,UHV,HJ,Lcd,jaz,Cwq,ehN,NCd,S7x,tjq,Md,xHV,JTO,HZz,Kcz,OZx,neZ,aC,XXz,saM,yT$,TC$,ATa,hOd,E8u,g8q,Ze4,WMa,cjO,pnO,zO4,a$N,ieN,o8O,ROz,I$4,BZz,PV4,ey,Uwu,jYz,dwd,qo$,DV,lN,f$$,NZM,rf,wn$,$X,Kl,nl,mw$,Xy,$wx,Vn,KM4,OeN,n8$,XnW,Fy,YoW,sYq,VDV,yjx,AjV,uMa,h9$,M2,EYz,gYa,Zmz,Mlz,WbV,ppZ,Gvq,z9z,Gn,im$,oYV,I9$,R9d,PUM,BNu,URa,Lb4,jtN,dRx,CU$,JkW,e9d,Pu,vYx,HmZ,Bu,UY,LP,$RM,Kb4,Om$,nYW,Xpz,Y8$,stO,AkV,TNW,
bmz,ut$,Qtu,Jt,q2,fP,N2,we,Dp,lK,EAW,mg,Z3M,vu,MgV,Wha,Hu,pbV,Gwq,zb$,UmO,jNx,qBM,SB$,tgz,Lhd,xm$,lMq,yax,Kh$,uTM,nAO,b3V,QNW,YL,EBW,Va,ZL$,MQ4,pK$,Gld,zq4,cWx,FL,oB$,I6a,Rq$,PsV,Bpd,UBu,LTu,iLO,CsW,JWN,eqz,Tn,xBz,wKx,SQV,l6W,rWZ,vB$,HL4,mBu,suW,klu,FTd,Tpu,pI,gPO,EPW,GTZ,aCx,c7$,iOz,oPx,ICz,Rz4,BT,ez4,fC4,CFa,diq,qL4,Bux,tdx,Kmz,w$u,DiO,lCq,A7O,bOW,FmZ,Z4O,y7M,PFz,gxd,xiV,$iO,Tuz,NuW,LmV,Ui4,j9W,J7N,kTu,rQ,UIa,jJa,dIO,CvO,JUV,DIz,$IV,KzW,s$,nxN,sJz,Fz$,yUu,T5x,b4d,QJ4,E7W,hAN,g7O,W6,Zud,MpW,pgW,
WqO,pg,o7z,iuu,ceu,BHz,Iqx,UT4,P1O,LqW,jdO,eAa,C1a,Jez,fq4,SaV,xT$,lqd,reZ,mTW,Huu,oT,Kq$,Xgz,Ou$,Yaq,yeM,FqV,bux,QdZ,Uv,Lg,Z$M,M6q,jY,da,Wyx,Cg,Jf,pwW,eY,G5z,qC,z1d,atd,NC,cNu,i$Z,ou$,ItN,R1a,BEu,PzZ,LyM,Cza,dha,JNO,e1W,Uhx,qcq,t6W,NE$,jeO,Scd,xhu,D_,wwZ,ltu,DhO,rNO,mh4,H$z,vuV,$hz,ra,O$N,nuz,Ky$,Ycz,sez,V6$,ANW,umd,ZWZ,GZO,v6,cs$,iWZ,H6,og$,ng,X9,Ljq,Kg,yu,jVz,dvN,Jsx,e3$,fWV,tPq,SKW,xvq,wWx,rs4,KjN,HWd,lWd,OWd,ngz,bf,$vz,XWx,hQ,YKx,sVa,VPq,kZx,Tr4,ysO,Asq,h7$,ESx,pFM,WIV,aE4,PYq,Bk4,LIW,dGd,CYM,
e7u,qpW,fEZ,tId,Spx,xGx,lEu,HzM,$Gz,ro$,OzM,XFd,nS$,KIz,Yp4,VIx,kbd,yod,FIz,Aod,o5,I5,Bl,LQ,uV$,QOO,EDx,MJN,jN,dA,WsZ,CQ,zPq,cO4,iA4,eN,B6z,dg4,JO4,ePN,qjz,fD4,N64,xga,fQ,wQ$,rOz,N_,mgz,$gW,Ksu,OAx,HAd,kcz,AOV,yOa,T6z,Qja,Esa,ZrZ,G7q,p54,irq,DN,osM,IYM,lC,Rpq,rA,PGO,BGV,U$q,jb$,L9O,d$Z,CGu,J24,epa,w5Z,lYz,m$Z,r2O,t_z,fYz,Hrx,K9$,sb$,V_$,F9q,heW,gFz,$N,Zbz,Woz,ps$,zeO,oFa,PQ$,LoZ,j2a,dla,CQW,Nhz,JBd,wsM,Dlq,l4x,mlN,nQ,vFV,$lx,Koq,Obz,nFZ,XsN,YR4,s24,k1M,yBx,VE,FoO,ABu,bba,yE,ThM,Q2M,Z24,Te,MuW,WCz,
pCu,ava,c9V,GC$,oiO,Bg$,Uuz,LC4,gC,j1M,e$O,q1q,pZ,tuz,fvM,Ng4,wCM,Duz,lv4,H2$,O2d,KCz,$uz,nid,Y1q,s1$,A9Z,Vuu,TgM,ufV,b2M,MzM,Gda,aUV,ifW,PPz,JXZ,XF,qJ$,SJa,wUV,O7,TG,HfO,nJM,Ofd,YJu,sM$,kdq,VzZ,yXV,Fda,bw,fMz,$Oa,XUZ,Kd$,FF,bfO,u3O,QMq,hRx,EcV,gcd,Z1x,McW,zy,WHZ,pkz,GgV,zR$,aLZ,oY,c0u,ILN,PMx,ByM,eRa,fLV,Nyz,tcM,xMq,wkd,eD,lLz,r0$,mMM,vcZ,H1W,$Mu,O1M,Xku,sRq,Vcz,b1u,A0x,uAd,ETx,gTW,wZ,ZC4,MiN,Wwz,ztO,cmu,asa,oTx,Rtz,mM,Bcz,U8a,P_M,Lwa,jxZ,C_z,et$,JmO,qUO,d8M,fs4,NcV,tiZ,SUW,x8x,wtu,D8$,lsd,rmV,HC$,
vTa,$8O,OCV,Kw4,vn,nT4,sx$,Fwq,Xtq,bCN,u2a,QxV,hFx,ZSu,cca,iSM,IIu,RFV,Aj,Luz,Jcu,fId,Ty,xP$,NWz,tn$,Skd,wZW,vmM,hk,HSW,$P$,Kux,nmz,XZO,YkZ,sS4,kVz,yc$,glz,up$,hgZ,M1u,Z6x,Wa4,p4M,zg$,c6a,ol4,Rgq,PkW,UJN,MRd,GAZ,a7d,cgz,iJW,oKN,I7$,PeV,BPZ,jqa,dyN,Ceq,Jg4,e_4,qEO,f7O,NP$,xyW,rgq,ot,It,Rt,myV,vKu,U8,$yZ,yg4,QqV,bJx,PL$,BMa,U9Z,OJ$,kA$,YEx,jFV,d9d,CLN,JS$,AgW,esx,fwx,t3W,w_V,D94,xY,lU,rN,OVO,KP4,sFV,V3x,hYa,g9M,ME4,WDW,zYM,czO,aiV,Iiu,Pmq,JzW,dbZ,UbZ,CmN,LDa,eYN,tEO,QV,HHu,rz4,KDz,OH4,XPM,Yuz,EB,snW,
yzu,FDu,AzZ,bHM,T_W,Mm,Z04,cb,Wt$,p0u,oN,GiV,zjz,afd,cYN,i0u,ozV,Ifq,Rjq,PBZ,BSz,UqM,Lt4,j_q,dqd,CBZ,IN,JYu,ej4,qVa,ffq,NSV,tVV,SVz,xqM,w0u,DqW,lf$,rY$,Pb,vzO,$qq,O0M,YVZ,ki4,yYz,Ftz,TS4,u_d,Q_z,hWu,eg,WRO,Z7q,pvN,GUz,zWz,i7W,o_z,Ik$,P5O,vb,Uxx,rD,j0O,dxN,Hb,C5$,J$q,eW4,qbW,K3,Sbz,wvz,v_z,mxx,$xz,KRW,FT,O7z,n_x,Yb$,VBx,kUM,FRN,A$N,s0$,Tsd,En$,WSW,peq,Aa,Gxd,zEu,IF4,aFu,in4,on$,jyu,P74,d1$,JuO,qyx,fFN,Nwx,tGd,Sy$,x1q,D1d,lFx,ruN,m1q,vnV,$1W,Ond,YyN,yuM,TwN,ulW,E6M,gp,g6q,Zjz,M4Z,WW$,pGz,zcV,a5$,cZZ,
ijW,o64,I5$,RcM,P6Z,B8N,UzO,LW$,dzM,j4a,ecx,f5O,WK,N8a,xz$,SX4,l5q,rZz,mzu,HjM,OjM,YXV,XGq,KWq,kSx,V4N,bj$,yZz,cK,AZa,MmW,hNd,ECO,gCM,ZYW,W0z,GOu,p1N,is,ou,RNu,aSV,IS$,oC$,c3z,iYa,USz,jwx,CHz,dSd,fSz,qiO,tmV,xSq,w1Z,Siz,DSN,r3a,lSM,vCZ,K0$,LL,OYx,nC4,swN,A3x,Eja,dp,ZNq,GoV,iNO,cPu,zZx,aOz,fL,PyW,oj4,IO4,Bod,LFN,UtV,Cya,JPV,q5z,fO$,NoW,thV,S5$,wEV,DtW,KL,rPz,mtO,KF$,ONq,sQ,njz,Y5a,uvV,AW,yPx,bNq,FFN,AP$,gyz,Ey$,pja,Zvz,GBu,z2V,us,cvz,ivz,oyz,a8$,EL,I8x,Q1,UYz,qAd,f8W,NY$,tT4,SAz,xYu,rvz,DY$,l8d,wjV,
vyV,KpM,XjO,YAz,VTW,Fpz,kBz,yvZ,Avx,bvx,uP$,Qku,hfW,Eqz,gqa,M9u,a9,pqd,aya,zfM,i5z,cIx,oqz,Iy4,PEd,Bq$,NqW,qsq,xjx,wqO,H5O,$ja,KAN,O5d,nqV,Xq$,V9M,kQ4,yI$,AIV,Tqa,b5d,ed,Ef4,hDz,QZz,u0d,ZGa,pfW,MCu,zDa,aKq,c_a,iGx,ofZ,IK$,RDx,PuW,d4z,BVq,U4O,L_N,Cu4,J_$,eDu,jAZ,t7,NVz,Sg$,tCz,xP,wf$,D4M,lK$,x4x,r_x,m4a,vfd,HGd,$4N,OGO,nfO,XfZ,Ygx,kLW,VC$,bGW,sAz,wu,usZ,y_$,TVz,EI4,gI$,Z_W,MW4,WYz,pVV,G_$,zGa,a34,cD4,i_u,oIO,RGq,Phx,Bbz,LY$,dpx,JDq,qFN,xp4,tW4,SFz,Nbu,f34,wVa,Dpu,kP,mpx,H_q,$pO,KYO,O_$,nIq,XVz,yDd,
s$$,YFq,VWO,MkV,gOW,k_M,EOz,iTO,oOO,Ie4,R6O,P84,LNW,df$,JRz,qxz,feu,NnM,w9x,xfZ,DfZ,rRM,oJ,HTa,$fM,KNd,OTu,RJ,P3,Yx$,sEa,k24,ARV,E0z,W7q,pDx,GIW,zdq,am$,ciq,o0M,Rdu,ImN,Piz,UD$,L7M,jld,dDu,Ciu,Jia,C4,edZ,wDN,DDa,t0Z,Nmd,xDa,SIa,Hsz,$Dz,K7N,OsM,n0O,XDN,V0q,sl$,YIz,Ql4,hBZ,Etx,MSV,W5z,gtx,Zku,I1M,PAV,UVW,jPW,CAu,eBd,tS$,Sd$,xVM,l1$,DVN,wLq,rpd,mVZ,HkW,$VV,K5q,Okq,nt$,XLZ,sP$,VSz,kaM,ypu,F5M,Apx,uQz,QPZ,E2q,ZqZ,g2x,Meq,mz,WQz,pSZ,Gmx,zQZ,o2x,iqd,IcM,RQq,Pda,Blz,jgz,Cdx,JGO,eQx,q_$,fcd,Nlz,tea,S_a,xnx,
wSq,lc$,DnV,rG$,mnz,v2W,Hqz,$nu,KQ$,OqO,n24,Yx,Y_$,sg4,kmx,yGW,FQu,AGz,TlM,bqq,QgN,hyM,gkV,Ma4,poN,cE$,zyz,GE$,a2$,ia$,ok$,I2a,Bdd,U0a,LKq,jBM,C9O,JEu,eyx,f2x,qlz,NdZ,taW,SlV,D0$,l2x,rEZ,m0V,vk4,HaO,Oad,nk$,gH,yE$,FKW,Tdx,QB$,ukz,hi$,EoN,Zq,Wg,ZEz,MON,zK,ad,ziW,WUa,p84,iEW,ooO,IuW,Riq,LU$,dE$,C2z,Jdu,eid,qwd,NTd,tOa,Swz,xE4,w8W,DEO,luz,od,rd$,mE4,Rd,vox,HEx,$Ed,KUW,OE$,no$,Ua,Lu,X8$,YwN,jp,sQV,VO$,kMV,ydu,Adq,TT$,ueW,Zpd,g5z,E5q,M$a,Wv$,ip$,z44,axx,Gsq,cKV,Cu,R4N,PgO,Bvd,UL$,LvV,dLM,JKx,fxz,xLd,t$u,
Je,Nvz,mL$,HpM,ep,$LW,KvO,OpN,Xzz,YOO,si$,V$x,yKW,FvO,AK$,bpV,uHV,hX4,EHz,pON,W$x,zXz,ah$,c4q,iRa,BzM,Uex,L$$,j3$,J4$,fha,wH,Dq,Nz$,twV,S2u,xe$,wOa,lh$,r4$,meq,vHu,$eq,K$x,ORq,l1,nHO,XOu,VwV,k4$,rH,mq,A4O,y4$,Tz$,Q3z,bR4,hUN,gha,Ku,ZyZ,MZz,Gzz,aQZ,Oa,iyN,ohu,IQz,RUM,PWz,BFd,UUu,LGz,JH$,eUq,NFq,qTZ,fQz,tZV,DUM,ST$,wdz,lQz,rHM,mU4,$UV,KGd,Oya,Xd$,YTq,AHZ,FGO,EvW,MHa,Ae,W3a,SWz,pH$,G0x,ag$,ovd,Igz,d7O,CD$,Jqa,e0W,qS4,fga,tHz,SSz,wHW,lgu,x7d,D7N,m7W,rqa,HB4,OBV,$7N,nv$,XH4,YSu,ssW,VHO,k0x,F3u,yqz,u7d,
EQV,QsZ,gQ4,Zhd,M2Z,Mh,W6d,p7$,p$,zxZ,GXq,anN,cFa,oQ$,InW,PRu,B7u,Uk$,L6V,CRM,exO,N7Z,fnx,t2z,Snx,Dka,X7Z,vQW,s7$,V2O,yFa,F6z,uxW,Q7$,hK$,EVu,gVz,ZiO,WL$,p2x,GYz,arO,zKu,oV$,Iru,RK4,PZz,Bi$,UWz,LL$,dWV,eKV,qC$,frW,NiZ,t7Z,SCq,DWu,w2$,vV$,Hi4,$Wz,KLa,OiO,X2$,nV$,sr$,A5O,Qrz,u$$,hSz,E1x,g1z,Mtz,tN,prq,Dt,zS$,c8Z,ix$,B4q,LVz,C$4,eSx,qmx,N4z,tt4,SmV,wrZ,lZM,r8d,v1Z,KVx,$Xz,Hx$,n$,n1a,Oxu,XrW,YmW,sX4,VtN,kk4,y84,FVq,T4$,bxZ,ubM,QXZ,hMN,EGW,gG$,Zc$,MoV,pyd,GPV,Pbq,B1$,U5a,j6O,d54,Cbd,qPN,Fm,wyz,D5q,lB$,
rJu,m5x,AN,T5,E9,bz,Q8,YPV,s6$,yJZ,AJM,FeO,EK,T1a,bcZ,uO$;_.g$=function(h,E){if(Error.captureStackTrace)Error.captureStackTrace(this,_.g$);else{var g=Error().stack;g&&(this.stack=g)}h&&(this.message=String(h));E!==void 0&&(this.cause=E)};
Zz=function(){throw Error("E");};
hVW=function(h,E){E=String.fromCharCode.apply(null,E);return h==null?E:h+E};
MqV=function(h){var E=!1;E=E===void 0?!1:E;if(E$V){if(E&&(g$Z?!h.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(h)))throw Error("F");h=(Zd$||(Zd$=new TextEncoder)).encode(h)}else{for(var g=0,Z=new Uint8Array(3*h.length),M=0;M<h.length;M++){var W=h.charCodeAt(M);if(W<128)Z[g++]=W;else{if(W<2048)Z[g++]=W>>6|192;else{if(W>=55296&&W<=57343){if(W<=56319&&M<h.length){var z=h.charCodeAt(++M);if(z>=56320&&z<=57343){W=(W-55296)*1024+z-56320+65536;Z[g++]=W>>18|
240;Z[g++]=W>>12&63|128;Z[g++]=W>>6&63|128;Z[g++]=W&63|128;continue}else M--}if(E)throw Error("F");W=65533}Z[g++]=W>>12|224;Z[g++]=W>>6&63|128}Z[g++]=W&63|128}}h=g===Z.length?Z:Z.subarray(0,g)}return h};
Wa=function(h){_.MN.setTimeout(function(){throw h;},0)};
_.Gu=function(h,E){return h.lastIndexOf(E,0)==0};
zu=function(h,E){var g=h.length-E.length;return g>=0&&h.indexOf(E,g)==g};
_.ca=function(h){return/^[\s\xa0]*$/.test(h)};
_.oW=function(h,E){return h.indexOf(E)!=-1};
_.IW=function(h,E){return _.oW(h.toLowerCase(),E.toLowerCase())};
_.U4=function(h,E){var g=0;h=Pa(String(h)).split(".");E=Pa(String(E)).split(".");for(var Z=Math.max(h.length,E.length),M=0;g==0&&M<Z;M++){var W=h[M]||"",z=E[M]||"";do{W=/(\d*)(\D*)(.*)/.exec(W)||["","","",""];z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];if(W[0].length==0&&z[0].length==0)break;g=WZV(W[1].length==0?0:parseInt(W[1],10),z[1].length==0?0:parseInt(z[1],10))||WZV(W[2].length==0,z[2].length==0)||WZV(W[2],z[2]);W=W[3];z=z[3]}while(g==0)}return g};
WZV=function(h,E){return h<E?-1:h>E?1:0};
_.jq=function(){var h=_.MN.navigator;return h&&(h=h.userAgent)?h:""};
paV=function(h){if(!d$||!JM)return!1;for(var E=0;E<JM.brands.length;E++){var g=JM.brands[E].brand;if(g&&_.oW(g,h))return!0}return!1};
qN=function(h){return _.oW(_.jq(),h)};
fd=function(){return d$?!!JM&&JM.brands.length>0:!1};
Gua=function(){return fd()?!1:qN("Opera")};
zVN=function(){return fd()?!1:qN("Trident")||qN("MSIE")};
azW=function(){return fd()?paV("Microsoft Edge"):qN("Edg/")};
Sq=function(){return qN("Firefox")||qN("FxiOS")};
_.cMz=function(){return qN("Safari")&&!(_.x$()||(fd()?0:qN("Coast"))||Gua()||(fd()?0:qN("Edge"))||azW()||(fd()?paV("Opera"):qN("OPR"))||Sq()||qN("Silk")||qN("Android"))};
_.x$=function(){return fd()?paV("Chromium"):(qN("Chrome")||qN("CriOS"))&&!(fd()?0:qN("Edge"))||qN("Silk")};
_.idd=function(){return qN("Android")&&!(_.x$()||Sq()||Gua()||qN("Silk"))};
o$q=function(h){var E={};h.forEach(function(g){E[g[0]]=g[1]});
return function(g){return E[g.find(function(Z){return Z in E})]||""}};
Izu=function(h){var E=_.jq();if(h==="Internet Explorer"){if(zVN())if((h=/rv: *([\d\.]*)/.exec(E))&&h[1])E=h[1];else{h="";var g=/MSIE +([\d\.]+)/.exec(E);if(g&&g[1])if(E=/Trident\/(\d.\d)/.exec(E),g[1]=="7.0")if(E&&E[1])switch(E[1]){case "4.0":h="8.0";break;case "5.0":h="9.0";break;case "6.0":h="10.0";break;case "7.0":h="11.0"}else h="7.0";else h=g[1];E=h}else E="";return E}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");g=[];for(var M;M=Z.exec(E);)g.push([M[1],M[2],M[3]||void 0]);
E=o$q(g);switch(h){case "Opera":if(Gua())return E(["Version","Opera"]);if(fd()?paV("Opera"):qN("OPR"))return E(["OPR"]);break;case "Microsoft Edge":if(fd()?0:qN("Edge"))return E(["Edge"]);if(azW())return E(["Edg"]);break;case "Chromium":if(_.x$())return E(["Chrome","CriOS","HeadlessChrome"])}return h==="Firefox"&&Sq()||h==="Safari"&&_.cMz()||h==="Android Browser"&&_.idd()||h==="Silk"&&qN("Silk")?(E=g[2])&&E[1]||"":""};
_.RVZ=function(h){if(fd()&&h!=="Silk"){var E=JM.brands.find(function(g){return g.brand===h});
if(!E||!E.version)return NaN;E=E.version.split(".")}else{E=Izu(h);if(E==="")return NaN;E=E.split(".")}return E.length===0?NaN:Number(E[0])};
w$=function(){return d$?!!JM&&!!JM.platform:!1};
_.POd=function(){return w$()?JM.platform==="Android":qN("Android")};
B$O=function(){return qN("iPhone")&&!qN("iPod")&&!qN("iPad")};
_.Dz=function(){return B$O()||qN("iPad")||qN("iPod")};
_.UNz=function(){return w$()?JM.platform==="macOS":qN("Macintosh")};
_.LZu=function(){return w$()?JM.platform==="Windows":qN("Windows")};
_.jWZ=function(){return w$()?JM.platform==="Chrome OS":qN("CrOS")};
_.r$=function(h){return h[h.length-1]};
_.mZ=function(h,E,g){E=_.dNz(h,E,g);return E<0?null:typeof h==="string"?h.charAt(E):h[E]};
_.dNz=function(h,E,g){for(var Z=h.length,M=typeof h==="string"?h.split(""):h,W=0;W<Z;W++)if(W in M&&E.call(g,M[W],W,h))return W;return-1};
COx=function(h){for(var E=_.va,g=typeof h==="string"?h.split(""):h,Z=h.length-1;Z>=0;Z--)if(Z in g&&E.call(void 0,g[Z],Z,h))return Z;return-1};
_.nd=function(h,E){return _.O4(h,E)>=0};
_.JM$=function(h,E){_.nd(h,E)||h.push(E)};
_.Xz=function(h,E){E=_.O4(h,E);var g;(g=E>=0)&&_.eVq(h,E);return g};
_.eVq=function(h,E){Array.prototype.splice.call(h,E,1)};
_.Y$=function(h){var E=h.length;if(E>0){for(var g=Array(E),Z=0;Z<E;Z++)g[Z]=h[Z];return g}return[]};
_.Vx=function(h,E){for(var g=1;g<arguments.length;g++){var Z=arguments[g];if(_.s4(Z)){var M=h.length||0,W=Z.length||0;h.length=M+W;for(var z=0;z<W;z++)h[M+z]=Z[z]}else h.push(Z)}};
_.fzW=function(h,E,g,Z){Array.prototype.splice.apply(h,q4$(arguments,1))};
q4$=function(h,E,g){return arguments.length<=2?Array.prototype.slice.call(h,E):Array.prototype.slice.call(h,E,g)};
N$4=function(h,E){E=E||h;for(var g=0,Z=0,M={};Z<h.length;){var W=h[Z++],z=_.yx(W)?"o"+_.AM(W):(typeof W).charAt(0)+W;Object.prototype.hasOwnProperty.call(M,z)||(M[z]=!0,E[g++]=W)}E.length=g};
_.S4W=function(h,E,g){g=g||_.tqd;for(var Z=0,M=h.length,W;Z<M;){var z=Z+(M-Z>>>1);var c=g(E,h[z]);c>0?Z=z+1:(M=z,W=!c)}return W?Z:-Z-1};
_.Tu=function(h,E,g){if(!_.s4(h)||!_.s4(E)||h.length!=E.length)return!1;var Z=h.length;g=g||xNd;for(var M=0;M<Z;M++)if(!g(h[M],E[M]))return!1;return!0};
_.tqd=function(h,E){return h>E?1:h<E?-1:0};
xNd=function(h,E){return h===E};
waZ=function(h,E,g){E=Array.prototype.splice.call(h,E,1);Array.prototype.splice.call(h,g,0,E[0])};
lzu=function(h){return DNz[h]||""};
v$z=function(h){if(!rMz)return _.Qx(h);h=mN$.test(h)?h.replace(mN$,lzu):h;h=atob(h);for(var E=new Uint8Array(h.length),g=0;g<h.length;g++)E[g]=h.charCodeAt(g);return E};
HdO=function(h,E){h.__closure__error__context__984382||(h.__closure__error__context__984382={});h.__closure__error__context__984382.severity=E};
_.hn=function(h){h=Error(h);HdO(h,"warning");return h};
KZ4=function(h,E){if(h!=null){var g;var Z=(g=$Nx)!=null?g:$Nx={};g=Z[h]||0;g>=E||(Z[h]=g+1,h=Error(),HdO(h,"incident"),Wa(h))}};
MA=function(h,E,g){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(g===void 0?0:g)&&Symbol.for&&h?Symbol.for(h):h!=null?Symbol(h):Symbol():E};
XaZ=function(h,E){WM||_.pD in h||Odz(h,n$V);h[_.pD]|=E};
Gf=function(h,E){WM||_.pD in h||Odz(h,n$V);h[_.pD]=E};
Y4W=function(h){if(4&h)return 512&h?512:1024&h?1024:0};
am=function(h){XaZ(h,34);return h};
sWu=function(h){XaZ(h,32);return h};
il=function(){return typeof BigInt==="function"};
dB=function(h,E){return E===void 0?h.copyOnWrite!==om&&!!(2&(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pD]|0)):!!(2&E)&&h.copyOnWrite!==om};
_.xM=function(h,E){if(h!=null)if(typeof h==="string")h=h?new NA(h,tn):_.SF();else if(h.constructor!==NA)if(VqV&&h!=null&&h instanceof Uint8Array)h=h.length?new NA(new Uint8Array(h),tn):_.SF();else{if(!E)throw Error();h=void 0}return h};
kuO=function(h,E){if(typeof E!=="number"||E<0||E>=h.length)throw Error();};
yMZ=function(h,E,g){var Z=E&128?0:-1,M=h.length,W;if(W=!!M)W=h[M-1],W=W!=null&&typeof W==="object"&&W.constructor===Object;var z=M+(W?-1:0);for(E=E&128?1:0;E<z;E++)g(E-Z,h[E]);if(W){h=h[M-1];for(var c in h)!isNaN(c)&&g(+c,h[c])}};
rB=function(h){return h&128?Dl:void 0};
mf=function(h){h.isGuard_doNotManuallySetPrettyPlease=!0;return h};
AMO=function(){var h=FZz;return mf(function(E){for(var g in h)if(E===h[g]&&!/^[0-9]+$/.test(g))return!0;return!1})};
_.vM=function(h){var E=h;if(T$u(E)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(E))throw Error(String(E));}else if(bdx(E)&&!Number.isSafeInteger(E))throw Error(String(E));return uzO?BigInt(h):h=QWV(h)?h?"1":"0":T$u(h)?h.trim()||"0":String(h)};
hHZ=function(h,E){if(h.length>E.length)return!1;if(h.length<E.length||h===E)return!0;for(var g=0;g<h.length;g++){var Z=h[g],M=E[g];if(Z>M)return!1;if(Z<M)return!0}};
EMV=function(h){var E=h>>>0;HM=E;$M=(h-E)/4294967296>>>0};
KD=function(h){if(h<0){EMV(-h);var E=_.G(gMO(HM,$M));h=E.next().value;E=E.next().value;HM=h>>>0;$M=E>>>0}else EMV(h)};
MFO=function(h){var E=ZDV||(ZDV=new DataView(new ArrayBuffer(8)));E.setFloat32(0,+h,!0);$M=0;HM=E.getUint32(0,!0)};
WfZ=function(h,E){var g=E*4294967296+(h>>>0);return Number.isSafeInteger(g)?g:_.OD(h,E)};
nD=function(h,E){var g=E&2147483648;g&&(h=~h+1>>>0,E=~E>>>0,h==0&&(E=E+1>>>0));h=WfZ(h,E);return typeof h==="number"?g?-h:h:g?"-"+h:h};
pMO=function(h){var E=HM,g=$M,Z=g>>31;g=(g<<1|E>>>31)^Z;h(E<<1^Z,g)};
Gfq=function(h,E){var g=-(h&1);h=(h>>>1|E<<31)^g;return nD(h,E>>>1^g)};
_.OD=function(h,E){E>>>=0;h>>>=0;if(E<=2097151)var g=""+(4294967296*E+h);else il()?g=""+(BigInt(E)<<BigInt(32)|BigInt(h)):(g=(h>>>24|E<<8)&16777215,E=E>>16&65535,h=(h&16777215)+g*6777216+E*6710656,g+=E*8147497,E*=2,h>=1E7&&(g+=h/1E7>>>0,h%=1E7),g>=1E7&&(E+=g/1E7>>>0,g%=1E7),g=E+zHM(g)+zHM(h));return g};
zHM=function(h){h=String(h);return"0000000".slice(h.length)+h};
_.alO=function(h,E){E&2147483648?il()?h=""+(BigInt(E|0)<<BigInt(32)|BigInt(h>>>0)):(E=_.G(gMO(h,E)),h=E.next().value,E=E.next().value,h="-"+_.OD(h,E)):h=_.OD(h,E);return h};
YM=function(h){if(h.length<16)KD(Number(h));else if(il())h=BigInt(h),HM=Number(h&BigInt(4294967295))>>>0,$M=Number(h>>BigInt(32)&BigInt(4294967295));else{var E=+(h[0]==="-");$M=HM=0;for(var g=h.length,Z=E,M=(g-E)%6+E;M<=g;Z=M,M+=6)Z=Number(h.slice(Z,M)),$M*=1E6,HM=HM*1E6+Z,HM>=4294967296&&($M+=Math.trunc(HM/4294967296),$M>>>=0,HM>>>=0);E&&(E=_.G(gMO(HM,$M)),h=E.next().value,E=E.next().value,HM=h,$M=E)}};
gMO=function(h,E){E=~E;h?h=~h+1:E+=1;return[h,E]};
sD=function(h){return Array.prototype.slice.call(h)};
_.Vk=function(h,E){throw Error(E===void 0?"unexpected value "+h+"!":E);};
_.kM=function(h){if(h!=null&&typeof h!=="number")throw Error("L`"+typeof h+"`"+h);return h};
_.yk=function(h){if(h==null||typeof h==="number")return h;if(h==="NaN"||h==="Infinity"||h==="-Infinity")return Number(h)};
cn$=function(h){if(h!=null&&typeof h!=="boolean")throw Error("M`"+_.Tf(h)+"`"+h);return h};
_.iDZ=function(h){if(h==null||typeof h==="boolean")return h;if(typeof h==="number")return!!h};
_.ul=function(h){switch(typeof h){case "bigint":return!0;case "number":return bl(h);case "string":return oMz.test(h);default:return!1}};
_.gI=function(h){if(!bl(h))throw _.hn("enum");return h|0};
_.ZR=function(h){return h==null?h:bl(h)?h|0:void 0};
Ilx=function(h){if(typeof h!=="number")throw _.hn("int32");if(!bl(h))throw _.hn("int32");return h|0};
_.MZ=function(h){return h==null?h:Ilx(h)};
_.Wc=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return bl(h)?h|0:void 0};
_.RHM=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return bl(h)?h>>>0:void 0};
LfO=function(h){var E=0;E=E===void 0?0:E;if(!_.ul(h))throw _.hn("int64");var g=typeof h;switch(E){case 512:switch(g){case "string":return Gp(h);case "bigint":return String(aG(64,h));default:return Plu(h)}case 1024:switch(g){case "string":return BBd(h);case "bigint":return _.vM(aG(64,h));default:return UAz(h)}case 0:switch(g){case "string":return Gp(h);case "bigint":return _.vM(aG(64,h));default:return cc(h)}default:return _.Vk(E,"Unknown format requested type for int64")}};
iJ=function(h){return h==null?h:LfO(h)};
jmz=function(h){var E=h.length;if(h[0]==="-"?E<20||E===20&&h<="-9223372036854775808":E<19||E===19&&h<="9223372036854775807")return h;YM(h);return _.alO(HM,$M)};
dAz=function(h){if(h[0]==="-")var E=!1;else E=h.length,E=E<20?!0:E===20&&h<="18446744073709551615";if(E)return h;YM(h);return _.OD(HM,$M)};
cc=function(h){h=oG(h);IG(h)||(KD(h),h=nD(HM,$M));return h};
_.Clz=function(h){h=oG(h);h>=0&&IG(h)||(KD(h),h=WfZ(HM,$M));return h};
Plu=function(h){h=oG(h);IG(h)?h=String(h):(KD(h),h=_.alO(HM,$M));return h};
_.JnZ=function(h){h=oG(h);h>=0&&IG(h)?h=String(h):(KD(h),h=_.OD(HM,$M));return h};
Gp=function(h){var E=oG(Number(h));if(IG(E))return String(E);E=h.indexOf(".");E!==-1&&(h=h.substring(0,E));return jmz(h)};
BBd=function(h){var E=oG(Number(h));if(IG(E))return _.vM(E);E=h.indexOf(".");E!==-1&&(h=h.substring(0,E));return il()?_.vM(aG(64,BigInt(h))):_.vM(jmz(h))};
UAz=function(h){return IG(h)?_.vM(cc(h)):_.vM(Plu(h))};
_.eHz=function(h){return IG(h)?_.vM(_.Clz(h)):_.vM(_.JnZ(h))};
_.qDZ=function(h){var E=oG(Number(h));if(IG(E)&&E>=0)return String(E);E=h.indexOf(".");E!==-1&&(h=h.substring(0,E));return dAz(h)};
_.flx=function(h){var E=oG(Number(h));if(IG(E)&&E>=0)return _.vM(E);E=h.indexOf(".");E!==-1&&(h=h.substring(0,E));return il()?_.vM((0,_.Bc)(64,BigInt(h))):_.vM(dAz(h))};
_.tFO=function(h){if(h==null)return h;if(typeof h==="bigint")return NBz(h)?h=Number(h):(h=aG(64,h),h=NBz(h)?Number(h):String(h)),h;if(_.ul(h))return typeof h==="number"?cc(h):Gp(h)};
SDZ=function(h,E){E=E===void 0?!1:E;var g=typeof h;if(h==null)return h;if(g==="bigint")return String(aG(64,h));if(_.ul(h))return g==="string"?Gp(h):E?Plu(h):cc(h)};
_.xAM=function(h){var E=typeof h;if(h==null)return h;if(E==="bigint")return _.vM(aG(64,h));if(_.ul(h))return E==="string"?BBd(h):UAz(h)};
wMZ=function(h){if(h==null)return h;var E=typeof h;if(E==="bigint")return String(aG(64,h));if(_.ul(h)){if(E==="string")return Gp(h);if(E==="number")return cc(h)}};
DAz=function(h){if(h==null)return h;var E=typeof h;if(E==="bigint")return String((0,_.Bc)(64,h));if(_.ul(h)){if(E==="string")return _.qDZ(h);if(E==="number")return _.Clz(h)}};
_.LU=function(h){if(typeof h!=="string")throw Error();return h};
CU=function(h){if(h!=null&&typeof h!=="string")throw Error();return h};
_.JC=function(h){return h==null||typeof h==="string"?h:void 0};
mAZ=function(h,E,g,Z){if(h!=null&&h[qZ]===fU)return h;if(!Array.isArray(h))return g?Z&2?E[ll$]||(E[ll$]=rn4(E)):new E:void 0;g=h[_.pD]|0;Z=g|Z&32|Z&2;Z!==g&&Gf(h,Z);return new E(h)};
rn4=function(h){h=new h;am(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return h};
vMZ=function(h,E,g){h=E?Ilx(h):_.Wc(h);return h==null?g?0:void 0:h|0};
HDz=function(h){return h};
$Ad=function(h){return h};
ODO=function(h,E,g,Z,M,W){h=mAZ(h,Z,g,W);M&&(h=KfV(h));return h};
nM4=function(h){return[h,this.get(h)]};
smO=function(){return XMM||(XMM=new tC(am([]),void 0,void 0,void 0,YDa))};
VFZ=function(h){var E=Sx(wI);return E?h[E]:void 0};
FfW=function(h,E){var g=g===void 0?!1:g;if(Sx(kf4)&&Sx(wI)&&void 0===kf4){var Z=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[wI];if(!M)return;if(M=M.reviveUnknownFields)try{M(Z,E,yn$);return}catch(W){Wa(W)}}g&&(h=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(g=Sx(wI))&&g in h&&(h=h[g])&&delete h[E])};
TBO=function(h,E){var g=Sx(wI),Z;WM&&g&&((Z=h[g])==null?void 0:Z[E])!=null&&KZ4(Anx,3)};
uCZ=function(h,E){E<100||KZ4(bDW,1)};
ZU$=function(h,E,g,Z){var M=Z!==void 0;Z=!!Z;var W=Sx(wI),z;!M&&WM&&W&&(z=h[W])&&QmV(z,uCZ);W=[];var c=h.length;z=4294967295;var I=!1,B=!!(E&64),U=B?E&128?0:-1:void 0;if(!(E&1)){var L=c&&h[c-1];L!=null&&typeof L==="object"&&L.constructor===Object?(c--,z=c):L=void 0;if(B&&!(E&128)&&!M){I=!0;var d;z=((d=hCO)!=null?d:HDz)(z-U,U,h,L,void 0)+U}}E=void 0;for(d=0;d<c;d++){var C=h[d];if(C!=null&&(C=g(C,Z))!=null)if(B&&d>=z){var q=d-U,w=void 0;((w=E)!=null?w:E={})[q]=C}else W[d]=C}if(L)for(var r in L)c=L[r],
c!=null&&(c=g(c,Z))!=null&&(d=+r,C=void 0,B&&!Number.isNaN(d)&&(C=d+U)<z?W[C]=c:(d=void 0,((d=E)!=null?d:E={})[r]=c));E&&(I?W.push(E):W[z]=E);M&&Sx(wI)&&(h=VFZ(h))&&h instanceof EUZ&&(W[wI]=gU$(h));return W};
Wia=function(h){h[0]=MxZ(h[0]);h[1]=MxZ(h[1]);return h};
MxZ=function(h){switch(typeof h){case "number":return Number.isFinite(h)?h:""+h;case "bigint":return NBz(h)?Number(h):""+h;case "boolean":return h?1:0;case "object":if(Array.isArray(h)){var E=h[_.pD]|0;return h.length===0&&E&1?void 0:ZU$(h,E,MxZ)}if(h!=null&&h[qZ]===fU)return pc$(h);if(h instanceof NA){E=h.JSC$8820_value_;if(E==null)h="";else if(typeof E==="string")h=E;else{if(rMz){for(var g="",Z=0,M=E.length-10240;Z<M;)g+=String.fromCharCode.apply(null,E.subarray(Z,Z+=10240));g+=String.fromCharCode.apply(null,
Z?E.subarray(Z):E);E=btoa(g)}else E=_.lJ(E);h=h.JSC$8820_value_=E}return h}if(h instanceof tC)return h=h.size!==0?Array.from(mi.prototype.entries.call(h),Wia):void 0,h;return}return h};
vc=function(h,E){if(E){hCO=E==null||E===HDz||E[Gpu]!==zC4?HDz:E;try{return pc$(h)}finally{hCO=void 0}}return pc$(h)};
pc$=function(h){h=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ZU$(h,h[_.pD]|0,MxZ)};
iUd=function(h){switch(typeof h){case "boolean":return aRZ||(aRZ=[0,void 0,!0]);case "number":return h>0?void 0:h===0?cCZ||(cCZ=[0,void 0]):[-h,void 0];case "string":return[0,h];case "object":return h}};
KU=function(h,E,g){return h=_.Hc(h,E[0],E[1],g?1:2)};
_.Hc=function(h,E,g,Z){Z=Z===void 0?0:Z;if(h==null){var M=32;g?(h=[g],M|=128):h=[];E&&(M=M&-8380417|(E&1023)<<13)}else{if(!Array.isArray(h))throw Error("O");M=h[_.pD]|0;if(oUx&&1&M)throw Error("P");2048&M&&!(2&M)&&IRz();if(M&256)throw Error("Q");if(M&64)return Z!==0||M&2048||Gf(h,M|2048),h;if(g&&(M|=128,g!==h[0]))throw Error("R");a:{g=h;M|=64;var W=g.length;if(W){var z=W-1,c=g[z];if(c!=null&&typeof c==="object"&&c.constructor===Object){E=M&128?0:-1;z-=E;if(z>=1024)throw Error("T");for(var I in c)W=
+I,W<z&&(g[W+E]=c[I],delete c[I]);M=M&-8380417|(z&1023)<<13;break a}}if(E){I=Math.max(E,W-(M&128?0:-1));if(I>1024)throw Error("U");M=M&-8380417|(I&1023)<<13}}}M|=64;Z===0&&(M|=2048);Gf(h,M);return h};
IRz=function(){if(oUx)throw Error("S");KZ4(RCq,5)};
Liq=function(h,E){if(typeof h!=="object")return h;if(Array.isArray(h)){var g=h[_.pD]|0;return h.length===0&&g&1?void 0:PJV(h,g,E)}if(h!=null&&h[qZ]===fU)return BIx(h);if(h instanceof tC){E=h.arrayState;if(E&2)return h;if(!h.size)return;g=am(UZW(h));if(h.valueCtor)for(h=0;h<g.length;h++){var Z=g[h],M=Z[1];M==null||typeof M!=="object"?M=void 0:M!=null&&M[qZ]===fU?M=BIx(M):Array.isArray(M)?M=PJV(M,M[_.pD]|0,!!(E&32)):M=void 0;Z[1]=M}return g}if(h instanceof NA)return h};
PJV=function(h,E,g){if(E&2)return h;!g||4096&E||16&E?h=O0(h,E,!1,g&&!(E&16)):(XaZ(h,34),E&4&&Object.freeze(h));return h};
jGa=function(h,E,g){h=new h.constructor(E);g&&(h.copyOnWrite=om);h.noLegacyNull=om;return h};
BIx=function(h){var E=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=E[_.pD]|0;return dB(h,g)?h:dZz(h,E,g)?jGa(h,E):O0(E,g)};
O0=function(h,E,g,Z){Z!=null||(Z=!!(34&E));h=ZU$(h,E,Liq,Z);Z=32;g&&(Z|=2);E=E&8380609|Z;Gf(h,E);return h};
KfV=function(h){var E=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=E[_.pD]|0;return dB(h,g)?dZz(h,E,g)?jGa(h,E,!0):new h.constructor(O0(E,g,!1)):h};
XX=function(h){if(h.copyOnWrite!==om)return!1;var E=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=O0(E,E[_.pD]|0);XaZ(E,2048);h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=E;h.copyOnWrite=void 0;h.noLegacyNull=void 0;return!0};
s0=function(h){if(!XX(h)&&dB(h,h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.pD]|0))throw Error();};
VG=function(h,E){E===void 0&&(E=h[_.pD]|0);E&32&&!(E&4096)&&Gf(h,E|4096)};
dZz=function(h,E,g){return g&2?!0:g&32&&!(g&4096)?(Gf(E,g|2),h.copyOnWrite=om,!0):!1};
yG=function(h,E,g,Z,M){var W=g+(M?0:-1),z=h.length-1;if(z>=1+(M?0:-1)&&W>=z){var c=h[z];if(c!=null&&typeof c==="object"&&c.constructor===Object)return c[g]=Z,E}if(W<=z)return h[W]=Z,E;if(Z!==void 0){var I;z=((I=E)!=null?I:E=h[_.pD]|0)>>13&1023||536870912;g>=z?Z!=null&&(W={},h[z+(M?0:-1)]=(W[g]=Z,W)):h[W]=Z}return E};
_.Tp=function(h,E,g,Z,M){var W=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.pD]|0;Z=dB(h,z)?1:Z;M=!!M||Z===3;Z===2&&XX(h)&&(W=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=W[_.pD]|0);h=CJM(W,E);var c=h===FX?7:h[_.pD]|0,I=JCz(c,z);var B=4&I?!1:!0;if(B){4&I&&(h=sD(h),c=0,I=AC(I,z),z=yG(W,z,E,h));for(var U=0,L=0;U<h.length;U++){var d=g(h[U]);d!=null&&(h[L++]=d)}L<U&&(h.length=L);g=(I|4)&-513;I=g&=-1025;I&=-4097}I!==c&&(Gf(h,I),2&I&&Object.freeze(h));return h=eCq(h,I,W,
z,E,Z,B,M)};
eCq=function(h,E,g,Z,M,W,z,c){var I=E;W===1||(W!==4?0:2&E||!(16&E)&&32&Z)?bJ(E)||(E|=!h.length||z&&!(4096&E)||32&Z&&!(4096&E||16&E)?2:256,E!==I&&Gf(h,E),Object.freeze(h)):(W===2&&bJ(E)&&(h=sD(h),I=0,E=AC(E,Z),Z=yG(g,Z,M,h)),bJ(E)||(c||(E|=16),E!==I&&Gf(h,E)));2&E||!(4096&E||16&E)||VG(g,Z);return h};
CJM=function(h,E,g){h=uJ(h,E,g);return Array.isArray(h)?h:FX};
JCz=function(h,E){2&E&&(h|=2);return h|1};
bJ=function(h){return!!(2&h)&&!!(4&h)||!!(256&h)};
q0u=function(h){return _.xM(h,!0)};
fR$=function(h){h=sD(h);for(var E=0;E<h.length;E++){var g=h[E]=sD(h[E]);Array.isArray(g[1])&&(g[1]=am(g[1]))}return h};
NIx=function(h,E){var g=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=g[_.pD]|0;a:{var M=Z;Z=dB(h,Z);!Z&&XX(h)&&(g=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=g[_.pD]|0);var W=uJ(g,E);h=!1;if(W==null){if(Z){E=smO();break a}W=[]}else if(W.constructor===tC)if(W.arrayState&2&&!Z)W=UZW(W);else{E=W;break a}else Array.isArray(W)?h=!!((W[_.pD]|0)&2):W=[];if(Z){if(!W.length){E=smO();break a}h||(h=!0,am(W))}else h&&(h=!1,W=fR$(W));!h&&M&32&&sWu(W);Z=new tC(W,void 0,vMZ,vMZ);M=yG(g,
M,E,Z);h||VG(g,M);E=Z}return E};
_.QG=function(h,E,g,Z){s0(h);var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[_.pD]|0;if(g==null)return yG(M,W,E),h;var z=g===FX?7:g[_.pD]|0,c=z,I=bJ(z),B=I||Object.isFrozen(g);I||(z=0);B||(g=sD(g),c=0,z=AC(z,W),B=!1);z|=5;var U;I=(U=Y4W(z))!=null?U:0;for(U=0;U<g.length;U++){var L=g[U],d=Z(L,I);Object.is(L,d)||(B&&(g=sD(g),c=0,z=AC(z,W),B=!1),g[U]=d)}z!==c&&(B&&(g=sD(g),z=AC(z,W)),Gf(g,z));yG(M,W,E,g);return h};
_.hL=function(h,E,g,Z,M){s0(h);var W=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;yG(W,W[_.pD]|0,E,(Z==="0"?Number(g)===0:g===Z)?void 0:g,M);return h};
_.EG=function(h,E,g){if(E&2)throw Error();var Z=rB(E),M=CJM(h,g,Z),W=M===FX?7:M[_.pD]|0,z=JCz(W,E);if(2&z||bJ(z)||16&z)M=sD(M),W=0,z=AC(z,E),yG(h,E,g,M,Z);z&=-13;z!==W&&Gf(M,z);return M};
txx=function(h){if(WM){var E;return(E=h[gU])!=null?E:h[gU]=new Map}if(gU in h)return h[gU];E=new Map;Object.defineProperty(h,gU,{value:E});return E};
xZx=function(h,E,g,Z,M){var W=txx(h),z=S04(W,h,E,g,M);z!==Z&&(z&&(E=yG(h,E,z,void 0,M)),W.set(g,Z));return E};
S04=function(h,E,g,Z,M){var W=h.get(Z);if(W!=null)return W;for(var z=W=0;z<Z.length;z++){var c=Z[z];uJ(E,c,M)!=null&&(W!==0&&(g=yG(E,g,W,void 0,M)),W=c)}h.set(Z,W);return W};
wcW=function(h,E,g,Z,M){var W=!1;Z=uJ(h,Z,M,function(z){var c=mAZ(z,g,!1,E);W=c!==z&&c!=null;return c});
if(Z!=null)return W&&!dB(Z)&&VG(h,E),Z};
DZW=function(h,E,g,Z,M,W,z,c){var I=dB(h,g);W=I?1:W;z=!!z||W===3;I=c&&!I;(W===2||I)&&XX(h)&&(E=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=E[_.pD]|0);h=CJM(E,M);var B=h===FX?7:h[_.pD]|0,U=JCz(B,g);if(c=!(4&U)){var L=h,d=g,C=!!(2&U);C&&(d|=2);for(var q=!C,w=!0,r=0,v=0;r<L.length;r++){var H=mAZ(L[r],Z,!1,d);if(H instanceof Z){if(!C){var u=dB(H);q&&(q=!u);w&&(w=u)}L[v++]=H}}v<r&&(L.length=v);U|=4;U=w?U&-4097:U|4096;U=q?U|8:U&-9}U!==B&&(Gf(h,U),2&U&&Object.freeze(h));if(I&&!(8&U||!h.length&&
(W===1||(W!==4?0:2&U||!(16&U)&&32&g)))){bJ(U)&&(h=sD(h),U=AC(U,g),g=yG(E,g,M,h));Z=h;I=U;for(B=0;B<Z.length;B++)L=Z[B],U=KfV(L),L!==U&&(Z[B]=U);I|=8;U=I=Z.length?I|4096:I&-4097;Gf(h,U)}return h=eCq(h,U,E,g,M,W,c,z)};
lRW=function(h){h==null&&(h=void 0);return h};
AC=function(h,E){return h=(2&E?h|2:h&-3)&-273};
_.rCZ=function(h,E,g,Z,M){s0(h);E=_.Tp(h,E,M,2,!0);var W;M=(W=Y4W(E===FX?7:E[_.pD]|0))!=null?W:0;E.push(g(Z,M));return h};
mZu=function(h,E,g,Z,M,W,z){s0(h);var c=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=DZW(h,c,c[_.pD]|0,g,E,2,!0);if(W&&z)M!=null||(M=h.length-1),kuO(h,M),h.splice(M,W),h.length||(h[_.pD]&=-4097);else{if(W){if(typeof M!=="number"||M<0||M>h.length)throw Error();}else Z=Z!=null?Z:new g;M!=void 0?h.splice(M,W,Z):h.push(Z);M=g=h===FX?7:h[_.pD]|0;(Z=dB(Z))?(g&=-9,h.length===1&&(g&=-4097)):g|=4096;g!==M&&Gf(h,g);Z||VG(c)}};
HUM=function(h,E){if(typeof h==="string")return new Z0(v$z(h),E);if(Array.isArray(h))return new Z0(new Uint8Array(h),E);if(h.constructor===Uint8Array)return new Z0(h,!1);if(h.constructor===ArrayBuffer)return h=new Uint8Array(h),new Z0(h,!1);if(h.constructor===NA)return E=vUz(h)||new Uint8Array(0),new Z0(E,!0,h);if(h instanceof Uint8Array)return h=h.constructor===Uint8Array?h:new Uint8Array(h.buffer,h.byteOffset,h.byteLength),new Z0(h,!1);throw Error();};
Kix=function(h){switch(typeof h){case "string":$ZV(h)}};
nU4=function(h){switch(typeof h){case "string":OUz(h)}};
Mo=function(){var h=function(){throw Error();};
Object.setPrototypeOf(h,h.prototype);return h};
Y0q=function(h,E){var g=g===void 0?XcV:g;return new Wi(h,E,g)};
kpN=function(h,E,g,Z,M){sGM(h,g,Vxu(E,Z),M)};
pM=function(h,E,g,Z){var M=Z[h];if(M)return M;M={};M.binaryFields=Z;M.messageMetadata=iUd(Z[0]);var W=Z[1],z=1;W&&W.constructor===Object&&(M.extensions=W,W=Z[++z],typeof W==="function"&&(M.isMessageSet=!0,yCz!=null||(yCz=W),Fix!=null||(Fix=Z[z+1]),W=Z[z+=2]));for(var c={};W&&ACq(W);){for(var I=0;I<W.length;I++)c[W[I]]=W;W=Z[++z]}for(I=1;W!==void 0;){typeof W==="number"&&(I+=W,W=Z[++z]);var B=void 0;if(W instanceof Wi)var U=W;else U=TIz,z--;W=void 0;if((W=U)==null?0:W.$$isMsg){W=Z[++z];B=Z;var L=z;
typeof W==="function"&&(W=W(),B[L]=W);B=W}W=Z[++z];L=I+1;typeof W==="number"&&W<0&&(L-=W,W=Z[++z]);for(;I<L;I++){var d=c[I];B?g(M,I,U,B,d):E(M,I,U,d)}}return Z[h]=M};
ACq=function(h){return Array.isArray(h)&&!!h.length&&typeof h[0]==="number"&&h[0]>0};
uXu=function(h){return Array.isArray(h)?h[0]instanceof Wi?h:[bUq,h]:[h,void 0]};
Vxu=function(h,E){if(h instanceof _.GN)return h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(h))return KU(h,E,!1)};
QGa=function(h,E,g,Z){var M=g.$$binaryReaderFn;h[E]=Z?function(W,z,c){return M(W,z,c,Z)}:M};
ErM=function(h,E,g,Z,M){var W=g.$$binaryReaderFn,z,c;h[E]=function(I,B,U){return W(I,B,U,c||(c=pM(ha4,QGa,ErM,Z).messageMetadata),z||(z=grW(Z)),M)}};
grW=function(h){var E=h[ZMx];if(E!=null)return E;var g=pM(ha4,QGa,ErM,h);E=g.isMessageSet?function(Z,M){return yCz(Z,M,g)}:function(Z,M){for(;MLu(M)&&M.nextWireType_!=4;){var W=M.nextField_,z=g[W];
if(z==null){var c=g.extensions;c&&(c=c[W])&&(c=W24(c),c!=null&&(z=g[W]=c))}if(z==null||!z(M,Z,W)){c=M;z=c.fieldCursor_;pia(c);if(c.discardUnknownFields)var I=void 0;else{var B=c.decoder_.cursor_-z;c.decoder_.cursor_=z;I=GNz(c.decoder_,B)}B=c=z=void 0;var U=Z;I&&((z=(c=(B=U[wI])!=null?B:U[wI]=new EUZ)[W])!=null?z:c[W]=[]).push(I)}}if(Z=VFZ(Z))Z.reviveUnknownFields=g.binaryFields[zaM];return!0};
h[ZMx]=E;h[zaM]=a04.bind(h);return E};
a04=function(h,E,g,Z){var M=this[ha4],W=this[ZMx],z=KU(void 0,M.messageMetadata,!1),c=VFZ(h);if(c){var I=!1,B=M.extensions;if(B){M=function(q,w,r){if(r.length!==0)if(B[w])for(q=_.G(r),w=q.next();!w.done;w=q.next()){w=cLN(w.value);try{I=!0,W(z,w)}finally{w.free()}}else Z==null||Z(h,w,r)};
if(E==null)QmV(c,M);else if(c!=null){var U=c[E];U&&M(c,E,U)}if(I){var L=h[_.pD]|0;if(L&2&&L&2048&&(g==null||!g.reviveIntoImmutable))throw Error();var d=rB(L),C=function(q,w){if(uJ(h,q,d)!=null)switch(g==null?void 0:g.resolutionBehavior){case 1:return;default:throw Error();}w!=null&&(L=yG(h,L,q,w,d));delete c[q]};
E==null?yMZ(z,z[_.pD]|0,function(q,w){C(q,w)}):C(E,uJ(z,E,d))}}}};
W24=function(h){h=uXu(h);var E=h[0].$$binaryReaderFn;if(h=h[1]){var g=grW(h),Z=pM(ha4,QGa,ErM,h).messageMetadata;return function(M,W,z){return E(M,W,z,Z,g)}}return E};
iMO=function(h,E,g){h[E]=g.$$binaryWriterFn};
I0q=function(h,E,g,Z){var M,W,z=g.$$binaryWriterFn;h[E]=function(c,I,B){return z(c,I,B,W||(W=pM(or$,iMO,I0q,Z).messageMetadata),M||(M=RaZ(Z)))}};
RaZ=function(h){var E=h[PxZ];if(!E){var g=pM(or$,iMO,I0q,h);E=function(Z,M){return BU$(Z,M,g)};
h[PxZ]=E}return E};
BU$=function(h,E,g){yMZ(h,h[_.pD]|0,function(Z,M){if(M!=null){var W=UoN(g,Z);W?W(E,M,Z):Z<500||KZ4(L2V,3)}});
(h=VFZ(h))&&QmV(h,function(Z,M,W){aK(E,E.encoder_.end());for(Z=0;Z<W.length;Z++)aK(E,vUz(W[Z])||new Uint8Array(0))})};
UoN=function(h,E){var g=h[E];if(g)return g;if(g=h.extensions)if(g=g[E]){g=uXu(g);var Z=g[0].$$binaryWriterFn;if(g=g[1]){var M=RaZ(g),W=pM(or$,iMO,I0q,g).messageMetadata;g=h.isMessageSet?Fix(W,M):function(z,c,I){return Z(z,c,I,W,M)}}else g=Z;
return h[E]=g}};
_.jKz=function(h,E,g){if(Array.isArray(E)){var Z=E[_.pD]|0;if(Z&4)return E;for(var M=0,W=0;M<E.length;M++){var z=h(E[M]);z!=null&&(E[W++]=z)}W<M&&(E.length=W);g&&(Gf(E,(Z|5)&-1537),Z&2&&Object.freeze(E));return E}};
_.ix=function(h,E,g){return new Wi(h,E,g)};
_.dou=function(h,E,g){return new Wi(h,E,g)};
_.oK=function(h,E,g){yG(h,h[_.pD]|0,E,g,rB(h[_.pD]|0))};
CxV=function(h,E,g){E=_.yk(E);E!=null&&(_.IK(h,g,1),h=h.encoder_,g=ZDV||(ZDV=new DataView(new ArrayBuffer(8))),g.setFloat64(0,+E,!0),HM=g.getUint32(0,!0),$M=g.getUint32(4,!0),_.RK(h,HM),_.RK(h,$M))};
JL4=function(h,E,g){E=_.yk(E);E!=null&&(_.IK(h,g,5),h=h.encoder_,MFO(E),_.RK(h,HM))};
_.Bi=function(h,E,g){E=wMZ(E);if(E!=null&&(Kix(E),E!=null))switch(_.IK(h,g,0),typeof E){case "number":h=h.encoder_;KD(E);Pi(h,HM,$M);break;case "bigint":g=BigInt.asUintN(64,E);g=new eaq(Number(g&BigInt(4294967295)),Number(g>>BigInt(32)));Pi(h.encoder_,g.JSC$8863_lo,g.JSC$8863_hi);break;default:g=$ZV(E),Pi(h.encoder_,g.JSC$8863_lo,g.JSC$8863_hi)}};
f0V=function(h,E,g){E=_.Wc(E);E!=null&&E!=null&&(_.IK(h,g,0),_.qGq(h.encoder_,E))};
_.tLO=function(h,E,g){NUq(h,g,DAz(E))};
SGz=function(h,E,g){E=_.iDZ(E);E!=null&&(_.IK(h,g,0),h.encoder_.JSC$8865_buffer_.push(E?1:0))};
wi$=function(h,E,g){E=_.JC(E);E!=null&&xoZ(h,g,MqV(E))};
Do$=function(h,E,g,Z,M){sGM(h,g,Vxu(E,Z),M)};
_.l0z=function(h,E,g){E=E==null||typeof E=="string"||E instanceof NA?E:void 0;E!=null&&xoZ(h,g,HUM(E,!0).buffer)};
rL4=function(h,E,g){E=_.RHM(E);E!=null&&E!=null&&(_.IK(h,g,0),UG(h.encoder_,E))};
_.moW=function(h,E,g){E=_.Wc(E);E!=null&&(E=parseInt(E,10),_.IK(h,g,0),_.qGq(h.encoder_,E))};
_.LM=function(h,E){return function(g,Z){var M={treatNewDataAsImmutable:!0};Z&&Object.assign(M,Z);g=cLN(g,void 0,void 0,M);try{var W=new h,z=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;grW(E)(z,g);var c=W}finally{g.free()}return c}};
_.jL=function(h){return function(E){return vrZ(E,h)}};
HMd=function(h){return function(){return vrZ(this,h)}};
_.$od=function(h){return mf(function(E){return E instanceof h&&!dB(E)})};
_.CM=function(h){return function(E){return K2q(h,E)}};
YG$=function(h,E){return OMx({child:h,origin:E||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:nrW,getPayloadCase:function(g){return g.getPayloadCase()},
createInitMessage:function(g){var Z=new qo,M=new XiM;g=_.fM(M,1,g);return _.No(Z,5,tL,g)}})};
SL=function(h){return{valueOf:h}.valueOf()};
VLV=function(){var h=null;if(!sKM)return h;try{var E=function(g){return g};
h=sKM.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(g){}return h};
yLz=function(){kNx===void 0&&(kNx=VLV());return kNx};
_.wU=function(h){var E=yLz();h=E?E.createScriptURL(h):h;return new xr(h)};
_.lx=function(h){if(h instanceof xr)return h.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.rU=function(h){return Object.isFrozen(h)&&Object.isFrozen(h.raw)};
F2a=function(h){return h.toString().indexOf("`")===-1};
vi=function(h){return new _.m2(ALW,h)};
Hi=function(h){return h instanceof _.m2};
_.$r=function(h){if(Hi(h))return h.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
OG=function(h){return new TUq(function(E){return E.substr(0,h.length+1).toLowerCase()===h+":"})};
_.nM=function(h,E){E=E===void 0?bM$:E;if(Hi(h))return h;for(var g=0;g<E.length;++g){var Z=E[g];if(Z instanceof TUq&&Z.isValid(h))return vi(h)}};
_.Yr=function(h,E){E=E===void 0?bM$:E;return _.nM(h,E)||Xj};
_.sG=function(h){var E=window;if(typeof MediaSource!=="undefined"&&h instanceof MediaSource||typeof E.ManagedMediaSource!=="undefined"&&h instanceof E.ManagedMediaSource)return vi(URL.createObjectURL(h));E=h.type;E.toLowerCase()==="application/octet-stream"?E=!0:(E=E.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),E=(E==null?void 0:E.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(E[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(E[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(E[1])||/^font\/[\w-]+$/i.test(E[1])));if(!E)throw Error("Z");return vi(URL.createObjectURL(h))};
_.ujO=function(h){for(var E=_.VF.apply(1,arguments),g=[h[0]],Z=0;Z<E.length;Z++)g.push(String(E[Z])),g.push(h[Z+1]);return vi(g.join(""))};
_.hLa=function(h){if(!QKO){a:{var E=document.createElement("a");try{E.href=h}catch(g){h=void 0;break a}h=E.protocol;h=h===":"||h===""?"https:":h}return h}try{E=new URL(h)}catch(g){return"https:"}return E.protocol};
_.kr=function(h){h instanceof _.m2?h=_.$r(h):h=EEa.test(h)?h:void 0;return h};
yF=function(h,E){E=_.kr(E);E!==void 0&&(h.href=E)};
AL=function(h){var E=yLz();h=E?E.createHTML(h):h;return new Fj(h)};
ux=function(h){if(h instanceof Fj)return h.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.hh=function(h,E){h.src=_.lx(E).toString()};
gE4=function(h,E){h.setAttribute("sandbox","");for(var g=0;g<E.length;g++)h.sandbox.supports&&!h.sandbox.supports(E[g])||h.sandbox.add(E[g])};
_.MKx=function(h,E,g){h.removeAttribute("srcdoc");switch(E){case 0:if(g instanceof xr)throw new ZXz("TrustedResourceUrl",0);gE4(h,[]);E=_.kr(g);E!==void 0&&(h.src=E);break;case 1:if(!(g instanceof xr))throw new ZXz(typeof g,1);gE4(h,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.hh(h,g);break;case 2:if(g instanceof xr)throw new ZXz("TrustedResourceUrl",2);gE4(h,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
E=_.kr(g);E!==void 0&&(h.src=E);break;default:_.Vk(E)}};
_.EZ=function(h,E,g,Z){E=_.kr(E);return E!==void 0?h.open(E,g,Z):null};
_.gx=function(h){h=h===void 0?document:h;var E,g;h=(g=(E=h).querySelector)==null?void 0:g.call(E,"script[nonce]");return h==null?"":h.nonce||h.getAttribute("nonce")||""};
_.Mc=function(h){var E=yLz();h=E?E.createScript(h):h;return new _.ZT(h)};
Wn4=function(h){if(h instanceof _.ZT)return h.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
pAd=function(h){var E=_.gx(h.ownerDocument);E&&h.setAttribute("nonce",E)};
_.WA=function(h,E){h.textContent=Wn4(E);pAd(h)};
_.pX=function(h,E){h.src=_.lx(E);pAd(h)};
_.GH=function(h,E){if(h.nodeType===1&&/^(script|style)$/i.test(h.tagName))throw Error("Z");h.innerHTML=ux(E)};
_.zH=function(h,E,g,Z){if(h.length===0)throw Error("Z");h=h.map(function(W){if(W instanceof GHd)W=W.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return W});
var M=g.toLowerCase();if(h.every(function(W){return M.indexOf(W)!==0}))throw Error("aa`"+g);
E.setAttribute(g,Z)};
_.aH=function(h,E,g){if(E instanceof xr)h.href=_.lx(E).toString(),h.rel=g;else{if(zLa.indexOf(g)===-1)throw Error("ba`"+g);E=_.kr(E);E!==void 0&&(h.href=E,h.rel=g)}};
aT$=function(h){if(h instanceof cA)return h.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.chM=function(h,E){E=_.kr(E);E!==void 0&&(h.href=E)};
iXZ=function(h){return _.wU(h)};
oEM=function(h,E){h&&(E=h.indexOf(E),0<=E&&h.splice(E,1))};
ir=function(h){return typeof h==="function"};
ITd=function(h){return h instanceof oH||h&&"closed"in h&&ir(h.remove)&&ir(h.add)&&ir(h.unsubscribe)};
IH=function(){};
RH=function(h){RLd(function(){throw h;})};
PA=function(h){return h};
BA=function(){return PrM(_.VF.apply(0,arguments))};
PrM=function(h){return h.length===0?PA:h.length===1?h[0]:function(E){return h.reduce(function(g,Z){return Z(g)},E)}};
Bxq=function(h){var E;return(E=h!=null?h:void 0)!=null?E:Promise};
UcM=function(h,E){return new UZ(function(g){var Z=0;return E.schedule(function(){Z===h.length?g.complete():(g.next(h[Z++]),g.closed||this.schedule())})})};
LnN=function(h,E){if(!h)throw Error("ca");return new UZ(function(g){var Z=new oH;Z.add(E.schedule(function(){var M=h[Symbol.asyncIterator]();Z.add(E.schedule(function(){var W=this;M.next().then(function(z){z.done?g.complete():(g.next(z.value),W.schedule())})}))}));
return Z})};
jHM=function(h,E,g){E=E.schedule(function(){try{g.call(this)}catch(Z){h.error(Z)}},0);
h.add(E)};
Cru=function(h,E){return new UZ(function(g){var Z;g.add(E.schedule(function(){Z=h[dcd]();jHM(g,E,function(){var M=Z.next(),W=M.value;M.done?g.complete():(g.next(W),this.schedule())})}));
return function(){var M;return ir((M=Z)==null?void 0:M.return)&&Z.return()}})};
Jh$=function(h,E){return new UZ(function(g){var Z=new oH;Z.add(E.schedule(function(){var M=h[LX]();Z.add(M.subscribe({next:function(W){Z.add(E.schedule(function(){return g.next(W)}))},
error:function(W){Z.add(E.schedule(function(){return g.error(W)}))},
complete:function(){Z.add(E.schedule(function(){return g.complete()}))}}))}));
return Z})};
eLz=function(h,E){return new UZ(function(g){return E.schedule(function(){return h.then(function(Z){g.add(E.schedule(function(){g.next(Z);g.add(E.schedule(function(){return g.complete()}))}))},function(Z){g.add(E.schedule(function(){return g.error(Z)}))})})})};
qZd=function(h){return new TypeError("da`"+(h!==null&&typeof h==="object"?"an invalid object":"'"+h+"'"))};
NxO=function(h,E){if(h!=null){if(ir(h[LX]))return Jh$(h,E);if(fTd(h))return UcM(h,E);if(ir(h==null?void 0:h.then))return eLz(h,E);if(Symbol.asyncIterator&&ir(h==null?void 0:h[Symbol.asyncIterator]))return LnN(h,E);if(ir(h==null?void 0:h[dcd]))return Cru(h,E)}throw qZd(h);};
dx=function(h,E){return E?NxO(h,E):jK(h)};
jK=function(h){if(h instanceof UZ)return h;if(h!=null){if(ir(h[LX]))return tKV(h);if(fTd(h))return SZ4(h);if(ir(h==null?void 0:h.then))return xcu(h);if(Symbol.asyncIterator&&ir(h==null?void 0:h[Symbol.asyncIterator]))return wAN(h);if(ir(h==null?void 0:h[dcd]))return Dcz(h)}throw qZd(h);};
tKV=function(h){return new UZ(function(E){var g=h[LX]();if(ir(g.subscribe))return g.subscribe(E);throw new TypeError("ea");})};
SZ4=function(h){return new UZ(function(E){for(var g=0;g<h.length&&!E.closed;g++)E.next(h[g]);E.complete()})};
xcu=function(h){return new UZ(function(E){h.then(function(g){E.closed||(E.next(g),E.complete())},function(g){return E.error(g)}).then(null,RH)})};
Dcz=function(h){return new UZ(function(E){for(var g=h[dcd]();!E.closed;){var Z=g.next(),M=Z.value;Z.done?E.complete():E.next(M)}return function(){return ir(g==null?void 0:g.return)&&g.return()}})};
wAN=function(h){return new UZ(function(E){lTx(h,E).catch(function(g){return E.error(g)})})};
lTx=function(h,E){var g,Z,M,W,z,c;return _.a(function(I){switch(I.nextAddress){case 1:_.CX(I,2,3),W=_.Jh(h);case 5:return I.yield(W.next(),8);case 8:Z=I.yieldResult;if(Z.done){I.jumpTo(3);break}z=Z.value;E.next(z);I.jumpTo(5);break;case 3:_.eK(I);_.qc(I,9);if(!Z||Z.done||!(M=W.return)){I.jumpTo(9);break}return I.yield(M.call(W),9);case 9:_.eK(I,0,0,1);if(g)throw g.error;_.fX(I,10,1);break;case 10:_.fX(I,4);break;case 2:c=_.th(I);g={error:c};I.jumpTo(3);break;case 4:E.complete(),_.SK(I)}})};
rhV=function(h,E){return E?UcM(h,E):SZ4(h)};
mc$=function(h){return ir(h[h.length-1])?h.pop():void 0};
xE=function(h){var E=h[h.length-1];return E&&ir(E.schedule)?h.pop():void 0};
wx=function(){var h=_.VF.apply(0,arguments),E=xE(h);return E?UcM(h,E):rhV(h)};
DT=function(h){var E=ir(h)?h:function(){return h};
return new UZ(function(g){return g.error(E())})};
lr=function(h){return function(E){if(ir(E==null?void 0:E.lift))return E.lift(function(g){try{return h(g,this)}catch(Z){this.error(Z)}});
throw new TypeError("fa");}};
mn=function(){return lr(function(h,E){var g=null;h._refCount++;var Z=new rx(E,void 0,void 0,void 0,function(){if(!h||h._refCount<=0||0<--h._refCount)g=null;else{var M=h._connection,W=g;g=null;!M||W&&M!==W||M.unsubscribe();E.unsubscribe()}});
h.subscribe(Z);Z.closed||(g=h.connect())})};
HX$=function(){var h=vEz;var E=E===void 0?0:E;return lr(function(g,Z){Z.add(h.schedule(function(){return g.subscribe(Z)},E))})};
vA=function(h){return lr(function(E,g){var Z=0;E.subscribe(new rx(g,function(M){g.next(h.call(void 0,M,Z++))}))})};
Knd=function(h){return vA(function(E){return $cO(E)?h.apply(null,_.$E(E)):h(E)})};
sHz=function(h){if(h.length===1){var E=h[0];if(OX$(E))return{args:E,keys:null};if(E&&typeof E==="object"&&nE4(E)===XAV)return h=YZz(E),{args:h.map(function(g){return E[g]}),
keys:h}}return{args:h,keys:null}};
KX=function(){var h=_.VF.apply(0,arguments),E=xE(h),g=mc$(h);h=sHz(h);var Z=h.args,M=h.keys;if(Z.length===0)return dx([],E);E=new UZ(VK$(Z,E,M?function(W){for(var z={},c=0;c<W.length;c++)z[M[c]]=W[c];return z}:PA));
return g?E.pipe(Knd(g)):E};
VK$=function(h,E,g){g=g===void 0?PA:g;return function(Z){kH$(E,function(){for(var M=h.length,W=Array(M),z=M,c=h.map(function(){return!1}),I=!0,B={i$jscomp$217:0};B.i$jscomp$217<M;B={i$jscomp$217:B.i$jscomp$217},B.i$jscomp$217++)kH$(E,function(U){return function(){dx(h[U.i$jscomp$217],E).subscribe(new OZ(Z,function(L){W[U.i$jscomp$217]=L;
I&&(c[U.i$jscomp$217]=!0,I=!c.every(PA));I||Z.next(g(W.slice()))},function(){return--z===0}))}}(B),Z)},Z)}};
kH$=function(h,E,g){h?g.add(h.schedule(E)):E()};
yhM=function(h,E,g,Z){var M=[],W=0,z=0,c=!1,I=function(B){W++;jK(g(B,z++)).subscribe(new rx(E,function(U){E.next(U)},void 0,function(){W--;
for(var U={};M.length&&W<Z;U={bufferedValue:void 0})U.bufferedValue=M.shift(),I(U.bufferedValue);!c||M.length||W||E.complete()}))};
h.subscribe(new rx(E,function(B){return W<Z?I(B):M.push(B)},void 0,function(){c=!0;
!c||M.length||W||E.complete()}));
return function(){M=null}};
nX=function(h,E){var g=g===void 0?Infinity:g;if(ir(E))return nX(function(Z,M){return vA(function(W,z){return E(Z,W,M,z)})(jK(h(Z,M)))},g);
typeof E==="number"&&(g=E);return lr(function(Z,M){return yhM(Z,M,h,g)})};
Fna=function(h){h=h===void 0?Infinity:h;return nX(PA,h)};
Ahx=function(){var h=_.VF.apply(0,arguments);return Fna(1)(rhV(h,xE(h)))};
Txd=function(h){return new UZ(function(E){jK(h()).subscribe(E)})};
XU=function(h,E,g){if(ir(g)){var Z=g;g=void 0}if(Z)return XU(h,E,g).pipe(Knd(Z));Z=_.G(ir(h.addEventListener)&&ir(h.removeEventListener)?bXd.map(function(z){return function(c){return h[z](E,c,g)}}):ir(h.addListener)&&ir(h.removeListener)?uUN.map(QHz(h,E)):ir(h.on)&&ir(h.off)?hu4.map(QHz(h,E)):[]);
var M=Z.next().value,W=Z.next().value;return!M&&fTd(h)?nX(function(z){return XU(z,E,g)})(rhV(h)):new UZ(function(z){if(!M)throw new TypeError("ga");
var c=function(){var I=_.VF.apply(0,arguments);return z.next(1<I.length?I:I[0])};
M(c);return function(){return W(c)}})};
QHz=function(h,E){return function(g){return function(Z){return h[g](E,Z)}}};
VL=function(){var h=_.VF.apply(0,arguments),E=xE(h);var g=typeof h[h.length-1]==="number"?h.pop():Infinity;return h.length?h.length===1?jK(h[0]):Fna(g)(rhV(h,E)):YE};
gp4=function(h){return h.length===1&&EpV(h[0])?h[0]:h};
Zta=function(){var h=gp4(_.VF.apply(0,arguments));return lr(function(E,g){var Z=[E].concat(_.$E(h)),M=function(){if(!g.closed)if(Z.length>0){try{var W=jK(Z.shift())}catch(c){M();return}var z=new rx(g,void 0,IH,IH);g.add(W.subscribe(z));z.add(M)}else g.complete()};
M()})};
kE=function(h){return lr(function(E,g){var Z=0;E.subscribe(new rx(g,function(M){return h.call(void 0,M,Z++)&&g.next(M)}))})};
W8$=function(){var h=_.VF.apply(0,arguments);h=gp4(h);return h.length===1?jK(h[0]):new UZ(M84(h))};
M84=function(h){return function(E){for(var g=[],Z={i$jscomp$220:0};g&&!E.closed&&Z.i$jscomp$220<h.length;Z={i$jscomp$220:Z.i$jscomp$220},Z.i$jscomp$220++)g.push(jK(h[Z.i$jscomp$220]).subscribe(new rx(E,function(M){return function(W){if(g){for(var z=0;z<g.length;z++)z!==M.i$jscomp$220&&g[z].unsubscribe();g=null}E.next(W)}}(Z))))}};
pRd=function(){var h=_.VF.apply(0,arguments),E=mc$(h),g=gp4(h);return g.length?new UZ(function(Z){var M=g.map(function(){return[]}),W=g.map(function(){return!1});
Z.add(function(){M=W=null});
for(var z={sourceIndex$jscomp$1:0};!Z.closed&&z.sourceIndex$jscomp$1<g.length;z={sourceIndex$jscomp$1:z.sourceIndex$jscomp$1},z.sourceIndex$jscomp$1++)jK(g[z.sourceIndex$jscomp$1]).subscribe(new rx(Z,function(c){return function(I){M[c.sourceIndex$jscomp$1].push(I);M.every(function(B){return B.length})&&(I=M.map(function(B){return B.shift()}),Z.next(E?E.apply(null,_.$E(I)):I),M.some(function(B,U){return!B.length&&W[U]})&&Z.complete())}}(z),void 0,function(c){return function(){W[c.sourceIndex$jscomp$1]=
!0;
!M[c.sourceIndex$jscomp$1].length&&Z.complete()}}(z)));
return function(){M=W=null}}):YE};
GRW=function(h){var E,g,Z;return!!h&&typeof h.active==="boolean"&&typeof((E=h.clock)==null?void 0:E.now)==="function"&&((g=h.clock)==null?void 0:g.timeline)!==void 0&&!((Z=h.lastMeasurement)==null||!Z.timestamp)&&typeof h.equivalentTo==="function"&&typeof h.extrapolateToNow==="function"&&typeof h.extrapolateToTime==="function"&&typeof h.map==="function"&&typeof h.joinWith==="function"};
zuO=function(h){function E(g){return typeof g==="boolean"||typeof g==="string"||typeof g==="number"||g===void 0||g===null}
return E(h)?!0:Array.isArray(h)?h.every(E):typeof h==="object"?Object.keys(h).every(function(g){return typeof g==="string"})&&Object.values(h).every(function(g){return Array.isArray(g)?g.every(E):E(g)}):!1};
abZ=function(h){if(zuO(h))return h;if(GRW(h))return{lastMeasurement:{value:abZ(h.lastMeasurement.value),timestamp:yL(h.lastMeasurement.timestamp,new FU(0,h.lastMeasurement.timestamp.timeline))},active:h.active};try{return JSON.parse(JSON.stringify(h))}catch(E){}return String(h)};
Ah=function(h,E){return function(g){return new UZ(function(Z){return g.subscribe(function(M){h.timeExecution(E,function(){Z.next(M)})()},function(M){h.timeExecution(E,function(){Z.error(M)})()},function(){h.timeExecution(E,function(){Z.complete()})()})})}};
cba=function(h,E){var g=!1;return new UZ(function(Z){var M=h.setTimeout(function(){g=!0;Z.next(!0);Z.complete()},E);
return function(){g||h.clearTimeout(M)}})};
itO=function(h){h=h.global;if(h.fetchLater)return h.fetchLater.bind(h)};
TH=function(h){return lr(function(E,g){var Z=null,M=!1,W;Z=E.subscribe(new rx(g,void 0,function(z){W=jK(h(z,TH(h)(E)));Z?(Z.unsubscribe(),Z=null,W.subscribe(g)):M=!0}));
M&&(Z.unsubscribe(),Z=null,W.subscribe(g))})};
opq=function(h,E,g){return function(Z,M){var W=g,z=E,c=0;Z.subscribe(new rx(M,function(I){var B=c++;z=W?h(z,I,B):(W=!0,I);M.next(z)},void 0,void 0))}};
Ibd=function(h){h=h===void 0?null:h;return lr(function(E,g){var Z=!1;E.subscribe(new rx(g,function(M){Z=!0;g.next(M)},void 0,function(){Z||g.next(h);
g.complete()}))})};
br=function(){return lr(function(h,E){h.subscribe(new rx(E,IH))})};
ur=function(h){return lr(function(E,g){E.subscribe(new rx(g,function(){return g.next(h)}))})};
hb=function(h){return h<=0?function(){return YE}:lr(function(E,g){var Z=0;
E.subscribe(new rx(g,function(M){++Z<=h&&(g.next(M),h<=Z&&g.complete())}))})};
E6=function(h){var E=E===void 0?PA:E;var g;h=(g=h)!=null?g:Rud;return lr(function(Z,M){var W,z=!0;Z.subscribe(new rx(M,function(c){var I=E(c);if(z||!h(W,I))z=!1,W=I,M.next(c)}))})};
Rud=function(h,E){return h===E};
B2x=function(h){h=h===void 0?Pnz:h;return lr(function(E,g){var Z=!1;E.subscribe(new rx(g,function(M){Z=!0;g.next(M)},void 0,function(){return Z?g.complete():g.error(h())}))})};
Pnz=function(){return new UsZ};
g2=function(){var h=_.VF.apply(0,arguments);return function(E){return Ahx(E,wx.apply(null,_.$E(h)))}};
L8$=function(h){return lr(function(E,g){var Z=0;E.subscribe(new rx(g,function(M){h.call(void 0,M,Z++,E)||(g.next(!1),g.complete())},void 0,function(){g.next(!0);
g.complete()}))})};
jf4=function(){return lr(function(h,E){var g=[];h.subscribe(new rx(E,function(Z){g.push(Z);1<g.length&&g.shift()},void 0,function(){for(var Z=_.G(g),M=Z.next();!M.done;M=Z.next())E.next(M.value);
E.complete()},function(){g=null}))})};
dsx=function(h,E){var g=arguments.length>=2;return function(Z){return Z.pipe(h?kE(function(M,W){return h(M,W,Z)}):PA,jf4(),g?Ibd(E):B2x(function(){return new UsZ}))}};
Ms=function(h){var E=ir(h)?h:function(){return h};
return ir()?lr(function(g,Z){var M=E();(void 0)(M).subscribe(Z).add(g.subscribe(M))}):function(g){var Z=new Zb(g,E);
ir(g==null?void 0:g.lift)&&(Z.lift=g.lift);Z.source=g;Z.subjectFactory=E;return Z}};
pt=function(h){var E=new WR(h,void 0,void 0);return function(g){return Ms(function(){return E})(g)}};
GR=function(h,E){return lr(opq(h,E,arguments.length>=2))};
zR=function(){var h=_.VF.apply(0,arguments),E=xE(h);return lr(function(g,Z){(E?Ahx(h,g,E):Ahx(h,g)).subscribe(Z)})};
af=function(h){return lr(function(E,g){var Z=null,M=0,W=!1;E.subscribe(new rx(g,function(z){var c;(c=Z)==null||c.unsubscribe();c=M++;jK(h(z,c)).subscribe(Z=new rx(g,function(I){return g.next(I)},void 0,function(){Z=null;
W&&!Z&&g.complete()}))},void 0,function(){(W=!0,!Z)&&g.complete()}))})};
cR=function(h,E){E=E===void 0?!1:E;return lr(function(g,Z){var M=0;g.subscribe(new rx(Z,function(W){var z=h(W,M++);(z||E)&&Z.next(W);!z&&Z.complete()}))})};
CnN=function(h,E,g){var Z=ir(h)||E||g?{next:h,error:E,complete:g}:h;return Z?lr(function(M,W){M.subscribe(new rx(W,function(z){var c;(c=Z.next)==null||c.call(Z,z);W.next(z)},function(z){var c;
(c=Z.error)==null||c.call(Z,z);W.error(z)},function(){var z;
(z=Z.complete)==null||z.call(Z);W.complete()}))}):PA};
JbO=function(){var h=_.VF.apply(0,arguments),E=mc$(h);return lr(function(g,Z){for(var M=h.length,W=Array(M),z=h.map(function(){return!1}),c=!1,I={i$jscomp$230:0};I.i$jscomp$230<M;I={i$jscomp$230:I.i$jscomp$230},I.i$jscomp$230++)jK(h[I.i$jscomp$230]).subscribe(new rx(Z,function(B){return function(U){W[B.i$jscomp$230]=U;
c||z[B.i$jscomp$230]||(z[B.i$jscomp$230]=!0,(c=z.every(PA))&&(z=null))}}(I),void 0,IH));
g.subscribe(new rx(Z,function(B){c&&(B=[B].concat(_.$E(W)),Z.next(E?E.apply(null,_.$E(B)):B))}))})};
q6O=function(h){try{return!!h&&h.location.href!=null&&eu$(h,"foo")}catch(E){return!1}};
fb4=function(h){var E=[],g=0,Z;for(Z in h)E[g++]=Z;return E};
N2Z=function(h,E){for(var g in h)if(h[g]==E)return!0;return!1};
t8z=function(h,E,g){for(var Z in h)if(E.call(g,h[Z],Z,h))return Z};
S6q=function(h){if(!h||typeof h!=="object")return h;if(typeof h.clone==="function")return h.clone();if(typeof Map!=="undefined"&&h instanceof Map)return new Map(h);if(typeof Set!=="undefined"&&h instanceof Set)return new Set(h);if(h instanceof Date)return new Date(h.getTime());var E=Array.isArray(h)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(h)||h instanceof DataView?{}:new h.constructor(h.length),g;for(g in h)E[g]=S6q(h[g]);return E};
xsz=function(h){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return xsz.apply(null,arguments[0]);if(E%2)throw Error("ka");for(var g={},Z=0;Z<E;Z+=2)g[arguments[Z]]=arguments[Z+1];return g};
wRV=function(h){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return wRV.apply(null,arguments[0]);for(var g={},Z=0;Z<E;Z++)g[arguments[Z]]=!0;return g};
_.of=function(h){return new GHd(h[0].toLowerCase())};
Dsx=function(h){for(var E=_.VF.apply(1,arguments),g=h[0],Z=0;Z<h.length-1;Z++)g+=String(E[Z]),g+=h[Z+1];E=document.implementation.createHTMLDocument("");Z=E.createElement("style");E.head.appendChild(Z);E=Z.sheet;E.insertRule(g,0);if(E.cssRules.length===1&&(g=E.cssRules[0],g instanceof CSSStyleRule))return new cA(g.cssText.replace(/</g,"\\3C "))};
lbZ=function(h){try{return new URL(h,window.document.baseURI)}catch(E){return new URL("about:invalid")}};
rbN=function(h,E){var g=E.createRange();g.selectNode(E.body);h=AL(h);return g.createContextualFragment(ux(h))};
msa=function(h){h=h.nodeName;return typeof h==="string"?h:"FORM"};
vpx=function(h){h=h.nodeType;return h===1||typeof h!=="number"};
Rf=function(h,E,g){h.setAttribute(E,g)};
Htq=function(h){return h.parts.map(function(E){var g=E.descriptor;return""+E.url+(g?" "+g:"")}).join(" , ")};
_.BR=function(h){var E=_.VF.apply(1,arguments);if(E.length===0)return _.wU(h[0]);for(var g=h[0],Z=0;Z<E.length;Z++)g+=encodeURIComponent(E[Z])+h[Z+1];return _.wU(g)};
_.U6=function(h,E){h=_.lx(h).toString();var g=h.split(/[?#]/),Z=/[?]/.test(h)?"?"+g[1]:"";return $sW(g[0],Z,/[#]/.test(h)?"#"+(Z?g[2]:g[1]):"",E)};
$sW=function(h,E,g,Z){function M(z,c){z!=null&&(Array.isArray(z)?z.forEach(function(I){return M(I,c)}):(E+=W+encodeURIComponent(c)+"="+encodeURIComponent(z),W="&"))}
var W=E.length?"&":"?";Z.constructor===Object&&(Z=Object.entries(Z));Array.isArray(Z)?Z.forEach(function(z){return M(z[1],z[0])}):Z.forEach(M);
return _.wU(h+E+g)};
Lt=function(h,E,g,Z){this.top=h;this.right=E;this.bottom=g;this.left=Z};
K84=function(h){h=h.global;if(h.PendingGetBeacon)return h.PendingGetBeacon};
Ct=function(h){return function(E){return E.pipe(OtN(h,Ms(new d2)))}};
Jb=function(h){return function(E){return E.pipe(OtN(h,pt(1)))}};
OtN=function(h,E){function g(Z){return new UZ(function(M){return Z.subscribe(function(W){e8(h,function(){return void M.next(W)},3)},function(W){e8(h,function(){return void M.error(W)},3)},function(){e8(h,function(){return void M.complete()},3)})})}
return BA(g,HX$(),E,mn(),g)};
Y6$=function(h){var E=np$(h);return E===null?new qs(null):E.pipe(vA(function(g){g=g.serialize();if(XRZ)g=_.MN.btoa(g);else{for(var Z=[],M=0,W=0;W<g.length;W++){var z=g.charCodeAt(W);z>255&&(Z[M++]=z&255,z>>=8);Z[M++]=z}g=_.lJ(Z)}return g}),hb(1),Jb(h.queue))};
sf$=function(h){var E=E===void 0?{}:E;if(typeof Event==="function")return new Event(h,E);if(typeof document!=="undefined"){var g=document.createEvent("CustomEvent");g.initCustomEvent(h,E.bubbles||!1,E.cancelable||!1,E.detail);return g}throw Error();};
V8Z=function(h){return typeof h==="string"?document.getElementById(h):h};
yb4=function(h){var E=!1;E=E===void 0?!1:E;if(h.tagName==="IMG"){if(h.complete&&(!h.naturalWidth||!h.naturalHeight))return!0;var g;if(E&&((g=h.style)==null?void 0:g.display)==="none")return!0}var Z,M;return kRZ.test((Z=h.getAttribute("width"))!=null?Z:"")&&kRZ.test((M=h.getAttribute("height"))!=null?M:"")};
F8q=function(h,E){if(h.tagName==="IMG")return h.naturalWidth&&h.naturalHeight?!0:!1;try{if(h.readyState)var g=h.readyState;else{var Z,M;g=(Z=h.contentWindow)==null?void 0:(M=Z.document)==null?void 0:M.readyState}return g==="complete"}catch(W){return E===void 0?!1:E}};
AbZ=function(h){h||(h=function(E,g,Z){E.addEventListener(g,Z)});
return h};
Qfz=function(h,E){var g=T2$();g=g===void 0?new btZ:g;if(h=V8Z(h)){var Z=AbZ(Z);for(var M=!1,W=function(r){M||(M=!0,E(r))},z,c=2,I=0;I<uKM.length;++I)if(uKM[I]===h.tagName){c=3;
z=[h];break}z||(z=h.querySelectorAll(uKM.join(",")));var B=0,U=0,L=!0,d=h=!1;I={};for(var C=0;C<z.length;I={isImg:void 0},C++){var q=z[C];if(!yb4(q))if(I.isImg=q.tagName==="IMG",F8q(q,g.crossDomainLoadedDefault))h=!0,I.isImg&&(L=!0);else{B++;var w=function(r){return function(v){B--;!B&&L&&W(c);r.isImg&&(v=v&&v.type==="error",U--,v||(L=!0),!U&&d&&L&&W(c))}}(I);
Z(q,"load",w);I.isImg&&(U++,Z(q,"error",w))}}U===0&&(L=!0);z=null;z=_.MN.document.readyState==="complete";if(B===0&&!h&&z)c=5;else if(B||!h){Z(_.MN,"load",function(){!g.pendingImagesBlockLoad||!U&&L?W(4):d=!0});
return}W(c)}};
hlM=function(h,E,g){if(h)for(var Z=0;h!=null&&Z<500&&!g(h);++Z)h=E(h)};
EdM=function(h,E){hlM(h,function(g){try{return g===g.parent?null:g.parent}catch(Z){}return null},E)};
gdd=function(h,E){if(h.tagName=="IFRAME")E(h);else{h=h.querySelectorAll("IFRAME");for(var g=0;g<h.length&&!E(h[g]);++g);}};
Z8z=function(h){return(h=h.ownerDocument)&&(h.parentWindow||h.defaultView)||null};
MfN=function(h,E,g){try{var Z=JSON.parse(g.data)}catch(z){}if(typeof Z==="object"&&Z&&Z.type==="creativeLoad"){var M=Z8z(h);if(g.source&&M){var W;EdM(g.source,function(z){try{if(z.parent===M)return W=z,!0}catch(c){}});
W&&gdd(h,function(z){if(z.contentWindow===W)return E(Z),!0})}}};
Wxz=function(h){return typeof h==="string"?document.getElementById(h):h};
aJ4=function(){var h={};return h[0]=_.BR(phd,"current"),h[1]=_.BR(G8z),h[2]=_.BR(zl$),h};
ft=function(h,E){return h.left===E.left&&h.top===E.top&&h.width===E.width&&h.height===E.height};
cAq=function(h,E){return{left:Math.max(h.left,E.left),top:Math.max(h.top,E.top),width:Math.max(0,Math.min(h.left+h.width,E.left+E.width)-Math.max(h.left,E.left)),height:Math.max(0,Math.min(h.top+h.height,E.top+E.height)-Math.max(h.top,E.top))}};
i8q=function(h,E){return{left:Math.round(h.left+E.x),top:Math.round(h.top+E.y),width:h.width,height:h.height}};
oda=function(h,E,g){if(h&&E!==null&&E!=E.top){if(!E.top)return new _.Ns(-12245933,-12245933);E=E.top}try{return(g===void 0?0:g)?(new _.Ns(E.innerWidth,E.innerHeight)).round():_.S8(E).round()}catch(Z){return new _.Ns(-12245933,-12245933)}};
IJq=function(h,E,g){try{if(h){if(!E.top)return new Lt(-12245933,-12245933,-12245933,-12245933);E=E.top}var Z=oda(h,E,g),M=Z.height,W=Z.width;if(W===-12245933)return new Lt(W,W,W,W);var z=xp(w2(E.document)),c=z.x,I=z.y;return new Lt(I,c+W,I+M,c)}catch(B){return new Lt(-12245933,-12245933,-12245933,-12245933)}};
RlM=function(h){var E;return(E=h.google_tag_data)!=null?E:h.google_tag_data={}};
P4V=function(h){var E,g;return typeof((E=h.navigator)==null?void 0:(g=E.userAgentData)==null?void 0:g.getHighEntropyValues)==="function"};
U3d=function(h){if(!P4V(h))return null;var E=RlM(h);if(E.uach_promise)return E.uach_promise;h=h.navigator.userAgentData.getHighEntropyValues(BO$).then(function(g){E.uach!=null||(E.uach=g);return g});
return E.uach_promise=h};
x3u=function(h){var E;return LxN(jD$(d3x(C44(JA4(elx(qtu(fJq(NO$(new tfN,h.architecture||""),h.bitness||""),h.mobile||!1),h.model||""),h.platform||""),h.platformVersion||""),h.uaFullVersion||""),((E=h.fullVersionList)==null?void 0:E.map(function(g){var Z=new StV;Z=_.ln(Z,1,g.brand);return _.ln(Z,2,g.version)}))||[]),h.wow64||!1)};
whq=function(h){var E,g;return(g=(E=U3d(h))==null?void 0:E.then(function(Z){return x3u(Z)}))!=null?g:null};
D3z=function(h,E){return new UZ(function(g){var Z=!1,M=Array(E.length);M.fill(void 0);var W=new Set,z=new Set,c=function(L,d){h.running?(M[d]=L,W.add(d),Z||(Z=!0,e8(h,function(){Z=!1;g.next(_.Y$(M))},1))):g.error(new r2(d))},I=function(L,d){z.add(d);
W.add(d);e8(h,function(){g.error(L)},1)},B=function(L){z.add(L);
e8(h,function(){z.size===E.length&&g.complete()},1)},U=E.map(function(L,d){return L.subscribe(function(C){return void c(C,d)},function(C){return void I(C,d)},function(){return void B(d)})});
return function(){U.forEach(function(L){return void L.unsubscribe()})}})};
m34=function(h,E,g){function Z(){if(E.debugChannel){var r=E.debugChannel,v=r.next;var H={creativeId:E.debugNames.getName(g),requiredSignals:M,signals:Object.assign({},W),hasPrematurelyCompleted:z,errorMessage:c,erroredSignalKey:I};H={specMajor:2,specMinor:0,specPatch:0,timestamp:yL(E.timeProvider.now(),new FU(0,E.timeProvider.timeline)),instanceId:E.debugNames.getName(E.symbol),creativeState:H};v.call(r,H)}}
for(var M=Object.keys(h),W={},z=!1,c=null,I=null,B={},U=new Set,L=[],d=[],C=_.G(M),q=C.next(),w={};!q.done;w={key$jscomp$396:void 0},q=C.next())w.key$jscomp$396=q.value,q=h[w.key$jscomp$396],q instanceof qs?(B[w.key$jscomp$396]=q.value,U.add(w.key$jscomp$396),E.debugChannel&&(W[String(w.key$jscomp$396)]=abZ(q.value))):(q=q.pipe(E6(function(r,v){return GRW(r)||GRW(v)?!1:r===v}),vA(function(r){return function(v){E.debugChannel&&(W[String(r.key$jscomp$396)]=abZ(v),Z());
var H={};return H[r.key$jscomp$396]=v,H}}(w)),TH(function(r){return function(v){if(v instanceof r2)throw new lJ$(String(r.key$jscomp$396));
throw v;}}(w)),CnN(function(r){return function(){U.add(r.key$jscomp$396)}}(w),function(r){return function(v){I=String(r.key$jscomp$396);
c=String(v);Z()}}(w),function(r){return function(){U.has(r.key$jscomp$396)||(z=!0,Z())}}(w))),d.push(w.key$jscomp$396),L.push(q));
(h=Object.keys(W).length>0)&&Z();C=D3z(E.queue,L).pipe(TH(function(r){if(r instanceof r2)throw new rAu(String(d[r.inputObservableIndex]));throw r;}),vA(function(r){return Object.freeze(Object.assign.apply(Object,[{},
B].concat(_.$E(r))))}));
return(L=L.length>0)&&h?VL(wx(Object.freeze(B)),C):L?C:wx(Object.freeze(B))};
vdu=function(h,E,g,Z,M){return h.performanceMonitor.timeExecution.bind(h.performanceMonitor)(733,function(){var W={};try{return E.pipe(TH(function(z){Z(Object.assign({},W,{error:z}));return YE}),nX(function(z){try{var c=g(h,z)}catch(B){return Z(Object.assign({},W,{error:B instanceof Error?B:String(B)})),YE}var I={};
return m34(c,h,z.symbol).pipe(CnN(function(B){I=B}),pt(1),mn()).pipe(M,TH(function(B){Z(Object.assign({},I,{error:B}));
return YE}),g2(void 0),vA(function(){return!0}))})).pipe(GR(function(z){return z+1},0),TH(function(z){Z(Object.assign({},W,{error:z}));
return YE}))}catch(z){return Z(Object.assign({},W,{error:z})),YE}})()};
m8=function(h){var E=new Map;if(typeof h!=="object"||h===null)return E;Object.values(h).forEach(function(g){g&&typeof g.extrapolateToNow==="function"&&(E.has(g.clock.timeline)||E.set(g.clock.timeline,g.clock.now()))});
return E};
H8$=function(h,E){return typeof h==="string"?encodeURIComponent(h):typeof h==="number"?String(h):Array.isArray(h)?h.map(function(g){return H8$(g,E)}).join(","):h instanceof FU?h.toString():h&&typeof h.extrapolateToNow==="function"?H8$(h.extrapolateUsingTimestampMap(E).value,E):h===!0?"1":h===!1?"0":h===void 0||h===null?null:h instanceof $3O?Kxq(h):[h.top,
h.left,h.top+h.height,h.left+h.width].join()};
O8V=function(h,E){h=Object.entries(h).map(function(g){var Z=_.G(g);g=Z.next().value;Z=Z.next().value;Z=H8$(Z,E);return Z===null?"":g+"="+Z}).filter(function(g){return g!==""});
return h.length?h.join("&"):""};
Yt$=function(h,E){var g=ndV,Z=XhZ;E=E===void 0?.01:E;return function(M){E>0&&Math.random()<=E&&(h.global.HTMLFencedFrameElement&&h.global.fence&&typeof h.global.fence.reportEvent==="function"&&h.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),M=Object.assign({},M,{errorMessage:M.error instanceof Error&&M.error.message?M.error.message:String(M.error),errorStack:M.error instanceof Error&&M.error.stack?String(M.error.stack):null,errorName:M.error instanceof
Error&&M.error.name?String(M.error.name):null,errorContext:String(h.performanceMonitor.timedFunctionContext),errorEscapedQueryId:M.escapedQueryId}),g(Object.assign({},M,{payloadMapper:function(){return function(W){try{return Z(Object.assign({},W))}catch(z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),m8(M)).forEach(function(W){h.beaconFactory.makeBeacon(W).sendNow()}))}};
sDM=function(){var h=_.VF.apply(0,arguments);return function(E){var g=E.pipe(pt(1),mn());E=h.map(function(Z){return g.pipe(Z,g2(!0))});
return KX(E).pipe(hb(1),br())}};
VfM=function(){var h=_.VF.apply(0,arguments);return function(E){var g=E.pipe(pt(1),mn());E=h.map(function(Z){return g.pipe(Z,g2(!0))});
return VL.apply(null,_.$E(E)).pipe(hb(1),br())}};
k8N=function(h,E){return function(g){var Z=g.pipe(pt(1),mn());g=Z.pipe(h,g2(!0));Z=Z.pipe(BA(E,pt(),mn()),g2(!0));g=KX([g,Z]);return W8$(g,Z).pipe(hb(1),br())}};
yAz=function(h,E,g){g(!0)};
Fxz=function(h,E){return BA(af(function(g){var Z=h(g),M=E(g),W={};return Z&&M&&W?new UZ(function(z){M(Z,W,function(c){z.next(Object.assign({},g,{canEmit:c}));z.complete()});
return function(){}}):vR}),kE(function(g){return g.canEmit}))};
AAZ=function(h){var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(g){return g.pipe(af(function(Z){return new UZ(function(M){function W(){c.disconnect();I.unsubscribe()}
var z=h.MutationObserver;if(z&&Z.ref!==void 0){var c=new z(function(B){M.next(B)});
c.observe(Z.ref,E);var I=Z.JSC$9361_released.subscribe(W);return W}})}))}};
TO4=function(h){if(h.measurementDeferralState===3)return null;if(h.timeOnScreenReason!==void 0){var E=h.creativeFound===!1?"n":null;if(E!==null)return E}return h.geometricMeasurementErrors instanceof HR?"msf":h.contextValidationErrors instanceof $p?"c":h.contextVisibilityKnown===!1?"pv":h.geometricMeasurementErrors||h.contextValidationErrors?"x":null};
uR$=function(h,E){return h.replace(b8u,function(g,Z){try{var M=_.Kt.get(E,Z);if(M==null||M.toString()==null)return g;M=M.toString();if(M==""||!_.ca(M==null?"":String(M)))return encodeURIComponent(M).replace(/%2C/g,",")}catch(W){}return g})};
QDZ=function(h,E){var g=Object.assign({},h),Z=h.userAgentClientHints;g=(delete g.userAgentClientHints,g);g=h.payloadMapper(g);var M=O8V(g,E);return _.O6(h.urlPrefixes,function(W){var z="";typeof Z==="string"&&(z="&"+O8V({uach:Z},E));var c={};return uR$(W,(c.VIEWABILITY=M,c))+z})};
ndV=function(h,E){var g=h.payloadMapper(h),Z=O8V(g,E);return Z?_.O6(h.urlPrefixes,function(M){M=M.indexOf("?")>=0?M:M+"?";M="?&".indexOf(M.slice(-1))>=0?M:M+"&";return M+Z}):h.urlPrefixes};
hou=function(){return BA(kE(function(h){return h!==void 0}),vA(function(h){return h}))};
EZx=function(h){return BA(vA(function(){return!0}),zR(!1),Jb(h))};
gZ$=function(h){return h.length<=0?YE:KX(h.map(function(E){var g=0;return E.pipe(vA(function(Z){return{index:g++,value:Z}}))})).pipe(kE(function(E){return E.every(function(g){return g.index===E[0].index})}),vA(function(E){return E.map(function(g){return g.value})}))};
Zwu=function(h,E){h.currentState&&(h.previousState=h.currentState);h.currentState=E;h.previousState&&h.previousState.value?(E=Math.max(0,yL(E.timestamp,h.previousState.timestamp)),h.totalTime+=E,h.consecutiveTime+=E):h.consecutiveTime=0;return h};
MAV=function(){return BA(GR(Zwu,{totalTime:0,consecutiveTime:0}),vA(function(h){return h.totalTime}))};
WEN=function(){return BA(GR(Zwu,{totalTime:0,consecutiveTime:0}),vA(function(h){return h.consecutiveTime}))};
pmz=function(h,E){return function(g){return gZ$(E.map(function(Z){return g.pipe(h(Z))}))}};
G94=function(){var h;return BA(CnN(function(E){return void(h=E.timestamp)}),WEN(),vA(function(E){return{timestamp:h,
value:Math.round(E)}}))};
zoq=function(h,E){return ft(h.topWindowViewportExternalGeometry,E.topWindowViewportExternalGeometry)&&ft(h.elementGeometry,E.elementGeometry)&&ft(h.exposedViewportLocalGeometry,E.exposedViewportLocalGeometry)&&ft(h.intersectionGeometry,E.intersectionGeometry)&&h.elementGeometrySourceName===E.elementGeometrySourceName&&h.measurementRequests===E.measurementRequests&&h.viewportGeometrySourceName===E.viewportGeometrySourceName&&h.viewportLocalAppOffset.x===E.viewportLocalAppOffset.x&&h.viewportLocalAppOffset.y===
E.viewportLocalAppOffset.y};
oZz=function(h,E){return function(g){return function(Z){var M=Z.pipe(Ms(new d2),mn());Z=g.element.pipe(E6());M=M.pipe(vA(function(W){return W.value}));
return KX([Z,M,E]).pipe(vA(function(W){var z=_.G(W);W=z.next().value;var c=z.next().value;z=z.next().value;if(W.ref===void 0)var I={top:0,left:0,width:0,height:0};else{I=W.ref.getBoundingClientRect();var B=W.ref,U=h.global,L=new _.nt(0,0),d=XK(_.Yp(B));if(eu$(d,"parent")){do{if(d==U)var C=_.s6(B);else C=aaO(B),C=new _.nt(C.left,C.top);L.x+=C.x;L.y+=C.y}while(d&&d!=U&&d!=d.parent&&(B=d.frameElement)&&(d=d.parent))}I={top:L.y,left:L.x,width:I.width,height:I.height}}I=i8q(I,c.viewportLocalAppOffset);
U=cAq(I,c.exposedViewportLocalGeometry);L=h.timeProvider.now();d=Object;B=d.assign;if(z!==2||h.inCrossDomainIframe||U.width<=0||U.height<=0)var q=!1;else try{var w=h.document.elementFromPoint(U.left+U.width/2,U.top+U.height/2);q=w?!cV$(w,W):!1}catch(r){q=!1}return{timestamp:L,value:B.call(d,{},c,{elementGeometrySourceName:"geo",intersectionGeometry:q?iwZ.intersectionGeometry:U,elementGeometry:I})}}),Ct(h.queue))}}};
cV$=function(h,E,g){g=g===void 0?0:g;return h.ref===void 0||E.ref===void 0?!1:h.ref===E.ref||_.Vw(E.ref,function(Z){return Z===h.ref})?!0:E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView===E.ref.ownerDocument.defaultView.top?!1:g<10&&E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView.frameElement?cV$(h,new kp(E.ref.ownerDocument.defaultView.frameElement),g+1):!0};
PX4=function(h){return function(E){return E.pipe(h.ResizeObserver?Ia$(h):RoZ(h),pt(1),mn())}};
Ia$=function(h){return function(E){return E.pipe(af(function(g){var Z=h.ResizeObserver;if(!Z||g.ref===void 0)return wx(iwZ.elementGeometry);var M=(new UZ(function(W){function z(){g.ref!==void 0&&c.unobserve(g.ref);c.disconnect();I.unsubscribe()}
if(g.ref===void 0)return W.complete(),function(){};
var c=new Z(function(B){B.forEach(function(U){W.next(U)})});
c.observe(g.ref);var I=g.JSC$9361_released.subscribe(z);return z})).pipe(Ah(h.performanceMonitor,736),vA(function(W){return W.contentRect}));
return VL(wx(g.ref.getBoundingClientRect()),M)}),E6(ft))}};
RoZ=function(h){return function(E){var g=E.pipe(AAZ(h)),Z=h.onResize;g=VL(E.pipe(vA(function(){return sf$("resize")})),g,Z);
return KX(E,g).pipe(Ah(h.performanceMonitor,737),vA(function(M){M=_.G(M).next().value;return M.ref===void 0?void 0:M.ref.getBoundingClientRect()}),hou(),E6(ft))}};
LE$=function(h,E){var g=B9u(h,E).pipe(pt(1),mn());return function(Z){return function(M){M=M.pipe(af(function(W){return W.element}),E6());
return KX([g,M]).pipe(af(function(W){var z=_.G(W);W=z.next().value;z=z.next().value;return U6W(h,W.intersectionObserver,PX4(h),W.observations,Z,W.flushRecords,z)}),Ct(h.queue))}}};
jpM=function(h){return vA(function(E){return E.value.viewportGeometrySourceName!=="nio"?E:Object.assign({},E,{value:Object.assign({},E.value,{exposedViewportLocalGeometry:yw(h,!0),topWindowViewportExternalGeometry:yw(h,!0)})})})};
d6$=function(h,E){return wx(E).pipe(h,vA(function(){return E}))};
B9u=function(h,E){return h.timeProvider.timeline!==CXz?DT(new HR(2)):h.MutationObserver?typeof IntersectionObserver==="undefined"?DT(new HR(0)):(new UZ(function(g){var Z=new d2,M=new FK(Z.next.bind(Z),{threshold:[].concat(_.$E(E))});g.next({observations:Z.pipe(Ah(h.performanceMonitor,735)),intersectionObserver:M,flushRecords:function(W){W=M.takeRecords(W);W.length>0&&Z.next(W)}})})).pipe(hb(1),pt(1),mn()):DT(new HR(1))};
JV4=function(h){return NxO(h.sort(function(E,g){return E.time-g.time}),vEz)};
U6W=function(h,E,g,Z,M,W,z){return new UZ(function(c){function I(){q||(q=!0,z.ref!==void 0&&E.unobserve(M,z.ref),U.unsubscribe(),C.unsubscribe(),d.unsubscribe(),w.unsubscribe())}
if(z.ref!==void 0){eoz(E,M);E.observe(M,z.ref);var B=new TR({timestamp:h.timeProvider.now(),value:Object.assign({},iwZ,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),U=Z.pipe(nX(function(r){return JV4(r)}),kE(function(r){return r.target===z.ref}),vA(function(r){return{timestamp:new FU(r.time,CXz),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:r.rootBounds||bn,topWindowViewportExternalGeometry:r.rootBounds||yw(h,!0),measurementRequests:L,elementGeometrySourceName:"nio",intersectionGeometry:r.intersectionRect,elementGeometry:r.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:r.isIntersecting,isV2Visible:r.isVisible}}}),Ms(B),mn()).subscribe(c),L=new d2,d=L.subscribe(function(){W(M);
c.next({timestamp:h.timeProvider.now(),value:B.value.value});z.ref!==void 0&&(E.unobserve(M,z.ref),E.observe(M,z.ref))}),C=d6$(g,z).subscribe(function(){L.next()}),q=!1,w=z.JSC$9361_released.subscribe(function(){return I()});
return I}})};
q9z=function(h,E){var g=h.getOnBackgrounded().pipe(vA(function(){return"b"}));
return W8$(E,g).pipe(hb(1),Jb(h.queue))};
un=function(h){return function(E){var g;return E.pipe(CnN(function(Z){return void(g=Z.timestamp)}),vA(function(Z){return Z.value}),h,vA(function(Z){return{timestamp:g,
value:Z}}))}};
faM=function(h){return h.intersectionGeometry.width*h.intersectionGeometry.height/(h.elementGeometry.width*h.elementGeometry.height)};
Qw=function(h,E,g){g=g===void 0?function(Z,M){return Z===M}:g;
return h.timestamp.equals(E.timestamp)&&g(h.value,E.value)};
Et=function(h,E){return E.pipe(vA(function(g){return new hA(h.timeProvider,{timestamp:h.timeProvider.now(),value:g})}))};
N9W=function(h){return function(E){return E.pipe(JbO(h),vA(function(g){var Z=_.G(g);g=Z.next().value;Z=Z.next().value;var M=g.value;return{timestamp:g.timestamp,value:M>=1?!0:M<=0?!1:M>=Z}}))}};
S9u=function(){return BA(kE(function(h,E){return E>0}),tAW,zR(-1),E6())};
x64=function(h,E,g){return h?KX([E,g]).pipe(kE(function(Z){var M=_.G(Z);Z=M.next().value;M=M.next().value;return Z.timestamp.equals(M.timestamp)}),vA(function(Z){var M=_.G(Z);
Z=M.next().value;M=M.next().value;return Z.value>M.value?Z:M})):E};
laZ=function(h){return function(E){var g=E.pipe(wm$),Z=E.pipe(D6O);return h instanceof UZ?h.pipe(af(function(M){return x64(M,g,Z)})):x64(h.value,g,Z)}};
Y9Z=function(h,E,g,Z){var M=Z.geometryIsOccluded,W=Z.exposureThreshold,z=Z.wasLargeAdAtRender,c=Z.allowLargeAdThreshold,I=Z.largeAdExposureThreshold,B=Z.mayUseViewportShareExposure,U=Z.hasMeasurementStarted;Z=Z.useIntersectionObserverV2;E=rV4(h,g,E);g=m64(h,g);Z=vZV(E,Z);var L=Hwu(h,M,B,E),d=L.pipe(vA(function(y){return y.value}),E6(),Jb(h),GR(function(y,A){return Math.max(y,A)},0)),C=L.pipe(vA(function(y){return y.value}),S9u(),Jb(h)),q=E.pipe($6z,vA(function(y){return y.value}),hb(2),E6(),Jb(h));
z=KEz(h,E,z,c);var w=z.pipe(zR(!1),E6(),vA(function(y){return y?I:W}));
c=L.pipe(N9W(w),E6(),Jb(h));var r=KX([c,E]).pipe(kE(function(y){var A=_.G(y);y=A.next().value;A=A.next().value;return y.timestamp.equals(A.timestamp)}),vA(function(y){var A=_.G(y);
y=A.next().value;A=A.next().value;return{visible:y.value,geometry:A.value.elementGeometry}}),GR(function(y,A){return!A.visible&&y.visible?y:A},{visible:!1,
geometry:bn}),vA(function(y){return y.geometry}),zR(bn),Jb(h),E6(ft));
B=B instanceof UZ?B.pipe(E6(),ur()):vR;w=KX([B,w]).pipe(ur());var v=E.pipe(kE(function(y){return y.value.viewportGeometrySourceName!=="ns"&&y.value.elementGeometrySourceName!=="ns"}),GR(function(y){return y+1},0),zR(0),Jb(h)),H=g.pipe(ur(!0),zR(!1),Jb(h));
H=KX([U,H]).pipe(vA(function(y){var A=_.G(y);y=A.next().value;A=A.next().value;return y&&!A}),Jb(h));
var u=E.pipe(Ow$,E6()),k=u.pipe(vA(function(y){return y.value}),GR(function(y,A){return Math.max(y,A)},0),E6(),Jb(h));
h=u.pipe(vA(function(y){return y.value}),S9u(),Jb(h));
return{shouldResetExposureSignals:B,shouldResetViewabilitySignals:w,geometrySignals:{readyGeometryWithDefault:E,measurementStrategy:E.pipe(nZz),creativePosition:r.pipe(E6(ft)),visible:c.pipe(E6(Qw)),timestampedExposure:L.pipe(E6(Qw)),maximumExposure:d,minimumExposure:C,browserSize:E.pipe(Xmd,E6(_.Tu)),timestampedScreenShare:u,maxScreenShare:k,minScreenShare:h,geometricMeasurementErrors:g,measurementRequests:E.pipe(vA(function(y){return y.value.measurementRequests})),
isLargeAd:z,geometryIsOccluded:M,hasMeasurementStarted:U,geometryMeasurable:H,validMeasurementCount:v,loadTimeExposure:q,v2VisibilityBitVector:Z}}};
m64=function(h,E){return E.pipe(kE(function(){return!1}),vA(function(g){return g}),TH(function(g){return gO(new qs(g),h)}))};
rV4=function(h,E,g){return E.pipe(Zta(vR),Jb(h)).pipe(E6(function(Z,M){return Qw(Z,M,zoq)}),zR({timestamp:g.now(),
value:iwZ}),Jb(h))};
Hwu=function(h,E,g,Z){g=Z.pipe(laZ(g),un(vA(function(M){return Math.round(M*100)/100})),Jb(h));
return E instanceof qs?g:KX([g,E]).pipe(vA(function(M){var W=_.G(M);M=W.next().value;W=W.next().value;return{timestamp:W.timestamp.maximum(M.timestamp),value:W.value?0:M.value}}),E6(Qw),Jb(h))};
KEz=function(h,E,g,Z){E=[E.pipe(vA(function(M){return M.value.elementGeometry.width*M.value.elementGeometry.height>=242500}))];
g instanceof UZ&&E.push(g.pipe(vA(function(M){return!!M})));
g=KX(E);return Z?g.pipe(vA(function(M){return M.some(function(W){return W})}),zR(!1),E6(),Jb(h)):gO(new qs(!1),h)};
vZV=function(h,E){h=KX([h,E]).pipe(vA(function(M){var W=_.G(M);M=W.next().value;if(W.next().value&&M.value.isIntersecting)return M.value.isV2Visible}),E6());
var g=h.pipe(vA(function(M){return M===void 0?!0:M}),GR(function(M,W){return M||!W},!1)),Z=h.pipe(GR(function(M,W){return W===void 0?M:W?!1:M!=null?M:!0},void 0),vA(function(M){return!!M}));
return KX([E,pRd(h,g,Z)]).pipe(vA(function(M){var W=_.G(M);M=W.next().value;var z=_.G(W.next().value);W=z.next().value;var c=z.next().value;z=z.next().value;var I=0;if(!M)return 0;if(W===void 0)return 16;W&&(I|=1);W||(I|=2);c&&(I|=4);z&&(I|=8);return I}))};
AVu=function(h,E,g,Z,M){var W=spq.timeThresholdMs;var z=z===void 0?new VAZ(E,Z):z;return(new UZ(function(c){var I=g.pipe(zR(void 0),af(function(){return k9M(M)})).pipe(vA(function(B){var U=B.value;
B=B.timestamp;var L=U.visible;U=U.consecutiveViewTime;var d=U>=W;d||!L?yVd(z):(B=Math.max(0,yL(E.now(),B)),FEa(z,Math.max(0,W-U-B)));return d}),GR(function(B,U){return U||B},!1),E6()).subscribe(c);
return function(){z.dispose();I.unsubscribe()}})).pipe(cR(function(c){return!c},!0),Jb(h))};
k9M=function(h){return gZ$([h,h.pipe(G94())]).pipe(vA(function(E){var g=_.G(E);E=g.next().value;g=g.next().value;return{timestamp:E.timestamp,value:{visible:E.value,consecutiveViewTime:g.value}}}),E6(function(E,g){return Qw(E,g,function(Z,M){return Z.consecutiveViewTime===M.consecutiveViewTime&&Z.visible===M.visible})}))};
T94=function(){return BA(WEN(),GR(function(h,E){return Math.max(h,E)},0),vA(function(h){return Math.round(h)}))};
bwW=function(h){return BA(N9W(wx(h)),T94())};
uhz=function(h,E){return E instanceof UZ?E.pipe(af(function(g){return(g=g?15:null)?DT(new HR(g)):h})):(E=E.value?15:null)?DT(new HR(E)):h};
Qpq=function(h){var E=new HR(13);if(h.length<1)return{chain:YE,capturedErrors:YE};var g=new d2,Z=h[0];return{chain:h.slice(1).reduce(function(M,W){return M.pipe(TH(function(z){g.next(z);return W}))},Z).pipe(TH(function(M){g.next(M);
return DT(E)}),Ms(new d2),mn()),
capturedErrors:g}};
hJd=function(h,E){var g=h.pipe(Ms(new d2),mn());return af(function(Z){return g.pipe(E(Z))})};
g3q=function(h,E){if(h.inCrossDomainIframe)return DT(new HR(6));var g=new d2;return VL(wx({}),E,g).pipe(vA(function(){return{timestamp:h.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:E3d(h),topWindowViewportExternalGeometry:yw(h,!0),measurementRequests:g,viewportLocalAppOffset:{x:0,y:0}}}}),Ct(h.queue))};
E3d=function(h){var E=yw(h,!1);if(!h.inIframe||!q6O(h.global.parent)||h.global.parent===h.global)return E;var g=new ZJ(h.global.parent,h.debugChannel);g.beaconFactory=h.beaconFactory;g=E3d(g);h=h.global.frameElement.getBoundingClientRect();return cAq(i8q(cAq(g,h),{x:E.left-h.left,y:E.top-h.top}),E)};
ZFd=function(h){if(h.prerendering)return 3;var E;return(E={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[h.visibilityState||h.webkitVisibilityState||h.mozVisibilityState||""])!=null?E:0};
MXZ=function(h){return h.document.JSC$9372_onVisibilityChange.pipe(vA(function(E){return E==="visible"}),E6(),Jb(h.queue))};
W1M=function(h,E,g){var Z;return E.pipe(E6(),af(function(M){return g.pipe(vA(function(){if(!Z){Z=!0;try{M.next()}finally{Z=!1}}return!0}))}),zR(!1),Jb(h.queue))};
pJu=function(h){return BA(un(vA(function(E){return E>=1?!0:E<=0?!1:E>=h})),MAV(),vA(function(E){return Math.round(E)}))};
zJu=function(h,E,g,Z,M){var W=GtN;if(W.length>1)for(var z=0;z<W.length-1;z++)if(W[z]<W[z+1])throw Error();z=M.pipe(zR(void 0),af(function(){return g.pipe(G94())}),E6(),Jb(h));
M=M.pipe(zR(void 0),af(function(){return g.pipe(T94())}),E6(),Jb(h));
return{totalMeasurementTime:Z.pipe(zR(void 0),af(function(){return E.pipe(vA(function(c){return{timestamp:c.timestamp,value:!0}}),MAV())}),E6(),Jb(h)),
totalUnviewedTime:Z.pipe(zR(void 0),af(function(){return E.pipe(vA(function(c){return{timestamp:c.timestamp,value:c.value===0}}),MAV())}),E6(),Jb(h)),
maxTimeOnScreen:Z.pipe(zR(void 0),af(function(){return E.pipe(pmz(bwW,W))}),E6(_.Tu),Jb(h)),
timeOnScreen:Z.pipe(zR(void 0),af(function(){return E.pipe(pmz(pJu,W),vA(function(c){return c.map(function(I,B){return B>0?I-c[B-1]:I})}))}),E6(_.Tu),Jb(h)),
maxConsecutiveViewTime:M,consecutiveViewTime:z.pipe(E6(Qw),Jb(h))}};
cxV=function(h){var E=!0;E=E===void 0?!1:E;return BA(af(function(g){return aGz(h.document,g,E)}),Jb(h.queue))};
iFq=function(h,E,g){var Z=g.pipe(vA(function(M){return{value:M,timestamp:h.timeProvider.now()}}),E6(Qw));
return E instanceof UZ?E.pipe(E6(),af(function(M){return M?gO(new qs({value:!1,timestamp:h.timeProvider.now()}),h.queue):Z})):E.value===!1?Z:new qs(!1)};
o3u=function(h,E,g,Z,M,W,z){var c=spq;E=E instanceof UZ?E.pipe(zR(!1),E6()):E;var I=!h.isMobile();g=iFq(h,g,Z);h=z.measurableCreative.pipe(EZx(h.queue));return Object.assign({},c,{geometryIsOccluded:g,wasLargeAdAtRender:M,allowLargeAdThreshold:I,mayUseViewportShareExposure:E,hasMeasurementStarted:h,useIntersectionObserverV2:W})};
RJW=function(h,E,g,Z,M,W){var z=1;W=W===void 0?!0:W;z=z===void 0?.01:z;var c=c===void 0?h.timeProvider.intervalObservable(100).pipe(Jb(h.queue)):c;return h.performanceMonitor.timeExecution(916,function(){return IG4(h,E.pipe(Ct(h.queue)),g.pipe(Ct(h.queue)),Z,M,W,z,c)})()};
IG4=function(h,E,g,Z,M,W,z,c){var I=MXZ(h).pipe(vA(function(U){return!U})),B=new PIW(h,[new BXd(h,GtN),
new Uaz(h,c)]);c=sDM(L1u,joM);return vdu(h,E,function(U,L){var d=gO(new qs(L.element),U.queue).pipe(cxV(U),Jb(U.queue)),C={loadedElement:d,shouldMeasure:d.pipe(ur(!0)),measurableCreative:d.pipe(vA(function(y){var A=A===void 0?Symbol():A;return Object.freeze({symbol:A,element:gO(new qs(y),U.queue)})})),
creativeSearchResult:gO(new qs("mue"),U.queue)},q=new qs(!1),w=new qs(!1),r=new qs(17),v=new qs(!1),H=new qs(!1),u=gO(M3,U.queue);q=B.buildGeometrySource(C,{inApp:q,useV2:!1,requestSource:gO(r,U.queue)}).geometrySource;C=o3u(U,v,w,I,H,u,C);w=Y9Z(U.queue,U.timeProvider,q,C);C=w.geometrySignals;v=w.shouldResetViewabilitySignals;w=zJu(U.queue,C.timestampedExposure,C.visible,w.shouldResetExposureSignals,v);v=AVu(U.queue,U.timeProvider,v,C.measurementRequests,C.visible);H=g.pipe(kE(function(y){return y===
L.element.ref}),vA(function(){return"ur"}));
u=cba(U.timeProvider,M).pipe(ur("t"));H=q9z(U,VL(H,u));u=W1M(U,C.measurementRequests,H.pipe(kE(function(y){return y!==null})));
q=H.pipe(kE(function(y){return y!==null}),vA(function(){return ZFd(U.global.document)===1}));
var k=dad(U.document);return Object.assign({},{beaconFactory:new qs(U.beaconFactory),context:new qs(U),inferredPingId:new qs("lidar2"),timeOnScreenPingId:new qs("lidartos"),binaryContext:new qs(17),binaryVersion:new qs(Z),requestSource:r,contextValidationErrors:new qs(U.validate()?null:new $p),contextVisibilityKnown:new qs(k),payloadMapper:new qs(XhZ),endOfSessionReason:H,timeOnScreenReason:H,requestMeasurementOnEndOfSession:u,hasImpressionFired:CIa,crossDomainIframeState:new qs(U.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:M3,inFetchLaterBeaconExperiment:M3,isTurtlex:M3,turtlexReportEventData:new qs(""),reportFencedFrameEvent:vR,isViewableAttributionEnabled:M3,inViewableAttributionExperiment:new qs(0),fetchBeaconFactory:vR,supportsPendingBeacon:M3,supportsFetchLater:M3,emit:new qs(yAz),beginToRenderEvent:new qs(Symbol()),activeViewUnmeasurableEvent:new qs(Symbol()),activeViewViewableEvent:new qs(Symbol()),creativeFound:CIa,immediateUrlPrefixes:new qs(L.immediateUrls),timeOnScreenUrlPrefixes:new qs(L.timeOnScreenUrls),
cpmavUrls:vR,viewableRelayUrls:vR,measurementDeferralState:new qs(2),urlSerializer:new qs(QDZ),viewUrlSerializer:new qs(Jxu),isCreativeLoaded:d.pipe(EZx(U.queue)),pageVisible:I.pipe(vA(function(y){return!y})),
eosPageVisible:q,timestampedExposureHistory:C.timestampedExposure.pipe(GR(function(y,A){y.push(A);return y},[]))},C,{viewable:Et(U,v),
maxTimeOnScreen:Et(U,w.maxTimeOnScreen),timeOnScreen:Et(U,w.timeOnScreen),maxConsecutiveViewTime:Et(U,w.maxConsecutiveViewTime),consecutiveViewTime:w.consecutiveViewTime.pipe(vA(function(y){return new hA(U.timeProvider,y)})),
totalMeasurementTime:Et(U,w.totalMeasurementTime),totalUnviewedTime:Et(U,w.totalUnviewedTime),userAgentClientHints:Y6$(U),clientOrderPingCounter:new qs(new $3O)})},Yt$(h,z),VfM(W?k8N(c,eJz):k8N(c,qWq),fGZ))};
NXz=function(h){var E=_.VF.apply(1,arguments).filter(Boolean).join("&");if(!E)return h;var g=h.match(/[?&]adurl=/);return g?h.slice(0,g.index+1)+E+"&"+h.slice(g.index+1):h+(h.indexOf("?")<0?"?":"&")+E};
Wh=function(h,E){return E?"&"+h+"="+encodeURIComponent(E):""};
tXq=function(){try{var h,E;return!!((h=window)==null?0:(E=h.top)==null?0:E.location.href)&&!1}catch(g){return!0}};
_.p8=function(h){h&&typeof h.dispose=="function"&&h.dispose()};
_.G8=function(h){for(var E=0,g=arguments.length;E<g;++E){var Z=arguments[E];_.s4(Z)?_.G8.apply(null,Z):_.p8(Z)}};
xaM=function(){var h=SWz();h=h===void 0?"bevasrsg":h;return new Promise(function(E){var g=window===window.top?window:tXq()?window:window.top,Z=g[h],M;((M=Z)==null?0:M.bevasrs)?E(new z8(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),g[h]=Z),Z.nqfbel.push(function(W){E(new z8(W))}))})};
wJO=function(h){var E={c:h.bS,e:h.aC8,mc:h.fj2,me:h.sH2};h.fU&&(E.co={c:h.fU.alq,a:h.fU.wMv,s:h.fU.gQa});return E};
Da$=function(h){var E,g,Z={bS:h.c,aC8:h.e,fj2:(E=h.mc)!=null?E:!1,sH2:(g=h.me)!=null?g:!1};h.co&&(Z.fU={alq:h.co.c,wMv:h.co.a,gQa:h.co.s});return Z};
lG4=function(h){return function(){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h(),2);E=g.yieldResult;return g.return({f:function(){return E.vVJ()},
c:function(Z){return E.r0J(Z)},
m:function(Z){return E.dY(Da$(Z))},
mws:function(Z){return E.oCC(Da$(Z))}})})}};
rx$=function(h,E){var g=SWz();g=g===void 0?"bevasrsg":g;E={s:function(W){var z;return h.snapshot(Object.assign({},W.c&&{bS:W.c},W.s&&{sPC:W.s},{nEU:(z=W.p)!=null?z:!0}))},
e:function(W){var z;return void((z=h.t97)==null?void 0:z.call(h,W))},
c:function(W,z){return h.go7(W,z)},
p:h.cuq,l:function(){return h.x48()},
wpc:E?lG4(E):void 0};var Z=window===window.top?window:tXq()?window:window.top,M=Z[g];if(M){M.bevasrs=E;if(M.nqfbel!==void 0)for(g=_.G(M.nqfbel),Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z(E);M.nqfbel=void 0}else M={},M=(M.bevasrs=E,M.nqfbel=void 0,M),Z[g]=M};
v3M=function(h){var E=E===void 0?51:E;var g=[];_.aD(h,maq,6,_.ch()).forEach(function(Z){_.i4(Z,2)<=E&&g.push(_.i4(Z,1))});
return g};
HFa=function(h){var E=E===void 0?51:E;var g=[];_.aD(h,maq,6,_.ch()).forEach(function(Z){_.i4(Z,2)>E&&g.push(_.i4(Z,1))});
return g};
$a$=function(h){h.then(function(){},function(){})};
oD=function(h){return{fieldType:1,fieldName:h}};
ID=function(h){return{fieldType:2,fieldName:h}};
_.RD=function(h){return{fieldType:3,fieldName:h}};
K1q=function(){function h(){M[0]=1732584193;M[1]=4023233417;M[2]=2562383102;M[3]=271733878;M[4]=3285377520;U=B=0}
function E(L){for(var d=z,C=0;C<64;C+=4)d[C/4]=L[C]<<24|L[C+1]<<16|L[C+2]<<8|L[C+3];for(C=16;C<80;C++)L=d[C-3]^d[C-8]^d[C-14]^d[C-16],d[C]=(L<<1|L>>>31)&4294967295;L=M[0];var q=M[1],w=M[2],r=M[3],v=M[4];for(C=0;C<80;C++){if(C<40)if(C<20){var H=r^q&(w^r);var u=1518500249}else H=q^w^r,u=1859775393;else C<60?(H=q&w|r&(q|w),u=2400959708):(H=q^w^r,u=3395469782);H=((L<<5|L>>>27)&4294967295)+H+v+u+d[C]&4294967295;v=r;r=w;w=(q<<30|q>>>2)&4294967295;q=L;L=H}M[0]=M[0]+L&4294967295;M[1]=M[1]+q&4294967295;M[2]=
M[2]+w&4294967295;M[3]=M[3]+r&4294967295;M[4]=M[4]+v&4294967295}
function g(L,d){if(typeof L==="string"){L=unescape(encodeURIComponent(L));for(var C=[],q=0,w=L.length;q<w;++q)C.push(L.charCodeAt(q));L=C}d||(d=L.length);C=0;if(B==0)for(;C+64<d;)E(L.slice(C,C+64)),C+=64,U+=64;for(;C<d;)if(W[B++]=L[C++],U++,B==64)for(B=0,E(W);C+64<d;)E(L.slice(C,C+64)),C+=64,U+=64}
function Z(){var L=[],d=U*8;B<56?g(c,56-B):g(c,64-(B-56));for(var C=63;C>=56;C--)W[C]=d&255,d>>>=8;E(W);for(C=d=0;C<5;C++)for(var q=24;q>=0;q-=8)L[d++]=M[C]>>q&255;return L}
for(var M=[],W=[],z=[],c=[128],I=1;I<64;++I)c[I]=0;var B,U;h();return{reset:h,update:g,digest:Z,digestString:function(){for(var L=Z(),d="",C=0;C<L.length;C++)d+="0123456789ABCDEF".charAt(Math.floor(L[C]/16))+"0123456789ABCDEF".charAt(L[C]%16);return d}}};
VX$=function(h,E){E=E===void 0?OFW:E;if(!n3$){var g;h=(g=h.navigator)==null?void 0:g.userAgentData;if(!h||typeof h.getHighEntropyValues!=="function"||h.brands&&typeof h.brands.map!=="function")return Promise.reject(Error("ua"));XJM((h.brands||[]).map(function(M){var W=new YWW;W=_.ln(W,1,M.brand);return _.ln(W,2,M.version)}));
typeof h.mobile==="boolean"&&_.Ph(sou,2,h.mobile);n3$=h.getHighEntropyValues(E)}var Z=new Set(E);return n3$.then(function(M){var W=sou.clone();Z.has("platform")&&_.ln(W,3,M.platform);Z.has("platformVersion")&&_.ln(W,4,M.platformVersion);Z.has("architecture")&&_.ln(W,5,M.architecture);Z.has("model")&&_.ln(W,6,M.model);Z.has("uaFullVersion")&&_.ln(W,7,M.uaFullVersion);return W.serialize()}).catch(function(){return sou.serialize()})};
Bh=function(h,E,g,Z){this.initialValue_=h;this.maxValue_=E;this.currBaseValue_=this.currValue_=h;this.randomFactor_=g||0;this.backoffFactor_=Z||2};
Ut=function(h){this.src=h;this.listeners={};this.typeCount_=0};
Axq=function(){for(var h;h=ktq.remove();){try{h.fn.call(h.scope)}catch(E){Wa(E)}yxz.put(h)}F14=!1};
_.TXV=function(h){switch(h){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}};
bFx=function(h){switch(h){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""}};
_.unq=function(){};
GFW=function(h,E,g,Z){h=QoV(hw4(EXz(new _.L8(1828,"0"),h),new gXq)).disableWithCredentials();E.length&&ZlM(h,MyO(new WXz,E));Z!==void 0&&(h.destinationUrl=Z);var M=new pxN(1828,"","",!1,"",h.build());_.jf(M,h);var W=new C8({flush:function(z){try{M.flush(z)}catch(c){g(c)}}});
W.addOnDisposeCallback(function(){setTimeout(function(){try{W.snapshotAndFlush()}finally{M.dispose()}})});
W.invocationLimit=1E5;W.flushInterval=3E4;W.JSC$9788_flushTimer.setInterval(3E4);return W};
JA=function(){var h,E,g;return(g=(h=globalThis.performance)==null?void 0:(E=h.now)==null?void 0:E.call(h))!=null?g:Date.now()};
clx=function(h,E){if(h.disable)return new zwV;E=E?v3M(E):[];h={n3:h.n3,qiq:h.lFr,i8T:h.zWE,destinationUrl:h.destinationUrl,yVj:h.yVj,fZt:h.fZt};E=E===void 0?[]:E;return new aVV(h,E)};
ilM=function(h){if(!h)return null;h=_.ef(h,2);return h===null||h===void 0?null:AL(h)};
_.oXz=function(h){if(!h)return null;h=_.ef(h,4);return h===null||h===void 0?null:_.wU(h)};
PNq=function(h,E){return E?IV4(E):h?RwN(h):Promise.resolve()};
IV4=function(h){return new Promise(function(E,g){var Z=_.q3("SCRIPT"),M=_.oXz(h);_.pX(Z,M);Z.onload=function(){_.f8(Z);E()};
Z.onerror=function(){_.f8(Z);g(Error("Fa"))};
(N3("HEAD")[0]||document.documentElement).appendChild(Z)})};
RwN=function(h){return new Promise(function(E){var g=_.q3("SCRIPT");if(h){var Z=_.ef(h,6);Z=Z===null||Z===void 0?null:_.Mc(Z)}else Z=null;_.WA(g,Z);(N3("HEAD")[0]||document.documentElement).appendChild(g);_.f8(g);E()})};
tA=function(h,E,g){var Z,M=new Promise(function(W){Z=setTimeout(W,E)});
return Promise.race([h.finally(function(){return void clearTimeout(Z)}),
M.then(g)])};
Bf$=function(h,E){try{return globalThis.sessionStorage.setItem(h,E),!0}catch(g){return!1}};
UdW=function(h,E,g,Z){E=E===void 0?0:E;g=g===void 0?h.length:g;var M=0;for(Z&&(M=UdW(Z));E<g;E++)Z=typeof h==="string"?h.charCodeAt(E):h[E],M=LX$(31,M)+Z|0;return M};
jCz=function(h,E){return[UdW(h,0,h.length>>1,E),UdW(h,h.length>>1)]};
ddZ=function(h){var E=_.G(jCz(h,Sf));h=E.next().value;E=E.next().value;return h.toString(16)+E.toString(16)};
CNO=function(h,E){var g=jCz(E);h=new Uint32Array(h.buffer);E=h[0];var Z=_.G(g);g=Z.next().value;Z=Z.next().value;for(var M=1;M<h.length;M+=2){for(var W=E,z=M,c=g,I=Z,B=0;B<22;B++)z=z>>>8|z<<24,z+=W|0,z^=c+38293,W=W<<3|W>>>29,W^=z,I=I>>>8|I<<24,I+=c|0,I^=B+38293,c=c<<3|c>>>29,c^=I;W=[W,z];h[M]^=W[0];M+1<h.length&&(h[M+1]^=W[1])}};
JlW=function(h,E,g,Z,M){var W=(4-(Sf.length+g.length)%4)%4,z=new Uint8Array(4+W+Sf.length+4+g.length),c=new DataView(z.buffer),I=0;c.setUint32(I,Math.random()*4294967295);I=I+4+W;z.set(Sf,I);I+=Sf.length;c.setUint32(I,M);z.set(g,I+4);CNO(z,Z);return h.insert(E,function(B){return void globalThis.sessionStorage.removeItem(B)})?Bf$(E,_.lJ(z))?"s":"t":"i"};
ewd=function(h,E){var g=globalThis.sessionStorage.getItem(h);if(!g)return["m"];try{var Z=_.Qx(g);CNO(Z,E)}catch(M){return globalThis.sessionStorage.removeItem(h),["c"]}for(E=4;E<7&&Z[E]===0;)E++;for(g=0;g<Sf.length;g++)if(Z[E++]!==Sf[g])return globalThis.sessionStorage.removeItem(h),["d"];g=(new DataView(Z.buffer)).getUint32(E);return Math.floor(Date.now()/1E3)>=g?(globalThis.sessionStorage.removeItem(h),["e"]):["a",new Uint8Array(Z.buffer,E+4)]};
qqa=function(h){return globalThis.TextEncoder?(new TextEncoder).encode(h):_.xd(h)};
fVV=function(h){var E=h,g;return function(){if(E){var Z=E;E=void 0;g=Z.apply(this,arguments)}return g}};
ty$=function(h){return mf(function(E){if(E instanceof h)return!0;var g,Z,M=E==null?void 0:(g=E.ownerDocument)==null?void 0:(Z=g.defaultView)==null?void 0:Z[h.name];return NfM(M)&&E instanceof M})};
_.l4=function(h,E,g){_.wO.call(this);this.JSC$10002_listener_=h;this.JSC$10002_interval_=E||0;this.handler_=g;this.callback_=(0,_.DJ)(this.JSC$10004_doAction_,this)};
_.rO=function(h){h=SqV(h);return _.wU(h)};
SqV=function(h){return h===null?"null":h===void 0?"undefined":h};
wxa=function(h){if(h&&h.focus)if(h!==document.activeElement)h.focus();else return xdz(function(){return _.a(function(E){document.activeElement&&document.activeElement.blur();return E.return(xdz(function(){h.focus()}))})})};
_.DdZ=function(h){var E=E===void 0?5:E;setTimeout(function(){var g;return _.a(function(Z){Z.nextAddress==1&&(g=document.activeElement);if(Z.nextAddress!=5)return(document.activeElement===g||document.activeElement===document.body)&&E>=0&&h?Z.yield(wxa(h),5):Z.jumpTo(0);if(document.activeElement===h)return Z.return();h=h.parentElement;--E;return Z.jumpTo(2)})},15)};
xdz=function(h){return new Promise(function(E){requestAnimationFrame(function(){E(h())})})};
rl$=function(h){if(_.mx)h(_.mx);else{var E;((E=lV4)!=null?E:lV4=[]).push(h)}};
Hh=function(){!_.mx&&_.vh&&_.md4(_.vh());return _.mx};
_.md4=function(h){_.mx=h;var E;(E=lV4)==null||E.forEach(rl$);lV4=void 0};
_.$d=function(h){_.mx&&_.mx.beforeLoadModuleCode(h)};
_.K8=function(){_.mx&&_.mx.JSC$11058_setLoaded()};
Ot=function(h){return NBz(h)?Number(h):String(h)};
vXx=function(h){this.action=h;this.wfv=!1};
HlW=function(h,E){vXx.call(this,"set-drive-options");this.appId=h;this.appOrigin=E};
$d$=function(h){vXx.call(this,"visibility");this.visible=h};
KXa=function(h,E,g){n8.call(this,h,E,g)};
OlV=function(h){st.call(this,h)};
nXW=function(h){h=h&&h.getWindow()||window;return h.gadgets&&h.gadgets.rpc};
Yqx=function(h,E){var g=E&&E.getWindow()||window;if(nXW(E))h();else if(Xxd)Xxd.push(h);else var Z=Xxd=[h],M=g.setInterval(function(){if(nXW(E)){g.clearInterval(M);for(var W=0;W<Z.length;W++)Z[W]();Xxd=null}},100)};
Vyq=function(h,E){var g=new V_(h);_.jf(E,g);var Z={passive:!1};E.listen(g,"mousewheel",function(M){return void sCz(h,M)},Z).listen(h,"scroll",function(M){return void sCz(h,M)},Z)};
sCz=function(h,E){var g;a:{for(g=E.target;g;){if(g.nodeType==1){var Z=_.kd(g,"overflowY");if(Z=="auto"||Z=="scroll")break a}g=g.parentNode}g=null}if(!g||!_.y_(h,g)||g.scrollHeight==g.clientHeight||E.deltaY>0&&Math.abs(g.scrollTop-(g.scrollHeight-g.clientHeight))<=1||E.deltaY<0&&g.scrollTop==0)E.preventDefault(),E.stopPropagation()};
hV=function(h,E,g,Z,M,W,z,c,I){c=c===void 0?!1:c;I=I===void 0?!1:I;n8.call(this,void 0,void 0,void 0);n8.call(this,W?W+" picker modal-dialog":"picker modal-dialog",!0,g);_.FR(h,"protocol");this.iframeManager_=new kF4;this.targetId_=AA();this.rpcToken_=AA();h=_.T8(h);_.b4(h,"hostId");g=_.b4(h,"parent");this.useGapi_=!I&&!0||(g==null?void 0:g.includes("onepick.corp.google.com"));c&&_.u4(h,"fv2","true");this.setUrl(h.toString());this.preferredDialogWidth_=Z;this.preferredDialogHeight_=M;Z!==void 0||
M!==void 0?Z=!0:(Z=_.b4(_.T8(h.toString()),"hostId"),ylM||(ylM=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),Z=!ylM.has(Z));this.autoSizeDialog_=Z;this.JSC$10192_gadgetsDomHelper_=z||this.JSC$10143_dom_;E&&(z=this.JSC$10192_gadgetsDomHelper_,E=_.b4(_.T8(this.JSC$10194_url_),"grugl")=="true"?FX$:oLW,nXW(z)||(z=z||w2(document),Z=z.createElement("SCRIPT"),_.pX(Z,E),Z.type="text/javascript",z.JSC$9327_document_.body.appendChild(Z)));
h=h.toString();E=null;z=h.indexOf("/picker?");z>-1?E=h.substring(0,z+8-1):zu(h,"/picker")&&(E=h);E&&this.setRelayUrl(E+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(h=this.buttons_,h.JSC$10177_element_=this.buttonEl_,h.render()):_.GH(this.buttonEl_,IpW),_.Q_(this.buttonEl_,!!this.buttons_))};
_.U2N=function(h){var E=E===void 0?RTz:E;var g=_.AM(h),Z=function(W){W=_.G(W);W.next();W=E9(W);return E(g,W)},M=function(W){var z=_.G(W);
W=z.next().value;z=E9(z);return h.apply(W,z)};
return function(){var W=_.VF.apply(0,arguments),z=this||_.MN,c=PK$.get(z);c||(c={},PK$.set(z,c));return BeZ(c,[this].concat(_.$E(W)),M,Z)}};
g9=function(h){var E={};h=h.replace(/\r/g,"").split("\n");for(var g=0;g<h.length;g++){var Z=h[g],M=Z.indexOf(":");M<0||(E[Z.substring(0,M)]=Z.substring(M+2,Z.length))}return E};
Lg4=function(h,E,g){g=g===void 0?function(){}:g;
return h?E():g()};
_.d2z=function(h){var E;return((E=jIx.documentOverride)!=null?E:h).__wizdispatcher};
_.M6=function(h){var E=Za;Za=h;return E};
_.Jtx=function(h){return h===CKq||(h==null?void 0:h.name)==="\u0275NotFound"};
_.Wm=function(h,E){var g;if((g=h)==null?0:g.isDisposed)throw Error("jb`"+String(h.debugName));for(;h!==void 0;){g=h;if(g.retrieve)return g.retrieve(E,{optional:!0});h=h.parent}return CKq};
pw=function(h){return{"\u0275prov":{providedIn:"root",token:Symbol(h),factory:void 0,value:void 0}}};
_.eTz=function(h){var E=Za;if(!E){switch(h===void 0?3:h){case 0:h=Error("ib");break;case 1:h=Error("kb");break;case 2:h=Error("lb");break;default:h=Error("mb")}throw h;}return E};
qYZ=function(h){var E=_.M6(h);h={};return h[Symbol.dispose]=function(){_.M6(E)},h};
fpM=function(h,E){h.disposables||(h.disposables=[]);h.disposables.push(E)};
G9=function(h){var E=Za;E&&!E.isDisposed&&(fpM(E,h),h.parent=E)};
tsV=function(h){if(h.disposables){for(var E=_.G(h.disposables),g=E.next();!g.done;g=E.next())g=g.value,typeof g==="function"?g():Ne$(g);h.disposables.length=0}};
Ne$=function(h){if(!h.isDisposed){h.isDisposed=!0;var E;(E=h[Symbol.dispose])==null||E.call(h);delete h.parent;tsV(h)}};
HPu=function(h){var E={retrieve:function(g){switch(g.\u0275prov.token){case SY4.\u0275prov.token:var Z=h.asyncDeps;break;case _.x24.\u0275prov.token:Z=h.rootElement;break;case wuO.\u0275prov.token:Z=h.modelRootElement;break;case D2a.\u0275prov.token:Z=h.appContext;break;case lp$.\u0275prov.token:Z=h.rendererData;break;case rtq.\u0275prov.token:Z=h.injectingConstructor;break;case m2N.\u0275prov.token:Z=h.dispatcher}if(Z)g=Z;else a:{for(Z=E.parent;Z;){var M=Z;if(M.retrieve){g=M.retrieve(g);break a}Z=
Z.parent}Z=g.\u0275prov.token;M=vLZ[Z];M!==void 0?g=M:(M=g.\u0275prov.providedIn,g.\u0275prov.factory?(g=g.\u0275prov.factory(),Z&&M==="root"&&(vLZ[Z]=g)):g=CKq)}return g}};
G9(E);return E};
$2M=function(){var h=_.eTz(1),E=_.Wm(h,D2a);if(!_.Jtx(E))return E;h=_.Wm(h,m2N);if(!_.Jtx(h))return h.getOptionalAppContext()};
KgO=function(h){if(typeof document!=="undefined"&&document&&document.getElementById&&(h=document.getElementById(h))){var E=h.tagName.toUpperCase();if(E=="SCRIPT"||E=="LINK")return h}return null};
nLM=function(h,E){if((h=h===void 0?"":h)&&E)throw Error("sb");var g="";var Z=_.MN._F_jsUrl;(h=E||KgO(h))&&(g=h.src?h.src:h.getAttribute("href"));if(Z&&g){if(Z!=g)throw Error("tb`"+Z+"`"+g);g=Z}else g=Z||g;if(!OP$(g))throw Error("ub");return g};
VsW=function(){if(!Xux){Xux=!0;try{var h=nLM(_.MN._F_jsUrl?"":"base-js")}catch(Z){return}var E=YY$(sIV(h)),g=Object.keys(E);g.length!==0&&rl$(function(Z){for(var M=_.G(g),W=M.next();!W.done;W=M.next()){W=W.value;for(var z=_.G(Object.keys(E[W])),c=z.next();!c.done;c=z.next())Z.addExtraEdge(W,c.value)}})}};
ytz=function(){var h=Object.assign({},kn$);Object.getOwnPropertyNames(kn$).forEach(function(E){z9[E]!==void 0&&(h[E]=z9[E])});
return h};
Fgu=function(h,E){if(z9.enablePerformanceTiming){var g,Z;(Z=(g=performance).mark)==null||Z.call(g,h+"Start__"+E)}};
AtV=function(h,E){if(z9.enablePerformanceTiming){var g,Z;(Z=(g=performance).measure)==null||Z.call(g,h+"__"+E,h+"Start__"+E)}};
Teu=function(h,E,g){var Z;return h&&E?h+"__"+E:(Z=h!=null?h:E)!=null?Z:g};
uL$=function(h,E){var g=Object.create(bPZ);g.debugName=E;!Za||G9(g);E=_.M6(g);try{h(g)}finally{_.M6(E)}return function(){return void Ne$(g)}};
h8V=function(h){return ap(h)&&QIZ in h};
EWa=function(h,E){return Object.is(h,E)};
iX=function(h){var E=cm;cm=h;return E};
ZIa=function(h){if(op)throw Error("Z");if(cm!==null){var E=cm.producersTail;if(E===void 0||E.producer!==h){var g=void 0,Z=cm.recomputing;if(Z&&(g=E!==void 0?E.nextProducer:cm.producers,g!==void 0&&g.producer===h)){cm.producersTail=g;g.lastReadVersion=h.version;return}var M=h.consumersTail,W;if(!(W=M===void 0||M.consumer!==cm)){if(Z){a:{W=cm;Z=W.producersTail;if(Z!==void 0){W=W.producers;do{if(W===M){Z=!0;break a}if(W===Z)break;W=W.nextProducer}while(W!==void 0)}Z=!1}Z=!Z}W=Z}W&&(Z=Ip(cm),g={producer:h,
consumer:cm,nextProducer:g,prevConsumer:M,lastReadVersion:h.version,nextConsumer:void 0},cm.producersTail=g,E!==void 0?E.nextProducer=g:cm.producers=g,Z&&gWd(h,g))}}};
pTz=function(h){if(!Ip(h)||h.dirty)if(h.dirty||h.lastCleanEpoch!==MM$)(h.producerMustRecompute(h)||WJZ(h))&&h.producerRecomputeValue(h),h.dirty=!1,h.lastCleanEpoch=MM$};
GqV=function(h){if(h.consumers!==void 0){var E=op;op=!0;try{for(var g=h.consumers;g!==void 0;g=g.nextConsumer){var Z=g.consumer;Z.dirty||(h=void 0,Z.dirty=!0,GqV(Z),(h=Z.consumerMarkedDirty)==null||h.call(Z,Z))}}finally{op=E}}};
z8$=function(){var h;return((h=cm)==null?void 0:h.consumerAllowSignalWrites)!==!1};
aPM=function(h){h&&(h.producersTail=void 0,h.recomputing=!0);return iX(h)};
iId=function(h,E){iX(E);if(h){h.recomputing=!1;E=h.producersTail;var g=E!==void 0?E.nextProducer:h.producers;if(g!==void 0){if(Ip(h)){do g=c1W(g);while(g!==void 0)}E!==void 0?E.nextProducer=void 0:h.producers=void 0}}};
WJZ=function(h){for(h=h.producers;h!==void 0;h=h.nextProducer){var E=h.producer,g=h.lastReadVersion;if(g!==E.version)return!0;pTz(E);if(g!==E.version)return!0}return!1};
gWd=function(h,E){var g=h.consumersTail,Z=Ip(h);g!==void 0?(E.nextConsumer=g.nextConsumer,g.nextConsumer=E):(E.nextConsumer=void 0,h.consumers=E);E.prevConsumer=g;h.consumersTail=E;if(!Z)for(h=h.producers;h!==void 0;h=h.nextProducer)gWd(h.producer,h)};
c1W=function(h){var E=h.producer,g=h.nextProducer,Z=h.nextConsumer,M=h.prevConsumer;h.nextConsumer=void 0;h.prevConsumer=void 0;Z!==void 0?Z.prevConsumer=M:E.consumersTail=M;if(M!==void 0)M.nextConsumer=Z;else if(E.consumers=Z,!Ip(E))for(h=E.producers;h!==void 0;)h=c1W(h);return g};
Ip=function(h){return h.consumerIsAlwaysLive||h.consumers!==void 0};
R8W=function(h){var E=Object.create(oW$);E.computation=h;h=function(){pTz(E);ZIa(E);if(E.value===Rp)throw E.error;return E.value};
h[IP$]=E;return h};
LJV=function(h,E){var g=Object.create(Ppz);g.value=h;E!==void 0&&(g.equal=E);h=function(){ZIa(g);return g.value};
h[IP$]=g;return[h,function(Z){return BQ4(g,Z)},
function(Z){z8$()||UKO(g);BQ4(g,Z(g.value))}]};
BQ4=function(h,E){z8$()||UKO(h);if(!h.equal(h.value,E)){h.value=E;h.version++;MM$++;GqV(h);var g;(g=j8$)==null||g(h)}};
Pm=function(h){var E=iX(null);try{return h()}finally{iX(E)}};
_.Bm=function(h,E,g){g=g===void 0?"":g;h=LJV(h,E==null?void 0:E.equals);var Z=h[0],M=Z[IP$];M.debugName=Teu(E==null?void 0:E.debugName,g,"[signal]");if(!z9.enablePerformanceTiming)return h;var W=h[1],z=h[2];return[Z,function(c){dKu(function(){return void W(c)},M)},
function(c){dKu(function(){return void z(c)},M)}]};
dKu=function(h,E){Fgu("signalSet",E.debugName);try{h()}finally{AtV("signalSet",E.debugName)}};
J1a=function(h,E){var g=_.G(_.Bm(h,void 0,"cPpJzc"));h=g.next().value;g=g.next().value;h[CpV]=g;h[U9]=E;return h};
e84=function(h){return!!h&&typeof h==="object"&&Object.getPrototypeOf(h)===Object.prototype};
q$$=function(h){return typeof h==="function"&&CpV in h&&typeof h[CpV]==="function"};
fPV=function(h,E){Object.defineProperty(h,U9,{get:function(){return E}})};
jA=function(h,E){if(Lw(h)){var g=h.map(function(W){return jA(W,E)});
fPV(g,E);return g}if(e84(h)){g={};h=_.G(Object.entries(h));for(var Z=h.next();!Z.done;Z=h.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;g[Z]=jA(M,E)}fPV(g,E);return g}return J1a(h,E)};
NQM=function(h){if(Lw(h))return h.map(function(M){return NQM(M)});
if(e84(h)){var E={};h=_.G(Object.entries(h));for(var g=h.next();!g.done;g=h.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;E[g]=NQM(Z)}return E}return q$$(h)?h():h};
S$z=function(){var h={height:0,width:0};if(!e84(h))throw Error("Jb");var E=Symbol("Kb");return[jA(h,E),function(g,Z){if(g[U9]===E)if(typeof Z==="function"){var M=[].concat(_.$E(NQM(g)));Z=Z(M)||M;tMz(g,[].concat(_.$E(Z)))}else tMz(g,Z);else throw Error("Lb");}]};
tMz=function(h,E){if(q$$(h))h[CpV](E);else if(Lw(h)&&Lw(E))E=jA(E,h[U9]),h.length=0,h.push.apply(h,_.$E(E));else if((e84(h)||Lw(h))&&(Lw(E)||typeof E==="object"&&E!==null)){E=_.G(Object.entries(E));for(var g=E.next();!g.done;g=E.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;var M=h,W=M[g];Object.hasOwn(h,g)?tMz(W,Z):M[g]=jA(Z,h[U9])}}else throw Error("Mb");};
xKz=function(h){return Object.create(Object.assign({},d9,h))};
DKx=function(){var h;return(h=wTO)!=null?h:wTO=xKz({consumerAllowSignalWrites:!0})};
_.Cw=function(h,E,g){g=g===void 0?"":g;h=R8W(h);var Z=h[IP$];Z.debugName=Teu(E==null?void 0:E.debugName,g,"[computed]");(E==null?void 0:E.equals)!=null&&(Z.equal=E.equals);return h};
JV=function(h){var E=iX(lPW);try{h()}finally{iX(E)}};
$K$=function(h){switch(h.onInitType){case r1$:mKV.schedule(h);break;case vWz:HIZ.schedule(h);break;default:_.Vk(h.onInitType)}};
s8$=function(h){if(!h.isDisposed)switch(h.effectType){case eA:KJO.schedule(h);break;case OIx:nW$.schedule(h);break;case XT$:Y$W.schedule(h);break;default:_.Vk(h.effectType)}};
y1z=function(){if(q6>0)z9.flushRenderEffectsDuringRender&&KJO.flush();else{for(var h=_.G(VMO),E=h.next();!E.done;E=h.next())E.value.flush();kqV()}};
kqV=function(){_.a(function(h){if(h.nextAddress==1)return h.yield(Promise.resolve(),2);for(var E=_.G(FJ4),g=E.next();!g.done;g=E.next())g.value.flush();_.SK(h)})};
TQV=function(h){fw=!0;try{for(var E=_.G(h),g=E.next();!g.done;g=E.next()){for(var Z=g.value,M=[Z],W=Z;W.parent!==void 0;)W=W.parent,A1z(W)&&h.has(W)&&M.push(W);for(;M.length>0;){var z=M.pop();h.delete(z);z.run()}}}finally{fw=!1}};
N6=function(h){q6--;if(h){h=_.G(bIq);for(var E=h.next();!E.done;E=h.next())E.value.clear()}else q6>0||fw&&!z9.flushRenderEffectsDuringRender||y1z()};
Q8O=function(h,E,g){var Z=uix(h);tV={name:g?Z+" ("+g+")":Z,isReactive:h.componentType!==SA,parent:tV};h=E();tV=tV.parent;return h};
xZ=function(){var h=tV;return h?h.isReactive:!1};
Da=function(h,E,g){var Z=tV;E&&(tV=E);try{return g==null?h():h.call(g)}catch(W){h=W;w9(h,tV);if(h!==hIO){Ewu=tV;E=[];for(g=Za;g;){var M=void 0;E.push((M=g.debugName)!=null?M:"[context]");M=void 0;g=(M=g.parent)!=null?M:null}gwq=E.reverse()}hIO=h;throw h;}finally{tV=Z}};
w9=function(h,E){try{var g=ZgV(E);if(g&&!h.componentStack&&(h.componentStack=g,z9.enableComponentStacksInErrorMessages)){var Z=h.message+"\n\nComponent stack: "+g;h.stack&&(h.stack=h.stack.replace(h.message,Z));h.message=Z}}catch(M){}};
ZgV=function(h){if(ap(h)&&h.name!==void 0&&h.isReactive!==void 0&&h.parent!==void 0||h===null){for(var E=0,g="";E<20&&h;)g+=h.name+" > ",h=h.parent,E++;h=g.slice(0,-3)}else if(z9.enableContextBasedComponentStacks){a:{for(h=h===void 0?Za:h;h;){if(h8V(h))break a;E=void 0;h=(E=h.parent)!=null?E:null}h=null}h=h.getComponentStack().slice(0,20).join(" > ")}else h="";return h};
uix=function(h){return h.debugName||h.name||"[component]"};
MYV=function(h,E,g){E=Object.create(E);h&&(E.effectFn=h);g&&(E.debugName=g);G9(E);E.componentStack=tV;return E};
_.lX=function(h,E){h=MYV(h,WOV,E);s8$(h)};
_.r9=function(h){var E=Za;if(E){var g=tV;fpM(E,function(){var Z=iX(DKx());try{Da(function(){return void h()},g)}catch(M){throw z9.enableContextBasedComponentStacks&&w9(M),M;
}finally{iX(Z)}})}};
mE=function(h,E){var g={};(E===void 0||E)&&G9(g);E=_.M6(g);try{h(g)}finally{_.M6(E)}return function(){return void Ne$(g)}};
_.Hm=function(h){return typeof h==="function"?h():(h==null?0:h[p6V])?h.get():h};
_.$Z=function(h,E){h=MYV(h,G$x,E);s8$(h)};
zIN=function(h){if(Za)throw Error("nb");mE(h,!1)};
Kw=function(h,E){h=_.M6(h);try{return Pm(E)}finally{_.M6(h)}};
O9=function(h,E){var g=ZgV(Ewu),Z,M;var W=(M=(Z=gwq)==null?void 0:Z.slice())!=null?M:[];E={componentStack:g,contextTrace:W,errorSeverity:3,featureFlags:ytz(),tagName:E};return[h,E]};
igd=function(h,E,g){if(Object.hasOwnProperty.call(a_x,h)&&(h=a_x[h],Object.hasOwnProperty.call(h,E)&&(h=h[E],h instanceof Array))){for(var Z=null,M=!1,W=0,z=h.length;W<z;++W){var c=h[W],I=c.contingentAttribute;if(!I)return c.contract;Z===null&&(Z={});I=Object.hasOwnProperty.call(Z,I)?Z[I]:Z[I]=g(I);if(I===c.requiredValue)return c.contract;I==null&&(M=!0)}if(M)return null}E=cfW[E];return typeof E==="number"?E:null};
RIV=function(h,E,g){var Z=null;(h=owx[h])&&(Z=h[E]);return typeof Z!=="number"&&((h=owx["*"])&&(Z=h[E]),typeof Z!=="number")?!1:!0===I_4[Z][String(g).toLowerCase()]};
BaN=function(h,E){E=igd(h.toLowerCase(),E,function(){var Z;(Z=z9.handleError)==null||Z.call.apply(Z,[z9].concat(_.$E(O9(Error("Wb"),h.toLowerCase()))))});
if(E===null)return null;var g;return(g=Pf$[E])!=null?g:null};
UCd=function(h,E,g){if(g===null||g===void 0)return g;E=E.toLowerCase();h=BaN(h,E);return h===null?g:h(E,g)};
LOq=function(){};
nw=function(h,E){for(;h.length>E;)h.pop()};
jTZ=function(h){h=Array(h);nw(h,0);return h};
Xh=function(h,E,g){if(g==null)h.removeAttribute(E);else{var Z;(Z=E.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":E.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?h.setAttributeNS(Z,E,g):h.setAttribute(E,g)}};
dCW=function(h,E,g){h[E]=g};
Jfu=function(h,E,g){h=h.style;if(typeof g==="string")h.cssText=g;else{h.cssText="";for(var Z in g)if(Cfz.call(g,Z)){E=h;var M=Z,W=g[Z];M.indexOf("-")>=0?E.setProperty(M,W):E[M]=W}}};
eId=function(h,E,g){var Z=typeof g;Z==="object"||Z==="function"?h[E]=g:Xh(h,E,g)};
qvW=function(){var h=new LOq;h[YZ.default]=eId;h.style=Jfu;return h};
f_O=function(h,E,g,Z){(Z[E]||Z[YZ.default])(h,E,g)};
tYM=function(h,E,g){E=new Nau(E,g);return h.__incrementalDOMData=E};
V6=function(h,E){if(h.__incrementalDOMData)return h.__incrementalDOMData;var g=h.nodeType===1?h.localName:h.nodeName,Z=h.nodeType===1?h.getAttribute("key"):null;E=tYM(h,g,h.nodeType===1?Z||E:null);if(h.nodeType===1&&(h=h.attributes,g=h.length)){Z=E._attrsArr||(E._attrsArr=jTZ(g*2));for(var M=0,W=0;M<g;M+=1,W+=2){var z=h[M],c=z.value;Z[W]=z.name;Z[W+1]=c}}return E};
Sva=function(h,E,g,Z,M){return E==g&&Z==M};
xCO=function(h){for(var E=kZ,g=AV();g!==h;){var Z=g.nextSibling;E.removeChild(g);T9.deleted.push(g);g=Z}};
AV=function(){return bX?bX.nextSibling:kZ.firstChild};
uX=function(){bX=AV()};
l_a=function(h,E,g){uX();var Z;a:{if(Z=bX){do{var M=Z,W=h,z=E,c=V6(M,z);if(w6d(M,W,c.nameOrCtor,z,c.key))break a}while(E&&(Z=Z.nextSibling))}Z=null}Z||(h==="#text"?(g=Q6.createTextNode(""),tYM(g,"#text",null),h=g):(Z=Q6,M=kZ,typeof h==="function"?Z=new h:Z=(M=h==="svg"?"http://www.w3.org/2000/svg":h==="math"?"http://www.w3.org/1998/Math/MathML":M==null||V6(M).nameOrCtor==="foreignObject"?null:M.namespaceURI)?Z.createElementNS(M,h):Z.createElement(h),tYM(Z,h,E),h=Z,g&&h.setAttribute("nonce",g)),T9.created.push(h),
Z=h);g=Z;if(g!==bX){if(DCz.indexOf(g)>=0)for(h=kZ,E=g.nextSibling,Z=bX;Z!==null&&Z!==g;)M=Z.nextSibling,h.insertBefore(Z,E),Z=M;else kZ.insertBefore(g,bX);bX=g}};
rfO=function(h,E,g){l_a(h,E,g);kZ=bX;bX=null;return kZ};
mCN=function(){xCO(null);bX=kZ;kZ=kZ.parentNode};
vwV=function(){bX=kZ.lastChild};
KOa=function(h,E){E=E===void 0?{}:E;var g=E.matches===void 0?Sva:E.matches;return function(Z,M,W){var z=T9,c=Q6,I=DCz,B=hx,U=EW,L=bX,d=kZ,C=w6d;Q6=Z.ownerDocument;T9=new Hga(Z);w6d=g;hx=[];EW=[];bX=null;var q=kZ=Z.parentNode,w,r=$CM.call(Z);if((w=r.nodeType===11||r.nodeType===9?r.activeElement:null)&&Z.contains(w)){for(r=[];w!==q;)r.push(w),w=w.parentNode||(q?w.host:null);q=r}else q=[];DCz=q;try{return h(Z,M,W)}finally{Z=T9,gX&&Z.deleted.length>0&&gX(Z.deleted),Q6=c,T9=z,w6d=C,hx=B,EW=U,bX=L,kZ=d,
DCz=I}}};
Og$=function(h,E,g,Z){ZG.push(f_O);ZG.push(h);ZG.push(E);ZG.push(g);ZG.push(Z)};
X6V=function(h,E,g){var Z=EW;E=E._attrsArr||(E._attrsArr=jTZ(Z.length));for(var M=!E.length||!1,W=0;W<Z.length;W+=2){var z=Z[W];if(M)E[W]=z;else if(E[W]!==z)break;var c=Z[W+1];if(M||E[W+1]!==c)E[W+1]=c,Og$(h,z,c,g)}if(W<Z.length||W<E.length){for(W=M=W;W<E.length;W+=2)Ma[E[W]]=E[W+1];for(W=M;W<Z.length;W+=2)M=Z[W],z=Z[W+1],Ma[M]!==z&&Og$(h,M,z,g),E[W]=M,E[W+1]=z,delete Ma[M];nw(E,Z.length);for(var I in Ma)Og$(h,I,void 0,g),delete Ma[I]}h=nw$;nw$=g=ZG.length;for(I=h;I<g;I+=5)(0,ZG[I])(ZG[I+1],ZG[I+
2],ZG[I+3],ZG[I+4]);nw$=h;nw(ZG,h);nw(Z,0)};
Yvd=function(h){l_a("#text",null);var E=bX;var g=V6(E);if(g.text!==h){g=g.text=h;for(var Z=1;Z<arguments.length;Z+=1)g=(0,arguments[Z])(g);E.data!==g&&(E.data=g)}};
TaO=function(h,E,g){if(g===!1&&sTu.has(E))Xh(h,E,null);else if(E!=="idomKey"&&E!=="skip"&&E!=="skipchildren"&&E!=="children"&&E!=="el")if(E.startsWith("on")){if(E[2]!==":")throw Error("Sb`"+E);if(g===void 0||g===null){var Z;(Z=z9.handleError)==null||Z.call.apply(Z,[z9].concat(_.$E(O9(Error("$b`"+E),h.tagName))));h[E]=void 0}else{var M=E.slice(3);Z=xZ();if(M==="jsaction"){g=Array.isArray(g)?g:[g];g=_.G(g);for(var W=g.next();!W.done;W=g.next()){W=W.value;if(typeof W!=="object"||W===null||typeof W.selfReg!==
"function")throw Error("Tb`"+E);W.selfReg(0,h,Z?_.r9:function(){})}}else{if(typeof g!=="object"||g===null)throw Error("Vb`"+E+"`"+typeof g);
if(typeof g.getFn!=="function")throw Error("Ub`"+E+"`"+Object.keys(g));if(g.selfReg)g.selfReg(0,h,M,Z?_.r9:function(){});
else if(Z&&h["on"+M]===void 0){var z=g.getFn(0);h.addEventListener(M,z);_.r9(function(){return void h.removeEventListener(M,z)})}else if(Z||!VYO.includes(M))h["on"+M]=g.getFn(0)}}}else{if(E.startsWith("data-")&&typeof g==="string")try{g=k$u(g)}catch(c){g="zSoyz"}typeof g!=="function"||h._disposeEffects!=null?((Z=E.startsWith("prop:"))&&(E=E.slice(5)),z9.enableAttributeSanitization&&(Z&&yfd(h.tagName)||(g=UCd(h.tagName,E,g))),E==="style"?("function"==typeof _.WJ&&g instanceof _.WJ&&(g=g.toString()),
FOd(h,E,g)):Z?h[E]=g:AfZ(h,E,g)):(h._signalProps||(h._signalProps=[]),h._signalValues||(h._signalValues=[]),h._signalProps.push(E))}};
bgN=function(h,E,g){g=(g===void 0?{}:g).isReactive;if(E==null?0:E.el){var Z=E.el,M;(M=Z.onRender)==null||M.call(Z,h);h._disposeRef||(h._disposeRef=function(){var W;(W=Z.onUnmount)==null||W.call(Z);delete h._disposeRef},g&&_.r9(function(){var W;
(W=h._disposeRef)==null||W.call(h)}))}};
yfd=function(h){return h.length>0&&h.includes("-")&&!u9q.includes(h.toLowerCase())};
QTz=function(h){return ap(h)&&pF in h};
hk$=function(h){return QTz(h)?h[pF].flattened:h};
ENO=function(h,E){var g=_.VF.apply(2,arguments),Z;E=(Z=E)!=null?Z:{};Z={};return Z.type=h,Z.props=E,Z.children=g,Z[Gt]=!0,Z};
_.zt=function(h){return h.children};
ao=function(h){var E=gN$!==ENO;gN$=h?ZQd:ENO;return E};
_.cJ=function(h){return _.yx(h)?"nodeType"in h:!1};
iI=function(){return document.createTextNode("")};
oo=function(h){h=document.createTextNode(String(h));h._isSignalTextNode=!0;return h};
Wrz=function(h){return h!=null&&h.contentKind===Io||h instanceof Fj||MNN(h)};
plN=function(h){var E=document.createElement("div");if(MNN(h)&&ilM(h))_.GH(E,ilM(h));else if(h instanceof Fj)_.GH(E,h);else if(h!=null&&h.contentKind===Io){if(h.contentKind!==Io)throw Error("Zb");h=AL(h.toString());_.GH(E,h)}h=_.G(E.childNodes);for(var g=h.next();!g.done;g=h.next())g.value._isSafeOrSanitizedHtmlNode=!0;return E};
PJ=function(h){h=typeof h;return h==="string"||h==="number"||h==="boolean"};
Ge$=function(h){return h instanceof xr||Hi(h)||h instanceof cA||"function"==typeof _.WJ&&h instanceof _.WJ};
zkq=function(h,E){var g=h.parentElement;if(!g)return E;g.replaceChild(E,h);return E};
aNa=function(h,E){var g=h[0].parentElement;if(g)if(h[0].previousSibling||h[h.length-1].nextSibling){g.insertBefore(E,h[0]);for(var Z=h.length-1;Z>=0;Z--)g.removeChild(h[Z])}else g.textContent="",g.appendChild(E);return E};
cQz=function(h,E){if(h[0].parentElement)for(var g=h[0].parentElement,Z=E.length,M=h.length,W=Z,z=0,c=0,I=h[M-1].nextSibling,B=null;z<M||c<W;)if(h[z]===E[c])z++,c++;else{for(;h[M-1]===E[W-1];)M--,W--;if(M===z)for(var U=W<Z?c?E[c-1].nextSibling:E[W-c]:I;c<W;){var L=E[c++];g.insertBefore(L,U)}else if(W===c)for(;z<M;)U=h[z],B&&B.has(U)||g.removeChild(U),z++;else if(h[z]===E[W-1]&&E[c]===h[M-1])U=h[--M].nextSibling,g.insertBefore(E[c++],h[z++].nextSibling),g.insertBefore(E[--W],U),h[M]=E[W];else{if(!B)for(B=
new Map,U=c;U<W;)B.set(E[U],U++);U=B.get(h[z]);if(U==null)g.removeChild(h[z]),z++;else if(c<U&&U<W){L=z;for(var d=1,C=void 0;++L<M&&L<W&&(C=B.get(h[L]))!=null&&C===U+d;)d++;if(d>U-c)for(L=h[z];c<U;)g.insertBefore(E[c++],L);else g.replaceChild(E[c++],h[z++])}else z++}}return E};
oNN=function(h){if(Array.isArray(h)){if(h.length>1)throw Error("jc`"+h.length+"`"+h.map(iQ$).join(", "));h=h[0]}if(h==null)return null;if(!(h instanceof _.ZT)){var E,g;if((E=window)==null?0:(g=E.trustedTypes)==null?0:g.isScript(h))throw Error("ic");if(String(h).trim().length===0)return null;throw Error("kc`"+iQ$(h));}return h};
INZ=function(h,E){E=oNN(E);E!==null&&_.WA(h,E)};
Rka=function(h){if(Array.isArray(h)){if(h.length>1)throw Error("lc`"+h.length+"`"+h.map(iQ$).join(", "));h=h[0]}if(h==null)return null;if(!(h instanceof cA)){if(String(h).trim().length===0)return null;throw Error("mc`"+iQ$(h));}return h};
PC$=function(h,E){E=Rka(E);E!==null&&(h.textContent=aT$(E))};
iQ$=function(h){return"("+typeof h+") "+(h!=null&&typeof h==="object"?h.constructor.name:typeof h)+" "+h};
BAq=function(){};
LF=function(h,E){E=E===void 0?{}:E;var g=U_O(),Z=!0,M,W=!!z9.legacyTriggerSoyRendererEvents;W&&(M=$2M());_.$Z(function(){var z=!Z&&E.isControlFlowComponent&&W,c=z?g[pF].flattened[0].parentElement:void 0;Z=!1;BJ.setUp();E.isControlFlowComponent&&q6++;var I=g[0],B=g[pF].flattened,U=ao(!0);try{var L=h(),d=Lrz(I,L,g);Array.isArray(d)||(g[pF].flattened=[d]);var C=g[pF].flattened;if(B&&(!Array.isArray(B)||B.length!==0)){var q=Array.isArray(B)?B[0]:B,w=q[UW],r=q._disposeEffects;q._disposeEffects=void 0;
q=Array.isArray(C)?C[0]:C;q[UW]=w;q[UW]&&(q[UW].numNodes=q===C?1:C.length);q._disposeEffects=r}g[0]=d;E.isControlFlowComponent&&N6(!1)}catch(v){throw E.isControlFlowComponent&&N6(!0),v;}finally{ao(U),BJ.tearDown()}z&&(z=M,z!=null||(z=_.d2z(document).getAppContext()),z.get(j5N).JSC$29068_getEventTarget().dispatchEvent(new d_V(CCV,c,Io)))},E.debugName);
return g};
Lrz=function(h,E,g){for(;typeof E==="function";)E=E();if(E!=null&&E[Gt]){var Z,M,W;(W=z9.handleError)==null||W.call.apply(W,[z9].concat(_.$E(O9(Error("nc`"+((Z=E.type)==null?void 0:Z.TAG_NAME)),(M=E.type)==null?void 0:M.TAG_NAME))))}if(h==null)return E==null?iI():PJ(E)?oo(E):Ge$(E)?oo(E.toString()):_.cJ(E)?E:E.length===0?iI():JQz(E,g);if(_.cJ(h)){if(E==null)return zkq(h,iI());if(PJ(E))return ekd(h,E);if(Ge$(E))return ekd(h,E.toString());if(_.cJ(E))return zkq(h,E);if(E.length===0)return zkq(h,iI());
E=JQz(E,g);cQz([h],g[pF].flattened);return E}h=dX(h);if(E==null)return aNa(h,iI());if(PJ(E))return aNa(h,oo(E));if(Ge$(E))return aNa(h,oo(E.toString()));if(_.cJ(E))return cQz(h,[E])[0];if(E.length===0)return aNa(h,iI());E=JQz(E,g);cQz(h,g[pF].flattened);return E};
ekd=function(h,E){h.nodeType===Node.TEXT_NODE?h.textContent!==String(E)&&(h.textContent=String(E)):h=zkq(h,oo(E));return h};
dX=function(h,E,g){return qHz(h,E!=null?E:[],g===void 0?!1:g)};
JQz=function(h,E){var g=dX(h,void 0,!0);if(g.length===0)return iI();E[pF].flattened=g;return h};
qHz=function(h,E,g,Z,M){E=E===void 0?[]:E;g=g===void 0?!1:g;M=M===void 0?-1:M;if(h==null)return E;if(h instanceof CF){var W=h.render();return qHz(W,E,g,Z,M)}if(_.cJ(E)&&E.nodeType===Node.ELEMENT_NODE)switch(E.tagName){case "SCRIPT":INZ(E,h);return;case "STYLE":PC$(E,h);return}PJ(h)&&(h=oo(h),Z&&g&&(Z[M]=h));if(Wrz(h)){g=plN(h);g=Array.from(g.childNodes);g=_.G(g);for(W=g.next();!W.done;W=g.next())fN$(E,W.value);return E}Ge$(h)&&(h=oo(h.toString()),Z&&g&&(Z[M]=h));if(_.cJ(h))return fN$(E,h);if(Array.isArray(h)){for(W=
0;W<h.length;W++)qHz(h[W],E,g,h,W);return E}if(typeof h==="function"){W=LF(function(){var c=h();return c!=null&&!PJ(c)&&Wrz(c)?(c=plN(c),Array.from(c.childNodes)):c},{debugName:"qmF2ne",
debugFn:h})[0];if(Array.isArray(W)){g=_.G(W);for(W=g.next();!W.done;W=g.next())fN$(E,W.value);return E}Z&&g&&(Z[M]=W);return fN$(E,W)}if(h!=null&&h[Gt]){Z=h;M=ao(!0);var z=gN$;try{W=z.apply(null,[Z.type,Z.props].concat(_.$E(Z.children)))}finally{ao(M)}return qHz(W,E,g)}(z=z9.handleError)==null||z.call.apply(z,[z9].concat(_.$E(O9(Error("oc")))));return E};
U_O=function(h){var E={};E=Object.assign([],(E[pF]={flattened:[]},E));if(!h)return E;E[0]=JQz(h,E);return E};
fN$=function(h,E){Array.isArray(h)?h.push(E):h.appendChild(E);return h};
Jx=function(h){if(!z9.enableLazyTsx)return h;if(Array.isArray(h)){for(var E=0;E<h.length;E++)h[E]=Jx(h[E]);return h}return h instanceof CF?(h=h.render(),Jx(h)):h};
tNx=function(h,E){var g,Z,M=uix(h),W=function(C){Z=C;C=ao(!0);var q=iX(eX);Fgu("render",M);try{g=Jx(h(E))}finally{AtV("render",M),iX(q),ao(C)}};
W=z9.enableContextPerComponent?uL$(W,M):mE(W,z9.alwaysTrackContexts||!!Za);h8V(Z);if(!E.renderedFromIdom){var z=_.M6(Z);try{return NA$(h,E,g),g}finally{_.M6(z)}}!QTz(g)&&Array.isArray(g)&&(g=U_O(g));var c=hk$(g);z=Array.isArray(c)?c[0]:c;var I=!1;if(z){var B,U=(B=E==null?void 0:E.idomKey)!=null?B:h;B=c!==z;z._disposeEffects=W;var L=z[UW]||{},d=QTz(g)?g:L.sourceDynamicRange;Object.assign(L,{key:U,numNodes:B?c.length:1,context:Z,higherOrder:!!z[UW],sourceDynamicRange:d});z[UW]=L}else I=!0;(function(){var C=
_.M6(Z);try{NA$(h,E,c)}finally{_.M6(C)}})();
I&&W();return g};
SHN=function(h){var E={},g;for(g in h)E={prev$jscomp$24:void 0,next$jscomp$33:void 0},E.prev$jscomp$24=qa[g],E.next$jscomp$33=h[g],qa[g]=function(Z){return function(){var M=_.VF.apply(0,arguments);Z.prev$jscomp$24.apply(null,_.$E(M));Z.next$jscomp$33.apply(null,_.$E(M))}}(E)};
x_W=function(){if(xZ())throw Error("pc");return fF};
wlV=function(h,E){if(!h.__unmounted&&E){h.__unmounted=!0;try{h.didUnmount()}catch(M){var g,Z;(Z=z9.handleError)==null||Z.call.apply(Z,[z9].concat(_.$E(O9(M,(g=h.__type)==null?void 0:g.TAG_NAME))))}qa.didUnmount(h);h.el=null;E.__instance&&delete E.__instance}};
lNO=function(h,E,g){h._signalProps!=null&&h._disposeEffects==null&&((g===void 0?0:g)?h._disposeEffects=mE(function(){return void D_4(h,E)},z9.alwaysTrackContexts||!!Za):D_4(h,E))};
D_4=function(h,E){_.$Z(function(){for(var g=h._signalProps,Z=h._signalValues,M=0;M<g.length;M++){var W=g[M],z=E[W]();Z[M]!==z&&(Z[M]=z,TaO(h,W,z))}},"e3YVbb")};
rQq=function(h,E,g){var Z,M=[];h._disposeEffects=mE(function(){_.$Z(function(){var W=g();if(W===null||W===void 0)W="";if(PJ(W)||W===null)Z!=null||(Z=document.createTextNode("")),Z.parentNode!==h&&(Z._isSignalTextNode=!0,h.insertBefore(Z,E)),Z.textContent=String(W);else if(Wrz(W)){for(var z=M.length>0?M[M.length-1].nextSibling:E,c=_.G(M),I=c.next();!I.done;I=c.next())h.removeChild(I.value);W=plN(W);M=Array.from(W.childNodes);W=_.G(M);for(c=W.next();!c.done;c=W.next())h.insertBefore(c.value,z)}else throw I=
(c=(z=tV)==null?void 0:z.name)!=null?c:"unknown",Error("ec`"+I+"`"+typeof W);},"VvDgC")},z9.alwaysTrackContexts||!!Za)};
HQ4=function(h,E){var g=_.VF.apply(2,arguments);E!=null||(E={});return!z9.enableLazyTsx||tV!=null&&!xZ()?m_M(h,E,g):new vNd(h,E,g)};
m_M=function(h,E,g){if(h===_.zt)return g;if(typeof h==="function")return tV&&!xZ()&&(E.renderedFromIdom=!0),Q8O(h,function(){var W=$_V(h,E,g);if(W)return W;g.length>0&&(E.children=g.length===1?g[0]:g);if(h.componentType===SA){var z;uL$(function(){var c=E;if(h.componentType!==SA)z=!1;else{c||(c={});var I=new Na(c,h),B=iX(eX);try{var U=I.render(c)}finally{iX(B)}U instanceof HTMLElement?(U.__instance=I,I.el=U,I.__type=h,h.TAG_NAME=U.tagName.toLowerCase(),qa.didPatch(I),z=U):z=U}},h.name);
if(z)return z}return tNx(h,E)},E.debugInstance);
var Z=Kru(h,E),M;for(M in E)TaO(Z,M,E[M]);lNO(Z,E);dX(g,Z);bgN(Z,E,{isReactive:!0});OQW(Z,E);return Z};
Kru=function(h,E){h=(nN$.has(h.toLowerCase())?0:Xl4.has(h.startsWith("svg:")?h.replace("svg:",""):h))?document.createElementNS("http://www.w3.org/2000/svg",h.startsWith("svg:")?h.replace("svg:",""):h):YHN(h,E)||document.createElement(h);h[s5q]=!0;return h};
VNa=function(h){if(h){var E;(E=h._disposeRef)==null||E.call(h);var g;(g=h._disposeEffects)==null||g.call(h);h.__instance&&h.__instance instanceof tx&&(E=h.__instance,wlV(E,h),E instanceof Na&&E.disposeEffects());for(E=0;E<h.childNodes.length;E++)VNa(h.childNodes[E])}};
yQz=function(h){keO.push(h)===1&&requestAnimationFrame(function(){setTimeout(function(){var E=[].concat(_.$E(keO));keO=[];E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;try{for(var Z=0;Z<g.length;Z++)VNa(g[Z])}catch(M){Z=g=void 0,(Z=(g=z9).handleError)==null||Z.call.apply(Z,[g].concat(_.$E(O9(M))))}}})})};
_.R=function(h,E){return gN$.apply(null,[h,E].concat(_.$E(_.VF.apply(2,arguments))))};
_.P=function(h){var E=h.cond;if(E===void 0)return h.else&&h.else();var g=_.Cw(function(){return!!E()},void 0,"JHVi8"),Z=function(){var M=E();
if(!M){var W;(W=z9.handleError)==null||W.call.apply(W,[z9].concat(_.$E(O9(FrV.nonNullableCondIsNull()))))}return M};
return LF(function(){var M=g(),W;mE(function(){var z=iX(eX);try{W=Jx(M?h.then(Z):h.else&&h.else())}finally{iX(z)}},!0);
return W},{debugName:h.debugInstance,
debugFn:h.then,isControlFlowComponent:!0})};
AQM=function(h){return _.P(h)};
_.SX=function(h){return h.keyBy==="INDEX"?TAz(h):bQN(h)};
uaq=function(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next()){var g=void 0;(g=E.value)==null||g()}};
bQN=function(h){var E=h.keyBy===void 0||h.keyBy==="REFERENCE",g=E?function(U){return U}:h.keyBy,Z=[],M=[],W=[],z=[],c=[],I=[],B=!0;
_.r9(function(){uaq(z)});
return LF(function(){var U=h.each(),L=U.length;if(L===0){if(Z.length===0&&!B)return W;uaq(z);Z=U;M=[];for(U=0;U<Z.length;U++)M.push(g(Z[U]));W=[];z=[];c=[];I=[];h.fallback&&(z[0]=Q5$(function(){W[0]=Jx(h.fallback())}));
B=!1;return W}for(var d=new hhu,C=Z.length-1;C>=0;C--)d.push(M[C],C);C=Array(L);for(var q=Array(L),w=Array(L),r=Array(L),v=Array(E?0:L),H={i$jscomp$450:0};H.i$jscomp$450<L;H={i$jscomp$450:H.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},H.i$jscomp$450++){H.item$jscomp$104=U[H.i$jscomp$450];H.key$jscomp$564=g(H.item$jscomp$104);var u=d.pop(H.key$jscomp$564);u!=null?(w[H.i$jscomp$450]=W[u],q[H.i$jscomp$450]=M[u],C[H.i$jscomp$450]=z[u],r[H.i$jscomp$450]=c[u],E||(v[H.i$jscomp$450]=I[u]),JV(function(k){return function(){r[k.i$jscomp$450](k.i$jscomp$450);
if(!E)v[k.i$jscomp$450](k.item$jscomp$104)}}(H)),delete z[u]):C[H.i$jscomp$450]=Q5$(function(k){return function(){var y=_.G(_.Bm(k.i$jscomp$450,void 0,"Fqk1zd")),A=y.next().value;
y=y.next().value;r[k.i$jscomp$450]=y;q[k.i$jscomp$450]=k.key$jscomp$564;if(E)w[k.i$jscomp$450]=Jx(h.children(k.item$jscomp$104,A));else{var E4=_.G(_.Bm(k.item$jscomp$104,void 0,"GBj5de"));y=E4.next().value;E4=E4.next().value;v[k.i$jscomp$450]=E4;w[k.i$jscomp$450]=Jx(h.children(y,A))}}}(H))}uaq(z);
Z=U;M=q;W=w;z=C;c=r;I=v;B=!1;return w},{debugName:h.debugInstance,
debugFn:h.each,isControlFlowComponent:!0})};
TAz=function(h){var E=[],g=[],Z=[],M=[],W=!1;_.r9(function(){for(var z=_.G(M),c=z.next();!c.done;c=z.next())c=c.value,c()});
return LF(function(){var z=h.each();W&&z.length>0&&(M.pop()(),E.pop(),W=!1);for(var c=Array(z.length),I={i$jscomp$451:0};I.i$jscomp$451<z.length;I={i$jscomp$451:I.i$jscomp$451},I.i$jscomp$451++)if(I.i$jscomp$451<E.length)E[I.i$jscomp$451]!==z[I.i$jscomp$451]&&(JV(function(U){return function(){return void g[U.i$jscomp$451](z[U.i$jscomp$451])}}(I)),E[I.i$jscomp$451]=z[I.i$jscomp$451]),c[I.i$jscomp$451]=Z[I.i$jscomp$451];
else{var B=Q5$(function(U){return function(){E[U.i$jscomp$451]=z[U.i$jscomp$451];var L=_.G(_.Bm(z[U.i$jscomp$451],void 0,"JMMLmd")),d=L.next().value;L=L.next().value;g[U.i$jscomp$451]=L;c[U.i$jscomp$451]=Jx(h.children(d,U.i$jscomp$451))}}(I));
M[I.i$jscomp$451]=B}for(;E.length>z.length;)E.pop(),M.pop()(),g.pop();z.length===0&&!W&&h.fallback&&(I=Q5$(function(){c[0]=Jx(h.fallback())}),M[0]=I,W=!0);
return Z=c},{debugName:h.debugInstance,
isControlFlowComponent:!0})};
Q5$=function(h){var E=Za;return mE(function(g){var Z=iX(eX);try{g.parent=E,h(g)}finally{iX(Z)}},!1)};
_.x3=function(h){return h};
_.wX=function(h){return{isDefault:!0,children:h.children}};
_.DG=function(h){var E=EeM(h),g=_.Cw(function(){return gez(E)},void 0,"F1PF4");
return LF(function(){var Z=g(),M;mE(function(){var W=iX(eX);try{M=Jx(Z())}finally{iX(W)}});
return M},{debugName:h.debugInstance,
isControlFlowComponent:!0})};
EeM=function(h){h=h.children;return Array.isArray(h)?h:[h]};
ZZ$=function(h){var E=h.props;h=h.getChildren()[0];return E.when?{when:E.when,children:h}:{isDefault:!0,children:h}};
gez=function(h){var E=function(){return null};
h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,g!=null&&g[Gt]&&(g=g.type===_.wX?{isDefault:!0,children:g.children[0]}:{when:g.props.when,children:g.children[0]}),g instanceof CF&&(g=ZZ$(g)),g.isDefault)E=g.children;else if(g.when())return g.children;return E};
Wc$=function(h){var E=null,g,Z={get value(){var W,z;(z=(W=M).validateGetValue)==null||z.call(W);return M.__value},set value(W){var z,c;(c=(z=M).validateSetValue)==null||c.call(z,W);M.__value=W;M.__hasBeenSet=!0}},M=(Z.__value=null,Z.__hasBeenSet=!1,Z.__hasErrored=!1,Z.onRender=function(W){if(g&&W!==g){g._disposeRef=void 0;var z;(z=E)==null||z()}g=W;E=h(W)||null},Z.onUnmount=function(){var W;
(W=E)==null||W();E=M.value=null},Z[_.Mja]=!0,Z);
return M};
lI=function(h){return typeof h==="symbol"};
GGO=function(h){var E=x_W();if(E==null)throw _.pX$.PRIMITIVE_INVALID_HOOK_CALL();var g=E.hookCounter++;E.hooks||(E.hooks=[]);var Z=E.hooks;Z[g]||(Z[g]={key:h,host:E});if(h!==Z[g].key){if(E.__type){var M;h=(M=E.__type)==null?void 0:M.name}else h=E instanceof Na?uix(E.functionComponent):"<"+E.el.tagName.toLowerCase()+">";throw _.pX$.OUT_OF_ORDER_HOOK_CALL(h);}return Z[g]};
zhM=function(h,E){return!h||h.length!==(E==null?void 0:E.length)||h.some(function(g,Z){return g!==E[Z]})};
aA4=function(h,E){var g=GGO("onChange"),Z=x_W();zhM(g.deps,E)&&(g.deps=E,g.pendingEffect=h,Z.__syncEffects||(Z.__syncEffects=[]),Z.__syncEffects.push(g))};
_.rX=function(h,E,g){g!=null||(g={});g=g.appContext;var Z=!!z9.legacyTriggerSoyRendererEvents;BJ.setUp();try{var M=cT$(h,E,g);Z&&(E=g,E!=null||(E=_.d2z(document).getAppContext()),E.get(j5N).JSC$29068_getEventTarget().dispatchEvent(new d_V(iZO,h,Io)));BJ.log(h);return M}finally{BJ.tearDown()}};
cT$=function(h,E,g){var Z=function(){var W=iX(eX);try{return mE(function(){var z=_.d2z(_.Yp(h)),c;var I=HPu({rootElement:{value:h},appContext:g||(z==null?void 0:(c=z.getOptionalAppContext)==null?void 0:c.call(z)),dispatcher:z});z=_.M6(I);I=ao(!0);q6++;try{dX(E(),h),N6(!1)}catch(B){throw N6(!0),B;}finally{ao(I),_.M6(z)}},!1)}catch(z){throw z9.enableContextBasedComponentStacks&&w9(z),z;
}finally{iX(W)}},M=Da(function(){return Z()});
h[oed]=!0;return function(){h.textContent="";M();h[oed]=!1}};
_.m1=function(h){if(A1z(cm)){var E;(E=z9.handleError)==null||E.call.apply(E,[z9].concat(_.$E(O9(Error("dc")))))}var g=Za,Z=tV;$K$({onInitType:vWz,run:function(){if(g&&!g.isDisposed){var M=_.M6(g);try{Da(function(){return void h()},Z)}catch(W){throw z9.enableContextBasedComponentStacks&&w9(W),W;
}finally{_.M6(M)}}}})};
IAz=function(h,E){aA4(function(){return Pm(h)},E)};
_.vJ=function(h){xZ()?_.m1(function(){Pm(h)}):aA4(function(){return Pm(h)},[])};
PwO=function(h){var E=[].concat(_.$E(h));h.length=0;h=_.G(E);for(E=h.next();!E.done;E=h.next()){E=E.value;RhV(E);var g=E.pendingEffect;E.pendingEffect=null;if(g=g==null?void 0:g())E.pendingCleanup=g}};
RhV=function(h){var E=h.pendingCleanup;h.pendingCleanup=null;E==null||E()};
BCz=function(h,E){if(xZ())return h();var g=GGO("useMemoInternal");zhM(g.deps,E)&&(g.deps=E,g.value=h());return g.value};
UHV=function(h,E){return BCz(h,E)};
HJ=function(h){return BCz(h,[])};
Lcd=function(h){return HJ(function(){return{value:h}})};
_.$3=function(h,E){if(!h)return null;h=Object.keys(h);h=_.G(h);for(var g=h.next();!g.done;g=h.next()){g=g.value;var Z=g.toLowerCase();if(Z.indexOf(E,Z.length-E.length)>-1)return g}return null};
_.OW=function(){var h=arguments,E=_.KF;h.length>1?E[h[0]]=h[1]:h.length===1&&Object.assign(E,h[0])};
_.nF=function(h,E){return h in _.KF?_.KF[h]:E};
_.Xn=function(h,E){return!!_.nF(h,E)};
jaz=function(h){var E=_.KF.EXPERIMENT_FLAGS;return E?E[h]:void 0};
Cwq=function(h){dHx.forEach(function(E){return E(h)})};
_.k3=function(h){return h&&window.yterr?function(){try{return h.apply(this,arguments)}catch(E){_.Vy(E)}}:h};
_.Vy=function(h){var E=_.yy("yt.logging.errors.log");E?E(h,"ERROR",void 0,void 0,void 0,void 0,void 0):(E=_.nF("ERRORS",[]),E.push([h,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.OW("ERRORS",E));Cwq(h)};
_.Fn=function(h,E,g,Z,M){var W=_.yy("yt.logging.errors.log");W?W(h,"WARNING",E,g,Z,void 0,M):(W=_.nF("ERRORS",[]),W.push([h,"WARNING",E,g,Z,void 0,M]),_.OW("ERRORS",W))};
ehN=function(h,E){E=h.split(E);for(var g={},Z=0,M=E.length;Z<M;Z++){var W=E[Z].split("=");if(W.length===1&&W[0]||W.length===2)try{var z=JTO(W[0]||""),c=JTO(W[1]||"");if(z in g){var I=g[z];Array.isArray(I)?_.Vx(I,c):g[z]=[I,c]}else g[z]=c}catch(d){var B=d,U=W[0],L=String(ehN);B.args=[{key:U,value:W[1],query:h,method:q7u===L?"unchanged":L}];fAd.hasOwnProperty(U)||_.Fn(B)}}return g};
NCd=function(h){var E=[];_.Kt.forEach(h,function(g,Z){var M=_.Ax(Z);g=Array.isArray(g)?g:[g];_.Tt(g,function(W){W==""?E.push(M):E.push(M+"="+_.Ax(W))})});
return E.join("&")};
_.bI=function(h){h.charAt(0)==="?"&&(h=h.substring(1));return ehN(h,"&")};
_.uI=function(h){return h.indexOf("?")!==-1?(h=(h||"").split("#")[0],h=h.split("?",2),_.bI(h.length>1?h[1]:h[0])):{}};
_.Qy=function(h,E){return tjq(h,E||{},!0)};
S7x=function(h,E){return tjq(h,E||{},!1)};
tjq=function(h,E,g){var Z=h.split("#",2);h=Z[0];Z=Z.length>1?"#"+Z[1]:"";var M=h.split("?",2);h=M[0];M=_.bI(M[1]||"");for(var W in E)if(g||!_.Kt.containsKey(M,W))M[W]=E[W];return _.hl(h,M)+Z};
Md=function(h){if(!E)var E=window.location.href;var g=_.Eq(h)[1]||null,Z=_.gf(h);return g&&Z?ZV(h,E):Z?_.gf(E)===Z&&(Number(_.Eq(E)[4]||null)||null)===(Number(_.Eq(h)[4]||null)||null):!0};
_.wXV=function(h){h=xHV(h);return h===null?!1:h[0]==="com"&&h[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
xHV=function(h){h=_.gf(h);return h!==null?h.split(".").reverse():null};
JTO=function(h){return h&&h.match(DHd)?h:Wx(h)};
_.pl=function(h){return new lAd(h)};
_.GF=function(){rTx||(rTx=new mHz);return rTx};
HZz=function(){var h=veN;return function(){var E=_.GF();E.resolve(_.pl(h))||E.addProvider({provide:h,useClass:h});return E.resolve(h)}};
Kcz=function(h){var E=_.zF,g,Z;_.a(function(M){g=_.GF();return(Z=g.resolve(_.pl(E)))?(h(Z),M.return(Promise.resolve(Z))):M.return(g.resolve(new $Hd(E)).then(function(W){h(W);return W}))})};
_.J=function(h){h=aC(h);return typeof h==="string"&&h==="false"?!1:!!h};
_.cx=function(h,E){h=aC(h);return h===void 0&&E!==void 0?E:Number(h||0)};
OZx=function(h){h=aC(h);return Array.isArray(h)?_.O6(h,function(E){return Number(E||0)}):[Number(h||0)]};
_.iN=function(h){h=aC(h);return h!==void 0?String(h):""};
_.oC=function(h){h=aC(h);return Array.isArray(h)?_.O6(h,function(E){return String(E||"")}):[String(h||"")]};
neZ=function(){return _.nF("EXPERIMENTS_TOKEN","")};
aC=function(h){return _.nF("EXPERIMENT_FLAGS",{})[h]};
XXz=function(){for(var h=[],E=_.nF("EXPERIMENTS_FORCED_FLAGS",{}),g=_.G(Object.keys(E)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.push({key:Z,value:String(E[Z])});g=_.nF("EXPERIMENT_FLAGS",{});Z=_.G(Object.keys(g));for(var M=Z.next();!M.done;M=Z.next())M=M.value,M.startsWith("force_")&&E[M]===void 0&&h.push({key:M,value:String(g[M])});return h};
saM=function(){if(!Y7N)return null;var h=Y7N();return"open"in h?h:null};
_.Vjd=function(h){switch(_.Px(h)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Px=function(h){return h&&"status"in h?h.status:-1};
_.Bx=function(h,E){typeof h==="function"&&(h=_.k3(h));return window.setTimeout(h,E)};
_.Uq=function(h,E){typeof h==="function"&&(h=_.k3(h));return window.setInterval(h,E)};
_.Ll=function(h){window.clearTimeout(h)};
yT$=function(h){h=_.uI(h);for(var E=_.G(kGz),g=E.next();!g.done;g=E.next())if(h[g.value]!==void 0)return!0;return!1};
TC$=function(h,E,g,Z,M,W,z,c,I){g=g===void 0?"GET":g;Z=Z===void 0?"":Z;c=c===void 0?!1:c;var B=saM();if(!B)return null;var U=function(){(B&&"readyState"in B?B.readyState:0)===4&&E&&_.k3(E)(B)};
"onloadend"in B?B.addEventListener("loadend",U,!1):B.onreadystatechange=U;_.J("debug_forward_web_query_parameters")&&(h=Fcu(h,window.location.search));B.open(g,h,!0);W&&(B.responseType=W);z&&(B.withCredentials=!0);g=g==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(M=ATa(h,M))for(var L in M)B.setRequestHeader(L,M[L]),"content-type"===L.toLowerCase()&&(g=!1);g&&B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");I&&"onprogress"in B&&(B.onprogress=function(){I(B.responseText)});
if(c&&"setAttributionReporting"in XMLHttpRequest.prototype){h={eventSourceEligible:!0,triggerEligible:!1};try{B.setAttributionReporting(h)}catch(d){_.Fn(d)}}B.send(Z);return B};
ATa=function(h,E){E=E===void 0?{}:E;var g=Md(h),Z=_.nF("INNERTUBE_CLIENT_NAME"),M=_.J("web_ajax_ignore_global_headers_if_set"),W;for(W in bZ4){var z=_.nF(bZ4[W]),c=W==="X-Goog-AuthUser"||W==="X-Goog-PageId";W!=="X-Goog-Visitor-Id"||z||(z=_.nF("VISITOR_DATA"));var I;if(!(I=!z)){if(!(I=g||(_.gf(h)?!1:!0))){I=h;var B;if(B=_.J("add_auth_headers_to_remarketing_google_dot_com_ping")&&W==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY"))B=xHV(I),B=B===null?!1:B[1]==="google"?
!0:B[2]==="google"?B[0]==="au"&&B[1]==="com"?!0:B[0]==="uk"&&B[1]==="co"?!0:!1:!1;B&&(I=_.jy(I)||"",I=I.split("/"),I="/"+(I.length>1?I[1]:""),B=I==="/pagead");I=B?!0:!1}I=!I}I||M&&E[W]!==void 0||Z==="TVHTML5_UNPLUGGED"&&c||(E[W]=z)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];if(g||!_.gf(h))E["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(g||!_.gf(h)){try{var U=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(L){}U&&(E["X-YouTube-Time-Zone"]=
U)}document.location.hostname.endsWith("youtubeeducation.com")||!g&&_.gf(h)||(E["X-YouTube-Ad-Signals"]=NCd(uF$()));return E};
_.QaO=function(h,E){var g=_.gf(h);_.J("debug_handle_relative_url_for_query_forward_killswitch")||!g&&Md(h)&&(g=document.location.hostname);var Z=_.jy(h);Z=(g=g&&(g.endsWith("youtube.com")||g.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!g||Z)return h;var M=_.bI(E),W={};_.Tt(kGz,function(z){M[z]&&(W[z]=M[z])});
return S7x(h,W)};
hOd=function(h,E){E.method="POST";E.postParams||(E.postParams={});return _.df(h,E)};
E8u=function(h,E){var g=_.nF("XSRF_FIELD_NAME"),Z;E.headers&&(Z=E.headers["Content-Type"]);return!E.excludeXsrf&&(!_.gf(h)||E.withCredentials||_.gf(h)===document.location.hostname)&&E.method==="POST"&&(!Z||Z==="application/x-www-form-urlencoded")&&!(E.postParams&&E.postParams[g])};
_.df=function(h,E){var g=E.format||"JSON";h=g8q(h,E);var Z=Ze4(h,E),M=!1,W=MDx(h,function(I){if(!M){M=!0;c&&_.Ll(c);var B=_.Vjd(I),U=null,L=400<=I.status&&I.status<500,d=500<=I.status&&I.status<600;if(B||L||d)U=WMa(h,g,I,E.convertToSafeHtml);B&&(B=pnO(g,I,U));U=U||{};L=E.context||_.MN;B?E.onSuccess&&E.onSuccess.call(L,I,U):E.onError&&E.onError.call(L,I,U);E.onFinish&&E.onFinish.call(L,I,U)}},E.method,Z,E.headers,E.responseType,E.withCredentials,!1,E.onProgress);
Z=E.timeout||0;if(E.onTimeout&&Z>0){var z=E.onTimeout;var c=_.Bx(function(){M||(M=!0,W.abort(),_.Ll(c),z.call(E.context||_.MN,W))},Z)}return W};
g8q=function(h,E){E.includeDomain&&(h=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+h);var g=_.nF("XSRF_FIELD_NAME");if(E=E.urlParams)E[g]&&delete E[g],h=_.Qy(h,E);return h};
Ze4=function(h,E){var g=_.nF("XSRF_FIELD_NAME"),Z=_.nF("XSRF_TOKEN"),M=E.postBody||"",W=E.postParams;E8u(h,E)&&(W||(W={}),W[g]=Z);(_.J("ajax_parse_query_data_only_when_filled")&&W&&Object.keys(W).length>0||W)&&typeof M==="string"&&(M=_.bI(M),_.Kt.extend(M,W),M=E.postBodyFormat&&E.postBodyFormat==="JSON"?JSON.stringify(M):_.Cl(M));W=M||W&&!_.Kt.isEmpty(W);!Gyd&&W&&E.method!=="POST"&&(Gyd=!0,_.Vy(Error("Kc")));return M};
WMa=function(h,E,g,Z){var M=null;switch(E){case "JSON":try{var W=g.responseText}catch(z){throw Z=Error("Lc"),Z.params=h,_.Fn(Z),z;}h=g.getResponseHeader("Content-Type")||"";W&&h.indexOf("json")>=0&&(W.substring(0,5)===")]}'\n"&&(W=W.substring(5)),M=JSON.parse(W));break;case "XML":if(h=(h=g.responseXML)?zO4(h):null)M={},_.Tt(h.getElementsByTagName("*"),function(z){M[z.tagName]=a$N(z)})}Z&&cjO(M);
return M};
cjO=function(h){if(_.yx(h))for(var E in h)E==="html_content"||zu(E,"_html")?h[E]=AL(h[E]):cjO(h[E])};
pnO=function(h,E,g){if(E&&E.status===204)return!0;switch(h){case "JSON":return!!g;case "XML":return Number(g&&g.return_code)===0;case "RAW":return!0;default:return!!g}};
zO4=function(h){return h?(h=("responseXML"in h?h.responseXML:h).getElementsByTagName("root"))&&h.length>0?h[0]:null:null};
a$N=function(h){var E="";_.Tt(h.childNodes,function(g){E+=g.nodeValue});
return E};
ieN=function(h){if(h.name==="JavaException")return!0;h=h.stack;return h.includes("chrome://")||h.includes("-extension://")||h.includes("webkit-masked-url://")};
o8O=function(h){if(!h.stack)return!0;var E=!h.stack.includes("\n");return E&&h.stack.includes("ErrorType: ")||E&&h.stack.includes("Anonymous function (Unknown script")||h.stack.toLowerCase()==="not available"||h.fileName==="user-script"||h.fileName.startsWith("user-script:")?!0:!1};
_.Jl=function(h){_.wO.call(this);this.JSC$10523_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!h};
ROz=function(h,E){var g=h.length,Z=0,M=function(){return h.charCodeAt(Z++)};
do{var W=I$4(M);if(W===Infinity)break;var z=W>>3;switch(W&7){case 0:W=I$4(M);if(z===E)return W;break;case 1:if(z===E)return;Z+=8;break;case 2:W=I$4(M);if(z===E)return h.substr(Z,W);Z+=W;break;case 5:if(z===E)return;Z+=4;break;default:return}}while(Z<g)};
I$4=function(h){var E=h(),g=E&127;if(E<128)return g;E=h();g|=(E&127)<<7;if(E<128)return g;E=h();g|=(E&127)<<14;if(E<128)return g;E=h();return E<128?g|(E&127)<<21:Infinity};
BZz=function(h,E,g,Z){if(h)if(Array.isArray(h)){var M=Z;for(Z=0;Z<h.length&&!(h[Z]&&(M+=PV4(Z,h[Z],E,g),M>500));Z++);Z=M}else if(typeof h==="object")for(M in h){if(h[M]){var W=M;var z=h[M],c=E,I=g;W=typeof z!=="string"||W!=="clickTrackingParams"&&W!=="trackingParams"?0:(z=ROz(atob(z.replace(/-/g,"+").replace(/_/g,"/")),2))?PV4(W+".ve",z,c,I):0;Z+=W;Z+=PV4(M,h[M],E,g);if(Z>500)break}}else g[E]=ey(h),Z+=g[E].length;else g[E]=ey(h),Z+=g[E].length;return Z};
PV4=function(h,E,g,Z){g+="."+h;h=ey(E);Z[g]=h;return g.length+h.length};
ey=function(h){try{return(typeof h==="string"?h:String(JSON.stringify(h))).substr(0,500)}catch(E){return"unable to serialize "+typeof h+" ("+E.message+")"}};
Uwu=function(h){switch(h){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}};
_.fl=function(h,E,g,Z,M){_.qd.set(h,E,{maxAge:g,path:"/",domain:Z===void 0?"youtube.com":Z,secure:M===void 0?!1:M})};
_.LM4=function(h,E,g){_.qd.remove(h,E===void 0?"/":E,g===void 0?"youtube.com":g)};
_.Nd=function(){if(_.J("embeds_web_enable_cookie_detection_fix")){if(!_.MN.navigator.cookieEnabled)return!1}else if(!_.qd.isEnabled())return!1;if(!_.qd.isEmpty())return!0;_.J("embeds_web_enable_cookie_detection_fix")?_.qd.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.qd.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.qd.get("TESTCOOKIESENABLED")!=="1")return!1;_.qd.remove("TESTCOOKIESENABLED");return!0};
jYz=function(){var h=_.MN.navigator;return h?h.connection:void 0};
dwd=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}};
_.Jj$=function(){var h=jYz();if(h){var E=CVa[h.type||"unknown"]||"CONN_UNKNOWN";h=CVa[h.effectiveType||"unknown"]||"CONN_UNKNOWN";E==="CONN_CELLULAR_UNKNOWN"&&h!=="CONN_UNKNOWN"&&(E=h);if(E!=="CONN_UNKNOWN")return E;if(h!=="CONN_UNKNOWN")return h}};
qo$=function(){var h=jYz();if(h!=null&&h.effectiveType)return eO$.hasOwnProperty(h.effectiveType)?eO$[h.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Sy=function(){try{return _.tl(),!0}catch(h){return!1}};
_.tl=function(h){if(_.nF("DATASYNC_ID")!==void 0)return _.nF("DATASYNC_ID");throw new _.xX("Datasync ID not set",h===void 0?"unknown":h);};
_.wf=function(h){this.mechanism=h};
DV=function(h){this.mechanism=h};
lN=function(h){this.storage_=h;this.cachedIsStorageAvailable_=null};
f$$=function(){var h=null;try{h=_.MN.localStorage||null}catch(E){}lN.call(this,h)};
NZM=function(){var h=null;try{h=_.MN.sessionStorage||null}catch(E){}lN.call(this,h)};
rf=function(h,E){this.mechanism_=h;this.JSC$10625_prefix_=E+"::"};
_.tDV=function(h){var E=new f$$;return E.isAvailable()?h?new rf(E,h):E:null};
_.SoZ=function(h){var E=new NZM;return E.isAvailable()?h?new rf(E,h):E:null};
wn$=function(){var h;return(h=xw$())==null?void 0:h.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Hx=function(h){Dwq||(_.mX?_.mX.logError(h):(_.vx.push({type:"ERROR",payload:h}),_.vx.length>10&&_.vx.shift()))};
$X=function(h,E){Dwq||(_.mX?_.mX.logEvent(h,E):(_.vx.push({type:"EVENT",eventType:h,payload:E}),_.vx.length>10&&_.vx.shift()))};
Kl=function(h){if(h.indexOf(":")>=0)throw Error("Sc");};
nl=function(h){return h.substr(0,h.indexOf(":"))||h};
mw$=function(){return(l$q||rjx)&&Xy("applewebkit")&&!Xy("version")&&(!Xy("safari")||Xy("gsa/"))};
Xy=function(h){var E=_.jq();return E?E.toLowerCase().indexOf(h)>=0:!1};
$wx=function(h,E,g,Z){E=nl(E);var M=h instanceof Error?h:Error("Tc`"+h);if(M instanceof YX)return M;h={objectStoreNames:g,dbName:E,dbVersion:Z};if(M.name==="QuotaExceededError")return new YX("QUOTA_EXCEEDED",h);if(_.sq&&M.name==="UnknownError")return new YX("QUOTA_MAYBE_EXCEEDED",h);if(M instanceof v8a)return new YX("MISSING_INDEX",Object.assign({},h,{objectStore:M.objectStore,index:M.index}));if(M.name==="InvalidStateError"&&Heq.some(function(W){return M.message.includes(W)}))return new YX("EXECUTE_TRANSACTION_ON_CLOSED_DB",
h);
if(M.name==="AbortError")return new YX("UNKNOWN_ABORT",h,M.message);M.args=[Object.assign({},h,{name:"IdbError",originalName:M.name})];M.level="WARNING";return M};
Vn=function(h,E,g){var Z=wn$();return new YX("IDB_NOT_SUPPORTED",{context:{caller:h,publicName:E,version:g,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})};
KM4=function(h){if(!h)throw Error();throw h;};
OeN=function(h){return h};
n8$=function(h,E,g){var Z=function(){try{h.removeEventListener("success",M),h.removeEventListener("error",W)}catch(z){}},M=function(){E(h.result);
Z()},W=function(){g(h.error);
Z()};
h.addEventListener("success",M);h.addEventListener("error",W)};
XnW=function(h){return new Promise(function(E,g){n8$(h,E,g)})};
Fy=function(h){return new kX(new yn(function(E,g){n8$(h,E,g)}))};
YoW=function(h,E){return new kX(new yn(function(g,Z){var M=function(){var W=h?E(h):null;W?W.then(function(z){h=z;M()},Z):g()};
M()}))};
sYq=function(h,E,g){return new Promise(function(Z,M){var W=E!==void 0?self.indexedDB.open(h,E):self.indexedDB.open(h);var z=g.blocked,c=g.blocking,I=g.terminated,B=g.upgrade,U=g.closed,L,d=function(){L||(L=new Al(W.result,{closed:U}));return L};
W.addEventListener("upgradeneeded",function(C){try{if(C.newVersion===null)throw Error("Yc");if(W.transaction===null)throw Error("Zc");C.dataLoss&&C.dataLoss!=="none"&&$X("IDB_DATA_CORRUPTED",{reason:C.dataLossMessage||"unknown reason",dbName:nl(h)});var q=d(),w=new TF(W.transaction);B&&B(q,function(r){return C.oldVersion<r&&C.newVersion>=r},w);
w.done.catch(function(r){M(r)})}catch(r){M(r)}});
W.addEventListener("success",function(){var C=W.result;c&&C.addEventListener("versionchange",function(){c(d())});
C.addEventListener("close",function(){$X("IDB_UNEXPECTEDLY_CLOSED",{dbName:nl(h),dbVersion:C.version});I&&I()});
Z(d())});
W.addEventListener("error",function(){M(W.error)});
z&&W.addEventListener("blocked",function(){z()})})};
VDV=function(h,E,g){g=g===void 0?{}:g;return sYq(h,E,g)};
_.uN=function(h,E){E=E===void 0?{}:E;var g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return _.CX(z,2),g=self.indexedDB.deleteDatabase(h),Z=E,(M=Z.blocked)&&g.addEventListener("blocked",function(){M()}),z.yield(XnW(g),4);
if(z.nextAddress!=2)return _.bN(z,0);W=_.th(z);throw $wx(W,h,"",-1);})};
yjx=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.Qn(kyq,E),2);g=Z.yieldResult;return Z.return(_.ht(g,["databases"],{enableRetries:!0,mode:"readwrite"},function(M){var W=M.objectStore("databases");return W.get(h.actualName).then(function(z){if(z?h.actualName!==z.actualName||h.publicName!==z.publicName||h.userIdentifier!==z.userIdentifier:1)return W.put(h).then(function(){})})}))})};
_.EY=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)return h?Z.yield(_.Qn(kyq,E),2):Z.return();g=Z.yieldResult;return Z.return(g.delete("databases",h))})};
_.FM4=function(h,E){var g,Z;return _.a(function(M){return M.nextAddress==1?(g=[],M.yield(_.Qn(kyq,E),2)):M.nextAddress!=3?(Z=M.yieldResult,M.yield(_.ht(Z,["databases"],{enableRetries:!0,mode:"readonly"},function(W){g.length=0;return ge(W.objectStore("databases"),{},function(z){h(z.getValue())&&g.push(z.getValue());return z.continue()})}),3)):M.return(g)})};
AjV=function(h,E){return _.FM4(function(g){return g.publicName===h&&g.userIdentifier!==void 0},E)};
uMa=function(){var h,E,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:h=wn$();if((E=h)==null?0:E.hasSucceededOnce)return M.return(!0);var W;if(W=TZx)W=/WebKit\/([0-9]+)/.exec(_.jq()),W=!!(W&&parseInt(W[1],10)>=600);W&&(W=/WebKit\/([0-9]+)/.exec(_.jq()),W=!(W&&parseInt(W[1],10)>=602));if(W||Zp)return M.return(!1);try{if(g=self,!(g.indexedDB&&g.IDBIndex&&g.IDBKeyRange&&g.IDBObjectStore))return M.return(!1)}catch(z){return M.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return M.return(!1);
_.CX(M,2);Z={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return M.yield(yjx(Z,be$),4);case 4:return M.yield(_.EY("yt-idb-test-do-not-use",be$),5);case 5:return M.return(!0);case 2:return _.th(M),M.return(!1)}})};
h9$=function(){if(QYV!==void 0)return QYV;Dwq=!0;return QYV=uMa().then(function(h){Dwq=!1;var E;if((E=xw$())!=null&&E.expiringStorage_){var g;E={hasSucceededOnce:((g=wn$())==null?void 0:g.hasSucceededOnce)||h};var Z;(Z=xw$())==null||Z.set("LAST_RESULT_ENTRY_KEY",E,2592E3,!0)}return h})};
M2=function(){return _.yy("ytglobal.idbToken_")||void 0};
_.pP=function(){var h=M2();return h?Promise.resolve(h):h9$().then(function(E){(E=E?be$:void 0)&&_.Wu("ytglobal.idbToken_",E);return E})};
EYz=function(h){if(!_.Sy())throw h=new YX("AUTH_INVALID",{dbName:h}),_.Hx(h),h;var E=_.tl();return{actualName:h+":"+E,publicName:h,userIdentifier:E}};
gYa=function(h,E,g,Z){var M,W,z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:return W=(M=Error().stack)!=null?M:"",U.yield(_.pP(),2);case 2:z=U.yieldResult;if(!z)throw c=Vn("openDbImpl",h,E),_.J("ytidb_async_stack_killswitch")||(c.stack=c.stack+"\n"+W.substring(W.indexOf("\n")+1)),_.Hx(c),c;Kl(h);I=g?{actualName:h,publicName:h,userIdentifier:void 0}:EYz(h);_.CX(U,3);return U.yield(yjx(I,z),5);case 5:return U.yield(VDV(I.actualName,E,Z),6);case 6:return U.return(U.yieldResult);case 3:return B=
_.th(U),_.CX(U,7),U.yield(_.EY(I.actualName,z),9);case 9:_.bN(U,8);break;case 7:_.th(U);case 8:throw B;}})};
Zmz=function(h,E,g){g=g===void 0?{}:g;return gYa(h,E,!1,g)};
Mlz=function(h,E,g){g=g===void 0?{}:g;return gYa(h,E,!0,g)};
WbV=function(h,E){E=E===void 0?{}:E;var g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(_.pP(),2);if(M.nextAddress!=3){g=M.yieldResult;if(!g)return M.return();Kl(h);Z=EYz(h);return M.yield(_.uN(Z.actualName,E),3)}return M.yield(_.EY(Z.actualName,g),0)})};
ppZ=function(h,E,g){h=h.map(function(Z){return _.a(function(M){return M.nextAddress==1?M.yield(_.uN(Z.actualName,E),2):M.yield(_.EY(Z.actualName,g),0)})});
return Promise.all(h).then(function(){})};
Gvq=function(h){var E=E===void 0?{}:E;var g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(_.pP(),2);if(M.nextAddress!=3){g=M.yieldResult;if(!g)return M.return();Kl(h);return M.yield(AjV(h,g),3)}Z=M.yieldResult;return M.yield(ppZ(Z,E,g),0)})};
z9z=function(h,E){E=E===void 0?{}:E;var g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.pP(),2);if(Z.nextAddress!=3){g=Z.yieldResult;if(!g)return Z.return();Kl(h);return Z.yield(_.uN(h,E),3)}return Z.yield(_.EY(h,g),0)})};
Gn=function(h,E){return a9$(h,E)};
im$=function(h){return _.Qn(ckx(),h)};
oYV=function(h,E,g,Z){var M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:return M={config:h,hashData:E,timestamp:Z!==void 0?Z:(0,_.zn)()},c.yield(im$(g),2);case 2:return W=c.yieldResult,c.yield(W.clear("hotConfigStore"),3);case 3:return c.yield(W.put("hotConfigStore",M),4);case 4:return z=c.yieldResult,c.return(z)}})};
I9$=function(h,E,g,Z,M){var W,z,c;return _.a(function(I){switch(I.nextAddress){case 1:return W={config:h,hashData:E,configData:g,timestamp:M!==void 0?M:(0,_.zn)()},I.yield(im$(Z),2);case 2:return z=I.yieldResult,I.yield(z.clear("coldConfigStore"),3);case 3:return I.yield(z.put("coldConfigStore",W),4);case 4:return c=I.yieldResult,I.return(c)}})};
R9d=function(h){var E,g;return _.a(function(Z){return Z.nextAddress==1?Z.yield(im$(h),2):Z.nextAddress!=3?(E=Z.yieldResult,g=void 0,Z.yield(_.ht(E,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.aI(M.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(W){g=W.getValue()})}),3)):Z.return(g)})};
PUM=function(h){var E,g;return _.a(function(Z){return Z.nextAddress==1?Z.yield(im$(h),2):Z.nextAddress!=3?(E=Z.yieldResult,g=void 0,Z.yield(_.ht(E,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(M){return _.aI(M.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(W){g=W.getValue()})}),3)):Z.return(g)})};
BNu=function(){return _.a(function(h){return h.yield(Gvq("ytGcfConfig"),0)})};
URa=function(){return"INNERTUBE_API_KEY"in _.KF&&"INNERTUBE_API_VERSION"in _.KF};
_.cu=function(){return{innertubeApiKey:_.nF("INNERTUBE_API_KEY"),innertubeApiVersion:_.nF("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.nF("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.nF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.nF("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.nF("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.nF("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.nF("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Xn("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Xn("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.nF("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.q8W=function(h){var E={client:{hl:h.innertubeContextHostLanguage,gl:h.innertubeContextGeoLocation,clientName:h.innertubeContextClientName,clientVersion:h.innertubeContextClientVersion,configInfo:h.innertubeContextClientConfigInfo}};navigator.userAgent&&(E.client.userAgent=String(navigator.userAgent));var g=_.MN.devicePixelRatio;g&&g!=1&&(E.client.screenDensityFloat=String(g));g=neZ();g!==""&&(E.client.experimentsToken=g);g=XXz();g.length>0&&(E.request={internalExperimentFlags:g});Lb4(h,void 0,E);
jtN(void 0,E);dRx(void 0,E);CU$(h,void 0,E);JkW(void 0,E);_.J("start_client_gcf")&&e9d(void 0,E);_.nF("DELEGATED_SESSION_ID")&&!_.J("pageid_as_header_web")&&(E.user={onBehalfOfUser:_.nF("DELEGATED_SESSION_ID")});!_.J("fill_delegate_context_in_gel_killswitch")&&(h=_.nF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E.user=Object.assign({},E.user,{serializedDelegationContext:h}));h=_.nF("INNERTUBE_CONTEXT");var Z;if(_.J("enable_persistent_device_token")&&(h==null?0:(Z=h.client)==null?0:Z.rolloutToken)){var M;
E.client.rolloutToken=h==null?void 0:(M=h.client)==null?void 0:M.rolloutToken}Z=Object;M=Z.assign;h=E.client;g={};for(var W=_.G(Object.entries(_.bI(_.nF("DEVICE","")))),z=W.next();!z.done;z=W.next()){var c=_.G(z.value);z=c.next().value;c=c.next().value;z==="cbrand"?g.deviceMake=c:z==="cmodel"?g.deviceModel=c:z==="cbr"?g.browserName=c:z==="cbrver"?g.browserVersion=c:z==="cos"?g.osName=c:z==="cosver"?g.osVersion=c:z==="cplatform"&&(g.platform=c)}E.client=M.call(Z,h,g);return E};
Lb4=function(h,E,g){h=h.innertubeContextClientName;if(h==="WEB"||h==="MWEB"||h===1||h===2)if(E){g=_.iK(E,f9M,96)||new f9M;var Z=NN4();Z=Object.keys(tlz).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&_.oI(g,3,Z);_.fM(E,96,g)}else g&&(g.client.mainAppWebInfo=(Z=g.client.mainAppWebInfo)!=null?Z:{},g.client.mainAppWebInfo.webDisplayMode=NN4())};
jtN=function(h,E){var g=_.yy("yt.embedded_player.embed_url");g&&(h?(E=_.iK(h,S8N,7)||new S8N,_.ln(E,4,g),_.fM(h,7,E)):E&&(E.thirdParty={embedUrl:g}))};
dRx=function(h,E){var g;if(_.J("web_log_memory_total_kbytes")&&((g=_.MN.navigator)==null?0:g.deviceMemory)){var Z;g=(Z=_.MN.navigator)==null?void 0:Z.deviceMemory;h?_.II(h,95,iJ(g*1E6)):E&&(E.client.memoryTotalKbytes=""+g*1E6)}};
CU$=function(h,E,g){if(h.appInstallData)if(E){var Z;g=(Z=_.iK(E,RI,62))!=null?Z:new RI;_.ln(g,6,h.appInstallData);_.fM(E,62,g)}else g&&(g.client.configInfo=g.client.configInfo||{},g.client.configInfo.appInstallData=h.appInstallData)};
JkW=function(h,E){var g=_.Jj$();g&&(h?_.oI(h,61,xRZ[g]):E&&(E.client.connectionType=g));_.J("web_log_effective_connection_type")&&(g=qo$())&&(h?_.oI(h,94,wpz[g]):E&&(E.client.effectiveConnectionType=g))};
_.rkx=function(h,E,g){g=g===void 0?{}:g;var Z={};_.nF("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":_.nF("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":g.visitorData||_.nF("VISITOR_DATA","")};if(E&&E.includes("www.youtube-nocookie.com"))return Z;E=g.authorization||_.nF("AUTHORIZATION");E||(h?E="Bearer "+_.yy("gapi.auth.getToken")().access_token:(DRa.instance||(DRa.instance=new DRa),h=l9N(),_.J("pageid_as_header_web")||delete h["X-Goog-PageId"],Z=Object.assign({},Z,h)));E&&(Z.Authorization=E);return Z};
e9d=function(h,E){var g=mR$();if(g){var Z=g.coldConfigData,M=g.coldHashData;g=g.hotHashData;if(h){var W;E=(W=_.iK(h,RI,62))!=null?W:new RI;Z=_.ln(E,1,Z);_.ln(Z,3,M).setHotHashData(g);_.fM(h,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},Z&&(E.client.configInfo.coldConfigData=Z),M&&(E.client.configInfo.coldHashData=M),g&&(E.client.configInfo.hotHashData=g))}};
Pu=function(h){for(var E=h.length;--E>=0;)h[E]=0};
vYx=function(h,E,g,Z,M){this.static_tree=h;this.extra_bits=E;this.extra_base=g;this.elems=Z;this.max_length=M;this.has_stree=h&&h.length};
HmZ=function(h,E){this.dyn_tree=h;this.max_code=0;this.stat_desc=E};
Bu=function(h,E){h.pending_buf[h.pending++]=E&255;h.pending_buf[h.pending++]=E>>>8&255};
UY=function(h,E,g){h.bi_valid>16-g?(h.bi_buf|=E<<h.bi_valid&65535,Bu(h,h.bi_buf),h.bi_buf=E>>16-h.bi_valid,h.bi_valid+=g-16):(h.bi_buf|=E<<h.bi_valid&65535,h.bi_valid+=g)};
LP=function(h,E,g){UY(h,g[E*2],g[E*2+1])};
$RM=function(h,E){var g=0;do g|=h&1,h>>>=1,g<<=1;while(--E>0);return g>>>1};
Kb4=function(h,E,g){var Z=Array(16),M=0,W;for(W=1;W<=15;W++)Z[W]=M=M+g[W-1]<<1;for(g=0;g<=E;g++)M=h[g*2+1],M!==0&&(h[g*2]=$RM(Z[M]++,M))};
Om$=function(h){var E;for(E=0;E<286;E++)h.dyn_ltree[E*2]=0;for(E=0;E<30;E++)h.dyn_dtree[E*2]=0;for(E=0;E<19;E++)h.bl_tree[E*2]=0;h.dyn_ltree[512]=1;h.opt_len=h.static_len=0;h.last_lit=h.matches=0};
nYW=function(h){h.bi_valid>8?Bu(h,h.bi_buf):h.bi_valid>0&&(h.pending_buf[h.pending++]=h.bi_buf);h.bi_buf=0;h.bi_valid=0};
Xpz=function(h,E,g){nYW(h);Bu(h,g);Bu(h,~g);js.arraySet(h.pending_buf,h.window,E,g,h.pending);h.pending+=g};
Y8$=function(h,E,g,Z){var M=E*2,W=g*2;return h[M]<h[W]||h[M]===h[W]&&Z[E]<=Z[g]};
stO=function(h,E,g){for(var Z=h.heap[g],M=g<<1;M<=h.heap_len;){M<h.heap_len&&Y8$(E,h.heap[M+1],h.heap[M],h.depth)&&M++;if(Y8$(E,Z,h.heap[M],h.depth))break;h.heap[g]=h.heap[M];g=M;M<<=1}h.heap[g]=Z};
AkV=function(h,E,g){var Z=0;if(h.last_lit!==0){do{var M=h.pending_buf[h.d_buf+Z*2]<<8|h.pending_buf[h.d_buf+Z*2+1];var W=h.pending_buf[h.l_buf+Z];Z++;if(M===0)LP(h,W,E);else{var z=de[W];LP(h,z+256+1,E);var c=Vlq[z];c!==0&&(W-=kvV[z],UY(h,W,c));M--;z=M<256?CP[M]:CP[256+(M>>>7)];LP(h,z,g);c=yk$[z];c!==0&&(M-=Fbu[z],UY(h,M,c))}}while(Z<h.last_lit)}LP(h,256,E)};
TNW=function(h,E){var g=E.dyn_tree,Z=E.stat_desc.static_tree,M=E.stat_desc.has_stree,W=E.stat_desc.elems,z,c=-1;h.heap_len=0;h.heap_max=573;for(z=0;z<W;z++)g[z*2]!==0?(h.heap[++h.heap_len]=c=z,h.depth[z]=0):g[z*2+1]=0;for(;h.heap_len<2;){var I=h.heap[++h.heap_len]=c<2?++c:0;g[I*2]=1;h.depth[I]=0;h.opt_len--;M&&(h.static_len-=Z[I*2+1])}E.max_code=c;for(z=h.heap_len>>1;z>=1;z--)stO(h,g,z);I=W;do z=h.heap[1],h.heap[1]=h.heap[h.heap_len--],stO(h,g,1),Z=h.heap[1],h.heap[--h.heap_max]=z,h.heap[--h.heap_max]=
Z,g[I*2]=g[z*2]+g[Z*2],h.depth[I]=(h.depth[z]>=h.depth[Z]?h.depth[z]:h.depth[Z])+1,g[z*2+1]=g[Z*2+1]=I,h.heap[1]=I++,stO(h,g,1);while(h.heap_len>=2);h.heap[--h.heap_max]=h.heap[1];z=E.dyn_tree;I=E.max_code;Z=E.stat_desc.static_tree;M=E.stat_desc.has_stree;W=E.stat_desc.extra_bits;var B=E.stat_desc.extra_base,U=E.stat_desc.max_length,L,d=0;for(L=0;L<=15;L++)h.bl_count[L]=0;z[h.heap[h.heap_max]*2+1]=0;for(E=h.heap_max+1;E<573;E++){var C=h.heap[E];L=z[z[C*2+1]*2+1]+1;L>U&&(L=U,d++);z[C*2+1]=L;if(!(C>
I)){h.bl_count[L]++;var q=0;C>=B&&(q=W[C-B]);var w=z[C*2];h.opt_len+=w*(L+q);M&&(h.static_len+=w*(Z[C*2+1]+q))}}if(d!==0){do{for(L=U-1;h.bl_count[L]===0;)L--;h.bl_count[L]--;h.bl_count[L+1]+=2;h.bl_count[U]--;d-=2}while(d>0);for(L=U;L!==0;L--)for(C=h.bl_count[L];C!==0;)Z=h.heap[--E],Z>I||(z[Z*2+1]!==L&&(h.opt_len+=(L-z[Z*2+1])*z[Z*2],z[Z*2+1]=L),C--)}Kb4(g,c,h.bl_count)};
bmz=function(h,E,g){var Z,M=-1,W=E[1],z=0,c=7,I=4;W===0&&(c=138,I=3);E[(g+1)*2+1]=65535;for(Z=0;Z<=g;Z++){var B=W;W=E[(Z+1)*2+1];++z<c&&B===W||(z<I?h.bl_tree[B*2]+=z:B!==0?(B!==M&&h.bl_tree[B*2]++,h.bl_tree[32]++):z<=10?h.bl_tree[34]++:h.bl_tree[36]++,z=0,M=B,W===0?(c=138,I=3):B===W?(c=6,I=3):(c=7,I=4))}};
ut$=function(h,E,g){var Z,M=-1,W=E[1],z=0,c=7,I=4;W===0&&(c=138,I=3);for(Z=0;Z<=g;Z++){var B=W;W=E[(Z+1)*2+1];if(!(++z<c&&B===W)){if(z<I){do LP(h,B,h.bl_tree);while(--z!==0)}else B!==0?(B!==M&&(LP(h,B,h.bl_tree),z--),LP(h,16,h.bl_tree),UY(h,z-3,2)):z<=10?(LP(h,17,h.bl_tree),UY(h,z-3,3)):(LP(h,18,h.bl_tree),UY(h,z-11,7));z=0;M=B;W===0?(c=138,I=3):B===W?(c=6,I=3):(c=7,I=4)}}};
Qtu=function(h){var E=4093624447,g;for(g=0;g<=31;g++,E>>>=1)if(E&1&&h.dyn_ltree[g*2]!==0)return 0;if(h.dyn_ltree[18]!==0||h.dyn_ltree[20]!==0||h.dyn_ltree[26]!==0)return 1;for(g=32;g<256;g++)if(h.dyn_ltree[g*2]!==0)return 1;return 0};
Jt=function(h,E,g){h.pending_buf[h.d_buf+h.last_lit*2]=E>>>8&255;h.pending_buf[h.d_buf+h.last_lit*2+1]=E&255;h.pending_buf[h.l_buf+h.last_lit]=g&255;h.last_lit++;E===0?h.dyn_ltree[g*2]++:(h.matches++,E--,h.dyn_ltree[(de[g]+256+1)*2]++,h.dyn_dtree[(E<256?CP[E]:CP[256+(E>>>7)])*2]++);return h.last_lit===h.lit_bufsize-1};
q2=function(h,E){h.msg=es[E];return E};
fP=function(h){for(var E=h.length;--E>=0;)h[E]=0};
N2=function(h){var E=h.state,g=E.pending;g>h.avail_out&&(g=h.avail_out);g!==0&&(js.arraySet(h.output,E.pending_buf,E.pending_out,g,h.next_out),h.next_out+=g,E.pending_out+=g,h.total_out+=g,h.avail_out-=g,E.pending-=g,E.pending===0&&(E.pending_out=0))};
we=function(h,E){var g=h.block_start>=0?h.block_start:-1,Z=h.strstart-h.block_start,M=0;if(h.level>0){h.strm.data_type===2&&(h.strm.data_type=Qtu(h));TNW(h,h.l_desc);TNW(h,h.d_desc);bmz(h,h.dyn_ltree,h.l_desc.max_code);bmz(h,h.dyn_dtree,h.d_desc.max_code);TNW(h,h.bl_desc);for(M=18;M>=3&&h.bl_tree[hbx[M]*2+1]===0;M--);h.opt_len+=3*(M+1)+5+5+4;var W=h.opt_len+3+7>>>3;var z=h.static_len+3+7>>>3;z<=W&&(W=z)}else W=z=Z+5;if(Z+4<=W&&g!==-1)UY(h,E?1:0,3),Xpz(h,g,Z);else if(h.strategy===4||z===W)UY(h,2+(E?
1:0),3),AkV(h,tt,Ss);else{UY(h,4+(E?1:0),3);g=h.l_desc.max_code+1;Z=h.d_desc.max_code+1;M+=1;UY(h,g-257,5);UY(h,Z-1,5);UY(h,M-4,4);for(W=0;W<M;W++)UY(h,h.bl_tree[hbx[W]*2+1],3);ut$(h,h.dyn_ltree,g-1);ut$(h,h.dyn_dtree,Z-1);AkV(h,h.dyn_ltree,h.dyn_dtree)}Om$(h);E&&nYW(h);h.block_start=h.strstart;N2(h.strm)};
Dp=function(h,E){h.pending_buf[h.pending++]=E};
lK=function(h,E){h.pending_buf[h.pending++]=E>>>8&255;h.pending_buf[h.pending++]=E&255};
EAW=function(h,E){var g=h.max_chain_length,Z=h.strstart,M=h.prev_length,W=h.nice_match,z=h.strstart>h.w_size-262?h.strstart-(h.w_size-262):0,c=h.window,I=h.w_mask,B=h.prev,U=h.strstart+258,L=c[Z+M-1],d=c[Z+M];h.prev_length>=h.good_match&&(g>>=2);W>h.lookahead&&(W=h.lookahead);do{var C=E;if(c[C+M]===d&&c[C+M-1]===L&&c[C]===c[Z]&&c[++C]===c[Z+1]){Z+=2;for(C++;c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&c[++Z]===c[++C]&&Z<U;);
C=258-(U-Z);Z=U-258;if(C>M){h.match_start=E;M=C;if(C>=W)break;L=c[Z+M-1];d=c[Z+M]}}}while((E=B[E&I])>z&&--g!==0);return M<=h.lookahead?M:h.lookahead};
mg=function(h){var E=h.w_size,g;do{var Z=h.window_size-h.lookahead-h.strstart;if(h.strstart>=E+(E-262)){js.arraySet(h.window,h.window,E,E,0);h.match_start-=E;h.strstart-=E;h.block_start-=E;var M=g=h.hash_size;do{var W=h.head[--M];h.head[M]=W>=E?W-E:0}while(--g);M=g=E;do W=h.prev[--M],h.prev[M]=W>=E?W-E:0;while(--g);Z+=E}if(h.strm.avail_in===0)break;M=h.strm;g=h.window;W=h.strstart+h.lookahead;var z=M.avail_in;z>Z&&(z=Z);z===0?g=0:(M.avail_in-=z,js.arraySet(g,M.input,M.next_in,z,W),M.state.wrap===
1?M.adler=gAN(M.adler,g,z,W):M.state.wrap===2&&(M.adler=re(M.adler,g,z,W)),M.next_in+=z,M.total_in+=z,g=z);h.lookahead+=g;if(h.lookahead+h.insert>=3)for(Z=h.strstart-h.insert,h.ins_h=h.window[Z],h.ins_h=(h.ins_h<<h.hash_shift^h.window[Z+1])&h.hash_mask;h.insert&&!(h.ins_h=(h.ins_h<<h.hash_shift^h.window[Z+3-1])&h.hash_mask,h.prev[Z&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=Z,Z++,h.insert--,h.lookahead+h.insert<3););}while(h.lookahead<262&&h.strm.avail_in!==0)};
Z3M=function(h,E){for(var g;;){if(h.lookahead<262){mg(h);if(h.lookahead<262&&E===0)return 1;if(h.lookahead===0)break}g=0;h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart);g!==0&&h.strstart-g<=h.w_size-262&&(h.match_length=EAW(h,g));if(h.match_length>=3)if(g=Jt(h,h.strstart-h.match_start,h.match_length-3),h.lookahead-=h.match_length,h.match_length<=h.max_lazy_match&&h.lookahead>=3){h.match_length--;
do h.strstart++,h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart;while(--h.match_length!==0);h.strstart++}else h.strstart+=h.match_length,h.match_length=0,h.ins_h=h.window[h.strstart],h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+1])&h.hash_mask;else g=Jt(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++;if(g&&(we(h,!1),h.strm.avail_out===0))return 1}h.insert=h.strstart<2?h.strstart:2;return E===4?(we(h,
!0),h.strm.avail_out===0?3:4):h.last_lit&&(we(h,!1),h.strm.avail_out===0)?1:2};
vu=function(h,E){for(var g,Z;;){if(h.lookahead<262){mg(h);if(h.lookahead<262&&E===0)return 1;if(h.lookahead===0)break}g=0;h.lookahead>=3&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,g=h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart);h.prev_length=h.match_length;h.prev_match=h.match_start;h.match_length=2;g!==0&&h.prev_length<h.max_lazy_match&&h.strstart-g<=h.w_size-262&&(h.match_length=EAW(h,g),h.match_length<=5&&(h.strategy===1||h.match_length===3&&
h.strstart-h.match_start>4096)&&(h.match_length=2));if(h.prev_length>=3&&h.match_length<=h.prev_length){Z=h.strstart+h.lookahead-3;g=Jt(h,h.strstart-1-h.prev_match,h.prev_length-3);h.lookahead-=h.prev_length-1;h.prev_length-=2;do++h.strstart<=Z&&(h.ins_h=(h.ins_h<<h.hash_shift^h.window[h.strstart+3-1])&h.hash_mask,h.prev[h.strstart&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=h.strstart);while(--h.prev_length!==0);h.match_available=0;h.match_length=2;h.strstart++;if(g&&(we(h,!1),h.strm.avail_out===0))return 1}else if(h.match_available){if((g=
Jt(h,0,h.window[h.strstart-1]))&&we(h,!1),h.strstart++,h.lookahead--,h.strm.avail_out===0)return 1}else h.match_available=1,h.strstart++,h.lookahead--}h.match_available&&(Jt(h,0,h.window[h.strstart-1]),h.match_available=0);h.insert=h.strstart<2?h.strstart:2;return E===4?(we(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(we(h,!1),h.strm.avail_out===0)?1:2};
MgV=function(h,E){for(var g,Z,M,W=h.window;;){if(h.lookahead<=258){mg(h);if(h.lookahead<=258&&E===0)return 1;if(h.lookahead===0)break}h.match_length=0;if(h.lookahead>=3&&h.strstart>0&&(Z=h.strstart-1,g=W[Z],g===W[++Z]&&g===W[++Z]&&g===W[++Z])){for(M=h.strstart+258;g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&g===W[++Z]&&Z<M;);h.match_length=258-(M-Z);h.match_length>h.lookahead&&(h.match_length=h.lookahead)}h.match_length>=3?(g=Jt(h,1,h.match_length-3),h.lookahead-=
h.match_length,h.strstart+=h.match_length,h.match_length=0):(g=Jt(h,0,h.window[h.strstart]),h.lookahead--,h.strstart++);if(g&&(we(h,!1),h.strm.avail_out===0))return 1}h.insert=0;return E===4?(we(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(we(h,!1),h.strm.avail_out===0)?1:2};
Wha=function(h,E){for(var g;;){if(h.lookahead===0&&(mg(h),h.lookahead===0)){if(E===0)return 1;break}h.match_length=0;g=Jt(h,0,h.window[h.strstart]);h.lookahead--;h.strstart++;if(g&&(we(h,!1),h.strm.avail_out===0))return 1}h.insert=0;return E===4?(we(h,!0),h.strm.avail_out===0?3:4):h.last_lit&&(we(h,!1),h.strm.avail_out===0)?1:2};
Hu=function(h,E,g,Z,M){this.good_length=h;this.max_lazy=E;this.nice_length=g;this.max_chain=Z;this.func=M};
pbV=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 js.Buf16(1146);this.dyn_dtree=new js.Buf16(122);this.bl_tree=new js.Buf16(78);fP(this.dyn_ltree);fP(this.dyn_dtree);fP(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new js.Buf16(16);this.heap=new js.Buf16(573);fP(this.heap);this.heap_max=this.heap_len=0;this.depth=new js.Buf16(573);fP(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};
Gwq=function(h,E){if(!h||!h.state||E>5||E<0)return h?q2(h,-2):-2;var g=h.state;if(!h.output||!h.input&&h.avail_in!==0||g.status===666&&E!==4)return q2(h,h.avail_out===0?-5:-2);g.strm=h;var Z=g.last_flush;g.last_flush=E;if(g.status===42)if(g.wrap===2)h.adler=0,Dp(g,31),Dp(g,139),Dp(g,8),g.gzhead?(Dp(g,(g.gzhead.text?1:0)+(g.gzhead.hcrc?2:0)+(g.gzhead.extra?4:0)+(g.gzhead.name?8:0)+(g.gzhead.comment?16:0)),Dp(g,g.gzhead.time&255),Dp(g,g.gzhead.time>>8&255),Dp(g,g.gzhead.time>>16&255),Dp(g,g.gzhead.time>>
24&255),Dp(g,g.level===9?2:g.strategy>=2||g.level<2?4:0),Dp(g,g.gzhead.os&255),g.gzhead.extra&&g.gzhead.extra.length&&(Dp(g,g.gzhead.extra.length&255),Dp(g,g.gzhead.extra.length>>8&255)),g.gzhead.hcrc&&(h.adler=re(h.adler,g.pending_buf,g.pending,0)),g.gzindex=0,g.status=69):(Dp(g,0),Dp(g,0),Dp(g,0),Dp(g,0),Dp(g,0),Dp(g,g.level===9?2:g.strategy>=2||g.level<2?4:0),Dp(g,3),g.status=113);else{var M=8+(g.w_bits-8<<4)<<8;M|=(g.strategy>=2||g.level<2?0:g.level<6?1:g.level===6?2:3)<<6;g.strstart!==0&&(M|=
32);g.status=113;lK(g,M+(31-M%31));g.strstart!==0&&(lK(g,h.adler>>>16),lK(g,h.adler&65535));h.adler=1}if(g.status===69)if(g.gzhead.extra){for(M=g.pending;g.gzindex<(g.gzhead.extra.length&65535)&&(g.pending!==g.pending_buf_size||(g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M)),N2(h),M=g.pending,g.pending!==g.pending_buf_size));)Dp(g,g.gzhead.extra[g.gzindex]&255),g.gzindex++;g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M));g.gzindex===g.gzhead.extra.length&&
(g.gzindex=0,g.status=73)}else g.status=73;if(g.status===73)if(g.gzhead.name){M=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M)),N2(h),M=g.pending,g.pending===g.pending_buf_size)){var W=1;break}W=g.gzindex<g.gzhead.name.length?g.gzhead.name.charCodeAt(g.gzindex++)&255:0;Dp(g,W)}while(W!==0);g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M));W===0&&(g.gzindex=0,g.status=91)}else g.status=91;if(g.status===
91)if(g.gzhead.comment){M=g.pending;do{if(g.pending===g.pending_buf_size&&(g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M)),N2(h),M=g.pending,g.pending===g.pending_buf_size)){W=1;break}W=g.gzindex<g.gzhead.comment.length?g.gzhead.comment.charCodeAt(g.gzindex++)&255:0;Dp(g,W)}while(W!==0);g.gzhead.hcrc&&g.pending>M&&(h.adler=re(h.adler,g.pending_buf,g.pending-M,M));W===0&&(g.status=103)}else g.status=103;g.status===103&&(g.gzhead.hcrc?(g.pending+2>g.pending_buf_size&&N2(h),
g.pending+2<=g.pending_buf_size&&(Dp(g,h.adler&255),Dp(g,h.adler>>8&255),h.adler=0,g.status=113)):g.status=113);if(g.pending!==0){if(N2(h),h.avail_out===0)return g.last_flush=-1,0}else if(h.avail_in===0&&(E<<1)-(E>4?9:0)<=(Z<<1)-(Z>4?9:0)&&E!==4)return q2(h,-5);if(g.status===666&&h.avail_in!==0)return q2(h,-5);if(h.avail_in!==0||g.lookahead!==0||E!==0&&g.status!==666){Z=g.strategy===2?Wha(g,E):g.strategy===3?MgV(g,E):$L[g.level].func(g,E);if(Z===3||Z===4)g.status=666;if(Z===1||Z===3)return h.avail_out===
0&&(g.last_flush=-1),0;if(Z===2&&(E===1?(UY(g,2,3),LP(g,256,tt),g.bi_valid===16?(Bu(g,g.bi_buf),g.bi_buf=0,g.bi_valid=0):g.bi_valid>=8&&(g.pending_buf[g.pending++]=g.bi_buf&255,g.bi_buf>>=8,g.bi_valid-=8)):E!==5&&(UY(g,0,3),Xpz(g,0,0),E===3&&(fP(g.head),g.lookahead===0&&(g.strstart=0,g.block_start=0,g.insert=0))),N2(h),h.avail_out===0))return g.last_flush=-1,0}if(E!==4)return 0;if(g.wrap<=0)return 1;g.wrap===2?(Dp(g,h.adler&255),Dp(g,h.adler>>8&255),Dp(g,h.adler>>16&255),Dp(g,h.adler>>24&255),Dp(g,
h.total_in&255),Dp(g,h.total_in>>8&255),Dp(g,h.total_in>>16&255),Dp(g,h.total_in>>24&255)):(lK(g,h.adler>>>16),lK(g,h.adler&65535));N2(h);g.wrap>0&&(g.wrap=-g.wrap);return g.pending!==0?0:1};
zb$=function(h){if(!(this instanceof zb$))return new zb$(h);h=this.options=js.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},h||{});h.raw&&h.windowBits>0?h.windowBits=-h.windowBits:h.gzip&&h.windowBits>0&&h.windowBits<16&&(h.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new aMq;this.strm.avail_out=0;var E=this.strm;var g=h.level,Z=h.method,M=h.windowBits,W=h.memLevel,z=h.strategy;if(E){var c=1;g===-1&&(g=6);M<0?(c=0,M=-M):M>15&&
(c=2,M-=16);if(W<1||W>9||Z!==8||M<8||M>15||g<0||g>9||z<0||z>4)E=q2(E,-2);else{M===8&&(M=9);var I=new pbV;E.state=I;I.strm=E;I.wrap=c;I.gzhead=null;I.w_bits=M;I.w_size=1<<I.w_bits;I.w_mask=I.w_size-1;I.hash_bits=W+7;I.hash_size=1<<I.hash_bits;I.hash_mask=I.hash_size-1;I.hash_shift=~~((I.hash_bits+3-1)/3);I.window=new js.Buf8(I.w_size*2);I.head=new js.Buf16(I.hash_size);I.prev=new js.Buf16(I.w_size);I.lit_bufsize=1<<W+6;I.pending_buf_size=I.lit_bufsize*4;I.pending_buf=new js.Buf8(I.pending_buf_size);
I.d_buf=I.lit_bufsize;I.l_buf=3*I.lit_bufsize;I.level=g;I.strategy=z;I.method=Z;if(E&&E.state){E.total_in=E.total_out=0;E.data_type=2;g=E.state;g.pending=0;g.pending_out=0;g.wrap<0&&(g.wrap=-g.wrap);g.status=g.wrap?42:113;E.adler=g.wrap===2?0:1;g.last_flush=0;if(!cad){Z=Array(16);for(W=z=0;W<28;W++)for(kvV[W]=z,M=0;M<1<<Vlq[W];M++)de[z++]=W;de[z-1]=W;for(W=z=0;W<16;W++)for(Fbu[W]=z,M=0;M<1<<yk$[W];M++)CP[z++]=W;for(z>>=7;W<30;W++)for(Fbu[W]=z<<7,M=0;M<1<<yk$[W]-7;M++)CP[256+z++]=W;for(M=0;M<=15;M++)Z[M]=
0;for(M=0;M<=143;)tt[M*2+1]=8,M++,Z[8]++;for(;M<=255;)tt[M*2+1]=9,M++,Z[9]++;for(;M<=279;)tt[M*2+1]=7,M++,Z[7]++;for(;M<=287;)tt[M*2+1]=8,M++,Z[8]++;Kb4(tt,287,Z);for(M=0;M<30;M++)Ss[M*2+1]=5,Ss[M*2]=$RM(M,5);i3a=new vYx(tt,Vlq,257,286,15);oAd=new vYx(Ss,yk$,0,30,15);IM$=new vYx([],RbO,0,19,7);cad=!0}g.l_desc=new HmZ(g.dyn_ltree,i3a);g.d_desc=new HmZ(g.dyn_dtree,oAd);g.bl_desc=new HmZ(g.bl_tree,IM$);g.bi_buf=0;g.bi_valid=0;Om$(g);g=0}else g=q2(E,-2);g===0&&(E=E.state,E.window_size=2*E.w_size,fP(E.head),
E.max_lazy_match=$L[E.level].max_lazy,E.good_match=$L[E.level].good_length,E.nice_match=$L[E.level].nice_length,E.max_chain_length=$L[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=2,E.match_available=0,E.ins_h=0);E=g}}else E=-2;if(E!==0)throw Error(es[E]);h.header&&(E=this.strm)&&E.state&&E.state.wrap===2&&(E.state.gzhead=h.header);if(h.dictionary){var B;typeof h.dictionary==="string"?B=Pqz(h.dictionary):BDx.call(h.dictionary)==="[object ArrayBuffer]"?
B=new Uint8Array(h.dictionary):B=h.dictionary;h=this.strm;W=B;z=W.length;if(h&&h.state)if(B=h.state,E=B.wrap,E===2||E===1&&B.status!==42||B.lookahead)E=-2;else{E===1&&(h.adler=gAN(h.adler,W,z,0));B.wrap=0;z>=B.w_size&&(E===0&&(fP(B.head),B.strstart=0,B.block_start=0,B.insert=0),g=new js.Buf8(B.w_size),js.arraySet(g,W,z-B.w_size,B.w_size,0),W=g,z=B.w_size);g=h.avail_in;Z=h.next_in;M=h.input;h.avail_in=z;h.next_in=0;h.input=W;for(mg(B);B.lookahead>=3;){W=B.strstart;z=B.lookahead-2;do B.ins_h=(B.ins_h<<
B.hash_shift^B.window[W+3-1])&B.hash_mask,B.prev[W&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=W,W++;while(--z);B.strstart=W;B.lookahead=2;mg(B)}B.strstart+=B.lookahead;B.block_start=B.strstart;B.insert=B.lookahead;B.lookahead=0;B.match_length=B.prev_length=2;B.match_available=0;h.next_in=Z;h.input=M;h.avail_in=g;B.wrap=E;E=0}else E=-2;if(E!==0)throw Error(es[E]);this._dict_set=!0}};
UmO=function(h,E){E=E||{};E.gzip=!0;E=new zb$(E);E.push(h,!0);if(E.err)throw E.msg||es[E.err];return E.result};
jNx=function(h,E){var g=Lhd();g&&g.publish.call(g,h.toString(),h,E)};
qBM=function(h,E,g){var Z=Lhd();if(!Z)return 0;var M=Z.subscribe(h.toString(),function(W,z){var c=_.yy("ytPubsub2Pubsub2SkipSubKey");c&&c==M||(c=function(){if(dmz[M])try{if(z&&h instanceof Cqz&&h!=W)try{var I=h.dataClass,B=z;if(!B.args||!B.version)throw Error("ad");try{if(!I.version_){var U=new I;I.version_=U.version}var L=I.version_}catch(d){}if(!L||B.version!=L)throw Error("bd");try{z=Reflect.construct(I,_.Y$(B.args))}catch(d){throw d.message="yt.pubsub2.Data.deserialize(): "+d.message,d;}}catch(d){throw d.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+h.toString()+": "+d.message,d;}E.call(g||window,z)}catch(d){_.Vy(d)}},JaM[h.toString()]?_.yy("yt.scheduler.instance")?_.KP.addLowPriorityJob(c):_.Bx(c,0):c())});
dmz[M]=!0;eb$[h.toString()]||(eb$[h.toString()]=[]);eb$[h.toString()].push(M);return M};
SB$=function(){var h=fMz,E=qBM(NDZ,function(g){h.apply(void 0,arguments);tgz(E)});
return E};
tgz=function(h){var E=Lhd();E&&(typeof h==="number"&&(h=[h]),_.Tt(h,function(g){E.unsubscribeByKey(g);delete dmz[g]}))};
Lhd=function(){return _.yy("ytPubsub2Pubsub2Instance")};
xm$=function(h,E,g){g=g===void 0?{sampleRate:.1}:g;Math.random()<Math.min(.02,g.sampleRate/100)&&jNx("meta_logging_csi_event",{timerName:h,timelineData:E})};
_.wbZ=function(h){return h?(h=h.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Mc(h):null:null};
_.OY=function(h){return h?(h=h.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.wU(h):null:null};
lMq=function(){DmW||(DmW=_.OY(_.nF("WORKER_SERIALIZATION_URL")));return DmW||void 0};
_.mmq=function(){var h=lMq();raq||h===void 0||(raq=new Worker(_.lx(h),void 0));return raq};
_.vAx=function(){return typeof Worker==="function"&&lMq()?!0:!1};
_.O3V=function(){if(_.vAx()&&!H3W){var h=function(g){g=g.data;if(g.op==="gzippedGelBatch"){var Z=$mz.get(g.key);Z&&(Kh$(g.gzippedBatch,Z.latencyPayload,Z.url,Z.options,Z.sendFn),$mz.delete(g.key))}},E=_.mmq();
E&&(E.addEventListener("message",h),E.onerror=function(){$mz.clear()},H3W=!0)}};
yax=function(h,E,g,Z,M){M=M===void 0?!1:M;var W={startTime:(0,_.zn)(),ticks:{},infos:{}};if(nP)try{var z=nAO(E);if(z!=null&&(z>Xbz||z<YBN))Z(h,g);else{if(_.J("gzip_gel_with_worker")&&(_.J("initial_gzip_use_main_thread")&&!sNa||!_.J("initial_gzip_use_main_thread"))){H3W||_.O3V();var c=_.mmq();if(c&&!M){$mz.set(VgN,{latencyPayload:W,url:h,options:g,sendFn:Z});c.postMessage({op:"gelBatchToGzip",serializedBatch:E,key:VgN});VgN++;return}}var I=UmO(kw4(E));Kh$(I,W,h,g,Z)}}catch(B){_.Fn(B),Z(h,g)}else Z(h,
g)};
Kh$=function(h,E,g,Z,M){sNa=!1;var W=(0,_.zn)();E.ticks.gelc=W;XL++;_.J("disable_compression_due_to_performance_degredation")&&W-E.startTime>=FhN&&(Aa$++,_.J("abandon_compression_after_N_slow_zips")?XL===_.cx("compression_disable_point")&&Aa$>TDz&&(nP=!1):nP=!1);b3V(E);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=h;Z.postParams=void 0;M(g,Z)};
uTM=function(h){var E=E===void 0?!1:E;var g=g===void 0?!1:g;var Z=(0,_.zn)(),M={startTime:Z,ticks:{},infos:{}},W=E?_.yy("yt.logging.gzipForFetch",!1):!0;if(nP&&W){if(!h.body)return h;try{var z=g?h.body:typeof h.body==="string"?h.body:JSON.stringify(h.body);W=z;if(!g&&typeof z==="string"){var c=nAO(z);if(c!=null&&(c>Xbz||c<YBN))return h;g=E?{level:1}:void 0;W=UmO(kw4(z),g);var I=(0,_.zn)();M.ticks.gelc=I;if(E){XL++;if((_.J("disable_compression_due_to_performance_degredation")||_.J("disable_compression_due_to_performance_degradation_lr"))&&
I-Z>=FhN)if(Aa$++,_.J("abandon_compression_after_N_slow_zips")||_.J("abandon_compression_after_N_slow_zips_lr")){E=Aa$/XL;var B=TDz/_.cx("compression_disable_point");XL>0&&XL%_.cx("compression_disable_point")===0&&E>=B&&(nP=!1)}else nP=!1;b3V(M)}}h.headers=Object.assign({},{"Content-Encoding":"gzip"},h.headers||{});h.body=W;return h}catch(U){return _.Fn(U),h}}else return h};
nAO=function(h){try{return(new Blob(h.split(""))).size}catch(E){return _.Fn(E),null}};
b3V=function(h){_.J("gel_compression_csi_killswitch")||!_.J("log_gel_compression_latency")&&!_.J("log_gel_compression_latency_lr")||xm$("gel_compression",h,{sampleRate:.1})};
QNW=function(){this.blockSize=-1};
YL=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var h=1;h<this.blockSize;++h)this.pad_[h]=0;this.total_=this.inbuf_=0;this.reset()};
EBW=function(h){h=Object.assign({},h);delete h.Authorization;var E=_.hqz();if(E){var g=new YL;g.update(_.nF("INNERTUBE_API_KEY"));g.update(E);h.hash=_.lJ(g.digest(),3)}return h};
Va=function(){gB$||(gB$=new _.sY("yt.innertube"));return gB$};
ZL$=function(h,E,g,Z){if(Z)return null;Z=Va().get("nextId",!0)||1;var M=Va().get("requests",!0)||{};M[Z]={method:h,request:E,authState:EBW(g),requestTime:Math.round((0,_.zn)())};Va().set("nextId",Z+1,86400,!0);Va().set("requests",M,86400,!0);return Z};
MQ4=function(h){var E=Va().get("requests",!0)||{};delete E[h];Va().set("requests",E,86400,!0)};
pK$=function(h){var E=Va().get("requests",!0);if(E){for(var g in E){var Z=E[g];if(!(Math.round((0,_.zn)())-Z.requestTime<6E4)){var M=Z.authState,W=EBW(_.rkx(!1));_.Kt.equals(M,W)&&(M=Z.request,"requestTimeMs"in M&&(M.requestTimeMs=Math.round((0,_.zn)())),WTz(h,Z.method,M,{}));delete E[g]}}Va().set("requests",E,86400,!0)}};
Gld=function(h){var E;return(h=h==null?void 0:(E=h.error)==null?void 0:E.code)&&h>=400&&h<=599?!1:!0};
zq4=function(h){var E;h=h==null?void 0:(E=h.error)==null?void 0:E.code;return!(h!==400&&h!==415)};
cWx=function(){if(a64)return a64();var h={};a64=Gn("LogsDatabaseV2",{objectStores:(h.LogsRequestsStore={addedAtVersion:2},h),shared:!1,upgrade:function(E,g,Z){g(2)&&kL(E,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});g(3);g(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.JSC$10684_wrapped.indexNames.contains("newRequest")&&Z.JSC$10684_wrapped.deleteIndex("newRequest"),ya(Z,"newRequestV2",["status","interface","timestamp"]));g(7)&&E.JSC$10669_wrapped.objectStoreNames.contains("sapisid")&&E.JSC$10669_wrapped.deleteObjectStore("sapisid");
g(9)&&E.JSC$10669_wrapped.objectStoreNames.contains("SWHealthLog")&&E.JSC$10669_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return a64()};
FL=function(h){return _.Qn(cWx(),h)};
oB$=function(h,E){var g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return g={startTime:(0,_.zn)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},z.yield(FL(E),2);if(z.nextAddress!=3)return Z=z.yieldResult,M=Object.assign({},h,{options:JSON.parse(JSON.stringify(h.options)),interface:_.nF("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),z.yield(Z.put("LogsRequestsStore",M),3);W=z.yieldResult;g.ticks.tc=(0,_.zn)();iLO(g);return z.return(W)})};
I6a=function(h,E){var g,Z,M,W,z,c,I,B,U;return _.a(function(L){if(L.nextAddress==1)return g={startTime:(0,_.zn)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},L.yield(FL(E),2);if(L.nextAddress!=3)return Z=L.yieldResult,M=_.nF("INNERTUBE_CONTEXT_CLIENT_NAME",0),W=[h,M,0],z=[h,M,(0,_.zn)()],c=IDBKeyRange.bound(W,z),I="prev",_.J("use_fifo_for_networkless")&&(I="next"),B=void 0,U=h==="NEW"?"readwrite":"readonly",_.J("use_readonly_for_get_most_recent_by_status_killswitch")&&(U="readwrite"),
L.yield(_.ht(Z,["LogsRequestsStore"],{mode:U,enableRetries:!0},function(d){return _.aI(d.objectStore("LogsRequestsStore").index("newRequestV2"),{query:c,direction:I},function(C){C.getValue()&&(B=C.getValue(),h==="NEW"&&(B.status="QUEUED",C.update(B)))})}),3);
g.ticks.tc=(0,_.zn)();iLO(g);return L.return(B)})};
Rq$=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(FL(E),2);g=Z.yieldResult;return Z.return(_.ht(g,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var W=M.objectStore("LogsRequestsStore");return W.get(h).then(function(z){if(z)return z.status="QUEUED",W.put(z).then(function(){return z})})}))})};
PsV=function(h,E,g,Z){g=g===void 0?!0:g;var M;return _.a(function(W){if(W.nextAddress==1)return W.yield(FL(E),2);M=W.yieldResult;return W.return(_.ht(M,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(z){var c=z.objectStore("LogsRequestsStore");return c.get(h).then(function(I){return I?(I.status="NEW",g&&(I.sendCount+=1),Z!==void 0&&(I.options.compress=Z),c.put(I).then(function(){return I})):kX.resolve(void 0)})}))})};
Bpd=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(FL(E),2);g=Z.yieldResult;return Z.return(g.delete("LogsRequestsStore",h))})};
UBu=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(FL(h),2);E=Z.yieldResult;g=(0,_.zn)()-2592E6;return Z.yield(_.ht(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){return ge(M.objectStore("LogsRequestsStore"),{},function(W){if(W.getValue().timestamp<=g)return W.delete().then(function(){return W.continue()})})}),0)})};
LTu=function(){_.a(function(h){return h.yield(Gvq("LogsDatabaseV2"),0)})};
iLO=function(h){_.J("nwl_csi_killswitch")||xm$("networkless_performance",h,{sampleRate:1})};
_.dBz=function(h){return _.Qn(juZ(),h)};
CsW=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.dBz(h),2);E=Z.yieldResult;g=(0,_.zn)()-2592E6;return Z.yield(_.ht(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(M){return ge(M.objectStore("SWHealthLog"),{},function(W){if(W.getValue().timestamp<=g)return W.delete().then(function(){return W.continue()})})}),0)})};
JWN=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(_.dBz(h),2);E=g.yieldResult;return g.yield(E.clear("SWHealthLog"),0)})};
_.At=function(h,E,g,Z,M,W,z){M=M===void 0?"":M;W=W===void 0?!1:W;z=z===void 0?!1:z;if(h)if(g&&!Xy("cobalt"))_.Fn(new _.xX("Legacy referrer-scrubbed ping detected")),h&&eqz(h,void 0,{scrubReferrer:!0});else if(M)TC$(h,E,"POST",M,Z);else if(_.nF("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||z)TC$(h,E,"GET","",Z,void 0,W,z);else{b:{try{c:{var c=new qQx({url:h});if(c.urlParamValues_.dsh==="1")var I=null;else{var B=c.urlParamValues_.ae;if(B==="1"){var U=c.urlParamValues_.adurl;if(U)try{I={version:3,directUrl:decodeURIComponent(U),
asyncUrl:NXz(c.JSC$9477_url_,"act=1","ri=1",f6z(c))};break c}catch(q){}}I=B==="2"?{version:4,directUrl:NXz(c.JSC$9477_url_,"dct=1","suid="+c.suid_,""),asyncUrl:NXz(c.JSC$9477_url_,"act=1","ri=1","suid="+c.suid_)}:null}}if(I){var L=_.jy(h);var d=!(!L||!L.endsWith("/aclk")||_.FR(h,"ri")!=="1");break b}}catch(q){}d=!1}if(d){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(h,"")){var C=!0;break b}}catch(q){}C=!1}C?(E&&E(),g=!0):g=!1}else g=!1;g||eqz(h,E)}};
eqz=function(h,E,g){g=g===void 0?{}:g;var Z=new Image,M=""+Npx++;tQM[M]=Z;Z.onload=Z.onerror=function(){E&&tQM[M]&&E();delete tQM[M]};
g.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=h};
Tn=function(h,E){SQV(h,E==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
xBz=function(h){var E;return((E=document.featurePolicy)==null?0:E.allowedFeatures().includes("attribution-reporting"))?h+"&nis=6":h+"&nis=5"};
wKx=function(h){if(!h)return!1;try{var E;if(((E=_.bI(h))==null?void 0:E.asm)==="4")return!0}catch(g){_.Vy(g)}return!1};
SQV=function(h,E){E?(h=xBz(h),_.At(h,void 0,void 0,void 0,"",!0,!0)):_.At(h)};
l6W=function(){DBN||(DBN=new _.sY("yt.offline"));return DBN};
rWZ=function(h){if(_.J("offline_error_handling")){var E=l6W().get("errors",!0)||{};E[h.message]={name:h.name,stack:h.stack};h.level&&(E[h.message].level=h.level);l6W().set("errors",E,2592E3,!0)}};
vB$=function(h,E,g,Z){Z=Z===void 0?!1:Z;E=_.J("web_fp_via_jspb")?Object.assign({},E):E;_.J("use_cfr_monitor")&&mBu(h,E);if(_.J("use_request_time_ms_header"))E.headers&&Md(h)&&(E.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.zn)())));else{var M;if((M=E.postParams)==null?0:M.requestTimeMs)E.postParams.requestTimeMs=Math.round((0,_.zn)())}g&&Object.keys(E).length===0?_.At(h):E.compress?E.postBody?(typeof E.postBody!=="string"&&(E.postBody=JSON.stringify(E.postBody)),yax(h,E.postBody,
E,_.df,Z)):yax(h,JSON.stringify(E.postParams),E,hOd,Z):_.df(h,E)};
HL4=function(h,E){_.J("use_event_time_ms_header")&&Md(h)&&(E.headers||(E.headers={}),E.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.zn)())));return E};
_.KTN=function(){$BM||($BM=new _.bK({logOfflineErrors:!0,enablePolling:!0}));return $BM};
mBu=function(h,E){var g=E.onError?E.onError:function(){};
E.onError=function(M,W){uK().requestComplete(h,!1);g(M,W)};
var Z=E.onSuccess?E.onSuccess:function(){};
E.onSuccess=function(M,W){uK().requestComplete(h,!0);Z(M,W)}};
_.OLd=function(){return _.gf(document.location.toString())!=="www.youtube-nocookie.com"};
_.YQx=function(){return _.yy("ytNetworklessLoggingInitializationOptions")?_.nBW.isNwlInitialized:_.XK$};
suW=function(h,E){if(_.J("polymer_on_demand_shady_dom")){var g;var Z=(g=h.__shady_native_firstElementChild)!=null?g:h.firstElementChild}else Z=h.firstElementChild;for(;Z;){if(h=E(Z)?Z:suW(Z,E))return h;Z=Z.nextElementSibling}return null};
klu=function(){var h=document;if("visibilityState"in h)return h.visibilityState;var E=VQa+"VisibilityState";if(E in h)return h[E]};
_.yWV=function(h,E){var g;Qa(h,function(Z){g=E[Z];return!!g});
return g};
_.E$=function(h){var E=FTd(h);E?E.focus(void 0):_.h1(h)};
FTd=function(h){return(h=suW(h,function(E){return _.gQ(E)?AWz(E)&&!!E.offsetParent:!1}))?h:null};
_.h1=function(h,E){h.hasAttribute("tabindex")||h.setAttribute("tabindex","-1");h.focus(E)};
Tpu=function(h,E,g,Z){Z=Z===void 0?{}:Z;h.addEventListener&&(E!="mouseenter"||"onmouseenter"in document?E!="mouseleave"||"onmouseenter"in document?E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"):E="mouseout":E="mouseover");return _.Kt.findKey(ZP,function(M){var W=typeof M[4]==="boolean"&&M[4]==!!Z,z=_.yx(M[4])&&_.yx(Z)&&_.Kt.equals(M[4],Z);return!!M.length&&M[0]==h&&M[1]==E&&M[2]==g&&(W||z)})};
_.WT=function(h,E,g,Z){Z=Z===void 0?{}:Z;if(!h||!h.addEventListener&&!h.attachEvent)return"";var M=Tpu(h,E,g,Z);if(M)return M;M=++bLZ.count+"";var W=!(E!="mouseenter"&&E!="mouseleave"||!h.addEventListener||"onmouseenter"in document);var z=W?function(c){c=new MK(c);if(!_.Vw(c.relatedTarget,function(I){return I==h},!0))return c.currentTarget=h,c.type=E,g.call(h,c)}:function(c){c=new MK(c);
c.currentTarget=h;return g.call(h,c)};
z=_.k3(z);h.addEventListener?(E=="mouseenter"&&W?E="mouseover":E=="mouseleave"&&W?E="mouseout":E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"),u8u()||typeof Z==="boolean"?h.addEventListener(E,z,Z):h.addEventListener(E,z,!!Z.capture)):h.attachEvent("on"+E,z);ZP[M]=[h,E,g,z,Z];return M};
_.hzx=function(h,E,g){var Z=Z===void 0?{}:Z;var M=_.WT(h,E,function(){_.Qux(M);g.apply(h,arguments)},Z)};
_.Qux=function(h){h&&(typeof h=="string"&&(h=[h]),_.Tt(h,function(E){if(E in ZP){var g=ZP[E],Z=g[0],M=g[1],W=g[3];g=g[4];Z.removeEventListener?u8u()||typeof g==="boolean"?Z.removeEventListener(M,W,g):Z.removeEventListener(M,W,!!g.capture):Z.detachEvent&&Z.detachEvent("on"+M,W);delete ZP[E]}}))};
pI=function(h){this.callback_=h;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(h=0;h<4;h++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.WT(window,"mousemove",(0,_.DJ)(this.onMouseMove_,this));this.timerId_=_.Uq((0,_.DJ)(this.checkPosition_,this),25)};
gPO=function(){var h={};var E=h.preferMobileEvents===void 0?!1:h.preferMobileEvents;h=h.enableScrollEventListener===void 0?!0:h.enableScrollEventListener;if(_.yy("_lact",window)==null){var g=parseInt(_.nF("LACT"),10);g=isFinite(g)?Date.now()-Math.max(g,0):-1;_.Wu("_lact",g,window);_.Wu("_fact",g,window);g==-1&&_.Gq();_.WT(document,"keydown",_.Gq);_.WT(document,"keyup",_.Gq);_.WT(document,"mousedown",_.Gq);_.WT(document,"mouseup",_.Gq);E?_.WT(window,"touchmove",function(){EPW("touchmove",200)},{passive:!0}):
(_.WT(window,"resize",function(){EPW("resize",200)}),h&&_.WT(window,"scroll",function(){EPW("scroll",200)}));
new pI(function(){EPW("mouse",100)});
_.WT(document,"touchstart",_.Gq,{passive:!0});_.WT(document,"touchend",_.Gq,{passive:!0})}};
EPW=function(h,E){ZOz[h]||(ZOz[h]=!0,_.KP.addLowPriorityJob(function(){_.Gq();ZOz[h]=!1},E))};
_.Gq=function(){_.yy("_lact",window)==null&&gPO();var h=Date.now();_.Wu("_lact",h,window);_.yy("_fact",window)==-1&&_.Wu("_fact",h,window);(h=_.yy("ytglobal.ytUtilActivityCallback_"))&&h()};
_.zq=function(){var h=_.yy("_lact",window);return h==null?-1:Math.max(Date.now()-h,0)};
_.I8=function(h,E,g){var Z=_.cT();if(Z&&E){var M=Z.subscribe(h,function(){var W=arguments,z=function(){ip[M]&&E.apply&&typeof E.apply=="function"&&E.apply(g||window,W)};
try{_.Mdx[h]?z():_.Bx(z,0)}catch(c){_.Vy(c)}},g);
ip[M]=!0;o8[h]||(o8[h]=[]);o8[h].push(M);return M}return 0};
_.WmZ=function(h){var E=_.cT();E&&(typeof h==="number"?h=[h]:typeof h==="string"&&(h=[parseInt(h,10)]),_.Tt(h,function(g){E.unsubscribeByKey(g);delete ip[g]}))};
_.p$q=function(h,E){var g=_.cT();g&&g.publish.apply(g,arguments)};
_.zzM=function(h){var E=_.cT();if(E)if(E.clear(h),h)GTZ(h);else for(var g in o8)GTZ(g)};
_.cT=function(){return _.MN.ytPubsubPubsubInstance};
GTZ=function(h){o8[h]&&(h=o8[h],_.Tt(h,function(E){ip[E]&&delete ip[E]}),h.length=0)};
aCx=function(){var h,E;return"h5vcc"in R8&&((h=R8.h5vcc.traceEvent)==null?0:h.traceBegin)&&((E=R8.h5vcc.traceEvent)==null?0:E.traceEnd)?1:"performance"in R8&&R8.performance.mark&&R8.performance.measure?2:0};
c7$=function(h){var E=aCx();switch(E){case 1:R8.h5vcc.traceEvent.traceBegin("YTLR",h);break;case 2:R8.performance.mark(h+"-start");break;case 0:break;default:_.Vk(E,"unknown trace type")}};
iOz=function(h){var E=aCx();switch(E){case 1:R8.h5vcc.traceEvent.traceEnd("YTLR",h);break;case 2:E=h+"-start";var g=h+"-end";R8.performance.mark(g);R8.performance.measure(h,E,g);break;case 0:break;default:_.Vk(E,"unknown trace type")}};
oPx=function(h){var E,g;(g=(E=window).onerror)==null||g.call(E,h.message,"",0,0,h)};
ICz=function(h){if(_.J("web_lifecycle_error_handling_killswitch"))return h();try{return h()}catch(E){oPx(E)}};
Rz4=function(h){return[h.auth===void 0?"undefined":h.auth,h.isJspb===void 0?"undefined":h.isJspb,h.cttAuthInfo===void 0?"undefined":h.cttAuthInfo,h.tier===void 0?"undefined":h.tier].join("/")};
_.e=function(h,E){if(h)return h[E.name]};
BT=function(){var h=_.yy("yt.logging.ims");h||(h=new PT,_.Wu("yt.logging.ims",h));return h};
ez4=function(h,E){if(h.endpoint==="log_event"){PFz(h);var g=Bux(h),Z=Ui4(h.payload)||"",M=LmV(Z),W=200;if(M){if(M.enabled===!1&&!_.J("web_payload_policy_disabled_killswitch"))return;W=j9W(M.tier);if(W===400){diq(h,E);return}}U$[g]=!0;g={cttAuthInfo:g,isJspb:!1,tier:W};BT().storePayload(g,h.payload);CFa(E,!1,g,J7N(Z))}};
fC4=function(h,E,g){if(E.endpoint==="log_event"){PFz(void 0,E);var Z=Bux(E,!0),M=LmV(h),W=200;if(M){if(M.enabled===!1&&!_.J("web_payload_policy_disabled_killswitch"))return;W=j9W(M.tier);if(W===400){qL4(h,E,g);return}}U$[Z]=!0;Z={cttAuthInfo:Z,isJspb:!0,tier:W};BT().storePayload(Z,vc(E.payload));CFa(g,!0,Z,J7N(h))}};
CFa=function(h,E,g,Z){E=E===void 0?!1:E;Z=Z===void 0?!1:Z;h&&(LI=new h);h=_.cx("tvhtml5_logging_max_batch_ads_fork")||_.cx("tvhtml5_logging_max_batch")||_.cx("web_logging_max_batch")||100;var M=(0,_.zn)(),W=NuW(E,g.tier),z=W.lastDebounceQueueFromLogTimeMs;Z&&(W.useVideoStatsEndPoint=!0);Z=0;g&&(Z=BT().getSequenceCount(g));var c=function(){tdx({writeThenSend:!0},E,g.tier)};
Z>=1E3?c():Z>=h?SLx||(SLx=xiV(function(){c();SLx=void 0},0)):M-z>=10&&(w$u(E,g.tier),W.lastDebounceQueueFromLogTimeMs=M)};
diq=function(h,E){if(h.endpoint==="log_event"){_.J("more_accurate_gel_parser")&&BT().storePayload({isJspb:!1},h.payload);PFz(h);var g=Bux(h),Z=new Map;Z.set(g,[h.payload]);var M=Ui4(h.payload)||"";E&&(LI=new E);return new _.jM(function(W,z){LI&&LI.isReady()?DiO(Z,LI,W,z,{bypassNetworkless:!0},!0,J7N(M)):W()})}};
qL4=function(h,E,g){if(E.endpoint==="log_event"){PFz(void 0,E);var Z=Bux(E,!0),M=new Map;M.set(Z,[vc(E.payload)]);g&&(LI=new g);return new _.jM(function(W){LI&&LI.isReady()?lCq(M,LI,W,{bypassNetworkless:!0},!0,J7N(h)):W()})}};
Bux=function(h,E){var g="";if(h.dangerousLogToVisitorSession)g="visitorOnlyApprovedKey";else if(h.cttAuthInfo){if(E===void 0?0:E){E=h.cttAuthInfo.token;g=h.cttAuthInfo;var Z=new r7z;g.videoId?Z.setVideoId(g.videoId):g.playlistId&&dQ(Z,2,miz,CU(g.playlistId));vPx[E]=Z}else E=h.cttAuthInfo,g={},E.videoId?g.videoId=E.videoId:E.playlistId&&(g.playlistId=E.playlistId),HO$[h.cttAuthInfo.token]=g;g=h.cttAuthInfo.token}return g};
tdx=function(h,E,g){h=h===void 0?{}:h;E=E===void 0?!1:E;new _.jM(function(Z,M){var W=NuW(E,g),z=W.useVideoStatsEndPoint;W.useVideoStatsEndPoint=!1;$iO(W.queueTimer);$iO(W.queueMaxTimer);W.queueMaxTimer=0;LI&&LI.isReady()?g===void 0&&_.J("enable_web_tiered_gel")?Kmz(Z,M,h,E,300,z):Kmz(Z,M,h,E,g,z):(w$u(E,g),Z())})};
Kmz=function(h,E,g,Z,M,W){var z=LI;g=g===void 0?{}:g;Z=Z===void 0?!1:Z;M=M===void 0?200:M;W=W===void 0?!1:W;var c=new Map,I=new Map,B={isJspb:Z,cttAuthInfo:void 0,tier:M},U={isJspb:Z,cttAuthInfo:void 0};if(Z){E=_.G(Object.keys(U$));for(M=E.next();!M.done;M=E.next())M=M.value,I=_.J("enable_web_tiered_gel")?BT().smartExtractMatchingEntries({keys:[B,U],sizeLimit:1E3}):BT().extractMatchingEntries({isJspb:!0,cttAuthInfo:M}),I.length>0&&c.set(M,I),(_.J("web_fp_via_jspb_and_json")&&g.writeThenSend||!_.J("web_fp_via_jspb_and_json"))&&
delete U$[M];lCq(c,z,h,g,!1,W)}else{c=_.G(Object.keys(U$));for(B=c.next();!B.done;B=c.next())B=B.value,U=_.J("enable_web_tiered_gel")?BT().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:B,tier:M},{isJspb:!1,cttAuthInfo:B}],sizeLimit:1E3}):BT().extractMatchingEntries({isJspb:!1,cttAuthInfo:B}),U.length>0&&I.set(B,U),(_.J("web_fp_via_jspb_and_json")&&g.writeThenSend||!_.J("web_fp_via_jspb_and_json"))&&delete U$[B];DiO(I,z,h,E,g,!1,W)}};
w$u=function(h,E){h=h===void 0?!1:h;E=E===void 0?200:E;var g=function(){tdx({writeThenSend:!0},h,E)},Z=NuW(h,E),M=Z===OOd||Z===nPq?5E3:X$$;
_.J("web_gel_timeout_cap")&&!Z.queueMaxTimer&&(M=xiV(function(){g()},M),Z.queueMaxTimer=M);
$iO(Z.queueTimer);M=_.nF("LOGGING_BATCH_TIMEOUT",_.cx("web_gel_debounce_ms",1E4));_.J("shorten_initial_gel_batch_timeout")&&YLx&&(M=s9W);M=xiV(function(){_.cx("gel_min_batch_size")>0?BT().getSequenceCount({cttAuthInfo:void 0,isJspb:h,tier:E})>=Vdd&&g():g()},M);
Z.queueTimer=M};
DiO=function(h,E,g,Z,M,W,z){M=M===void 0?{}:M;var c=Math.round((0,_.zn)()),I=h.size,B=kTu(z);h=_.G(h);var U=h.next();for(z={};!U.done;z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},U=h.next()){var L=_.G(U.value);U=L.next().value;L=L.next().value;z.batchRequest=_.Kt.unsafeClone({context:_.q8W(E.config_||_.cu())});if(!_.s4(L)&&!_.J("throw_err_when_logevent_malformed_killswitch")){Z();break}z.batchRequest.events=L;
(L=HO$[U])&&y7M(z.batchRequest,U,L);delete HO$[U];z.dangerousLogToVisitorSession=U==="visitorOnlyApprovedKey";FmZ(z.batchRequest,c,z.dangerousLogToVisitorSession);A7O(M);z.onSuccess$jscomp$3=function(d){_.J("start_client_gcf")&&_.KP.addLowPriorityJob(function(){return _.a(function(C){return C.yield(Tuz(d),0)})});
I--;I||g()};
z.networkFailures=0;z.onError$jscomp$5=function(d){return function(){d.networkFailures++;if(M.bypassNetworkless&&d.networkFailures===1)try{WTz(E,B,d.batchRequest,bOW({writeThenSend:!0},d.dangerousLogToVisitorSession,d.onSuccess$jscomp$3,d.onError$jscomp$5,W)),YLx=!1}catch(C){_.Vy(C),Z()}I--;I||g()}}(z);
try{WTz(E,B,z.batchRequest,bOW(M,z.dangerousLogToVisitorSession,z.onSuccess$jscomp$3,z.onError$jscomp$5,W)),YLx=!1}catch(d){_.Vy(d),Z()}}};
lCq=function(h,E,g,Z,M,W){Z=Z===void 0?{}:Z;var z=Math.round((0,_.zn)()),c={value:h.size},I=new Map([].concat(_.$E(h)));I=_.G(I);for(var B=I.next();!B.done;B=I.next()){var U=_.G(B.value).next().value,L=h.get(U);B=new uNu;var d=E.config_||_.cu(),C=new CI,q=new Q9u;_.ln(q,1,d.innertubeContextHostLanguage);_.ln(q,2,d.innertubeContextGeoLocation);_.oI(q,16,d.innertubeContextClientNameFieldNumber);_.ln(q,17,d.innertubeContextClientVersion);if(d.innertubeContextClientConfigInfo){var w=d.innertubeContextClientConfigInfo,
r=new RI;w.coldConfigData&&_.ln(r,1,w.coldConfigData);w.appInstallData&&_.ln(r,6,w.appInstallData);w.coldHashData&&_.ln(r,3,w.coldHashData);w.hotHashData&&r.setHotHashData(w.hotHashData);_.fM(q,62,r)}(w=_.MN.devicePixelRatio)&&w!=1&&_.II(q,65,_.kM(w));w=neZ();w!==""&&_.ln(q,54,w);w=XXz();if(w.length>0){r=new hnq;for(var v=0;v<w.length;v++){var H=new J1;H.setKey(w[v].key);dQ(H,2,ExM,CU(w[v].value));eM(r,15,J1,H)}_.fM(C,5,r)}Lb4(d,q);jtN(C);dRx(q);CU$(d,q);JkW(q);_.J("start_client_gcf")&&e9d(q);_.nF("DELEGATED_SESSION_ID")&&
!_.J("pageid_as_header_web")&&(d=new qK,_.ln(d,3,_.nF("DELEGATED_SESSION_ID")));!_.J("fill_delegate_context_in_gel_killswitch")&&(w=_.nF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(r=_.iK(C,qK,3)||new qK,d=C,w=_.ln(r,18,w),_.fM(d,3,w));d=q;w=_.G(Object.entries(_.bI(_.nF("DEVICE",""))));for(r=w.next();!r.done;r=w.next())v=_.G(r.value),r=v.next().value,v=v.next().value,r==="cbrand"?_.ln(d,12,v):r==="cmodel"?_.ln(d,13,v):r==="cbr"?_.ln(d,87,v):r==="cbrver"?_.ln(d,88,v):r==="cos"?_.ln(d,18,
v):r==="cosver"?_.ln(d,19,v):r==="cplatform"&&_.oI(d,42,Uwu(v));C.setClient(q);_.fM(B,1,C);if(q=vPx[U])a:{if(_.ef(q,fI(q,miz,1)))C=1;else if(q.getPlaylistId())C=2;else break a;_.fM(B,4,q);q=B.getContext()||new CI;d=_.iK(q,qK,3)||new qK;w=new NK;w.setToken(U);_.oI(w,1,C);eM(d,12,NK,w);_.fM(q,3,d)}delete vPx[U];U=U==="visitorOnlyApprovedKey";gxd()||_.t1(B,2,z);!U&&(C=_.nF("EVENT_ID"))&&(q=Z4O(),d=new MvZ,_.ln(d,1,C),_.t1(d,2,q),_.fM(B,5,d));A7O(Z);if(_.J("jspb_serialize_with_worker")&&(C=_.mmq())&&
Z.writeThenSend){_.Wzu.set(p3V,{client:E,resolve:g,networklessOptions:Z,isIsolated:M,useVSSEndpoint:W,dangerousLogToVisitorSession:U,requestsOutstanding:c});C.postMessage({op:"gelBatchToSerialize",batchRequest:vc(B),clientEvents:L,key:p3V});p3V++;break}if(L){C=[];for(q=0;q<L.length;q++)try{C.push(new SM(L[q]))}catch(u){_.Vy(new _.xX("Transport failed to deserialize "+String(L[q])))}L=C}else L=[];L=_.G(L);for(C=L.next();!C.done;C=L.next())eM(B,3,SM,C.value);L={startTime:(0,_.zn)(),ticks:{},infos:{}};
B=B.serialize();L.ticks.geljspc=(0,_.zn)();_.J("log_jspb_serialize_latency")&&xm$("gel_jspb_serialize",L,{sampleRate:.1});_.GDu(B,E,g,Z,M,W,U,c)}};
_.GDu=function(h,E,g,Z,M,W,z,c){Z=Z===void 0?{}:Z;c=c===void 0?{value:0}:c;W=kTu(W);Z=bOW(Z,z,function(I){_.J("start_client_gcf")&&_.KP.addLowPriorityJob(function(){return _.a(function(B){return B.yield(Tuz(I),0)})});
c.value--;c.value||g()},function(){c.value--;
c.value||g()},M);
Z.headers["Content-Type"]="application/json+protobuf";Z.postBodyFormat="JSPB";Z.postBody=h;WTz(E,W,"",Z);YLx=!1};
A7O=function(h){_.J("always_send_and_write")&&(h.writeThenSend=!1)};
bOW=function(h,E,g,Z,M){h={retry:!0,onSuccess:g,onError:Z,networklessOptions:h,dangerousLogToVisitorSession:E,bypassMonitoring:!!M,headers:{},postBodyFormat:"",postBody:"",compress:_.J("compress_gel")||_.J("compress_gel_lr")};gxd()&&(h.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.zn)())));return h};
FmZ=function(h,E,g){gxd()||(h.requestTimeMs=String(E));_.J("unsplit_gel_payloads_in_logs")&&(h.unsplitGelPayloadsInLogs=!0);!g&&(E=_.nF("EVENT_ID"))&&(g=Z4O(),h.serializedClientEventId={serializedEventId:E,clientCounter:String(g)})};
Z4O=function(){var h=_.nF("BATCH_CLIENT_COUNTER")||0;h||(h=Math.floor(Math.random()*65535/2));h++;h>65535&&(h=1);_.OW("BATCH_CLIENT_COUNTER",h);return h};
y7M=function(h,E,g){if(g.videoId)var Z="VIDEO";else if(g.playlistId)Z="PLAYLIST";else return;h.credentialTransferTokenTargetId=g;h.context=h.context||{};h.context.user=h.context.user||{};h.context.user.credentialTransferTokens=[{token:E,scope:Z}]};
PFz=function(h,E){var g=_.iN("il_payload_scraping")==="enable_il_payload_scraping";if(!_.yy("yt.logging.transport.enableScrapingForTest"))if(g)znd=[],_.Wu("yt.logging.transport.enableScrapingForTest",!0),_.Wu("yt.logging.transport.scrapedPayloadsForTesting",znd),_.Wu("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Wu("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Wu("yt.logging.transport.scrapeClientEvent",!0);else return;g=_.yy("yt.logging.transport.scrapedPayloadsForTesting");var Z=_.yy("yt.logging.transport.payloadToScrape");E&&(E=_.yy("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(E.payload)())&&g.push(E);E=_.yy("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var M=0;M<Z.length;M++)if(h&&h.payload[Z[M]])if(E)g.push(h.payload);else{var W=void 0;g.push(((W=h)==null?void 0:W.payload)[Z[M]])}_.Wu("yt.logging.transport.scrapedPayloadsForTesting",
g)};
gxd=function(){return _.J("use_request_time_ms_header")||_.J("lr_use_request_time_ms_header")};
xiV=function(h,E){return _.J("transport_use_scheduler")===!1?_.Bx(h,E):_.J("logging_avoid_blocking_during_navigation")||_.J("lr_logging_avoid_blocking_during_navigation")?_.xW(_.KP,function(){if(_.adz().currentState==="none")h();else{var g={};_.adz().install((g.none={callback:h},g))}},E):_.xW(_.KP,h,E)};
$iO=function(h){_.J("transport_use_scheduler")?_.KP.cancelJob(h):_.Ll(h)};
Tuz=function(h){var E,g,Z,M,W,z,c,I,B,U;return _.a(function(L){return L.nextAddress==1?(Z=(E=h)==null?void 0:(g=E.responseContext)==null?void 0:g.globalConfigGroup,M=_.e(Z,cUu),z=(W=Z)==null?void 0:W.hotHashData,c=_.e(Z,i4q),B=(I=Z)==null?void 0:I.coldHashData,(U=_.GF().resolve(_.pl(wQ)))?z?M?L.yield(oxz(U,z,M),2):L.yield(oxz(U,z),2):L.jumpTo(2):L.return()):B?c?L.yield(Id$(U,B,c),0):L.yield(Id$(U,B),0):L.jumpTo(0)})};
NuW=function(h,E){E=E===void 0?200:E;return h?E===300?OOd:RnM:E===300?nPq:PvV};
LmV=function(h){if(_.J("enable_web_tiered_gel")){h=B5Z[h||""];var E,g,Z,M=_.GF().resolve(_.pl(wQ))==null?void 0:(E=DP())==null?void 0:(g=E.loggingHotConfig)==null?void 0:(Z=g.eventLoggingConfig)==null?void 0:Z.payloadPolicies;if(M)for(E=0;E<M.length;E++)if(M[E].payloadNumber===h)return M[E]}};
Ui4=function(h){h=Object.keys(h);h=_.G(h);for(var E=h.next();!E.done;E=h.next())if(E=E.value,B5Z[E])return E};
j9W=function(h){switch(h){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}};
J7N=function(h){return h==="gelDebuggingEvent"};
kTu=function(h){return(h===void 0?0:h)&&_.J("vss_through_gel_video_stats")?"video_stats":"log_event"};
rQ=function(h,E,g,Z){Z=Z===void 0?{}:Z;var M={},W=Math.round(Z.timestamp||(0,_.zn)());M.eventTimeMs=W<Number.MAX_SAFE_INTEGER?W:0;M[h]=E;h=_.zq();M.context={lastActivityMs:String(Z.timestamp||!isFinite(h)?-1:h)};Z.sequenceGroup&&!_.J("web_gel_sequence_info_killswitch")&&(h=M.context,E=Z.sequenceGroup,E={index:UIa(E),groupKey:E},h.sequence=E,Z.endOfSequence&&delete lp[Z.sequenceGroup]);_.J("web_tag_automated_log_events")&&(M.context.automatedLogEventSource=Z.automatedLogEventSource);(Z.sendIsolatedPayload?
diq:ez4)({endpoint:"log_event",payload:M,cttAuthInfo:Z.cttAuthInfo,dangerousLogToVisitorSession:Z.dangerousLogToVisitorSession},g)};
UIa=function(h){lp[h]=h in lp?lp[h]+1:0;return lp[h]};
_.vT=function(h,E,g){g=g===void 0?{}:g;var Z=mJ;_.Xn("ytLoggingEventsDefaultDisabled",!1)&&mJ===mJ&&(Z=null);rQ(h,E,Z,g)};
_.HT=function(){if(_.J("web_fp_via_jspb")){var h=!0;h=h===void 0?!1:h;var E=LzN;LzN=[];if(E){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,h?rQ(g.payloadName,g.payload,mJ,g.options):_.vT(g.payloadName,g.payload,g.options)}tdx(void 0,!0);if(!_.J("web_fp_via_jspb_and_json"))return}tdx(void 0,!1)};
jJa=function(h,E){var g;if((g=E)==null?0:g.componentStack)return E;if(h=h.componentStack)E||(E={}),E.componentStack=h;return E};
dIO=function(){_.Tt(_.nF("ERRORS")||[],function(h){_.$W.apply(null,h)});
_.OW("ERRORS",[])};
_.KI=function(h){_.$W(h)};
_.O$=function(h){_.$W(h,"WARNING")};
CvO=function(h){h instanceof Error?_.$W(h):(h=_.yx(h)?JSON.stringify(h):String(h),h=new _.xX(h),h.name="RejectedPromiseError",_.O$(h))};
JUV=function(h,E,g,Z,M,W){E=E===void 0?"Unknown file":E;g=g===void 0?0:g;var z=!1,c=jaz("log_window_onerror_fraction");if(c&&Math.random()<c)z=!0;else{c=document.getElementsByTagName("script");for(var I=0,B=c.length;I<B;I++)if(c[I].src.indexOf("/debug-")>0){z=!0;break}}z&&(z=!1,M?z=!0:(typeof h==="string"?c=h:ErrorEvent&&h instanceof ErrorEvent?(z=!0,c=h.message,E=h.filename,g=h.lineno,Z=h.colno):(c="Unknown error",E="Unknown file",g=0),M=new _.xX(c),M.name="UnhandledWindowError",M.message=c,M.fileName=
E,M.lineNumber=g,isNaN(Z)?delete M.columnNumber:M.columnNumber=Z),_.J("wiz_enable_component_stack_propagation_killswitch")||(W=jJa(M,W)),W&&_.nI(M,W),z?_.$W(M):_.O$(M))};
_.$W=function(h,E,g,Z,M,W,z,c){W=W===void 0?{}:W;W.name=g||_.nF("INNERTUBE_CONTEXT_CLIENT_NAME",1);W.version=Z||_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION");g=W;E=E===void 0?"ERROR":E;z=z===void 0?!1:z;E=E===void 0?"ERROR":E;z=z===void 0?!1:z;if(h&&(h.hasOwnProperty("level")&&h.level&&(E=h.level),_.J("console_log_js_exceptions")&&(Z=[],Z.push("Name: "+h.name),Z.push("Message: "+h.message),h.hasOwnProperty("params")&&Z.push("Error Params: "+JSON.stringify(h.params)),h.hasOwnProperty("args")&&Z.push("Error args: "+
JSON.stringify(h.args)),Z.push("File name: "+h.fileName),Z.push("Stacktrace: "+h.stack),Z=Z.join("\n"),window.console.log(Z,h)),!(enM>=5))){Z=[];M=_.G(qzz);for(W=M.next();!W.done;W=M.next()){W=W.value;try{W()&&Z.push(W())}catch(r){}}Z=[].concat(_.$E(fdu),_.$E(Z));var I=N5W(h);M=I.message||"Unknown Error";W=I.name||"UnknownError";var B=I.stack||h.stacktrace||"Not available";if(B.startsWith(W+": "+M)){var U=B.split("\n");U.shift();B=U.join("\n")}U=I.lineNumber||"Not available";I=I.fileName||"Not available";
var L=0;if(h.hasOwnProperty("args")&&h.args&&h.args.length)for(var d=0;d<h.args.length&&!(L=BZz(h.args[d],"params."+d,g,L),L>=500);d++);else if(h.hasOwnProperty("params")&&h.params){var C=h.params;if(typeof h.params==="object")for(d in C){if(C[d]){var q="params."+d,w=ey(C[d]);g[q]=w;L+=q.length+w.length;if(L>500)break}}else g.params=ey(C)}if(Z.length)for(d=0;d<Z.length&&!(L=BZz(Z[d],"params.context."+d,g,L),L>=500);d++);navigator.vendor&&!g.hasOwnProperty("vendor")&&(g["device.vendor"]=navigator.vendor);
d={message:M,name:W,lineNumber:U,fileName:I,stack:B,params:g,sampleWeight:1};g=Number(h.columnNumber);isNaN(g)||(d.lineNumber=d.lineNumber+":"+g);if(h.level==="IGNORED")h=0;else a:{h=tvM();g=_.G(h.messageWeights);for(Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,d.message&&d.message.match(Z.messageRegExp)){h=Z.weight;break a}h=_.G(h.callbackWeights);for(g=h.next();!g.done;g=h.next())if(g=g.value,g.callback(d)){h=g.weight;break a}h=1}d.sampleWeight=h;h=_.G(SzV);for(g=h.next();!g.done;g=h.next())if(g=
g.value,g.patternsForType[d.name])for(M=_.G(g.patternsForType[d.name]),Z=M.next();!Z.done;Z=M.next())if(W=Z.value,Z=d.message.match(W.regexp)){d.params["params.error.original"]=Z[0];M=W.groups;W={};for(U=0;U<M.length;U++)W[M[U]]=Z[U+1],d.params["params.error."+M[U]]=Z[U+1];d.message=g.messageFn(W);break}d.params||(d.params={});h=tvM();d.params["params.errorServiceSignature"]="msg="+h.messageWeights.length+"&cb="+h.callbackWeights.length;d.params["params.serviceWorker"]="false";_.MN.document&&_.MN.document.querySelectorAll&&
(d.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Xi(xIa,"sample")).constructor!==Xi&&(d.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(d);if(d.sampleWeight!==0&&!w3N.has(d.message)){if(z&&_.J("web_enable_error_204"))DIz(E===void 0?"ERROR":E,d);else{E=E===void 0?"ERROR":E;E==="ERROR"?(ldu.publish("handleError",d),_.J("record_app_crashed_web")&&rUO===0&&d.sampleWeight===1&&(rUO++,z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.J("report_client_error_with_app_crash_ks")||(z.systemHealth={crashData:{clientError:{logMessage:{message:d.message}}}}),_.vT("appCrashed",z)),mIu++):E==="WARNING"&&ldu.publish("handleWarning",d);if(_.J("kevlar_gel_error_routing")){z=E;c=c===void 0?{}:c;b:{h=_.G(vxO);for(g=h.next();!g.done;g=h.next())if(Xy(g.value.toLowerCase())){h=!0;break b}h=!1}if(h)c=void 0;else{g={stackTrace:d.stack};d.fileName&&(g.filename=d.fileName);h=d.lineNumber&&d.lineNumber.split?d.lineNumber.split(":"):[];h.length!==
0&&(h.length!==1||isNaN(Number(h[0]))?h.length!==2||isNaN(Number(h[0]))||isNaN(Number(h[1]))||(g.lineNumber=Number(h[0]),g.columnNumber=Number(h[1])):g.lineNumber=Number(h[0]));h={level:"ERROR_LEVEL_UNKNOWN",message:d.message,errorClassName:d.name,sampleWeight:d.sampleWeight};z==="ERROR"?h.level="ERROR_LEVEL_ERROR":z==="WARNING"&&(h.level="ERROR_LEVEL_WARNNING");g={isObfuscated:!0,browserStackInfo:g};c.pageUrl=window.location.href;c.kvPairs=[];_.nF("FEXP_EXPERIMENTS")&&(c.experimentIds=_.nF("FEXP_EXPERIMENTS"));
Z=_.nF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!jaz("web_disable_gel_stp_ecatcher_killswitch")&&Z)for(M=_.G(Object.keys(Z)),W=M.next();!W.done;W=M.next())W=W.value,c.kvPairs.push({key:W,value:String(Z[W])});if(Z=d.params)for(M=_.G(Object.keys(Z)),W=M.next();!W.done;W=M.next())W=W.value,c.kvPairs.push({key:"client."+W,value:String(Z[W])});Z=_.nF("SERVER_NAME");M=_.nF("SERVER_VERSION");Z&&M&&(c.kvPairs.push({key:"server.name",value:Z}),c.kvPairs.push({key:"server.version",value:M}));c={errorMetadata:c,
stackTrace:g,logMessage:h}}c&&(_.vT("clientError",c),(z==="ERROR"||_.J("errors_flush_gel_always_killswitch"))&&_.HT())}_.J("suppress_error_204_logging")||DIz(E,d)}try{w3N.add(d.message)}catch(r){}enM++}}};
DIz=function(h,E){var g=E.params||{};h={urlParams:{a:"logerror",t:"jserror",type:E.name,msg:E.message.substr(0,250),line:E.lineNumber,level:h,"client.name":g.name},postParams:{url:_.nF("PAGE_NAME",window.location.href),file:E.fileName},method:"POST"};g.version&&(h["client.version"]=g.version);if(h.postParams){E.stack&&(h.postParams.stack=E.stack);E=_.G(Object.keys(g));for(var Z=E.next();!Z.done;Z=E.next())Z=Z.value,h.postParams["client."+Z]=g[Z];if(g=_.nF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(E=
_.G(Object.keys(g)),Z=E.next();!Z.done;Z=E.next())Z=Z.value,h.postParams[Z]=g[Z];(g=_.nF("LAVA_VERSION"))&&(h.postParams["lava.version"]=g);g=_.nF("SERVER_NAME");E=_.nF("SERVER_VERSION");g&&E&&(h.postParams["server.name"]=g,h.postParams["server.version"]=E)}_.df(_.nF("ECATCHER_REPORT_HOST","")+"/error_204",h)};
_.H4d=function(h,E){E=E===void 0?"ERROR":E;var g=g===void 0?{}:g;var Z=_.yy("ytbin.polymer.shared.lib.tampering.info");Z&&(Z=Z())&&(g["params.tamperingInfo"]=Z.sort().join(","));_.$W(h,E,void 0,void 0,!0,g)};
_.nI=function(h){var E=_.VF.apply(1,arguments);h.args||(h.args=[]);Array.isArray(h.args)&&h.args.push.apply(h.args,_.$E(E))};
$IV=function(h){h.level="IGNORED"};
KzW=function(h,E){fdu.push(h);E();fdu.pop()};
s$=function(h,E){for(var g in E)E.hasOwnProperty(g)&&(h=_.YW(h,g,E[g]));return h};
_.O4W=function(h,E,g){g=g===void 0?!1:g;if(!h)return null;if(h.adInfoDialogEndpoint||h.backstageImageUploadEndpoint||h.confirmDialogEndpoint||h.clientActionEndpoint||h.createBackstagePostDialogEndpoint||h.createCommentReplyDialogEndpoint||h.flowEndpoint||h.guideBuilderEndpoint||h.liveChatDialogEndpoint||h.modalEndpoint||h.openPopupAction||h.shareEndpoint||h.shareEntityEndpoint||h.showLiveChatItemEndpoint||h.subscriptionManagerEndpoint||h.unlimitedCreateFamilyEndpoint||h.unlimitedFamilyFlowEndpoint||
h.updateCommentDialogEndpoint||h.updateCommentReplyDialogEndpoint||h.userFeedbackEndpoint||h.videoEditorEndpoint||h.ypcCancelSurveyEndpoint)return E=_.cx("polymer_report_client_url_requested_rate"),!g&&Math.random()<E&&_.O$(new _.xX("urlForEndpoint used on client endpoint",h)),null;var Z=_.cx("polymer_report_missing_web_navigation_endpoint_rate");if(h.liveChatEndpoint||h.liveChatReplayEndpoint)Z=0;if(!h.commandMetadata&&!h.clickTrackingParams&&Math.random()<Z){var M={},W;for(W in h)M[W]="1";_.O$(new _.xX("Missing navigation data",
M))}M="";if(h.commandMetadata&&h.commandMetadata.webCommandMetadata&&h.commandMetadata.webCommandMetadata.url)M=h.commandMetadata.webCommandMetadata.url;else if(h.searchEndpoint)Math.random()<Z&&_.O$(new _.xX("Should not manually handle search",h)),M="/results?search_query="+encodeURIComponent(h.searchEndpoint.query).replace(/%20/g,"+"),h.searchEndpoint.params&&(M+="&sp="+h.searchEndpoint.params);else if(h.watchEndpoint)Math.random()<Z&&_.O$(new _.xX("Should not manually handle watch",h)),M="/watch?v="+
h.watchEndpoint.videoId,h.watchEndpoint.playlistId&&(M+="&list="+h.watchEndpoint.playlistId),h.watchEndpoint.index&&(M+="&index="+h.watchEndpoint.index),h.watchEndpoint.startTimeSeconds&&(M+="&t="+h.watchEndpoint.startTimeSeconds);else if(h.browseEndpoint)Z=h.browseEndpoint.browseId,(W=h.browseEndpoint.canonicalBaseUrl)?M=W:Z&&(M=Z.substr(0,2),M=M==="FE"?Z==="FEwhat_to_watch"?"/":Z==="FEmy_videos"?"/my_videos":"/feed/"+Z.substr(2):M==="VL"?"/playlist?list="+Z.substr(2):"/channel/"+Z),M&&h.browseEndpoint.query&&
(M=s$(M+"/search",{query:h.browseEndpoint.query})),M&&h.browseEndpoint.params&&(M=s$(M,{params:h.browseEndpoint.params}));else{if(h.urlEndpoint)return h.urlEndpoint.url;h.signInEndpoint?(M="https://accounts.google.com/ServiceLogin",Z={},_.Kt.extend(Z,E||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),E=Z):h.uploadEndpoint?M="//www.youtube.com/upload":h.liveChatEndpoint?(M=h.liveChatEndpoint,Z=_.Kt.clone(M),_.yx(M.continuation)&&(W=Object.keys(M.continuation)[0],
Z.continuation=M.continuation[W].continuation),M=s$("/youtubei/v1/live_chat/get_live_chat",Z)):h.liveChatReplayEndpoint?(M=_.Kt.clone(h.liveChatReplayEndpoint),M.currentPlayerState&&(_.Kt.extend(M,M.currentPlayerState),delete M.currentPlayerState),M=s$("/youtubei/v1/live_chat/get_live_chat_replay",M)):h.liveChatItemContextMenuEndpoint?M=s$("/youtubei/v1/live_chat/get_item_context_menu",h.liveChatItemContextMenuEndpoint):h.liveChatPurchaseMessageEndpoint?M=s$("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
h.liveChatPurchaseMessageEndpoint):h.openSuperStickerBuyFlowCommand?M=s$("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",h.openSuperStickerBuyFlowCommand):h.videoEditEndpoint?M=s$("/edit",{video_id:h.videoEditEndpoint.videoId}):h.liveDashboardEndpoint?M=h.liveDashboardEndpoint.videoId?s$("/live_dashboard",{v:h.liveDashboardEndpoint.videoId}):"/live_dashboard":h.signalNavigationEndpoint&&h.signalNavigationEndpoint.signal&&h.signalNavigationEndpoint.signal==="WEBCAM"?M="/webcam":h.getPdgBuyFlowCommand&&
(M=s$(h.getPdgBuyFlowCommand.buyflowApiPath,{params:h.getPdgBuyFlowCommand.params}))}return M||g?s$(M,E||{}):(_.O$(new _.xX("Error: Can't construct url for endpoint","keys:"+Object.keys(h).sort().join(","),h)),null)};
nxN=function(h){if(h){if(h.browseEndpoint)return!!h.browseEndpoint.nofollow;if(h.watchEndpoint)return!!h.watchEndpoint.nofollow;if(h.urlEndpoint)return!!h.urlEndpoint.nofollow}return!1};
_.YzN=function(h,E){var g=E+h,Z=X3Z.get(g);if(Z)return Z;h=E+"-"+h.replace(/([A-Z])/g,"-$1").toLowerCase();X3Z.set(g,h);return h};
sJz=function(h){var E=_.$3(h,"action")||_.$3(h,"command")||_.$3(h,"endpoint");if(!E)return null;E=_.YzN(E,"yt");_.e(h,_.VX)&&(E+="-"+_.e(h,_.VX).signal.toLowerCase().replace(/_/g,"-"));return E};
Fz$=function(h){try{var E=Object.keys(h)}catch(M){return[]}for(var g=0;g<E.length;g++){var Z=E[g];if(Vvd.test(Z)||kDN.test(Z))return yUu(h[Z])}return[]};
yUu=function(h){return h.command?[h.command]:h.onExecutionAction?[h.onExecutionAction]:h.onResponseReceivedCommand?[h.onResponseReceivedCommand]:h.updateFlowCommand?[h.updateFlowCommand]:h.clientActions?h.clientActions:h.action?[h.action]:h.actions||h.commands||h.onResponseReceivedActions||h.onResponseReceivedCommands||h.onResponseReceivedEndpoints||[]};
T5x=function(h,E){E=E===void 0?!1:E;var g=_.GF().resolve(_.pl(kW));g||(g=new AU$,_.GF().addProvider({provide:kW,useValue:g}));return g&&h&&!_.Kt.isEmpty(h)?g.getUrl(h,E):""};
b4d=function(h,E,g){g=g===void 0?"":g;if(E){h.data=E;var Z=T5x(E);Z?(yF(h,Z),nxN(E)||!Md(Z)?h.rel="nofollow":h.removeAttribute("rel"),_.e(E,_.yX)&&_.e(E,_.yX).target==="TARGET_NEW_WINDOW"?h.target="_blank":g?h.target=g:h.removeAttribute("target")):(h.removeAttribute("href"),h.removeAttribute("rel"),h.removeAttribute("target"))}};
_.QX=function(h,E){var g=Za;if(xZ())u5d(h,function(){var W=_.VF.apply(0,arguments);Kw(g,function(){E.apply(null,_.$E(W))})});
else{var Z=_.Tq.getInstance(),M=Lcd(E);aA4(function(){M.value=E});
_.vJ(function(){var W={},z=_.bp(Z,(W[h]=function(){var c=_.VF.apply(0,arguments);Kw(g,function(){M.value.apply(M,_.$E(c))})},W));
return function(){var c={};_.up(Z,(c[h]="",c),z)}})}};
_.hf=function(h,E){return QJ4(h,!1,E)};
_.MC=function(h,E){return QJ4(h,!0,E)};
QJ4=function(h,E,g){return xZ()?hAN(h,E,g):E7W(h,E,g)};
E7W=function(h,E,g){return HJ(function(){return hAN(h,E,g)})};
hAN=function(h,E,g){var Z=Wc$(function(M){Z.value=M;var W=function(){var z=iX(null);try{return g==null?void 0:g(M)}finally{iX(z)}}();
return function(){W==null||W()}});
Z.__expectedTagName=h;Z.__optional=E;Z.isIdom=!xZ();return Z};
g7O=function(h){var E=Za,g=tV;return{getFn:function(){return function(Z){E.isDisposed||Da(function(){return Pm(function(){return h(Z)})},g)!==!0&&Z.stopPropagation()}}}};
W6=function(h){if(typeof h.children==="function")return h.children(),null;h=_.G(h.children);for(var E=h.next();!E.done;E=h.next())E=E.value,E();return null};
Zud=function(h){var E;return((E=h.prototype)==null?void 0:E.render)===void 0};
MpW=function(h){return h.items.map(h.children)};
pgW=function(h,E,g){g=g===void 0?!1:g;Da(function(){return WqO(h,E,g)})};
WqO=function(h,E,g){var Z=null;q6++;g=(g===void 0?0:g)?GKd:zA$;try{Z=g(h,function(){pg(E)}),N6(!1)}catch(M){throw N6(!0),M;
}return Z===null?h:Z};
pg=function(h){if(h!==void 0&&h!==null)if(h instanceof CF)for(var E=kZ;AV()!=null&&s5q in AV()&&E.contains(AV());)uX();else if(Array.isArray(h))for(E=_.G(h),h=E.next();!h.done;h=E.next())pg(h.value);else if(h instanceof xr||h instanceof cA||"function"==typeof _.WJ&&h instanceof _.WJ)Yvd(h.toString());else if(_.cJ(h)){if(AV()!==h){var g,Z;E=(Z=(g=tV)==null?void 0:g.name)!=null?Z:"unknown";throw Error("hc`"+h.tagName+"`"+E);}uX()}else if(h!=null&&h.contentKind===Io||h instanceof Fj||MNN(h))for(E=plN(h),
E=Array.from(E.childNodes),E=_.G(E),h=E.next();!h.done;h=E.next())kZ.appendChild(h.value),uX();else if(Hi(h)&&(h=h.toString()),g=typeof h,g==="boolean"||g==="number"||g==="string")Yvd(h);else if(typeof h==="function"){E=kZ;var M=AV();M&&(M._isSignalTextNode||M._isSafeOrSanitizedHtmlNode)||rQq(E,M,h);uX()}else if(h.type===MpW)pg(h.type(Object.assign({},h.props,{children:h.children[0]})));else{qa.beforeVisit(h);if(typeof h.type==="string"){a:{h.__open||rfO(h.type,h.props.idomKey);M=kZ;for(E in h.props)if(h.props[E]!==
aq$){var W=h.props[E];g=EW;g.push(E);g.push(W)}E=z9.attributes;E=E===void 0?G$:E;W=kZ;g=V6(W);X6V(W,g,E);lNO(M,h.props,!0);if((h.props.skip||h.props.skipchildren)&&kZ.hasChildNodes())vwV();else{if(h.type==="style"&&Rka(h.children)===null){vwV();E=void 0;break a}pg(h.children)}mCN();h.__open&&(h.__open=!1);bgN(M,h.props);E=M}return E}if(h.type===_.zt)pg(h.children);else if(!ceu(h)){E=h;try{iuu(E)}catch(z){h=z,(W=z9.handleError)==null||W.call.apply(W,[z9].concat(_.$E(O9(h,(M=E.type)==null?void 0:M.TAG_NAME))))}E.__open&&
(mCN(),E.__open=!1)}}};
o7z=function(h,E){var g;Zud(h)?g=new Na(E,h):g=new h(E);g.__type=h;g.__updateContext={nextState:g.state,isForced:!1};return g};
iuu=function(h){var E=h.type,g=E.TAG_NAME;if(E===W6)h.props.children=h.children,E(h.props);else{h.children.length>0&&(h.props.children=h.children);var Z;(Z=h.props).idomKey||(Z.idomKey=E);if(g){var M=rfO(g,h.props.idomKey);h.__open=!0;var W=M.__instance}W||(W=o7z(E,h.props),W.props=null,M&&(M.__instance=W,W.el=M));var z;g=((z=W.__updateContext)!=null?z:{nextState:W.state,isForced:!1}).nextState;W.__updateContext=void 0;E.getDerivedStateFromProps&&(g=E.getDerivedStateFromProps(h.props,g));W.props=
h.props;W.state=g;z=function(){var c=W;qa.beforeRender(c);var I=c.render(c.props);qa.afterRender(c,I);I?(c.props.idomKey&&(I.props.idomKey=c.props.idomKey),c=I):c=void 0;if(I=c)if(I.__open=h.__open,c=pg(I),h.__open=I.__open,!E.TAG_NAME)if(c)E.TAG_NAME=c.tagName.toLowerCase(),c.__instance=W,W.el=c;else{var B;if((B=W.hooks)==null?0:B.length){var U;(U=z9.handleError)==null||U.call.apply(U,[z9].concat(_.$E(O9(Error("od")))))}}W.didPatch();qa.didPatch(W)};
(g=W.functionComponent)?Q8O(g,z,W.props.debugInstance):z()}};
ceu=function(h){var E=h.type;if(!Zud(E)||E===W6||E.componentType===SA)return!1;h.props.children=h.children.length>1?h.children:h.children[0];var g,Z=(g=h.props.idomKey)!=null?g:h.type,M;if(AV()&&((M=AV()[UW])==null?void 0:M.key)===Z){var W=AV(),z=W[UW];if(!z)throw Error("gc`"+W.tagName);var c;(c=z.updateSignalsFromIdomProps)==null||c.call(z,h.props);Iqx(z);return!0}if(RAZ.has(E.name))throw c=E.name,E=(z=(W=tV)==null?void 0:W.name)!=null?z:"unknown",Error("fc`"+c+"`"+E);$_V(h.type,h.props,h.children);
h.props.renderedFromIdom=!0;(c=Q8O(h.type,function(){return tNx(h.type,h.props)},h.props.debugInstance))&&P1O(c);
return!0};
BHz=function(h){for(var E=0;E<dX(h).length;E++)uX()};
Iqx=function(h){var E=UT4();if(E)BHz(E);else for(var g=0;g<h.numNodes;g++)(E=UT4())?BHz(E):uX()};
UT4=function(){var h;return(h=AV()[UW])==null?void 0:h.sourceDynamicRange};
P1O=function(h){h=hk$(h);h=Array.isArray(h)?h:[h];h=_.G(h);for(var E=h.next();!E.done;E=h.next())kZ.insertBefore(E.value,AV()),uX()};
LqW=function(){var h=x_W(),E=HJ(function(){return{value:0}});
return[E.value,function(g){if(fF!==null){var Z;(Z=z9.handleError)==null||Z.call.apply(Z,[z9].concat(_.$E(O9(Error("pd")))))}E.value=typeof g==="function"?g(E.value):g;h.__updateContext={nextState:h.state,isForced:!0};g=_.M6(h.effectContext);Z=ao(!1);try{if(h.el){var M,W={},z=(W.props=h.props,W.type=h.__type,W.children=(M=h.props.children)!=null?M:[],W[Gt]=!0,W);try{pgW(h.el,z,!0)}catch(B){var c,I;(I=z9.handleError)==null||I.call.apply(I,[z9].concat(_.$E(O9(B,(c=h.__type)==null?void 0:c.TAG_NAME))))}}}finally{ao(Z),
_.M6(g)}}]};
_.z$=function(h,E){var g=Za,Z=function(M){Kw(g,function(){E(M)})};
window.addEventListener(h,Z,void 0);_.r9(function(){window.removeEventListener(h,Z,void 0)})};
_.c6=function(h){var E=Za;return function(g){var Z,M=(Z=h.observer)!=null?Z:_.GF().resolve(aT);Z=jdO(g);var W=[];h.showOption&&W.push(M.observe(g,function(){Kw(E,function(){h.visibilityCallback(!0,g)})},h.showOption));
h.hideOption&&W.push(M.observe(g,function(){Kw(E,function(){h.visibilityCallback(!1,g)})},h.hideOption));
h.prescanOption&&h.prescanCallback&&W.push(M.observe(g,function(){Kw(E,function(){h.prescanCallback()})},h.prescanOption));
var z;Z.visibilityMonitorKeys=((z=Z.visibilityMonitorKeys)!=null?z:[]).concat(W)}};
jdO=function(h){var E;return(E=h.polymerController)!=null?E:h};
eAa=function(h,E){var g=dTO;return _.R(_.zt,null,Lg4(z9.enableLazyTsx,function(){return _.R(C1a,{id:g,value:h,children:E})},function(){var Z=Jez(g,h);
G9(Z);Z=_.M6(Z);try{return E()}finally{_.M6(Z)}}))};
C1a=function(h){var E=h.children;h=Jez(h.id,h.value);G9(h);h=_.M6(h);try{return _.R(_.zt,null,Jx(E()))}finally{_.M6(h)}};
Jez=function(h,E){return Object.assign(Object.create(qaq),{id:h,contextValue:E})};
fq4=function(h){var E,g=Za;_.$Z(function(){var Z=_.M6(g),M=ao(!E);try{if(E)pgW(E,h.children(),!0);else if(E=Jx(h.children()),!(E instanceof Element))throw Error("qd");}finally{ao(M),_.M6(Z)}});
return E};
_.NHW=function(h,E){var g;E=mE(function(){var Z=ao(!0);q6++;try{g=dX(h()),N6(!1)}catch(M){throw N6(!0),M;}finally{ao(Z)}},E===void 0?!1:E);
return[g,E]};
SaV=function(h){var E=new tpu;E.abort(h);return E.signal};
xT$=function(){if(this.aborted){var h;throw(h=this.reason)!=null?h:new DOMException("signal is aborted without reason","AbortError");}};
lqd=function(h){var E=new tpu;h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,g.aborted){E.abort(g.reason);break}else wgV.set(E.signal,E),DT$.add(g,E.signal);return E.signal};
reZ=function(){for(var h=_.G(DT$.get(this)),E=h.next();!E.done;E=h.next())wgV.get(E.value).abort(this.reason)};
mTW=function(h){var E=new tpu;setTimeout(function(){E.abort(new DOMException("signal timed out","TimeoutError"))},h);
return E.signal};
Huu=function(h){h=h.buf.charCodeAt(h.pos++);return v7q[h]};
oT=function(h){var E=0,g=0;do{var Z=Huu(h);E|=(Z&31)<<g;g+=5}while(Z&32);return E<0?E+4294967296:E};
Kq$=function(){var h=!0;h=h===void 0?!1:h;var E=E===void 0?!1:E;var g=g===void 0?{}:g;var Z=g.cssRowKey||"",M=g.combinedSignature||"";!Z&&window&&window._F_cssRowKey&&(Z=window._F_cssRowKey,!M&&window._F_combinedSignature&&(M=window._F_combinedSignature));if(Z&&typeof window._F_installCss!=="function")throw Error("Ad");var W=g.loaderClass||_.IT,z=KgO("base-js");h=new W(iXZ(nLM("",z)),Z,M,h,E);E=g.useCors||z&&z.hasAttribute("crossorigin");z=g.corsMode||z&&z.getAttribute("crossorigin");E&&(h.useCors_=
E);z&&(h.corsMode_=z);g.urlMaxLength&&(h.urlMaxLength=g.urlMaxLength);g.fetchPriority&&(h.fetchPriority=g.fetchPriority);var c=Hh();c.JSC$10055_loader_=h;c.setBatchModeEnabled(!0);_.$Tu=function(I){return Promise.resolve(c.load(I))}};
Xgz=function(h,E,g){Ou$(h,E);h[E][n7Z].unshift(g)};
Ou$=function(h,E){if(!h[E]||!h[E][n7Z]){var g=h[E],Z=g?[g]:[];h[E]=function(){for(var M=_.G(Z),W=M.next();!W.done;W=M.next())W.value.apply(this,arguments)};
h[E][n7Z]=Z}};
Yaq=function(h){if(!h)return[];var E=[];h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,Array.isArray(g)?E.push.apply(E,_.$E(Yaq(g))):E.push(g);return E};
_.P6=function(h,E){if(h&&sdM.test(h)||h==="//")return h;if(VpW===void 0){VpW=!1;try{var g=new URL("b","http://a");g.pathname="c%20d";VpW=g.href==="http://a/c%20d"}catch(Z){}}E||(E=document.baseURI||window.location.href);if(VpW)try{return(new URL(h,E)).href}catch(Z){return h}RT||(RT=document.implementation.createHTMLDocument("temp"),RT.base=RT.createElement("base"),RT.head.appendChild(RT.base),RT.anchor=RT.createElement("a"),RT.body.appendChild(RT.anchor));RT.base.href=E;RT.anchor.href=h;return RT.anchor.href||
h};
yeM=function(h,E){return h.replace(kKO,function(g,Z,M,W){return Z+"'"+_.P6(M.replace(/["']/g,""),E)+"'"+W})};
FqV=function(h){return h.substring(0,h.lastIndexOf("/")+1)};
bux=function(){Aed=!1;for(var h=B6.length,E=0;E<h;E++){var g=B6[E];if(g)try{g()}catch(Z){setTimeout(function(){throw Z;})}}B6.splice(0,h);
THz+=h};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(h){console.log("["+h.is+"]: registered")};
QdZ=function(h){uDO.push(h)};
Uv=function(h){return h1O[h]||(h1O[h]=h.indexOf("-")<0?h:h.replace(Eud,function(E){return E[1].toUpperCase()}))};
Lg=function(h){return h1O[h]||(h1O[h]=h.replace(guW,"-$1").toLowerCase())};
Z$M=function(h,E){var g=E.parentInfo&&Z$M(h,E.parentInfo);if(g)for(h=g.firstChild,g=0;h;h=h.nextSibling){if(E.parentIndex===g++)return h}else return h};
M6q=function(h,E){h=h._methodHost||h;return function(g){if(h[E])h[E](g,g.detail);else console.warn("listener method `"+E+"` not defined")}};
jY=function(h){return h.indexOf(".")>=0};
da=function(h){var E=h.indexOf(".");return E===-1?h:h.slice(0,E)};
Wyx=function(h,E){return h.indexOf(E+".")===0};
Cg=function(h,E){return E.indexOf(h+".")===0};
Jf=function(h,E,g){return E+g.slice(h.length)};
pwW=function(h,E){return h===E||Wyx(h,E)||Cg(h,E)};
eY=function(h){if(Array.isArray(h)){for(var E=[],g=0;g<h.length;g++)for(var Z=h[g].toString().split("."),M=0;M<Z.length;M++)E.push(Z[M]);return E.join(".")}return h};
G5z=function(h){return Array.isArray(h)?eY(h).split("."):h.toString().split(".")};
qC=function(h,E,g){E=G5z(E);for(var Z=0;Z<E.length;Z++){if(!h)return;h=h[E[Z]]}g&&(g.path=E.join("."));return h};
z1d=function(h,E,g){var Z=G5z(E),M=Z[Z.length-1];if(Z.length>1){for(E=0;E<Z.length-1;E++)if(h=h[Z[E]],!h)return;h[M]=g}else h[E]=g;return Z.join(".")};
atd=function(h,E,g){var Z=h[E];if(!Z)Z=h[E]={};else if(!h.hasOwnProperty(E)&&(Z=h[E]=Object.create(h[E]),g))for(var M in Z)for(h=Z[M],E=Z[M]=Array(h.length),g=0;g<h.length;g++)E[g]=h[g];return Z};
NC=function(h,E,g,Z,M,W){if(E){var z=!1,c=fg++,I;for(I in g){var B=M?da(I):I;if(B=E[B])for(var U=0,L=B.length,d=void 0;U<L&&(d=B[U]);U++)d.info&&d.info.lastRun===c||M&&!cNu(I,d.trigger)||(d.info&&(d.info.lastRun=c),d.fn(h,I,g,Z,d.info,M,W),z=!0)}return z}return!1};
cNu=function(h,E){if(E){var g=E.name;return g==h||!(!E.structured||!Wyx(g,h))||!(!E.wildcard||!Cg(g,h))}return!0};
i$Z=function(h,E,g,Z,M){E=typeof M.method==="string"?h[M.method]:M.method;g=M.property;E?E.call(h,h.__data[g],Z[g]):M.dynamicFn||console.warn("observer method `"+M.method+"` not defined")};
ou$=function(h,E,g,Z){g={value:g,queueProperty:!0};Z&&(g.path=Z);(0,_.tf)(h).dispatchEvent(new CustomEvent(E,{detail:g}))};
ItN=function(h,E,g,Z,M,W){W=(Z=(W?da(E):E)!=E?E:null)?qC(h,Z):h.__data[E];Z&&W===void 0&&(W=g[E]);ou$(h,M.eventName,W,Z)};
R1a=function(h,E,g,Z,M){g=h.__data[E];SY&&(g=SY(g,M.attrName,"attribute",h));h._propertyToAttribute(E,M.attrName,g)};
BEu=function(h){var E=h.constructor.__orderedComputedDeps;if(!E){E=new Map;for(var g=h.__computeEffects,Z=PzZ(h),M=Z.counts,W=Z.ready,z=Z.total;Z=W.shift();)E.set(Z,E.size),(Z=g[Z])&&Z.forEach(function(c){c=c.info.methodInfo;--z;--M[c]===0&&W.push(c)});
z!==0&&console.warn("Computed graph for "+h.localName+" incomplete; circular?");h.constructor.__orderedComputedDeps=E}return E};
PzZ=function(h){var E=h.__computeInfo,g={};h=h.__computeEffects;var Z=[],M=0,W;for(W in E){var z=E[W];M+=g[W]=z.args.filter(function(I){return!I.literal}).length+(z.dynamicFn?1:0)}for(var c in h)E[c]||Z.push(c);
return{counts:g,ready:Z,total:M}};
LyM=function(h,E,g,Z,M){E=Uhx(h,E,g,Z,M);if(E===xw)return!1;M=M.methodInfo;if(h.__dataHasAccessor&&h.__dataHasAccessor[M])return h._setPendingProperty(M,E,!0);h[M]=E;return!1};
Cza=function(h,E,g,Z,M,W,z){g.bindings=g.bindings||[];Z={kind:Z,target:M,parts:W,literal:z,isCompound:W.length!==1};g.bindings.push(Z);Z.target&&Z.kind!="attribute"&&Z.kind!="text"&&!Z.isCompound&&Z.parts[0].mode==="{"&&(g=Z.parts[0],W=g.negate,Z.listenerEvent=g.event||Lg(M)+"-changed",Z.listenerNegate=W);M=E.nodeInfoList.length;for(g=0;g<Z.parts.length;g++){var c=Z.parts[g];c.compoundIndex=g;W=h;z=E;var I=Z,B=c,U=M;if(!B.literal)if(I.kind==="attribute"&&I.target[0]==="-")console.warn("Cannot set attribute "+
I.target+' because "-" is not a valid attribute starting character');else for(c=B.dependencies,I={index:U,binding:I,part:B,evaluator:W},B=0;B<c.length;B++)U=c[B],typeof U=="string"&&(U=jeO(U),U.wildcard=!0),W._addTemplatePropertyEffect(z,U.rootProperty,{fn:dha,info:I,trigger:U})}};
dha=function(h,E,g,Z,M,W,z){z=z[M.index];var c=M.binding,I=M.part;W&&I.source&&E.length>I.source.length&&c.kind=="property"&&!c.isCompound&&z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[c.target]?(g=g[E],E=Jf(I.source,c.target,E),z._setPendingPropertyOrPath(E,g,!1,!0)&&h._enqueueClient(z)):(E=M.evaluator._evaluateBinding(h,I,E,g,Z,W),E!==xw&&(c.isCompound&&(g=z.__dataCompoundStorage[c.target],g[I.compoundIndex]=E,E=g.join("")),c.kind==="attribute"||c.target!=="textContent"&&
(c.target!=="value"||z.localName!=="input"&&z.localName!=="textarea")||(E=E==void 0?"":E),I=E,SY&&(I=SY(I,c.target,c.kind,z)),c.kind=="attribute"?h._valueToNodeAttribute(z,I,c.target):(c=c.target,z.__isPropertyEffectsClient&&z.__dataHasAccessor&&z.__dataHasAccessor[c]?z.__readOnly&&z.__readOnly[c]||z._setPendingProperty(c,I)&&h._enqueueClient(z):h._setUnmanagedPropertyToNode(z,c,I))))};
JNO=function(h,E,g){if(g.listenerEvent){var Z=g.parts[0];h.addEventListener(g.listenerEvent,function(M){var W=g.target,z=Z.source,c=Z.negate,I=M.detail,B=I&&I.path;B?(z=Jf(W,z,B),M=I&&I.value):M=M.currentTarget[W];E.__readOnly&&E.__readOnly[z]||!E._setPendingPropertyOrPath(z,c?!M:M,!0,!!B)||I&&I.queueProperty||E._invalidateProperties()})}};
e1W=function(h,E,g,Z,M,W){W=E.static||W&&(typeof W!=="object"||W[E.methodName]);M={methodName:E.methodName,args:E.args,methodInfo:M,dynamicFn:W};for(var z=0,c=void 0;z<E.args.length&&(c=E.args[z]);z++)c.literal||h._addPropertyEffect(c.rootProperty,g,{fn:Z,info:M,trigger:c});W&&h._addPropertyEffect(E.methodName,g,{fn:Z,info:M});return M};
Uhx=function(h,E,g,Z,M){Z=h._methodHost||h;var W=Z[M.methodName];if(W)return h=h._marshalArgs(M.args,E,g),h===xw?xw:W.apply(Z,h);M.dynamicFn||console.warn("method `"+M.methodName+"` not defined")};
qcq=function(h){for(var E="",g=0;g<h.length;g++)E+=h[g].literal||"";return E};
t6W=function(h){if(h=h.match(/([^\s]+?)\(([\s\S]*)\)/)){var E={methodName:h[1],static:!0,args:fta};return h[2].trim()?NE$(h[2].replace(/\\,/g,"&comma;").split(","),E):E}return null};
NE$=function(h,E){E.args=h.map(function(g){g=jeO(g);g.literal||(E.static=!1);return g},this);
return E};
jeO=function(h){h=h.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var E={name:h,value:"",literal:!1},g=h[0];g==="-"&&(g=h[1]);g>="0"&&g<="9"&&(g="#");switch(g){case "'":case '"':E.value=h.slice(1,-1);E.literal=!0;break;case "#":E.value=Number(h),E.literal=!0}E.literal||(E.rootProperty=da(h),E.structured=jY(h),E.structured&&(E.wildcard=h.slice(-2)==".*",E.wildcard&&(E.name=h.slice(0,-2))));return E};
Scd=function(h,E,g){h=qC(h,g);h===void 0&&(h=E[g]);return h};
xhu=function(h,E,g,Z){Z={indexSplices:Z};wa&&!h._overrideLegacyUndefined&&(E.splices=Z);h.notifyPath(g+".splices",Z);h.notifyPath(g+".length",E.length);wa&&!h._overrideLegacyUndefined&&(Z.indexSplices=[])};
D_=function(h,E,g,Z,M,W){xhu(h,E,g,[{index:Z,addedCount:M,removed:W,object:E,type:"splice"}])};
wwZ=function(h){h=yeM((h.body?h.body:h).textContent,h.baseURI);var E=document.createElement("style");E.textContent=h;return E};
ltu=function(h){h=h.trim().split(/\s+/);for(var E=[],g=0;g<h.length;g++)E.push.apply(E,_.$E(DhO(h[g])));return E};
DhO=function(h){var E=lf.import(h);if(!E)return console.warn("Could not find style data in module named",h),[];if(E._styles===void 0){h=[];h.push.apply(h,_.$E(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E)));var g=E.querySelector("template");g&&h.push.apply(h,_.$E(rNO(g,E.assetpath)));E._styles=h}return E._styles};
rNO=function(h,E){if(!h._styles){for(var g=[],Z=h.content.querySelectorAll("style"),M=0;M<Z.length;M++){var W=Z[M],z=W.getAttribute("include");z&&g.push.apply(g,_.$E(ltu(z).filter(function(c,I,B){return B.indexOf(c)===I})));
E&&(W.textContent=yeM(W.textContent,E));g.push(W)}h._styles=g}return h._styles};
mh4=function(h){return(h=lf.import(h))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(h):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(h){var E=[];h=h.querySelectorAll("link[rel=import][type~=css]");for(var g=0;g<h.length;g++){var Z=h[g];if(Z.import){var M=Z.import;if((Z=Z.hasAttribute("shady-unscoped"))&&!M._unscopedStyle){var W=wwZ(M);W.setAttribute("shady-unscoped","");M._unscopedStyle=W}else M._style||(M._style=wwZ(M));E.push(Z?M._unscopedStyle:M._style)}}return E};
H$z=function(h){h=h.trim().split(/\s+/);for(var E="",g=0;g<h.length;g++)E+=vuV(h[g]);return E};
vuV=function(h){var E=lf.import(h);if(E&&E._cssText===void 0){var g=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E),Z=E.querySelector("template");Z&&(g+=$hz(Z,E.assetpath));E._cssText=g||null}E||console.warn("Could not find style data in module named",h);return E&&E._cssText||""};
$hz=function(h,E){var g="";h=rNO(h,E);for(E=0;E<h.length;E++){var Z=h[E];Z.parentNode&&Z.parentNode.removeChild(Z);g+=Z.textContent}return g};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(h){var E="";h=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(h);for(var g=0;g<h.length;g++)E+=h[g].textContent;return E};
ra=function(h,E){return{index:h,removed:[],addedCount:E}};
O$N=function(h,E,g,Z){var M=0,W=0,z=0,c=0,I=Math.min(E-M,Z-W);if(M==0&&W==0)a:{for(z=0;z<I;z++)if(h[z]!==g[z])break a;z=I}if(E==h.length&&Z==g.length){c=h.length;for(var B=g.length,U=0;U<I-z&&Ky$(h[--c],g[--B]);)U++;c=U}M+=z;W+=z;E-=c;Z-=c;if(E-M==0&&Z-W==0)return[];if(M==E){for(E=ra(M,0);W<Z;)E.removed.push(g[W++]);return[E]}if(W==Z)return[ra(M,E-M)];I=M;z=W;Z=Z-z+1;c=E-I+1;E=Array(Z);for(B=0;B<Z;B++)E[B]=Array(c),E[B][0]=B;for(B=0;B<c;B++)E[0][B]=B;for(B=1;B<Z;B++)for(U=1;U<c;U++)if(h[I+U-1]===
g[z+B-1])E[B][U]=E[B-1][U-1];else{var L=E[B-1][U]+1,d=E[B][U-1]+1;E[B][U]=L<d?L:d}I=E.length-1;z=E[0].length-1;Z=E[I][z];for(h=[];I>0||z>0;)I==0?(h.push(2),z--):z==0?(h.push(3),I--):(c=E[I-1][z-1],B=E[I-1][z],U=E[I][z-1],L=B<U?B<c?B:c:U<c?U:c,L==c?(c==Z?h.push(0):(h.push(1),Z=c),I--,z--):L==B?(h.push(3),I--,Z=B):(h.push(2),z--,Z=U));h.reverse();E=void 0;I=[];for(z=0;z<h.length;z++)switch(h[z]){case 0:E&&(I.push(E),E=void 0);M++;W++;break;case 1:E||(E=ra(M,0));E.addedCount++;M++;E.removed.push(g[W]);
W++;break;case 2:E||(E=ra(M,0));E.addedCount++;M++;break;case 3:E||(E=ra(M,0)),E.removed.push(g[W]),W++}E&&I.push(E);return I};
nuz=function(h,E){return O$N(h,h.length,E,E.length)};
Ky$=function(h,E){return h===E};
Ycz=function(h){if(h instanceof Xwq)return h.value;throw Error("Id`"+h);};
sez=function(h,E){for(var g in E)g===null?h.style.removeProperty(g):h.style.setProperty(g,E[g])};
V6$=function(h,E){return(h=window.getComputedStyle(h).getPropertyValue(E))?h.trim():""};
ANW=function(h){requestAnimationFrame(function(){k5a?k5a(h):(yNq||(yNq=new Promise(function(E){Fyz=E}),document.readyState==="complete"?Fyz():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Fyz()})),yNq.then(function(){h&&h()}))})};
umd=function(h){TE$=h&&h.shimcssproperties?!1:b$W||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
ZWZ=function(h){if(!(QeN.indexOf(h)>-1)&&h!=="touchend"&&h3x&&Egu&&ggz)return{passive:!0}};
GZO=function(h){for(var E=MP4?["click"]:QeN,g=0,Z;g<E.length;g++)Z=E[g],h?(Wja.length=0,document.addEventListener(Z,pWV,!0)):document.removeEventListener(Z,pWV,!0)};
v6=function(h){var E=h.type;return QeN.indexOf(E)>-1?E==="mousemove"?(E=h.buttons===void 0?1:h.buttons,h instanceof window.MouseEvent&&!z3d&&(E=aW$[h.which]||0),!!(E&1)):(h.button===void 0?0:h.button)===0:!1};
cs$=function(h){if(h.type==="click"){if(h.detail===0)return!0;var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h);if(!E.nodeType||E.nodeType!==Node.ELEMENT_NODE)return!0;E=E.getBoundingClientRect();var g=h.pageX;h=h.pageY;return!(g>=E.left&&g<=E.right&&h>=E.top&&h<=E.bottom)}return!1};
iWZ=function(h,E,g){h.movefn=E;h.upfn=g;document.addEventListener("mousemove",E);document.addEventListener("mouseup",g)};
H6=function(h){document.removeEventListener("mousemove",h.movefn);document.removeEventListener("mouseup",h.upfn);h.movefn=null;h.upfn=null};
og$=function(h,E){for(var g=document.elementFromPoint(h,E),Z=g;Z&&Z.shadowRoot&&!window.ShadyDOM;){var M=Z;Z=Z.shadowRoot.elementFromPoint(h,E);if(M===Z)break;Z&&(g=Z)}return g};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h){var E=IWz(h);return E.length>0?E[0]:h.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h){var E=h.type,g=h.currentTarget.__polymerGestures;if(g&&(g=g[E])){if(!h.__polymerGesturesHandled&&(h.__polymerGesturesHandled={},E.slice(0,5)==="touch")){var Z=h.changedTouches[0];E==="touchstart"&&h.touches.length===1&&(R3u=Z.identifier);if(R3u!==Z.identifier)return;h3x||(E==="touchstart"||E==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h)}Z=
h.__polymerGesturesHandled;if(!Z.skip){for(var M=0,W;M<$w.length;M++)W=$w[M],g[W.name]&&!Z[W.name]&&W.flow&&W.flow.start.indexOf(h.type)>-1&&W.reset&&W.reset();for(M=0;M<$w.length;M++)W=$w[M],g[W.name]&&!Z[W.name]&&(Z[W.name]=!0,W[E](h))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h){var E=h.changedTouches[0],g=h.type;if(g==="touchstart")P3z=E.clientX,Brz=E.clientY,Uv$=!1;else if(g==="touchmove"&&!Uv$){Uv$=!0;g="auto";for(var Z=IWz(h),M=0,W;M<Z.length;M++)if(W=Z[M],W.__polymerGesturesTouchAction){g=W.__polymerGesturesTouchAction;break}Z=!1;M=Math.abs(P3z-E.clientX);E=Math.abs(Brz-E.clientY);h.cancelable&&(g==="none"?Z=!0:g==="pan-x"?Z=E>M:g==="pan-y"&&(Z=M>E));Z?h.preventDefault():
Kg("track")}};
ng=function(h,E,g){return Ov[E]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,E,g),!0):!1};
X9=function(h,E,g){return Ov[E]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,E,g),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h,E,g){var Z=Ov[E],M=Z.deps,W=Z.name,z=h.__polymerGestures;z||(h.__polymerGestures=z={});for(var c=0,I,B;c<M.length;c++)I=M[c],MP4&&QeN.indexOf(I)>-1&&I!=="click"||((B=z[I])||(z[I]=B={_count:0}),B._count===0&&h.addEventListener(I,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ZWZ(I)),B[W]=(B[W]||0)+1,B._count=(B._count||0)+1);h.addEventListener(E,g);Z.touchAction&&_.Vu(h,Z.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h,E,g){var Z=Ov[E],M=Z.deps;Z=Z.name;var W=h.__polymerGestures;if(W)for(var z=0,c,I;z<M.length;z++)c=M[z],(I=W[c])&&I[Z]&&(I[Z]=(I[Z]||1)-1,I._count=(I._count||1)-1,I._count===0&&h.removeEventListener(c,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,ZWZ(c)));h.removeEventListener(E,g)};
Ljq=function(h){$w.push(h);for(var E=0;E<h.emits.length;E++)Ov[h.emits[E]]=h};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h){for(var E=0,g;E<$w.length;E++){g=$w[E];for(var Z=0,M;Z<g.emits.length;Z++)if(M=g.emits[Z],M===h)return g}return null};
_.Vu=function(h,E){h3x&&h instanceof HTMLElement&&kw.run(function(){h.style.touchAction=E});
h.__polymerGesturesTouchAction=E};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(h,E,g){E=new Event(E,{bubbles:!0,cancelable:!0,composed:!0});E.detail=g;(0,_.tf)(h).dispatchEvent(E);E.defaultPrevented&&(h=g.preventer||g.sourceEvent)&&h.preventDefault&&h.preventDefault()};
Kg=function(h){h=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h);h.info&&(h.info.prevent=!0)};
yu=function(h,E,g,Z){E&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,h,{x:g.clientX,y:g.clientY,sourceEvent:g,preventer:Z,prevent:function(M){return Kg(M)}})};
jVz=function(h,E,g){if(h.prevent)return!1;if(h.started)return!0;g=Math.abs(h.y-g);return Math.abs(h.x-E)>=5||g>=5};
dvN=function(h,E,g){if(E){var Z=h.moves[h.moves.length-2],M=h.moves[h.moves.length-1],W=M.x-h.x,z=M.y-h.y,c=0;if(Z){var I=M.x-Z.x;c=M.y-Z.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"track",{state:h.state,x:g.clientX,y:g.clientY,dx:W,dy:z,ddx:I,ddy:c,sourceEvent:g,hover:function(){return og$(g.clientX,g.clientY)}})}};
Jsx=function(h,E,g){var Z=Math.abs(E.clientX-h.x),M=Math.abs(E.clientY-h.y),W=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g||E);!W||C3$[W.localName]&&W.hasAttribute("disabled")||!(isNaN(Z)||isNaN(M)||Z<=25&&M<=25||cs$(E))||h.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,"tap",{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:g})};
e3$=function(h,E,g,Z,M){var W;M&&(W=typeof g==="object"&&g!==null)&&(Z=h.__dataTemp[E]);Z=Z!==g&&(Z===Z||g===g);W&&Z&&(h.__dataTemp[E]=g);return Z};
fWV=function(){if(F9&&!Af){if(!qK4){qK4=!0;var h=document.createElement("style");h.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(h)}return!0}return!1};
tPq=function(){return Nrz};
SKW=function(h,E){Nrz=h;Object.setPrototypeOf(h,E.prototype);new E;Nrz=null};
xvq=function(h,E){for(var g=0;g<E.length;g++){var Z=E[g];if(!!h!=!!Z.__hideTemplateChildren__)if(Z.nodeType===Node.TEXT_NODE)h?(Z.__polymerTextContent__=Z.textContent,Z.textContent=""):Z.textContent=Z.__polymerTextContent__;else if(Z.localName==="slot")if(h)Z.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.tf)((0,_.tf)(Z).parentNode).replaceChild(Z.__polymerReplaced__,Z);else{var M=Z.__polymerReplaced__;M&&(0,_.tf)((0,_.tf)(M).parentNode).replaceChild(Z,M)}else Z.style&&(h?(Z.__polymerDisplay__=
Z.style.display,Z.style.display="none"):Z.style.display=Z.__polymerDisplay__);Z.__hideTemplateChildren__=h;Z._showHideChildren&&Z._showHideChildren(h)}};
wWx=function(h){return(h=h.__dataHost)&&h._methodHost||h};
rs4=function(h,E,g){var Z=g.mutableData?DvM:T$;bf.mixin&&(Z=bf.mixin(Z));var M=function(){return Z.apply(this,arguments)||this};
_.f(M,Z);M.prototype.__templatizeOptions=g;M.prototype._bindTemplate(h);lWd(M,h,E,g);return M};
KjN=function(h,E,g,Z){var M=g.forwardHostProp;if(M&&E.hasHostProps){var W=h.localName=="template",z=E.templatizeTemplateClass;if(!z){if(W){var c=g.mutableData?mvx:vg4;z=function(){return c.apply(this,arguments)||this};
_.f(z,c);z=E.templatizeTemplateClass=z}else{var I=h.constructor;z=function(){return I.apply(this,arguments)||this};
_.f(z,I);z=E.templatizeTemplateClass=z}var B=E.hostProps,U;for(U in B)z.prototype._addPropertyEffect("_host_"+U,z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:HWd(M)}),z.prototype._createNotifyingProperty("_host_"+U);uf&&Z&&$vz(E,g,Z)}h.__dataProto&&Object.assign(h.__data,h.__dataProto);if(W)SKW(h,z),h.__dataTemp={},h.__dataPending=null,h.__dataOld=null,h._enableProperties();else{Object.setPrototypeOf(h,z.prototype);E=E.hostProps;for(var L in E)L="_host_"+L,L in h&&(E=h[L],delete h[L],h.__data[L]=
E)}}};
HWd=function(h){return function(E,g,Z){h.call(E.__templatizeOwner,g.substring(6),Z[g])}};
lWd=function(h,E,g,Z){var M=g.hostProps||{},W;for(W in Z.instanceProps){delete M[W];var z=Z.notifyInstanceProp;z&&h.prototype._addPropertyEffect(W,h.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:OWd(z)})}if(Z.forwardHostProp&&E.__dataHost)for(var c in M)g.hasHostProps||(g.hasHostProps=!0),h.prototype._addPropertyEffect(c,h.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ngz()})};
OWd=function(h){return function(E,g,Z){h.call(E.__templatizeOwner,E,g,Z[g])}};
ngz=function(){return function(h,E,g){h.__dataHost._setPendingPropertyOrPath("_host_"+E,g[E],!0,!0)}};
bf=function(h,E,g){if(Qu&&!wWx(h))throw Error("Od");g=g||{};if(h.__templatizeOwner)throw Error("Pd");h.__templatizeOwner=E;var Z=(E?E.constructor:T$)._parseTemplate(h),M=Z.templatizeInstanceClass;M||(M=rs4(h,Z,g),Z.templatizeInstanceClass=M);var W=wWx(h);KjN(h,Z,g,W);g=function(){return M.apply(this,arguments)||this};
_.f(g,M);g.prototype._methodHost=W;g.prototype.__dataHost=h;g.prototype.__templatizeOwner=E;g.prototype.__hostProps=Z.hostProps;return g};
$vz=function(h,E,g){g=g.constructor._properties;h=h.propertyEffects;E=E.instanceProps;for(var Z in h)if(!(g[Z]||E&&E[Z]))for(var M=h[Z],W=0;W<M.length;W++){var z=M[W].info.part;if(!z.signature||!z.signature.static){console.warn("Property '"+Z+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
XWx=function(h,E){for(var g;E;)if(g=E.__dataHost?E:E.__templatizeInstance)if(g.__dataHost!=h)E=g.__dataHost;else return g;else E=(0,_.tf)(E).parentNode;return null};
hQ=function(h){return h.localName==="slot"};
YKx=function(){for(var h=EH.prototype,E="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),g={},Z=0;Z<E.length;g={method$jscomp$33:void 0},Z++)g.method$jscomp$33=E[Z],h[g.method$jscomp$33]=function(M){return function(){return this.node[M.method$jscomp$33].apply(this.node,arguments)}}(g)};
sVa=function(h,E){for(var g={},Z=0;Z<E.length;g={name$jscomp$448:void 0},Z++)g.name$jscomp$448=E[Z],Object.defineProperty(h,g.name$jscomp$448,{get:function(M){return function(){return this.node[M.name$jscomp$448]}}(g),
configurable:!0})};
VPq=function(){for(var h=EH.prototype,E=["textContent","innerHTML","className"],g={},Z=0;Z<E.length;g={name$jscomp$449:void 0},Z++)g.name$jscomp$449=E[Z],Object.defineProperty(h,g.name$jscomp$449,{get:function(M){return function(){return this.node[M.name$jscomp$449]}}(g),
set:function(M){return function(W){this.node[M.name$jscomp$449]=W}}(g),
configurable:!0})};
kZx=function(){gA=document.documentElement.getAttribute("dir");gA=document.documentElement.getAttribute("dir");for(var h=0;h<ZN.length;h++){var E=ZN[h];E.__autoDirOptOut||E.setAttribute("dir",gA)}};
Tr4=function(){M_=!0;requestAnimationFrame(function(){M_=!1;ysO(Fjx);setTimeout(function(){for(var h=0,E=Wl.length;h<E;h++)Asq(Wl.shift())})})};
ysO=function(h){for(;h.length;)Asq(h.shift())};
Asq=function(h){var E=h[0],g=h[1];h=h[2];try{g.apply(E,h)}catch(Z){setTimeout(function(){throw Z;})}};
_.bWa=function(h,E,g){M_||Tr4();Fjx.push([h,E,g])};
_.pQ=function(h,E,g){M_||Tr4();Wl.push([h,E,g])};
h7$=function(h,E){E=E===void 0?!1:E;if(!uW$||!QVz||!uW$.handlesDynamicScoping)return null;var g=QVz.ScopingShim;if(!g)return null;var Z=g.scopeForNode(h),M=(0,_.tf)(h).getRootNode(),W=function(z){if((0,_.tf)(z).getRootNode()===M){var c=Array.from(uW$.nativeMethods.querySelectorAll.call(z,"*"));c.push(z);for(z=0;z<c.length;z++){var I=c[z];if((0,_.tf)(I).getRootNode()===M){var B=g.currentScopeForNode(I);B!==Z&&(B!==""&&g.unscopeNode(I,B),g.scopeNode(I,Z))}}}};
W(h);return E?(E=new MutationObserver(function(z){for(var c=0;c<z.length;c++)for(var I=z[c],B=0;B<I.addedNodes.length;B++){var U=I.addedNodes[B];U.nodeType===Node.ELEMENT_NODE&&W(U)}}),E.observe(h,{childList:!0,
subtree:!0}),E):null};
ESx=function(){document.body.removeAttribute("unresolved")};
pFM=function(h){var E=h=h.replace(gS4,"").replace(ZzN,""),g=new MIO;g.start=0;g.end=E.length;for(var Z=g,M=0,W=E.length;M<W;M++)if(E[M]==="{"){Z.rules||(Z.rules=[]);var z=Z,c=z.rules[z.rules.length-1]||null;Z=new MIO;Z.start=M+1;Z.parent=z;Z.previous=c;z.rules.push(Z)}else E[M]==="}"&&(Z.end=M+1,Z=Z.parent||g);return WIV(g,h)};
WIV=function(h,E){var g=E.substring(h.start,h.end-1);h.parsedCssText=h.cssText=g.trim();h.parent&&(g=E.substring(h.previous?h.previous.end:h.parent.start,h.start-1),g=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(g),g=g.replace(GbM," "),g=g.substring(g.lastIndexOf(";")+1),g=h.parsedSelector=h.selector=g.trim(),h.atRule=g.indexOf("@")===0,h.atRule?g.indexOf("@media")===0?h.type=4:g.match(z7q)&&(h.type=7,h.keyframesName=h.selector.split(GbM).pop()):g.indexOf("--")===
0?h.type=1E3:h.type=1);if(g=h.rules)for(var Z=0,M=g.length,W=void 0;Z<M&&(W=g[Z]);Z++)WIV(W,E);return h};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(h){return h.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var E=arguments[1],g=6-E.length;g--;)E="0"+E;return"\\"+E})};
aE4=function(h,E,g){g=g===void 0?"":g;var Z="";if(h.cssText||h.rules){var M=h.rules;if(M&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(M))for(var W=0,z=M.length,c=void 0;W<z&&(c=M[W]);W++)Z=aE4(c,E,Z);else E?E=h.cssText:(E=h.cssText,E=E.replace(coa,"").replace(izZ,""),E=E.replace(oSz,"").replace(IEV,"")),(Z=E.trim())&&(Z="  "+Z+"\n")}Z&&(h.selector&&(g+=h.selector+" {\n"),g+=Z,h.selector&&(g+="}\n\n"));return g};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(h){h=h[0];return!!h&&!!h.selector&&h.selector.indexOf("--")===0};
PYq=function(h){if(h=R7q[h])h._applyShimCurrentVersion=h._applyShimCurrentVersion||0,h._applyShimValidatingVersion=h._applyShimValidatingVersion||0,h._applyShimNextVersion=(h._applyShimNextVersion||0)+1};
Bk4=function(h){return h._applyShimCurrentVersion===h._applyShimNextVersion};
LIW=function(h){h._applyShimValidatingVersion=h._applyShimNextVersion;h._validating||(h._validating=!0,UGW.then(function(){h._applyShimCurrentVersion=h._applyShimNextVersion;h._validating=!1}))};
dGd=function(h){if(!h)return"";typeof h==="string"&&(h=pFM(h));return aE4(h,jOM)};
CYM=function(h){!h.__cssRules&&h.textContent&&(h.__cssRules=pFM(h.textContent));return h.__cssRules||null};
e7u=function(h,E,g,Z){if(h){var M=!1,W=h.type;if(Z&&W===4){var z=h.selector.match(Joz);z&&(window.matchMedia(z[1]).matches||(M=!0))}W===1?E(h):g&&W===7?g(h):W===1E3&&(M=!0);if((h=h.rules)&&!M)for(M=0,W=h.length,z=void 0;M<W&&(z=h[M]);M++)e7u(z,E,g,Z)}};
qpW=function(h,E){var g=h.indexOf("var(");if(g===-1)return E(h,"","","");a:{var Z=0;var M=g+3;for(var W=h.length;M<W;M++)if(h[M]==="(")Z++;else if(h[M]===")"&&--Z===0)break a;M=-1}Z=h.substring(g+4,M);g=h.substring(0,g);h=qpW(h.substring(M+1),E);W=Z.indexOf(",");if(W===-1)return E(g,Z.trim(),"",h);M=Z.substring(0,W).trim();Z=Z.substring(W+1).trim();return E(g,M,Z,h)};
fEZ=function(h){if(Ge!==void 0)return Ge;if(h.__cssBuild===void 0){var E=h.getAttribute("css-build");if(E)h.__cssBuild=E;else{a:{E=h.localName==="template"?h.content.firstChild:h.firstChild;if(E instanceof Comment&&(E=E.textContent.trim().split(":"),E[0]==="css-build")){E=E[1];break a}E=""}if(E!==""){var g=h.localName==="template"?h.content.firstChild:h.firstChild;g.parentNode.removeChild(g)}h.__cssBuild=E}}return h.__cssBuild||""};
tId=function(h,E,g,Z){for(var M=E._noAccessors,W=Object.getOwnPropertyNames(E),z=0;z<W.length;z++){var c=W[z];if(!(c in Z))if(M)h[c]=E[c];else{var I=Object.getOwnPropertyDescriptor(E,c);I&&(I.configurable=!0,Object.defineProperty(h,c,I))}}for(var B in NkZ)E[B]&&(g[B]=g[B]||[],g[B].push(E[B]))};
Spx=function(h,E,g){E=E||[];for(var Z=h.length-1;Z>=0;Z--){var M=h[Z];M?Array.isArray(M)?Spx(M,E):E.indexOf(M)<0&&(!g||g.indexOf(M)<0)&&E.unshift(M):console.warn("behavior is null, check for missing or 404 import")}return E};
xGx=function(h,E){for(var g in E){var Z=h[g],M=E[g];h[g]=!("value"in M)&&Z&&"value"in Z?Object.assign({value:Z.value},M):M}};
lEu=function(h,E,g){var Z={},M=function(){return E.apply(this,arguments)||this};
_.f(M,E);M._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(z)for(var I=0,B;I<z.length;I++)B=z[I],B.properties&&this.createProperties(B.properties),B.observers&&this.createObservers(B.observers,B.properties);h.properties&&this.createProperties(h.properties);h.observers&&this.createObservers(h.observers,h.properties);this._prepareTemplate()}else E._finalizeClass.call(this)};
M.prototype.created=function(){E.prototype.created.call(this);var I=Z.created;if(I)for(var B=0;B<I.length;B++)I[B].call(this)};
M.prototype._registered=function(){var I=M.prototype;if(!I.hasOwnProperty("__hasRegisterFinished")){I.__hasRegisterFinished=!0;E.prototype._registered.call(this);F9&&c(I);I=Object.getPrototypeOf(this);var B=Z.beforeRegister;if(B)for(var U=0;U<B.length;U++)B[U].call(I);if(B=Z.registered)for(U=0;U<B.length;U++)B[U].call(I)}};
M.prototype._applyListeners=function(){E.prototype._applyListeners.call(this);var I=Z.listeners;if(I)for(var B=0;B<I.length;B++){var U=I[B];if(U)for(var L in U)this._addMethodEventListenerToNode(this,L,U[L])}};
M.prototype._ensureAttributes=function(){var I=Z.hostAttributes;if(I)for(var B=I.length-1;B>=0;B--){var U=I[B],L;for(L in U)this._ensureAttribute(L,U[L])}E.prototype._ensureAttributes.call(this)};
M.prototype.ready=function(){E.prototype.ready.call(this);var I=Z.ready;if(I)for(var B=0;B<I.length;B++)I[B].call(this)};
M.prototype.attached=function(){E.prototype.attached.call(this);var I=Z.attached;if(I)for(var B=0;B<I.length;B++)I[B].call(this)};
M.prototype.detached=function(){E.prototype.detached.call(this);var I=Z.detached;if(I)for(var B=0;B<I.length;B++)I[B].call(this)};
M.prototype.attributeChanged=function(I,B,U){E.prototype.attributeChanged.call(this);var L=Z.attributeChanged;if(L)for(var d=0;d<L.length;d++)L[d].call(this,I,B,U)};
_.ze.Object.defineProperties(M,{properties:{configurable:!0,enumerable:!0,get:function(){var I={};if(z)for(var B=0;B<z.length;B++)xGx(I,z[B].properties);xGx(I,h.properties);return I}},
observers:{configurable:!0,enumerable:!0,get:function(){var I=[];if(z)for(var B=0,U;B<z.length;B++)U=z[B],U.observers&&(I=I.concat(U.observers));h.observers&&(I=I.concat(h.observers));return I}}});
if(g){Array.isArray(g)||(g=[g]);var W=E.prototype.behaviors;var z=Spx(g,null,W);M.prototype.behaviors=W?W.concat(g):z}var c=function(I){if(z)for(var B=z,U=0;U<B.length;U++)tId(I,B[U],Z,wFa);tId(I,h,Z,DGZ)};
F9||c(M.prototype);M.generatedFrom=h;return M};
HzM=function(h){var E=typeof h!=="string"?h:{is:h,notifyObserversOnUndefined:!0};E.fastInit===void 0&&(E.fastInit=!0);return function(g){if(!E.disableInheritanceCheck&&Object.getPrototypeOf(g.prototype).constructor!==_.a5)throw Error("Td");var Z=g.prototype;Z.is=E.is;Xgz(Z,"created",function(){this.hostElement=this;this.polymerController=this});
ro$(Z,g,E.fastInit);E.notifyObserversOnUndefined&&(Z._overrideLegacyUndefined=!0);if(mGa)for(var M=_.G(Object.getOwnPropertyNames(Z)),W=M.next();!W.done;W=M.next()){W=W.value;var z=Object.getOwnPropertyDescriptor(Z,W);z.enumerable===!1&&(z.enumerable=!0,Object.defineProperty(Z,W,z))}if("template"in g)var c=function(){return g.template};
else E.template!==void 0&&(c=E.template);if(c!==void 0){var I;Object.defineProperty(Z,"_template",{get:function(){I===void 0&&(I=c());return I},
set:function(B){I=B},
configurable:!0,enumerable:!0})}Polymer(Z);g[vSd]=Z}};
$Gz=function(h){h=h===void 0?{}:h;h.fastInit===void 0&&(h.fastInit=!0);return function(E){if(!h.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==cl)throw Error("Ud");ro$(E.prototype,E,h.fastInit)}};
ro$=function(h,E,g){g=g===void 0?!1:g;KIz(E);g?Xgz(h,"created",function(){this.disableEnforceFastDefaultValuesCheck||OzM(E,this)}):Xgz(h,"ready",function(){for(var Z={},M=_.G(Yaq(this.behaviors)),W=M.next();!W.done;W=M.next())W=W.value,W.properties&&Object.assign(Z,nS$(this,W.properties));
Object.assign(Z,nS$(this,this.properties));OzM(E,this);M=_.G(Object.keys(Z));for(W=M.next();!W.done;W=M.next())W=W.value,this[W]=Z[W]})};
OzM=function(h,E){if(mGa){h=new h;for(var g=_.G(Object.getOwnPropertyNames(h)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,E[Z]=h[Z];for(g=E;g&&g!==Object.prototype;g=Object.getPrototypeOf(g)){Z=_.G(Object.getOwnPropertyNames(g));for(var M=Z.next();!M.done;M=Z.next())M=M.value,h.hasOwnProperty(M)||Object.defineProperty(h,M,XFd(E,M))}}else h.apply(E)};
XFd=function(h,E){return{get:function(){var g=h[E];return g instanceof Function?g.bind(h):g},
set:function(g){h[E]=g}}};
nS$=function(h,E){if(!E)return{};for(var g={},Z=_.G(Object.keys(E)),M=Z.next();!M.done;M=Z.next())if(M=M.value,!E[M].readOnly){var W=h[M];W!==void 0&&(g[M]=W)}return g};
KIz=function(h){var E=new h;h=h.prototype.properties||{};for(var g=_.G(Object.keys(h)),Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,E.hasOwnProperty(Z)){var M=h[Z];typeof M==="function"&&(h[Z]=M={type:M});E[Z]!=null&&M.type===Object&&(M.type=Yp4(E[Z].constructor))}};
Yp4=function(h){for(var E=_.G(sOV),g=E.next();!g.done;g=E.next())if(g=g.value,h===g)return g;return Object};
VIx=function(h){return function(E,g){E.behaviors=E.behaviors||[];E.behaviors.push(h||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",E,g).prototype:void 0));Object.defineProperty(E,g,{get:function(){return this},
enumerable:!0,configurable:!0})}};
kbd=function(h){h=h===void 0?{}:h;return function(E,g){E.properties=E.properties||{};h.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?h.type=Yp4(Reflect.getMetadata("design:type",E,g)):h.type=String);var Z=h,M=E.properties[g];E.properties[g]=M?Object.assign({},M,Z):Z}};
yod=function(h){return function(E,g){E.listeners=E.listeners||{};E.listeners[h]=g}};
FIz=function(){var h=_.VF.apply(0,arguments);if(h.length===0)throw Error("Vd");return function(E,g){E.observers=E.observers||[];E.observers.push(g+"("+h.join(",")+")")}};
Aod=function(){var h=_.VF.apply(0,arguments);return function(E,g,Z){var M=Object.getOwnPropertyDescriptor(E,g).get,W="__compute__"+g;Object.defineProperty(E,W,{value:M,enumerable:!0});E.properties=E.properties||{};M=E.properties[g];M||(M={},E.properties[g]=M);M.computed=W+"("+h.join(",")+")";Z.get=void 0}};
_.iC=function(h,E,g){_.wO.call(this);this.JSC$11317_id_=null;this.usingListeners_=!1;this.JSC$11317_listener_=h;this.handler_=g;this.JSC$11317_win_=E||window;this.callback_=(0,_.DJ)(this.JSC$11319_doAction_,this)};
o5=function(h){this.range_=h};
I5=function(h){this.range_=h};
Bl=function(h,E,g){_.wO.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=h;this.scrollTimer_=new _.R5(50);this.JSC$11396_eventHandler_=new _.Pl(this);this.scrollDelta_=new _.nt;this.containerIsActuallyContent_=h.tagName==="BODY"||h.tagName==="HTML";this.containerBounds_=Tk4(h);this.containerIsActuallyContent_&&(h=_.S8(),this.containerBounds_.height=h.height,this.containerBounds_.width=h.width);this.margin_=E||0;if(E){if(E=this.containerBounds_.clone(),h=this.margin_){var Z=
Math.min(h,E.height*.25);E.top+=Z;E.height-=2*Z;h=Math.min(h,E.width*.25);E.left+=h;E.width-=2*h}}else E=this.containerBounds_;this.scrollBounds_=E;g||this.JSC$11396_eventHandler_.listen(_.Yp(this.containerNode_),"mousemove",this.JSC$11398_onMouseMove);this.JSC$11396_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11398_onTick_)};
_.UH=function(h){this.mechanism=h};
LQ=function(h,E){this.JSC$11494_key_=h;this.JSC$11494_value_=E};
uV$=function(h){if(h>=55296&&h<=57343||h>1114111)return"\ufffd";h in bzd&&(h=bzd[h]);var E="";h>65535&&(h-=65536,E+=String.fromCharCode(h>>>10&1023|55296),h=56320|h&1023);return E+=String.fromCharCode(h)};
QOO=function(h,E){return h<E?1:-1};
EDx=function(){return function(h){return h.charAt(1)==="#"?h.charAt(2)==="X"||h.charAt(2)==="x"?uV$(parseInt(h.substr(3),16)):uV$(parseInt(h.substr(2),10)):hPx[h.slice(1,-1)]}};
MJN=function(h){return h.slice(1,h.length-1).trim().replace(gDO,function(E){return ZAz[E]||" "})};
jN=function(h){return h===32||h===9};
dA=function(h,E){return E<h.length?h.charCodeAt(E):-1};
WsZ=function(h){for(;h;){if(h._lastLineBlank)return!0;var E=h.type;if(E==="list"||E==="item")h=h._lastChild;else break}return!1};
CQ=function(h){if(pQx.test(h)){var E=1,g=0,Z=0;for(h[g]=="|"&&g++;g<h.length;){switch(h[g]){case "|":Z=1;break;case " ":break;case "\t":break;default:Z&&(Z=0,E++)}g++}return GcW.test(h)?-E:E}return 0};
zPq=function(h){return h=="table"||h=="row"||h=="cell"};
cO4=function(){return new JQ("document",[[1,1],[0,0]])};
iA4=function(){};
eN=function(){var h={safe:!1};h=h||{};h.softbreak=h.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=h};
B6z=function(h,E){var g="";if(h)if(h=h.toLowerCase(),h===" "||oDu.test(h))g="space";else if(IDz.test(h))g="esc";else if(h.length==1){if(!E||RPM.test(h))g=h}else g=P0d.test(h)?h.replace("arrow",""):h=="multiply"?"*":h;return g};
dg4=function(h,E){var g=h.hasModifiers;if(E.key)g=B6z(E.key,g);else if(E.detail&&E.detail.key)g=B6z(E.detail.key,g);else{g=E.keyIdentifier;var Z="";g&&(g in Ug$?Z=Ug$[g]:Lsz.test(g)?(g=parseInt(g.replace("U+","0x"),16),Z=String.fromCharCode(g).toLowerCase()):Z=g.toLowerCase());(g=Z)||(g=E.keyCode,Z="",Number(g)&&(g>=65&&g<=90?Z=String.fromCharCode(32+g):g>=112&&g<=123?Z="f"+(g-112+1):g>=48&&g<=57?Z=String(g-48):g>=96&&g<=105?Z=String(g-96):Z=jjO[g]),g=Z);g=g||""}return g===h.key&&(!h.hasModifiers||
!!E.shiftKey===!!h.shiftKey&&!!E.ctrlKey===!!h.ctrlKey&&!!E.altKey===!!h.altKey&&!!E.metaKey===!!h.metaKey)};
JO4=function(h){return h.length===1?{combo:h,key:h,event:"keydown"}:h.split("+").reduce(function(E,g){var Z=g.split(":");g=Z[0];Z=Z[1];g in C0O?(E[C0O[g]]=!0,E.hasModifiers=!0):(E.key=g,E.event=Z||"keydown");return E},{combo:h.split(":").shift()})};
ePN=function(h){return h.trim().split(" ").map(function(E){return JO4(E)})};
qjz=function(h,E){if(h&&h.fn){var g=h.fn;h.fn=function(){try{g.apply(this,arguments)}catch(Z){if(Z instanceof q_)console.warn("Argument '"+Z.arg+"'"+(E?" for method '"+E+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw Z;}}}return h};
fD4=function(){var h=_.VF.apply(0,arguments);return h.length===0?function(E){return E}:h.length===1?h[0]:h.reduce(function(E,g){return function(){return E(g.apply(null,_.$E(_.VF.apply(0,arguments))))}})};
N64=function(){var h=_.VF.apply(0,arguments);return function(E){return function(g,Z){g=E(g,Z);var M=function(){throw Error("Fe");},W={getState:g.getState,
dispatch:function(z){return M.apply(null,[z].concat(_.$E(_.VF.apply(1,arguments))))}};
Z=h.map(function(z){return z(W)});
M=fD4.apply(null,_.$E(Z))(g.dispatch);return Object.assign({},g,{dispatch:M})}}};
xga=function(h){Object.keys(h).forEach(function(E){var g=h[E];if(typeof g(void 0,{type:tJZ})==="undefined")throw Error("Ge`"+E);if(typeof g(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Sjq()})==="undefined")throw Error("He`"+E+"`"+tJZ);})};
fQ=function(h){for(var E=Object.keys(h),g={},Z=0;Z<E.length;Z++){var M=E[Z];typeof h[M]==="function"&&(g[M]=h[M])}var W=Object.keys(g);try{xga(g)}catch(c){var z=c}return function(c,I){c=c===void 0?{}:c;if(z)throw z;for(var B=!1,U={},L=0;L<W.length;L++){var d=W[L],C=c[d],q=(0,g[d])(C,I);if(typeof q==="undefined")throw c=I&&I.type,Error("Ie`"+(c?'"'+String(c)+'"':"(unknown type)")+"`"+d);U[d]=q;B=B||q!==C}return(B=B||W.length!==Object.keys(c).length)?U:c}};
wQ$=function(h,E,g){function Z(){if(U)throw Error("Je");return c}
function M(C){if(typeof C!=="function")throw Error("Ke`"+typeof C);if(U)throw Error("Le");var q=!0;B===I&&(B=I.slice());B.push(C);return function(){if(q){if(U)throw Error("Me");q=!1;B===I&&(B=I.slice());var w=B.indexOf(C);B.splice(w,1);I=null}}}
function W(C){if(typeof C!=="object"||C===null)var q=!1;else{for(q=C;Object.getPrototypeOf(q)!==null;)q=Object.getPrototypeOf(q);q=Object.getPrototypeOf(C)===q}if(!q)throw Error("Ne`"+typeof C);if(typeof C.type==="undefined")throw Error("Oe");if(U)throw Error("Pe");try{U=!0,c=z(c,C)}finally{U=!1}q=I=B;for(var w=0;w<q.length;w++)(0,q[w])();return C}
if(typeof E==="function"&&typeof g==="function"||typeof g==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof E==="function"&&typeof g==="undefined"&&(g=E,E=void 0);if(typeof g!=="undefined"){if(typeof g!=="function")throw Error("Re`"+typeof g);return g(wQ$)(h,E)}if(typeof h!=="function")throw Error("Se`"+typeof h);var z=h,c=E,I=[],B=I,U=!1;W({type:tJZ});var L={},d=(L.dispatch=W,L.subscribe=M,L.getState=Z,L.replaceReducer=function(C){if(typeof C!=="function")throw Error("Te`"+
typeof C);z=C;W({type:DgW});return d},L[lDO]=function(){var C={};
return C.subscribe=function(q){function w(){q.next&&q.next(Z())}
if(typeof q!=="object"||q===null)throw new TypeError("Ue`"+typeof q);w();return{unsubscribe:M(w)}},C[lDO]=function(){return this},C},L);
return d};
rOz=function(h){function E(){M&&(M=!1,h());W&&Z()}
function g(){requestAnimationFrame(E)}
function Z(){var c=Date.now();if(M){if(c-z<2)return;W=!0}else M=!0,W=!1,setTimeout(g,20);z=c}
var M=!1,W=!1,z=0;return Z};
N_=function(h){return typeof h==="number"?h:parseFloat(h)||0};
mgz=function(h){return _.VF.apply(1,arguments).reduce(function(E,g){return E+N_(h["border-"+g+"-width"])},0)};
_.N=function(h,E){E=ux(AL(E));h.innerHTML=E};
$gW=function(h){var E=vDz;E||(E=HAd(),E=vDz=_.Kt.transpose(E));E=E[h];return typeof E==="string"?E:_.tQ(h)};
Ksu=function(h){h=String(h).toLowerCase();var E=HAd()[h];return typeof E==="string"?E:_.SN(h)};
OAx=function(h){h=h.toLowerCase();h=HAd()[h];return typeof h==="string"?h:null};
HAd=function(){if(!nDx){for(var h=Object.assign({},XQO),E=_.G(Yja),g=E.next();!g.done;g=E.next())g=g.value,h[g.toLowerCase()]=g;nDx=h}return nDx};
kcz=function(h,E){var g=window.customElements;return g&&g.get(h)||sjZ[h]===!0?2:E.name==="HTMLUnknownElement"?1:E.name==="HTMLElement"&&VJN.test(h)?3:0};
AOV=function(h,E){switch(E){case "innerHTML":return yOa(h)===1?2:null;case "textContent":return h=yOa(h),h===1||h===6?1:null;default:var g,Z;return(Z=(g=Fsz[h.localName])==null?void 0:g[E])!=null?Z:null}};
yOa=function(h){var E=h.localName,g=kcz(E,h.constructor);switch(g){case 0:case 1:return T6z(E,h);case 3:case 2:return 1;default:_.Vk(g,"got an unknown element classification")}};
T6z=function(h,E){var g=Object.hasOwnProperty.call(bAW,h)?bAW[h]:null;return g!==null?g:Object.hasOwnProperty.call(uYO,h)&&E instanceof SVGElement?uYO[h]:null};
Qja=function(h,E){return E};
Esa=function(h){return(h=h.split(hpZ,2))?{url:h[0],metadata:h[1]}:null};
ZrZ=function(h){var E=String(h.url).replace(gsZ,encodeURIComponent);if(h=h.metadata){gsZ.lastIndex=0;if(gsZ.test(h))return null;E+=" "+h}return E};
G7q=function(h){function E(B){var U=B.localName;if(!B.getAttribute("is")&&kcz(U,B.constructor)===2){var L;return(L=I)!=null?L:I=document.createElement("polyresinuncustomized")}(B=c[U])||(B=c[U]=document.createElement(U));return B}
var g=h.reportHandler||void 0,Z=h.safeTypesBridge||M_4,M=/^$/;if(h=h.allowedIdentifierPrefixes){h=_.G(h);for(var W=h.next();!W.done;W=h.next())M=new RegExp(M.source+"|^"+_.W9a(W.value))}g&&g(!1,"initResin",null);var z=p54(M,Z,g),c={},I=null;return function(B,U,L){var d=B.nodeType;if(d!==Node.ELEMENT_NODE){if(d===Node.TEXT_NODE){U=B.parentElement;L=!U;if(U&&U.nodeType===Node.ELEMENT_NODE){d=U.localName;var C=kcz(d,U.constructor);switch(C){case 0:case 1:U=T6z(d,U);L=U===1||U===6;break;case 3:case 2:L=
!0;break;default:_.Vk(C,"got an unknown element classification")}}if(L)return function(v){return""+Z(v,"STRING",v)}}return function(v){if(!v&&v!==document.all)return v;
g&&g(!0,"Failed to sanitize "+(B.parentElement&&B.parentElement.nodeName)+" #text node to value "+v,B.parentElement);return xN}}var q=B.localName;
d=E(B);var w=null;switch(L){case "attribute":if(Ksu(U)in d)break;return function(v){return v};
case "property":if(U in d){w=AOV(d,U);break}if((C=OAx(U))&&C in d)break;return function(v){return v};
default:_.Vk(L,"got an unknown resin type, expected either 'property' or 'attribute'")}var r=L==="attribute"?U.toLowerCase():$gW(U);w||(w=igd(q,r,function(v){var H=B.getAttribute(v);return!H||/[\[\{]/.test(v)?null:H}));
return function(v){var H=wA,u=null;if(!v&&v!==document.all)return v;if(w!=null){var k=z[w],y=k.safeType;u=k.safeReplacement;y&&(H=Z(v,y,wA));H===wA&&(k.filterString?(H=String(Z(v,"STRING",v)),H=k.filterString(q,r,H)):k.filterRaw&&(H=k.filterRaw(q,r,v,B)),H===u&&(H=wA))}H===wA&&(H=u||xN,g&&g(!0,"Failed to sanitize attribute of <"+q+">: <"+q+" "+r+'="'+v+'">',B));return H}}};
p54=function(h,E,g){return[,{filterRaw:function(Z,M,W){return W},
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:zpM,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:zpM,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:xN,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:aYO,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(Z,M,W){W=
String(W).toLowerCase();return RIV(Z,M,W)?W:xN},
safeReplacement:xN,safeType:void 0},,{filterRaw:void 0,filterString:function(Z,M,W){return h.test(W)?W:xN},
safeReplacement:xN,safeType:"CONSTANT"},{filterRaw:function(Z,M,W,z){if(typeof W==="string")var c=(c=W.match(c2q))?c.map(Esa).filter(Boolean):[];else if(Array.isArray(W))c=W;else return zpM;var I=c;c=[];var B=[],U={};if(Array.isArray(I))for(var L=0,d=I.length;L<d;++L){var C=I[L],q=C&&C.url;if(q){var w=E(q,"URL",U);if(w){var r=w!==U;(r?c:B).push({url:r?w:q,metadata:C.metadata})}}}else B.push(I);I=B.length?JSON.stringify(B):null;B=wA;if(c.length){if(!Array.isArray(c))throw Error();B=c.map(ZrZ).filter(Boolean).join(" , ")||
wA}I&&g&&g(!0,"Failed to sanitize attribute value of <"+Z+">: <"+Z+" "+M+'="'+W+'">: '+I,z);return B===wA?zpM:B},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
irq=function(h){var E=G7q(h);return function(g,Z,M,W){return W||W===document.all?E(g,Z,M)(W):W}};
DN=function(h,E){function g(){function M(c,I,B){for(I=Reflect.getMetadata("parameters",c)||[];I.length<=B;)I.push(null);I[B]=I[B]||[];I[B].push(z);Reflect.defineMetadata(I,c);return c}
var W=_.VF.apply(0,arguments);if(this instanceof g)return Z.apply(this,W),this;var z=new (Function.prototype.bind.apply(g,[null].concat(_.$E(W))));M.annotation=z;return M}
var Z=osM(E);g.prototype.toString=function(){return"@"+h};
return g.annotationCls=g};
osM=function(h){return function(){var E=_.VF.apply(0,arguments),g=this;h.forEach(function(Z,M){M=E[M];if(Array.isArray(Z))g[Z[0]]=M&&M!==void 0?M:Z[1];else for(var W in Z)g[W]=M&&M[W]!==void 0?M[W]:Z[W]})}};
IYM=function(h){return h!==void 0&&h!==null};
lC=function(h){if(typeof h==="string")return h;if(h===void 0||h===null)return""+h;if(h.overriddenName)return h.overriddenName;if(h.name)return h.name;h=h.toString();var E=h.indexOf("\n");return E===-1?h:h.substring(0,E)};
Rpq=function(h){h.__forward_ref__=Rpq;h.toString=function(){return lC(this())};
return h};
rA=function(h){return typeof h==="function"&&h.hasOwnProperty("__forward_ref__")&&h.__forward_ref__===Rpq?h():h};
PGO=function(h){return h?h.map(function(E){return new (Function.prototype.bind.apply(E.type.annotationCls,[null].concat(_.$E(E.args?E.args:[]))))}):[]};
BGV=function(h){for(var E=[],g=0;g<h.length;++g){if(E.indexOf(h[g])>-1){E.push(h[g]);break}E.push(h[g])}return E};
U$q=function(h){return h.length>1?" ("+BGV(h.slice().reverse()).map(function(E){return lC(E.token)}).join(" -> ")+")":""};
jb$=function(h,E,g,Z){if(Z){var M=Error("af``"+(Z instanceof Error?Z.message:Z));M.ngOriginalError=Z}else M=Error();M.addKey=L9O;M.keys=[E];M.injectors=[h];M.constructResolvingMessage=g;M.message=M.constructResolvingMessage();M.ngOriginalError=Z;return M};
L9O=function(h,E){this.injectors.push(h);this.keys.push(E);this.message=this.constructResolvingMessage()};
d$Z=function(h,E){return jb$(h,E,function(){return"No provider for "+lC(this.keys[0].token)+"!"+U$q(this.keys)})};
CGu=function(h,E){return jb$(h,E,function(){return"Cannot instantiate cyclic dependency!"+U$q(this.keys)})};
J24=function(h,E,g){return jb$(h,g,function(){var Z=lC(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+Z+"!"+U$q(this.keys)+"."},E)};
epa=function(h,E){for(var g=[],Z=0,M=E.length;Z<M;Z++){var W=E[Z];W&&W.length!=0?g.push(W.map(lC).join(" ")):g.push("?")}return Error("ef`"+lC(h)+"`"+g.join(", ")+"`"+lC(h))};
w5Z=function(h){var E=void 0,g=void 0;if(h&&h.useClass!==void 0){E=h.useClass;var Z=rA(h.useClass);var M=qfZ.factory(Z);Z=fYz(Z)}else h&&h.useExisting!==void 0?(M=function(W){return W},Z=[NG4(mr.get(rA(h.useExisting)))]):h&&h.useFactory!==void 0?(M=h.useFactory,Z=t_z(h.useFactory,h.deps)):(g=h.useValue,M=function(){return h.useValue},Z=Sfx);
return new x$a(M,Z,E,g)};
lYz=function(h){return new D$$(mr.get(rA(h.provide)),[w5Z(h)],h.multi)};
m$Z=function(h){h=r2O(h,[]).map(lYz);for(var E=new Map,g=0;g<h.length;g++){var Z=h[g],M=E.get(Z.key.id);if(M){if(Z.multiProvider!==M.multiProvider)throw Error("gf`"+M+"`"+Z);if(Z.multiProvider)for(var W=0;W<Z.resolvedFactories.length;W++)M.resolvedFactories.push(Z.resolvedFactories[W]);else E.set(Z.key.id,Z)}else M=void 0,Z.multiProvider?M=new D$$(Z.key,Z.resolvedFactories.slice(),Z.multiProvider):M=Z,E.set(Z.key.id,M)}return Array.from(E.values())};
r2O=function(h,E){h.forEach(function(g){if(g instanceof vsx)E.push({provide:g,useClass:g});else if(g&&typeof g=="object"&&g.provide!==void 0)E.push(g);else if(g instanceof Array)r2O(g,E);else throw Error("df`"+g);});
return E};
t_z=function(h,E){if(E){var g=E.map(function(Z){return[Z]});
return E.map(function(Z){return Hrx(h,Z,g)})}return fYz(h)};
fYz=function(h){var E=qfZ.parameters(h);if(!E)return[];if(E.some(function(g){return g==null}))throw epa(h,E);
return E.map(function(g){return Hrx(h,g,E)})};
Hrx=function(h,E,g){var Z=null,M=!1;if(!Array.isArray(E))return E instanceof $$$?K9$(E.token,M,null):K9$(E,M,null);for(var W=null,z=0;z<E.length;++z){var c=E[z];if(c instanceof vsx)Z=c;else if(c instanceof $$$)Z=c.token;else if(c instanceof OrO)M=!0;else if(c instanceof nsu||c instanceof X5z)W=c}Z=rA(Z);if(Z!=null)return K9$(Z,M,W);throw epa(h,g);};
K9$=function(h,E,g){return new YfM(mr.get(rA(h)),E,g)};
sb$=function(h,E){for(var g=Array(h.providers.length),Z=0;Z<h.providers.length;++Z){var M=Z;if(Z<0||Z>=h.providers.length)throw Error("ff`"+Z);g[M]=E(h.providers[Z])}return g};
V_$=function(h){return typeof h==="function"&&qfZ.parameters(h).every(function(E){return!!E})};
F9q=function(h){var E=k7$;y2u.get(h)||y2u.set(h,new E);return y2u.get(h)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(h)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(h)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h,E){var g,Z;if(h.contains(E))return!0;h=_.vl(h).querySelectorAll("content,slot");for(g=0;g<h.length;++g){var M=_.vl(h[g]).getDistributedNodes();for(Z=0;Z<M.length;++Z)if(M[Z].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M[Z],E))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h){h.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(h)&&h.preventDefault();h.targetTouches&&(h=h.targetTouches[0],A2$=h.pageX,TGz=h.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 h=0,E=Hl.length;h<E;h++)document.addEventListener(Hl[h],_._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 h=0,E=Hl.length;h<E;h++)document.removeEventListener(Hl[h],_._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(h){var E=_.vl(h).rootTarget;h.type!=="touchmove"&&brV!==E&&(brV=E,uE4=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.vl(h).path));if(!uE4.length)return!0;if(h.type==="touchstart")return!1;h=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(h);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(uE4,h.deltaX,h.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h){for(var E=[],g=h.indexOf(Qb4),Z=0;Z<=g;Z++)if(h[Z].nodeType===Node.ELEMENT_NODE){var M=h[Z],W=M.style;W.overflow!=="scroll"&&W.overflow!=="auto"&&(W=window.getComputedStyle(M));W.overflow!=="scroll"&&W.overflow!=="auto"||E.push(M)}return E};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h,E,g){if(E||g)for(var Z=Math.abs(g)>=Math.abs(E),M=0;M<h.length;M++){var W=h[M];if(Z?g<0?W.scrollTop>0:W.scrollTop<W.scrollHeight-W.clientHeight:E<0?W.scrollLeft>0:W.scrollLeft<W.scrollWidth-W.clientWidth)return W}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(h){var E={deltaX:h.deltaX,deltaY:h.deltaY};"deltaX"in h||("wheelDeltaX"in h&&"wheelDeltaY"in h?(E.deltaX=-h.wheelDeltaX,E.deltaY=-h.wheelDeltaY):"wheelDelta"in h?(E.deltaX=0,E.deltaY=-h.wheelDelta):"axis"in h?(E.deltaX=h.axis===1?h.detail:0,E.deltaY=h.axis===2?h.detail:0):h.targetTouches&&(h=h.targetTouches[0],E.deltaX=A2$-h.pageX,E.deltaY=TGz-h.pageY));return E};
heW=function(h){this.element=h;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
gFz=function(h){this.element=h;this.color=window.getComputedStyle(h).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");_.vl(this.waveContainer).appendChild(this.wave);EFu(this)};
$N=function(h,E){for(var g in h)if(g.toLowerCase()===E.toLowerCase())return h[g]};
Zbz=function(h,E){for(var g in h)if(g.toLowerCase()===E.toLowerCase()){delete h[g];break}};
Woz=function(h){h=_.Kt.clone(h);for(var E=0;E<Mbq.length;++E){var g=Mbq[E],Z=$N(h,g);Z&&(h["X-Goog-Upload-Header-"+g]=Z,Zbz(h,g))}return h};
ps$=function(h){h=_.Kt.clone(h);Zbz(h,"X-Goog-Upload-Status")};
zeO=function(h){return G1Z.some(function(E){return E.test(h)})};
oFa=function(h,E){var g;var Z=(g=h.formContent)==null?void 0:g.locale;g=Z==null?void 0:Z.split("-")[0];Z=Z&&a4x.includes(Z)?Z:g&&a4x.includes(g)?g:void 0;Z=(Z!=null?Z:"en").replaceAll("-","_").toLowerCase();var M;h=((M=h.initializationData)==null?0:M.useNightlyRelease)?"nightly":"live";var W;return(E==null?0:(W=E.getEnableAlohaBinarySplit)==null?0:W.call(E))?_.BR(cBN,h):_.BR(ibq,h,Z)};
PQ$=function(h,E,g,Z){if(I4Z&&Rez===E)return I4Z;Rez=E;var M=oFa(h,Z);return I4Z=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(W,z){var c=_.q3("SCRIPT");_.pX(c,M);c.onload=function(){E.feedbackV2GlobalObject?W(E.feedbackV2GlobalObject):z(Error("kf"))};
c.onerror=function(){z(Error("lf`"+M.toString()))};
g.body.appendChild(c)})};
LoZ=function(h,E,g,Z){if(Bhz&&UlW===E)return Bhz;UlW=E;var M=oFa(h,Z);return Bhz=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(W,z){var c=_.q3("SCRIPT");_.pX(c,M);c.onload=function(){E.feedbackV2GlobalObject?W(E.feedbackV2GlobalObject):z(Error("kf"))};
c.onerror=function(){z(Error("lf`"+M.toString()))};
g.body.appendChild(c)})};
j2a=function(h,E,g,Z,M){M=M===void 0?!0:M;var W,z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:return W=Date.now(),U.yield(PQ$(h,g,Z,E),2);case 2:z=U.yieldResult;if(!(M||((I=h.initializationData)==null?0:I.useNightlyRelease)||((B=h.initializationData)==null?0:B.isLocalServer))){c=z.initializeFeedbackClient(h,W,E);U.jumpTo(3);break}return U.yield(z.initializeFeedbackClientAsync(h,W,E),4);case 4:c=U.yieldResult;case 3:return c.initiateAloha(),U.return(c)}})};
dla=function(h,E,g,Z){var M,W,z;return _.a(function(c){if(c.nextAddress==1)return M=Date.now(),c.yield(LoZ(h,g,Z.document,E),2);if(c.nextAddress!=3)return W=c.yieldResult,c.yield(W.initializeFeedbackClientAsync(h,M,E,Z),3);z=c.yieldResult;z.initiateAloha();return c.return(z)})};
CQW=function(h,E,g){var Z=!0;Z=Z===void 0?!0:Z;var M,W,z,c,I,B,U,L,d,C;return _.a(function(q){M=g||_.MN;if((W=E)==null?0:(c=(z=W).getEnableAlohaBinarySplit)==null?0:c.call(z)){I=M;if(I.isFormOpened)throw B=Error("mf"),B.name="DuplicateFormError",B;I.isFormOpened=!0;h.callbacks=h.callbacks||{};U=h.callbacks.onClose||function(){};
h.callbacks.onClose=function(w){I.isFormOpened=!1;U(w)};
try{return q.return(dla(h,E,I,M))}catch(w){throw I.isFormOpened=!1,w;}}else{L=M;if(L.isFormOpened)throw d=Error("mf"),d.name="DuplicateFormError",d;L.isFormOpened=!0;h.callbacks=h.callbacks||{};C=h.callbacks.onClose||function(){};
h.callbacks.onClose=function(w){L.isFormOpened=!1;C(w)};
try{return q.return(j2a(h,E,L,M.document,Z))}catch(w){throw L.isFormOpened=!1,w;}}_.SK(q)})};
Nhz=function(h,E){return _.a(function(g){return g.return(new Promise(function(Z,M){Number.isInteger(Number(h))&&Number(h)>0?(M=JBd(E!=null?E:"")+"/aloha_form_properties?productId="+h,eeW(M,function(W){W=W.target;var z=null;try{var c=JSON,I=c.stringify;if(W.JSC$9797_xhr_){var B=W.JSC$9797_xhr_.responseText;B.indexOf(")]}'\n")==0&&(B=B.substring(5));var U=(0,_.KQ)(B)}else U=void 0;z=K2q(qR$,I.call(c,U))}catch(L){I=new qR$,U=f4$(),U=_.OH(U,13,!1),U=_.OH(U,14,!0),U=_.OH(U,15,!0),U=_.OH(U,20,!1),z=_.fM(I,
1,U)}Z(z)},"GET","",{},2E3,!0)):M(Error("nf`"+h))}))})};
JBd=function(h){return zeO(h)?h:"https://www.google.com/tools/feedback"};
wsM=function(h){h=h.match(new RegExp(tba,"gi"))||[];h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;a:{var g=_.G(SRd);for(var Z=g.next();!Z.done;Z=g.next())if(Z.value.test(E)){g=!1;break a}g=!0}if(!g)a:{g=_.G(xlV);for(Z=g.next();!Z.done;Z=g.next())if(Z.value.test(E)){g=!0;break a}g=!1}if(g)return!0}return!1};
Dlq=function(h,E){var g={},Z=Object.keys(h);Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,g[M]=E(M,h[M]);return g};
l4x=function(h){switch(h){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"}};
mlN=function(h){if(window.crypto&&window.crypto.getRandomValues)try{var E=Array(h),g=new Uint8Array(h);window.crypto.getRandomValues(g);for(var Z=0;Z<E.length;Z++)E[Z]=g[Z];return E}catch(W){}E=Array(h);for(g=0;g<h;g++){Z=Date.now();for(var M=0;M<Z%23;M++)E[g]=Math.random();E[g]=Math.floor(Math.random()*256)}if(rB$)for(g=1,Z=0;Z<rB$.length;Z++)E[g%h]^=E[(g-1)%h]/4^rB$.charCodeAt(Z),g++;return E};
nQ=function(h){h=mlN(h);for(var E=[],g=0;g<h.length;g++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(h[g]&63));return E.join("")};
vFV=function(){var h=_.MN.ytLoggingDocDocumentNonce_;h||(h=nQ(16),_.Wu("ytLoggingDocDocumentNonce_",h));return h};
$lx=function(h){h&&_.vT("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:HbZ,clientScreenNonce:h})};
Koq=function(h){return _.nF("client-screen-nonce-store",{})[h===void 0?0:h]};
Obz=function(h,E){E=E===void 0?0:E;var g=_.nF("client-screen-nonce-store");g||(g={},_.OW("client-screen-nonce-store",g));g[E]=h};
nFZ=function(h){h=h===void 0?0:h;return h===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+h};
XsN=function(h){return _.nF(nFZ(h===void 0?0:h))};
_.YN=function(h){return(h=XsN(h===void 0?0:h))?new Xa({veType:h,youtubeData:void 0,jspbYoutubeData:void 0}):null};
YR4=function(){var h=_.nF("csn-to-ctt-auth-info");h||(h={},_.OW("csn-to-ctt-auth-info",h));return h};
s24=function(){return Object.values(_.nF("client-screen-nonce-store",{})).filter(function(h){return h!==void 0})};
_.sH=function(h){h=Koq(h===void 0?0:h);if(!h&&!_.Xn("USE_CSN_FALLBACK",!0))return null;h||(h="UNDEFINED_CSN");return h?h:null};
k1M=function(h){for(var E=_.G(Object.values(Vbz)),g=E.next();!g.done;g=E.next())if(_.sH(g.value)===h)return!0;return!1};
yBx=function(h,E,g){var Z=YR4();(g=_.sH(g))&&delete Z[g];E&&(Z[h]=E)};
VE=function(h){return YR4()[h]};
_.kN=function(h,E,g,Z){g=g===void 0?0:g;if(h!==Koq(g)||E!==_.nF(nFZ(g)))if(yBx(h,Z,g),Obz(h,g),_.OW(nFZ(g),E),E=function(){setTimeout(function(){$lx(h)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(E)}catch(M){E()}else E()};
FoO=function(h,E){E=E===void 0?"":E;var g=[],Z;for(Z in h)if(h.hasOwnProperty(Z)){var M=E!==""?E+"."+Z:Z;typeof h[Z]==="object"?g.push.apply(g,_.$E(FoO(h[Z],M))):g.push([M,h[Z]])}g.sort();return g};
_.Fa=function(h){var E=_.VF.apply(1,arguments);if(!yE(h)||E.some(function(Z){return!yE(Z)}))throw Error("of");
E=_.G(E);for(var g=E.next();!g.done;g=E.next())ABu(h,g.value)};
ABu=function(h,E){for(var g in E)if(yE(E[g])){if(g in h&&!yE(h[g]))throw Error("pf");g in h||(h[g]={});ABu(h[g],E[g])}else if(ThM(E[g])){if(g in h&&!ThM(h[g]))throw Error("qf");g in h||(h[g]=[]);bba(h[g],E[g])}else h[g]=E[g];return h};
bba=function(h,E){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,yE(g)?h.push(ABu({},g)):ThM(g)?h.push(bba([],g)):h.push(g);return h};
yE=function(h){return typeof h==="object"&&!Array.isArray(h)};
ThM=function(h){return typeof h==="object"&&Array.isArray(h)};
Q2M=function(h){for(var E=_.G(Object.entries(ucW)),g=E.next();!g.done;g=E.next())if(g=_.G(g.value),g.next(),g=g.next().value,g==="SLI_STATUS_"+h)return g;return"SLI_STATUS_UNKNOWN"};
_.AQ=function(h,E,g,Z){return h$Z(h,E,function(){return new _.Eia(h,E,g,Z)})};
_.gid=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Z24=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Te=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
MuW=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
WCz=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
pCu=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
ava=function(h){h&&(h.dataset?h.dataset[GC$()]="true":_.zH([_.of(z$Z)],h,"data-loaded","true".toString()))};
c9V=function(h){return h?h.dataset?h.dataset[GC$()]:h.getAttribute("data-loaded"):null};
GC$=function(){return i2z.loaded||(i2z.loaded="loaded".replace(/\-([a-z])/g,function(h,E){return E.toUpperCase()}))};
_.bC=function(h,E,g){oiO(h,E,g===void 0?null:g)};
_.R$W=function(h,E){h&&E&&(h=""+_.AM(E),(h=Ivz[h])&&_.WmZ(h))};
oiO=function(h,E,g){g=g===void 0?null:g;var Z=_.Poz(typeof h==="string"?h:h.toString()),M=document.getElementById(Z),W=M&&c9V(M),z=M&&!W;W?E&&E():(E&&(W=_.I8(Z,E),E=""+_.AM(E),Ivz[E]=W),z||(M=Bg$(h,Z,function(){c9V(M)||(ava(M),_.p$q(Z),_.Bx(function(){_.zzM(Z)},0))},g)))};
Bg$=function(h,E,g,Z){Z=Z===void 0?null:Z;var M=_.q3("SCRIPT");M.id=E;M.onload=function(){g&&setTimeout(g,0)};
M.onreadystatechange=function(){switch(M.readyState){case "loaded":case "complete":M.onload()}};
Z&&M.setAttribute("nonce",Z);_.pX(M,typeof h==="string"?_.rO(h):h);h=document.getElementsByTagName("head")[0]||document.body;h.insertBefore(M,h.firstChild);return M};
_.Poz=function(h){var E=document.createElement("a");yF(E,h);return"js-"+uC(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Uuz=function(h){var E=_.nF("INNERTUBE_HOST_OVERRIDE");E&&(h=String(E)+String(_.QE(h)));return h};
LC4=function(h){var E={};_.J("json_condensed_response")&&(E.prettyPrint="false");return h=S7x(h,E)};
_.hT=function(h){return Md(h)?"same-origin":"include"};
_.E7=function(h){return Md(h)?"same-origin":"cors"};
gC=function(h,E,g){g=g===void 0?{}:g;h={method:E===void 0?"POST":E,mode:_.E7(h),credentials:_.hT(h)};E={};for(var Z=_.G(Object.keys(g)),M=Z.next();!M.done;M=Z.next())M=M.value,g[M]&&(E[M]=g[M]);Object.keys(E).length>0&&(h.headers=E);return h};
_.ZA=function(h,E){E=E===void 0?{}:E;return"service:"+h+"/"+Object.keys(E).sort().map(function(g){return g+":"+E[g]}).join("/")};
j1M=function(h){var E,g,Z,M;h=(E=_.e(h,_.MH))==null?void 0:(g=E.watchEndpointSupportedOnesieConfig)==null?void 0:(Z=g.html5PlaybackOnesieConfig)==null?void 0:(M=Z.commonConfig)==null?void 0:M.url;if(!h)return[];E=new _.WX(h);return E.JSC$10033_domain_?["https://"+E.JSC$10033_domain_+"/generate_204"]:[]};
_.J9u=function(){return duO()||mw$()||CoM&&Xy("version/")?!0:_.nF("EOM_VISITOR_DATA")?!1:!0};
e$O=function(h){var E=h.docid||h.video_id||h.videoId||h.id;if(E)return E;E=h.raw_player_response;E||(h=h.player_response)&&(E=JSON.parse(h));return E&&E.videoDetails&&E.videoDetails.videoId||null};
q1q=function(h){return h.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
pZ=function(h){return!isNaN(Number(h))&&!_.ca(h)};
_.zG=function(h,E,g,Z){Z=Z===void 0?!0:Z;var M=_.nF("VALID_SESSION_TEMPDATA_DOMAINS",[]),W=_.gf(window.location.href);W&&M.push(W);W=_.gf(h);if(_.nd(M,W)||!W&&_.Gu(h,"/"))if(M=document.createElement("a"),yF(M,h),h=M.href)if(h=_.QE(h),h=_.GG(h))Z&&!E.csn&&(E.itct||E.ved)&&(E=Object.assign({csn:_.sH()},E)),g?(g=parseInt(g,10),isFinite(g)&&g>0&&fvM(h,E,g)):fvM(h,E)};
tuz=function(h){var E=_.nF("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.gf(window.location.href);g&&E.push(g);g=_.gf(h);if(!(_.nd(E,g)||!g&&_.Gu(h,"/")))return null;h=_.QE(h);(h=_.GG(h))?(h=Ng4(h),h=(h=_.qd.get(h,void 0)||null)?_.bI(h):{}):h=null;return h};
fvM=function(h,E,g){h=Ng4(h);E=E?_.Cl(E):"";g=g||5;_.J9u()&&_.fl(h,E,g)};
Ng4=function(h){for(var E=_.G(S1V),g=E.next();!g.done;g=E.next())h=_.aa(h,g.value);return"ST-"+uC(h).toString(36)};
_.xuN=function(h){if(h.requestFullscreen)h=h.requestFullscreen(void 0);else if(h.webkitRequestFullscreen)h=h.webkitRequestFullscreen();else if(h.mozRequestFullScreen)h=h.mozRequestFullScreen();else if(h.msRequestFullscreen)h=h.msRequestFullscreen();else if(h.webkitEnterFullscreen)h=h.webkitEnterFullscreen();else return Promise.reject(Error("zf"));return h instanceof Promise?h:Promise.resolve()};
_.iw=function(h){var E;_.yWV(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.cX()==h&&(E=document):E=h;if(E&&(h=_.yWV(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],E))){h.call(E)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.cX=function(){var h=h===void 0?!1:h;var E=_.yWV(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(h)for(;E&&E.shadowRoot;)E=E.shadowRoot.fullscreenElement;return E?E:null};
_.oa=function(h,E){E=E===void 0?!0:E;h.addEventListener("wheel",wCM);h.overscrollConfig={cooldown:E}};
_.Ia=function(h){h.overscrollConfig=void 0;h.removeEventListener("wheel",wCM)};
wCM=function(h){var E=h.deltaY,g=h.target,Z=null;if(window.Polymer&&window.Polymer.Element){if(g=h.path||h.composedPath&&h.composedPath()){g=_.G(g);for(var M=g.next();!M.done&&(M=M.value,!Duz(M,E));M=g.next())if(M.overscrollConfig){Z=M;break}}}else for(;g&&!Duz(g,E);){if(g.overscrollConfig){Z=g;break}g=g.parentElement}Z&&(E=Z.overscrollConfig,E.cooldown?(Z=h.deltaY,g=E.lastDeltaY||0,E.lastDeltaY=Z,M=E.lastStopped||0,g&&M&&g>0==Z>0?Math.abs(g)>=Math.abs(Z)?(Z=M+1200,g=!1):(Z=M+600,g=!0):(Z=Date.now()+
600,g=!0),Z>Date.now()&&(h.preventDefault(),g&&(E.lastStopped=Date.now()))):h.preventDefault())};
Duz=function(h,E){return E<0&&h.scrollTop>0||E>0&&h.scrollTop<h.scrollHeight-h.clientHeight-1?(h=getComputedStyle(h).overflowY,h=="auto"||h=="scroll"):!1};
_.Ra=function(h,E,g,Z){Z||(Z={bubbles:!0,cancelable:!1,composed:!0});g!==null&&g!==void 0&&(Z.detail=g);var M=new CustomEvent(E,Z);_.J("untrack_fire_custom_event_killswitch")?h.dispatchEvent(M):Pm(function(){return void h.dispatchEvent(M)});
return M};
lv4=function(h){var E=window,g=function(Z){E.removeEventListener("yt-navigate-start",g);return h.call(E,Z)};
E.addEventListener("yt-navigate-start",g,void 0)};
_.BX=function(h,E,g,Z){E=new r9Z(E,!(Z===void 0||!Z),g);_.Ra(h,"yt-action",E);return E.returnValue};
_.U7=function(h,E,g){return _.BX(h,E,g,!0)};
_.jj=function(h,E,g,Z){E&&E.length&&E.forEach(function(M){var W=sJz(M);W&&(_.J("handle_service_request_actions")&&M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.sendPost?_.LZ(g?g:h,[M]):_.U7(h,W,[M,g,Z]))})};
_.LZ=function(h,E){var g=[h];E&&g.push.apply(g,E);E=_.BX(h,"yt-service-request",g);return E.length>0&&(E=E[0],_.Ra(h,"yt-service-request-sent",E),E&&E.ajaxPromise)?(E.ajaxPromise.then(function(Z){_.Ra(h,"yt-service-request-completed",Z)},function(Z){_.Ra(h,"yt-service-request-error",{error:Z,
params:g})},h),E.ajaxPromise):_.dC()};
_.JT=function(h,E){if(_.J("handle_service_request_actions"))_.jj(E,h,E);else{h=_.G(h);for(var g=h.next();!g.done;g=h.next()){g=g.value;var Z=void 0;((Z=_.e(g,_.CZ))==null?0:Z.commands)?_.JT(_.e(g,_.CZ).commands,E):(Z=void 0,((Z=_.e(g,_.ej))==null?0:Z.actions)?_.JT(_.e(g,_.ej).actions,E):(Z=void 0,((Z=_.e(g.commandMetadata,_.qH))==null?0:Z.sendPost)?_.LZ(E,[g]):_.jj(E,[g],E)))}}};
_.vi$=function(h,E,g){E=E===void 0?{}:E;typeof E==="function"&&(E={callback:E});g||E._c&&E._c.jsl&&E._c.jsl.h||_.Kt.extend(E,{_c:{jsl:{h:_.nF("GAPI_HINT_PARAMS")}}});(E.gapiHintOverride||_.nF("GAPI_HINT_OVERRIDE"))&&(g=_.uI(document.location.href).gapi_jsh)&&_.Kt.extend(E,{_c:{jsl:{h:g}}});muW(h,E)};
_.NH=function(h,E,g){E=E===void 0?{}:E;h=(h=h in fZ?fZ[h]:g)||"";g={};for(var Z in E){g={key$jscomp$838:g.key$jscomp$838};g.key$jscomp$838=Z;var M=function(W){return function(){return String(E[W.key$jscomp$838])}}(g);
h=h.replace(new RegExp("\\$\\{"+g.key$jscomp$838+"\\}","gi"),M);h=h.replace(new RegExp("\\$"+g.key$jscomp$838,"gi"),M)}return h};
_.tT=function(h,E){return H2$(h in fZ?fZ[h]:{},E)};
H2$=function(h,E){var g=_.nF("I18N_PLURAL_RULES");g||(g=function(Z){return Z==1?"one":"other"});
return(h=h["case"+E]||h[g(E)])?h.replace("#",E.toString()):E+""};
O2d=function(h){var E=$uz(h),g=document.getElementById(E),Z=g&&c9V(g);Z||g&&!Z||(g=KCz(h,E,function(){if(!c9V(g)){ava(g);_.p$q(E);var M=_.Sj(_.zzM,E);_.Bx(M,0)}}))};
KCz=function(h,E,g){var Z=document.createElement("link");Z.id=E;Z.onload=function(){g&&setTimeout(g,0)};
h=_.rO(h);_.aH(Z,h,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(Z);return Z};
$uz=function(h){var E=_.q3("A");yF(E,vi(h));return"css-"+uC(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.XCZ=function(h){var E=nid();h!==E&&(E=_.xe(),!_.J("web_autonav_allow_off_by_default")&&h||_.wC(0,141,!0),_.wC(0,140,!h),E.save())};
nid=function(){var h=_.xe();return _.J("web_autonav_allow_off_by_default")&&!h.getFlag(141)&&_.nF("AUTONAV_OFF_BY_DEFAULT")?!1:!h.getFlag(140)};
Y1q=function(h,E){var g,Z;h=((g=h.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=g.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(g=0;g<h.length;++g)if(h[g].scope===E)return h[g].token||void 0};
s1$=function(h){for(var E=0,g=0;g<h.length;g++)E=E*31+h.charCodeAt(g),g<h.length-1&&(E%=0x800000000000);return E%1E5};
_.DA=function(h){return _.yy("ytcsi."+(h||"")+"data_")||Vuu(h)};
_.kCO=function(h){h=_.DA(h);h.metadata||(h.metadata={});return h.metadata};
_.y9d=function(h){h=_.DA(h);h.tick||(h.tick={});return h.tick};
_.lw=function(h){h=_.DA(h);if(h.gel){var E=h.gel;E.gelInfos||(E.gelInfos={});E.gelTicks||(E.gelTicks={})}else h.gel={gelTicks:{},gelInfos:{}};return h.gel};
_.FCN=function(h){h=_.lw(h);h.gelInfos||(h.gelInfos={});return h.gelInfos};
A9Z=function(h){var E=_.DA(h).nonce;E||(E=nQ(16),_.DA(h).nonce=E);return E};
Vuu=function(h){var E={tick:{},info:{}};_.Wu("ytcsi."+(h||"")+"data_",E);return E};
TgM=function(){var h=_.yy("ytcsi.debug");h||(h=[],_.Wu("ytcsi.debug",h),_.Wu("ytcsi.reference",{}));return h};
_.rC=function(h){h=h||"";var E=b2M();if(E[h])return E[h];var g=TgM(),Z={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};g.push(Z);return E[h]=Z};
ufV=function(h){h=h||"";var E=b2M();E[h]&&delete E[h];var g=TgM(),Z={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};g.push(Z);E[h]=Z};
b2M=function(){var h=_.yy("ytcsi.reference");if(h)return h;TgM();return _.yy("ytcsi.reference")};
_.hr$=function(h){return Q14[h]||"LATENCY_ACTION_UNKNOWN"};
MzM=function(h,E,g){g=g===void 0?{}:g;var Z=!1;_.Xn("ytLoggingEventsDefaultDisabled",!1)&&(Z=!0);Z=Z?null:mJ;g=g===void 0?{}:g;var M=Math.round(g.timestamp||(0,_.zn)());_.t1(E,1,M<Number.MAX_SAFE_INTEGER?M:0);M=new EJV;if(g.lact)_.t1(M,1,isFinite(g.lact)?g.lact:-1);else if(g.timestamp)_.t1(M,1,-1);else{var W=_.zq();_.t1(M,1,isFinite(W)?W:-1)}if(g.sequenceGroup&&!_.J("web_gel_sequence_info_killswitch")){W=g.sequenceGroup;var z=UIa(W),c=new gJz;_.t1(c,2,z);_.ln(c,1,W);_.fM(M,3,c);g.endOfSequence&&delete Zf4[g.sequenceGroup]}_.fM(E,
33,M);(g.sendIsolatedPayload?qL4:fC4)(h,{endpoint:"log_event",payload:E,cttAuthInfo:g.cttAuthInfo,dangerousLogToVisitorSession:g.dangerousLogToVisitorSession},Z)};
_.vX=function(){return(_.J("csi_use_time_origin")||_.J("csi_use_time_origin_tvhtml5"))&&_.mc.timeOrigin?Math.floor(_.mc.timeOrigin):_.mc.timing.navigationStart};
_.WdM=function(h,E){_.HX("_start",h,E)};
_.$e=function(h,E){if(!_.J("web_csi_action_sampling_enabled")||!_.DA(E).actionDisabled){var g=_.rC(E||"");_.Fa(g.info,h);h.loadType&&(g=h.loadType,_.kCO(E).loadType=g);_.Fa(_.FCN(E),h);g=A9Z(E);E=_.DA(E).cttAuthInfo;pUx().info(h,g,E)}};
Gda=function(){var h,E,g,Z;return((Z=_.GF().resolve(_.pl(wQ))==null?void 0:(h=DP())==null?void 0:(E=h.loggingHotConfig)==null?void 0:(g=E.csiConfig)==null?void 0:g.debugTicks)!=null?Z:[]).map(function(M){return Object.values(M)[0]})};
_.HX=function(h,E,g){if(!_.J("web_csi_action_sampling_enabled")||!_.DA(g).actionDisabled){var Z=A9Z(g),M;if(M=_.J("web_csi_debug_sample_enabled")&&Z){(_.GF().resolve(_.pl(wQ))==null?0:DP())&&!zrz&&(zrz=!0,_.HX("gcfl",(0,_.zn)(),g));var W,z,c;M=(_.GF().resolve(_.pl(wQ))==null?void 0:(W=DP())==null?void 0:(z=W.loggingHotConfig)==null?void 0:(c=z.csiConfig)==null?void 0:c.debugSampleWeight)||0;if(W=M!==0)b:{W=Gda();if(W.length>0)for(z=0;z<W.length;z++)if(h===W[z]){W=!0;break b}W=!1}W?(M=s1$(Z)%M!==0,
_.DA(g).debugTicksExcludedLogged||(W={},W.debugTicksExcluded=M,_.$e(W,g)),_.DA(g).debugTicksExcludedLogged=!0):M=!1}if(!M){h[0]!=="_"&&aUV(h,g,E);M=_.rC(g||"");M.tick[h]=E||(0,_.zn)();if(M.callback&&M.callback[h])for(M=_.G(M.callback[h]),W=M.next();!W.done;W=M.next())W=W.value,W();M=_.lw(g);M.gelTicks&&(M.gelTicks[h]=!0);W=_.y9d(g);M=E||(0,_.zn)();_.J("log_repeated_ytcsi_ticks")?h in W||(W[h]=M):W[h]=M;W=_.DA(g).cttAuthInfo;h==="_start"?pUx().baseline(Z,E,W):pUx().tick(h,Z,E,W);_.cXW(g);return M}}};
aUV=function(h,E,g){if(_.mc.mark)if(h.startsWith("mark_")||(h="mark_"+h),E&&(h+=" ("+E+")"),g===void 0||_.J("web_csi_disable_alt_time_performance_mark"))_.mc.mark(h);else{g=_.J("csi_use_performance_navigation_timing")?g-_.mc.timeOrigin:g-(_.mc.timeOrigin||_.mc.timing.navigationStart);try{_.mc.mark(h,{startTime:g})}catch(Z){}}};
ifW=function(){var h,E=(h=_.mc.getEntriesByType)==null?void 0:h.call(_.mc,"mark");E&&E.forEach(function(g){if(g.name.startsWith("mark_")){var Z;(Z=_.mc.clearMarks)==null||Z.call(_.mc,g.name)}})};
_.oJq=function(){switch(klu()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.IU4=function(h){var E={},g=function(W,z,c){z=z.match("_rid")?z.split("_rid")[0]:z;typeof c==="number"&&(c=JSON.stringify(c));W.requestIds?W.requestIds.push({endpoint:z,id:c}):W.requestIds=[{endpoint:z,id:c}]};
h=_.G(Object.entries(h));for(var Z=h.next();!Z.done;Z=h.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;switch(Z){case "GetBrowse_rid":g(E,Z,M);break;case "GetGuide_rid":g(E,Z,M);break;case "GetHome_rid":g(E,Z,M);break;case "GetPlayer_rid":g(E,Z,M);break;case "GetSearch_rid":g(E,Z,M);break;case "GetSettings_rid":g(E,Z,M);break;case "GetTrending_rid":g(E,Z,M);break;case "GetWatchNext_rid":g(E,Z,M);break;case "yt_red":E.isRedSubscriber=!!M;break;case "yt_ad":E.isMonetized=!!M}}return E};
PPz=function(h,E,g,Z,M,W){if(!_.J("web_csi_action_sampling_enabled")||!_.DA(W).actionDisabled){var z=_.lw(W);if(z.gelSpans)z.gelSpans[h]=!0;else{var c={};z.gelSpans=(c[h]=!0,c)}RrM++;h={spanName:h,spanLengthUsec:String(Math.round(E*1E3)),spanNonce:RrM};Z&&(h.spanInfo=Z);M&&(h.parentSpanNonce=M);g&&(h.spanStartTimeUsec=String(Math.round(g*1E3)));_.rC(W||"").span[String(h.spanName)]=h;g=_.lw(W);g.gelSpans||(g.gelSpans={});_.Fa(g.gelSpans,h);g=A9Z(W);W=_.DA(W).cttAuthInfo;pUx().span(h,g,W);return h.spanNonce}};
_.BtN=function(h){var E=_.KZ("aft",h);if(E)return E;E=_.nF((h||"")+"TIMING_AFT_KEYS",["ol"]);for(var g=E.length,Z=0;Z<g;Z++){var M=_.KZ(E[Z],h);if(M)return M}return NaN};
_.UOM=function(h,E){_.Wu("ytglobal.timing"+(E||"")+"ready_",h)};
_.KZ=function(h,E){if(h=_.y9d(E)[h])return typeof h==="number"?h:h[h.length-1]};
_.cXW=function(h){var E=_.KZ("_start",h),g=_.BtN(h),Z=!LdO;E&&g&&Z&&(jNx(jMz,new dOx(Math.round(g-E),h)),LdO=!0)};
JXZ=function(h){Vuu(h);CP4();ifW();h||(_.nF("TIMING_ACTION")&&_.OW("PREVIOUS_ACTION",_.nF("TIMING_ACTION")),_.OW("TIMING_ACTION",""))};
_.erz=function(h){h=h===void 0?{}:h;_.k3(function(){O7();ufV();JXZ();_.UOM(!1);h.cttAuthInfo&&(_.DA().cttAuthInfo=h.cttAuthInfo);_.OW("TIMING_AFT_KEYS",[]);h.isHot?_.nZ({loadType:"hot"}):_.nZ({loadType:"warm"});_.OW("TIMING_ACTION","");delete _.nF("TIMING_INFO",{}).yt_lt;_.k3(_.WdM)(h.startTime,void 0)})()};
_.Ye=function(h,E,g,Z){E=E===void 0?{}:E;_.k3(function(){var M=g?g:h;XF(M);var W=E.sampleRate;if(!_.J("web_csi_action_sampling_enabled")||W===void 0||W<=1)W=!1;else{var z=A9Z(M);W=s1$(z)%W!==0}W&&(_.DA(M).actionDisabled=!0);_.rC(M||"").info.actionType=h;E.cttAuthInfo&&(_.DA(M).cttAuthInfo=E.cttAuthInfo);_.OW(M+"TIMING_ACTION",h);_.k3(_.WdM)(E.startTime,M);W={actionType:Z||_.hr$(h)};E.logPreviousAction&&(W.previousAction=_.hr$(_.nF("TIMING_ACTION")));(z=_.sH())&&z!=="UNDEFINED_CSN"&&(W.clientScreenNonce=
z);_.nZ(W,M);_.UOM(!0,M)})()};
XF=function(h){_.k3(function(){O7(h);ufV(h);JXZ(h)})()};
qJ$=function(){_.k3(function(){var h=[],E;for(E in _.yy("ytcsi.".slice(0,-1)))E.endsWith("data_")&&h.push(E.slice(0,-5));h=_.G(h);for(E=h.next();!E.done;E=h.next())XF(E.value);O7()})()};
_.NtV=function(h){return _.k3(function(){return _.fUu("_start",h)})()};
_.nZ=function(h,E,g){_.k3(_.$e)(h,E,g===void 0?!1:g)};
_.s7=function(h,E,g){return _.k3(_.HX)(h,E,g)};
_.fUu=function(h,E){return _.k3(function(){var g=_.y9d(E);return h in g})()};
SJa=function(h){if(!_.J("universal_csi_network_ticks"))return"";h=_.jy(h)||"";for(var E=Object.keys(tzd),g=0;g<E.length;g++){var Z=E[g];if(h.includes(Z))return Z}return""};
wUV=function(h){if(!_.J("universal_csi_network_ticks"))return function(){};
var E=tzd[h];return E?(_.Vp(E),function(){var g=_.J("universal_csi_network_ticks")?(g=xOM[h])?_.Vp(g):!1:!1;return g}):function(){}};
_.Vp=function(h,E,g){return _.k3(function(){if(_.fUu(h,g))return!1;_.s7(h,E,g);return!0})()};
_.ke=function(h,E,g){_.k3(function(){if(!_.NtV(g)||_.fUu(h,g))return!1;_.s7(h,E,g);return!0})()};
_.yp=function(h){return _.k3(_.KZ)(h,void 0)};
O7=function(h){_.NtV(h)&&_.s7("aa",void 0,h)};
_.vJW=function(h,E,g,Z,M,W,z,c,I){var B=DON();c=new Xa({veType:E,youtubeData:W,jspbYoutubeData:c});W=FF({},B);M&&(W.cttAuthInfo=M);M={csn:B,pageVe:c.getAsJson()};_.J("expectation_logging")&&I&&I.screenCreatedLoggingExpectations&&(M.screenCreatedLoggingExpectations=I.screenCreatedLoggingExpectations);g&&g.visualElement?(M.implicitGesture={parentCsn:g.clientScreenNonce,gesturedVe:g.visualElement.getAsJson()},z&&(M.implicitGesture.gestureType=z)):g&&_.O$(new _.xX("newScreen() parent element does not have a VE - rootVe",
E));Z&&(M.cloneCsn=Z);h?rQ("screenCreated",M,h,W):_.vT("screenCreated",M,W);jNx(NDZ,new lU$(B));AT.clear();rXW.clear();mOd.clear();return B};
TG=function(h,E,g,Z,M,W){W=W===void 0?{}:W;HfO(h,E,g,[Z],M===void 0?!1:M,W)};
HfO=function(h,E,g,Z,M,W){M=M===void 0?!1:M;W=W===void 0?{}:W;Object.assign(W,FF({cttAuthInfo:VE(E)||void 0},E));for(var z=_.G(Z),c=z.next();!c.done;c=z.next()){c=c.value;var I=c.getAsJson();(_.Kt.isEmpty(I)||!I.trackingParams&&!I.veType)&&_.O$(Error("Af"));if(_.J("no_client_ve_attach_unless_shown")){var B=$Oa(c,E);if(I.veType&&!rXW.has(B)&&!mOd.has(B)&&!M){if(!_.J("il_attach_cache_limit")||AT.size<1E3){AT.set(B,[h,E,g,c]);return}_.J("il_attach_cache_limit")&&AT.size>1E3&&_.O$(new _.xX("IL Attach cache exceeded limit"))}c=
$Oa(g,E);AT.has(c)?Kd$(g,E):mOd.set(c,!0)}}Z=Z.filter(function(U){U.csn!==E?(U.csn=E,U=!0):U=!1;return U});
g={csn:E,parentVe:g.getAsJson(),childVes:_.O6(Z,function(U){return U.getAsJson()})};
E==="UNDEFINED_CSN"?bw("visualElementAttached",W,g):h?rQ("visualElementAttached",g,h,W):_.vT("visualElementAttached",g,W)};
nJM=function(h,E,g,Z,M){Ofd(h,E,g,M)};
Ofd=function(h,E,g,Z){XUZ(g,E);var M=FF({cttAuthInfo:VE(E)||void 0},E);g={csn:E,ve:g.getAsJson(),eventType:1};Z&&(g.clientData=Z);E==="UNDEFINED_CSN"?bw("visualElementShown",M,g):h?rQ("visualElementShown",g,h,M):_.vT("visualElementShown",g,M)};
YJu=function(h,E,g,Z){XUZ(g,E);var M=FF({cttAuthInfo:VE(E)||void 0},E);g={csn:E,ve:g.getAsJson(),eventType:4};Z&&(g.clientData=Z);E==="UNDEFINED_CSN"?bw("visualElementShown",M,g):h?rQ("visualElementShown",g,h,M):_.vT("visualElementShown",g,M)};
sM$=function(h,E,g,Z,M){var W=(Z=Z===void 0?!1:Z)?16:8;Z=FF({cttAuthInfo:VE(E)||void 0,endOfSequence:Z},E);g={csn:E,ve:g.getAsJson(),eventType:W};M&&(g.clientData=M);E==="UNDEFINED_CSN"?bw("visualElementHidden",Z,g):h?rQ("visualElementHidden",g,h,Z):_.vT("visualElementHidden",g,Z)};
kdq=function(h,E,g,Z,M){VzZ(h,E,g,void 0,Z,M)};
VzZ=function(h,E,g,Z,M){XUZ(g,E);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var W=FF({cttAuthInfo:VE(E)||void 0},E);g={csn:E,ve:g.getAsJson(),gestureType:Z};M&&(g.clientData=M);E==="UNDEFINED_CSN"?bw("visualElementGestured",W,g):h?rQ("visualElementGestured",g,h,W):_.vT("visualElementGestured",g,W)};
yXV=function(h,E,g,Z){var M=FF({cttAuthInfo:VE(E)||void 0},E);g={csn:E,ve:g.getAsJson(),clientData:Z};E==="UNDEFINED_CSN"?bw("visualElementStateChanged",M,g):h?rQ("visualElementStateChanged",g,h,M):_.vT("visualElementStateChanged",g,M)};
Fda=function(){var h=mlN(16);for(var E=[],g=0;g<h.length;g++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(h[g]&63));return E.join("")};
bw=function(h,E,g){AXO.push({payloadName:h,payload:g,jspbPayload:void 0,options:E});TtM||(TtM=SB$())};
fMz=function(h){if(AXO){for(var E=_.G(AXO),g=E.next();!g.done;g=E.next())g=g.value,g.payload&&(g.payload.csn=h.csn,_.vT(g.payloadName,g.payload,g.options));AXO.length=0}TtM=0};
$Oa=function(h,E){return""+h.getAsJson().veType+h.getAsJson().veCounter+E};
XUZ=function(h,E){if(_.J("no_client_ve_attach_unless_shown")){var g=$Oa(h,E);rXW.set(g,!0);Kd$(h,E)}};
Kd$=function(h,E){h=$Oa(h,E);AT.has(h)&&(E=AT.get(h)||[],TG(E[0],E[1],E[2],E[3],!0),AT.delete(h))};
FF=function(h,E){_.J("log_sequence_info_on_gel_web")&&(h.sequenceGroup=E);return h};
_.uw=function(h,E,g){_.k3(TG)(void 0,h,E,g)};
_.Qp=function(h,E,g){_.k3(HfO)(void 0,h,E,g)};
_.hj=function(h,E){_.k3(nJM)(void 0,h,E,void 0,void 0,void 0)};
_.Eo=function(h,E,g){_.k3(function(){_.Tt(E,function(Z){YJu(void 0,h,Z,g)})})()};
_.gZ=function(h,E,g,Z){_.k3(function(){_.Tt(E,function(M){sM$(void 0,h,M,g,Z)})})()};
_.Z$=function(h,E,g){_.k3(kdq)(void 0,h,E,g,void 0)};
_.Mw=function(h,E,g,Z){_.k3(VzZ)(void 0,h,E,g,Z,void 0)};
_.Wn=function(h,E,g){_.k3(yXV)(void 0,h,E,g,void 0)};
bfO=function(h,E){pe.set(h,E)};
u3O=function(h){return Gy.initialized?Gy.enabledSpans?Gy.enabledSpans[h]:!0:!1};
QMq=function(h,E){if(h){E=E===void 0?1:E;if(h){h.endTime=(0,_.zn)();E&&(h.status=E);E=_.G(Gy.processors);for(var g=E.next();!g.done;g=E.next()){var Z=void 0,M=void 0;(M=(Z=g.value).onSpanEnd)==null||M.call(Z,h)}}h!==Gy.stack[Gy.stack.length-1]&&_.O$(Error("Df`"+h.name));Gy.stack.pop()}};
hRx=function(h,E,g){if(u3O(h)){var Z=Gy.nextSpanId++,M=Gy.stack[Gy.stack.length-1];h={id:Z,parentId:M==null?void 0:M.id,name:h,attributes:E,traceId:M?M.traceId:Z,sessionId:Gy.sessionId,startTime:(0,_.zn)(),status:0};M&&(M.children||(M.children=[]),M.children.push(h));M=_.G(Gy.processors);for(E=M.next();!E.done;E=M.next()){var W=Z=void 0;(W=(Z=E.value).onSpanStart)==null||W.call(Z,h)}}else h=void 0;h?Gy.stack.push(h):h=void 0;if(!h)return g();try{var z=g(h);QMq(h);return z}catch(c){throw QMq(h,2),
c;}};
EcV=function(){};
gcd=function(h,E){var g=Object.keys(h);h=new _.xX("[Command Handler] "+E,{filteredCommandNames:g,originalCommand:h});_.$W(h)};
Z1x=function(h,E){gcd(h,E+" was called but not set")};
McW=function(h){return function(){return new h}};
zy=function(h){return function(){return _.GF().resolve(h)}};
WHZ=function(h,E){var g=_.e(h,_.VX);if(g&&(g=E[g.signal]))return g();h=_.G(Object.keys(h));for(g=h.next();!g.done;g=h.next())if(g=g.value,E[g]&&(g=E[g]))return g()};
_.aY=function(h,E,g,Z){return{browseEndpoint:{browseId:h},commandMetadata:{webCommandMetadata:{url:E,rootVe:g,webPageType:Z===void 0?"WEB_PAGE_TYPE_BROWSE":Z}}}};
pkz=function(h,E,g){var Z=E=E===void 0?0:E;g=g===void 0?0:g;var M=g-Z;return _.cn(h,"PPSV",void 0,void 0,(M>600?0:M<60||g<=0||Z/g>.9)?0:E)};
_.cn=function(h,E,g,Z,M){var W="/watch?v="+h;h={videoId:h};E&&(h.playlistId=E,W+="&list="+E);Z&&(W+="&pp="+Z);M&&(h.startTimeSeconds=M,W+="&t="+M+"s");E={watchEndpoint:h,commandMetadata:{webCommandMetadata:{url:W,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};g&&(E.clickTrackingParams=g);Z&&(_.e(E,_.MH).playerParams=Z);return E};
GgV=function(h){return{browseEndpoint:{browseId:"VL"+h},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+h,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
zR$=function(h){if(h){var E;if(h){var g=(E=_.e(h.commandMetadata,_.qH))==null?void 0:E.url;E=!(!g||g==="/service_ajax")}else E=!1;if(E)return h;var Z;if(h=(Z=_.e(h,_.CZ))==null?void 0:Z.commands)for(Z=_.G(h),h=Z.next();!h.done;h=Z.next())if(h=zR$(h.value))return h}};
_.iV=function(h){return{runs:[{text:h}]}};
aLZ=function(h,E){return h&&E?{runs:[{text:h,navigationEndpoint:E}]}:void 0};
oY=function(h){return h?_.iV(h):void 0};
_.IY=function(h){return h?{simpleText:h}:void 0};
_.RY=function(h){var E=h.type;h=h.payload;E={type:E};h!==void 0&&(E.payload=h);return E};
c0u=function(h,E,g){for(var Z=Object.assign({},h),M=_.G(Object.keys(E)),W=M.next();!W.done;W=M.next()){W=W.value;var z=h[W],c=E[W];if(c===void 0)delete Z[W];else if(z===void 0)Z[W]=c;else if(Array.isArray(c)&&Array.isArray(z))Z[W]=g?[].concat(_.$E(z),_.$E(c)):c;else if(!Array.isArray(c)&&_.yx(c)&&!Array.isArray(z)&&_.yx(z))Z[W]=c0u(z,c,g);else if(typeof c===typeof z)Z[W]=c;else return E=new _.xX("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:W,originalValue:z,updateValue:c}),
_.$W(E),h}return Z};
ILN=function(h){if(!h.length)return"";try{if(i1M)return i1M.decode(h);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(h)}catch(z){}for(var E=0,g=[],Z=h.length;E<Z;){for(var M=0;M<1024&&E<Z;){var W=h[E++];if(W<128)ocq[M++]=W;else{if(W<224)W=(W&31)<<6|h[E++]&63;else if(W<240)W=(W&15)<<12|(h[E++]&63)<<6|h[E++]&63;else{if(M+1===1024){--E;break}W=(W&7)<<18|(h[E++]&63)<<12|(h[E++]&63)<<6|h[E++]&63;W-=65536;ocq[M++]=55296|W>>10;W=56320|W&1023}ocq[M++]=W}}W=String.fromCharCode.apply(String,
ocq);M<1024&&(W=W.substring(0,M));g.push(W)}return g.join("")};
PMx=function(h,E){var g;if((g=RR$)==null?0:g.encodeInto)return E=RR$.encodeInto(h,E),E.read<h.length?h.length*4:E.written;for(var Z=g=0;Z<h.length;Z++){var M=h.charCodeAt(Z);M<128?E[g++]=M:(M<2048?E[g++]=M>>6|192:((M&64512)===55296&&Z+1<h.length&&(h.charCodeAt(Z+1)&64512)===56320?(M=65536+((M&1023)<<10)+(h.charCodeAt(++Z)&1023),E[g++]=M>>18|240,E[g++]=M>>12&63|128):E[g++]=M>>12|224,E[g++]=M>>6&63|128),E[g++]=M&63|128)}return g};
ByM=function(h,E,g){if(E&&g&&g.buffer===E.exports.memory.buffer){var Z=E.realloc(g.byteOffset,h);if(Z)return new Uint8Array(E.exports.memory.buffer,Z,h)}h=E?new Uint8Array(E.exports.memory.buffer,E.malloc(h),h):new Uint8Array(h);g&&h.set(g);return h};
_.Bn=function(h){h=new UM4(new LH$([_.Qx(decodeURIComponent(h))]));if(jRa(h,2)){var E=Pn(h);var g=h.pos;var Z=h.arrayView;g=g===void 0?0:g;var M=E===void 0?-1:E;g=g===void 0?0:g;M=M===void 0?-1:M;if(Z.totalLength&&M){M<0&&(M=Z.totalLength-g);Z.focus(g);if(!(g-Z.arrayPos+M<=Z.arrays[Z.arrayIdx].length)){var W=Z.arrayIdx,z=Z.arrayPos;Z.focus(g+M-1);z=new Uint8Array(Z.arrayPos+Z.arrays[Z.arrayIdx].length-z);for(var c=0,I=W;I<=Z.arrayIdx;I++)z.set(Z.arrays[I],c),c+=Z.arrays[I].length;Z.arrays.splice(W,
Z.arrayIdx-W+1,z);Z.arrayIdx=0;Z.arrayPos=0;Z.focus(g)}W=Z.arrays[Z.arrayIdx];Z=new DataView(W.buffer,W.byteOffset+g-Z.arrayPos,M)}else Z=new DataView(new ArrayBuffer(0));Z=new Uint8Array(Z.buffer,Z.byteOffset,Z.byteLength);h.pos+=E;E=Z}else E=void 0;E=E?ILN(E):void 0;h=jRa(h,4)?Pn(h):void 0;Z=dMd[h];if(typeof Z==="undefined")throw h=new _.xX("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:h}),_.$W(h),h;return{entityTypeFieldNumber:h,entityType:Z,entityId:E}};
_.jD=function(h,E,g){g=g===void 0?0:g;var Z=new CMO;if(RR$)h=RR$.encode(h);else{var M=new Uint8Array(Math.ceil(h.length*1.2)),W=PMx(h,M);M.length<W&&(M=new Uint8Array(W),W=PMx(h,M));M.length>W&&(M=M.subarray(0,W));h=M}h!==void 0&&(Uo(Z,18),M=h.length,Uo(Z,M),Le(Z,M),Z.buf.set(h,Z.pos),Z.pos+=M);h=J0W[E];if(typeof h==="undefined")throw g=new _.xX("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:E}),_.$W(g),g;h!==void 0&&(Uo(Z,32),Uo(Z,h));Uo(Z,40);Uo(Z,1);E=new Uint8Array(Z.buf.buffer,
Z.buf.byteOffset,Z.pos);return encodeURIComponent(_.lJ(E,g))};
eRa=function(h){h=h.key||h.id;if(!h)throw Error("Ff");return h};
fLV=function(h,E){h=h===void 0?{}:h;return qr4(h,E)};
Nyz=function(h,E,g,Z){if(Z===void 0)return Z=Object.assign({},h[E]||{}),g=(delete Z[g],Z),Z={},Object.assign({},h,(Z[E]=g,Z));var M={},W={};return Object.assign({},h,(W[E]=Object.assign({},h[E],(M[g]=Z,M)),W))};
tcM=function(h,E,g,Z,M){var W=h[E];if(W==null||!W[g])return h;Z=c0u(W[g],Z,M==="REPEATED_FIELDS_MERGE_OPTION_APPEND");M={};W={};return Object.assign({},h,(W[E]=Object.assign({},h[E],(M[g]=Z,M)),W))};
_.Jj=function(h,E,g){return h[E]?h[E][g]||null:null};
xMq=function(){if(SrZ)return SrZ();var h={};SrZ=Gn("PersistentEntityStoreDb",{objectStores:(h.EntityStore={addedAtVersion:1},h.EntityAssociationStore={addedAtVersion:2},h),shared:!1,upgrade:function(E,g){g(1)&&ya(kL(E,"EntityStore",{keyPath:"key"}),"entityType","entityType");g(2)&&(E=kL(E,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ya(E,"byParentEntityKey","parentEntityKey"),ya(E,"byChildEntityKey","childEntityKey"))},
version:3});return SrZ()};
wkd=function(h){return _.Qn(xMq(),h)};
eD=function(h){return window.Int32Array?new Int32Array(h):Array(h)};
lLz=function(h){return _.Qn(DM$(),h)};
r0$=function(h){return new qw("WRONG_DATA_TYPE",{encoderVersion:h})};
mMM=function(h){return h instanceof Error?new qw("UNKNOWN_ENCODE_ERROR",{originalMessage:h.message}):new qw("UNKNOWN_ENCODE_ERROR")};
vcZ=function(h){return h instanceof Error?new qw("UNKNOWN_DECODE_ERROR",{originalMessage:h.message}):new qw("UNKNOWN_DECODE_ERROR")};
H1W=function(h,E){h=h instanceof qw?h:E(h);_.$W(h);throw h;};
$Mu=function(h){h=(new TextEncoder).encode(h).subarray(0,16);var E=new Uint8Array(16);E.set(h);return E};
O1M=function(h){var E=KHZ[h];if(E)return E;_.O$(new _.xX("Entity model not found.",{entityType:h}))};
_.fe=function(){ncx||(ncx=Xku());return ncx};
Xku=function(){var h,E,g;return _.a(function(Z){if(Z.nextAddress==1)return _.CX(Z,2),Z.yield(_.pP(),4);if(Z.nextAddress!=2){h=Z.yieldResult;if(!h||!_.Sy()||typeof _.MN.BroadcastChannel==="undefined")return Z.return();E=new Yr$;return Z.return(new Nw(h,E))}g=_.th(Z);g instanceof Error&&_.$W(g);return Z.return()})};
_.tj=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1){g=h.mutations;if(!g||g.length<=0)return Z.return();E&&E.dispatch(_.RY({type:"ENTITY_LOADED",payload:g}));return Z.yield(sRq(g),2)}g.length=0;_.SK(Z)})};
sRq=function(h){var E;return _.a(function(g){return g.nextAddress==1?g.yield(_.fe(),2):(E=g.yieldResult)?g.yield(_.SD(E,"readwrite",function(Z){for(var M={},W=_.G(h),z=W.next(),c={};!z.done;c={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},z=W.next())c.mutation$jscomp$4=z.value,c.mutation$jscomp$4.entityKey&&Vcz(c.mutation$jscomp$4)&&(c.mutationEntityType$jscomp$3=(0,_.Kt.getAnyKey)(c.mutation$jscomp$4.payload),z=void 0,c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(z=function(I){return function(){return _.kgu(Z,
I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(c)),c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(z=function(I){return function(){return y0z(Z,I.mutation$jscomp$4.entityKey)}}(c)),c.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(z=function(I){return function(){return FH4(Z,I.mutation$jscomp$4.entityKey,I.mutation$jscomp$4.payload[I.mutationEntityType$jscomp$3],I.mutationEntityType$jscomp$3)}}(c)),z&&(M[c.mutation$jscomp$4.entityKey]=
M[c.mutation$jscomp$4.entityKey]?M[c.mutation$jscomp$4.entityKey].then(z):z()));
return kX.all(Object.values(M))}),0):g.return()})};
Vcz=function(h){var E;h=(E=h.options)==null?void 0:E.persistenceOption;return h==="ENTITY_PERSISTENCE_OPTION_PERSIST"||h==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
b1u=function(h,E){var g,Z;_.a(function(M){if(M.nextAddress==1)return M.yield(_.fe(),2);if(M.nextAddress!=3)return(g=M.yieldResult)?M.yield(_.SD(g,"readonly",function(W){var z={},c=Object.keys(E).map(function(I){var B=E[I]?[].concat(_.$E(E[I])):[];return A0x(W,I,B,z)});
return kX.all(c).then(function(){return z})}),3):M.return();
Z=M.yieldResult;Object.keys(Z).length>0&&h.dispatch(Ty4(Z));_.SK(M)})};
A0x=function(h,E,g,Z){return x8(h,E,g).then(function(M){Z[E]=uAd(g,M)})};
uAd=function(h,E){if(E.length!==h.length)throw Error("If");return E.reduce(function(g,Z,M){g[h[M]]=Z;return g},{})};
ETx=function(h){var E=h.filter(function(M){var W;return(M==null?void 0:(W=M.transferEntity)==null?void 0:W.transferState)==="TRANSFER_STATE_COMPLETE"}).length,g=h.filter(function(M){var W;
return(M==null?void 0:(W=M.transferEntity)==null?void 0:W.transferState)==="TRANSFER_STATE_FAILED"}).length,Z=h.filter(function(M){var W;
return(M==null?void 0:(W=M.transferEntity)==null?void 0:W.transferState)&&QRV.includes(M.transferEntity.transferState)});
if(!(E||Z!=null&&Z.length))return 0;E=_.htM(Z)+E;h=h.length-g;return h===0?0:Math.round(E*100/h)/100};
_.htM=function(h){var E=[];E=E.concat.apply(E,_.$E(h.filter(function(W){return W.streamEntity}).map(function(W){var z=Object.assign({},W.streamEntity),c,I=(c=W.transferEntity)==null?void 0:c.transferState;
z.streamsProgress=z.streamsProgress||[];z.streamsProgress=z.streamsProgress.map(function(B){var U=Object.assign({},B);U.numBytesDownloaded=I==="TRANSFER_STATE_COMPLETE"?B.numTotalBytes:B.numBytesDownloaded;return U});
return z}).map(function(W){return W.streamsProgress})));
var g=h=0;E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next()){var M=Z.value;Z=Number(M.numBytesDownloaded);M=Number(M.numTotalBytes);g+=isNaN(Z)?0:Z;h+=isNaN(M)?0:M}return h===0?0:Math.round(g*100/h)/100};
gTW=function(h){if(!h||!h.expirationTimestamp||!h.action)return!1;var E=(0,_.zn)()/1E3;return Number(h.expirationTimestamp)>=E};
wZ=function(h){return h&&h.expirationTimestamp&&h.action?gTW(h)&&h.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.D$=function(h){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(h||"TRANSFER_STATE_UNKNOWN")};
ZC4=function(h){var E=new CMO;if(h!==void 0){var g=Math.ceil(Math.log2(h.length*4+2)/7);g=g===void 0?2:g;Uo(E,10);E.submessagePosStack.push(E.pos);E.submessagePosStack.push(g);E.pos+=g;Le(E,h.length*1.2);g=PMx(h,E.buf.subarray(E.pos));E.pos+g>E.buf.length&&(Le(E,g),g=PMx(h,E.buf.subarray(E.pos)));E.pos+=g;h=E.submessagePosStack.pop();g=E.submessagePosStack.pop();for(var Z=E.pos-g-h;h--;){var M=h?128:0;E.view.setUint8(g++,Z&127|M);Z>>=7}}E=new Uint8Array(E.buf.buffer,E.buf.byteOffset,E.pos);return(new TextDecoder("utf-8")).decode(E)};
_.lV=function(h){var E=0;h=_.G(h);for(var g=h.next(),Z={};!g.done;Z={transferState$jscomp$3:void 0},g=h.next()){var M=g.value,W=void 0;g=(W=M.streamEntity)!=null?W:{};W=void 0;Z.transferState$jscomp$3=(W=M.transferEntity)==null?void 0:W.transferState;W=M=void 0;((M=g)==null?0:(W=M.streamsProgress)==null?0:W.length)&&g.streamsProgress.forEach(function(z){return function(c){c=Number(z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?c.numTotalBytes:c.numBytesDownloaded);isFinite(c)&&(E+=c)}}(Z))}return E};
MiN=function(h){return h.some(function(E){var g;if(!(E==null?0:(g=E.transferEntity)==null?0:g.transferState)){var Z;return!(E==null?0:(Z=E.policyEntity)==null?0:Z.action)||E.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return QRV.includes(E.transferEntity.transferState)})};
Wwz=function(h,E){if(!E)return!1;if(_.J("of_pb_en_po_ks"))return!0;var g;h=(g=_.Jj(h,"offlineVideoPolicy",_.jD(E,"offlineVideoPolicy")))!=null?g:void 0;return!!h&&wZ(h)};
_.GhN=function(h){var E=["TRANSFER_STATE_COMPLETE"];E=E===void 0?pt$:E;return h.filter(function(g){var Z,M;return E.includes((M=(Z=g.transferEntity)==null?void 0:Z.transferState)!=null?M:"TRANSFER_STATE_UNKNOWN")})};
ztO=function(h,E){if(E){var g,Z=(g=_.Jj(h,"playbackData",_.jD(E,"playbackData")))!=null?g:null,M;g=(M=_.Jj(h,"transfer",_.jD(E,"transfer")))!=null?M:null;var W;M=(W=_.Jj(h,"offlineVideoStreams",_.jD(E,"offlineVideoStreams")))!=null?W:null;var z;h=(z=_.Jj(h,"offlineVideoPolicy",_.jD(E,"offlineVideoPolicy")))!=null?z:null;if(Z||g||M||h)return{playbackDataEntity:Z,transferEntity:g,streamEntity:M,policyEntity:h}}};
_.rZ=function(h){var E=h.playbackData;if(!E)return[];var g=[];E=_.G(Object.keys(E));for(var Z=E.next();!Z.done;Z=E.next()){var M=Z.value;if(!asa(h,_.Bn(M).entityId)&&(Z=ztO(h,_.Bn(M).entityId))){var W=void 0,z=void 0;M=(z=Number((W=_.Jj(h,"playbackData",M))==null?void 0:W.streamDownloadTimestampSeconds))!=null?z:(0,_.zn)();g.push({entity:Z,streamDownloadTimestamp:M})}}return g.sort(function(c,I){var B=c.streamDownloadTimestamp,U=I.streamDownloadTimestamp;return U===B?c.entity.streamEntity&&!I.entity.streamEntity?
1:-1:U-B}).map(function(c){return c.entity})};
cmu=function(h){return _.GhN(_.rZ(h))};
_.iC$=function(h){return _.rZ(h).filter(function(E){var g;if(((g=E.policyEntity)==null?0:g.action)&&E.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var Z;if((Z=E.transferEntity)==null?0:Z.transferState){var M;return QRV.includes((M=E.transferEntity)==null?void 0:M.transferState)}return!0})};
asa=function(h,E){var g;return((g=_.Jj(h,"downloadStatusEntity",_.jD(E,"downloadStatusEntity")))==null?void 0:g.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
oTx=function(h){var E;if(h==null?0:(E=h.playbackDataEntity)==null?0:E.key)return _.Bn(h.playbackDataEntity.key).entityId;var g;if(h==null?0:(g=h.transferEntity)==null?0:g.key)return _.Bn(h.transferEntity.key).entityId;var Z;if(h==null?0:(Z=h.streamEntity)==null?0:Z.key)return _.Bn(h.streamEntity.key).entityId;var M;if(h==null?0:(M=h.policyEntity)==null?0:M.key)return _.Bn(h.policyEntity.key).entityId};
Rtz=function(h){var E=new Set,g;h=(g=h.mainDownloadsListEntity)==null?void 0:g[Is$];var Z;if(!(h==null?0:(Z=h.downloads)==null?0:Z.length))return E;var M;h==null||(M=h.downloads)==null||M.forEach(function(W){(W==null?0:W.videoItem)&&E.add(W.videoItem)});
return E};
mM=function(h,E){if(E){var g=_.Jj(h,"mainVideoEntity",_.jD(E,"mainVideoEntity")),Z=_.Jj(h,"downloadStatusEntity",_.jD(E,"downloadStatusEntity")),M=_.Jj(h,"ytMainChannelEntity",_.jD(E,"ytMainChannelEntity")),W={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};h=ztO(h,E);Z=(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.J("woffle_render_failed_download_state_ks")&&(Z==null?void 0:Z.downloadState)==="DOWNLOAD_STATE_FAILED";!h&&Z&&(h=W);if(h&&g&&
M)return Object.assign({},{videoEntity:g,channelEntity:M},h)}};
Bcz=function(h,E){return P_M(h,E)==="TRANSFER_STATE_COMPLETE"&&Wwz(h,E)};
U8a=function(h,E){if(!E)return!1;var g;h=(g=_.Jj(h,"playbackData",_.jD(E,"playbackData")))!=null?g:void 0;return!!h&&!!h.playerResponseJson};
P_M=function(h,E){if(!E)return"TRANSFER_STATE_UNKNOWN";var g=_.Jj(h,"transfer",_.jD(E,"transfer"));if(g){var Z;return(Z=g.transferState)!=null?Z:"TRANSFER_STATE_UNKNOWN"}g=_.Jj(h,"offlineOrchestrationActionWrapperEntity",_.jD(E,"offlineOrchestrationActionWrapperEntity"));h=_.Jj(h,"mainVideoEntity",_.jD(E,"mainVideoEntity"));return g||h?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Lwa=function(h,E){if(!E)return"TRANSFER_STATE_UNKNOWN";if(h=_.Jj(h,"transfer",_.jD(E,"transfer"))){var g;return(g=h.transferState)!=null?g:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
jxZ=function(h,E){return E&&(h=_.Jj(h,"videoPlaybackPositionEntity",_.jD(E,"videoPlaybackPositionEntity")),h==null?0:h.lastPlaybackPositionSeconds)?Number(h.lastPlaybackPositionSeconds):0};
C_z=function(h,E){return d8M(h).some(function(g){var Z;return(g==null?void 0:(Z=g.mainPlaylistEntity)==null?void 0:Z.playlistId)===E})};
et$=function(h,E,g){var Z=JmO(h,E);if(!Z.length)return[];E=[];Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;var W=mM(h,M);g&&P_M(h,M)!=="TRANSFER_STATE_COMPLETE"||W&&E.push(W)}return E};
JmO=function(h,E){if(!E)return[];var g=_.jD(E,"mainPlaylistEntity"),Z;E=(Z=h.mainPlaylistEntity)==null?void 0:Z[g];Z=[];if(E==null||!E.videos)return Z;E=_.G(E.videos);for(g=E.next();!g.done;g=E.next()){g=g.value;var M=void 0,W=void 0,z=void 0,c=(M=h)==null?void 0:(W=M.mainPlaylistVideoEntity)==null?void 0:(z=W[g])==null?void 0:z.video;c&&(g=_.Bn(c).entityId)&&Z.push(g)}return Z};
qUO=function(h,E){if(E){var g=_.Jj(h,"mainPlaylistEntity",_.jD(E,"mainPlaylistEntity")),Z=_.Jj(h,"mainPlaylistDownloadStateEntity",_.jD(E,"mainPlaylistDownloadStateEntity"));h=_.Jj(h,"ytMainChannelEntity",_.jD(E,"ytMainChannelEntity"));if(Z&&g)return Object.assign({},{mainPlaylistEntity:g,mainPlaylistDownloadStateEntity:Z},!!h&&{channelEntity:h})}};
d8M=function(h){return fs4(h).sort(function(E,g){return g.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedPlaylistEntities})};
fs4=function(h){var E=h.mainPlaylistDownloadStateEntity,g=[];if(!E)return g;for(var Z=_.G(Object.keys(E)),M=Z.next();!M.done;M=Z.next()){var W=M.value;M=qUO(h,_.Bn(W).entityId);var z=void 0;W=Number((z=E[W])==null?void 0:z.addedTimestampMillis);z=isNaN(W)?(0,_.zn)():W;M!==void 0&&g.push({downloadedPlaylistEntities:M,addedTimestampMillis:z})}return g};
NcV=function(h){var E,g=(E=h.mainPlaylistVideoEntity)!=null?E:{};return new Set(d8M(h).reduce(function(Z,M){Z=Z===void 0?[]:Z;var W,z;M==null||(W=M.mainPlaylistEntity)==null||(z=W.videos)==null||z.forEach(function(c){var I;(c=(I=g[c])==null?void 0:I.video)&&Z.push(c)});
return Z},[]))};
tiZ=function(h){return"downloadedMusicPlaylistEntities"in h};
SUW=function(h){return"mainPlaylistEntity"in h&&"mainPlaylistDownloadStateEntity"in h};
x8x=function(h){return"videoEntity"in h&&"channelEntity"in h};
wtu=function(h){var E=h.musicPlaylistDownloadMetadataEntity,g=[];if(!E)return g;for(var Z=_.G(Object.keys(E)),M=Z.next();!M.done;M=Z.next()){M=M.value;a:{var W=h,z=_.Bn(M).entityId;if(z){var c=_.Jj(W,"musicPlaylist",_.jD(z,"musicPlaylist"));W=_.Jj(W,"musicPlaylistDownloadMetadataEntity",_.jD(z,"musicPlaylistDownloadMetadataEntity"));if(c&&W){c={musicPlaylistEntity:c,musicPlaylistDownloadStateEntity:W};break a}}c=void 0}W=void 0;M=Number((W=E[M])==null?void 0:W.addedTimestampMillis);M=isNaN(M)?(0,_.zn)():
M;c!==void 0&&g.push({downloadedMusicPlaylistEntities:c,addedTimestampMillis:M})}return g};
D8$=function(h){var E=new Set;h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,"musicPlaylistEntity"in g&&"musicPlaylistDownloadStateEntity"in g){g=_.G(g.musicPlaylistEntity.tracks);for(var Z=g.next();!Z.done;Z=g.next())E.add(Z.value)}return E};
lsd=function(h,E){if(E){var g=_.Jj(h,"musicTrack",_.jD(E,"musicTrack")),Z=_.Jj(h,"musicArtist",_.jD(E,"musicArtist"))||{};if((h=ztO(h,E))&&g&&Z)return Object.assign({},{musicTrackEntity:g,musicArtistEntity:Z},h)}};
rmV=function(h){var E=h.musicTrackDownloadMetadataEntity,g=[];if(!E)return[];E=_.G(Object.keys(E));for(var Z=E.next();!Z.done;Z=E.next()){var M=Z.value;Z=lsd(h,_.Bn(M).entityId);var W=void 0;M=Number((W=_.Jj(h,"musicTrackDownloadMetadataEntity",M))==null?void 0:W.addedTimestampMillis);W=isNaN(M)?(0,_.zn)():M;Z!==void 0&&g.push({downloadedMusicEntities:Z,addedTimestampMillis:W})}return g};
HC$=function(h,E){if(!E)return[];if(Object.values(m8d).includes(E))return vTa(h,E);E=_.jD(E,"musicPlaylist");var g;h=(g=h.musicPlaylist)==null?void 0:g[E];g=[];if(h==null||!h.tracks)return g;h=_.G(h.tracks);for(E=h.next();!E.done;E=h.next())(E=_.Bn(E.value).entityId)&&g.push(E);return g};
vTa=function(h,E){var g=new Set,Z=wtu(h).map(function(W){return W.downloadedMusicPlaylistEntities});
Z=D8$(Z);Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())(M=_.Bn(M.value).entityId)&&g.add(M);return $8O(h).downloadedMusicEntities.filter(function(W){var z;if((z=W.musicTrackEntity)!=null&&z.videoId){W=W.musicTrackEntity;if(z=E==="PPOM"?!0:!g.has(W.videoId))b:switch(W=W.musicVideoType,E){case "PPSE":z=W==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:z=W!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}W=z}else W=!1;return W}).map(function(W){var z;
return(z=W.musicTrackEntity)==null?void 0:z.videoId})};
$8O=function(h){var E=rmV(h).sort(function(g,Z){return Z.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return"downloadedMusicEntities"in g?g.downloadedMusicEntities:tiZ(g)?g.downloadedMusicPlaylistEntities:{}});
h=wtu(h).sort(function(g,Z){return Z.addedTimestampMillis-g.addedTimestampMillis}).map(function(g){return"downloadedMusicEntities"in g?g.downloadedMusicEntities:tiZ(g)?g.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:E,downloadedMusicPlaylistEntities:h}};
OCV=function(h,E){E=_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?HC$(h,E):JmO(h,E);if(!E.length)return"TRANSFER_STATE_UNKNOWN";E=E.map(function(g){return Lwa(h,g)});
return Kw4(E)};
Kw4=function(h){var E=new Set(h);if(E.has("TRANSFER_STATE_FAILED")&&E.size===1)return"TRANSFER_STATE_FAILED";E.delete("TRANSFER_STATE_FAILED");if(E.has("TRANSFER_STATE_UNKNOWN")&&E.size===1)return"TRANSFER_STATE_PRE_TRANSFER";E.delete("TRANSFER_STATE_UNKNOWN");if(E.has("TRANSFER_STATE_PRE_TRANSFER")&&E.size===1||E.size===0)return"TRANSFER_STATE_PRE_TRANSFER";h=E.has("TRANSFER_STATE_TRANSFERRING");E=E.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return h||E?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
vn=function(h){var E=h.mainVideoDownloadStateEntity,g=[];if(!E)return[];E=_.G(Object.keys(E));for(var Z=E.next();!Z.done;Z=E.next()){var M=Z.value;if(!asa(h,_.Bn(M).entityId)){Z=mM(h,_.Bn(M).entityId);var W=void 0,z=void 0;M=(z=Number((W=_.Jj(h,"mainVideoDownloadStateEntity",M))==null?void 0:W.addedTimestampMillis))!=null?z:(0,_.zn)();Z!==void 0&&g.push({downloadedVideoEntities:Z,addedTimestampMillis:M})}}return g};
nT4=function(h){return vn(h).sort(function(E,g){return g.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities})};
_.YUx=function(h){var E=NcV(h),g=_.Hn(h),Z=Rtz(h),M=vn(h).filter(function(z){var c,I;if((z==null?void 0:(c=z.downloadedVideoEntities)==null?void 0:(I=c.transferEntity)==null?void 0:I.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var B,U;z=z==null?void 0:(B=z.downloadedVideoEntities)==null?void 0:(U=B.videoEntity)==null?void 0:U.key;return _.J("kevlar_use_library_entity")?z&&(Z.has(z)||g[z]):z&&!E.has(z)}),W=fs4(h).filter(function(z){return OCV(h,z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.$E(M),_.$E(W)).sort(function(z,c){return c.addedTimestampMillis-z.addedTimestampMillis}).map(function(z){return Xtq(z)})};
sx$=function(h,E){if(E&&Wwz(h,E)){var g,Z,M=(Z=(g=_.Jj(h,"playbackData",_.jD(E,"playbackData")))!=null?g:void 0)==null?void 0:Z.playerResponseJson;if(M){try{var W=JSON.parse(M);var z=_.Jj(h,"transfer",_.jD(E,"transfer")),c=jxZ(h,E);c&&(W=Object.assign({},W,{playerConfig:Object.assign({},W.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+c*1E3}}})}));W.cotn=z==null?void 0:z.cotn}catch(I){}return W}}};
_.khZ=function(h){var E,g,Z;h=(Z=(g=((E=h.downloadsPageViewConfigurationEntity)!=null?E:{})[_.$8])==null?void 0:g.smartDownloadsOptInBannerVisibility)!=null?Z:{};var M;return(M=_.e(h,Viu))!=null?M:{}};
_.Hn=function(h){var E,g,Z;h=(Z=(g=((E=h.mainDownloadsListEntity)!=null?E:{})[_.ymN])==null?void 0:g.downloads)!=null?Z:[];E={};g=_.G(h);for(Z=g.next();!Z.done;Z=g.next())h=void 0,E[(h=Z.value.videoItem)!=null?h:""]=!0;return E};
Fwq=function(h){var E=_.Hn(h);if(Object.keys(E).length===0)return!1;var g=h.mainVideoEntity;if(!g)return!0;g=_.G(Object.keys(g));for(var Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=_.Bn(Z).entityId;if(E[Z]&&!asa(h,M))return!1}return!0};
_.Ke=function(h){var E=_.Hn(h);return vn(h).sort(function(g,Z){return g.addedTimestampMillis-Z.addedTimestampMillis}).map(function(g){return g.downloadedVideoEntities}).filter(function(g){var Z;
return(g=g==null?void 0:(Z=g.videoEntity)==null?void 0:Z.key)&&!!E[g]})};
_.TcM=function(h){var E,g,Z;h=(Z=(g=((E=h.downloadsPageViewConfigurationEntity)!=null?E:{})[_.$8])==null?void 0:g.downloadsUpsellBannerVisibility)!=null?Z:{};var M;return(M=_.e(h,Amd))!=null?M:{}};
Xtq=function(h){return"downloadedVideoEntities"in h?h.downloadedVideoEntities:"downloadedPlaylistEntities"in h?h.downloadedPlaylistEntities:{}};
bCN=function(h){var E=_.Hn(h),g=NcV(h),Z=vn(h).filter(function(M){var W,z;return(M=M==null?void 0:(W=M.downloadedVideoEntities)==null?void 0:(z=W.videoEntity)==null?void 0:z.key)&&!E[M]&&!g.has(M)});
h=fs4(h);return[].concat(_.$E(Z),_.$E(h)).sort(function(M,W){return W.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return Xtq(M)})};
_.Oo=function(h){if(!_.J("kevlar_use_library_entity"))return bCN(h);var E=vn(h).filter(function(Z){var M,W;if(M=Z=Z==null?void 0:(M=Z.downloadedVideoEntities)==null?void 0:(W=M.videoEntity)==null?void 0:W.key){var z,c,I;M=((c=(z=h.mainDownloadsListEntity)==null?void 0:z[Is$])==null?0:(I=c.downloads)==null?0:I.length)?Rtz(h).has(Z):!1}return M}),g=fs4(h);
return[].concat(_.$E(E),_.$E(g)).sort(function(Z,M){return M.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return Xtq(Z)})};
u2a=function(h){var E=_.Hn(h),g=NcV(h);return nT4(h).filter(function(Z){var M;return(Z=Z==null?void 0:(M=Z.videoEntity)==null?void 0:M.key)&&!E[Z]&&!g.has(Z)})};
QxV=function(h){if(!_.J("kevlar_use_library_entity"))return u2a(h);var E=_.Hn(h),g=Rtz(h);return nT4(h).filter(function(Z){var M;return(Z=Z==null?void 0:(M=Z.videoEntity)==null?void 0:M.key)&&!E[Z]&&g.has(Z)})};
hFx=function(h,E){E=_.jD(E,"settingEntity");var g,Z,M;return!!((M=(Z=((g=h.settingEntity)!=null?g:{})[E])==null?void 0:Z.settingOptionValue)!=null?M:{}).boolValue};
_.ne=function(h){var E=_.Ke(h);if(MiN(E))return 0;var g=[];E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next()){Z=Z.value;var M=void 0,W=void 0;if((M=Z)==null?0:(W=M.videoEntity)==null?0:W.key)M=_.Bn(Z.videoEntity.key).entityId,Z=h,M=_.jD(M,"mainVideoDownloadStateEntity"),Z=_.Jj(Z,"mainVideoDownloadStateEntity",M),(Z=Number(Z==null?void 0:Z.addedTimestampMillis))&&g.push(Z)}return Math.max.apply(Math,_.$E(g))};
_.XM=function(h){return h.ui.richGridMiniMode};
_.Y8=function(h){return h.ui.richGridItemsPerRow};
_.EmO=function(h){return h.ui.richGridSlimItemsPerRow};
_.gm$=function(h){return h.ui.guideIsExpanded};
_.so=function(h){return h.ui.miniplayerIsActive};
ZSu=function(h){return h.ui.singleOptionSurveyIsActive};
_.V7=function(h){var E;return((E=h.ui)==null?void 0:E.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.Mnz=function(h){return _.V7(h)==="WEB_PAGE_TYPE_WATCH"};
_.Wua=function(h){return _.V7(h)==="WEB_PAGE_TYPE_SHORTS"};
_.pZ4=function(h){return h.ui.inlinePreviewIsActive};
_.GVN=function(h){return h.ui.inlinePreviewIsEnabled};
_.zFM=function(h){return h.ui.miniplayerPlaybackState};
_.k8=function(h){return h.ui.isOnline};
_.aIa=function(h){return h.ui.frostedGlassMode};
_.y7=function(h,E){return P_M(h.entities,E)};
_.FM=function(h,E){return OCV(h.entities,E)};
cca=function(h,E){var g;if(E){var Z;h=(Z=_.Jj(h.entities,"offlineVideoPolicy",_.jD(E,"offlineVideoPolicy")))==null?void 0:Z.action}else h=void 0;return(g=h)!=null?g:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
iSM=function(h,E){var g;E?(h=_.Jj(h.entities,"offlineVideoPolicy",_.jD(E,"offlineVideoPolicy")),h=Number(h==null?void 0:h.expirationTimestamp)):h=void 0;return(g=h)!=null?g:0};
_.omV=function(h){return _.rZ(h.entities).length};
IIu=function(h,E){return mM(h.entities,E)};
RFV=function(h,E){return qUO(h.entities,E)};
Aj=function(h,E){return(h=mM(h.entities,E))?_.htM([h]):0};
_.Pc$=function(h,E){var g=_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(g){var Z=h.entities;var M=HC$(Z,E);if(M.length){var W=[];M=_.G(M);for(var z=M.next();!z.done;z=M.next())(z=lsd(Z,z.value))&&W.push(z);Z=W}else Z=[]}else Z=et$(h.entities,E);var c;if(g){var I=h.entities;E?(E=_.jD(E,"musicPlaylist"),I=(c=I.musicPlaylist)==null?void 0:c[E],c=I!=null&&I.tracks?I.tracks.length:0):c=0}else c=h.entities,E?(E=_.jD(E,"mainPlaylistEntity"),c=(I=c.mainPlaylistEntity)==null?void 0:I[E],c=c!=null&&c.videos?
c.videos.length:0):c=0;return Z.length!==c?0:Z?ETx(Z):0};
_.BWx=function(h){return h.download.isLeaderTab};
_.UPa=function(h,E,g){if(!E&&g){var Z=h.entities;if(g){var M=ZC4(g),W,z;E=(z=(W=_.Jj(Z,"offlineabilityEntity",_.jD(M,"offlineabilityEntity")))==null?void 0:W.addToOfflineButtonState)!=null?z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else W=h.entities,E?(z=ZC4(E),E=(M=(Z=_.Jj(W,"offlineabilityEntity",_.jD(z,"offlineabilityEntity")))==null?void 0:Z.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return E};
Luz=function(h,E){h=h.entities;if(E){E=ZC4(E);var g,Z;E=(Z=(g=_.Jj(h,"offlineabilityEntity",_.jD(E,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else E="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return E};
_.jSa=function(h){var E=h.entities;h=_.k8(h);var g=hFx(E,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.J("kevlar_modern_downloads_page")&&g)var Z=!1;else{var M,W;E=(W=(M=((Z=E.downloadsPageViewConfigurationEntity)!=null?Z:{})[_.$8])==null?void 0:M.smartDownloadsOptInBannerVisibility)!=null?W:{};Z=h?!!E.visibleWithConnection:!!E.visibleWithoutConnection}return Z};
_.dPO=function(h){return hFx(h.entities,"SMART_DOWNLOADS_ENABLED")};
_.Ccz=function(h){return Fwq(h.entities)};
Jcu=function(h){return _.Ke(h.entities).every(function(E){var g;return(E==null?void 0:(g=E.transferEntity)==null?void 0:g.transferState)&&!QRV.includes(E.transferEntity.transferState)})};
_.eFq=function(h){var E,g,Z,M=(Z=(g=((E=h.entities.downloadsPageViewConfigurationEntity)!=null?E:{})[_.$8])==null?void 0:g.downloadsUpsellBannerVisibility)!=null?Z:{};return _.k8(h)?!!M.visibleWithConnection:!!M.visibleWithoutConnection};
_.qk$=function(h,E){return asa(h.entities,E)};
fId=function(h,E){if(E){var g,Z;h=(Z=(g=_.Jj(h.entities,"downloadStatusEntity",_.jD(E,"downloadStatusEntity")))==null?void 0:g.downloadState)!=null?Z:"DOWNLOAD_STATE_UNKNOWN"}else h="DOWNLOAD_STATE_UNKNOWN";return h};
Ty=function(h,E){return jxZ(h.entities,E)};
xP$=function(h){h=NWz(h);var E=h.hours===void 0?0:h.hours,g=h.minutes===void 0?0:h.minutes,Z=h.seconds===void 0?0:h.seconds,M=E>0;h=[];M&&(E=tn$(E),h.push(E));E=M;E=E===void 0?!1:E;g=(["af","be","lt"].includes(bV)||E)&&g<10?Skd().format(g):(new Intl.NumberFormat("en-u-nu-latn")).format(g);h.push(g);g=Skd().format(Z);h.push(g);g=":";"da fi id si sr sr-Latn".split(" ").includes(bV)&&(g=".");return h.join(g)};
_.DPz=function(h){h=NWz(h);var E=h.hours===void 0?0:h.hours,g=h.minutes===void 0?0:h.minutes,Z=h.seconds===void 0?0:h.seconds;h=[];if(E>0){var M=wZW().format({hours:E});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(bV)||E>9999)M=M.replace(E.toString(),tn$(E)),bV==="km"&&(M=M.replace(".",","));h.push(M)}g>0&&h.push(wZW().format({minutes:g}));Z>0&&h.push(wZW().format({seconds:Z}));E="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");g=bV=="am"?"{0}\u1363 ":bV=="fa"?"{0}\u060c\u200f ":
bV=="my"?"{0} - ":bV=="ne"?"{0},":bV=="th"?"{0} ":bV=="ur"?"{0}\u060c ":bV=="ar"||bV=="ar-XB"?"{0} \u0648":bV=="ja"||bV=="zh-CN"||bV=="zh-HK"||bV=="zh-TW"?"{0}\u3001":"{0}, ";Z=bV=="am"?"\u1363 ":bV=="fa"?"\u060c\u200f ":bV=="my"?" - ":bV=="th"?" ":bV=="ur"?"\u060c ":bV=="ar"||bV=="ar-XB"?" \u0648":bV=="ja"||bV=="zh-CN"||bV=="zh-HK"||bV=="zh-TW"?"\u3001":", ";M=bV=="am"?" \u12a5\u1293 {0}":bV=="as"?" \u0986\u09f0\u09c1 {0}":bV=="az"?" v\u0259 {0}":bV=="bn"?" \u098f\u09ac\u0982 {0}":bV=="cs"?" a\u00a0{0}":
bV=="de"?" und {0}":bV=="el"?" \u03ba\u03b1\u03b9 {0}":bV=="eu"?" eta {0}":bV=="fa"?"\u060c \u0648 {0}":bV=="fil"?", at {0}":bV=="gu"?" \u0a85\u0aa8\u0ac7 {0}":bV=="hi"?", \u0914\u0930 {0}":bV=="hu"?" \u00e9s {0}":bV=="hy"?" \u0587 {0}":bV=="id"?", dan {0}":bV=="iw"?" \u05d5-{0}":bV=="ja"?"\u3001{0}":bV=="ka"?" \u10d3\u10d0 {0}":bV=="km"?" \u1793\u17b7\u1784 {0}":bV=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":bV=="ko"?" \ubc0f {0}":bV=="ky"?" \u0436\u0430\u043d\u0430 {0}":bV=="lt"?" ir {0}":bV==
"lv"?" un {0}":bV=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":bV=="mr"?" \u0906\u0923\u093f {0}":bV=="ms"?" dan {0}":bV=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":bV=="ne"?" \u0930 {0}":bV=="or"?", \u0b13 {0}":bV=="pa"?" \u0a05\u0a24\u0a47 {0}":bV=="ro"?" \u0219i {0}":bV=="si"?", \u0dc3\u0dc4 {0}":bV=="sk"?" a {0}":bV=="sl"?" in {0}":bV=="sq"?" dhe {0}":bV=="sv"?" och {0}":bV=="sw"?" na {0}":bV=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":bV=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
bV=="th"?" \u0e41\u0e25\u0e30{0}":bV=="tr"?" ve {0}":bV=="ur"?"\u060c \u0627\u0648\u0631 {0}":bV=="uz"?" va {0}":bV=="vi"?" v\u00e0 {0}":bV=="zh-HK"?"\u53ca{0}":bV=="zu"?", ne-{0}":bV=="af"||bV=="nl"?" en {0}":bV=="ar"||bV=="ar-XB"?" \u0648{0}":bV=="be"||bV=="uk"?" \u0456 {0}":bV=="en-GB"||bV=="en-IN"?" and {0}":bV=="en"||bV=="en-XA"?", and {0}":bV=="et"||bV=="fi"?" ja {0}":bV=="fr"||bV=="fr-CA"?" et {0}":bV=="zh-CN"||bV=="zh-TW"?"\u548c{0}":bV=="da"||bV=="is"||bV=="no"?" og {0}":bV=="es"||bV=="es-419"||
bV=="es-US"?" y {0}":bV=="kk"||bV=="lo"||bV=="mn"?", {0}":bV=="bg"||bV=="mk"||bV=="ru"||bV=="sr"?" \u0438 {0}":bV=="gl"||bV=="it"||bV=="pt-BR"||bV=="pt-PT"?" e {0}":" i {0}";var W=bV=="am"?"{0} \u12a5\u1293 {1}":bV=="as"?"{0} \u0986\u09f0\u09c1 {1}":bV=="az"?"{0} v\u0259 {1}":bV=="bn"?"{0} \u098f\u09ac\u0982 {1}":bV=="de"?"{0} und {1}":bV=="el"?"{0} \u03ba\u03b1\u03b9 {1}":bV=="eu"?"{0} eta {1}":bV=="fa"?"{0} \u0648 {1}":bV=="fil"?"{0} at {1}":bV=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":bV=="hi"?"{0} \u0914\u0930 {1}":
bV=="hu"?"{0} \u00e9s {1}":bV=="hy"?"{0} \u0587 {1}":bV=="iw"?"{0} \u05d5-{1}":bV=="ja"?"{0}\u3001{1}":bV=="ka"?"{0} \u10d3\u10d0 {1}":bV=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":bV=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":bV=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":bV=="ko"?"{0} \ubc0f {1}":bV=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":bV=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":bV=="lt"?"{0} ir {1}":bV=="lv"?"{0} un {1}":bV=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":bV=="mn"?"{0}, {1}":bV==
"mr"?"{0} \u0906\u0923\u093f {1}":bV=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":bV=="ne"?"{0} \u0930 {1}":bV=="or"?"{0} \u0b13 {1}":bV=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":bV=="ro"?"{0} \u0219i {1}":bV=="si"?"{0} \u0dc3\u0dc4 {1}":bV=="sl"?"{0} in {1}":bV=="sq"?"{0} dhe {1}":bV=="sv"?"{0} och {1}":bV=="sw"?"{0} na {1}":bV=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":bV=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":bV=="th"?"{0}\u0e41\u0e25\u0e30{1}":bV=="tr"?"{0} ve {1}":bV=="ur"?
"{0} \u0627\u0648\u0631 {1}":bV=="uz"?"{0} va {1}":bV=="vi"?"{0} v\u00e0 {1}":bV=="zh-HK"?"{0}\u53ca{1}":bV=="zu"?"{0} ne-{1}":bV=="af"||bV=="nl"?"{0} en {1}":bV=="ar"||bV=="ar-XB"?"{0} \u0648{1}":bV=="be"||bV=="uk"?"{0} \u0456 {1}":bV=="cs"||bV=="sk"?"{0} a\u00a0{1}":bV=="et"||bV=="fi"?"{0} ja {1}":bV=="fr"||bV=="fr-CA"?"{0} et {1}":bV=="id"||bV=="ms"?"{0} dan {1}":bV=="zh-CN"||bV=="zh-TW"?"{0}\u548c{1}":bV=="da"||bV=="is"||bV=="no"?"{0} og {1}":bV=="es"||bV=="es-419"||bV=="es-US"?"{0} y {1}":bV==
"bg"||bV=="mk"||bV=="ru"||bV=="sr"?"{0} \u0438 {1}":bV=="en"||bV=="en-GB"||bV=="en-IN"||bV=="en-XA"?"{0} and {1}":bV=="gl"||bV=="it"||bV=="pt-BR"||bV=="pt-PT"?"{0} e {1}":"{0} i {1}";bV==="sq"?(M=M.replace("dhe","e"),W=W.replace("dhe","e")):bV==="th"?(Z=Z.replace("{0}"," {0}"),W=W.replace("{0}","{0} "),W=W.replace("{1}"," {1}")):bV==="ne"?Z=",":bV==="zh-CN"?Z="":E.includes(bV)&&(Z=" ");return h.length<2?h.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(bV)?
h.length===2?W.replace("{0}",h[0]).replace("{1}",h[1]):g.replace("{0}",h[0])+h.slice(1,-1).join(Z)+M.replace("{0}",h[h.length-1]):h.join(Z)};
NWz=function(h){var E=h.hours||0,g=h.minutes||0,Z=h.seconds||0;E=Z+g*60+E*3600+(h.days||0)*86400+(h.weeks||0)*604800+(h.months||0)*2629800+(h.years||0)*31557600;if(E<=0)return{hours:0,minutes:0,seconds:0};h=E;E=Math.floor(h/3600);h%=3600;g=Math.floor(h/60);Z=Math.floor(h%60);return{hours:E,minutes:g,seconds:Z}};
tn$=function(h){h=(new Intl.NumberFormat("en-u-nu-latn")).format(h);var E=["fr"],g="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(bV)?h.replace(",","\u00a0"):E.includes(bV)?h.replace(",","\u202f"):g.includes(bV)?h.replace(",","."):h};
Skd=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
wZW=function(){lIu||(uV=rc$,lIu=new mP$);return lIu};
vmM=function(h){try{return(new _.Q7(5)).format(h)}catch(E){}};
hk=function(h){return{thumbnailOverlayDownloadingRenderer:{state:h}}};
HSW=function(h){if(h=vmM(h))return{thumbnailOverlaySidePanelRenderer:{text:_.iV(h),icon:{iconType:"PLAYLISTS"}}}};
$P$=function(){var h=_.NH("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.iV(h),icon:{iconType:"PLAY_ALL"}}}};
Kux=function(h){h=_.E8(h,2);return bV!=="ru"&&bV!=="es_419"&&bV!=="es-419"&&bV!=="es"&&bV!=="es_US"&&bV!=="es-US"&&bV!=="fr"&&bV!=="pl"&&bV!=="it"&&bV!=="nl"&&bV!=="uk"&&bV!=="fr_CA"&&bV!=="fr-CA"||h===""?h:h[0].toLocaleUpperCase()+h.substring(1)};
nmz=function(h){return function(E){var g=h(),Z=_.E8(E,g.dateFormat);E=_.E8(E,g.timeFormat);var M=OS4.DATETIMEFORMATS[g.joinerStyle];M=M.replace(/'(?!')/g,"");M=M.replace("{0}",E);M=M.replace("{1}",Z);return g.capitalize(M)}};
XZO=function(h){return h?typeof h.seconds==="string"&&(h.nanos===void 0||typeof h.nanos==="number"):!1};
YkZ=function(h){return new Date(Number(h.seconds)*1E3+(h.nanos||0)*1E-6)};
_.E8=function(h,E){if(typeof h.getTime==="function")h={date:h};else if(XZO(h))h={date:YkZ(h)};else if(typeof XZO(h.timestamp)&&typeof h.i18nInternalSecondsEastOfUtc==="number")h={date:YkZ(h.timestamp),timeZone:gN(-h.i18nInternalSecondsEastOfUtc/60)};else throw Error("Jf`"+JSON.stringify(h));var g=h;h=g.date;g=g.timeZone;E=sS4(E).format(h,g);bV==="zh-TW"&&(h=g?Number(sS4("H").format(h,g)):h.getHours(),E=h<5?E.replace("\u4e0a\u5348","\u51cc\u6668"):h<8?E.replace("\u4e0a\u5348","\u65e9\u4e0a"):h<12?
E.replace("\u4e0a\u5348","\u4e0a\u5348"):h<13?E.replace("\u4e0b\u5348","\u4e2d\u5348"):h<19?E.replace("\u4e0b\u5348","\u4e0b\u5348"):E.replace("\u4e0b\u5348","\u665a\u4e0a"));return E};
sS4=function(h){if(VnN.has(h))return VnN.get(h);var E=kVz(h);E=yc$(E);FuV!==!0&&(FuV=!0);Aca=!0;Aca=!1;E=new Z9(E,OS4);VnN.set(h,E);return E};
kVz=function(h){return(new Z9(h,OS4)).patternParts_.map(function(E){return E.type===0?"'"+E.text+"'":E.text}).join("")};
yc$=function(h){return bV==="en"||bV==="es_US"||bV==="es-US"?h:h.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(E,g,Z){return"H".repeat(g.length)+Z})};
glz=function(h,E){TW$||(uV=rc$,TW$=new bSZ);var g=TW$;a:if(h=up$(h),E=up$(E||new Date),h>E)g=h.getTime()-E.getTime()>6048E5?_.E8(h,1):QSO(h);else{for(var Z=0;hgZ(h,12*(Z+1))<E;)++Z;if(Z>0)g=g.format(-Z,0);else{for(Z=0;hgZ(h,Z+1)<E;)++Z;if(Z>0)g=g.format(-Z,2);else{h=E.getTime()-h.getTime();E=_.G(ElM);for(Z=E.next();!Z.done;Z=E.next()){Z=Z.value;var M=Z.unit,W=Math.floor(h/Z.unitDuration);if(W>=(Z.threshold===void 0?1:Z.threshold)){g=g.format(-W,M);break a}}g=g.format(-0,7)}}}return g};
up$=function(h){if(typeof h.getTime==="function")return h;if(XZO(h))return YkZ(h);throw Error("Kf`"+JSON.stringify(h));};
hgZ=function(h,E){for(var g=0,Z;;++g)if(Z=new Date(h.getFullYear(),h.getMonth()+E,h.getDate()-g,h.getHours(),h.getMinutes(),h.getSeconds()),Z.getMonth()===(h.getMonth()+E)%12)return Z};
_.MR=function(h){return{runs:[{text:h}]}};
_.Wp=function(h){if(h&&h.simpleText)return h.simpleText;var E="";if(h&&h.runs)for(var g=0;g<h.runs.length;g++)h.runs[g].text&&(E+=h.runs[g].text);return E};
M1u=function(h,E,g,Z){return h.videoEntity&&!h.policyEntity&&g!=="DOWNLOAD_STATE_FAILED"?[hk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:wZ(h.policyEntity)&&E!=="TRANSFER_STATE_FAILED"&&E!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?E==="TRANSFER_STATE_PAUSED_BY_USER"?[hk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.D$(E)?[hk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:h.videoEntity.lengthSeconds?Z6x(h.videoEntity.lengthSeconds,Z):[]:
[hk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Z6x=function(h,E){var g=[{thumbnailOverlayTimeStatusRenderer:{text:_.iV(xP$({seconds:h})),style:"DEFAULT"}}];E&&(h=E<=0||h<=0?0:E>=h?100:Math.ceil(E*100/h),h>0&&g.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:h}}));return g};
Wa4=function(h,E,g,Z,M){if(E==="TRANSFER_STATE_UNKNOWN"||!h)return{};if(_.D$(E)||E==="TRANSFER_STATE_PRE_TRANSFER")var W=[hk("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var z,c;if(E==="TRANSFER_STATE_COMPLETE"&&((z=h.mainPlaylistEntity)==null?0:(c=z.videos)==null?0:c.length)){if(_.J("web_modern_collections_v2")){var I;var B=(W=h.mainPlaylistEntity)==null?void 0:(I=W.videos)==null?void 0:I.length;W=(W=vmM(B))?{thumbnailOverlayBottomPanelRenderer:{text:_.iV(W),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var U;W=HSW((B=h.mainPlaylistEntity)==null?void 0:(U=B.videos)==null?void 0:U.length)}var L;W=[$P$(),Object.assign({},(L=W)!=null?L:{})]}else W=[]}L=W;a:if(E==="TRANSFER_STATE_PRE_TRANSFER")g=oY(_.NH("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE")g=oY(_.NH("WAITING_TO_DOWNLOAD"));else if(_.D$(E))g=Math.floor(g*100).toString(),g=oY(_.NH("DOWNLOADING_PERCENT",{percent:g},"Downloading... "+g+"%"));else{if(Z&&(_.J("playlist_is_offline_selector_killswitch")&&
(M=_.GF().resolve(_.bK).isNetworkAvailable()),M)){g=aLZ(_.NH("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),GgV(Z));break a}g=void 0}E=E==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.NH("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},L.length?{thumbnailOverlays:L}:{},g?{viewPlaylistText:g}:{viewPlaylistText:_.MR("")},E.length?{badges:E}:{})};
p4M=function(h,E,g,Z,M,W){if(E==="TRANSFER_STATE_UNKNOWN"||!h)return{};if(Z==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var z=M1u(h,E,Z);if(h.videoEntity&&!h.policyEntity&&Z!=="DOWNLOAD_STATE_FAILED"){var c=_.NH("WAITING_TO_DOWNLOAD");if(c)return{shortViewCountText:_.MR(c),publishedTimeText:void 0,thumbnailOverlays:z}}if(!wZ(h.policyEntity)){W=h.policyEntity&&!gTW(h.policyEntity)?_.NH("DOWNLOAD_EXPIRED",{},"Download expired"):
_.NH("TRANSFER_FAILED",{},"Download failed");var I;if((I=h.policyEntity)==null?0:I.shortMessageForDisabledAction)W=h.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:oY(W),publishedTimeText:void 0,thumbnailOverlays:z}}if(E==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.MR(_.NH("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:z};if(E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.MR(_.NH("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:z};if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(I=_.NH("WAITING_TO_DOWNLOAD"),Z==="DOWNLOAD_STATE_PAUSED"&&(I=_.NH("DOWNLOAD_PAUSED",{},"Download paused")),I))return{shortViewCountText:_.MR(I),publishedTimeText:void 0,thumbnailOverlays:z};if(_.D$(E))return h=Math.floor(g*100).toString(),{shortViewCountText:_.MR(_.NH("DOWNLOADING_PERCENT",{percent:h},"Downloading... "+h+"%")),publishedTimeText:void 0,thumbnailOverlays:z};E=void 0;h.videoEntity.publishedTimestampMillis&&
(E=new Date,M&&(E=new Date(M)),E=oY(glz(new Date(Number(h.videoEntity.publishedTimestampMillis)),E)));M=[];_.J("kevlar_woffle_badge_killswitch")||(M=[{metadataBadgeRenderer:{label:_.NH("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var B;h=oY((B=h.videoEntity.localizedStrings)==null?void 0:B.viewCount);return Object.assign({},W?{shortViewCountText:void 0}:{shortViewCountText:h},W?{}:{publishedTimeText:E},{badges:M,thumbnailOverlays:z})};
zg$=function(h,E){h=h===void 0?_.Grz:h;switch(E.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:E.payload.playlistId,inviteLinkURL:E.payload.inviteLinkUrl};default:return h}};
c6a=function(h,E){h=h===void 0?_.aXW:h;switch(E.type){case "SET_CURRENT_FORM_ID":return E=E.payload.formId,h.currentFormId===E?h:{currentFormId:E,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var g=E.payload;E=g.groupId;g=g.command;if(h.currentFormId){var Z=Object.assign({},h.commandsMap);Z[E]=g;h=Object.assign({},h,{commandsMap:Z})}return h;case "RESET_COMMAND_MAP":return Object.assign({},h,{commandsMap:{}});default:return h}};
ol4=function(h,E){h=h===void 0?_.i6z:h;switch(E.type){case "UPDATE_CANVAS_MODE":return Object.assign({},h,{currentMode:E.payload.currentMode});default:return h}};
Rgq=function(h,E){h=h===void 0?_.IXz:h;switch(E.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},h,{guideIsExpanded:E.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},h,{scrollAtTop:E.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},h,{guideIsVisibleButNotPersistent:E.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},h,{miniplayerIsActive:E.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},h,{singleOptionSurveyIsActive:E.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},h,{slimlineSurveyRatingSelectedIndex:E.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},h,{richGridMiniMode:E.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},h,{richGridItemsPerRow:E.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},h,{richGridSlimItemsPerRow:E.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},h,{richGridContainerWidth:E.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},h,{richGridStyle:E.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},h,{currentPageType:E.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},h,{inlinePreviewIsActive:E.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},h,{inlinePreviewIsEnabled:E.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},h,{darkModeIsEnabled:E.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
h,{miniplayerPlaybackState:E.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},h,{tabGesturesIsActive:E.payload});case "SET_ONLINE_STATUS":return Object.assign({},h,{isOnline:E.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},h,{chipBarIsSticky:E.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},h,{frostedGlassMode:E.payload});default:return h}};
PkW=function(){return _.J("kevlar_disable_theater_mode_persistence")?!1:_.Xn("START_IN_THEATER_MODE")};
UJN=function(h,E){h=h===void 0?_.BKW:h;switch(E.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},h,{transcription:E.payload});case "SET_OVERLAY_STATE":return Object.assign({},h,{overlay:E.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return h}};
MRd=function(){return fQ(Object.assign({},{continuation:LaO,download:jUq,canvas:ol4,reportChannelAbuse:b6a,share:uda,talkToRecs:QUa,ui:Rgq,voiceSearch:UJN,watch:h_O,ypc:EKW,shorts:gKd,radioButtonGroup:c6a,collabInviteLink:zg$},ZJN))};
GAZ=function(){return _.J("web_player_entities_middleware")?new pm(MRd(),[Wld,pBO]):new pm(MRd(),[Wld])};
_.Gv=function(){z_d||(z_d=GAZ());return z_d};
a7d=function(h,E,g){if(h.length)return{titleText:_.iV(E!=null?E:_.NH("DOWNLOADS",void 0,"Downloads")),contents:h.map(function(Z){var M=Z.videoEntity;Z={videoId:M.videoId,title:oY(M.title),shortBylineText:oY(Z.channelEntity.title),thumbnail:M.thumbnail};var W=M.videoId?Ty(_.Gv().getState(),M.videoId):0;M.videoId&&g?Z.navigationEndpoint=_.cn(M.videoId,g,void 0,void 0,W):M.videoId&&(Z.navigationEndpoint=pkz(M.videoId,W,M.lengthSeconds));M.lengthSeconds&&(Z.thumbnailOverlays=Z6x(M.lengthSeconds,W));return{playlistPanelVideoRenderer:Z}}),
totalVideos:h.length}};
cgz=function(h){return(h=(0,_.Kt.getValueByKeys)(h,"playlistId"))?{playlistId:h}:null};
iJW=function(){return{}};
oKN=function(h,E){return new _.jM(function(g,Z){h.then(function(M){if(M){if(M=E(M))return g(M);Z()}},Z)})};
I7$=function(h){var E,g,Z,M=(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.autoplay)==null?void 0:Z.autoplay,W,z,c;E=(W=h.contents)==null?void 0:(z=W.twoColumnWatchNextResults)==null?void 0:(c=z.playlist)==null?void 0:c.playlist;return M&&E&&E.playlistId?{rawResponse:h,autoplayRenderer:M,playlistPanelRenderer:E,playlistId:E.playlistId}:null};
PeV=function(h){var E=E===void 0?"UNKNOWN_INTERFACE":E;if(h.length===1)return h[0];var g=R_V[E];if(g){g=new RegExp(g);for(var Z=_.G(h),M=Z.next();!M.done;M=Z.next())if(M=M.value,g.exec(M))return M}var W=[];Object.entries(R_V).forEach(function(z){var c=_.G(z);z=c.next().value;c=c.next().value;E!==z&&W.push(c)});
g=new RegExp(W.join("|"));h.sort(function(z,c){return z.length-c.length});
Z=_.G(h);for(M=Z.next();!M.done;M=Z.next())if(M=M.value,!g.exec(M))return M;return h[0]};
_.zv=function(h){return"/youtubei/v1/"+PeV(h)};
_.at=function(h){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:h}}}}};
_.cp=function(h){return _.at(_.MR(h))};
BPZ=function(h,E){var g={mode:"NORMAL"};h&&(g.autoplayVideo=h.navigationEndpoint,g.nextButtonVideo=h.navigationEndpoint);E&&(g.previousButtonVideo=E.navigationEndpoint);return g};
jqa=function(h,E,g){if(!g||!g.sets)return{sets:[BPZ(h,E)]};var Z=g.sets.find(function(z){return z.mode==="NORMAL"}),M=(0,_.Kt.unsafeClone)(g);
if(!Z)return M.sets.push(BPZ(h,E)),M;if(!h)return g;Z=_.Kt.getValueByKeys.apply(null,[Z].concat(_.$E(Uyu)));var W=_.Kt.getValueByKeys.apply(null,[h].concat(_.$E(Ll$)));if(Z===W)return g;M.sets=M.sets.filter(function(z){return z.mode!=="NORMAL"});
M.sets.push(BPZ(h,E));return M};
dyN=function(h){return!!h.playlistPanelVideoRenderer&&!h.playlistPanelVideoRenderer.unplayableText};
Ceq=function(h){return!!h.playlistPanelVideoRenderer&&!!h.playlistPanelVideoRenderer.title};
Jg4=function(h,E){if(E.contents&&!(h>=E.contents.length)&&(h=E.contents.slice(h).find(dyN)))return h.playlistPanelVideoRenderer};
e_4=function(h,E){if(E.contents)return(E=E.contents.find(function(g){return!!g.playlistPanelVideoRenderer&&g.playlistPanelVideoRenderer.videoId===h}))?E.playlistPanelVideoRenderer:void 0};
qEO=function(h,E){return E.contents?E.contents.findIndex(function(g){return!!g.playlistPanelVideoRenderer&&g.playlistPanelVideoRenderer.videoId===h}):-1};
f7O=function(h,E){return E.contents?E.contents.findIndex(function(g){return!!g.playlistPanelVideoRenderer&&g.playlistPanelVideoRenderer.playlistSetVideoId===h}):-1};
NP$=function(h,E){h.contents&&E!==-1&&h.contents.splice(E,1).length===1&&h.totalVideos!==void 0&&(--h.totalVideos,delete h.videoCountText)};
_.tRu=function(h){var E=[];if(!h||!h.contents)return E;h=_.G(h.contents);for(var g=h.next();!g.done;g=h.next())g=g.value,g.playlistPanelVideoRenderer&&g.playlistPanelVideoRenderer.videoId&&E.push(g.playlistPanelVideoRenderer.videoId);return E};
_.SE4=function(h){if(h&&h.contents)return(h=h.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&!!E.playlistPanelVideoRenderer.selected})||h.contents[h.currentIndex])?h.playlistPanelVideoRenderer:void 0};
xyW=function(h,E,g,Z,M,W,z){M=M===void 0?!1:M;W=W===void 0?!1:W;z=z===void 0?!1:z;if(h.contents&&h.contents.length!==0){Z&&(h.contents=h.contents.filter(Z));Z=h.contents.length;for(var c=0;c<Z;c++){var I=h.contents[c].playlistPanelVideoRenderer;I&&(c===E?(W&&delete I.menu,I.indexText=_.MR("\u25b6")):M||h.isInfinite||I.indexText===void 0?delete I.indexText:I.indexText=_.MR((c+1+g).toString()))}h.currentIndex=E+g;z&&(delete h.videoCountText,h.totalVideos=Z)}};
_.iU=function(h){h=wBO(h);if(h){var E=h.length;var g=-81%E;g<0&&(g=E+g);h=h.slice(E-g)+h.slice(0,E-g)}else h="";g="";for(E=0;E<h.length&&h[E]!==DyM;E++)g+=h[E];return g};
_.l7$=function(h,E){var g=document.body;E=E===void 0?function(c){return c}:E;
var Z,M=null;h=_.G(h);for(Z=h.next();!Z.done;Z=h.next()){var W=Z.value;Z="div";W[2]&&(Z=E(W[2]));Z=document.createElement(Z);M||(M=Z);var z=W[0];W=W[1];z&&(Z.id=E(z));if(W)for(W=_.G(W),z=W.next();!z.done;z=W.next())Z.classList.add(E(z.value));g.appendChild(Z);g=Z}return[M,g]};
rgq=function(h,E){for(var g="",Z=0;Z<E;Z++)g+=h.charAt(Math.floor(Math.random()*h.length));return g};
ot=function(h){return rgq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",h)};
It=function(h){return rgq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",h)};
Rt=function(h){return rgq("0123456789",h)};
myV=function(){var h=performance.now(),E=new Date;var g="2."+E.getFullYear()+String(E.getMonth()+1).padStart(2,"0")+String(E.getDate()).padStart(2,"0");for(var Z,M=Math.floor(Math.random()*11)+15,W=[],z=0;z<M;z++)W.push(Math.floor(Math.random()*26476865)+24547720);Z=W.join(",");var c=ot(10),I=ot(100),B=ot(102),U=ot(106),L=ot(108),d=ot(11),C=ot(1140),q=ot(123),w=ot(14),r=ot(16),v=ot(1900),H=ot(23),u=ot(26),k=ot(34),y=ot(397),A=ot(44),E4=ot(5),iO=ot(72),RW=ot(74),NN=ot(75),Cd=ot(88),Ba=ot(91),$$="rr1---sn-aigl6nsd rr2---sn-aigzrne7 rr5---sn-ntqe6nee rr4---sn-q4fzenee rr3---sn-q4flrnsk rr2---sn-hgn7ynek rr1---sn-q4fl6ns7 rr3---sn-hgn7rnls rr1---sn-q4fl6nds rr3---sn-q4flrnlz rr1---sn-q4flrner rr2---sn-q4flrnsd rr3---sn-ntq7yner rr5---sn-5hne6nz6 rr1---sn-hgn7rn7y rr3---sn-q4flrn7k rr5---sn-5hne6n6l rr1---sn-5hne6n6e rr3---sn-q4flrnl6 rr3---sn-ntqe6n76".split(" ");
var Ha=$$[Math.floor(Math.random()*$$.length)];var zf=(new Date("2010-01-01")).getTime();var eF=(new Date(zf+Math.random()*((new Date).getTime()-zf))).toISOString().split("T")[0];for(var Rm,bO=[],jF=0;jF<4;jF++)bO.push(Math.floor(Math.random()*100));Rm=bO.join(".");var PM=Number(Rt(5)),ll=Number(Rt(6)),xU=Number(Rt(7)),pU=Number(Rt(9)),pd=Rt(1),gB=Rt(10),CD=Rt(16),E0=Rt(19),Im=Rt(2),Qk=Rt(20),TN=Rt(21),hC=Rt(3),cM=Rt(4),FC=Rt(5),jx=Rt(6),wB=Rt(7),fD=Rt(8),U0=Rt(9);var QF=rgq("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var RG=[It(5),It(5),It(5)].join("%2C"),Db=[Rt(3),Rt(5),Rt(5)].join("%2C"),mO=It(0),XC=It(1),$U=It(10),kU=It(108),zN=It(11),IC=It(12),QL=It(13),Fi=It(14),Ro=It(15),HA=It(16),xL=It(17),tM=It(18),Kd=It(19),k$=It(2),LD=It(20),Pc=It(22),D0=It(23),ex=It(24),qA=It(266),Jn=It(3),rI=It(30),dU=It(34),UD=It(35),tb=It(36),Oq=It(4),KM=It(40),s9=It(43),A1=It(47),j6=It(5),j8=It(6),gG=It(7),JI=It(75),Fz=It(8),dI=It(80),nU=It(9),zp="https://www."+It(12)+".com",If={},Ab={},Yd={},bs={},f4={},Dh={},la={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:Z}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:g},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+It(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:g},{key:"client.name",value:"WEB"},{key:"client.fexp",value:Z}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:TN+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+It(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:KM,ypcGetOfflineUpsellEndpoint:{params:dI}},trackingParams:UD+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&cnr="+Im+"&ratebypass=yes&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&c=WEB&txp="+wB+"&n="+r+"&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:ll,width:640,height:360,lastModified:CD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wB,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Db+"&mn="+
RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&cnr="+Im+"&ratebypass=yes&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&c=WEB&txp="+wB+"&n="+r+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+kU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:ll,width:1280,
height:720,lastModified:CD,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wB,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+RG+"&ms="+
RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:xU,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xU,approxDurationMs:wB},{itag:248,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+RG+"&ms="+RG+"&mv="+
XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/webm; codecs="vp9"',bitrate:xU,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:399,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:xU,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xU,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:136,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:xU,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ll,approxDurationMs:wB},{itag:247,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+
RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:xU,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:398,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+U0+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:xU,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:U0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:135,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ll,approxDurationMs:wB},{itag:244,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+
RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+kU+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/webm; codecs="vp9"',bitrate:ll,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:397,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:ll,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:134,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ll,highReplication:!0,approxDurationMs:wB},{itag:243,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/webm; codecs="vp9"',bitrate:ll,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:396,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:133,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ll,approxDurationMs:wB},{itag:242,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+
RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:395,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ll,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:160,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:ll,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:PM,approxDurationMs:wB},{itag:278,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+Db+"&mn="+
RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&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:ll,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:PM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:394,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&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="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=video%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:PM,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:PM,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:wB},{itag:140,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=audio%2Fmp4&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:ll,
initRange:{start:"0",end:"631"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ll,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wB,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+
Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=audio%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+wB+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'audio/webm; codecs="opus"',bitrate:PM,initRange:{start:"0",end:"265"},indexRange:{start:hC,
end:cM},lastModified:CD,contentLength:wB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:PM,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wB,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=audio%2Fwebm&ns="+
ex+"&gir="+Jn+"&clen="+wB+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+U+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'audio/webm; codecs="opus"',bitrate:PM,initRange:{start:"0",end:"265"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:wB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:PM,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:wB,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ha+".googlevideo.com/videoplayback?expire="+gB+"&ei="+H+"&ip="+Rm+"&id=o-AF"+s9+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Db+"&mn="+RG+"&ms="+RG+"&mv="+XC+"&mvi="+pd+"&pl="+Im+"&initcwndbps="+wB+"&siu="+pd+"&spc="+A+"&vprv="+pd+"&svpuc="+pd+"&mime=audio%2Fwebm&ns="+ex+"&gir="+Jn+"&clen="+fD+"&dur="+fD+"&lmt="+CD+"&mt="+gB+"&fvip=3&keepalive="+Jn+"&c=WEB&txp="+
wB+"&n="+HA+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+I+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+L,mimeType:'audio/webm; codecs="opus"',bitrate:ll,initRange:{start:"0",end:"265"},indexRange:{start:hC,end:cM},lastModified:CD,contentLength:fD,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ll,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:wB,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="+U0+"&docid="+d+"&ei="+H+"&feature="+c+"&fexp="+mO+"&ns="+k$+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+XC+"&el="+$U+"&len="+cM+"&of="+Pc+
"&uga="+Im+"&vm="+qA},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+U0+"&docid="+d+"&ei="+H+"&feature="+c+"&fexp="+mO+"&ns="+k$+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+XC+"&el="+$U+"&len="+cM+"&of="+Pc+"&uga="+Im+"&vm="+qA},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+U0+"&docid="+d+"&ei="+H+"&feature="+c+"&fexp="+mO+"&ns="+k$+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
XC+"&el="+$U+"&len="+cM+"&of="+Pc+"&uga="+Im+"&vm="+qA},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+H+"&m="+Cd+"&oid="+Pc+"&plid="+r+"&pltype="+gG+"&ptchn="+Pc+"&ptk="+w+"&video_id="+d},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+U0+"&docid="+d+"&ei="+H+"&event="+Fi+"&feature="+c+"&fexp="+mO+"&ns="+k$+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+XC},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?docid="+d+"&ei="+H+"&feature="+
c+"&len="+cM+"&ns="+k$+"&plid="+r+"&ver="+pd,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+d+"&caps="+Jn+"&opi="+U0+"&xoaf="+pd+"&hl="+k$+"&ip="+Rm+"&ipbits="+pd+"&expire="+gB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Rm+"&key="+Jn+"&lang="+E4,name:{simpleText:Ro},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+d+"&caps="+Jn+"&opi="+U0+"&xoaf="+pd+"&hl="+k$+"&ip="+Rm+"&ipbits="+pd+"&expire="+gB+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Rm+"&key="+Jn+"&kind="+Jn+"&lang="+k$,name:{simpleText:nU},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:zN,title:$U,lengthSeconds:"1155",keywords:[j6,j8,IC,Kd],
channelId:ex,isOwnerViewing:!1,shortDescription:Ro,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+dU,width:168,height:94},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+dU,width:196,height:110},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+k,width:246,height:138},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+k,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
d+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:wB,author:QL,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:wB,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+Pc+"/featured_channel.jpg?v="+Fz,width:40,height:40}]},trackingParams:UD+"=",navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"/channel/"+ex,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ex}},channelName:QL,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:xL}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ex,showPreferences:!1,subscribedButtonText:{runs:[{text:QL}]},unsubscribedButtonText:{runs:[{text:zN}]},trackingParams:UD+"=",unsubscribeButtonText:{runs:[{text:Ro}]},serviceEndpoints:[{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ex],params:Fz}},{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:KM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:UD+"=",dialogMessages:[{runs:[{text:Ro},{text:QL},{text:zN}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:LD}]},serviceEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ex],params:Fz}},accessibility:{label:Oq},trackingParams:UD+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:HA}]},accessibility:{label:$U},trackingParams:UD+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Kd}},unsubscribeAccessibility:{accessibilityData:{label:QL}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:fD},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ex],params:Fz}},unsubscribeCommand:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ex],params:Fz}},addToWatchLaterCommand:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:zN,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:zN}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+d+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+tb+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
d+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+zN,width:1280,height:720},title:{simpleText:tM},description:{simpleText:Fz},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+j8,externalChannelId:ex,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:wB,category:"Travel & Events",publishDate:eF,ownerChannelName:QL,uploadDate:eF}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:$U},trackingParams:UD+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:KM,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:UD+"="}}],headerText:{simpleText:xL},icon:{infoCardIconRenderer:{trackingParams:UD+"="}},closeButton:{infoCardIconRenderer:{trackingParams:UD+"="}},trackingParams:UD+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:UD+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+zN+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:QF,interpreterSafeUrl:(If.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+rI+".js",If),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:LD},{text:IC,bold:!0}]},endpoint:{clickTrackingParams:KM,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:UD+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Oq}]},actionButton:{buttonRenderer:{text:{runs:[{text:$U}]},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+d,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
d,target:"TARGET_NEW_WINDOW"}},trackingParams:UD+"="}},trackingParams:UD+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+iO+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+iO+"=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:wB,endMs:wB,title:{accessibility:{accessibilityData:{label:zN}},simpleText:QL},metadata:{simpleText:xL},callToAction:{simpleText:Fi},dismiss:{simpleText:LD},endpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"/channel/"+ex,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ex}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Ro}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ex,showPreferences:!1,
subscribedButtonText:{runs:[{text:j8}]},unsubscribedButtonText:{runs:[{text:HA}]},trackingParams:UD+"=",unsubscribeButtonText:{runs:[{text:xL}]},serviceEndpoints:[{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ex],params:Fz}},{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:KM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:UD+
"=",dialogMessages:[{runs:[{text:nU},{text:LD},{text:Fi}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Ro}]},serviceEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ex],params:Fz}},accessibility:{label:Fi},trackingParams:UD+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:IC}]},
accessibility:{label:LD},trackingParams:UD+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:j8}},unsubscribeAccessibility:{accessibilityData:{label:j6}}}},trackingParams:UD+"=",isSubscribe:!0,id:Qk}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+k,width:168,height:94},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+dU,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+k,width:246,height:138},{url:"https://i.ytimg.com/vi/"+d+"/hqdefault.jpg?sqp=-oaymwE"+tb+"G&rs="+k,width:336,height:188},{url:"https://i.ytimg.com/vi/"+d+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:wB,endMs:wB,title:{accessibility:{accessibilityData:{label:Fz}},simpleText:Kd},metadata:{simpleText:HA},endpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
zN,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:zN,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ha+".googlevideo.com/videoplayback?source=youtube&oeis="+pd+"&c=WEB&oad="+cM+"&ovd="+cM+"&oaad="+FC+"&oavd="+FC+"&ocs="+hC+"&oewis="+pd+"&oputc="+pd+"&ofpcc="+pd+"&siu="+pd+"&msp="+pd+"&odepv="+pd+
"&id=o-AF"+s9+"&ip="+Rm+"&initcwndbps="+wB+"&mt="+gB+"&oweuc="+mO}}}}},trackingParams:UD+"=",id:Qk,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:$U}},simpleText:$U},style:"DEFAULT"}}]}}],startMs:wB,trackingParams:UD+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:pd,offsetEndMilliseconds:FC},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";ord="+gB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+hC+";dc_sk="+pd+";dc_ctype="+Im+";dc_ref=http://www.youtube.com/video/"+zN+";dc_pubid="+pd+";dc_btype=23?gclid="+Ba+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pd+"&ns="+pd+"&event="+pd+"&device="+pd+"&content_v="+d+"&el="+$U+"&ei="+H+"&devicever="+g+"&bti="+wB+"&format="+jx+"&break_type="+pd+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pd+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Rm+"&slot_pos="+pd+"&slot_len="+pd+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Db+"&ad_len="+FC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
zN+"&aqi="+H+"&ad_rmp="+pd+"&sli="+pd}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+
";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+wB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&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"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&ctype="+hC+"&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"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_engaged_view&ctype="+hC+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+E0+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&dc_pubid="+pd+"&dc_exteid="+Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&avm="+pd+"&dc_pubid="+pd+"&dc_exteid="+
Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&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="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
B+"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&dc_pubid="+pd+"&dc_exteid="+Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:KM,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+
hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/mqdefault.jpg",width:320,height:180}]},trackingParams:UD+"="},trackingParams:UD+
"=",templatedCountdown:{templatedAdText:{text:zN,isTemplated:!0,trackingParams:UD+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:j8,isTemplated:!1,trackingParams:UD+"="},trackingParams:UD+"="}},trackingParams:UD+"=",skipOffsetMilliseconds:5E3}},trackingParams:UD+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:zN},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:xL,isTemplated:!1,trackingParams:UD+"="},trackingParams:UD+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:j6,isTemplated:!0,trackingParams:UD+"="}},trackingParams:UD+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:KM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ab.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+k$+"&origin=www.youtube.com&ata_theme="+Oq,Ab),trackingParams:UD+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:UD+"="}},hoverText:{runs:[{text:IC}]},trackingParams:UD+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:UD+"="},headline:{text:LD,isTemplated:!1,trackingParams:UD+"="},description:{text:HA,
trackingParams:UD+"="},actionButton:{buttonRenderer:{text:{simpleText:j6},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"="}},startMs:pd,trackingParams:UD+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:xL},elementId:LD}},elementId:Fz,trackingParams:UD+"=",legacyInfoCardVastExtension:tM,sodarExtensionData:{siub:Ro,bgub:QL,scs:HA,bgp:HA},externalVideoId:zN,adLayoutLoggingData:{serializedAdServingDataEntry:Oq},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:UD+"="},
headline:{text:j6,isTemplated:!1,trackingParams:UD+"="},description:{text:tM,isTemplated:!1,trackingParams:UD+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:QL},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+
Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+
pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:UD+"="}},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+
U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:UD+"="},abandonCommands:{commands:[{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&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="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+
pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:KM,commandExecutorCommand:{commands:[{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:$U,isTemplated:!1,trackingParams:UD+
"="},trackingParams:UD+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:xL},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+wB+";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="+U0+";dc_trk_cid="+U0+";ord="+gB+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+hC+";dc_sk="+pd+";dc_ctype="+Im+";dc_ref=http://www.youtube.com/video/"+zN+";dc_pubid="+pd+";dc_btype=23?gclid="+Ba+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+pd+"&ns="+pd+"&event="+pd+"&device="+pd+"&content_v="+d+"&el="+$U+"&ei="+H+"&devicever="+g+"&bti="+wB+"&format="+jx+"&break_type="+pd+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+pd+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Rm+"&slot_pos="+pd+"&slot_len="+pd+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Db+"&ad_len="+FC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+zN+"&aqi="+H+"&ad_rmp="+pd+"&sli="+pd}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+
u+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+wB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&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"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&ctype="+hC+"&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"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_engaged_view&ctype="+hC+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+
j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&dc_pubid="+pd+"&dc_exteid="+Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+
"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+pd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&avm="+pd+"&dc_pubid="+pd+"&dc_exteid="+Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&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="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+B+"&sig="+D0+"&ad_cpn=[AD_CPN]&id="+j8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+pd},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+j8+"&dc_pubid="+pd+"&dc_exteid="+Qk+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+jx+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+
hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+d+"/mqdefault.jpg",width:320,height:180}]},trackingParams:UD+"="},trackingParams:UD+"=",templatedCountdown:{templatedAdText:{text:Kd,isTemplated:!0,trackingParams:UD+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:IC,isTemplated:!1,trackingParams:UD+"="},trackingParams:UD+"="}},
trackingParams:UD+"=",skipOffsetMilliseconds:5E3}},trackingParams:UD+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Fz},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:LD,isTemplated:!1,trackingParams:UD+"="},trackingParams:UD+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:zN,
isTemplated:!0,trackingParams:UD+"="}},trackingParams:UD+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:KM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Yd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+k$+"&origin=www.youtube.com&ata_theme="+Oq,Yd),trackingParams:UD+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:UD+"="}},hoverText:{runs:[{text:j6}]},trackingParams:UD+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+RW+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:UD+"="},headline:{text:tM,isTemplated:!1,trackingParams:UD+"="},description:{text:Kd,trackingParams:UD+"="},actionButton:{buttonRenderer:{text:{simpleText:IC},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"="}},startMs:pd,trackingParams:UD+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:gG},elementId:xL}},elementId:gG,trackingParams:UD+"=",legacyInfoCardVastExtension:HA,sodarExtensionData:{siub:LD,bgub:Ro,scs:HA,bgp:HA},externalVideoId:zN,adLayoutLoggingData:{serializedAdServingDataEntry:QL},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+RW+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:UD+"="},headline:{text:LD,
isTemplated:!1,trackingParams:UD+"="},description:{text:HA,isTemplated:!1,trackingParams:UD+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:QL},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:UD+"="}},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+
pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:UD+"="},abandonCommands:{commands:[{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&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="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+Im+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:KM,commandExecutorCommand:{commands:[{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Ro,isTemplated:!1,trackingParams:UD+"="},trackingParams:UD+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Kd},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+pd+";dc_exteid="+Qk+";met="+pd+";ecn"+pd+"="+pd+";etm1="+pd+";eid1="+
wB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:tM}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$U}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FC,offsetEndMilliseconds:jx},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Im+"&token=ALHj"+y+"&index="+pd+"&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="+g+"&m_pos_ms="+FC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ro}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:jx,offsetEndMilliseconds:jx},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+hC+"&token=ALHj"+y+"&index="+pd+"&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="+
g+"&m_pos_ms="+jx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Fi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jx,offsetEndMilliseconds:jx},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+hC+"&token=ALHj"+y+"&index="+pd+"&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="+
g+"&m_pos_ms="+jx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Kd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jx,offsetEndMilliseconds:jx},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+hC+"&token=ALHj"+y+"&index="+pd+"&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="+
g+"&m_pos_ms="+jx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:jx,offsetEndMilliseconds:Im},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+hC+"&token=ALHj"+y+"&index="+pd+"&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="+
g+"&m_pos_ms="+jx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Kd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Im,offsetEndMilliseconds:Im},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+H+"&m_pos="+Im+"&token=ALHj"+y+"&index="+pd+"&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="+
g+"&m_pos_ms="+Im}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gG,isTemplated:!1,trackingParams:UD+"="},description:{text:j8,isTemplated:!1,trackingParams:UD+"="},actionButton:{buttonRenderer:{text:{simpleText:Fz},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A1+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:UD+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:UD+"="},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+
";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:KM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(bs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+k$+"&origin=www.youtube.com&ata_theme="+Oq,bs),trackingParams:UD+"="}},popupType:"DIALOG"}},trackingParams:UD+"="}},hoverText:{runs:[{text:Fz}]},trackingParams:UD+"="}},adVideoId:zN,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:j8},associatedCompositePlayerBytesLayoutId:HA}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:xL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:QL,isTemplated:!1,trackingParams:UD+"="},description:{text:gG,isTemplated:!1,trackingParams:UD+"="},actionButton:{buttonRenderer:{text:{simpleText:xL},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+
q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+RW+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:UD+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+JI+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:UD+"="},navigationEndpoint:{clickTrackingParams:KM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+
pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:KM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(f4.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+k$+"&origin=www.youtube.com&ata_theme="+Oq,f4),trackingParams:UD+"="}},popupType:"DIALOG"}},trackingParams:UD+"="}},
hoverText:{runs:[{text:Kd}]},trackingParams:UD+"="}},adVideoId:zN,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+zN+"&cid="+u+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Fz},associatedCompositePlayerBytesLayoutId:HA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zN}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:IC,
isTemplated:!1,trackingParams:UD+"="},description:{text:j6,isTemplated:!1,trackingParams:UD+"="},actionButton:{buttonRenderer:{text:{simpleText:nU},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+
Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+
k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:UD+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+A1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:UD+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+NN+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:UD+
"="},navigationEndpoint:{clickTrackingParams:KM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+U0+";dc_trk_cid="+U0+";dc_dbm_token="+L+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+pd+";ord="+U0+";dc_rui="+pd+";dc_exteid="+Qk+";dc_av="+pd+";dc_sk="+pd+";dc_ctype="+Im+";dc_pubid="+pd+";dc_btype=3?gclid="+Ba+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+C+"____________"+q+"AxAA&ase=2&num="+pd+"&cid="+u+"&ad_cpn=%5BAD_CPN%5D&sig="+k+"&adurl="+zp+"&label=video_click_to_advertiser_site&ctype="+hC+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:UD+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:KM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Dh.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+v+"&hl="+k$+"&origin=www.youtube.com&ata_theme="+Oq,Dh),trackingParams:UD+"="}},popupType:"DIALOG"}},trackingParams:UD+
"="}},hoverText:{runs:[{text:Oq}]},trackingParams:UD+"="}},adVideoId:zN,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+C+"____________"+q+"AxAA&sigh="+d+"&cid="+u+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:xL},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:HA}},adSlotLoggingData:{serializedSlotAdServingDataEntry:tM}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:rI,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:rI,command:{innertubeCommand:{clickTrackingParams:KM,ypcGetOfflineUpsellEndpoint:{params:dI}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:UD+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:gB,nanos:pU}}}},aDq=JSON.stringify(la),rz=performance.now()-h;return{objectRepresentation:la,jsonRepresentation:aDq,generationTime:rz}};
vKu=function(h,E){if(h===E)return!0;if(!h||!E||typeof h!==typeof E)return!1;if(h instanceof Array&&E instanceof Array){if(h.length!==E.length)return!1;for(var g=0;g<h.length;g++)if(!vKu(h[g],E[g]))return!1;return!0}if(typeof h==="object"&&typeof E==="object"&&h&&E){for(g in h)if(!(g in E&&vKu(h[g],E[g])))return!1;for(var Z in E)if(!(Z in h))return!1;return!0}return!1};
_.Bp=function(){if(!Pp){Pp=new C8(new HJa);var h=_.cx("client_streamz_web_flush_count",-1);h!==-1&&(Pp.invocationLimit=h)}return Pp};
U8=function(h,E,g,Z){if(h===E)return!0;if(Array.isArray(h)&&Array.isArray(E)){if(h.length!==E.length)return!1;for(var M=0;M<h.length;M++)if(!U8(h[M],E[M],g,Z))return!1;return!0}if(h instanceof Set||E instanceof Set){if(h instanceof Set&&E instanceof Set){if(h.size!==E.size)return!1;Z=_.G(h.values());for(M=Z.next();!M.done;M=Z.next())if(!E.has(M.value))return!1;return!0}return!1}if(h instanceof Function){if(Z)return!0;h.name===""&&_.$W(Error("Of"),"ERROR");return!1}if(h instanceof Date&&E instanceof
Date)return h.getTime()===E.getTime();if(h instanceof Object&&E instanceof Object){if($yZ(h)&&$yZ(E))try{return h.equals(E)}catch(z){_.$W(Error("Pf`"+z),"ERROR")}M=Object.getOwnPropertyNames(h).filter(function(z){return g?h[z]!==void 0:!0});
var W=Object.getOwnPropertyNames(E).filter(function(z){return g?E[z]!==void 0:!0});
if(M.length!==W.length)return!1;M=_.G(M);for(W=M.next();!W.done;W=M.next())if(W=W.value,!U8(h[W],E[W],g,Z))return!1;return!0}return!1};
$yZ=function(h){h=Object.getPrototypeOf(h).equals;return h instanceof Function&&h.length===1};
_.nKN=function(){return _.a(function(h){if(h.nextAddress==1)return KlM!==2?h.jumpTo(2):h.yield(OJ$(),3);h.nextAddress!=2&&(KlM=h.yieldResult);return h.return(KlM)})};
_.sqq=function(){return _.a(function(h){if(h.nextAddress==1)return _.J("ab_pl_man")?XB4!==2?h.jumpTo(2):h.yield(YEx(),3):h.return(1);h.nextAddress!=2&&(XB4=h.yieldResult);return h.return(XB4)})};
yg4=function(){return _.a(function(h){if(h.nextAddress==1)return _.J("ab_fk_sk_cl")?VRx!==2?h.jumpTo(2):h.yield(kA$(),3):h.return(1);h.nextAddress!=2&&(VRx=h.yieldResult);return h.return(VRx)})};
_.TPq=function(){return _.a(function(h){if(h.nextAddress==1)return _.J("ab_det_apb_b")?FlO!==2?h.jumpTo(2):h.yield(AgW(),3):h.return(1);h.nextAddress!=2&&(FlO=h.yieldResult);return h.return(FlO)})};
QqV=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(Promise.all([_.nKN(),_.TPq(),_.sqq(),yg4()]),2);if(E.nextAddress!=3)return bJx()?E.return(!0):E.yield(_.ugV(),3);h=E.yieldResult;return E.return(h===0)})};
bJx=function(){var h=!1,E=function(g,Z){hs4.increment(Z,g);g===0&&(h=!0)};
E(_.Ead(),"j.s_");E(KlM,"f.i_");E(FlO,"a.b_");E(XB4,"p.m_");E(VRx,"i.f_");ga$===2&&(ga$=_.ZVM(M3O));E(ga$,"e.h_");_.J("ks_det_gpbl")||E(_.WPW(),"p.i_");_.J("ks_get_o_pp")||E(_.p_$(),"g.o_");_.J("ab_deg_unex_thr")||E(_.G3W(),"a.o_");E(zsz,"s.t_");_.J("ab_det_sc_inj_enf")&&E(_.awZ(),"s.i_");E(cS$,"d.p_");E(_.iV$(_.Lm),"o.p_");E(_.oad()===0?0:_.IwO(),"o.a_");return _.J("debug_sk_em_precheck")?!0:h};
PL$=function(){var h=[].concat(_.$E(RsO));try{var E=myV();h.push({jsonRepresentation:E.jsonRepresentation,objectRepresentation:E.objectRepresentation})}catch(g){h=[].concat(_.$E(RsO))}return h};
BMa=function(){var h=["adPlacements","adSlots"];try{return h.filter(function(){return!0}).length!==h.length?0:1}catch(E){return 0}};
_.p_$=function(){if(BMa()===0)return 0;var h=myV(),E=h.objectRepresentation,g=(0,_.Kt.unsafeClone)(E),Z=[];if(E&&typeof E==="object")for(var M in E)Z.push(M);else return 4;h=h.objectRepresentation.adPlacements;if(!(h&&h.length>0))return 4;try{if(!vKu(Z,Object.getOwnPropertyNames(E)))return 0}catch(W){return 0}return vKu(g,E)?1:0};
_.iV$=function(h){if(!h||!h.length||typeof h==="string")return 0;for(var E=Object.getOwnPropertyNames(Object.prototype),g=0;g<h.length;g++)for(var Z=_.iU(h[g]),M=_.G(E),W=M.next();!W.done;W=M.next())if(Z===W.value)return 0;return 1};
U9Z=function(h){var E=_.iU(h[1]);if(h[0]===null)return E;h=h[0];for(var g={},Z=0;Z<h.length;Z++){var M=_.iU(h[Z]);if(Z===0)g[M]=E;else{var W={};W[M]=g;g=W}}return g};
_.oad=function(){for(var h=_.jl,E=0;E<h.length;E++){var g=U9Z(h[E]),Z=[];Z.push(g);if(Z.length===0)return 0}return 1};
_.IwO=function(){for(var h=_.jl,E={},g=0;g<h.length;E={aHl:void 0},g++){var Z=[U9Z(h[g])];E.aHl=[];Z.forEach(function(M){return function(W){M.aHl[M.aHl.length]=W}}(E));
if(E.aHl.length===0)return 0}return 1};
_.Ead=function(){for(var h=_.G(PL$()),E=h.next();!E.done;E=h.next()){var g=E.value;E=g.jsonRepresentation;g=g.objectRepresentation;try{var Z=JSON.parse(E);if(!U8(Z,g,!1,!1))return 0}catch(M){return 0}}return 1};
_.awZ=function(){try{var h=_.oC("ab_det_sc_inj_val");h.length===1&&h[0]===""&&(h=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var E=document.querySelectorAll("script"),g=_.G(E),Z=g.next();!Z.done;Z=g.next())for(var M=Z.value,W=_.G(h),z=W.next();!z.done;z=W.next()){var c=z.value;E=void 0;if((E=M.textContent)==null?0:E.includes(c))return 0}}catch(I){return 4}return 1};
_.ugV=function(){var h,E,g,Z,M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:_.CX(c,2),h=_.G(RsO),E=h.next();case 4:if(E.done)return c.return(1);Z=g=E.value;M=Z.jsonRepresentation;W=Z.objectRepresentation;return c.yield((new Response(M,{status:200})).json(),7);case 7:z=c.yieldResult;if(!U8(z,W,!1,!1))return c.return(0);E=h.next();c.jumpTo(4);break;case 2:return _.th(c),c.return(4)}})};
_.G3W=function(){try{btoa("abc")}catch(h){return 0}return 1};
OJ$=function(){var h,E,g,Z,M,W,z,c,I,B,U;return _.a(function(L){switch(L.nextAddress){case 1:_.CX(L,2),h=_.G(PL$()),E=h.next();case 4:if(E.done)return L.return(1);Z=g=E.value;M=Z.jsonRepresentation;W=Z.objectRepresentation;z=btoa(M);c="data:application/json;base64,"+z;I=new Request(c);Object.defineProperty(I,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(I,"method",{get:function(){return"POST"}});
Object.defineProperty(I,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(I,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(I,"body",{get:function(){return new ReadableStream}});
return L.yield(fetch(I),7);case 7:return B=L.yieldResult,L.yield(B.json(),8);case 8:U=L.yieldResult;if(!U8(U,W,!1,!1))return L.return(0);E=h.next();L.jumpTo(4);break;case 2:return _.th(L),L.return(4)}})};
_.ZVM=function(h){if(!h||!h.length||typeof h==="string")return 0;for(var E=function(M){return _.iU(M)},g=2,Z=0;Z<h.length&&(g=_.LPa(_.l7$(h[Z],E)),g!==0);Z++);
return g};
_.LPa=function(h){var E=_.G(h);h=E.next().value;E=E.next().value;try{var g=document.createElement("div");document.body.appendChild(g);var Z=getComputedStyle(g).display;document.body.removeChild(g);if(Z==="none")return 4;var M=getComputedStyle(E).display==="none"?0:1;document.body.removeChild(h);return M}catch(W){return 4}};
kA$=function(){var h,E,g;return _.a(function(Z){h=new _.dN;E=document.createElement("button");E.classList.add("ytp-ad-skip-button");E.style.opacity="0";E.style.height="0px";E.style.width="0px";E.style.padding="0px";E.style.border="none";g=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.onclick=function(){h.resolve(0);g()};
document.body.appendChild(E);setTimeout(function(){g();h.resolve(1)},50);
return Z.return(h.promise)})};
YEx=function(){var h,E,g,Z,M,W,z;return _.a(function(c){h=new _.dN;E=document.createElement("ytd-player");try{document.body.prepend(E)}catch(I){return c.return(4)}g=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.getElementsByTagName("div").length>0?Z=E.getElementsByTagName("div")[0]:(Z=document.createElement("div"),E.appendChild(Z));M=document.createElement("div");Z.appendChild(M);W=document.createElement("video");z=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"});W.src=_.$r(_.sG(z));W.ontimeupdate=function(){g();h.resolve(0)};
M.appendChild(W);W.classList.add("html5-main-video");setTimeout(function(){M.classList.add("ad-interrupting")},200);
setTimeout(function(){g();h.resolve(1)},5E3);
return c.return(h.promise)})};
jFV=function(h){var E=myV().objectRepresentation.playbackTracking;if(E){var g=[],Z;g.push(E==null?void 0:(Z=E.videostatsPlaybackUrl)==null?void 0:Z.baseUrl);var M;g.push(E==null?void 0:(M=E.videostatsDelayplayUrl)==null?void 0:M.baseUrl);var W;g.push(E==null?void 0:(W=E.videostatsWatchtimeUrl)==null?void 0:W.baseUrl);var z;g.push(E==null?void 0:(z=E.ptrackingUrl)==null?void 0:z.baseUrl);var c;g.push(E==null?void 0:(c=E.qoeUrl)==null?void 0:c.baseUrl);var I;g.push(E==null?void 0:(I=E.atrUrl)==null?
void 0:I.baseUrl);E=_.G(g);for(g=E.next();!g.done;g=E.next())if((g=g.value)&&h.test(g))return g.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
d9d=function(h,E){var g,Z;return _.a(function(M){switch(M.nextAddress){case 1:g=[],Z=0;case 2:if(!(Z<3)){M.jumpTo(4);break}return M.yield(fetch(h,{cache:"no-store",method:E}).then(function(W){g.push(W.status)}).catch(function(){g.push(-1)}),3);
case 3:Z++;M.jumpTo(2);break;case 4:return M.return(g)}})};
CLN=function(h){return h.domainLookupStart===0&&h.domainLookupEnd===0&&h.connectStart===0&&h.connectEnd===0};
JS$=function(h,E,g){g=g===void 0?"GET":g;var Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){if(C.nextAddress==1)return C.yield(Promise.all([d9d(h,g),d9d(E,g)]),2);Z=C.yieldResult;M=_.G(Z);W=M.next().value;z=M.next().value;c=W;I=z;if(Math.min.apply(Math,_.$E(I))!==Math.max.apply(Math,_.$E(I))||Math.min.apply(Math,_.$E(c))!==Math.max.apply(Math,_.$E(c)))return C.return(2);if(Math.min.apply(Math,_.$E(I))===Math.min.apply(Math,_.$E(c)))return C.return(1);U=(B=performance.getEntriesByName(h))==null?void 0:
B[0];d=(L=performance.getEntriesByName(E))==null?void 0:L[0];return U&&d?CLN(d)?C.return(1):CLN(U)?C.return(0):C.return(1):C.return(2)})};
AgW=function(){var h;return _.a(function(E){var g=[];var Z;var M,W,z;(M=Z=(M=myV().objectRepresentation.streamingData)==null?void 0:(W=M.formats)==null?void 0:(z=W[0])==null?void 0:z.url)&&M&&!Z.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(M=M.replace("initcwndbps","ctier=L&initcwndbps"),M=M.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),Z={testUrl:M,baseUrl:Z,method:"GET"}):Z=void 0;Z&&g.push(Z);_.J("ab_net_tp_e")&&g.push({testUrl:_.MN.location.origin+"/ad_companion",baseUrl:_.MN.location.origin+
"/generate_204",method:"OPTIONS"});_.J("ab_fix_creator_view_cnt")&&(g.length=0,(Z=jFV(/api\/stats\/atr/))&&g.push({testUrl:_.MN.location.origin+Z,baseUrl:_.MN.location.origin+"/generate_204",method:"OPTIONS"}));_.J("ad_net_pb_pbp")&&(Z=jFV(/api\/stats\/qoe/))&&g.push({testUrl:_.MN.location.origin+Z,baseUrl:_.MN.location.origin+"/feed/download",method:"GET"});g=g.length!==0?g[Math.floor(Math.random()*g.length)]:void 0;return(h=g)?E.return(JS$(h.testUrl,h.baseUrl,h.method)):E.return(4)})};
_.WPW=function(){if(_.MN.kIk===void 0||_.MN.kIk===null||typeof _.MN.kIk!=="function")return 2;try{return _.MN.kIk()===!0?0:1}catch(h){return 0}};
esx=function(h){switch(h){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Vk(h,"unknown result type")}};
_.q3a=function(h,E){var g=Number(_.nF("CATSTAT",0));if(E.vlX===void 0)return g;E=E.vlX;h=esx(h);return g&~(3<<E)|h<<E};
fwx=function(h){var E,g;if((h=(E=h.auxiliaryUi)==null?void 0:(g=E.messageRenderers)==null?void 0:g.bkaEnforcementMessageViewModel)&&h.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return h};
t3W=function(){for(var h=_.G(Object.values(_.NMq)),E=h.next();!E.done;E=h.next())E=E.value,E.isAsync&&E.vlX&&_.OW("CATSTAT",_.q3a(2,E))};
_.qR=function(h,E){h=_.Cm("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",h);(E===void 0?0:E)?_.S3z(h,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Jk(_.el(),h,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
w_V=function(){if(!x9x){if(Polymer.Base){var h=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{h.apply(this,arguments)}catch(L){_.Vy(L)}};
var E=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{E.apply(this,arguments)}catch(L){_.Vy(L)}};
var g=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{g.apply(this,arguments)}catch(L){_.Vy(L)}};
var Z=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{Z.apply(this,arguments)}catch(L){_.Vy(L)}};
var M=Polymer.Base._listen,W=new WeakMap;Polymer.Base._listen=function(L,d,C){var q=function(){try{C.apply(this,arguments)}catch(w){_.Vy(w)}};
W.set(C,q);M.call(this,L,d,q)};
var z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(L,d,C){z.call(this,L,d,W.get(C))}}if(Polymer.Async){var c=Polymer.Async,I=c._atEndOfMicrotask;
c._atEndOfMicrotask=function(){try{I.apply(c,arguments)}catch(L){_.Vy(L)}}}if(Polymer.RenderStatus){var B=Polymer.RenderStatus,U=B.afterNextRender;
B.afterNextRender=function(L,d,C){U.call(B,L,function(){try{d.apply(this,arguments)}catch(q){_.Vy(q)}},C)}}x9x=!0}};
_.lwa=function(h){var E=h?_.jy(h):"";if(E){if(E.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(E.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(E.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(E.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(E.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.J("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";E=E.toLowerCase();if(E==="/")return"home";if(E==="/channel_memberships")return"channel-memberships-shopfront";if(E.indexOf("/feed/trending")===0)return"trending";if(E.indexOf("/feed/explore")===0)return"explore";if(E.indexOf("/live")===0)return"live";if(E.indexOf("/results")===0)return"search";if(E.indexOf("/sports")===0)return"sports";if(E.indexOf("/fashion")===0||E.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(E))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(E))return _.J("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/")===0||E.indexOf("/user/")===0||E.indexOf("/gaming")===0||E.indexOf("/post/")===0)return"channel";if(D94(h))return"show";if(E==="/playlist"||E.indexOf("/playlist/")===0||E==="/view_play_list"||E.indexOf("/view_play_list/")===0||E.indexOf("/show/")===0)return"playlist";if(E==="/feed/companion_canvas")return"companion-canvas";if(E==="/feed/history"||
E.indexOf("/feed/history/")===0)return"history";if(E==="/new")return"labs";if(E==="/feed/subscriptions")return"subscriptions";if(E.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(E==="/history_controls")return"standalone";if(E.indexOf("/account")===0||E==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(E.indexOf("/paid_memberships")===0||E.indexOf("/refund")===0||E.indexOf("/purchases")===0||E.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(E.indexOf("/product")===
0)return"yts-products";if(E.indexOf("/premium")===0||E.indexOf("/musicpremium")===0)return E.indexOf("/premium/offers")===0||E.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(E==="/cart/checkout"||E==="/cart")return"ypc-checkout";if(E.indexOf("/feed/downloads")===0||E.indexOf("/redeem")===0||E.indexOf("/reporthistory")===0)return"browse";if(E.indexOf("/hashtag")===0)return"hashtag-landing-page";if(E.indexOf("/handle")===0)return"handle";if(E.indexOf("/source")===0)return"audio-pivot";if(E.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(E.indexOf("/playables")===0)return"playables";if(E.indexOf("/create/live/join")===0)return"open-in-app";if(E.indexOf("/shorts")===0)return"shorts";if(E.indexOf("/feed/channels")===0)return"subscriptions-channels";(E=h?_.jy(h):"")&&E.indexOf("/watch")===0&&_.J("web_watch_enable_learning_journey")?(h=_.uI(h),h=!!h.list&&h.list.indexOf("LJPP")===0):h=!1;if(h)return"learning_journey_watch"}};
_.fm=function(h){var E,g;(h=(g=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:g.url)&&(E=_.lwa(h));return E};
D94=function(h){var E=h?_.jy(h):"";if(!E)return!1;E=E.toLowerCase();return E.indexOf("/show/")===0||E.indexOf("/playlist")===0&&(h=_.uI(h),h.list&&h.list.indexOf("EL")===0)?!0:!1};
xY=function(h){var E="unknown",g;var Z=((g=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:g.webPageType)||"";Z?(g=Z.toLowerCase(),g.startsWith("web_page_type_")&&(g=g.slice(14))):g=Z;g&&rSz[g.toUpperCase()]?E=rSz[g.toUpperCase()]:_.e(h,_.tk)||_.e(h,m9O)?E="browse":_.e(h,_.Sl)?E="search":_.e(h,_.MH)&&(E="watch");E==="watch"&&_.fm(h||null)==="learning_journey_watch"&&(E="learning_journey_watch");E==="unknown"&&_.O$(Error("Rf`"+JSON.stringify({clickTrackingParams:h==null?void 0:h.clickTrackingParams,
commandMetadata:h==null?void 0:h.commandMetadata,allEndpointKeys:Object.keys(h||[])})));return E};
_.wN=function(h){if(!_.va$||h)_.va$=_.S8();return _.va$};
_.HVO=function(h){return!!_.e(h,_.MH)||!!_.e(h,_.D9)&&_.J("kevlar_enable_shorts_prefetch")};
_.$9x=function(h,E){h=_.e(h,_.MH)||_.e(h,_.D9);return"v"+h.videoId+(h.playlistId?"-pl"+h.playlistId:"")+(E?"-an1":"")+(h.params?"-pr"+h.params:"")};
lU=function(h){return function(){return new h}};
rN=function(h){var E=_.GF();return function(){return E.resolve(h)}};
OVO=function(h){var E=_.cx("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;if(!_.e(h,_.D9))return E&&_.O$(Error("Uf")),!1;var g;return _.J("shorts_controller_retrieve_seedless_sequence_v2")&&((g=_.e(h,_.D9))==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:KP4(h)?!0:(E&&_.O$(Error("Vf")),!1)};
KP4=function(h){var E=(_.e(h,_.MH)||_.e(h,_.D9)).videoId;if(!E||!nax.test(E))return!1;var g;return(h=(g=_.e(h.commandMetadata,_.qH))==null?void 0:g.url)&&(h.includes(E)||h.startsWith("/clip"))?!0:!1};
_.Y3W=function(){var h=_.xe();return h.getFlag(192)?h.getFlag(190):!(_.J("web_watch_cinematics_disabled_by_default")||_.J("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&X_Z())};
_.mb=function(h,E,g){var Z={};Z.currentUrl=E;Z.vis=h.vis!==void 0?h.vis:0;Z.splay=!1;E=_.xe();Z.autoCaptionsDefaultOn=E.getFlag(66);E.getFlag(141)?E.getFlag(140)?Z.autonavState="STATE_OFF":Z.autonavState="STATE_ON":Z.autonavState="STATE_NONE";Z.html5Preference="HTML5_PREF_WANTS";isNaN(_.nF("STS"))||(Z.signatureTimestamp=_.nF("STS"));h.autonav&&(Z.autoplay=!0,Z.autonav=!0);h.mutedAutoplay&&(Z.autoplay=!0,Z.mutedAutoplay=!0);h.inlinePlayback&&(Z.autoplay=!0,Z.autonav=!1,Z.isInlineUnmutedPlayback=!!h.inlineUnmuted);
Z.referer=g;Z.lactMilliseconds=h.lact!==void 0?h.lact.toString():"-1";_.J("enable_unknown_lact_fix_on_html5")&&Z.lactMilliseconds==="-1"&&_.O$(new _.xX("Unknown LACT is set in playbackContext.",{"lact in tempData":h.lact||"undefined",autonav:h.autonav||"undefined"}));h={};E.getFlag(194)&&(h.hasShownAmbientMode=!0);E.getFlag(192)&&(h.hasToggledOffAmbientMode=!0);_.Y3W()&&(h.watchAmbientModeEnabled=!0);Z.watchAmbientModeContext=h;return Z};
sFV=function(h){var E={},g=h.pbis||0;g&&(E.playbackBeginsInSeconds=g);h.prefetch_reason&&h.prefetch_reason==="hc_pbis"&&(E.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return E};
_.Hp=function(h){h=h===void 0?!1:h;var E=_.xe(),g="USER_INTERFACE_THEME_LIGHT";E.getFlag(165)?g="USER_INTERFACE_THEME_DARK":E.getFlag(174)?g="USER_INTERFACE_THEME_LIGHT":_.vp()&&(g="USER_INTERFACE_THEME_DARK");return h?g:V3x()||g};
_.k3$=function(){return!_.J("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.vp=function(){return _.k3$()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.$Y=function(){var h=_.xe();return _.k3$()&&!h.getFlag(165)&&!h.getFlag(174)};
V3x=function(){var h=h===void 0?window.location.href:h;if(_.J("kevlar_disable_theme_param"))return null;var E=_.jy(h);if(_.ySz(E))return"USER_INTERFACE_THEME_DARK";try{var g=_.uI(h).theme;return FPa.get(g)||null}catch(Z){}return null};
_.ySz=function(h){return _.J("enable_dark_theme_only_on_shorts")?!(h==null||!h.startsWith("/shorts/")):!1};
_.bVN=function(h,E,g,Z,M){E=E===void 0?!1:E;g=g===void 0?!1:g;var W=_.nF("INNERTUBE_CONTEXT");if(!W)return _.$W(Error("Yf")),{};W=(0,_.Kt.unsafeClone)(W);_.J("web_no_tracking_params_in_shell_killswitch")||delete W.clickTracking;W.client||(W.client={});var z=W.client;z.clientName==="MWEB"&&z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(z.clientFormFactor=_.nF("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");z.screenWidthPoints=window.innerWidth;z.screenHeightPoints=window.innerHeight;z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);z.screenDensityFloat=window.devicePixelRatio||1;z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());z.userInterfaceTheme=_.Hp();if(!E){var c=_.Jj$();c&&(z.connectionType=c);_.J("web_log_effective_connection_type")&&(c=qo$())&&(W.client.effectiveConnectionType=c)}var I;if(_.J("web_log_memory_total_kbytes")&&((I=_.MN.navigator)==null?0:I.deviceMemory)){var B;I=(B=_.MN.navigator)==null?void 0:B.deviceMemory;W.client.memoryTotalKbytes=""+I*1E6}E&&Z&&!_.J("web_it_context_set_original_url_ks")&&
(z.originalUrl=ASO(_.MN.location.href,Z).toString());_.J("web_gcf_hashes_innertube")&&(c=mR$())&&(B=c.coldConfigData,I=c.coldHashData,c=c.hotHashData,W.client.configInfo=W.client.configInfo||{},B&&(W.client.configInfo.coldConfigData=B),I&&(W.client.configInfo.coldHashData=I),c&&(W.client.configInfo.hotHashData=c));B=_.uI(_.MN.location.href);!_.J("web_populate_internal_geo_killswitch")&&B.internalcountrycode&&(z.internalGeo=B.internalcountrycode);!_.J("web_populate_client_screen_killswitch")&&M&&(z.clientScreen=
M);z.clientName==="MWEB"||z.clientName==="WEB"?(z.mainAppWebInfo||(z.mainAppWebInfo={}),z.mainAppWebInfo.graftUrl=Z||_.MN.location.href,_.J("kevlar_woffle")&&_.Km.instance&&(Z=_.Km.instance,z.mainAppWebInfo.pwaInstallabilityStatus=!Z.appInstalledEventFired&&Z.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),z.mainAppWebInfo.webDisplayMode=NN4(),z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):z.clientName==="TVHTML5"&&
(!_.J("web_lr_app_quality_killswitch")&&(Z=_.nF("LIVING_ROOM_APP_QUALITY"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{appQuality:Z})),Z=_.nF("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(z.tvAppInfo=Object.assign(z.tvAppInfo||{},{certificationScope:Z}));!_.J("web_populate_time_zone_itc_killswitch")&&(Z=dwd())&&(z.timeZone=Z);(Z=neZ())?z.experimentsToken=Z:delete z.experimentsToken;z=XXz();Z=_.TMW();Z=(0,_.Kt.getValues)(Z.tokenJars);W.request=Object.assign({},W.request,{internalExperimentFlags:z,consistencyTokenJars:Z});
!_.J("web_prequest_context_killswitch")&&(z=_.nF("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(W.request.externalPrequestContext=z);Z=_.xe();z=Z.getFlag(58);Z=Z.get("gsml","");W.user=Object.assign({},W.user);z&&(W.user.enableSafetyMode=z);Z&&(W.user.lockedSafetyMode=!0);_.J("warm_op_csn_cleanup")?g&&(E=_.sH())&&(W.clientScreenNonce=E):!E&&(E=_.sH())&&(W.clientScreenNonce=E);h&&(W.clickTracking={clickTrackingParams:h});if(h=_.yy("yt.mdx.remote.remoteClient_"))W.remoteClient=h;_.O8.getInstance().setLocationOnInnerTubeContext(W);
try{var U=uF$(),L=U.bid;delete U.bid;W.adSignalsInfo={params:[],bid:L};for(var d=_.G(Object.entries(U)),C=d.next();!C.done;C=d.next()){var q=_.G(C.value),w=q.next().value,r=q.next().value;U=w;L=r;h=void 0;(h=W.adSignalsInfo.params)==null||h.push({key:U,value:""+L})}var v,H;if(((v=W.client)==null?void 0:v.clientName)==="TVHTML5"||((H=W.client)==null?void 0:H.clientName)==="TVHTML5_UNPLUGGED"){var u=_.nF("INNERTUBE_CONTEXT");u.adSignalsInfo&&(W.adSignalsInfo.advertisingId=u.adSignalsInfo.advertisingId,
W.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",W.adSignalsInfo.limitAdTracking=u.adSignalsInfo.limitAdTracking)}}catch(k){_.$W(k)}return W};
_.Xt=function(h,E,g){var Z=g&&g>0?g:0;g=Z?Date.now()+Z*1E3:0;if((Z=Z?_.nm.getLocalStorage():_.nm.getSessionStorage())&&window.JSON){typeof E!=="string"&&(E=JSON.stringify(E,void 0));try{Z.set(h,E,g)}catch(M){Z.remove(h)}}};
_.YY=function(h){var E=_.nm.getSessionStorage(),g=_.nm.getLocalStorage();if(!E&&!g||!window.JSON)return null;try{var Z=E.get(h)}catch(M){}if(typeof Z!=="string")try{Z=g.get(h)}catch(M){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(M){}return Z};
_.s8=function(h){try{var E=_.nm.getSessionStorage(),g=_.nm.getLocalStorage();E&&E.remove(h);g&&g.remove(h)}catch(Z){}};
_.uJ$=function(h){var E=new VV(_.nF("ONE_PICK_URL",""));E.urlParamMap_.set("hostId",h);(h=_.nF("GAPI_LOCALE"))&&E.urlParamMap_.set("hl",h);(h=_.nF("SESSION_INDEX"))&&E.urlParamMap_.set("authuser",h);(h=_.nF("DELEGATED_SESSION_ID"))&&E.urlParamMap_.set("groupId",h);return E};
hYa=function(){var h=_.GF(),E=h.resolve(_.kY);h=h.resolve(_.yV);return new QF4(E,h)};
g9M=function(h){if(window.IntersectionObserver)return new E9u(h,400);throw new TypeError("eg");};
ME4=function(){var h=Hammer.TouchAction,E=h.prototype.preventDefaults;h.prototype.preventDefaults=function(g){var Z=this.actions.indexOf("pan-down")>-1;if(!Z)return E.call(this,g);if(!ZHu){var M=g.srcEvent;g=g.direction;var W;if((W=this.manager)==null?0:W.session.prevented)M.preventDefault();else if(Z&&g&Hammer.DIRECTION_DOWN)return this.preventSrc(M)}}};
WDW=function(h){if(!h||h.size===0)return Hammer.DIRECTION_ALL;if(h.size===2){if(h.has("up")&&h.has("down"))return Hammer.DIRECTION_VERTICAL;if(h.has("right")&&h.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(h.size===1){if(h.has("up"))return Hammer.DIRECTION_UP;if(h.has("down"))return Hammer.DIRECTION_DOWN;if(h.has("right"))return Hammer.DIRECTION_RIGHT;if(h.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.Gjz=function(){return pPx?Promise.resolve(pPx):new Promise(function(h,E){var g=self.indexedDB.open("swpushnotificationsdb");g.onerror=E;g.onsuccess=function(){var Z=g.result;if(Z.objectStoreNames.contains("swpushnotificationsstore"))pPx=Z,h(pPx);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.Gjz()};
g.onupgradeneeded=zYM})};
zYM=function(h){h=h.target.result;h.objectStoreNames.contains("swpushnotificationsstore")&&h.deleteObjectStore("swpushnotificationsstore");h.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
czO=function(h){var E=aiV(),g;return _.a(function(Z){switch(Z.nextAddress){case 1:return _.CX(Z,2),Z.yield(h.match(E,{cacheName:"yt-appshell-assets"}),4);case 4:g=Z.yieldResult;_.bN(Z,3);break;case 2:_.th(Z);case 3:return Z.return(g)}})};
aiV=function(){var h=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?iHM.registration.scope:o9x;h.endsWith("/")&&(h=h.slice(0,-1));return h+"/app_shell_home"};
Iiu=function(h){h.map(function(E){return E.source}).join("|")};
_.RY4=function(h){return _.a(function(E){return E.return(czO(h))})};
Pmq=function(){var h=window.caches,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(_.RY4(h),2);E=g.yieldResult;return g.return(!!E)})};
JzW=function(){_.a(function(h){if(h.nextAddress==1){if(B_W)return h.jumpTo(0);B_W=!0;if(_.J("enable_system_health_primes_monitoring"))return _.Uq(UbZ,3E4),LDa(),h.return();if(!(Math.random()<_.cx("web_system_health_fraction")))return h.jumpTo(0);jn$={heightPixels:screen.height,widthPixels:screen.width};Ft&&!isNaN(Ft.jsHeapSizeLimit)&&(jn$.memoryTotalKbytes=String(Math.round(Ft.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(jn$.devicePixelRatio=window.devicePixelRatio);return h.yield(dbZ(),4)}_.Uq(UbZ,
3E4);return h.yield(CmN(),0)})};
dbZ=function(){return _.a(function(h){if(h.nextAddress==1)return Ak.intersectionObserverPresent="IntersectionObserver"in window,Ak.serviceWorkerPresent="serviceWorker"in navigator,Ak.webSharePresent="share"in navigator,Ak.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Ak.cacheStoragePresent="caches"in window,Ak.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Ak.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Ak.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Tv&&Tv.webkitTemporaryStorage&&"queryUsageAndQuota"in Tv.webkitTemporaryStorage,Ak.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",h.yield(h9$(),2);Ak.indexedDbPresent=h.yieldResult;Ak.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Ak.broadcastChannelPresent="BroadcastChannel"in window;Ak.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Ak.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Ak.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.SK(h)})};
UbZ=function(){var h=9E4+Math.random()*2E3;_.zq()>h||(_.J("enable_system_health_primes_monitoring")?LDa():CmN())};
CmN=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(eYN(),2);h=E.yieldResult;_.vT("systemHealthCaptured",h);_.SK(E)})};
LDa=function(){var h={metric:{}},E=qux();E.networkEvents.length&&(h.metric.networkEvents=fiO(E));_.vT("systemHealthCaptured",h)};
eYN=function(){var h,E,g,Z,M,W,z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:h={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)};E=window.screen;_.J("enable_is_extended_monitoring")&&E&&"isExtended"in E&&(h.isExtended=!!E.isExtended);g={metric:{staticContext:jn$,dynamicContext:h,webMetric:N_z,webApiSupport:Ak}};
if(Z=_.sH())g.csn=Z;Ft&&(g.metric.webMetric.currentHeapKbytes=Math.round(Ft.usedJSHeapSize/1E3));window.matchMedia&&(g.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,g.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,g.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Tv&&typeof Tv.getBattery==="function")){U.jumpTo(2);break}return U.yield(Tv.getBattery(),3);case 3:if(M=
U.yieldResult)g.metric.dynamicContext.chargingStatus=M.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(g.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Ak.storageEstimatePresent)return U.yield(navigator.storage.estimate(),8);if(!Ak.webkitTemporaryStoragePresent){U.jumpTo(5);break}return U.yield(tEO(),7);case 7:W=U.yieldResult;U.jumpTo(5);break;case 8:W=U.yieldResult;case 5:return g.metric.dynamicContext.deviceStorageQuotaMbytes=((z=W)==null?0:z.quota)?String(Math.round(W.quota/
1048576/10)*10):"-1",g.metric.dynamicContext.deviceStorageUsageMbytes=((c=W)==null?0:c.usage)?String(Math.round(W.usage/1048576/10)*10):"-1",I=g.metric.dynamicContext,U.yield(Pmq(),9);case 9:return I.hasAppShell=U.yieldResult,B=qux(),B.networkEvents.length&&(g.metric.networkEvents=fiO(B)),U.return(g)}})};
tEO=function(){return new Promise(function(h){var E;Ak.webkitTemporaryStoragePresent&&(E=Tv.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?Tv.webkitTemporaryStorage.queryUsageAndQuota(function(g,Z){h({usage:g,quota:Z})}):h(void 0)})};
_.bU=function(h){h&=16777215;h=[(h&16711680)>>16,(h&65280)>>8,h&255];return SuO(h[0],h[1],h[2])};
_.uU=function(h){h=[(h&16711680)>>>16,(h&65280)>>>8,h&255,(h&4278190080)>>>24];var E=_.xbx(h,function(g){return g==(g&255)});
h[3]=(h[3]/255).toFixed(3);if(!E)throw Error("fg`"+h.join(","));return"rgba("+h.join(",")+")"};
_.wPz=function(h){return[(h&16711680)>>>16,(h&65280)>>>8,h&255]};
_.Dbx=function(h){h=h.map(function(E){E/=255;return E<=.03928?E/12.92:Math.pow((E+.05)/1.05,2.4)});
return h[0]*.2126+h[1]*.7152+h[2]*.0722};
QV=function(h,E){h=_.wPz(h);return"rgba("+h[0]+", "+h[1]+", "+h[2]+", "+E+")"};
_.lia=function(){try{return!!self.localStorage}catch(h){return!1}};
HHu=function(){if(rz4())_.O$(Error("gg"));else{var h=document.createElement("iframe");h.style.display="none";var E=E===void 0?window.location.href:E;var g=_.OY(_.nF("PERSIST_IDENTITY_IFRAME_URL"));E=g?g:(new URL(E)).host.indexOf("studio")===0?_.BR(mbV,"persist_identity"):_.BR(v9$,"persist_identity");_.MKx(h,1,E);h.id="persist_identity";var Z;(Z=document.body)==null||Z.appendChild(h)}};
rz4=function(){var h=$ba;h||(h=document.querySelector("#persist_identity"));return h};
KDz=function(){var h=!1;try{h=!!window.sessionStorage.getItem("session_logininfo")}catch(E){h=!0}return(_.nF("INNERTUBE_CLIENT_NAME")==="WEB"||_.nF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&h};
OH4=function(h,E){if(!KDz())return!1;E||(E=_.nF("LOGIN_INFO"));return E?(h.session_logininfo=E,!0):!1};
XPM=function(h,E){h=h===void 0?!1:h;if((E===void 0||!E)&&n94!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Xn("LOG_STICKINESS",!1)){E=_.sH();var g=_.YN(),Z={identityStickinessData:{initialState:n94}};E&&g&&_.Wn(E,g,Z)}if(E=rz4())if(g=E.src?(new URL(E.src)).origin:"*",h){var M;(M=E.contentWindow)==null||M.postMessage({action:"clear"},g)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(h=window.sessionStorage.getItem("session_logininfo"))){var W;(W=E.contentWindow)==null||W.postMessage({loginInfo:h},g)}};
_.ha=function(h){h=h===void 0?!0:h;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.OW("LOGIN_INFO",""),h&&window.sessionStorage.setItem("from_switch_account","1"),XPM(!0,h)}catch(E){}};
Yuz=function(h){h&&(h.startsWith("https://accounts.google.com/AddSession")?_.ha():h.startsWith("https://accounts.google.com/ServiceLogin")?_.ha():h.startsWith("https://myaccount.google.com")&&_.T8(h).getPath().endsWith("/youtubeoptions")&&_.ha())};
EB=function(h,E){Yuz(h);if(_.Xn("LOGGED_IN",!0)&&KDz()){var g=tuz(h);g==null&&(g={});OH4(g,E)&&_.zG(h,g)}};
snW=function(){function h(E){for(E=E.target;E&&E.nodeName!=="A";)if(E=E.parentNode,!(E&&E instanceof HTMLElement))return;if(E&&!E.hasAttribute("download")&&E.getAttribute("rel")!=="external"&&E.href)return E.href}
document.addEventListener("mousedown",function(E){E.button!==0&&(E=h(E))&&EB(E)});
document.addEventListener("click",function(E){(E=h(E))&&EB(E)})};
yzu=function(){var h=new VE$;try{if(_.Xn("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(c){h.increment(5,!1);return}if(_.nF("LOGIN_INFO")){var E=kjV?kjV:window.location;_.nF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&HHu();var g=tuz(E.href);g==null&&(g={});var Z=g.session_logininfo,M=Number(window.sessionStorage.getItem("stickiness_reload")),W=Z===_.nF("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
M>=2||W)M>=2?h.increment(2,W):W?h.increment(7,W):window.sessionStorage.getItem("session_logininfo")||(h.increment(3,W),n94="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.nF("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.nF("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))h.increment(4,W),window.sessionStorage.removeItem("stickiness_reload");
else if(M<2){window.sessionStorage.setItem("stickiness_reload",String(M+1));var z=E.href;z=_.aa(z,"sttick");EB(z,window.sessionStorage.getItem("session_logininfo"));z=_.Qy(z,{sttick:M});h.increment(M,W);_.chM(E,z)}}else h.increment(6,!1)}else _.ha(!1)}catch(c){}};
_.gD=function(h,E,g,Z,M){E=E===void 0?{}:E;g=g===void 0?"":g;Z=Z===void 0?window:Z;h=_.hl(h,E);EB(h);g=_.Yr(h+g,M);_.chM(Z.location,g)};
FDu=function(h){if(h.urlEndpoint){if(h=_.uI(h.urlEndpoint.url),h.adurl)return Wx(h.adurl)}else if(h.watchEndpoint)return"//www.youtube.com/watch?v="+h.watchEndpoint.videoId;return null};
AzZ=function(h){if(!h||!h.reportingPings)return null;var E={};h.reportingPings.forEach(function(g){g.pingType in E?E[g.pingType].push(g.url):E[g.pingType]=[g.url]});
return{adpings:NCd(E)}};
_.ZM=function(){return{isShellLoad:_.Xn("IS_SHELL_LOAD",!1)}};
bHM=function(){navigator.serviceWorker.getRegistrations().then(function(h){h.forEach(T_W)})};
T_W=function(h){h&&_.uZu(Qnz,h.scope)};
_.uZu=function(h,E){E={scope:E||_.iN("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.lx(h),E)};
Mm=function(h,E,g,Z){if(E&&E.serializedYpcCujLoggingParams){if(g){var M={};M.transactionErrorType=g;Z&&(M.errorMessage=Z);E.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:M}}}g={};g.ypcCujContext=E;h=_.Cm("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",h,g);_.Jk(_.el(),h,"FLOW_TYPE_YPC_ACQUISITION")}};
_.hjd=function(h,E,g,Z){var M={};M.serializedTransactionFlowLoggingParams=E;g&&(M.errorType=g);Z&&(M.errorMessage=Z);_.vT(h,M);_.HT()};
_.EzM=function(h){h&&_.hjd("transactionFlowStarted",h)};
_.gzV=function(h){h&&_.hjd("transactionFlowCancelled",h)};
_.Wb=function(h,E,g){E&&_.hjd("transactionFlowFailed",E,h,g)};
Z04=function(h){var E=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");E&&(E.inert=h)};
_.p3=function(){this.megabloxUrl_=null};
_.Gw=function(h){try{var E=MVz==null?void 0:MVz.composedPath(h)}catch(g){E=h.composedPath?h.composedPath():[]}return E&&E.length>0?E:h.composedPath?h.composedPath():[]};
_.zw=function(h){return _.Gw(h)[0]};
_.aN=function(h){if(!(h instanceof Element))return null;h=h.classList?Array.from(h.classList):void 0;if(!h)return null;var E=h.indexOf("style-scope");return E>-1&&E+1<h.length?h[E+1]:null};
cb=function(h){if(!(h instanceof HTMLElement))return null;var E=h&&(h.$$||h.polymerController)?h.tagName.toLowerCase():null;return E?E:_.aN(h)};
Wt$=function(h,E){return h.replace(/[^a-z]*[^\s]+/g,function(g){return g+".style-scope."+E})};
p0u=function(h,E){return E?h.split(",").map(function(g){return Wt$(g.trim(),E)}).join(", "):h};
_.iq=function(h){var E,g,Z,M;return(M=(Z=(g=(E=h.root)!=null?E:h.shadowRoot)!=null?g:h.__shady_native_shadowRoot)!=null?Z:h.__shady_shadowRoot)!=null?M:h};
oN=function(h){return h instanceof ShadowRoot?ShadowRoot:h instanceof DocumentFragment?DocumentFragment:h instanceof Document?Document:HTMLElement};
GiV=function(h){var E,g,Z;return(Z=(g=(E=h.parentElement)!=null?E:h.__shady_native_parentElement)!=null?g:h.__shady_parentElement)!=null?Z:null};
zjz=function(h){var E,g,Z;return(Z=(g=(E=h.parentNode)!=null?E:h.__shady_native_parentNode)!=null?g:h.__shady_parentNode)!=null?Z:null};
afd=function(h){var E,g,Z;return(Z=(g=(E=h.__shady_parentNode)!=null?E:h.__shady_native_parentNode)!=null?g:h.parentNode)!=null?Z:null};
cYN=function(h){var E,g;return(g=(E=zjz(h))!=null?E:h.host)!=null?g:null};
i0u=function(h){var E,g,Z;return(Z=(g=(E=h.nextSibling)!=null?E:h.__shady_native_nextSibling)!=null?g:h.__shady_nextSibling)!=null?Z:null};
ozV=function(h){var E,g,Z;return(Z=(g=(E=h.previousSibling)!=null?E:h.__shady_native_previousSibling)!=null?g:h.__shady_previousSibling)!=null?Z:null};
Ifq=function(h){var E,g,Z;return(Z=(g=(E=h.nextElementSibling)!=null?E:h.__shady_native_nextElementSibling)!=null?g:h.__shady_nextElementSibling)!=null?Z:null};
Rjq=function(h){var E,g,Z;return(Z=(g=(E=h.previousElementSibling)!=null?E:h.__shady_native_previousElementSibling)!=null?g:h.__shady_previousElementSibling)!=null?Z:null};
PBZ=function(h){var E,g,Z;return new Set([].concat(_.$E((E=h.children)!=null?E:[]),_.$E((g=h.__shady_native_children)!=null?g:[]),_.$E((Z=h.__shady_children)!=null?Z:[])))};
BSz=function(h){var E,g,Z;return new Set([].concat(_.$E((E=h.childNodes)!=null?E:[]),_.$E((g=h.__shady_native_childNodes)!=null?g:[]),_.$E((Z=h.__shady_childNodes)!=null?Z:[])))};
UqM=function(h){if(!h)return null;var E=_.aN(h);if(!E){var g;return(g=Node.prototype.getRootNode)==null?void 0:g.call(h)}E=E.toUpperCase();for(h=GiV(h);h&&h.tagName!==E;)h=GiV(h);return h?_.iq(h):null};
Lt4=function(h){for(;h&&!(h instanceof HTMLElement);)h=cYN(h);return h};
j_q=function(h){var E=Lt4(h);return h===E?_.aN(h):E?cb(E):null};
dqd=function(h){return(h=Lt4(h))?cb(h):null};
CBZ=function(h){if(h instanceof Comment)return!1;if(h instanceof Text){var E,g;if(((g=(E=h.textContent)==null?void 0:E.trim())!=null?g:"")==="")return!1}return!0};
IN=function(h,E,g){var Z=E(h);for(g=g===void 0?dqd(h):g;Z&&(j_q(Z)!==g||!CBZ(Z));)h=Z,Z=E(h);return Z};
JYu=function(h,E,g){if(!E)return null;h=dqd(h);return j_q(E)===h&&CBZ(E)?E:IN(E,g,h)};
ej4=function(h){return IN(h,afd,_.aN(h))};
qVa=function(h){return IN(h,Ifq)};
ffq=function(h){return IN(h,i0u)};
NSV=function(h){return IN(h,Rjq)};
tVV=function(h){return IN(h,ozV)};
SVz=function(h){return JYu(h,h.firstChild||h.__shady_native_firstChild||h.__shady_firstChild||null,i0u)};
xqM=function(h){var E,g,Z;var M=(Z=(g=(E=h.firstElementChild)!=null?E:h.__shady_native_firstElementChild)!=null?g:h.__shady_firstElementChild)!=null?Z:null;return JYu(h,M,Ifq)};
w0u=function(h){var E,g,Z;var M=(Z=(g=(E=h.lastChild)!=null?E:h.__shady_native_lastChild)!=null?g:h.__shady_lastChild)!=null?Z:null;return JYu(h,M,ozV)};
DqW=function(h){var E,g,Z;var M=(Z=(g=(E=h.lastElementChild)!=null?E:h.__shady_native_lastElementChild)!=null?g:h.__shady_lastElementChild)!=null?Z:null;return JYu(h,M,Rjq)};
lf$=function(h){var E=dqd(h);return Array.from(BSz(h)).filter(function(g){return j_q(g)===E})};
rY$=function(h){var E=cb(h);return Array.from(PBZ(h)).filter(function(g){return _.aN(g)===E})};
_.RN=function(h,E,g){if(h instanceof HTMLElement&&_.aN(h)===g){var Z=Array.from(h.classList).indexOf("style-scope");if(Z===-1)h.classList.add("style-scope"),h.classList.add(E);else if(!(Z+1>=h.classList.length)){Z=h.classList[Z+1];var M,W;h==null||(M=h.classList)==null||(W=M.replace)==null||W.call(M,Z,E)}}if(h instanceof HTMLElement||h instanceof DocumentFragment)for(M=_.G(PBZ(h)),W=M.next();!W.done;W=M.next())_.RN(W.value,E,g);return h};
Pb=function(h,E){if(h instanceof HTMLElement&&_.aN(h)===E){var g=Array.from(h.classList).indexOf("style-scope");g===-1||g+1>=h.classList.length||h.classList.remove("style-scope",h.classList[g+1])}if(h instanceof HTMLElement||h instanceof DocumentFragment){g=_.G(h.children);for(var Z=g.next();!Z.done;Z=g.next())Pb(Z.value,E)}return h};
_.mq$=function(h,E){return oN(h).prototype.appendChild.call(h,E)};
vzO=function(h,E){if(h===E)return!0;h=BSz(h);return Array.from(h).some(function(g){return vzO(g,E)})};
_.UB=function(h,E){if(h instanceof Bb)return h;(E==null?0:E.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(h,"ownerDocument")&&Object.defineProperty(h,"ownerDocument",{get:function(){return window.document}});
return new Bb(h)};
$qq=function(){var h=Bb.prototype,E=[].concat(_.$E(H0M?[]:["getRootNode"]),["setAttribute","removeAttribute"]);E=_.G(E);for(var g=E.next(),Z={};!g.done;Z={method$jscomp$51:void 0},g=E.next())Z.method$jscomp$51=g.value,h[Z.method$jscomp$51]=function(M){return function(){return this.host[M.method$jscomp$51].apply(this.host,arguments)}}(Z)};
O0M=function(){var h=Bb.prototype,E=[].concat(_.$E(H0M?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.$E(KtO?[]:["querySelector","querySelectorAll"]));E=_.G(E);for(var g=E.next(),Z={};!g.done;Z={method$jscomp$52:void 0},g=E.next())Z.method$jscomp$52=g.value,h[Z.method$jscomp$52]=function(M){return function(){return this.root[M.method$jscomp$52].apply(this.root,arguments)}}(Z)};
YVZ=function(){var h=Bb.prototype,E=[].concat(_.$E(nzu?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.$E(X0d?[]:["parentNode"]));E=_.G(E);for(var g=E.next(),Z={};!g.done;Z={prop$jscomp$63:void 0},g=E.next())Z.prop$jscomp$63=g.value,Object.defineProperty(h,Z.prop$jscomp$63,{get:function(M){return function(){return this.host[M.prop$jscomp$63]}}(Z),
configurable:!0})};
ki4=function(){var h=Bb.prototype,E=["activeElement"].concat(_.$E(nzu?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.$E(s_$?[]:["children"]),_.$E(VVz?[]:["lastChild"]));E=_.G(E);for(var g=E.next(),Z={};!g.done;Z={prop$jscomp$64:void 0},g=E.next())Z.prop$jscomp$64=g.value,Object.defineProperty(h,Z.prop$jscomp$64,{get:function(M){return function(){return this.root[M.prop$jscomp$64]}}(Z),
configurable:!0})};
yYz=function(){for(var h=Bb.prototype,E=_.G(["innerHTML","textContent"]),g=E.next(),Z={};!g.done;Z={prop$jscomp$65:void 0},g=E.next())Z.prop$jscomp$65=g.value,Object.defineProperty(h,Z.prop$jscomp$65,{get:function(M){return function(){return this.root[M.prop$jscomp$65]}}(Z),
set:function(M){return function(W){this.root[M.prop$jscomp$65]=W}}(Z),
configurable:!0})};
Ftz=function(h){var E=Bb.prototype;h=_.G(Object.entries(h));for(var g=h.next(),Z={};!g.done;Z={fn$jscomp$402:void 0},g=h.next()){var M=_.G(g.value);g=M.next().value;M=M.next().value;Z.fn$jscomp$402=M;E[g]=function(W){return function(){return W.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.$E(arguments)))}}(Z)}};
TS4=function(){for(var h=Bb.prototype,E=_.G(Object.entries(AYO)),g=E.next(),Z={};!g.done;Z={fn$jscomp$403:void 0},g=E.next()){var M=_.G(g.value);g=M.next().value;M=M.next().value;Z.fn$jscomp$403=M;Object.defineProperty(h,g,{get:function(W){return function(){return W.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.$E(arguments)))}}(Z),
configurable:!0})}};
_.L3=function(h){return h instanceof b0O||h instanceof Document?h:new b0O(h)};
u_d=function(){for(var h=b0O.prototype,E=_.G("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),g=E.next(),Z={};!g.done;Z={method$jscomp$53:void 0},g=E.next())Z.method$jscomp$53=g.value,h[Z.method$jscomp$53]=function(M){return function(){return HTMLElement.prototype[M.method$jscomp$53].call.apply(HTMLElement.prototype[M.method$jscomp$53],[this.node].concat(_.$E(arguments)))}}(Z)};
Q_z=function(){for(var h=b0O.prototype,E=_.G("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),g=E.next(),Z={};!g.done;Z={prop$jscomp$66:void 0},g=E.next())Z.prop$jscomp$66=g.value,Object.defineProperty(h,Z.prop$jscomp$66,{get:function(M){return function(){var W;return(W=this.node["__shady_native_"+M.prop$jscomp$66])!=null?W:this.node[M.prop$jscomp$66]}}(Z),
configurable:!0})};
_.jg=function(h,E,g){g===void 0&&(g=!h.classList.contains(E));g?h.classList.add(E):h.classList.remove(E)};
_.dD=function(h,E,g){g===void 0&&(g=!h.hasAttribute(E));if(E==="class")throw Error("lg");g?_.L3(h).setAttribute(E,""):_.L3(h).removeAttribute(E)};
hWu=function(h){return(h.localName!=="slot"?[]:(0,_.C3)(h).assignedNodes({flatten:!0})).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
_.E_q=function(h){return(h=_.UB(h).querySelector("slot"))&&h.localName==="slot"?hWu(h):[]};
_.Ja=function(h,E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(h,E)};
eg=function(h,E){var g=E.bind(h);return function(Z){g(Z,Z.detail)}};
_.qm=function(h,E){var g=g_z.get(h);g||(g=new WeakMap,g_z.set(h,g));if(g.has(E))return g.get(E);if(_.J("web_fi_listen_disable_bound_fn_helper")){var Z=E.bind(h);h=function(M){Z(M,M==null?void 0:M.detail)}}else h=eg(h,E);
g.set(E,h);return h};
WRO=function(h,E){Z7q(h);h.created[MB4].push(E)};
Z7q=function(h){if(!h.created||!h.created[MB4]){var E=h.created,g=E?[E]:[];h.created=function(){for(var Z=_.G(g),M=Z.next();!M.done;M=Z.next())M.value.apply(this)};
h.created[MB4]=g}};
pvN=function(h){return function(){var E=_.VF.apply(0,arguments);return function(g,Z,M){h.apply(null,_.$E(E))(g,Z,M)}}};
GUz=function(){return function(){var h=_.VF.apply(0,arguments);return function(E,g,Z){VIx.apply(null,_.$E(h))(E,g,Z)}}};
_.t=function(h){return GUz()(h)};
_.S=function(){return pvN(Aod).apply(null,_.$E(_.VF.apply(0,arguments)))};
_.f3=function(h){return _.J("pbcm_fi_listen_decorators")?zWz(h):pvN(yod)(h)};
zWz=function(h){return function(E,g){WRO(E,function(){var Z=this[g],M=_.J("web_fi_listen_disable_bound_fn_helper")?function(W){Z(W,W.detail)}.bind(this):eg(this,Z);
ak$.has(h)?ng(this.hostElement,h,M):this.hostElement.addEventListener(h,M)})}};
_.Nm=function(){return pvN(FIz).apply(null,_.$E(_.VF.apply(0,arguments)))};
_.x=function(h){h=h===void 0?{}:h;return pvN(kbd)(h)};
_.ta=function(h){if(h.hostElement&&h!==h.hostElement){var E=_.vl(h.hostElement);E=h.renderIdom?E:E.shadowRoot}E||(h=h.root,E=h instanceof Node?_.vl(h):null);return E};
_.Sg=function(h){return c$d?i7W(h):function(E,g){Object.defineProperty(E,g,{get:function(){var Z;return(Z=_.ta(this))==null?void 0:Z.querySelector(h)},
enumerable:!0,configurable:!0})}};
i7W=function(h){return function(E,g){Object.defineProperty(E,g,{get:function(){var Z,M=(Z=_.UB(this.hostElement))==null?void 0:Z.querySelector(h);if(M)return M;var W;return(W=_.ta(this))==null?void 0:W.querySelector(h)},
enumerable:!0,configurable:!0})}};
_.xA=function(h){return c$d?o_z(h):function(E,g){Object.defineProperty(E,g,{get:function(){var Z;return(Z=_.ta(this))==null?void 0:Z.querySelectorAll(h)},
enumerable:!0,configurable:!0})}};
o_z=function(h){return function(E,g){Object.defineProperty(E,g,{get:function(){var Z,M=(Z=_.UB(this.hostElement))==null?void 0:Z.querySelectorAll(h);if(M==null?0:M.length)return M;var W;return(W=_.ta(this))==null?void 0:W.querySelectorAll(h)},
enumerable:!0,configurable:!0})}};
Ik$=function(h){return function(E){if(![_.a5,_.D].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("mg");HzM(Object.assign({},typeof h!=="string"?h:{is:h,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(E)}};
_.DM=function(){var h=h===void 0?{}:h;return function(E){if(![cl,_.wD].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("ng");$Gz(Object.assign({},h,{disableInheritanceCheck:!0}))(E)}};
P5O=function(h,E){RW$[h]!=null||(RW$[h]=new Set);RW$[h].add(E)};
_.lq=function(){var h=_.Nm.apply(null,_.$E(_.VF.apply(0,arguments)));return function(E,g){P5O(E.is,g);h(E,g)}};
vb=function(h,E,g){if(rD(h)&&!Bsd.has(E)){E=E.replace(/^JSC\$[\d]+_/,"");E=E.replace(/\.\d+(\.|$)/g,function(W,z){return".#"+z});
mh[h]!=null||(mh[h]={});var Z,M;(Z=mh[h])[M=E]!=null||(Z[M]=new Set);mh[h][E].has(g)||(mh[h][E].add(g),_.vT("polymerPropertyAccessEvent",{componentName:h,propertyName:E,accessType:g}))}};
Uxx=function(){return _.J("polymer_property_access_logging_debug")||_.J("polymer_enable_property_access_logging")};
rD=function(h){if(_.J("polymer_property_access_logging_debug"))return!0;if(!_.J("polymer_enable_property_access_logging"))return!1;LR$||(LR$=Date.now());return(uC(h)+LR$)%100<_.cx("polymer_property_access_logging_percent")};
j0O=function(h,E){return rD(E)&&h.hostElement.loggingStatus?new Proxy(h,{get:function(g,Z,M){if(g.hostElement.loggingStatus.bypassProxyController)return g[Z];g.hostElement.loggingStatus.isExternalGet=!0;var W=g[Z];g.hostElement.loggingStatus.isExternalGet=!1;if(W instanceof Function)return function(){var z=_.VF.apply(0,arguments);try{return g.hostElement.loggingStatus.currentExternalCall=Z,vb(E,Z,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),W.apply(this===M?g:this,z)}finally{g.hostElement.loggingStatus.currentExternalCall=
void 0}};
vb(E,Z,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return W},
set:function(g,Z,M){if(g.hostElement.loggingStatus.bypassProxyController)return g[Z]=M,!0;g.hostElement.loggingStatus.isRendererStamper?vb(E,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):g.hostElement.loggingStatus.isDeclarativeExternal||vb(E,Z,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{g.hostElement.loggingStatus.currentExternalSet=Z,g[Z]=M}finally{g.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):h};
dxN=function(h,E){h&&h.loggingStatus&&!h.loggingStatus.isDeclarativeExternal&&!h.loggingStatus.isExternalGet&&h.loggingStatus.currentExternalSet!==E&&vb(h.tagName.toLowerCase(),E,"PROPERTY_ACCESS_GET_INTERNAL")};
Hb=function(h,E,g){h&&(g||h.loggingStatus&&!h.loggingStatus.isInitializing&&!h.loggingStatus.isDefiningPropertyAccessor&&h.loggingStatus.currentExternalSet!==E)&&vb(h.tagName.toLowerCase(),E,"PROPERTY_ACCESS_SET_INTERNAL")};
C5$=function(){return{_definePropertyAccessor:function(h,E){var g=this,Z=g.hostElement.loggingStatus;Z&&(Z.isDefiningPropertyAccessor=!0);var M=g[h];M!==void 0&&(g.__data?g._setPendingProperty(h,M):(g.__dataProto!=null||(g.__dataProto={}),g.__dataProto[h]=M));Z&&(Z.isDefiningPropertyAccessor=!1);Object.defineProperty(this,h,{get:function(){dxN(g.hostElement,h);return this.__data[h]},
set:function(W){E||this._setPendingProperty(h,W,!0)&&this._invalidateProperties()}})},
created:function(){var h=this._setPendingProperty.bind(this);this._setPendingProperty=function(E,g,Z){Hb(this.hostElement,E);return h.apply(this,[E,g,Z])}}}};
J$q=function(h){Uxx()&&_.t($A.prototype)(h.prototype,"__templateBindingLoggingBehavior")};
eW4=function(h,E){if(E.resolvedFactories.length!==h.resolvedFactories.length)return!0;E=_.G(E.resolvedFactories.entries());for(var g=E.next();!g.done;g=E.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;if(Z.providerClass){if(Z.providerClass!==h.resolvedFactories[g].providerClass)return!0}else if(Z.providerValue){if(Z.providerValue!==h.resolvedFactories[g].providerValue)return!0}else if(Z.factory!==h.resolvedFactories[g].factory)return!0}return!1};
qbW=function(h,E){h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,g.constructor===Array)qbW(g,E);else{var Z=E;Z.has(g)||(g.inject&&Z.add(g),g.behaviors&&qbW(g.behaviors,Z))}};
K3=function(h,E){var g=h[E];h[E]=function(){var Z=_.VF.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(g)return g.apply(this,Z)}};
Sbz=function(){_.OB.Class=function(g,Z){g=fk4(g,Z);K3(g.prototype,"created");return g};
K3(n3.prototype,"_initializeProperties");K3(_.sB.prototype,"_initializeProperties");if(Nsu)K3(tB$,"created");else{var h=function(){K3(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))h();else{var E=customElements.define;customElements.define=function(g,Z,M){E.call(customElements,g,Z,M);g==="tp-yt-iron-list"&&(h(),customElements.define=E)}}}};
wvz=function(h,E){h.prototype.behaviors=h.prototype.behaviors||[];h.prototype.behaviors.unshift(xxx.InjectBehavior);h.prototype.provide=E};
_.yc=function(h){return function(E){if(!h.disableElementRegistration){h.noInjection||wvz(E,h.providers);var g=E.prototype;g.__templateHelpers||VIx(Vc.prototype)(g,"__templateHelpers");g=h.is;DxZ||(DxZ=Date.now());(uC(g)+DxZ)%100<_.cx("polymer_log_prop_change_observer_percent")&&VIx(kA.prototype)(E.prototype,"__propertyObserverObserver");E.prototype.behaviors=E.prototype.behaviors||[];E.prototype.behaviors.unshift(_.lk$.YtHostElementBehavior);J$q(E);Ik$({is:h.is,notifyObserversOnUndefined:h.notifyObserversOnUndefined!==
!1,fastInit:h.fastInit,template:h.template,disableEnforceFastDefaultValuesCheck:!0})(E)}}};
_.K=function(h){return _.yc({is:h.is,template:h.template,disableElementRegistration:h.disableElementRegistration,cssBuildOptOut:h.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
v_z=function(h,E){if(r$O){h=new h;for(var g=_.G(Object.getOwnPropertyNames(h)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,E[Z]=h[Z];for(g=E;g&&g!==Object.prototype;g=Object.getPrototypeOf(g)){Z=_.G(Object.getOwnPropertyNames(g));for(var M=Z.next();!M.done;M=Z.next())M=M.value,h.hasOwnProperty(M)||Object.defineProperty(h,M,mxx(E,M))}}else h.apply(E)};
mxx=function(h,E){return{get:function(){var g=h[E];return g instanceof Function?g.bind(h):g},
set:function(g){h[E]=g}}};
$xz=function(h,E){for(var g=h._noAccessors,Z=_.G(Object.getOwnPropertyNames(h)),M=Z.next();!M.done;M=Z.next())if(M=M.value,!H7x.has(M))if(g)E[M]=h[M];else{var W=Object.getOwnPropertyDescriptor(h,M);W&&(W.configurable=!0,Object.defineProperty(E,M,W))}};
KRW=function(h,E,g){return function(Z){if(g){var M=g();Z.model=M}if(h[E])h[E](Z,Z.detail)}};
FT=function(h){var E=[];if(typeof h==="string")h.length>0&&E.push.apply(E,_.$E(h.split(".")));else{h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,typeof g==="string"?E.push.apply(E,_.$E(g.split("."))):E.push(g)}return E};
O7z=function(h,E){if(E[E.length-1]!=="*"&&E[E.length-1]!=="splices"){for(var g=0;g<E.length;g++){if(!h)return;h=h[E[g]]}return h}};
n_x=function(h,E){if(h.length>E.length)return!1;for(var g=0;g<h.length;g++)if(h[g]!==E[g])return!1;return!0};
Yb$=function(h,E,g){if(E.type==="compute"){var Z=E.getter.bind(g);var M=E.args}else Z=function(){return g[E.method.methodName].apply(g,_.$E(_.VF.apply(0,arguments)))},M=E.method.args;
XvV(h,E.propertyKey,Z,M,E.value)};
VBx=function(h,E){if(E.readOnly){var g=Object.getOwnPropertyDescriptor(h.model,E.propertyKey);Object.defineProperty(h.model,E.propertyKey,{get:g.get,set:function(){}});
h.model[s0$(E.propertyKey)]=g.set}};
kUM=function(h,E,g){if(g){var Z=E.propertyKey,M=E.selector;E=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.$E(E.selectorArgs.map(function(W){return{type:"path",path:W}})));
XvV(h,Z,function(W){var z=_.VF.apply(1,arguments);return M.apply(null,[g.getState()].concat(_.$E(z)))},E)}};
FRN=function(h,E,g){var Z=_.tQ(E.propertyKey)+"-changed";y$x(h,function(M){var W={value:M.value,queueProperty:!0};M.path.split(".").length>1&&(W.path=M.path);g.dispatchEvent(new CustomEvent(Z,{detail:W}))},[{type:"wildcard",
path:E.propertyKey}])};
A$N=function(h,E,g){y$x(h,function(){g[E.method.methodName].apply(g,_.$E(_.VF.apply(0,arguments)))},E.method.args)};
s0$=function(h){return"_set"+(h.charAt(0).toUpperCase()+h.slice(1))};
Tsd=function(){var h,E=mE(function(g){h=g},!1);
return[h,E]};
En$=function(h){h=h.trim().replace(b7N,",").replace(uuu,"$1");var E=h[0];E==="-"&&(E=h[1]);if(E>="0"&&E<="9")return{type:"literal",value:Number(h)};if(E==="'"||E==='"')return{type:"literal",value:h.slice(1,-1)};if(E=h.match(Q0Z)){E=E[1];var g=hEZ[E];if(g)return{type:g,path:h.slice(0,-(E.length+1))}}return{type:"path",path:h}};
WSW=function(h){var E=h.match(gna);if(E)return h={methodName:E[1],args:ZnN},E[2].trim()&&(E=E[2].replace(MGZ,"&comma;").split(","),h.args=E.map(En$)),h};
peq=function(h,E,g,Z){Z=Z===void 0?!1:Z;E=_.tQ(E);var M=SY;M&&(g=M(g,E,"attribute",h));Aa(h,g,E,Z)};
Aa=function(h,E,g,Z){E=Gxd(E,Z===void 0?!1:Z);E===void 0?h.removeAttribute(g):h.setAttribute(g,E)};
Gxd=function(h,E){switch(typeof h){case "object":case "function":if(h instanceof Date)return h.toString();if(h){if((E===void 0?0:E)&&!_.J("polymer_reflect_objects_as_boolean_killswitch"))return h?"":void 0;E=window.trustedTypes?window.trustedTypes.isHTML(h)||window.trustedTypes.isScript(h)||window.trustedTypes.isScriptURL(h):void 0;if(E)return h;try{return JSON.stringify(h)}catch(g){_.O$(Error("Jg`"+h))}}break;case "boolean":return h?"":void 0;default:return h!==null&&h!==void 0?h.toString():void 0}};
zEu=function(h){if(h===void 0)throw Error("Kg");return h};
IF4=function(h,E,g,Z){var M=aFu(Z);if(M.length){Z=g;var W="property";cuO.test(g)?W="attribute":g[g.length-1]==="$"&&(g=g.slice(0,-1),W="attribute");var z=in4(M);z&&W==="attribute"&&(g==="class"&&h.hasAttribute("class")&&(z+=" "+h.getAttribute(g)),Aa(h,z,g));W==="attribute"&&Z==="disable-upgrade$"&&h.setAttribute("disable-upgrade","");h.localName==="input"&&Z==="value"&&h.setAttribute("value","");h.removeAttribute(Z);W==="property"&&(g=_.SN(g));E=zEu(E);on$(E,W,g,M);return!0}return g.slice(0,3)===
"on-"?(h.removeAttribute(g),(W=E).events!=null||(W.events=[]),E.events.push({name:g.slice(3),value:Z}),!0):g==="id"?(E.id=Z,!0):!1};
aFu=function(h){for(var E=[],g=0,Z;(Z=REM.exec(h))!==null;){Z.index>g&&E.push({type:"literal",value:h.slice(g,Z.index)});var M=Z[1][0];g=!!Z[2];Z=Z[3].trim();if(M==="{")throw Error("Lg");(M=WSW(Z))?E.push({type:"method",negate:g,signature:M}):E.push({type:"path",negate:g,path:Z});g=REM.lastIndex}g&&g<h.length&&(h=h.substring(g))&&E.push({type:"literal",value:h});return E};
in4=function(h){for(var E="",g=0;g<h.length;g++){var Z=h[g];Z.type==="literal"&&(E+=Z.value)}return E};
on$=function(h,E,g,Z){h.bindings!=null||(h.bindings=[]);h.bindings.push({kind:E,target:g,parts:Z})};
jyu=function(h,E,g){var Z=!1;if(h.localName==="template"){Z=g;var M=E.stripWhitespace;M=P74(h,M===void 0?!1:M);var W=h.content.ownerDocument.createDocumentFragment();M.content=W;W.appendChild(h.content);Z&&(Z.templateInfo=M);Z=!0}else h.localName==="slot"&&(E.hasInsertionPoint=!0);if(h.firstChild&&(M=g,h.localName!=="script"&&h.localName!=="style")){W=0;for(var z=h.firstChild;z;){var c=z;if(c.localName==="template"){var I=c.getAttribute("is");if((z=I==="dom-if")||I==="dom-repeat"){c.removeAttribute("is");
I=c.ownerDocument.createElement("ps-"+I);c.parentNode.replaceChild(I,c);I.appendChild(c);var B=Array.from(c.attributes);B=_.G(B);for(var U=B.next();!U.done;U=B.next())U=U.value,z?BwW.has(U.name)&&Aa(I,U.value,U.name):U1N.has(U.name)?Aa(I,U.value,U.name):LSz.has(U.name),c.removeAttribute(U.name);z=I}else z=c}if(z.nodeType===Node.TEXT_NODE){c=void 0;I=h;for(B=z;((c=B.nextSibling)==null?void 0:c.nodeType)===Node.TEXT_NODE;)U=void 0,(U=B).textContent!=null||(U.textContent=""),B.nextSibling.textContent&&
(B.textContent+=B.nextSibling.textContent),I.removeChild(B.nextSibling);if(E.stripWhitespace&&z.textContent&&!z.textContent.trim()){h.removeChild(z);z=z.nextSibling;continue}}jyu(z,E,{parentIndex:W,parentInfo:M});z.parentNode&&W++;z=z.nextSibling}}var L;if((L=h.hasAttributes)==null?0:L.call(h)){L=g=zEu(g);M=!1;W=Array.from(h.attributes);W=_.G(W);for(c=W.next();!c.done;c=W.next())c=c.value,M=IF4(h,L,c.name,c.value)||M;Z=M||Z}h.nodeType===Node.TEXT_NODE&&(L=aFu(h.textContent),L.length&&(h.textContent=
in4(L)||" ",g=zEu(g),on$(g,"text","textContent",L),Z=!0));g&&Z&&(g.infoIndex=E.nodeInfoList.push(g)-1)};
P74=function(h,E){E={nodeInfoList:[],stripWhitespace:(E===void 0?!1:E)||h.hasAttribute("strip-whitespace")};jyu(h.content,E);return E};
d1$=function(h){Object.assign(h,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
JuO=function(h,E,g){E.signalCache!=null||(E.signalCache={});var Z=E.signalCache[g];if(!Z){var M=g.split(".");Z=!C7V(h,M[0]);if(M.length>1&&Z){var W=h.getPathMutationSignal(M);Z=function(){var z=Kw(h.owner,function(){return h.getWithPath([M[0]])}),c,I=(c=W())==null?void 0:c.value;
return{rootWasDefined:z!==void 0,value:I}}}else Z=function(){var z=h.getWithPath(M);
return{rootWasDefined:z!==void 0,value:z}};
E.signalCache[g]=Z}return Z()};
qyx=function(h,E,g,Z,M){E=E.parts.map(function(z,c){if(z.type==="literal"){g.partWasDefined!=null||(g.partWasDefined=[]);var I;(I=g.partWasDefined)[c]||(I[c]=z.value!==void 0);return z.value}var B;if(z.type==="method"){var U,L=(U=(B=g.partWasDefined)==null?void 0:B[c])!=null?U:!1;L||(L=z.signature.args.every(function(q){return q.type==="literal"}));
var d=!1,C=!0;B=z.signature.args.map(function(q){if(q.type==="literal")return q.value;if(q.type!=="path")throw Error("Mg`"+q.type);var w=JuO(h,g,q.path);q=w.value;w=w.rootWasDefined;d||(d=w);C&&(C=w);return q});
L||(L=M===1?C:d);g.partWasDefined!=null||(g.partWasDefined={});g.partWasDefined[c]=L;if(!L)return;B=(c=JuO(h,g,z.signature.methodName).value)&&typeof c==="function"?c.apply(Z,B):void 0}else U=JuO(h,g,z.path),B=U.value,g.partWasDefined!=null||(g.partWasDefined={}),(L=g.partWasDefined)[c]||(L[c]=B!==void 0||U.rootWasDefined);z.negate&&(B=!B);return B});
if(E.length===1){var W;return((W=g.partWasDefined)==null?0:W[0])?E[0]:eEN}return E.join("")};
fFN=function(h){return typeof h==="object"&&!!h&&"notifyPath"in h&&"canNotifyPath"in h};
Nwx=function(h){return typeof h==="object"&&!!h&&"notifyPath"in h};
tGd=function(h){return"polymerController"in h};
Sy$=function(h,E){E=""+FT(E)[0];if(fFN(h))return h.canNotifyPath(E);if(tGd(h)&&fFN(h.polymerController))return h.polymerController.canNotifyPath(E);if(Nwx(h)){var g;return!((g=h.properties)==null||!g[E])}if(tGd(h)&&Nwx(h.polymerController)){var Z;return!((Z=h.polymerController.properties)==null||!Z[E])}return!1};
x1q=function(h,E,g){fFN(h)||Nwx(h)?h.notifyPath(E,g):tGd(h)&&(fFN(h.polymerController)||Nwx(h.polymerController))&&h.polymerController.notifyPath(E,g)};
D1d=function(h,E,g){if(g!==eEN){h.kind==="attribute"||h.target!=="textContent"&&(h.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(g=g===void 0?"":g);var Z,M=(Z=weq.Polymer)==null?void 0:Z.sanitizeDOMValue;M&&(g=M(g,h.target,h.kind,E));if(h.kind==="attribute"){h=h.target;if(h==="class"||h==="name"||h==="slot")E=(0,_.C3)(E);Aa(E,g,h)}else if(h=h.target,g!==E[h]||typeof g==="object")E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!0,vb(E.localName,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
E[h]=g,E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!1)}};
lFx=function(h,E,g,Z){var M=E.parts[0];if(E.parts.length!==1||M.type!=="path"||!Sy$(g,E.target))return!1;var W=_.G(M.path.split(".")),z=W.next().value,c=E9(W);if(C7V(h,z))return!1;Z.signalCache!=null||(Z.signalCache={});W=Z.signalCache[M.path];var I;W=(I=W)==null?void 0:I().value;if((W==null?void 0:W.path)!==void 0){Z=FT(W.path);var B=FT(M.path);Z=[E.target].concat(_.$E(Z.slice(B.length-1)));x1q(g,Z,M.negate?!W.value:W.value);return!0}var U=Tw(h,z);var L=U.getChangeRecordSignal(c),d=!1;W=function(){if(!d){var q=
Kw(h.owner,function(){return U.getWithPath([])});
d||(d=q!==void 0)}return{value:L(),rootWasDefined:d}};
Z.signalCache[M.path]=W;Z.partWasDefined!=null||(Z.partWasDefined={});W=W();(B=Z.partWasDefined)[0]||(B[0]=W.rootWasDefined);var C=Kw(h.owner,function(){return U.getWithPath(c)});
Z.partWasDefined[0]&&Kw(h.owner,function(){return void D1d(E,g,M.negate?!C:C)});
return!0};
ruN=function(h,E,g,Z,M,W){if(!lFx(h,E,g,Z)){var z=qyx(h,E,Z,M,W);Kw(h.owner,function(){return void D1d(E,g,z)})}};
m1q=function(h,E,g,Z,M,W){g=_.G(g);for(var z=g.next(),c={};!z.done;c={infoIndex:void 0},z=g.next()){z=z.value;var I=z.bindings;c.infoIndex=z.infoIndex;z=z.parentInfo;if(I){I=_.G(I);for(var B=I.next(),U={};!B.done;U={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},B=I.next()){U.b$jscomp$253=B.value;if(c.infoIndex===void 0)throw Error("Ng");U.bindingCtx$jscomp$4={};h.effect(function(L,d){return function(){M&&!M()||ruN(h,L.b$jscomp$253,E[d.infoIndex],L.bindingCtx$jscomp$4,Z,W)}}(U,c))}}z&&m1q(h,E,[z],
Z,M,W)}};
vnV=function(h,E){h=(E.parentInfo?vnV(h,E.parentInfo):h).firstChild;for(var g=0;h;h=h.nextSibling)if(E.parentIndex===g++)return h;throw Error("Og");};
$1W=function(h,E,g,Z){h=document.importNode(h.content,!0);h.__noInsertionPoint=!(Z==null?0:Z.hasInsertionPoint);for(var M=Array(E.length),W={},z=0;z<E.length;z++){var c=E[z],I=vnV(h,c);M[z]=I;c.id&&(W[c.id]=I);if(c.templateInfo){var B=I.parentElement;B&&(B.templateInfo=c.templateInfo,B.parentSignalProxy=g,B.eventListenerHost=Z.eventListenerHost,B.stampingEnabled=Z.enabledSignal)}B=void 0;if((B=c.events)==null?0:B.length)for(B=0;B<c.events.length;B++){var U=c.events[B];Hn$(Z.eventListenerHost,I,U.name,
U.value,Z.getModel)}}m1q(g,M,E,Z.thisCtx,Z.enabledSignal,Z.methodInvocationRequirement);return{root:h,nodes:M,nodesById:W}};
Ond=function(h,E){h=h();var g;(g=KSz.ShadyCSS)==null||g.prepareTemplate(h,E);E=P74(h);return{template:h,nodeInfoList:E.nodeInfoList,hasInsertionPoint:E.hasInsertionPoint}};
YyN=function(){nnz=!1;for(var h=bq.length,E=0;E<h;E++){var g=bq[E];if(g)try{g()}catch(Z){Promise.resolve().then(function(){throw Z;})}}bq.splice(0,h);
Xex+=h};
yuM=function(h){nnz||(nnz=!0,sy$.textContent=(VGz++).toString());bq.push(h);return kxz++};
_.hW=function(h,E,g){uq++;h=E?new FS$(uq,h,E,g):new AuZ(uq,h);Qc.set(uq,h);return uq};
TwN=function(h){(h=Qc.get(h))&&h.cancel()};
ulW=function(h,E){h=bn$.get(h);return h?(E=h.get(E))?E:null:null};
_.EQ=function(h,E,g,Z){var M=ulW(h,E);if(!M){M=new Qyq;var W=bn$.get(h);W||(W=new Map,bn$.set(h,W));W.set(E,M)}h=g.bind(h);M.run(h,Z,void 0)};
_.hcu=function(h,E){var g;(g=ulW(h,E))==null||g.cancel()};
E6M=function(h){var E;(E=ulW(h,"doRender"))==null||E.flush()};
gp=function(h){var E;return(E=h.hostElement)!=null?E:h};
g6q=function(h){var E=h.indexOf(".");return E===-1?h:h.slice(0,E)};
Zjz=function(h,E,g,Z,M,W){W=(M=(Z=W?g6q(E):E)?E:null)?h.get(M):h.__data[E];M&&W===void 0&&(W=g[E]);_.Ra(h.hostElement,q1q(Z)+"-changed",{value:W,queueProperty:!0,path:M!=null?M:void 0},{bubbles:!1,composed:!1})};
M4Z=function(h,E){h.__isReflecting=!0;peq(h.hostElement,E,h.__data[E]);h.__isReflecting=!1};
WW$=function(h){if(h._onIronRequestResizeNotifications){var E=h._onIronRequestResizeNotifications.bind(h);h._onIronRequestResizeNotifications=function(g){_.zw(g)!==h.hostElement&&E(g)}}h._ariaActiveAttributeChanged&&(h._ariaActiveAttributeChanged=h._ariaActiveAttributeChanged.bind(h.hostElement));
h._activeChanged&&(h._activeChanged=function(g){h.toggles?Aa(h.hostElement,g?"true":"false",h.ariaActiveAttribute):h.hostElement.removeAttribute(h.ariaActiveAttribute);h._changedButtonState()});
h._asyncClick&&(h._asyncClick=function(){_.hW(function(){h.hostElement.click()},1)});
!h.keyEventTarget||h.keyEventTarget instanceof EventTarget||(h.keyEventTarget=gp(h.keyEventTarget));h._disabledChanged&&(h._disabledChanged=h._disabledChanged.bind(h.hostElement));h._observeItems&&(h._observeItems=function(g){var Z=gp(g);return _.vl(Z).observeNodes(function(M){h._updateItems();h._updateSelected();_.Ra(Z,"iron-items-changed",M,{bubbles:!1,cancelable:!1})})});
h._updateItems&&h._updateItems===_.Z6._updateItems&&(h._updateItems=function(){var g=_.vl(h.hostElement).queryDistributedElements(h.selectable||"*");g=Array.prototype.filter.call(g,h._bindFilterItem);h._setItems(g)});
h._computeKeyboardClass&&(h._computeKeyboardClass=function(g){_.jg(h.hostElement,"keyboard-focus",g)});
h.ensureRipple&&(h.ensureRipple=function(g){if(h.hasRipple&&!h.hasRipple()){if(!h._createRipple)return;h._ripple=h._createRipple();h._ripple.noink=h.noink;var Z=h._rippleContainer||h.hostElement;Z&&_.UB(Z).appendChild(h._ripple)}var M;if(g&&((M=h._ripple)==null?0:M.uiDownAction)){Z=_.UB(h._rippleContainer||h.hostElement);var W;M=(W=g.composedPath())==null?void 0:W[0];Z.contains(M)&&h._ripple.uiDownAction(g)}});
h._updateMultiselectable&&(h._updateMultiselectable=function(g){g?h.hostElement.setAttribute("aria-multiselectable","true"):h.hostElement.removeAttribute("aria-multiselectable")})};
pGz=function(h,E,g){g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next())v_z(Z.value.constructor,h);v_z(E.constructor,h)};
zcV=function(h,E){h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,g.type==="signal"){var Z=g.propertyKey;if(E.hasOwnProperty(Z)&&E[Z]!=null&&g.attributeType===Object){a:{Z=E[Z].constructor;for(var M=_.G(GS4),W=M.next();!W.done;W=M.next())if(W=W.value,Z===W){Z=W;break a}Z=Object}g.attributeType=Z}}};
a5$=function(){};
cZZ=function(h){var E;return(E=h.hostElement)!=null?E:h};
ijW=function(){throw Error("Sg");};
o64=function(h,E){h.constructor.prototype.useSignals=!0;var g=new h.constructor;pGz(g,h,E.behaviors);zcV(E.reactiveSchemas,g);g={};for(var Z=_.G(E.reactiveSchemas),M=Z.next();!M.done;M=Z.next())M=M.value,M.type==="signal"&&(g[M.propertyKey]=M.attributeType);var W={copyPropertiesToProto:ijW,didRegister:!1,typesForSignals:g},z=["disable-upgrade"].concat(_.$E(E.observedAttributes)),c=function(I){MB.call(this,h,E,W,I)};
_.f(c,MB);_.ze.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
W.copyPropertiesToProto=function(){for(var I=0;I<E.behaviors.length;I++)$xz(E.behaviors[I],c.prototype);$xz(h,c.prototype)};
E.legacyOptimizations||W.copyPropertiesToProto();c.prototype.is=h.is;return c};
I5$=function(h,E){if(Object.getPrototypeOf(E.prototype).constructor!==_.D)throw Error("Tg");E.prototype.is=h.is;return o64(E.prototype,h)};
RcM=function(h){return h.type==="compute"||h.type==="computeWithMethod"};
P6Z=function(h){for(var E=h.reactiveSchemas.filter(RcM),g=new Map,Z=new Map,M=new Map,W=_.G(E),z=W.next();!z.done;z=W.next())z=z.value,g.set(z.propertyKey,z),Z.set(z.propertyKey,[]),M.set(z.propertyKey,0);W=0;E=_.G(E);for(z=E.next();!z.done;z=E.next()){z=z.value;for(var c=_.G(z.type==="computeWithMethod"?z.method.args:z.args),I=c.next();!I.done;I=c.next())I=I.value,I.type!=="literal"&&(I=I.path.split(".")[0],Z.has(I)&&(Z.get(I).push(z.propertyKey),M.set(z.propertyKey,M.get(z.propertyKey)+1),W++))}z=
[].concat(_.$E(Z.keys())).filter(function(B){return M.get(B)===0});
for(E=[];z.length;)for(c=z.shift(),E.push(g.get(c)),c=_.G(Z.get(c)),I=c.next();!I.done;I=c.next())I=I.value,M.set(I,M.get(I)-1),W--,M.get(I)===0&&z.push(I);g=h.reactiveSchemas.filter(function(B){return!RcM(B)});
h.reactiveSchemas=[].concat(_.$E(g),_.$E(E))};
B8N=function(h,E){if(E.properties)for(var g=_.G(Object.entries(E.properties)),Z=g.next();!Z.done;Z=g.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;h.properties[Z]=typeof M==="function"?{type:M}:M}E.observers&&h.observers.push.apply(h.observers,_.$E(E.observers));E.disabledPolySiReactions&&h.disabledPolySiReactions.push.apply(h.disabledPolySiReactions,_.$E(E.disabledPolySiReactions))};
UzO=function(h,E){for(var g=E.length-1;g>=0;g--){var Z=E[g];Array.isArray(Z)?UzO(h,Z):h.indexOf(Z)<0&&h.unshift(Z)}};
LW$=function(h,E){h.reactiveSchemas=h.reactiveSchemas.filter(function(g){return g.type==="observe"&&E.includes(g.method.methodName)||RcM(g)&&E.includes(g.propertyKey)?!1:!0})};
dzM=function(h,E){var g=E.prototype,Z,M,W={is:h.is,reactiveSchemas:[],observedAttributes:[],behaviors:[xxx.InjectBehavior,Vc.prototype],disableElementRegistration:h.disableElementRegistration,provide:(Z=h.providers)!=null?Z:[],reactivityMode:h.reactivityMode,signalProperties:(M=g.signalProperties)!=null?M:[]};"template"in E?W.templateGetter=function(){return E.template}:h.getTemplate&&(W.templateGetter=h.getTemplate);
g.behaviors&&UzO(W.behaviors,g.behaviors);j4a(W,E);return W};
j4a=function(h,E){for(var g=E.prototype,Z={properties:{},observers:[],disabledPolySiReactions:[]},M=_.G(h.behaviors),W=M.next();!W.done;W=M.next())B8N(Z,W.value);B8N(Z,g);if(h.signalProperties)for(g=_.G(h.signalProperties),M=g.next();!M.done;M=g.next())delete Z.properties[M.value];g=_.G(Object.entries(Z.properties));for(M=g.next();!M.done;M=g.next()){W=_.G(M.value);M=W.next().value;W=W.next().value;var z=void 0;if((z=h.signalProperties)==null||!z.includes(M)){z=void 0;var c=h,I=W.type;if(!I)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{I=Reflect.getMetadata("design:type",E,M);for(var B=_.G(C6q),U=B.next();!U.done;U=B.next())if(U=U.value,I===U){I=U;break a}I=Object}else I=String;W.computed||W.selector||(c.reactiveSchemas.push({type:"signal",propertyKey:M,value:W.value,attributeType:I,readOnly:W.readOnly}),c.observedAttributes.push(_.tQ(M)));W.reflectToAttribute&&c.reactiveSchemas.push({type:"reflect",propertyKey:M});if(W.computed){I=WSW(W.computed);if(!I)throw Error("Ug");c.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:M,method:I,value:W.value})}W.observer&&c.reactiveSchemas.push({type:"observe",method:{methodName:W.observer,args:[{type:"path",path:M}]}});W.notify&&c.reactiveSchemas.push({type:"notify",propertyKey:M});W.selector&&c.reactiveSchemas.push({type:"redux",propertyKey:M,selector:W.selector,selectorArgs:(z=W.selectorArgs)!=null?z:[]})}}JZ$&&P6Z(h);E=_.G(Z.observers);for(M=E.next();!M.done;M=E.next())g=h,M=M.value,(W=WSW(M))?g.reactiveSchemas.push({type:"observe",method:W}):console.log('Warning: unable to parse observe declaration: "'+
M+'"');LW$(h,Z.disabledPolySiReactions)};
ecx=function(h,E){for(var g=0;g<E.length;g++){var Z=E[g],M=void 0;(M=Z).showHideApi!=null||(M.showHideApi={});M=void 0;!!h!==!((M=Z.showHideApi)==null||!M.hideTemplateChildren)&&(Z.nodeType===Node.TEXT_NODE?h?(Z.showHideApi.polymerTextContent=Z.textContent,Z.textContent=""):(M=void 0,Z.textContent=(M=Z.showHideApi.polymerTextContent)!=null?M:null):Z instanceof Element&&Z.localName==="slot"?h?(Z.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.C3)((0,_.C3)(Z).parentNode).replaceChild(Z.showHideApi.polymerReplaced,
Z)):(M=Z.showHideApi.polymerReplaced)&&(0,_.C3)((0,_.C3)(M).parentNode).replaceChild(Z,M):Z instanceof HTMLElement&&Z.style&&(h?(Z.showHideApi.polymerDisplay=Z.style.display,Z.style.display="none"):Z.style.display=Z.showHideApi.polymerDisplay));Z.showHideApi.hideTemplateChildren=h;Z.showHideChildren&&Z.showHideChildren(h)}};
f5O=function(){if(!qXZ){var h=document.createElement("style");h.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(h);qXZ=!0}};
WK=function(){return _.J("disable_hidden_dom_if_using_stamper")};
N8a=function(h,E){var g=_.pL().getState();return E?h.apply(null,[g].concat(_.$E(E))):h(g)};
xz$=function(){if(t4V)return t4V;var h=_.G(_.Bm(0,void 0,"MB1Hb")),E=h.next().value;h.next();var g=h.next().value;_.pL().subscribe(function(){SX4(g)});
return t4V=E};
SX4=function(h){wGz||(wGz=!0,Promise.resolve().then(function(){h(function(E){return E+1});
wGz=!1}))};
_.pL=function(){return Dzz.getAppStore()};
l5q=function(h,E){return Dzz.getSelectFn()(h,E)};
_.Gl=function(h){Dzz.getDispatchFn()(h)};
rZz=function(h,E){var g={},Z;for(Z in h)g[Z]=E(h[Z],Z);return g};
_.zl=function(h,E){return function(){var g;return(g=_.Hm(h))!=null?g:E}};
_.au=function(h,E){var g=Object.assign({},h),Z;for(Z in E)E.hasOwnProperty(Z)&&(g[Z]=_.zl(h[Z],E[Z]));return g};
mzu=function(h,E,g){h instanceof Element&&(g.debugName||(g.debugName="<"+h.tagName.toLowerCase()+(h.tagName.includes("-")?">":"."+h.className+">")),_.J("ytwiz_enable_debug_component_props")&&(h.debugProps||(h.debugProps=rZz(E,function(Z){return function(){return Z()}}))))};
HjM=function(h){var E;return v6Z.value.traceAllComponents||((E=Gy.stack[Gy.stack.length-1])==null?void 0:E.name)!=="ytComponent"?hRx("ytComponent",{},h):h()};
_.O=function(h,E){var g=function(Z){return HjM(function(M){var W=$z$={};var z;if(((z=g)==null?0:z.idomCompat)&&Z.renderedFromIdom){var c;z=typeof g.idomCompat==="object"?(c=g)==null?void 0:c.idomCompat.callbacks:{};z=_.G(KWq(Z,z,g.debugName));c=z.next().value;z.next();z=z.next().value;var I=OjM(h,c);W.privateValue=I;$z$=void 0;mzu(I,c,g);W={debugName:g.debugName};M&&W&&Object.assign(M.attributes,W);M=hk$(I);M=Array.isArray(M)?M[0]:M;M[UW]||(M[UW]={});M[UW].updateSignalsFromIdomProps=z;n6z(c,I);return I}z=
rZz(Z,XGq);c=OjM(h,z);W.privateValue=c;$z$=void 0;mzu(c,z,g);W={debugName:g.debugName};M&&W&&Object.assign(M.attributes,W);n6z(z,c);return c})};
g.debugName=E===void 0?"":E;return g};
OjM=function(h,E){h=h(E);return Jx(h)};
YXV=function(h,E){h[E]||(h=new _.xX("IDOM interop setter undefined. Key:",E),_.$W(h))};
XGq=function(h,E){return E==="children"||E==="ref"||typeof h==="function"||h===void 0?h:function(){return _.Hm(h)}};
KWq=function(h,E,g){var Z={},M={},W={},z={},c;for(c in h){z={key$jscomp$947:z.key$jscomp$947};z.key$jscomp$947=c;var I=h[z.key$jscomp$947];if(z.key$jscomp$947==="children"||z.key$jscomp$947==="ref")Z[z.key$jscomp$947]=I;else if(typeof I==="function")z.key$jscomp$947 in E||I.length>0?(W[z.key$jscomp$947]=I,Z[z.key$jscomp$947]=function(U){return function(){return W[U.key$jscomp$947].apply(W,_.$E(_.VF.apply(0,arguments)))}}(z)):Z[z.key$jscomp$947]=I;
else if(!(h[z.key$jscomp$947]===void 0&&z.key$jscomp$947 in E)){var B=_.G(_.Bm(h[z.key$jscomp$947],{debugName:z.key$jscomp$947+":cwis:"+g},"rvrjQe"));I=B.next().value;B=B.next().value;Z[z.key$jscomp$947]=I;M[z.key$jscomp$947]=B}}return[Z,M,function(U){var L={},d;for(d in U)L={key$jscomp$948:L.key$jscomp$948,val$jscomp$123:void 0},L.key$jscomp$948=d,L.val$jscomp$123=U[L.key$jscomp$948],L.key$jscomp$948!=="children"&&L.key$jscomp$948!=="ref"&&(typeof L.val$jscomp$123==="function"?L.key$jscomp$948 in
E?W[L.key$jscomp$948]=L.val$jscomp$123:L.val$jscomp$123.length>0&&(W[L.key$jscomp$948]=L.val$jscomp$123,_.O$(new _.xX("Callback detected that was not set in the idomCompat callbacks map. Key:",L.key$jscomp$948))):L.key$jscomp$948 in E&&L.val$jscomp$123===void 0||(YXV(M,L.key$jscomp$948),JV(function(C){return function(){M[C.key$jscomp$948](C.val$jscomp$123)}}(L))))}]};
kSx=function(h,E,g){var Z=lEu(h.prototype,s4d,h.prototype.behaviors);Z.prototype.is=E;Z.prototype.localName=E;g&&V4N(Z,g);return function(M){M&&(Z.prototype.hostElement=M);var W=new Z;W.root=W;W.hostElement=M;return W}};
V4N=function(h,E){var g;Object.defineProperty(h.prototype,"_template",{get:function(){g===void 0&&(g=E());return g},
set:function(Z){g=Z},
configurable:!0,enumerable:!0})};
bj$=function(h,E,g,Z){function M(){if(!C){for(var q=new Set,w=_.G(U),r=w.next();!r.done;r=w.next()){r=r.value;for(var v=_.G(Object.getOwnPropertyNames(r)),H=v.next();!H.done;H=v.next()){H=H.value;var u=void 0,k=(u=Object.getOwnPropertyDescriptor(r,H))==null?void 0:u.value;k&&k instanceof Function&&!cK(H)&&(!c[H]||_.J("polymer_forward_method_killswitch"))&&q.add(H)}}w=_.G(Object.entries(Object.getOwnPropertyDescriptors(h.prototype)));for(r=w.next();!r.done;r=w.next())v=_.G(r.value),r=v.next().value,
v=v.next().value,v.value instanceof Function&&!cK(r)&&q.add(r);C=q}return C}
yZz(h,E,Z==null?void 0:Z.providers);ro$(h.prototype,h,!0);var W=kSx(h,E,g),z,c=(z=h.prototype.properties)!=null?z:{},I,B,U=(B=(I=h.prototype.behaviors)==null?void 0:I.flat(Infinity))!=null?B:[];g=_.G(U);for(z=g.next();!z.done;z=g.next())c=Object.assign({},z.value.properties,c);var L=[].concat(_.$E(FWa),_.$E(Object.keys(c).map(function(q){return _.tQ(q)}))),d=!1,C;
return{ctor:function(q,w){var r=W(q),v,H;q=[].concat(_.$E((v=Z==null?void 0:Z.allowedProps)!=null?v:[]),_.$E((H=Z==null?void 0:Z.allowedPropsFromBehaviors)!=null?H:[]));r.allowedProps=q.length>0?q:void 0;v={};H=_.G(L);for(q=H.next();!q.done;q=H.next())q=q.value,v[q]=_.SN(q);r.__dataAttributes=v;var u=r.ready.bind(r);r.ready=function(){w.beforeReady();u();if(rD(E)&&!d){var k=r.__templateInfo;if(k==null?0:k.hostProps){k=_.G(Object.keys(k.hostProps));for(var y=k.next();!y.done;y=k.next())vb(E,y.value,
"PROPERTY_ACCESS_GET_INTERNAL")}d=!0}};
r._overrideLegacyUndefined=!0;return r},
props:c,observedAttributes:L,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var q=[],w=new Set,r=_.G(Object.keys(c)),v=r.next();!v.done;v=r.next())v=v.value,q.push([v,c[v].readOnly]),w.add(v);r=M();v=_.G(Object.keys(Object.getOwnPropertyDescriptors(h.prototype)));for(var H=v.next();!H.done;H=v.next())H=H.value,!AZa(H)||r.has(H)||w.has(H)||(q.push([H,!1]),w.add(H));w=_.G(T8z);for(r=w.next();!r.done;r=w.next())q.push([r.value,!0]);return q},
getPropsToForwardBeforeReady:function(q){for(var w=[],r=_.G(Object.entries(q)),v=r.next();!v.done;v=r.next()){var H=_.G(v.value);v=H.next().value;H=H.next().value;if(AZa(v)&&!(H instanceof Function)&&(w.push([v,!1]),rD(E))){var u=H=void 0;(u=(H=q)._createPropertyAccessor)==null||u.call(H,v)}}return w},
shouldForwardProp:AZa,shouldLog:rD}};
yZz=function(h,E,g){wvz(h,g);h.prototype.behaviors.unshift(u4u);if(Uxx()){if(rD(E)){var Z;(Z=h.prototype).behaviors!=null||(Z.behaviors=[]);h.prototype.behaviors.unshift(C5$())}J$q(h)}_.t(Vc.prototype)(h.prototype,"__templateHelpers")};
cK=function(h){return Q4$.has(h)||h.startsWith("__compute__")};
AZa=function(h){return!cK(h)&&!h.startsWith("_")&&!h.endsWith("_")};
MmW=function(h,E){function g(){var d=I();d=_.G(d);for(var C=d.next();!C.done;C=d.next()){var q=_.G(C.value);C=q.next().value;q=q.next().value;hNd(L.prototype,C,q)}Z=!0}
var Z=!1,M=h.ctor,W=h.getInitialMethods,z=h.observedAttributes,c=h.getPropsToForwardBeforeReady,I=h.getPropsToForwardBeforeRegister,B=h.shouldForwardProp,U=h.shouldLog,L=function(){var d=HTMLElement.call(this)||this;d.didForwardDynamicProps=!1;d.loggingStatus={};Z||g();d.inst=M(d,{beforeReady:function(){d.didForwardDynamicProps||(d.forwardDynamicProps(),d.didForwardDynamicProps=!0)}});
d.controllerProxy=j0O(d.inst,E);d.forwardMethods();return d};
_.f(L,HTMLElement);L.prototype.forwardMethods=function(){for(var d=this,C=_.G(this.inst.getExtraMethodsToForward()),q=C.next(),w={};!q.done;w={method$jscomp$63:void 0},q=C.next()){var r=_.G(q.value);q=r.next().value;r=r.next().value;w.method$jscomp$63=r;this[q]=function(v){return function(){return v.method$jscomp$63.call.apply(v.method$jscomp$63,[d.inst].concat(_.$E(_.VF.apply(0,arguments))))}}(w)}C=_.G(W());
for(w=C.next();!w.done;w=C.next())w=w.value,B(w)&&ECO(this,w),U(E)&&!cK(w)&&gCM(this.inst,w)};
L.prototype.forwardDynamicProps=function(){var d=c(this.inst);d=_.G(d);for(var C=d.next();!C.done;C=d.next()){var q=_.G(C.value);C=q.next().value;q=q.next().value;hNd(this,C,q);U(E)&&!cK(C)&&ZYW(this.inst,C)}};
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(d,C,q){this.inst.attributeChangedCallbackWrapper(d,C,q)};
_.ze.Object.defineProperties(L.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return E}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ze.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return z}}});
customElements.define(E,L)};
hNd=function(h,E,g){h.hasOwnProperty(E)||Object.defineProperty(h,E,{get:function(){var Z,M=((Z=h.is)!=null?Z:h.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||vb(M,E,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,Z=this.polymerController[E],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,Z},
set:function(Z){if(!g){var M,W=((M=h.is)!=null?M:h.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||vb(W,E,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=E,this.loggingStatus.bypassProxyController=!0,this.polymerController[E]!==Z&&(M={},this.polymerController.setProperties((M[E]=Z,M)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
ECO=function(h,E,g){var Z=h.polymerController;h[E]=function(){var M=_.VF.apply(0,arguments);h.loggingStatus.currentExternalCall=E;h.loggingStatus.bypassProxyController=!0;var W,z=((W=h.is)!=null?W:h.tagName).toLowerCase();vb(z,E,"PROPERTY_ACCESS_CALL_EXTERNAL");var c;W=(c=g!=null?g:Z[E])==null?void 0:c.call.apply(c,[Z].concat(_.$E(M)));h.loggingStatus.currentExternalCall=void 0;h.loggingStatus.bypassProxyController=!1;return W}};
gCM=function(h,E){var g=h.hostElement,Z=h[E];h[E]=function(){var M=_.VF.apply(0,arguments);if(g.loggingStatus.currentExternalCall!==E){var W,z=((W=g.is)!=null?W:g.tagName).toLowerCase();vb(z,E,"PROPERTY_ACCESS_CALL_INTERNAL")}return Z==null?void 0:Z.apply(h,M)}};
ZYW=function(h,E){var g=Object.getOwnPropertyDescriptor(h,E);g&&!g.get&&Object.defineProperty(h,E,{get:function(){dxN(h.hostElement,E);return g.value},
set:function(Z){Hb(h.hostElement,E);g.value=Z}})};
W0z=function(h){return _.J("poly_si_dom_repeat_detached_fix_killswitch")||h.tagName!=="PS-DOM-REPEAT"?h.tagName==="DOM-REPEAT":!0};
GOu=function(h,E){var g=p1N(h);h instanceof Element&&g.unshift(h);h=_.G(g.filter(W0z));for(var Z=h.next();!Z.done;Z=h.next()){var M=void 0;Z=_.G((M=Z.value.__instances)!=null?M:[]);for(M=Z.next();!M.done;M=Z.next())if(M=M.value,M.root){M=Array.from(M.root.children);M=_.G(M);for(var W=M.next();!W.done;W=M.next())g.push.apply(g,_.$E(GOu(W.value,E)))}}return g.filter(function(z){return z.usePatchedLifecycles&&z.lifecycleIsConnected===E})};
p1N=function(h){var E=null;h instanceof Element?E=Element.prototype.querySelectorAll:h instanceof DocumentFragment&&(E=DocumentFragment.prototype.querySelectorAll);return E?Array.from(E.call(h,"*")):[]};
is=function(h){Pm(function(){for(var E=_.G(GOu(h,!1)),g=E.next();!g.done;g=E.next()){g=g.value;g.lifecycleIsConnected=!0;try{var Z=void 0,M=void 0,W=void 0,z=void 0;(Z=(z=g.polymerController)!=null?z:g)==null||(W=(M=Z).connectedCallback)==null||W.call(M)}catch(c){_.$W(c)}}})};
ou=function(h){Pm(function(){for(var E=_.G(GOu(h,!0)),g=E.next();!g.done;g=E.next()){g=g.value;g.lifecycleIsConnected=!1;try{var Z=void 0,M=void 0,W=void 0,z=void 0;(Z=(z=g.polymerController)!=null?z:g)==null||(W=(M=Z).disconnectedCallback)==null||W.call(M)}catch(c){_.$W(c)}}})};
RNu=function(){if(!zNu){zNu=!0;var h=[Node];Iu&&h.push(Iu.Wrapper);var E=Node.prototype.insertBefore,g=Node.prototype.removeChild;h=_.G(h);for(var Z=h.next(),M={};!Z.done;M={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},Z=h.next())Z=Z.value,M.nativeInsertBefore=Z.prototype.insertBefore,Z.prototype.insertBefore=function(z){return function(c,I){if(c instanceof DocumentFragment){var B=Array.from(c.children);c=z.nativeInsertBefore.call(this,c,I);
if(this.isConnected&&z.nativeInsertBefore===E)for(I=_.G(B),B=I.next();!B.done;B=I.next())is(B.value);return c}B=c instanceof Element&&c.isConnected;I=z.nativeInsertBefore.call(this,c,I);B&&ou(c);this.isConnected&&is(c);return I}}(M),M.nativeAppendChild=Z.prototype.appendChild,Z.prototype.appendChild=function(z){return function(c){if(c instanceof DocumentFragment){var I=Array.from(c.children);
c=z.nativeAppendChild.call(this,c);if(this.isConnected){I=_.G(I);for(var B=I.next();!B.done;B=I.next())is(B.value)}return c}I=c instanceof Element&&c.isConnected;B=z.nativeAppendChild.call(this,c);I&&ou(c);this.isConnected&&is(c);return B}}(M),M.nativeRemoveChild=Z.prototype.removeChild,Z.prototype.removeChild=function(z){return function(c){var I=c instanceof Element&&c.isConnected,B=z.nativeRemoveChild.call(this,c);
I&&g===z.nativeRemoveChild&&ou(c);return B}}(M),M.nativeReplaceChild=Z.prototype.replaceChild,Z.prototype.replaceChild=function(z){return function(c,I){if(c instanceof DocumentFragment){var B=Array.from(c.children);
c=z.nativeReplaceChild.call(this,c,I);if(this.isConnected)for(ou(I),I=_.G(B),B=I.next();!B.done;B=I.next())is(B.value);return c}B=c instanceof Element&&c.isConnected;var U=this.isConnected,L=z.nativeReplaceChild.call(this,c,I);U&&ou(I);B&&ou(c);U&&is(c);return L}}(M);
h=[Element];Iu&&h.push(Iu.Wrapper);h=_.G(h);Z=h.next();for(M={};!Z.done;M={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},Z=h.next())Z=Z.value,Z.prototype.before=aSV(Z.prototype.before),Z.prototype.after=aSV(Z.prototype.after),M.nativeReplaceWith=Z.prototype.replaceWith,Z.prototype.replaceWith=function(z){return function(){var c=_.VF.apply(0,arguments),I=_.G(c3z(c)),B=I.next().value,
U=I.next().value;I=this.isConnected;z.nativeReplaceWith.apply(this,c);c=_.G(U);for(U=c.next();!U.done;U=c.next())ou(U.value);if(I)for(ou(this),B=_.G(B),I=B.next();!I.done;I=B.next())I=I.value,I instanceof Element&&is(I)}}(M),M.nativeRemove=Z.prototype.remove,Z.prototype.remove=function(z){return function(){var c=this.isConnected;
z.nativeRemove.call(this);c&&ou(this)}}(M),M.nativeInsertAdjacentElement=Z.prototype.insertAdjacentElement,Z.prototype.insertAdjacentElement=function(z){return function(c,I){var B=I.isConnected;
c=z.nativeInsertAdjacentElement.call(this,c,I);B&&ou(I);c.isConnected&&is(c);return c}}(M),M.nativeSetAttribute=Z.prototype.setAttribute,Z.prototype.setAttribute=function(z){return function(c,I){var B=iYa(this);
if(!B.usePatchedLifecycles)return z.nativeSetAttribute.call(this,c,I);var U=this.getAttribute(c);z.nativeSetAttribute.call(this,c,I);I=this.getAttribute(c);oC$(B,c,U,I)}}(M),M.nativeRemoveAttribute=Z.prototype.removeAttribute,Z.prototype.removeAttribute=function(z){return function(c){var I=iYa(this);
if(!I.usePatchedLifecycles)return z.nativeRemoveAttribute.call(this,c);var B=this.getAttribute(c);z.nativeRemoveAttribute.call(this,c);B!==null&&oC$(I,c,B,null)}}(M),M.nativeToggleAttribute=Z.prototype.toggleAttribute,Z.prototype.toggleAttribute=function(z){return function(c,I){var B=iYa(this);
if(!this.usePatchedLifecycles)return z.nativeToggleAttribute.call(this,c,I);var U=this.getAttribute(c),L=U!==null;I=z.nativeToggleAttribute.call(this,c,I);I!==L&&oC$(B,c,U,I?"":null);return I}}(M);
h=[Document,DocumentFragment,Element,ShadowRoot];Iu&&h.push(Iu.Wrapper);h=_.G(h);for(M=h.next();!M.done;M=h.next())M=M.value,M.prototype.prepend=aSV(M.prototype.prepend),M.prototype.append=aSV(M.prototype.append);(Iu==null?void 0:Iu.noPatch)===!0&&IS$();document.readyState==="complete"?is(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&is(document.body)});
var W=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");W&&W.get&&W.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:W.enumerable,configurable:!0,get:W.get,set:function(z){z||ou(this);W.set.call(this,z);return z}})}};
aSV=function(h){return function(){var E=_.VF.apply(0,arguments),g=_.G(c3z(E)),Z=g.next().value;g=g.next().value;h.apply(this,E);E=_.G(g);for(g=E.next();!g.done;g=E.next())ou(g.value);if(this.isConnected)for(Z=_.G(Z),E=Z.next();!E.done;E=Z.next())E=E.value,E instanceof Element&&is(E)}};
IS$=function(){for(var h=_.G(PHx),E=h.next();!E.done;E=h.next()){E=E.value.prototype;for(var g=_.G(BLa),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=Object.getOwnPropertyDescriptor(E,Z);M&&Object.defineProperty(E,"__shady_native_"+Z,M)}}};
oC$=function(h,E,g,Z){var M,W;if((M=h.polymerController)==null?0:(W=M.observedAttributes)==null?0:W.includes(E))if(h=h.polymerController,h.attributeChangedCallbackWrapper)h.attributeChangedCallbackWrapper.call(h,E,g,Z);else{var z;(z=h.attributeChangedCallback)==null||z.call(h,E,g,Z)}};
c3z=function(h){var E=[],g=[];h=_.G(h);for(var Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z instanceof Element&&Z.isConnected&&g.push(Z),Z instanceof DocumentFragment?E.push.apply(E,_.$E(Array.from(Z.children))):E.push(Z);return[E,g]};
iYa=function(h){return!(h instanceof Element)&&h.node instanceof Element?h.node:h};
USz=function(h,E){var g=E?["children"].concat(_.$E(E)):["children"];E=[];g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next()){var M=Z.value;if(h.hasOwnProperty(M)){Z=h[M];Z=typeof Z==="function"?Z():Z;Z=Array.isArray(Z)?Z:[Z];Z=Jx(Z).flat();if(M!=="children"){M=q1q(M);for(var W=_.G(Z),z=W.next();!z.done;z=W.next())z=z.value,z instanceof Element&&z.setAttribute("slot",M)}E.push(Z)}}E.length===0?h=[]:(h=Jx(_.R("div",null,E)),h=Array.from(h.childNodes));return h};
jwx=function(h,E,g){var Z={};_.$Z(function(){var M={},W;for(W in E)if(E.hasOwnProperty(W)){var z=void 0,c=void 0;if(!(((z=g.slotProps)==null?0:z.includes(W))||W==="children"||((c=g.callbackProps)==null?0:c.includes(W))||W==="ref")&&(z=_.Hm(E[W]),Z[W]!==z)){Z[W]=z;c=void 0;var I=(c=h.hostElement)!=null?c:h;L0M.has(W)&&(I[W]=z);M[W]=z}}JV(function(){if(h.setProperties)h.setProperties(M);else for(var B=_.G(Object.entries(M)),U=B.next();!U.done;U=B.next()){var L=_.G(U.value);U=L.next().value;L=L.next().value;
h[U]=L}})})};
CHz=function(h,E,g,Z){var M=USz(g,Z.slotProps),W=(0,_.C3)(h);M=_.G(M);for(var z=M.next();!z.done;z=M.next())W.appendChild(z.value);jwx(E,g,Z);Z=_.G(Z.callbackProps||[]);M=Z.next();for(W={};!M.done;W={kebabEventName:void 0,eventListener:void 0},M=Z.next())z=M=M.value,String(M).substring(0,2)==="on"&&g[z]?(W.kebabEventName=q1q(String(M).substring(2)),W.eventListener=g[z],h.addEventListener(W.kebabEventName,W.eventListener),_.r9(function(U){return function(){h.removeEventListener(U.kebabEventName,U.eventListener)}}(W))):
E[z]=g[z];
if(g.ref){g=_.G(dSd(g.ref));var c=g.next().value,I=g.next().value,B=E.attached.bind(E);E.attached=function(){c(h);B()};
_.r9(function(){I()})}};
dSd=function(h){if(typeof h==="function"){var E;return[function(g){E=h(g)},
function(){var g;(g=E)==null||g()}]}if(!h.onRender||!h.onUnmount)throw Error("Yg");
return[h.onRender,h.onUnmount]};
fSz=function(h,E,g,Z,M){Z=Z===void 0?{}:Z;var W=J3M,z=!1;W?(z=!0,J3M=void 0):(eNd=E,W=document.createElement(E),eNd=void 0);var c=W;c.usePatchedLifecycles=!0;c.lifecycleIsConnected=!1;W.loggingStatus={};var I=qiO(h,E,W,Z,M);_.r9(function(){c.lifecycleIsConnected&&(c.lifecycleIsConnected=!1,I.disconnectedCallback())});
z||(W.__noInsertionPoint=!0,CHz(W,I,g,Z));return W};
qiO=function(h,E,g,Z,M){M=M===void 0?bj$:M;NLd[E]!=null||(NLd[E]=M(h,E,Z==null?void 0:Z.getTemplate,Z));var W=NLd[E],z=W.ctor;M=W.getInitialMethods;var c=W.getPropsToForwardBeforeReady;h=W.getPropsToForwardBeforeRegister;Z=W.shouldForwardProp;var I=W.observedAttributes,B=W.shouldLog,U=z(g,{beforeReady:function(){var L=U;L._takeAttributes?L._takeAttributes():L.setPropertiesFromInitialAttributeValues&&L.setPropertiesFromInitialAttributeValues();L=_.G(c(g.polymerController));for(var d=L.next();!d.done;d=
L.next()){var C=_.G(d.value);d=C.next().value;C=C.next().value;hNd(g,d,C);B(E)&&!cK(d)&&ZYW(g.polymerController,d)}g.polymerController=j0O(U,E)}});
g.polymerController=U;g.polymerController.observedAttributes=I;W=_.G(U.getExtraMethodsToForward());for(z=W.next();!z.done;z=W.next())I=_.G(z.value),z=I.next().value,I=I.next().value,ECO(g,z,I);M=_.G(M());for(W=M.next();!W.done;W=M.next())W=W.value,Z(W)&&ECO(g,W),B(E)&&!cK(W)&&gCM(U,W);h=_.G(h());for(Z=h.next();!Z.done;Z=h.next())M=_.G(Z.value),Z=M.next().value,M=M.next().value,hNd(g,Z,M);return U};
tmV=function(h){var E=Ru;Ru=h;return E};
xSq=function(h){if(PK.has(h)&&Ru&&Siz(Ru)===h){var E;(E=Ru)._numRenders!=null||(E._numRenders=0);Ru._numRenders++;if(Ru._numRenders>1)throw Error("Zg");return Ru}};
w1Z=function(h){PK.has(Siz(h))&&Ru!==h&&(h._isInert=!0)};
Siz=function(h){var E;return(E=h==null?void 0:h.tagName.toLowerCase())!=null?E:""};
DSN=function(h,E){if(h.componentType===SA)throw Error("$g");PK.add(E);var g=function(){var Z=HTMLElement.call(this)||this;Z.is=E;if(eNd===E)return Z.isInert=!0,Z;Z.createElement();return Z};
_.f(g,HTMLElement);g.prototype.createElement=function(){if(!this.isInert){J3M=this;var Z=_.G(_.NHW(function(){return _.R(h,null)})).next().value;
J3M=void 0;d1$(this);return Z}};
customElements.define(E,g)};
r3a=function(h,E,g,Z,M){h.prototype.is=E;(Z==null?0:Z.useSink)?lSM(h,E,g,Z,M):(g=bj$(h,E,g,Z),MmW(g,E));return h};
lSM=function(h,E,g,Z,M){RNu();var W=_.O(function(z){return fSz(h,E,z,Object.assign({},Z,{getTemplate:g}),M)},"a");
W.debugName=E+" (CoW wrapped)";DSN(W,E);return W};
vCZ=function(h){return!mSN.has(h)};
K0$=function(h,E,g,Z){function M(){if(!L){for(var d=new Set(HYO),C=_.G(W.behaviors),q=C.next();!q.done;q=C.next()){q=q.value;for(var w=_.G(Object.getOwnPropertyNames(q)),r=w.next();!r.done;r=w.next()){r=r.value;var v=void 0,H=(v=Object.getOwnPropertyDescriptor(q,r))==null?void 0:v.value;H&&H instanceof Function&&(!B[r]||_.J("polymer_forward_method_killswitch"))&&d.add(r)}}C=_.G(Object.entries(Object.getOwnPropertyDescriptors(h.prototype)));for(q=C.next();!q.done;q=C.next())w=_.G(q.value),q=w.next().value,
w=w.next().value,w.value instanceof Function&&d.add(q);L=d}return L}
var W=dzM({is:E,disableElementRegistration:!1,getTemplate:g,providers:Z==null?void 0:Z.providers,reactivityMode:Z==null?void 0:Z.reactivityMode},h);if((Z==null?0:Z.allowedProps)||(Z==null?0:Z.allowedPropsFromBehaviors)){var z,c;W.allowedProps=[].concat(_.$E((z=Z.allowedProps)!=null?z:[]),_.$E((c=Z.allowedPropsFromBehaviors)!=null?c:[]))}var I=I5$(W,h);E=I.observedAttributes;var B={};g=_.G(W.reactiveSchemas);for(Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,Z.type==="signal")B[Z.propertyKey]={readOnly:Z.readOnly},
Z.readOnly&&(B[s0$(Z.propertyKey)]={readOnly:!0});else if(Z.type==="compute"||Z.type==="computeWithMethod"||Z.type==="redux")B[Z.propertyKey]={readOnly:!0};var U=W.reactiveSchemas.length,L;return{ctor:function(d,C){d=new I(d);d.beforeReady=C.beforeReady;return d},
props:B,observedAttributes:E,getInitialMethods:M,getPropsToForwardBeforeRegister:function(){for(var d=[],C=new Set,q=_.G($SW),w=q.next();!w.done;w=q.next())w=w.value,d.push([w,w!=="observers"&&w!=="properties"]),C.add(w);q=_.G(Object.keys(B));for(w=q.next();!w.done;w=q.next())w=w.value,d.push([w,B[w].readOnly]),C.add(w);q=M();w=_.G(Object.keys(Object.getOwnPropertyDescriptors(h.prototype)));for(var r=w.next();!r.done;r=w.next())r=r.value,!vCZ(r)||q.has(r)||C.has(r)||(d.push([r,!1]),C.add(r));d.push(["allowedProps",
!0]);return d},
getPropsToForwardBeforeReady:function(d){var C=[];d=_.G(Object.keys(d));for(var q=d.next();!q.done;q=d.next()){q=q.value;var w=M();vCZ(q)&&!w.has(q)&&C.push([q,!1])}d=_.G(W.reactiveSchemas.slice(U));for(q=d.next();!q.done;q=d.next())q=q.value,q.type!=="compute"&&q.type!=="computeWithMethod"&&q.type!=="redux"&&q.type!=="signal"||C.push([q.propertyKey,q.type==="signal"?q.readOnly:!0]);return C},
shouldForwardProp:vCZ,shouldLog:rD}};
_.X=function(h,E,g,Z){var M,W,z=(W=(M=Z)==null?void 0:M.mode)!=null?W:0;Z!=null||(Z={});var c;(c=Z).reactivityMode!=null||(c.reactivityMode=0);z===1&&_.oC("creator_poly_si_disable_list").includes(E)&&(z=2);return z===1?r3a(h,E,g,Object.assign({},Z,{useSink:!0}),K0$):r3a(h,E,g,Object.assign({},Z,{useSink:z===2}))};
_.BK=function(){return function(h,E,g,Z){var M,W,z=(W=(M=Z)==null?void 0:M.mode)!=null?W:2;Z!=null||(Z={});var c;(c=Z).reactivityMode!=null||(c.reactivityMode=0);if(z===0)throw Error("ah`"+z);return lSM(h,E,g,Z,z===1?K0$:void 0)}};
_.UQ=function(h){return _.J("creator_poly_si_killswitch")?!1:_.J("force_all_poly_si_batches")&&(h==="poly_si_all_on_test_check"||h==="creator_poly_si_batch_050"?0:h)||document.documentElement.hasAttribute("use-signals")?!0:!h||_.J(h+"_holdback_enabled")&&_.J("kevlar_polysi_holdback")?!1:_.J(h)};
LL=function(h){return h?h.icon?h.icon.iconType.toLowerCase():h.customThumbnail?"member":"":""};
OYx=function(h){if(!h)return"";h=_.G(h);for(var E=h.next();!E.done;E=h.next())if((E=E.value)&&E.liveChatAuthorBadgeRenderer&&(E=LL(E.liveChatAuthorBadgeRenderer))&&E!=="verified")return E;return""};
nC4=function(h,E){if(!h)return null;var g;return((g=h.find(function(Z){return Z&&Z.liveChatAuthorBadgeRenderer?LL(Z.liveChatAuthorBadgeRenderer)===E:!1}))==null?void 0:g.liveChatAuthorBadgeRenderer)||null};
_.y3$=function(h){var E=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;h=X1N(h);E=X1N(E);var g=Yix(h.hex);E=Yix(E.hex);var Z=E[0]/255;var M=E[1]/255,W=E[2]/255,z=Math.max(Z,M,W),c=Math.min(Z,M,W),I=0,B=0,U=.5*(z+c);z!=c&&(z==Z?I=60*(M-W)/(z-c):z==M?I=60*(W-Z)/(z-c)+120:z==W&&(I=60*(Z-M)/(z-c)+240),B=0<U&&U<=.5?(z-c)/(2*U):(z-c)/(2-2*U));Z=[Math.round(I+360)%360,B,U];g=swN(g,E);for(h=Vmd(h.hex);g<4.5;){h=Z[2]>=.5?h.darker((4.5-g)/2):h.brighter((4.5-g)/2);g=h.toString();
M=kON(g);if(!M.length)throw Error("Xd`"+g);g=M;g=swN(g,E)}return h.hex()};
swN=function(h,E){h=_.Dbx(h);E=_.Dbx(E);return(Math.max(h,E)+.05)/(Math.min(h,E)+.05)};
_.jQ=function(h){return"#"+("000000"+(h&16777215).toString(16)).slice(-6)};
_.F0V=function(h){for(var E=0,g=0;g<h.length;g++)E=h.charCodeAt(g)+((E<<5)-E);h="#";for(g=0;g<3;g++)h+=("00"+(E>>g*8&255).toString(16)).slice(-2);return h};
A3x=function(h){h=(h||"").split(":");h.length===1&&h.unshift("yt-icons");h[1]=h[1].toLowerCase();return h};
Eja=function(h,E){var g=(E=E===void 0?!1:E)?TL4:bY$,Z=E?uGu:QwN;h.getIconNames().forEach(function(M){M=E?M:M.substring(M.indexOf(":")+1);h.name==="yt-icons"?hZ$.add(M):M.includes("-filled")?g.add(M):Z.add(M)})};
dp=function(h,E,g,Z){g=g===void 0?!1:g;Z=Z===void 0?!1:Z;var M,W,z;return _.a(function(c){if(c.nextAddress==1)return c.yield(gjz,2);if(Z)return c.return(hZ$.has(h));M=g?TL4:bY$;W=g?uGu:QwN;return E?(z=h.includes("-filled")?h:h.concat("-filled"),c.return(M.has(z))):c.return(W.has(h))})};
_.WFZ=function(h){if(ZNq(h))return h;var E=h=h.toLowerCase();(h=MhW.get(h))&&(E=h);return E};
_.CL=function(h){if(ZNq(h))return h.toString();var E=pEW.get(h);if(E)return E;E=h.toLowerCase();var g="yt-icons",Z=E.replace(/_/g,"-");switch(h){case "MY_CHANNEL":E="account_circle";break;case "ADD_TO_LIBRARY":E="add";break;case "ALERT_WARN_RED":E="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":E="person_music";break;case "BLOCK_USER":E="block";break;case "CAPTIONS":E="closed_caption";break;case "CLOSED_CAPTION":g="av";E="closed-caption";break;case "COLLECTION":g="maps";E="layers";break;case "CONTACT":g=
"icons";E="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":g="ytcp-icons";E=Z.split("creator-studio-")[1];break;case "DISMISSAL":E="close";break;case "DO_NOT_DISTURB":E="block";break;case "DOGFOOD":g="icons";E="pets";break;case "DRAFT":E="paper_corner_folded";break;
case "EMPTY_LIKE":E="like_outline";break;case "EXIT_APP":E="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":E=Z;break;case "GAMES":g="ytg";E="my-games";break;case "GO_TO_PAGE":E="arrow-forward";break;case "GROUP":g="social";break;case "HIDE":E="not_interested";break;case "INPUT_COMPONENT":g="icons";E="settings-input-component";break;case "KIDS_BLOCK":E="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":g="ytg";E="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":g=
"ytg";E="membership-post-purchase";break;case "MULTIVIEW":E="screen_multi_view";break;case "MY_LOCATION":g="maps";E=Z;break;case "NOTIFICATIONS_INBOX":E="NOTIFICATIONS";break;case "NEXT":E="chevron_right";break;case "OFFLINE":E="power-settings-new";break;case "PAUSE":g="miniplayer";break;case "PAYMENT":g="icons";break;case "PHONE_DOWNLOAD":E="phone_download";break;case "PREMIUM_STANDALONE":g="yt-logos";E="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":g="yt-logos";E="premium_standalone_cairo";
break;case "QUESTION_ANSWER":E="question_answer";break;case "REDEEM":g="icons";E="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":E="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":E="library_add";break;case "SCHOOL":g="yt-sys-icons";E="creator_academy";break;case "SETTINGS_LIGHT":E="settings_applications";break;case "SETTINGS_MATERIAL":E="settings";break;case "SEARCH_HISTORY":E="watch_history";break;case "SHOPPING_BAG":E="bag";break;case "SOCIAL":case "PEOPLE":g=
"yt-icons";E="people";break;case "STAFF_PICK":g="ytg";E="spotlight";break;case "START_DVR":E="add";break;case "STOP_DVR":g="av";E="stop";break;case "TAB_LIKED":E="like";break;case "TAB_INBOX":E="mail";break;case "TERMS_OF_SERVICE":g="icons";E="description";break;case "TRENDING":E="fire";break;case "UNBLOCK_USER":E="remove";break;case "UNPLUGGED_DARK_THEME":g="image";E="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":E="live";break;case "UNPLUGGED_SPORTS":g="ytu";E="visibility-off";break;
case "VIDEOS":g="av";E="play-circle-filled";break;case "YOUTUBE":g="yt-logos";E="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":g="yt-logos-ext";E="yt-logo-red-updated";break;case "YOUTUBE_LOGO":g="yt-logos-ext";E="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":g="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":g="shorts";E=Z;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":g="yt-sys-icons";E="youtube_improve_tv";break;case "OUTLINE_BAG":g=
"yt-sys-icons";E="bag";break;case "QUEUE_PLAY_LAST":g="yt-sys-icons";E="list_queue_last";break;case "SLASH_CIRCLE_LEFT":E="slash_circle_left";break;case "SPEED_1_POINT_2X":E="1_point_2x";break;case "SPEED_1_POINT_5X":E="1_point_5x";break;case "SPEED_1_POINT_8X":E="1_point_8x";break;case "SPEED_POINT_2X":E="point_2x";break;case "SPEED_POINT_5X":E="point_5x";break;case "SPEED_POINT_8X":E="point_8x";break;case "SPEED_1X":E="1x";break;case "SPEED_2X":E="2x";break;case "TAB_BOOKMARK":E="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":g="yt-sys-icons";E="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":g="yt-sys-icons";E="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":g="yt-sys-icons",E="tic_tac_toe"}E=g+":"+E;pEW.set(h,E);return E};
ZNq=function(h){var E;_.J("kevlar_use_wil_icons")?E=!!_.GF().resolve(_.JW).resolveIcon({iconName:h.toString()}):E=!1;return E};
_.qB=function(h,E,g,Z){g=g===void 0?{}:g;Z=Z===void 0?!1:Z;g===null&&(g={});var M=_.oC("kevlar_command_handler_command_banlist");M=_.G(M);for(var W=M.next();!W.done;W=M.next())if(W=h?h.hasOwnProperty(W.value):void 0,W)return!1;M=_.e(h.commandMetadata,_.qH);return Z&&M!=null&&M.url?!1:!E.disableCommandHandlerOverride&&_.eQ.instance?(Z=_.eQ.instance,g.form||(g.form={element:E}),g.form.element||(g.form.element=E),!g.clickedVisualElement&&E.visualElement&&(g.clickedVisualElement=E.visualElement),Z.resolveCommand(h,
g),!0):!1};
GoV=function(h,E){h=fL(h);for(var g=_.G(h.visibilityMonitorKeys||[]),Z=g.next();!Z.done;Z=g.next())E.unobserveByKey(Z.value);h.visibilityMonitorKeys=void 0};
iNO=function(h,E){if(_.sH()){if(_.J("kevlar_vimio_use_shared_monitor"))zZx(h,E.data);else if(!zZx(h,E.data))return;var g=E.data,Z=aOz(g);if(_.J("enable_client_ve_spec_logging"))GoV(h,E.observer);else{var M=fL(h);M.trackedParams&&M.trackedParams!==Z&&GoV(h,E.observer)}M=fL(h);!g||M.data&&M.data===g||(M.data=g);cPu(h,E);M.trackedParams=Z}};
cPu=function(h,E){var g=E.observer;if(!g&&_.J("web_skip_missing_vimio_observer")){var Z,M;_.O$(new _.xX("VisibilityObserver is not defined.",h.tagName,h.trackedParams,(Z=E.data)==null?void 0:Z.trackingParams,(M=E.data)==null?void 0:M.loggingDirectives))}else{var W=E.layer,z=E.visibilityCallback||function(){},c=E.prescanCallback,I=fL(h);
Z=[];E.showOption&&Z.push(g.observe(h,function(){E.skipLogging&&E.skipLogging()||_.NB().reportShown(I,void 0,W);z(!0)},E.showOption));
E.hideOption&&Z.push(g.observe(h,function(){_.NB().reportHidden(I,void 0,W);z(!1)},E.hideOption));
E.prescanOption&&c&&Z.push(g.observe(h,function(){c()},E.prescanOption));
I.visibilityMonitorKeys=Z}};
zZx=function(h,E){h=fL(h);if(h.visualElement&&!E)return!0;if(!E)return!1;var g=!1;if(_.J("enable_client_ve_spec_logging")){var Z,M;g=!!((Z=E.loggingDirectives)==null?0:(M=Z.clientVeSpec)==null?0:M.uiType)}Z=aOz(E);if(!Z&&!g)return!1;_.J("mweb_component_visibility_logging")&&(h.veContainer||(h.veContainer={}),h.veContainer.trackingParams=Z);if(h.trackedParams&&h.trackedParams===Z)return!1;var W;if(_.J("enable_client_ve_spec_logging")&&((W=h.visualElement)==null?0:W.isClientVe())){var z;W=(z=h.visualElement)==
null?void 0:z.getAsJspb();var c,I,B,U;if(_.i4(W,2)===((c=E.loggingDirectives)==null?void 0:(I=c.clientVeSpec)==null?void 0:I.uiType)&&_.i4(W,3,-1)===((B=E.loggingDirectives)==null?void 0:(U=B.clientVeSpec)==null?void 0:U.elementIndex))return!1}if(_.J("enable_client_ve_spec_logging")){var L,d;!h.visualElement&&((L=E.loggingDirectives)==null?0:(d=L.clientVeSpec)==null?0:d.uiType)&&(c=E.loggingDirectives.clientVeSpec,E=c.uiType,z=c.elementIndex,c=c.clientYoutubeData,h.visualElement=_.tW(_.SQ(),{veType:E,
elementIndex:z,clientYouTubeData:c}))}return!0};
aOz=function(h){if(h==null?0:h.rendererContext){var E=_.e(h.rendererContext,_.xB);if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams}return(h==null?0:h.loggingDirectives)?h.loggingDirectives.trackingParams:h==null?void 0:h.trackingParams};
fL=function(h){var E;return(E=h.polymerController)!=null?E:h};
PyW=function(h){_.NB();if(_.k3(wp().JSC$12571_elementShouldLogGesture).bind(wp())(h,4)){oj4(h);var E=IO4(h);RZz.set(h,E)}};
oj4=function(h){RZz.has(h)&&(RZz.get(h).cancel("untrack hover element"),RZz.delete(h))};
IO4=function(h){var E,g=[],Z=!1,M=new _.jM(function(W,z){D6(h,"mouseenter",_.k3(function(){var c,I,B;return _.a(function(U){if(U.nextAddress==1)return E=(0,_.zn)(),c=Bod(h),g.push(c),I=UtV(h,function(){Z=!0;z(Error("bh"))}),U.yield(c,2);
if(U.nextAddress!=3)return I&&ls(I),B=LFN(h),g.push(B),U.yield(B,3);W();_.SK(U)})}))});
M.then(function(){var W=(0,_.zn)()-E;W=Math.round(W);if(!(500>W||6E5<=W)){var z=h.getScreenLayer?h.getScreenLayer():void 0;z=_.sH(z)||"";var c=jhV(_.NB(),h);_.Mw(z,h.visualElement?h.visualElement:_.rp(c),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:W}})}PyW(h)},function(){mT&&(mT(),mT=null);
Z&&(oj4(h),PyW(h))});
return M};
Bod=function(h){var E;return(new _.jM(function(g,Z){mT=function(){Z(Error("ch"))};
E=_.KP.debounce(_.k3(function(){ls(M);g()}),1,100);
var M=_.vK(h,"mousemove",E)})).thenCatch(function(){var g=_.KP.cancelDebouncedJobMap.get(E);
g&&_.KP.cancelJob(g)})};
LFN=function(h){var E;return(new _.jM(function(g,Z){mT=function(){Z(Error("dh"))};
E=D6(h,"mouseleave",_.k3(function(){g()}))})).thenCatch(function(){ls(E)})};
UtV=function(h,E){return D6(h,"mouseleave",_.k3(E))};
Cya=function(h){dtz&&_.HK.cancel(dtz);dtz=_.HK.run(function(){_.Ra(h,"yt-visibility-refresh");dtz=0})};
JPV=function(h){h=Number(h);return"rgba("+[h>>16&255,h>>8&255,h&255,(h>>24&255)/255].join()+")"};
q5z=function(h){if(!h)return!1;if(_.e(h,_.eZd))return!0;var E;if(h=(E=_.e(h,_.CZ))==null?void 0:E.commands)for(E=_.G(h),h=E.next();!h.done;h=E.next())if(_.e(h.value,_.eZd))return!0;return!1};
fO$=function(h){var E=!0;E=E===void 0?!0:E;if(!h.useSignals&&!h.experimentalPropertiesChanged||_.J("experimental_templating_behavior_nopatch_killswitch")){var g=h._propertiesChanged;h._propertiesChanged=function(Z,M,W){E?h.debounceRender():h.doRender();g&&g.call(h,Z,M,W)}}};
NoW=function(h,E){if(h.useSignals||h.experimentalPropertiesChanged)if(_.J("experimental_templating_behavior_nopatch_killswitch"))h.experimentalPropertiesChanged=function(){};
else return;var g=new Set,Z=[h].concat(_.$E(h.behaviors));Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next()){M=M.value;for(var W in M.properties)g.has(W)||(h._addPropertyEffect(W,"function",E),g.add(W))}};
thV=function(){var h=Polymer.Element,E=h._prepareTemplate;h._prepareTemplate=function(){E.call(this);var g=this.prototype;if(g.experimentalTemplatingInUse&&g.experimentalTemplatingInUse()&&g.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.$W(Error("eh"));else{g=this.template.content.childNodes;for(var Z=g.length-1;Z>=0;Z--){var M=g[Z];M.nodeName!=="STYLE"&&M.nodeName!=="LINK"&&M.nodeName!=="SCRIPT"&&M.nodeName!=="#comment"&&M.remove()}}}};
S5$=function(h){var E=!0;E=E===void 0?!0:E;thV();var g=h.ready;h.ready=function(){this._template=null;g.call(this)};
NoW(h,E?h.debounceRender:h.doRender)};
wEV=function(h,E,g){if(g===null||g===void 0)return g;var Z=igd(h.tagName.toLowerCase(),E,function(){throw Error("Wb");});
if(Z===null)return g;Z=xtV[Z];var M;if((M=Z.isUnwrappable)==null?0:M.call(Z,g)){if(Z.unwrap)return Z.unwrap(g);throw Error("hh");}return Z.filterString?Z.filterString(h.tagName,E,String(g)):g};
DtW=function(h,E,g){var Z=E[E.length-1]!=="$",M=wEV(h,E,g);if(Z)if(typeof M==="function"&&E.startsWith("reactiveon")&&E===E.toLowerCase()){var W=Za;dCW(h,E.slice(8),function(z){Kw(W,function(){M(z)})})}else h[E]=M;
else g=M==null?null:String(M),Xh(h,E.slice(0,-1),g)};
KL=function(h){lOV.length===0&&requestAnimationFrame(function(){setTimeout(function(){var E=lOV.slice();lOV.length=0;E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;try{g()}catch(Z){_.$B(Z)}}})});
lOV.push(h)};
rPz=function(h){if(h){var E=h.component;if(E){var g;E==null||(g=E.events)==null||g.publish("DISCONNECTED");var Z;E==null||(Z=E.onDisconnected)==null||Z.call(E)}var M,W;(M=h.__spec)==null||(W=M.didUnmount)==null||W.call(M);for(E=0;E<h.childNodes.length;E++)rPz(h.childNodes[E])}};
mtO=function(h,E,g){var Z=E&&E.key,M=hx;M[0]=h;M[1]=Z;M[2]=void 0;for(var W in E)E.hasOwnProperty(W)&&(h=E[W],Z=EW,Z.push(W),Z.push(h));E=hx;a:{if(W=hx[2])for(h=0;h<W.length;h+=2)if(W[h]==="nonce"){W=W[h+1];break a}W=""}W=rfO(E[0],E[1],W);h=V6(W);Z=E[2];if(!h.staticsApplied&&(h.staticsApplied=!0,Z&&Z.length))if((M=h._attrsArr)&&M.length){for(M=0;M<Z.length;M+=2)OQ[Z[M]]=M+1;M=h._attrsArr||(h._attrsArr=jTZ(0));for(var z=0,c=0;c<M.length;c+=2){var I=M[c],B=M[c+1],U=OQ[I];U?Z[U]===B&&delete OQ[I]:(M[z]=
I,M[z+1]=B,z+=2)}nw(M,z);for(var L in OQ)f_O(W,L,Z[OQ[L]],G$),delete OQ[L]}else for(L=0;L<Z.length;L+=2)f_O(W,Z[L],Z[L+1],G$);X6V(W,h,G$);nw(E,0);g&&g(kZ);mCN()};
_.nL=function(h,E,g){g===void 0?delete h[E.name]:h[E.name]=g};
_.X8=function(h){var E={androidIncludeFontPadding:!1},g=0,Z=[],M=[],W=[];if(h.simpleText)return E.content=h.simpleText,E;if(h.runs===void 0)return E.content="",E;h=_.G(h.runs);for(var z=h.next();!z.done;z=h.next()){z=z.value;var c=z.text,I=void 0,B=(I=c)==null?void 0:I.length;if(c&&B){Z.push(c);if(z.bold||z.italics||z.strikethrough||z.underline||z.textColor!=null&&z.textColor!==0||z.deemphasize){c=M;I=c.push;var U={startIndex:g,length:B};z.bold&&(U.weightLabel="FONT_WEIGHT_MEDIUM");z.italics&&(U.italic=
!0);z.strikethrough&&(U.strikethrough="LINE_STYLE_SINGLE");z.underline&&(U.underline="LINE_STYLE_SINGLE");z.textColor!=null&&z.textColor!==0?document.documentElement.hasAttribute("dark")?U.fontColor=z.darkModeTextColor||z.textColor:U.fontColor=z.textColor:z.deemphasize&&(document.documentElement.hasAttribute("dark")?U.fontColor=parseInt("ff"+vj4("#aaa").substring(1),16):U.fontColor=parseInt("ff"+vj4("#606060").substring(1),16));I.call(c,U)}z.navigationEndpoint&&(c=W,I=c.push,U={startIndex:g,length:B,
onTap:{innertubeCommand:z.navigationEndpoint}},z.loggingDirectives&&_.nL(U,HNa,z.loggingDirectives),I.call(c,U));g+=B}}E.content=Z.join("");E.styleRuns=M.length?M:void 0;E.commandRuns=W.length?W:void 0;return E};
KF$=function(h){if(h==null||!h.runs)return!0;h=_.G(h.runs);for(var E=h.next();!E.done;E=h.next())if(E=E.value,E.bracket||E.errorUnderline||E.deemphasize||_.e(E,YB)||_.e(E,$tV))return!1;return!0};
ONq=function(h,E){return function(g){var Z=E.unit;if(Z!==g)throw Error("kh`"+h+"`"+Z+"`"+g);return E}};
sQ=function(h){if(!((h==null?0:h.value)&&(h==null?0:h.unit)))return"";switch(h.unit){case "DIMENSION_UNIT_FRACTION":var E="%";break;default:E="px"}h=h.value;E==="%"&&(h*=100);return""+h+E};
njz=function(h){try{return h()}catch(E){_.O$(E)}};
_.kB=function(h){var E=_.e(h,_.V1);if(E)return E;if((E=_.e(h,XEu))&&E.commands)return Y5a(E.commands);if((E=_.e(h,sha))&&E.commands)return Y5a(E.commands);if((h=_.e(h,Vhq))&&h.identifier&&h.command&&(ko$||(ko$=[]),!ko$.includes(h.identifier)))return ko$.push(h.identifier),_.e(h.command,_.V1)};
Y5a=function(h){if(h.length!==0){var E=[];h=_.G(h);for(var g=h.next();!g.done;g=h.next())(g=_.kB(g.value))&&E.push(g);return{commandExecutorCommand:{commands:E}}}};
_.F8=function(h){var E=h.defaultTarget,g=h.elementConfig,Z=h.elementsCommand,M=h.skipOnClick,W=h.forceNewState,z=h.additionalCommandArgs,c=h.innertubeCommand||_.kB(Z);if(c){h={};var I=yPx(c);Z=I.navigatingCommand;I=I.href;Z&&I?(h.href$=I,FFN(h,Z,I,E),_.J("web_atagconfig_pointerdown")&&AP$(h,Z),W&&(h["force-new-state$"]=!0)):(h.role$="button",h.href$="javascript:void(0);");_.e(c,ToM)&&(h["aria-haspopup$"]=!0);M||(h.onclick=function(B){var U={};if(bNq(B)){var L=(z==null?void 0:z.clickedVisualElement)||
(z==null?void 0:z.getClickedVisualElement)&&z.getClickedVisualElement();L&&(U={clickedVisualElement:L});U=Object.assign({},{form:{element:B.target,event:B,createScreenConfig:U}},z);B.preventDefault();_.y1(c,U)}});
return Object.assign({},g,h)}};
uvV=function(h){if(h.length){if(h.length===1)return h[0];var E={};_.nL(E,_.CZ,{commands:h});return E}};
AW=function(h){return h&&h.href$!=="javascript:void(0);"};
yPx=function(h){var E,g=((E=_.e(h,_.CZ))==null?void 0:E.commands)||[h];h=_.G(g);for(E=h.next();!E.done;E=h.next()){E=E.value;var Z=void 0,M=void 0;g=(M=_.e((Z=E)==null?void 0:Z.commandMetadata,_.qH))==null?void 0:M.url;_.J("web_remove_web_navigation_endpoint_data")||(Z=void 0,g=g||((Z=_.e(E,Qh4))==null?void 0:Z.url));if(g&&g!=="/service_ajax"){if(Z=_.nM(g,h2Z))return h=_.$r(Z),{navigatingCommand:E,href:h};_.O$(new _.xX("AttributedString URL could not be sanitized",g))}}return{}};
bNq=function(h){return h.button!==void 0?h.button===0&&!(h.shiftKey||h.altKey||h.metaKey||h.ctrlKey):!(h.shiftKey||h.altKey||h.metaKey||h.ctrlKey)};
FFN=function(h,E,g,Z){g=!Md(g);var M,W,z;if((M=_.e(E,_.tk))!=null&&M.nofollow||(W=_.e(E,_.MH))!=null&&W.nofollow||(z=_.e(E,_.yX))!=null&&z.nofollow||g)h.rel$="nofollow";var c;E=((c=_.e(E,_.yX))==null?void 0:c.target)==="TARGET_NEW_WINDOW"?"_blank":Z===void 0?"":Z;h.target$=E};
AP$=function(h,E){E.clickTrackingParams&&(h.params={itct:E.clickTrackingParams});h.onpointerdown=function(g){Ey$(g)};
h._data=E};
gyz=function(h){(h.loggingUrls||[]).forEach(function(E){Tn(E.baseUrl,E.attributionSrcMode)})};
Ey$=function(h){var E=h.currentTarget;h=njz(function(){return E.href});
var g=E.params;h&&_.zG(h,g||{},8,!0)};
_.Tl=function(h,E){(h=_.kB(h))&&_.y1(h,E)};
_.y1=function(h,E){Kcz(function(g){E?g.resolveCommand(h,E):g.resolveCommand(h)})};
pja=function(h,E){var g=["yt-core-attributed-string__link"];E!=null&&E.noLinkColor||((E==null?0:E.isOverlay)?g.push("yt-core-attributed-string__link--overlay-call-to-action-color"):g.push("yt-core-attributed-string__link--call-to-action-color"),(E==null?0:E.linkInheritColor)&&g.push("yt-core-attributed-string--link-inherit-color"));g={className:g.join(" "),tabindex$:"0"};var Z=h.onTap||h.onLongPress;if(!Z)return g;var M=Zvz(h);M&&(g["aria-label$"]=M);E=_.F8({elementsCommand:Z,elementConfig:g,skipOnClick:!(E==
null||!E.skipOnClick),forceNewState:!0});h.onLongPress&&(Z=new MTO(function(){var W=_.kB(h.onLongPress);W&&_.GF().resolve(_.zF).resolveCommand(W)}),E&&WpO(Z,E));
return E||g};
Zvz=function(h){var E,g;return(E=h.onTapOptions)==null?void 0:(g=E.accessibilityInfo)==null?void 0:g.accessibilityLabel};
GBu=function(h){var E=h;h<=16777215&&(E+=parseInt("ff000000",16));return _.uU(E)};
z2V=function(h){var E=h.isDarkTheme;var g=h.extension;h=h.runColor;var Z=void 0;if(g=g==null?void 0:g.colorMap){E=E?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";g=_.G(g);for(var M=g.next();!M.done;M=g.next())if(M=M.value,E===M.key){Z=M.value;break}}Z==null&&h&&(Z=h);if(Z)return GBu(Z)};
us=function(h){var E=h.config;var g=h.image;var Z=h.imageConfig;var M=h.imageWrapperConfig;var W=h.run;var z=h.tag;var c=h.textLength;var I=h.startIndex===void 0?0:h.startIndex;h=h.length;I===void 0&&(I=0);W={run:W,startIndex:I,endIndex:h!==void 0?I+h:c,tag:z};g&&(W.image=g);Z&&(W.imageConfig=Z);M&&(W.imageWrapperConfig=M);E&&(W.config=E);return W};
cvz=function(h,E){var g=[];g.push("yt-core-attributed-string");(E==null?0:E.className)&&g.push(E==null?void 0:E.className);(E==null?0:E.ellipsisTruncate)?g.push("yt-core-attributed-string--ellipsis-truncate"):(E==null?0:E.noWrap)?g.push("yt-core-attributed-string--white-space-no-wrap"):(E==null?0:E.noPreWrap)||g.push("yt-core-attributed-string--white-space-pre-wrap");(E==null?0:E.linkInheritColor)&&g.push("yt-core-attributed-string--link-inherit-color");h.alignment&&g.push(a8$(h.alignment));h.lineBreakMode&&
g.push("yt-core-attributed-string--word-wrapping");return g.join(" ")};
ivz=function(h,E){if(h.weight)return h.weight;switch(h.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 E?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
oyz=function(h){switch(h){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"}};
a8$=function(h){switch(h){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"}};
EL=function(h,E,g){var Z=E;h.content&&g&&(g=h.content.indexOf("\n"),g!==-1&&(Z=Math.min(E,g)));if(!h.content||h.content.length<=Z)E=h;else if(h.attachmentRuns||h.commandRuns||h.decorationRuns||h.styleRuns||h.paragraphStyleRuns){E=Q1(h.content,Z);g=Z;var M=h.attachmentRuns;if(M){var W=[];M=_.G(M);for(var z=M.next();!z.done;z=M.next())z=Object.assign({},z.value),z.startIndex===void 0||z.startIndex>=g||(z.length||(z.length=0),z.length+z.startIndex>g&&(z.length=g-z.startIndex),W.push(z));g=W}else g=void 0;
W=I8x(Z,h.commandRuns);M=Z;var c=h.decorationRuns;if(c){z=[];c=_.G(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;var B=_.e(I.textDecorator,h7);if(B&&B.startIndex!==void 0&&!(B.startIndex>=M)){I=Object.assign({},I,{textDecorator:{highlightTextDecorator:Object.assign({},B)}});B=_.e(I.textDecorator,h7);if(!B.length||B.length+B.startIndex>M)B.length=M-B.startIndex;z.push(I)}}M=z}else M=void 0;z=I8x(Z,h.styleRuns);if(c=h.paragraphStyleRuns)for(h=[],c=_.G(c),I=c.next();!I.done;I=c.next()){var U=I.value;
I=Object.assign({},U);if(!(I.startIndex===void 0||I.startIndex>=Z)){if(!I.length||I.length+I.startIndex>Z)I.length=Z-I.startIndex;B=[];var L=void 0,d=void 0;if((L=U)==null?0:(d=L.listGroup)==null?0:d.listItems)for(U=_.G(U.listGroup.listItems),L=U.next();!L.done;L=U.next())if(L=Object.assign({},L.value),!(L.startIndex===void 0||L.startIndex>=Z)){if(!L.length||L.length+L.startIndex>Z)L.length=Z-L.startIndex;B.push(L)}B.length>0&&(I.listGroup||(I.listGroup={}),I.listGroup=Object.assign({},I.listGroup,
{listItems:B}));h.push(I)}}else h=void 0;E={content:E,attachmentRuns:g,commandRuns:W,decorationRuns:M,styleRuns:z,paragraphStyleRuns:h}}else E=Object.assign({},h,{content:Q1(h.content,Z)});return E};
I8x=function(h,E){if(E){var g=[];E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next())if(Z=Object.assign({},Z.value),!(Z.startIndex===void 0||Z.startIndex>=h)){if(!Z.length||Z.length+Z.startIndex>h)Z.length=h-Z.startIndex;g.push(Z)}return g}};
Q1=function(h,E){var g=E,Z;if(Z=g>0)Z=h.charCodeAt(g-1),Z=Z>=55296&&Z<=56319;Z&&(g=h.charCodeAt(g),Z=g>=56320&&g<=57343);Z&&--E;return h.substring(0,E)};
UYz=function(h,E,g){g=g===void 0?R24:g;if(h){var Z=_.GF().resolve(aT);Z||_.J("mweb_no_observer_killswitch")?iNO(h,{data:E,observer:Z,visibilityCallback:g,hideOption:PtZ,showOption:BYN,layer:h.layer}):_.O$(new _.xX("Warning: monitorVisibility called with null observer",h.tagName,E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams))}else _.O$(new _.xX("Warning: monitorVisibility called with null element",E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams,E==null?void 0:
E.rendererContext))};
qAd=function(h,E){var g=[],Z=h.content.length,M,W=(M=_.GF().resolve(_.pl(_.gu)))==null?void 0:M();if(h.paragraphStyleRuns){M=_.G(h.paragraphStyleRuns);for(var z=M.next();!z.done;z=M.next()){var c=g.push,I=c.apply;var B=void 0;z=z.value;if((B=z.listGroup)!=null&&B.listItems){B=[];b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var U="ul";break b;default:U="span"}B.push(us({run:z,textLength:Z,tag:U,config:{className:"yt-core-attributed-string__list-group"},startIndex:z.startIndex,length:z.length}));
U=_.G(z.listGroup.listItems);for(var L=U.next();!L.done;L=U.next()){L=L.value;b:switch(z.listGroup.listType){case "LIST_TYPE_BULLET":var d="li";break b;default:d="span"}B.push(us({run:z,textLength:Z,tag:d,startIndex:L.startIndex,length:L.length}))}z=B}else z=[];I.call(c,g,_.$E(z))}}if(h.styleRuns&&(E==null||!E.noStyleRuns))for(M=_.G(h.styleRuns),c=M.next();!c.done;c=M.next()){z=c=c.value;B=W;I=E;B=z2V({extension:_.e(z.styleRunExtensions,Lpx),isDarkTheme:B===void 0?!1:B,runColor:z.fontColor});L=z;
U=[];B&&U.push("yt-core-attributed-string--link-inherit-color");L.italic&&U.push("yt-core-attributed-string--italicized");L.underline&&L.strikethrough?U.push("yt-core-attributed-string--underline-strikethrough",oyz(L.underline)):L.underline?U.push("yt-core-attributed-string--underlined",oyz(L.underline)):L.strikethrough&&U.push("yt-core-attributed-string--strikethrough",oyz(L.strikethrough));if(L.baselineOffset){a:switch(L.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":L="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":L="yt-core-attributed-string--baseline-offset-superscript";break a;default:L="yt-core-attributed-string--baseline-offset-unknown"}U.push(L)}U=U.join(" ");L={};if(z.weight||z.weightLabel)L.fontWeight=ivz(z,I==null?void 0:I.isHeadline).toString();B&&(L.color=B);g.push(us({run:c,textLength:Z,tag:"span",config:{className:U,style:L},startIndex:c.startIndex,length:c.length}))}if(h.decorationRuns)for(M=_.G(h.decorationRuns),c=M.next();!c.done;c=M.next())c=c.value,
I={},c.textDecorator&&(U=c.textDecorator,z=W===void 0?!1:W,L=[],B=_.e(U,h7),U=_.e(U,jkz),B?(U=L,L=U.concat,d=[],(z=z2V({extension:_.e(B.highlightTextDecoratorExtensions,dYV),isDarkTheme:z,runColor:B.backgroundColor}))&&d.push("background-color: "+z+";"),B.backgroundCornerRadius!==void 0&&d.push("border-radius: "+B.backgroundCornerRadius+"px;"),B.leftPadding!==void 0&&d.push("padding-left: "+B.leftPadding+"px;"),B.rightPadding!==void 0&&d.push("padding-right: "+B.rightPadding+"px;"),B.topPadding!==
void 0&&d.push("padding-top: "+B.topPadding+"px;"),B.bottomPadding!==void 0&&d.push("padding-bottom: "+B.bottomPadding+"px;"),L=L.call(U,d)):U&&(B=L,L=B.concat,z=z?"#2ba640":"#107516",z=U.color?GBu(U.color):z,z=["padding: 2px;","border-top: solid "+z+" 2px;","border-bottom: solid "+z+" 2px;","background: linear-gradient(135deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+z+" 3px, rgba(0, 0, 0, 0) 3px);"],L=L.call(B,z)),z=L.join(" "),I.style$=z,z=c.textDecorator,B=[],U=_.e(z,
jkz),_.e(z,h7)?B.push("yt-core-attributed-string--highlight-text-decorator"):U&&B.push("yt-core-attributed-string--bracket-text-decorator"),z=B.join(" "),I.className=z,I.dir="auto"),z=_.e(c.textDecorator,h7),B=_.e(c.textDecorator,jkz),U=_.e(c.textDecorator,h7),L=_.e(c.textDecorator,jkz),g.push(us({run:c,textLength:Z,tag:"span",config:I,startIndex:(z==null?void 0:z.startIndex)||(B==null?void 0:B.startIndex)||0,length:(U==null?void 0:U.length)||(L==null?void 0:L.length)||0}));if(h.commandRuns&&(E==
null||!E.noEndpoints))for(W=_.G(h.commandRuns),M=W.next();!M.done;M=W.next())M=M.value,c=pja(M,E),g.push(us({run:M,textLength:Z,tag:"a",config:c,startIndex:M.startIndex,length:M.length}));if(h.attachmentRuns)for(h=_.G(h.attachmentRuns),W=h.next();!W.done;W=h.next()){W=W.value;I=c=void 0;M={className:"yt-core-attributed-string--inline-block-mod"};if((I=W.element)==null?0:I.properties){I=(c=W.element)==null?void 0:c.properties;c=[];I=_.e(I,Ctx);if(I==null?0:I.margin)I=I.margin,I.left&&c.push("margin-left: "+
sQ(I.left)+";"),I.right&&c.push("margin-right: "+sQ(I.right)+";"),I.top&&c.push("margin-top: "+sQ(I.top)+";"),I.bottom&&c.push("margin-bottom: "+sQ(I.bottom)+";");c=c.length!==0?c.join(" "):void 0;M.style$=c}z=void 0;c={alt:"",preserveHeight:!0,preserveWidth:!0};I=["yt-core-attributed-string__image-element"];if(W.alignment){a:switch(W.alignment){case "ALIGNMENT_BASELINE":B="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":B="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:B="yt-core-attributed-string__image-element--image-alignment-bottom"}I.push(B)}if((z=W.element)==null?0:z.properties)z=[],B=_.e(W.element.properties,Ctx),(B==null?0:B.height)&&z.push("height: "+sQ(B.height)+";"),(B==null?0:B.width)&&z.push("width: "+sQ(B.width)+";"),z=z.length!==0?z.join(" "):void 0,c.style$=z,B=void 0,z=((B=_.e(W.element.properties,Jva))==null?void 0:B.label)||"",c.alt=z;c.className=I.join(" ");I=void 0;U=B=void 0;z=((U=W.element)==null?0:U.type)?(B=_.e(W.element.type,
e2O))==null?void 0:B.image:void 0;g.push(us({run:W,textLength:Z,tag:"img",image:z,imageConfig:c,imageWrapperConfig:M,startIndex:W.startIndex,length:(I=W.length)!=null?I:0}))}if(E==null?0:E.headerRuns)for(E=_.G(E.headerRuns),h=E.next();!h.done;h=E.next())if(h=h.value,h.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(h.headerMapping)){a:{switch(h.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":W=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":W="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":W="yt-core-attributed-string--heading-3";break a}W=void 0}g.push(us({run:h,textLength:Z,tag:"span",config:W?{className:W}:void 0,startIndex:h.startIndex,length:h.length}))}return g};
_.ZC=function(h){return(h==null?void 0:h.content)!==void 0};
f8W=function(h){return _.ZC(h)?h:_.X8(h)};
NY$=function(h){return h.image!==void 0&&h.imageConfig!==void 0};
tT4=function(h,E){if(E==null?0:E.userInput)for(h=_.G(h),E=h.next();!E.done;E=h.next())if(E=E.value,E.tag!=="a"&&E.tag!=="li"){var g=void 0;(g=E).config||(g.config={});E.config.dir=E.tag==="ul"?_.GF().resolve(_.Mi):"auto"}};
SAz=function(h){return function(E){var g=h.run;(g.onTap!==void 0||g.onLongPress!==void 0)&&_.e(g,HNa)&&UYz(E,{loggingDirectives:_.e(g,HNa)})}};
xYu=function(h){return function(E){for(var g in h)(G$[g]||G$[YZ["default"]])(E,g,h[g])}};
rvz=function(h,E){wjV(E);var g={data:null,start:0,end:h.length,parts:[]};E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next())Z=Z.value,DY$(g,Z.startIndex,Z.endIndex,Z);l8d(h,g);return g};
DY$=function(h,E,g,Z){for(var M=_.G(h.parts),W=M.next();!W.done;W=M.next()){W=W.value;if(typeof W==="string")throw Error("mh");if(W.start<=E&&g<=W.end){DY$(W,E,g,Z);return}}h.parts.push({data:Z,parts:[],start:E,end:g})};
l8d=function(h,E){for(var g=E.parts.length;g>=0;g--){var Z=E.parts[g],M=E.parts[g-1],W=g===E.parts.length?E.end:Z.start;M=g===0?E.start:M.end;W!==M&&E.parts.splice(g,0,h.slice(M,W));Z&&l8d(h,Z)}};
wjV=function(h){h.sort(function(E,g){if(E.startIndex<g.startIndex)return-1;if(g.startIndex<E.startIndex)return 1;E=E.endIndex-E.startIndex;g=g.endIndex-g.startIndex;return E>g?-1:g>E?1:0})};
_.mY4=function(h){var E=h.thumbnails;if(E){h={sources:[]};E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z={};Z.url=g.url;Z.width=g.width;Z.height=g.height;h.sources.push(Z)}return h}};
vyV=function(h,E,g,Z){if(!E)return h.length>=1?h[h.length-1]:null;if(Z)for(var M=_.G(h),W=M.next();!W.done;W=M.next()){W=W.value;var z=void 0,c=(z=W.url)==null?void 0:z.indexOf(Z);if(c!==void 0&&c>=0)return W}Z=_.G(h);for(M=Z.next();!M.done;M=Z.next())if(M=M.value,M.width&&M.height&&(g&&M.width>=E||!g&&M.height>=E))return M;for(E=h.length-1;E>=0;E--)if(g&&h[E].width||!g&&h[E].height)return h[E];return h[0]};
_.Hvz=function(h){var E;return(h=(E=h.sources)==null?void 0:E[0])?h.width/h.height:0};
_.$Yx=function(h){if(h.sources){h=_.G(h.sources);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=void 0;if((g=E.clientResource)==null?0:g.imageName)return E}}};
KpM=function(h){var E;if((E=h.clientResource)!=null&&E.imageColor)return _.uU(h.clientResource.imageColor)};
_.ny4=function(h,E,g,Z,M,W,z){if(!E||E.length===0||E[0].clientResource)return null;if(g&&E[0].url)return E[0].url;Z===void 0&&(Z=!0);if(Z){var c;h=Ovx*(M||(h==null?void 0:(c=h.getBoundingClientRect())==null?void 0:c.width)||0)}else{var I;h=Ovx*(W||(h==null?void 0:(I=h.getBoundingClientRect())==null?void 0:I.height)||0)}E=vyV(E,h,Z,z);return(E==null?0:E.url)?E.url:(E==null?0:E.imageData)?E.imageData:null};
XjO=function(h,E,g){g=g?[g]:[];h.opacity&&g.push("opacity: "+h.opacity+";");E&&h.placeholderColor?(h=_.uU(h.placeholderColor),g.push("background-color: "+h+";")):g.push("background-color: transparent;");return g.join(" ")};
YAz=function(h,E,g,Z,M){var W=["ytCoreImageHost"];E&&W.push(E);g||W.push("ytCoreImageFillParentHeight");Z||W.push("ytCoreImageFillParentWidth");switch(h.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":W.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":W.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":W.push("ytCoreImageContentModeCenter");break;default:W.push("ytCoreImageContentModeScaleToFill")}h.flipForRtlLayout&&W.push("ytCoreImageFlipRtl");
switch(M){case "TOP_START":var z;W.push(((z=document.body)==null?void 0:z.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return W.join(" ")};
VTW=function(h){var E;if(h==null?0:(E=h.clientResource)==null?0:E.imageName){var g;h=(g=h.clientResource)==null?void 0:g.imageName;a:{switch(h){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":g="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":g="yt-logos-ext:yt-logo-updated";break a}g=void 0}return g||sk4.get(h)||h}};
Fpz=function(h){return _.J("mweb_wiz_skip_render")?kBz(h):yvZ(h)};
kBz=function(h){return function(E){var g=rfO("wink-root");vwV();mCN();pgW(g,_.R(h,E))}};
yvZ=function(h){var E=E===void 0?!1:E;return function(g){if(!E||!_.J("mweb_skip_keto_to_c3_if_no_data")||g.data!==void 0){var Z=ao(!1);try{var M=g.children;_.J("mweb_render_outside_patch_killswitch")||kZ?M?pg(_.R(h,g,M)):pg(_.R(h,g)):_.O$(new _.xX("ketoToC3 called outside of a patch",{tagName:h.TAG_NAME}))}finally{ao(Z)}}}};
Avx=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
bvx=function(h,E){h.onViewportEntered=E;TYM.observe(h)};
uP$=function(){var h={rootMargin:"10%",threshold:.01};_.J("mweb_enable_set_io_root_to_null_safari")?h.root=null:_.J("mweb_enable_set_io_root_to_body_safari")&&(h.root=document.body);return new IntersectionObserver(function(E,g){E.filter(function(Z){return Z.intersectionRect.height>0}).forEach(function(Z){Z=Z.target;
if(!_.J("mweb_enable_only_update_image_when_connected")||Z.isConnected!==!1){var M;(M=Z.onViewportEntered)==null||M.call(Z);g.unobserve(Z)}})},h)};
Qku=function(h,E,g,Z,M){function W(){if(Z){var c=Z.loadedClass,I=Z.notifyOnUnloaded;c&&_.W$(h,c);I&&h.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function z(){var c=g(E,h);c&&h.getAttribute("src")!==c&&(_.J("mweb_enable_only_update_image_when_connected")&&h.isConnected===!1||c===h.src||(h.src=c),W())}
M=M===void 0?!0:M;h.removeAttribute("src");W();E&&(M?bvx(h,z):z())};
hfW=function(h,E,g){if(!E)return!1;E=g(E,h);g=h.getAttribute("src");return E&&E===g&&h.complete};
Eqz=function(h,E){for(var g in E)g==="className"?h.className=E[g]:(G$[g]||G$[YZ.default])(h,g,E[g])};
gqa=function(h,E,g,Z){Fpz(_.pO)({contentMode:E.contentMode,loadedClass:E.loadedClass,isPreloaded:E.isPreloaded,notifyOnLoaded:E.notifyOnLoaded,notifyOnUnloaded:E.notifyOnUnloaded,preferredThumbnail:E.preferredThumbnail,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,objectPosition:E.objectPosition,targetWidth:E.targetWidth,targetHeight:E.targetHeight,shouldShowPlaceholder:E.shouldShowPlaceholder,useWidth:E.useWidth,isToggled:E.isToggled,alt:E.alt,className:E.className,onerror:E.onerror,
onload:E.onload,style$:E.style$,color:E.color,width:E.width,height:E.height,"aria-hidden$":E["aria-hidden$"],draggable:E.draggable,"data-disabled$":E["data-disabled$"],data:h,callback:g,renderLazy:Z===void 0?!0:Z,hideOn404:!1})};
M9u=function(h,E,g){g=g===void 0?!1:g;var Z=h.sources!==void 0?h:_.mY4(h);if(Z){var M=E.onload;E.onload=function(I){var B=I.target;g&&B.naturalWidth===120||_.GT(B,"ytCoreImageLoaded");E.notifyOnLoaded&&B.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));M==null||M(I)};
E.targetWidth&&E.preserveWidth&&(E.width=E.targetWidth);E.targetHeight&&E.preserveHeight&&(E.height=E.targetHeight);var W=_.$Yx(Z),z=W&&VTW(W);if(z)return(h=KpM(W))&&(E.color=h),{type:"icon",iconName:z,config:Object.assign({},E,E.alt?{}:{"aria-hidden$":"true"},{"aria-label$":E.alt,role:"img"})};if(h.sources===void 0){E.alt=h.accessibility&&h.accessibility.accessibilityData&&h.accessibility.accessibilityData.label||E.alt;E.style$=XjO(h,E.shouldShowPlaceholder,E.style$);var c;E.isPreloaded=!((c=_.e(h,
Z5W))==null||!c.isPreloaded)}E.contentMode&&!Z.contentMode&&(Z.contentMode=E.contentMode);E.className=YAz(Z,E.className,E.preserveHeight,E.preserveWidth,E.objectPosition);E.loadedClass="ytCoreImageLoaded";return{type:"image",image:Z,config:E}}};
_.zT=function(){var h=_.VF.apply(0,arguments);return _.MC(WAu,function(E){var g=h.map(function(Z){return Z==null?void 0:Z(E)});
return function(){return void g.forEach(function(Z){return void(Z==null?void 0:Z())})}})};
a9=function(h,E){var g=E==null?void 0:E.initial;return _.Cw(function(){_.Hm(!0);return g=h(g)},{equals:E==null?void 0:E.isEqual},"rSlKsc")};
pqd=function(h,E){if(h===E)return!0;if(h===void 0||E===void 0)return!1;var g,Z,M,W,z,c,I,B;return h.content===E.content&&((g=h.styleRuns)==null?void 0:g.length)===((Z=E.styleRuns)==null?void 0:Z.length)&&((M=h.commandRuns)==null?void 0:M.length)===((W=E.commandRuns)==null?void 0:W.length)&&((z=h.attachmentRuns)==null?void 0:z.length)===((c=E.attachmentRuns)==null?void 0:c.length)&&((I=h.decorationRuns)==null?void 0:I.length)===((B=E.decorationRuns)==null?void 0:B.length)};
aya=function(h,E){if(h){var g=f8W(h);if(g!=null&&g.content)if(_.J("attr_string_reactive"))Fpz(GQu)({text:h,config:E});else{var Z=!(E==null||!E.ariaLabel)||!(g.commandRuns&&g.commandRuns.length!==0||g.paragraphStyleRuns&&g.paragraphStyleRuns.length!==0);h=Z?E==null?void 0:E.ariaLabel:null;Z=Z?"text":null;mtO("span",{className:cvz(g,E),dir$:(E==null?0:E.userInput)?"auto":void 0,"aria-label$":h,role$:Z},function(){if(g.styleRuns||g.commandRuns||g.attachmentRuns||g.decorationRuns||g.paragraphStyleRuns){var M=
qAd(g,E);tT4(M,E);M=rvz(g.content,M);M=_.G(M.parts);for(var W=M.next();!W.done;W=M.next())zfM(W.value)}else Yvd(g.content)})}}};
zfM=function(h){typeof h==="string"?Yvd(h):NY$(h.data)?mtO("span",h.data.imageWrapperConfig,function(){gqa(h.data.image,h.data.imageConfig)}):mtO(h.data.tag,h.data.config,function(E){SAz(h.data)(E);
E=_.G(h.parts);for(var g=E.next();!g.done;g=E.next())zfM(g.value)})};
i5z=function(h){return h.parts.map(cIx)};
cIx=function(h){if(typeof h==="string")return h;h=NY$(h.data)?_.R("span",{el:_.zT(xYu(h.data.imageWrapperConfig))},_.R(_.pO,Object.assign({},{data:h.data.image},h.data.imageConfig))):_.R(h.data.tag,{el:_.zT(SAz(h.data),xYu(h.data.config))},h.parts.map(cIx));return Jx(h)};
oqz=function(h,E){return h===E?!0:h===void 0||E===void 0?!1:h.noStyleRuns===E.noStyleRuns&&h.noLinkColor===E.noLinkColor&&h.noEndpoints===E.noEndpoints&&h.headerRuns===E.headerRuns&&h.isOverlay===E.isOverlay&&h.linkInheritColor===E.linkInheritColor&&h.userInput===E.userInput&&h.isHeadline===E.isHeadline};
Iy4=function(h){return function(){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q;return{ariaLabel:(E=h.ariaLabel)==null?void 0:E.call(h),className:(g=h.className)==null?void 0:g.call(h),ellipsisTruncate:(Z=h.ellipsisTruncate)==null?void 0:Z.call(h),isOverlay:(M=h.isOverlay)==null?void 0:M.call(h),linkInheritColor:(W=h.linkInheritColor)==null?void 0:W.call(h),noEndpoints:(z=h.noEndpoints)==null?void 0:z.call(h),noStyleRuns:(c=h.noStyleRuns)==null?void 0:c.call(h),noLinkColor:(I=h.noLinkColor)==null?void 0:I.call(h),
noPreWrap:(B=h.noPreWrap)==null?void 0:B.call(h),noWrap:(U=h.noWrap)==null?void 0:U.call(h),skipOnClick:(L=h.skipOnClick)==null?void 0:L.call(h),userInput:(d=h.userInput)==null?void 0:d.call(h),headerRuns:(C=h.headerRuns)==null?void 0:C.call(h),isHeadline:(q=h.isHeadline)==null?void 0:q.call(h)}}};
PEd=function(h,E){h=new RfW(h,E);_.$W(h);throw h;};
Bq$=function(h,E,g){var Z=tmV(h);h._numRenders=0;try{var M=_.NHW(function(){return _.R(E,Object.assign({},g))})}catch(z){var W=function(c){c.args||(c.args=[]);
c.args.push("Error in web component wrapper");c.args.push(h.tagName.toLowerCase());return c};
_.KI(z instanceof Error?W(z):new RfW("Wiz rendering error",h.tagName.toLowerCase()));throw z;}finally{tmV(Z)}return M};
_.I9=function(h,E,g){function Z(U){var L={};U=_.G(U);for(var d=U.next();!d.done;d=U.next()){d=d.value;var C=void 0,q=void 0,w=void 0,r=_.SN((w=(q=(C=d).getAttribute)==null?void 0:q.call(C,"slot"))!=null?w:"children");if(C=L[r])C.push(d);else if(r in W||r==="children")L[r]=[d]}U=_.G(Object.keys(L));r=U.next();for(d={};!r.done;d={content$jscomp$57:void 0},r=U.next())r=r.value,r!=="children"&&(d.content$jscomp$57=L[r],L[r]=function(v){return function(){return v.content$jscomp$57}}(d));
return L}
g=g===void 0?{}:g;h.componentType!==SA||PEd("Components must be marked reactive to be used from web component wrapper.",E);var M,W=(M=g.props)!=null?M:{};PK.add(E);var z=Uj4();M=function(){var U=z.apply(this,arguments)||this;U.rawProps={};U.queuingRender=!1;U.dispose=function(){};
U.isWebComponentWrapper=!0;U.isReparenting=!1;U.hasRendered=!1;return U};
_.f(M,z);M.prototype.render=function(){this.hasRendered=!0;for(var U=_.G([].concat(_.$E(this.attributes))),L=U.next();!L.done;L=U.next())L=L.value,L.name!=="slot"&&L.name!=="hidden"&&this.removeAttribute(L.name);U=Object.assign({},this.componentProps,this.slotProps);L=_.G(Bq$(this,h,U));U=L.next().value;L=L.next().value;!(U[0]instanceof Element)||U.length>1?PEd("Wrapped Wiz components must return a single root element.",E):(U=U[0].tagName.toLowerCase(),U!==E&&PEd("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(U+" !== '"+E),E),this.dispose=L)};
M.prototype.setUpProps=function(){for(var U=this.rawProps,L=this.attributes,d=_.G(Object.keys(W)),C=d.next();!C.done;C=d.next()){C=C.value;var q=void 0;((q=this)==null?0:q[C])&&this[C]!==LAa&&U[C]===void 0&&(U[C]=this[C],(q=Object.getOwnPropertyDescriptor(this.constructor.prototype,C))&&Object.defineProperty(this,C,q))}d=_.G(L);for(C=d.next();!C.done;C=d.next()){q=C.value;C=_.SN(q.name);var w=C==="class"&&!L.getNamedItem("class-name");if(C in W||w)q=q.value===""||q.value==="true"?!0:q.value==="false"?
!1:isNaN(Number(q.value))?q.value:Number(q.value),C!=="class"||U.className?U[C]=q:U.className=q}L={};for(var r in W)W[r]!==_.c$&&W[r]!==jZx&&(U[r]instanceof Function&&PEd("Function props must be configured as STATIC, not SIGNAL.",E),C=_.G(_.Bm(U[r],void 0,"q4ZVff")),d=C.next().value,C=C.next().value,L[r]=C,U[r]=d);U=_.G([U,L]);this.componentProps=U.next().value;this.setters=U.next().value;this.slotProps=Z(this.childNodes)};
M.prototype.connectedCallback=function(){dj$===E&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in W&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
M.prototype.disconnectedCallback=function(){if(!this._isInert){var U;a:{if(_.iF)for(U=this;U;){if(_.o9.has(U)){U=!0;break a}U=U.parentElement}U=!1}if(U)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){U=_.G([].concat(_.$E(this.attributes)));for(var L=U.next();!L.done;L=U.next()){L=L.value;var d=void 0;L.name==="slot"||L.name==="hidden"&&((d=g.unsafeExternallySettableAttributes)==null?0:d.has("hidden"))||this.removeAttribute(L.name)}}this.innerText="";d1$(this)}}};
M.prototype._setPendingPropertyOrPath=function(){};
M.prototype.notifyPath=function(){};
_.ze.Object.defineProperties(M.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var c=_.G(Object.keys(W)),I=c.next(),B={};!I.done;B={prop$jscomp$105:void 0},I=c.next())B.prop$jscomp$105=I.value,I=void 0,((I=g.legacyPolymer)==null?0:I.forwardHostProps)&&L0M.has(B.prop$jscomp$105)||Object.defineProperty(M.prototype,B.prop$jscomp$105,{set:function(U){return function(L){var d=this;this._isInert||(this.setters?JV(function(){var C,q;return void((q=(C=d.setters)[U.prop$jscomp$105])==null?void 0:q.call(C,L))}):(this.rawProps[U.prop$jscomp$105]=L,this.queuingRender&&U.prop$jscomp$105===
"data"&&L!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(B),
get:CEV.has(B.prop$jscomp$105)?void 0:function(){return LAa}});
customElements.define(E,M)};
_.JIu=function(h,E){return(h=_.R9(h,E))?_.$r(_.Yr(h)):null};
_.P$=function(h){if(h=_.R9(h,Number.MAX_VALUE,void 0,"width"))return _.Yr(h)};
_.R9=function(h,E,g,Z){Z=Z===void 0?"width":Z;if(!h||!h.length)return null;if(_.J("kevlar_tuner_should_always_use_device_pixel_ratio")){var M=window.devicePixelRatio;_.J("kevlar_tuner_should_clamp_device_pixel_ratio")?M=Math.min(M,_.cx("kevlar_tuner_clamp_device_pixel_ratio")):_.J("kevlar_tuner_should_use_thumbnail_factor")&&(M=_.cx("kevlar_tuner_thumbnail_factor"));efM=M}else efM||(efM=window.devicePixelRatio);M=efM;_.J("kevlar_tuner_should_always_use_device_pixel_ratio")?E*=M:M>1&&(E*=M);if(_.J("kevlar_tuner_min_thumbnail_quality"))return h[0].url||
null;M=h.length;if(_.J("kevlar_tuner_max_thumbnail_quality"))return h[M-1].url||null;if(g)for(var W=0;W<M;W++)if(h[W].url.indexOf(g)>=0)return h[W].url||null;for(g=0;g<M;g++)if(h[g][Z]>=E)return h[g].url||null;for(E=M-1;E>0;E--)if(h[E][Z])return h[E].url||null;return h[0].url||null};
NqW=function(){B$.size?setTimeout(function(){UL(qsq)},0):fyq=0};
qsq=function(){var h=(0,_.zn)(),E=null,g=!1;B$.forEach(function(M){M.loaded=!0;M.loadTime=h;M.pendingPaint=!1;var W=t9z.get(M);W&&W.resolve(h);E=M;g||!M.ftlEligible&&M.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(g=!0)});
var Z;((Z=E)==null?0:Z.markDirty)&&E.markDirty();B$.clear();fyq=0;g&&Ssa(h)};
xjx=function(h){B$.add(h);h.pendingPaint=!0;fyq||(fyq=_.LO(_.KP,NqW))};
wqO=function(h){h.loaded=!1;h.loadTime=Infinity;var E=t9z.get(h);E&&(E.reject(Error("sh")),t9z.delete(h));h.pendingPaint&&(B$.delete(h),h.pendingPaint=!1)};
_.Dj$=function(h){var E=h.indexOf(":");return E===-1?{originalName:h}:{originalName:h.substring(0,E),datasyncId:h.substring(E+1)}};
_.rIz=function(){return _.a(function(h){if(ly$!==void 0)return h.return(ly$);ly$=new Promise(function(E){var g;return _.a(function(Z){switch(Z.nextAddress){case 1:return _.CX(Z,2),Z.yield(_.jd.open("test-only"),4);case 4:return Z.yield(_.jd.delete("test-only"),5);case 5:_.bN(Z,3);break;case 2:if(g=_.th(Z),g instanceof Error&&g.name==="SecurityError")return E(!1),Z.return();case 3:E("caches"in window),_.SK(Z)}})});
return h.return(ly$)})};
H5O=function(){return _.a(function(h){if(h.nextAddress==1)return h.yield(_.rIz(),2);if(!h.yieldResult)return h.return(void 0);mjd||(mjd=new vqd);return h.return(mjd)})};
$ja=function(h){var E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return W.yield(H5O(),2);case 2:E=W.yieldResult;if(!E)throw Error("uh");return W.yield(E.open("yt-player-local-img"),3);case 3:return g=W.yieldResult,W.yield(g.match(h),4);case 4:Z=W.yieldResult;if(!Z)throw Error("vh");return W.yield(Z.blob(),5);case 5:return M=W.yieldResult,W.return(M)}})};
KAN=function(h,E){for(var g in h)if(h.hasOwnProperty(g)&&E[g])return g;return null};
O5d=function(h){return"stamp"+h.replace("-","_")+"_"};
nqV=function(h){var E=h.match(/\[\[([\w\.]+)\]\]/);if(E&&E.length>1)return E[1];_.$W(Error("xh`"+h));return null};
Xq$=function(h){return h===void 0?_.Xn("REUSE_COMPONENTS",!1):h||!1};
V9M=function(h,E,g){g&&(E.is?(YsV.has(E)&&(h=YsV.get(E),g=h.listener,delete E[h.property],g.type==="element"&&E.removeEventListener(g.eventName,g.handler),YsV.delete(E)),sZO(E)):E.__proto__==HTMLElement.prototype&&(E=new _.xX("Rendererstamper removed a non custom element","Stamper: "+h+" element: "+(E&&E.nodeName)),_.O$(E)))};
kQ4=function(h,E,g,Z){var M=E.node?E.node:E;_.UB(g).parentNode===M&&(E.removeChild(g),V9M(h,g,Z));if(h=du.get(g))du.delete(g),_.KP.cancelJob(h);g.hidden=!1};
yI$=function(h,E,g,Z){if(E&&E.children&&(g=E.children[g]))if(_.Xn("DEFERRED_DETACH"))for(;g&&!du.has(g);){var M=h,W=E,z=g,c=Z;z.hidden=!0;M=_.xW(_.KP,kQ4.bind(null,M,W,z,c),0);du.set(z,M);g=g.nextElementSibling}else for(;(z=E.lastElementChild)&&(E.removeChild(z),V9M(h,z,Z),z!=g););};
_.CO=function(){for(var h=_.VF.apply(0,arguments),E=!0,g=_.G(h),Z=g.next();!Z.done;Z=g.next())if(typeof Z.value!=="string"){E=!1;break}return E?h.join(" ").trim()||void 0:function(){for(var M="",W=_.G(h),z=W.next();!z.done;z=W.next())if(z=z.value,typeof z==="function"&&(z=z()),z)if(typeof z==="string")M+=" "+z;else for(var c in z)if(z.hasOwnProperty(c)){var I=z[c];typeof I==="function"&&(I=I());I&&(M+=" "+c)}M=M.trim()||void 0;return _.Hm(M)}};
AIV=function(h){var E;return(E=FA4[h])!=null?E:"EVENT_SPAN_TYPE_UNKNOWN"};
Tqa=function(h){var E=h.nodeName;if(h.id)return E+="#"+h.id;if(h.classList)for(var g=_.G(h.classList),Z=g.next();!Z.done;Z=g.next())E+="."+Z.value;h.parentElement&&(E=Tqa(h.parentElement)+" > "+E);return E};
b5d=function(h){return function(E){var g=AIV(E.type);return g==="EVENT_SPAN_TYPE_UNKNOWN"?h(E):hRx("event",{type:g,nodepath:E.target instanceof Element?Tqa(E.target):void 0},function(){return h(E)})}};
_.J7=function(h){h&&u3O("event")&&(h=b5d(h));return g7O(function(E){var g,Z=(g=h)==null?void 0:g(E);return typeof Z==="boolean"?Z:!0})};
ed=function(h){return function(){return h()?h():void 0}};
Ef4=function(h){var E=_.hf("animated-rolling-character"),g=Lcd(),Z=pZ(h.character)||pZ(h.previousCharacter),M=_.G(LqW()),W=M.next().value,z=M.next().value;_.vJ(function(){if(window.ResizeObserver&&_.J("web_fix_rolling_numbers_zoom_safari")){var c=new ResizeObserver(function(){var I,B,U=Math.round(((B=(I=E.value.querySelector("div"))==null?void 0:I.getBoundingClientRect().height)!=null?B:0)*100)/100;U&&z(U)});
c.observe(E.value);return function(){c.disconnect()}}});
aA4(function(){var c=_.J("web_fix_rolling_numbers_zoom_safari")?W:h.marginMultiplier;if(c){var I;(I=g.value)==null||I.cancel();Z?(I=h.previousCharacter?Number(h.previousCharacter)+10:h.rollUp?0:30,h.shouldAnimate||(I-=u0d(h,I))):(I=h.rollUp?0:2,h.shouldAnimate||(I-=h.rollUp?-1:1));E.value.style.marginTop="-"+I*c+"px";h.shouldAnimate?g.value=QZz(E.value,h,I,Z,c):E.value.style.display=h.character?"":"none"}});
return _.R("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},Lg4(Z,function(){for(var c=[],I=1;I<30;I++)c.push(_.R("div",null,I%10));return _.R(_.zt,null,_.R("div",null,"\u00a0"),c,_.R("div",null,"\u00a0"))},function(){return hDz(h.character)}))};
hDz=function(h){return _.R(_.zt,null,_.R("div",null,"\u00a0"),_.R(_.zt,null,Lg4(!h||_.ca(h),function(){return _.R("div",null,"\u00a0")},function(){return _.R("div",null,h)})),_.R("div",null,"\u00a0"))};
QZz=function(h,E,g,Z,M){g=new Animation(new KeyframeEffect(h,[{transform:"translateY(0px)"},{transform:"translateY("+(Z?u0d(E,g):E.rollUp?-1:1)*M+"px)"}],gfa),document.timeline);E.character?(h.style.display="",g.onfinish=null):g.onfinish=function(){h.style.display="none"};
g.play();return g};
u0d=function(h,E){var g=Number(h.character)+10;if(h.previousCharacter)if(h.character){var Z=Number(h.character),M=Number(h.previousCharacter);h=h.rollUp?M<Z?g:g+10:M<Z?g-10:g}else h=h.rollUp?30:0;else h=h.character==="0"?g:h.rollUp?g-10:g+10;return E-h};
ZGa=function(h){return function(E){var g={},Z;for(Z in E){var M=void 0,W=void 0;((M=void 0)==null?0:(W=M.callbacks)==null?0:W[Z])||(g[Z]=E[Z])}return _.R(fq4,null,function(){for(var z in g)E[z]=_.Hm(g[z]);E.disableReactiveLogging=!0;return _.R(h,Object.assign({},E))})}};
pfW=function(h,E,g,Z,M,W,z){g=new Animation(new KeyframeEffect(h,[{transform:"translateY(0px)"},{transform:"translateY("+(W?MCu(E,g,Z,M):Z?-1:1)*z+"px)"}],W_W),document.timeline);E?(h.style.display="",g.onfinish=null):g.onfinish=function(){h.style.display="none"};
g.play();return g};
MCu=function(h,E,g,Z){var M=Number(h)+10;E?h?(h=Number(h),E=Number(E),g=g?E<h?M:M+10:E<h?M-10:M):g=g?30:0:g=h==="0"?M:g?M-10:M+10;return Z-g};
zDa=function(h){var E=Lcd(),g=Lcd();IAz(function(){E.value=h.numberText;g.value=h.numberValue},[h.numberText]);
var Z=h.fontSizeMultiplier?h.heightPx*h.fontSizeMultiplier:h.heightPx,M=UHV(function(){if(h.numberText){var z=h.numberText;var c=h.forceRollUp||!g.value||!h.numberValue||g.value<h.numberValue;var I=!!h.shouldAnimate,B=E.value,U=[],L=0,d=0,C=(B?B.replace(/\D/g,"").length:0)-(z?z.replace(/\D/g,"").length:0);B=B?B.split(/(\d)/).filter(Boolean):[];for(z=z.split(/(\d)/).filter(Boolean);C<0;){var q=z[d];U.push({character:q,rollUp:c,marginMultiplier:Z,shouldAnimate:I});d++;pZ(q)&&C++}for(;L<C;)q=B[L],U.push({previousCharacter:q,
rollUp:c,marginMultiplier:Z,shouldAnimate:I}),L++,pZ(q)||C++;for(;d<z.length;)C=z[d],q=B[L],pZ(C)===pZ(q)?(d++,L++):pZ(C)?(L++,C=void 0):pZ(q)&&(d++,q=void 0),U.push({character:C,previousCharacter:q,rollUp:c,marginMultiplier:Z,shouldAnimate:I});c=U}else c=[];return c},[h.numberText]),W=h.numberText?["height: "+Z+"px;",
"line-height: "+h.heightPx+"px;"].join(" "):"";return _.R("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:W,dir:"ltr","aria-hidden":"true"},M.map(function(z){return _.R(GLd,Object.assign({},z))}))};
aKq=function(h){switch(h){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
c_a=function(h,E){if(!h&&!E)return"medium";h=Math.max(h||0,E||0);return h>=256?"large":h>=96?"medium":"small"};
iGx=function(h){switch(h){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
ofZ=function(h){return new KeyframeEffect(h,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
IK$=function(h){return new KeyframeEffect(h,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.qi=function(h){var E=a9(function(g){g=g?Pm(g[0]):void 0;return _.Bm(h(g),void 0,"AwTxXe")},{isEqual:function(g,Z){return Pm(g[0])===Pm(Z[0])}});
return[function(){return E()[0]()},
function(g){return void E()[1](g)}]};
_.fO=function(h){return function(){var E="",g;for(g in h){for(var Z=h[g];typeof Z==="function";)Z=Z();Z!==void 0&&Z!==null&&(E+="; "+g+": "+Z)}return E.length>0?_.Hm(E.slice(2)):_.Hm()}};
RDx=function(h){switch(h){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"}};
PuW=function(h,E){if(E)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(h)switch(h){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
d4z=function(h,E,g,Z,M,W,z){var c=BVq(h),I=c.disabled,B=c.iconPosition,U=c.style,L=c.focused,d=function(){return!!w()&&B()==="icon-only"},C=function(){return!!w()&&B()==="icon-only-40"},q=function(){return!!w()&&B()==="icon-with-label"},w=function(){return!!E||!(Z==null||!Z())};
return{type:function(){return U()==="call-to-action-inverse"?"text":U()==="overlay-dark"&&h().type!=="filled"&&h().type!=="tonal"?"tonal":h().type},
shouldFocus:function(){return(L()||(W==null?void 0:W()))&&!I()},
hasIconLeading:function(){return!!w()&&B()==="leading"},
hasIconTrailing:function(){return!!w()&&B()==="trailing"},
hasIconLeadingTrailing:function(){return!!w()&&!!(g||M!=null&&M())&&B()==="leading-trailing"},
hasIconOnly:d,hasIconOnly40:C,hasIconWithLabel:q,iconButton:function(){return d()||C()||q()},
visiblyDisabled:function(){return(I()?"disabled":h().state)==="disabled"||I()},
overrideSmallSizeIcon:function(){return!h().ignoreIconSizeOverride&&U4O(h(),w())},
iconToRender:E?E:function(){return _.R(_.Ni,{icon:Z,size:function(){return L_N(h(),!0,h().ignoreIconSizeOverride)},
active:function(){return h().toggled},
iconFilter:function(){return jAZ(h())},
animateIcon:z})},
secondaryIconToRender:g?g:function(){return _.R(_.Ni,{icon:M,size:function(){return L_N(h(),!0,h().ignoreIconSizeOverride)},
active:function(){return h().toggled},
iconFilter:function(){return jAZ(h())}})}}};
BVq=function(h){return{size:function(){return h().size},
style:function(){return h().style},
focused:function(){return h().focused},
disabled:function(){return h().disabled},
onTap:function(E){var g,Z;return(Z=(g=h()).onTap)==null?void 0:Z.call(g,E)},
alignByText:function(){return h().alignByText},
aTagConfig:function(){return h().aTagConfig},
customColors:function(){return h().customColors},
segmentedPosition:function(){return h().segmentedPosition},
toggled:function(){return h().toggled},
toggleable:function(){return h().toggleable},
accessibilityLabel:function(){return h().accessibilityLabel},
onToggle:function(E){var g,Z;return(Z=(g=h()).onToggle)==null?void 0:Z.call(g,E)},
iconPosition:function(){return h().iconPosition},
oneOffCustomTextWrap:function(){return h().oneOffCustomTextWrap},
disableTextEllipsis:function(){return h().disableTextEllipsis},
disableBackdropFilter:function(){return h().disableBackdropFilter},
tooltipText:function(){return h().tooltipText},
ariaHidden:function(){return h().ariaHidden},
tabIndex:function(){return h().tabIndex},
buttonText:function(){return h().buttonText},
formattedButtonText:function(){return h().formattedButtonText},
animatedTextProps:function(){return h().animatedTextProps},
onClickRateLimitMs:function(){return h().onClickRateLimitMs}}};
U4O=function(h,E){E=(h.iconPosition==="icon-only"||h.iconPosition==="icon-only-40"||h.iconPosition==="icon-with-label")&&E;return!h.segmentedPosition&&E&&h.size==="S"};
L_N=function(h,E,g){switch(h.size){case "XS":return 16;case "S":return!g&&U4O(h,E)?24:16;default:return 24}};
Cu4=function(h){switch(h){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"}};
J_$=function(h){switch(h){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"}};
eDu=function(h){switch(h){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"}};
jAZ=function(h){if(h.style==="overlay-dark"&&h.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
t7=function(h){return h&&h.endsWith("px")?Number(h.slice(0,-2)):0};
NVz=function(h){var E=E===void 0?{}:E;h=_.G(_.qi(h));var g=h.next().value;return[function(Z){var M=_.Cw(function(){var c,I,B,U;return{text:(c=g())!=null?c:"",location:(I=E.location)!=null?I:"bottom",offset:(B=E.offset)!=null?B:16,delay:(U=E.delay)!=null?U:1}},void 0,"MgTrkc");
_.lX(function(){var c=M();Pm(function(){_.KP.addJob(function(){Sd.notify(Z,c)},4)})},"WlsgZc");
var W=function(){qg4(Z,M())},z=function(){fKN()};
Z.addEventListener("mouseenter",W);Z.addEventListener("focus",W);Z.addEventListener("mouseleave",z);Z.addEventListener("blur",z);Z.addEventListener("tap",z);_.r9(function(){Z.removeEventListener("mouseenter",W);Z.removeEventListener("mouseleave",z);Z.removeEventListener("focus",W);Z.removeEventListener("blur",z);Z.removeEventListener("tap",z);fKN()})},
h.next().value]};
Sg$=function(h,E){if(!Za){var g;zIN(function(){return g=eAa(h,E)});
return g}h.parent=tCz();return eAa(h,E)};
tCz=function(){var h=_.Wm(Za||void 0,dTO);return _.Jtx(h)?void 0:h};
xP=function(h,E){_.y1(h,Object.assign({},E,{forceClickLogging:!0}))};
wf$=function(h,E){var g=_.kB(h==null?void 0:h.onTap),Z={};g&&(Z.getClickedVisualElement=function(){var M;return x4x(h,g,E==null?void 0:(M=E.value)==null?void 0:M.visualElement)});
Z=_.F8({elementsCommand:h.onTap,forceNewState:!0,additionalCommandArgs:Z});return AW(Z)?Z:void 0};
D4M=function(h,E,g,Z){xP(h,Object.assign({},{form:{element:E,event:g}},Z))};
lK$=function(h,E,g,Z,M){var W=void 0;return function(z){var c=_.kB(g?h==null?void 0:h.onDisabledTap:h==null?void 0:h.onTap);if(c){var I;W=(I=W)!=null?I:E==null?void 0:E.value;if(c)if(_.J("web_button_vm_click_client_ve_killswitch"))D4M(c,W,z);else{var B;I=x4x(h,c,(B=W)==null?void 0:B.visualElement);if(M){D4M(c,M,z,{clickedVisualElement:I,form:{element:M}});return}D4M(c,W,z,{clickedVisualElement:I})}}Z&&Z(z)}};
x4x=function(h,E,g){E=E==null?void 0:E.clickTrackingParams;var Z,M;h=h==null?void 0:(Z=h.loggingDirectives)==null?void 0:(M=Z.clientVeSpec)==null?void 0:M.uiType;if(g&&h&&!E)return g};
r_x=function(h){switch(h){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"}};
m4a=function(h){switch(h){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"}};
vfd=function(h){switch(h){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"}};
HGd=function(h){switch(h){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"}};
$4N=function(h,E){return _.Jj(h.entities,"engagementToolbarStateEntityPayload",E)};
OGO=function(h){(h=_.rp(h))&&_.K_$(h)};
_.K_$=function(h){var E=_.sH();E&&_.hj(E,h)};
nfO=function(h,E,g){_.BX(h,"yt-open-popup-action",[E,g||h])};
XfZ=function(h,E){var g=_.$3(h,"endpoint"),Z=_.$3(h,"action");return(g=Z?Z:g)&&E&&(g=E.navigationEndpointPopupMap[g])&&(h=_.yy(g,h),(g=_.$3(h,"renderer"))&&E.supportedPopups.hasOwnProperty(g))?{openPopupAction:{popupType:E.popupTypeMap[g],popup:h}}:null};
Ygx=function(h,E,g,Z){if(Z){var M;g=g==null?void 0:(M=g.data)==null?void 0:M.contents;(M=g instanceof Array&&g.length?g[0]:g)&&(g=_.$3(M,"renderer"))&&Z.supportedPopups.hasOwnProperty(g)&&(E.stopPropagation(),nfO(h,{openPopupAction:{popupType:Z.popupTypeMap[g],popup:M}}))}};
kLW=function(h,E,g,Z){Z=Z===void 0?!1:Z;var M=sAz(E);if(M){M.href&&EB(M.href);var W=E.button;W=W!==void 0?W===0&&!wu(E):!wu(E);M.data&&W&&VC$(h,M,E,g,Z)}};
VC$=function(h,E,g,Z,M){M=M===void 0?!1:M;var W=_.cx("pbj_navigate_limit",-1)===0;y_$(E);_.GF().resolve(_.pl(kW));var z=E.data;if(Object.keys(z).length!==0)if(!_.J("unplugged_web_disable_actions_for_cec_endpoint")&&_.e(z,_.CZ))_.J("endpoint_behavior_command_executor_fix_killswitch")||(g.preventDefault(),g.stopPropagation()),_.jj(h,[z],h);else if(Z=XfZ(z,Z))z.loggingUrls&&z.loggingUrls.forEach(function(I){I.baseUrl&&_.At(I.baseUrl)}),g.preventDefault(),g.stopPropagation(),nfO(h,Z,E);
else{var c=F_q(0,E.data,g);if(h=E.getForm)h=h(),c.tempData=c.tempData||{},c.tempData=Object.assign({},c.tempData,h);h=_.Gw(g);if(Z=h.find(function(I){return!!I.visualElement}))c.createScreenConfig=c.createScreenConfig||{},c.createScreenConfig.clickedVisualElement=Z.visualElement;
if(!W)if(g.preventDefault(),g.stopPropagation(),_.e(z,_.A_$)&&!M&&_.eQ.instance)_.eQ.instance.resolveCommand(z,c);else if(_.J("kevlar_command_handler_formatted_string")&&!M&&_.eQ.instance&&TVz(z))M=h.find(function(I){return!!I.is})||g.target,g={form:Object.assign({},c,{event:g,
element:M,originatingNode:E})},_.eQ.instance.resolveCommand(z,g);else{z=_.Gw(g);g=[];for(M=0;M<z.length;M++)(W=z[M].is)&&g.push(W);KzW({parents:g.join(","),text:E.innerText},function(){_.Ra(E,"yt-navigate",c)})}}};
bGW=function(h){if(h=sAz(h))y_$(h),Yuz(h.href)};
sAz=function(h){h=_.Gw(h);for(var E,g=0;g<h.length;g++)if(E=h[g],E.tagName==="A"&&E.classList.contains("yt-simple-endpoint")){if(!E.data)break;return E}return null};
wu=function(h){return h.shiftKey||h.altKey||h.metaKey||h.ctrlKey};
usZ=function(h,E){var g={itct:E.clickTrackingParams};_.J("kevlar_client_side_screens")&&(!_.e(E,_.D9)||_.J("kevlar_exclude_endpoint_killswitch"))&&(g.endpoint=JSON.stringify(E));_.J("enable_unknown_lact_fix_on_html5")&&_.GF().resolve(_.pl(_.DC))&&(g.lact=_.zq());OH4(g);_.zG(h,g)};
y_$=function(h){h.href&&Object.keys(h.data).length!==0&&usZ(h.href,h.data)};
TVz=function(h){for(var E=_.G(QAq),g=E.next();!g.done;g=E.next())if(h[g.value])return!1;return!0};
_.hG4=function(h,E){return _.Jj(h.entities,"markersEngagementPanelSyncEntity",E)};
EI4=function(h,E){return _.Jj(h.entities,"playerStateEntity",E)};
gI$=function(h,E){return _.Jj(h.entities,"fantasyWinProbabilityEntity",E)};
Z_W=function(h,E){return _.Jj(h.entities,"fantasyTeamEntity",E)};
MW4=function(h,E){return _.Jj(h.entities,"fantasyPlayerEntity",E)};
WYz=function(h,E){return _.Jj(h.entities,"booleanEntity",E)};
pVV=function(h,E){return _.Jj(h.entities,"qrCodeEntity",E)};
G_$=function(h){return _.Jj(h.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
zGa=function(){if(lF)return lF;if(window.lottie)return lF=Promise.resolve(window.lottie);var h=_.OY(_.nF("LOTTIE_URL"));return h?lF=new Promise(function(E,g){var Z=document.createElement("script");Z.addEventListener("load",function(){E(lottie)});
Z.addEventListener("error",function(M){var W="Lottie library failed to load.";M?M.message&&(W+=" Original description: "+M.message,_.nI(M,W)):M=Error(W);_.O$(M);g(M)});
Z.setAttribute("async","");_.pX(Z,h);document.head.appendChild(Z)}):Promise.reject(Error("yh"))};
a34=function(){return lF?lF:zGa()};
cD4=function(h){if(h)switch(h){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.J("kevlar_use_wil_icons"))return h=(h=G_$(_.Gv().getState()))&&h.animationLightUrl&&h.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:h.animationLightUrl,pathDarkTheme:h.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,h?h:ru.get("LIKE");break;case "LIKE_DELHI_PLAYER":return ru.get("LIKE_DELHI_PLAYER")}};
i_u=function(h){var E=cD4(h);if(E)return E;switch(h){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return ru.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return ru.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return ru.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return ru.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return ru.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return ru.get("NOTIFICATION_BELL")}};
oIO=function(h,E){if(!h.closest)return!1;E=!!cD4(E);return _.nF("ID_TOKEN")&&E?!!h.closest("segmented-like-dislike-button-view-model")||!!h.closest("yt-player-quick-action-buttons"):!1};
RGq=function(h,E){if(!h||I3$)E=!1;else{var g;if(!(g=oIO(h,E)))if(h.closest)if(g=!_.nF("ID_TOKEN"),h=h.closest("ytd-subscription-notification-toggle-button-renderer-next"),g||!h)g=!1;else{var Z;g=((Z=h.data)==null?void 0:Z.targetId)==="notification-bell"&&E!=="EXPAND_MORE"}else g=!1;E=g}return E};
Phx=function(h){var E,g;return _.a(function(Z){switch(Z.nextAddress){case 1:return _.CX(Z,2),Z.yield(fetch(h),4);case 4:return E=Z.yieldResult,Z.yield(E.json(),5);case 5:return Z.return(Z.yieldResult);case 2:g=_.th(Z),_.O$(g),_.SK(Z)}})};
Bbz=function(h,E){var g,Z,M;return _.a(function(W){if(W.nextAddress==1)return(g=E?h.pathDarkTheme:h.path)?W.yield(Promise.all([Phx(g),zGa()]),2):W.return();Z=W.yieldResult;M=Z[0];mm.set(g,M);_.SK(W)})};
LY$=function(h,E,g,Z){function M(z,c){if(E.value===c&&!E.cancelled&&h!=null&&h.value){for(;h.value.firstChild;)h.value.removeChild(h.value.firstChild);h.value.classList.add("ytSpecIconShapeHost");z(h.value,Z)}}
var W=_.Upa(_.GF().resolve(_.JW),g);typeof W==="function"?(E.value=null,M(W,null)):(E.value=W,W.then(function(z){M(z,W)}))};
dpx=function(h,E){var g=document.createElement("div"),Z=_.rX(g,function(){return _.R(_.P,{cond:h,then:function(M){return _.R(j$O,{data:M,options:E})}})},"D");
return[g,Z]};
_.v$=function(h,E){if(E){var g={};Chz.forEach(function(Z){Z=JDq(E,Z,"--yt-lightsource-");Object.assign(g,Z)});
eGO.forEach(function(Z){Z=JDq(E,Z,"--yt-basic-");Object.assign(g,Z)});
_.Ja(h,g)}};
JDq=function(h,E,g){var Z={};Z[g+_.tQ(E)]=h&&h[E]?_.uU(h[E]):"";return Z};
_.$P=function(h,E,g){H$[h]||(H$[h]={});H$[h][E]=g};
_.KO=function(h){H$[h]||(H$[h]={});return H$[h]};
qFN=function(h){if(!h)return{};var E=h.foregroundTitleColor,g=h.backgroundColor;h=h.borderColor;var Z="text";h?Z="outline":g&&(Z="filled");return{type:Z,customColors:{color:E?_.uU(E):void 0,backgroundColor:g?_.uU(g):void 0,borderColor:h?_.uU(h):void 0}}};
xp4=function(h){var E=h.renderer;var g=h.element;var Z=h.commandController;var M=h.onTapCallback;var W=h.skipCommandHandling;var z=h.overrides;var c=h.forceIcon;var I=h.forceModernIconButton;var B=h.forceDisabled;var U=h.isSubscribe===void 0?!1:h.isSubscribe;var L=h.isPressed===void 0?!1:h.isPressed;var d=h.useButtonSize===void 0?!1:h.useButtonSize;h=f34(E);U&&(h.style="mono",h.type="filled");c=!E.icon||!c&&E.text?E.icon?E.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:I?"icon-only":"icon-only-40";c==="icon-only-40"&&(h.type="text");var C;I=Object;U=I.assign;d=Nbu(E,d);L=!!E.isSelected||!_.J("web_propagate_is_pressed_killswitch")&&!!L;var q=E.isSelected!==void 0;B=B===void 0?E.isDisabled:B;var w=E.text?_.X8(E.text):void 0;var r,v,H,u=((r=E.accessibilityData)==null?void 0:(v=r.accessibilityData)==null?void 0:v.label)||((H=E.accessibility)==null?void 0:H.label);r=u?u:_.Wp(E.text);g=tW4(E,g,Z,M,W);Z=SFz(E);Z!=null&&Z.length?(Z=_.F8({innertubeCommand:uvV(Z),
forceNewState:!0}),Z=AW(Z)?Z:void 0):Z=void 0;return U.call(I,{},h,d,{iconPosition:c},z,{focused:!1,toggled:L,toggleable:q,disabled:B,formattedButtonText:w,accessibilityLabel:r,onTap:g,aTagConfig:Z},qFN((C=E.colorData)==null?void 0:C.basicColorPaletteData),{oneOffCustomTextWrap:E.oneOffCustomTextWrap})};
tW4=function(h,E,g,Z,M){return function(W){var z=SFz(h);Z(z,W);if(!M){z=_.G(z);for(var c=z.next();!c.done;c=z.next())xP(c.value,{form:{element:E,event:W},commandController:g})}}};
SFz=function(h){var E=[];h.command&&E.push(h.command);h.serviceEndpoint&&E.push(h.serviceEndpoint);h.navigationEndpoint&&E.push(h.navigationEndpoint);return E};
Nbu=function(h,E){if(E)switch(h.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(h.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
f34=function(h){switch(h.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_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",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"}}};
wVa=function(h,E){return typeof h!=="object"||h===null?!1:Object.keys(E).every(function(g){return g in h})};
_.OL=function(h){return Object.fromEntries(Object.keys(h).map(function(E){return[E,E]}))};
Dpu=function(h,E,g){return Dlq(g,function(Z,M){return function(W){var z=_.VF.apply(1,arguments);return wVa(W,h)?M.apply(null,[W[E]].concat(_.$E(z))):M.apply(null,[W].concat(_.$E(z)))}})};
_.nO=function(h){return function(E,g){return Dpu(h,E,g)}};
_.XN=function(h){return h!=null&&h.watch?h.watch.isTheaterMode:!1};
_.YP=function(h){return h!=null&&h.watch?h.watch.isWatchFullscreen:!1};
_.sL=function(h){h=_.l3$(h);return _.J("web_watch_enable_single_column_grid_view")?h:!1};
_.l3$=function(h){return h.watch.isWatchNarrowWidth};
_.rDa=function(h){return h.watch.openEngagementPanels};
_.VQ=function(h){return _.Cw(function(){xz$()();return l5q(h)},{debugName:"d8B62c"},"DEXkhd")};
kP=function(h,E){return _.Jj(h.entities,"likeStatusEntity",E)};
mpx=function(h,E){return _.Jj(h.entities,"likeCountEntity",E)};
_.vIu=function(h,E){return _.Jj(h.entities,"stringEntity",E)};
H_q=function(h,E){return _.Jj(h.entities,"dataFreshnessEntity",E)};
$pO=function(h,E){if(!h)return!1;var g,Z=(g=_.e(h,_.ej))==null?void 0:g.signal;if(Z&&E.signalEndpointMap)return!!E.signalEndpointMap[Z];var M;if((g=(M=_.e(h,_.yQ))==null?void 0:M.request)&&E.continuationEndpointMap)return!!E.continuationEndpointMap[g];for(var W in h)if(E.commandEndpointMap[W])return!0;return!1};
KYO=function(h,E){if(E.streamingEndpointMap)for(var g in h)if(E.streamingEndpointMap[g]&&(h=E.streamingEndpointMap[g]))return h()};
O_$=function(h,E){var g,Z=(g=_.e(h,_.ej))==null?void 0:g.signal;if(Z&&E.signalEndpointMap&&(g=E.signalEndpointMap[Z]))return g();var M;if((g=(M=_.e(h,_.yQ))==null?void 0:M.request)&&E.continuationEndpointMap&&(M=E.continuationEndpointMap[g]))return M();for(var W in h)if(E.commandEndpointMap[W]&&(h=E.commandEndpointMap[W]))return h()};
nIq=function(h){var E={"Content-Type":"application/json"};_.nF("EOM_VISITOR_DATA")?E["X-Goog-EOM-Visitor-Id"]=_.nF("EOM_VISITOR_DATA"):_.nF("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=_.nF("VISITOR_DATA"));E["X-Youtube-Bootstrap-Logged-In"]=_.nF("LOGGED_IN",!1);_.nF("DEBUG_SETTINGS_METADATA")&&(E["X-Debug-Settings-Metadata"]=_.nF("DEBUG_SETTINGS_METADATA"));if(h!=="cors"){var g=_.nF("INNERTUBE_CONTEXT_CLIENT_NAME");g&&(E["X-Youtube-Client-Name"]=g);(g=_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(E["X-Youtube-Client-Version"]=
g);(g=_.nF("CHROME_CONNECTED_HEADER"))&&(E["X-Youtube-Chrome-Connected"]=g);(g=_.nF("DOMAIN_ADMIN_STATE"))&&(E["X-Youtube-Domain-Admin-State"]=g)}_.Xn("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(h=_.nF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=h):h!=="cors"&&_.Xn("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(h=_.nF("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=h);return E};
XVz=function(h,E){E.watchNextResponse||E.reelItemWatchResponse?E.watchNextResponse?h.content=E.watchNextResponse:h.content=E.reelItemWatchResponse:E.playerResponse?h.player=E.playerResponse:E.reelWatchSequenceResponse&&(h.reelSequence=E.reelWatchSequenceResponse)};
_.FN=function(h){if(!h)return null;for(var E=[],g=0;g<h.textSegments.length;g++){var Z=h.textSegments[g];Z.text?E.push(Z):Z.emojiId&&E.push({emoji_id:Z.emojiId})}return{text_segments:E}};
yDd=function(h,E,g,Z,M,W,z){W=W===void 0?[]:W;var c=new _.A7;c.endpoint=g;if(!g)return _.KI(new _.xX("handle undefined endpoint",E.tagName)),c;var I=Fz$(g);I.length&&(_.jj(h,I,E,Z),c.actions=I);g.loggingUrls&&g.loggingUrls.forEach(function(U){U.baseUrl&&Tn(U.baseUrl,U.attributionSrcMode)});
I=!_.J("web_skip_impression_click_killswitch")&&Z&&Z.impression;if(g.clickTrackingParams&&!YFq(g)&&!s$$(E)&&!I&&(I=_.SQ(),!_.TT(I,E))){var B=E.getScreenLayer&&E.getScreenLayer();B?I.clickCommand(g,null,B):I.clickCommand(g,null)}I=!1;for(B=0;B<W.length;B++)if((0,W[B])(E,g,Z)){I=!0;break}!I&&VWO(g)&&(c.ajaxPromise=k_M(h,E,g,Z,M,z));return c};
s$$=function(h){var E;return(h=(E=h.data)==null?void 0:E.navigationEndpoint)&&!!h.clickTrackingParams};
YFq=function(h){var E=_.e(h,_.ej);if(E&&(E=E.signal)&&FYW.indexOf(E)>=0)return!0;for(var g in h)if(ADW.indexOf(g)>=0)return!0;return!1};
VWO=function(h){var E;if(((E=_.e(h,_.ej))==null?void 0:E.signal)==="CLIENT_SIGNAL")return!1;for(var g in h)if(TbN.indexOf(g)>=0)return!1;h=Object.keys(h);return h.length===1&&h[0]==="loggingUrls"?!1:!0};
MkV=function(h,E,g,Z,M,W,z){var c=_.bF.instance;if(c&&_.uF(c,Z))var I=_.QQ(c,Z,M).then(function(U){return(U==null?0:U.data)?U:{data:U}});
else I=h.requestDataForServiceEndpoint(Z,M),_.e(Z,b_W)||_.e(Z,urx)||_.e(Z,_.Q$$)||_.e(Z,h6O)||_.O$(new _.xX("No RequestBuilder for endpoint",Z));var B=_.hU();B.promise.thenCatch(function(){var U=_.$3(Z,"action")||_.$3(Z,"command")||_.$3(Z,"endpoint");U&&(U=Z[U],U.hasOwnProperty("onFailureAction")?_.jj(E,[U.onFailureAction],g):U.hasOwnProperty("onFailureCommand")&&_.jj(E,U.onFailureCommand,g));I.cancel("Resolver promise rejected")});
I.then(function(U){if(U){var L=U.error;if(L){if(W&&W.onServerError)W.onServerError(Z,U);B.reject(new _.xX("Response error",Z,L))}else if(U=U.data)if(L=U.error){if(W&&W.onServerError)W.onServerError(Z,U);B.reject(new _.xX("Returned error",Z,L))}else{EOz(E,g,U,Z);gOW(U);if(L=yUu(U))for(var d=_.G(L),C=d.next();!C.done;C=d.next()){C=C.value;var q=_.GF().resolve(_.pl(ZTq))||Ez;if(!_.bF.instance||!q.some(function(r){return!!_.e(Z,r)})||_.J("kevlar_response_processor_allowlist_killswitch")){var w=q=void 0;
((w=_.e((q=C)==null?void 0:q.commandMetadata,_.qH))==null?0:w.sendPost)?_.LZ(E,[C]):_.jj(E,[C],g)}}(d=_.e(U==null?void 0:U.frameworkUpdates,g5))&&z&&z(d);if(W&&W.onSuccess)W.onSuccess(Z,U);B.resolve(new _.Zd(U,L))}}else B.reject(new _.xX("Invalid service endpoint provided",Z))},function(U){B.reject(U)});
return B.promise};
gOW=function(h){var E;(h=(E=_.e(h==null?void 0:h.onResponseReceivedCommand,_.WNq))==null?void 0:E.continuationItems)&&(h==null?void 0:h.length)===1&&_.e(h[0],p9O)&&_.s7("so_r",void 0,"search_overview_answer")};
k_M=function(h,E,g,Z,M,W){var z;return(z=E.getNetworkManager&&E.getNetworkManager()?E.getNetworkManager():_.GF().resolve(_.pl(_.kY)))?MkV(z,h,E,g,Z,M,W):_.$B("No network manager.")};
EOz=function(h,E,g,Z){if(g=g.trackingParams||g.loggingDirectives&&g.loggingDirectives.trackingParams){var M;(_.e(Z,G2z)||_.e(Z,z64)||_.e(Z,aez))&&Z.clickTrackingParams?M=_.rp(Z.clickTrackingParams):_.J("web_graft_to_parent_command")&&Z.clickTrackingParams&&(M=_.rp(Z.clickTrackingParams));var W;Z=(W=E.getScreenLayer)==null?void 0:W.call(E);E=_.SQ().graftServerVe(g,M,Z);_.U7(h,"yt-store-grafted-ve-action",[E])}};
_.cRu=function(h){var E=new Image;return new _.jM(function(g,Z){E.addEventListener("load",function(){g()});
E.addEventListener("error",function(){Z()});
E.src=h})};
iTO=function(h){return!!h};
oOO=function(h){return!!h};
Ie4=function(h,E,g){var Z=h.rowIndex;Z!==void 0&&_.U7(h.hostElement,"yt-section-reactive-dismissal",[Z,E,g])};
_.MI=function(h,E,g){h=_.G(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(Z===E)break;for(var M=_.G(g),W=M.next();!W.done;W=M.next())if(W=W.value,Z.tagName===W||!_.J("web_event_button_role_check_killswitch")&&Z.role==="button"&&W==="BUTTON")return!0}return!1};
_.W3=function(h,E,g){h=_.G(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(Z===E)break;for(var M=_.G(g),W=M.next();!W.done;W=M.next())if(Z.id===W.value)return!0}return!1};
_.zD=function(){var h=_.GF().resolve(_.pl(_.p4));return h?(h=h.getCurrentPage())?_.GD(h):null:null};
_.aJ=function(){var h=_.zD();if(!h){var E=_.GF().resolve(_.pl(_.p4)),g=E?typeof E:"no page manager";E=E?E.getCurrentPage():null;g=new _.xX("Player is missing when requested.",g,E?E.tagName:"no page");_.$W(g)}return h};
_.GD=function(h){return h&&h.getPlayer?h.getPlayer():null};
R6O=function(h,E){h={args:{raw_player_response:h}};E&&(h.args=Object.assign({},h.args,E));return h};
P84=function(h){if(h.args){if(h.args.raw_player_response)return h.args.raw_player_response;if(h.args.player_response)return JSON.parse(h.args.player_response)}};
_.Bn$=function(h,E){var g={url:"/watch?v="+h.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};h.playlistId&&(g.url+="&list="+h.playlistId);h.playerParams&&(g.url+="&pp="+h.playerParams);h={watchEndpoint:h,commandMetadata:{webCommandMetadata:g}};E&&(h.clickTrackingParams=E);return h};
LNW=function(){return Ufa||!!_.yy("yt.player.Application")};
df$=function(){return jEd||!!document.querySelector("link#player-css")};
JRz=function(){function h(){Ufa=!0;C8u.resolve()}
var E,g;return _.a(function(Z){C8u||(C8u=new _.dN,LNW()?h():(E=document.createElement("script"),E.addEventListener("load",h),g=_.rO(_.nF("PLAYER_JS_URL")),_.pX(E,g),document.head.appendChild(E)));return Z.return(C8u.promise)})};
qxz=function(){function h(){jEd=!0;e6N.resolve()}
if(!e6N)if(e6N=new _.dN,df$())h();else{var E=document.createElement("link");E.id="player-css";E.addEventListener("load",h);var g=_.rO(_.nF("PLAYER_CSS_URL"));_.aH(E,g,"stylesheet");document.head.appendChild(E)}return e6N.promise};
feu=function(){return LNW()&&df$()?Promise.resolve([]):Promise.all([JRz(),qxz()])};
NnM=function(h,E,g){var Z={args:{}};h&&(Z.args.raw_player_response=h);E&&(Z.args.raw_watch_next_response=E);g&&(Z.args=Object.assign({},Z.args,g));return Z};
w9x=function(h,E,g){var Z=!1;Z=Z===void 0?!0:Z;h=typeof h==="string"?_.c3(document,h):h;var M=tkz+"_"+_.AM(h),W=SxN[M];if(W&&Z)return xfZ(E,g)?W.api.loadVideoByPlayerVars(E.args||null):W.loadNewVideoConfig(E),W.api;W=new iv(h,M,E,g,void 0);SxN[M]=W;W.addOnDisposeCallback(function(){delete SxN[W.getId()]});
return W.api};
xfZ=function(h,E){return E&&E.serializedExperimentFlags?E.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):h&&h.args&&h.args.fflags?h.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
DfZ=function(){var h=new _.dN;h.resolved=!1;var E=h.resolve;h.resolve=function(g){h.resolved=!0;E(g)};
return h};
rRM=function(h){var E={};leZ().install((E.document_disposed={callback:h},E))};
oJ=function(h,E){if(!h&&Math.random()<=_.cx("kevlar_unified_player_logging_threshold")){h=Error("Ah`"+(E?E:"Unspecified error"));if(_.J("kevlar_unified_player_throw_errors"))throw h;_.O$(h)}};
_.mfZ=function(){var h=_.yy("ytDebugData.callbacks");h||(h={},_.Wu("ytDebugData.callbacks",h));return h};
HTa=function(h,E){var g=_.mfZ();if(_.J("web_dd_iu")||vO$.includes(h))g[h]=E};
$fM=function(){return _.a(function(h){return h.return({isLeader:_.BWx(_.Gv().getState()),c:_.nF("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
KNd=function(){var h;_.a(function(E){if(E.nextAddress==1)return HTa("APP_STATE",$fM),E.yield(_.GF().resolve(_.IJ),2);h=E.yieldResult;HTa("PI",function(){return _.a(function(g){return g.return(h.getVideoStats())})});
_.SK(E)})};
OTu=function(h){var E=_.GG(_.QE(_.MN.location.href));h=_.GG(_.QE(h));return _.J("kevlar_clear_non_displayable_url_params")?E==RJ(h):RJ(E)==RJ(h)};
RJ=function(h){var E=_.nOV(h);h=h.slice(0);var g=["frags"];_.J("kevlar_hide_pp_url_param")&&g.push("pp");_.J("kevlar_hide_time_continue_url_param")&&g.push("time_continue");g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next())Z=Z.value,h=_.aa(_.GG(h),Z);return _.GG(h)+(E?"#"+E:"")};
P3=function(h,E){E=Number(E)*1E3;var g=Math.round((0,_.zn)()),Z=g.toString();h={innertubeResponse:h,serverDateTimestampMs:Z,lastModifiedTimestampMs:Z,expireTimestampMs:(g+E).toString()};if(E=_.nF("INNERTUBE_CONTEXT_CLIENT_NAME"))h.clientName=E;return h};
Yx$=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++X9q};
sEa=function(h){return!isNaN(h)&&h>0};
k24=function(){_.J("web_adaptive_repeat_ase")&&Vk4&&_.vT("applicationStarted",Vk4)};
_.yRz=function(){var h=_.YN(),E=_.sH();E&&h&&_.gZ(E,[h],!0)};
ARV=function(h){return h&&FNO.some(function(E){return h.includes(E)})};
E0z=function(h){var E=_.e(h,_.yX);if(!E)return!1;var g=E.url,Z=E.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!g)return _.$W(Error("Fh")),!1;if(E.target==="TARGET_NEW_WINDOW"){E={};_.J("resolve_url_parent_tracking_params")&&(!_.gf(g)||ZV(window.location.href,g))&&(E={endpoint:h,itct:h.clickTrackingParams});OH4(E);h=null;try{if(Z){a:{var M=g,W=E;Z=Z===void 0?!1:Z;W&&_.zG(M,W);var z=_.Yr(M),c=_.$r(z);M!=c&&_.Fn(Error("hg`"+M));M=c;try{if(Z){c=M;c=xBz(c);EB(c);h=_.EZ(window,c,"_blank",
"attributionsrc");break a}}catch(d){_.Vy(d)}EB(M);h=_.EZ(window,z,"_blank")}TnN(_.GF().resolve(bT4),h,g);return!0}}catch(d){_.$W(d)}_.zG(g,E);E={target:"_blank",noopener:!1};z=window;c=Hi(g)?g:_.Yr(typeof g.href!="undefined"?g.href:String(g));Z=self.crossOriginIsolated!==void 0;h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);M=E.noreferrer;if(Z&&M&&h==="unsafe-url")throw Error("ve");h=M&&!Z;M=E.target||g.target;W=[];var I=[],B=!1;for(L in E){var U=E[L];switch(L){case "width":case "height":case "top":case "left":W.push(L+
"="+U);break;case "target":break;case "noopener":case "noreferrer":U?I.push(L):(B=!0,I.push(L+"=false"));break;case "attributionsrc":W.push(L+(U?"="+U:""));break;default:W.push(L+"="+(U?1:0))}}var L=M!==void 0&&!["_blank","_self","_top","_parent",""].includes(M);L=Sq()&&L;uBM&&Z&&W.length===0&&I.length>0&&!L&&!B?(I.length===2&&(I=["noreferrer"]),_.EZ(z,c,M,I[0]),h=QE4()):(L=W.join(","),_.Dz()&&z.navigator&&z.navigator.standalone&&M&&M!="_self"?(L=_.q3("A"),yF(L,c),L.target=M,h&&(L.rel="noreferrer"),
((E=E.attributionsrc)||E==="")&&L.setAttribute("attributionsrc",E),E=document.createEvent("MouseEvent"),E.initMouseEvent("click",!0,!0,z,1),L.dispatchEvent(E),L=QE4()):h?(L=_.EZ(z,"",M,L),z=_.$r(c),L&&(L.opener=null,z===""&&(z="javascript:''"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+B3(z)+'">',z=AL(z),(E=L.document)&&E.write&&(E.write(ux(z)),E.close()))):((L=_.EZ(z,c,M,L))&&E.noopener&&(L.opener=null),L&&E.noreferrer&&(L.opener=null)),h=L);TnN(_.GF().resolve(bT4),
h,g);return!0}L=_.jy(g);L=ARV(L)||g==="https://studio.youtube.com/";if(_.gf(g)&&!ZV(window.location.href,g)||L)EB(g),O7(),_.gD(g,void 0,void 0,window.top,hdz);else return _.O$(new _.xX("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",h)),!1;return!0};
_.M0z=function(h,E){E=E===void 0?0:E;if(!(_.e(h,g0z)||_.e(h,Zs$)||_.e(h,_.yX)&&_.e(h,_.yX).url))return!1;var g,Z=(g=_.e(h,_.yX))==null?void 0:g.url;g=Z?{externalLinkData:{url:Z}}:null;return _.SQ().clickCommand(h,g,E)};
W7q=function(h,E){return _.Jj(h.entities,"subscriptionStateEntity",E)};
pDx=function(h,E){return _.Jj(h.entities,"subscriptionNotificationStateEntity",E)};
GIW=function(h,E){return _.Jj(h.entities,"upcomingEventReminderStateEntity",E)};
zdq=function(h,E){return _.Jj(h.entities,"engagementToolbarSurfaceEntityPayload",E)};
am$=function(h,E){return _.Jj(h.entities,"triStateButtonStateEntityPayload",E)};
ciq=function(h,E){return _.Jj(h.entities,"commerceCartCheckoutButtonEntity",E)};
_.isa=function(h,E){return _.Jj(h.entities,"playlistLoopStateEntity",E)};
o0M=function(h,E){return _.Jj(h.entities,"commandEntity",E)};
Rdu=function(h,E,g,Z,M){M=M===void 0?{}:M;return function(W){var z,c;var I=((z=h.loggingDirectives)==null?0:(c=z.clientVeSpec)==null?0:c.uiType)?_.Uz(h.loggingDirectives.clientVeSpec.uiType):void 0;M.clickedVisualElement||(M.clickedVisualElement=I);I=ImN(h,E);g(I,W);I=_.G(I);for(z=I.next();!z.done;z=I.next()){z=z.value;c=Z;var B=W,U=M;U.form?U.form.event=B:U.form={element:c,event:B};xP(z,U)}}};
ImN=function(h,E){var g=[];E?(h.toggledCommand&&g.push(h.toggledCommand),h.toggledServiceEndpoint&&g.push(h.toggledServiceEndpoint)):(h.defaultCommand&&g.push(h.defaultCommand),h.defaultServiceEndpoint&&g.push(h.defaultServiceEndpoint),h.defaultNavigationEndpoint&&g.push(h.defaultNavigationEndpoint));return g};
Piz=function(h,E){var g=h.toggledStyle||h.style,Z;switch((Z=E?g:h.style)==null?void 0:Z.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"}}};
_.L4=function(){return _.a(function(h){return h.nextAddress==1?h.yield(_.GF().resolve(_.IJ),2):h.return(_.GF().resolve(Bmx)())})};
_.jv=function(){return _.GF().resolve(Bmx)()};
_.d5=function(){return HJ(function(){return{lottieEl:void 0}})};
UD$=function(h,E){return h.startsWith(E.uniqueId)};
L7M=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.L4(),2);E=Z.yieldResult;if((g=E)==null||!g.addEventListener)return C4(),Z.return();E.addEventListener("onCueRangeEnter",h);_.SK(Z)})};
jld=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.L4(),2);E=Z.yieldResult;if((g=E)==null||!g.removeEventListener)return C4(),Z.return();E.removeEventListener("onCueRangeEnter",h);_.SK(Z)})};
dDu=function(h){var E,g,Z,M,W;_.a(function(z){if(z.nextAddress==1)return z.yield(_.L4(),2);E=z.yieldResult;if((g=E)==null||!g.addCueRange)return C4(),z.return();Z=_.G(h.timings);for(M=Z.next();!M.done;M=Z.next())W=M.value,E.addCueRange(h.uniqueId+"-"+W,W/1E3,(W+100)/1E3);_.SK(z)})};
Ciu=function(h){var E,g,Z,M,W;_.a(function(z){if(z.nextAddress==1)return z.yield(_.L4(),2);E=z.yieldResult;if((g=E)==null||!g.removeCueRange)return C4(),z.return();Z=_.G(h.timings);for(M=Z.next();!M.done;M=Z.next())W=M.value,E.removeCueRange(h.uniqueId+"-"+W);_.SK(z)})};
Jia=function(){var h,E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.L4(),2);h=Z.yieldResult;if((E=h)==null||!E.getPlayerState)return C4(),Z.return();g=h.getPlayerState();return Z.return(g===2)})};
C4=function(){_.O$(new _.xX("Smartimation player does not exist or is corrupted"))};
edZ=function(){try{var h;return(h=window.CSS)!=null&&h.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(E){return _.O$(new _.xX("Smartimation CSS.supports threw an error")),!1}};
wDN=function(h,E,g,Z,M){var W=h.playlistId?qI4:fmO;E=E();g=g();M=!!h.videoId&&M()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.D$(E))return Nmd({data:h,actionType:W,disabled:M},g);if(h.videoId&&Z())return t0Z({data:h,actionType:W,disabled:M});switch(E){case "TRANSFER_STATE_UNKNOWN":return t0Z({data:h,actionType:W,disabled:M});case "TRANSFER_STATE_FAILED":return h.videoId?SIa({data:h,actionType:W,disabled:M}):xDa({data:h,actionType:W,disabled:M});case "TRANSFER_STATE_COMPLETE":return xDa({data:h,
actionType:W,disabled:M});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Nmd({data:h,actionType:W,disabled:M},g);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return h.videoId?SIa({data:h,actionType:W,disabled:M}):t0Z({data:h,actionType:W,disabled:M});default:return t0Z({data:h,actionType:W,disabled:M})}};
DDa=function(h,E){var g=h.onTapCommand,Z=_.kB(g);if(h.videoId&&_.e(Z,_.JU))return _.e(Z,_.JU).action=E,g;h.playlistId&&_.e(Z,_.ev)&&(_.e(Z,_.ev).action=E);return g};
t0Z=function(h){var E=h.data;var g=h.actionType;h=h.disabled;return{text:lmq,iconType:"OFFLINE_DOWNLOAD",onTap:DDa(E,g.ACTION_ADD),disabled:h}};
Nmd=function(h,E){var g=h.data;var Z=h.actionType;h=h.disabled;var M="OFFLINE_DOWNLOAD";E>=0&&E<=.1?M="OFFLINE_DOWNLOADING_ZERO":E>.1&&E<=.3?M="OFFLINE_DOWNLOADING_TWENTY":E>.3&&E<=.5?M="OFFLINE_DOWNLOADING_FORTY":E>.5&&E<=.7?M="OFFLINE_DOWNLOADING_SIXTY":E>.7&&E<1?M="OFFLINE_DOWNLOADING_EIGHTY":E===1&&(M="OFFLINE_PIN");return{text:riu,iconType:M,onTap:DDa(g,Z.ACTION_REMOVE_WITH_PROMPT),disabled:h}};
xDa=function(h){var E=h.data;var g=h.actionType;h=h.disabled;return{text:mDz,iconType:"OFFLINE_PIN",onTap:DDa(E,g.ACTION_REMOVE_WITH_PROMPT),disabled:h}};
SIa=function(h){var E=h.data;var g=h.actionType;h=h.disabled;return{text:v0z,iconType:"OFFLINE_DOWNLOAD",onTap:DDa(E,g.ACTION_RETRY),disabled:h}};
_.qI=function(h,E){var g=xz$();return _.Cw(function(){g();return l5q(h,[_.Hm(E)||""])},{debugName:"LUZslf"},"Z105t")};
Hsz=function(h){var E=_.qI(_.y7,function(){return h().videoId}),g=_.qI(_.FM,function(){return h().playlistId});
return function(){return h().videoId?E:h().playlistId?g:_.G(_.Bm("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
$Dz=function(h){var E=_.qI(Aj,function(){return h().videoId}),g=_.qI(_.Pc$,function(){return h().playlistId});
return function(){return h().videoId?E:h().playlistId?g:_.G(_.Bm(0,void 0,"K4tgOc")).next().value}};
K7N=function(h){var E=_.qI(_.qk$,function(){return h().videoId});
return function(){return h().videoId?E:_.G(_.Bm(!1,void 0,"Oaxwcf")).next().value}};
OsM=function(h){var E=_.qI(Luz,function(){return h().videoId});
return function(){return h().videoId?E:_.G(_.Bm("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
n0O=function(){return{}};
_.kId=function(h,E,g){return{submitForm:function(){var Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){Z=XDN(h());if(!Z)return c.return();if(Z.onSubmit)return YIz(E),Z.onSubmit(),YIz(g),c.return();if(!Z.submitConfig||!Z.formData)return c.jumpTo(0);Z.disableDuringSubmission&&sl$(h(),!0);YIz(E);return c.yield(V0q(Z.submitConfig,Z.formData()),3)}M=c.yieldResult;YIz(g);if(((W=M)==null?0:W.submitResult)&&((z=Z)==null?0:z.onSubmitResult))Z.onSubmitResult(M.submitResult);Z.disableDuringSubmission&&sl$(h(),
!1);return c.return()})},
isValid:function(){var Z=XDN(h());if(Z){var M;return!((M=Z.isValid)==null||!M.call(Z))}return!0},
isSubmitting:function(){var Z,M;return!!((Z=XDN(h()))==null?0:(M=Z.isSubmitting)==null?0:M.call(Z))}}};
_.NI=function(){if(!yid){var h=_.G(_.Bm(new Map,void 0,"Y1XnBc"));yid=h.next().value;F7N=h.next().value}return yid};
_.Ai$=function(h){F7N(new Map(h))};
XDN=function(h){if(h)return _.NI()().get(h)};
V0q=function(h,E){var g;return _.a(function(Z){return Z.nextAddress==1?E?(g=_.GF().resolve(_.pl(Tm$)))&&h.submitId?Z.yield(g.submitForm(h.submitId,E,bsd,h.params,h.clickTrackingParams),2):Z.return(Promise.reject(Error("Hh"))):Z.return(Promise.reject(Error("Gh"))):Z.return(Z.yieldResult)})};
sl$=function(h,E){if(h){var g=_.NI();g().set(h,Object.assign({},g().get(h),{isSubmitting:function(){return E}}));
_.Ai$(g())}};
YIz=function(h){if(h){var E=_.GF().resolve(_.zF);E&&(h=_.kB(h()))&&E.resolveCommand(h)}};
Ql4=function(h,E){E=E===void 0?{shouldPersist:!0}:E;return{useUpdatableData:function(g,Z){var M=[],W=_.G(_.qi(function(){var B=g();if(Z!=null&&Z.length&&M){var U=M.length>0;for(var L=!1,d=0;d<Z.length;d++){var C=Z[d]();U&&C!==M[d]&&(L=!0);M[d]=C}U=L}else U=!1;if(U)_.tU.remove(I());else if(U=_.tU.get(I()))return U;return B})),z=W.next().value,c=W.next().value,I=_.Cw(function(){return h(g())},void 0,"mX326");
_.lX(function(){if(I()!=null){uwV.set(I(),[z,c]);var B=I();_.r9(function(){uwV.delete(B)})}},"MgKPjb");
return[z,function(B){c(B);E.shouldPersist&&_.tU.set(I(),B)}]},
getData:function(g){var Z;return(Z=uwV.get(h(g)))==null?void 0:Z[0]()},
updateData:function(g,Z){g=h(g);var M=uwV.get(g);if(!M)return!1;var W=_.G(M);M=W.next().value;W=W.next().value;Z=Z(M());W(Z);E.shouldPersist&&_.tU.set(g,Z);return!0}}};
hBZ=function(h){var E=_.G(_.Bm(!0,void 0,"bKtO6d")),g=E.next().value;E.next();return function(){var Z=Jx(h.children());return _.R(_.P,{cond:g,then:function(){return Z},
else:h.fallback})}()};
_.Sv=function(h){var E=Etx(h),g=E.data,Z=E.mapping,M=E.wrapper;E=E.pendingFallback;var W=function(){return gtx(_.Hm(g))},z=function(){var c=W(),I=[];
c=_.G(c);for(var B=c.next();!B.done;B=c.next()){var U=void 0;B=B.value;var L=void 0;for(U in B)if(!(!B).hasOwnProperty(U)){L=U;break}(U=L)&&I.push(U)}return I};
return h.data?_.R(hBZ,{fallback:E},function(){return _.R(_.SX,{each:z},function(c,I){var B=M?function(L){return M(function(){return Z[c](L,I)},U,I)}:function(L){return Z[c](L,I)};
B.debugName||(B.debugName=String(c));if(!Z[String(c)])return document.createComment("");B.componentType!==SA&&Zku(String(c));var U=MSV(W,c,I);return _.R(B,{data:U})})}):_.R(_.zt,null)};
Etx=function(h){var E=h.targetId||W5z(h.children);if(!h.data||!E||_.J("mweb_new_replaceables_killswitch"))return Object.assign({},h,{mapping:h.children,wrapper:void 0});var g="stamper-"+pLx++,Z=function(){var c;return(c=typeof h.targetId==="function"?h.targetId(g):h.targetId)!=null?c:g};
E=_.G(Gaq(function(){var c=gtx(h.data());c.targetId=Z;return c})).next().value;
var M=Object.assign({},(_.GF().resolve(_.pl(zBd))||{}).replaceableMapping,h.children);if(h.replacementWrapper){var W=M.notificationTextRenderer,z=M.notificationMultiActionRenderer;W&&(M.notificationTextRenderer=function(c,I){return h.replacementWrapper(W({data:c.data},I))});
z&&(M.notificationMultiActionRenderer=function(c,I){return h.replacementWrapper(z({data:c.data},I))})}return Object.assign({},h,{data:E,
mapping:M,wrapper:function(c,I,B){return Sg$({targetId:Z,stamperIndex:B},c)}})};
MSV=function(h,E,g){var Z;return _.Cw(function(){var M=h()[g()];if(M)Z=M[E];else return _.O$(new _.xX("Stamper failed to find "+String(E)+" at index "+g()+" of data array of length "+(h().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),Z;return M[E]},void 0,"wgRPHd")};
W5z=function(h){h=_.G(Object.keys(h));for(var E=h.next();!E.done;E=h.next())if(E=E.value,a1q.includes(E)||cpd.includes(E)||ika.includes(E))return!0;return!1};
gtx=function(h){return h?Array.isArray(h)?h:[h]:[]};
Zku=function(h){if(_.J("web_enable_renderer_logger")){var E;(E=_.GF().resolve(_.pl(otd)))!=null&&E.loggingEnabled&&!E.ids.has(h)&&E.ids.add(h)}};
I1M=function(){var h,E;return(E=(h=_.GF().resolve(_.pl(_.gu)))==null?void 0:h())!=null?E:!1};
PAV=function(h,E){h=h===void 0?RBu:h;switch(E.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},h,{isOpen:E.payload});default:return h}};
UVW=function(h,E){h=h===void 0?BRN:h;switch(E.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},h,{isAllowed:E.payload});default:return h}};
jPW=function(h,E){h=h===void 0?L5Z:h;switch(E.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},h,{errorMessage:E.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},h,{title:E.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},h,{privacy:E.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},h,{isDisabled:E.payload});default:return h}};
CAu=function(h,E){h=h===void 0?dVZ:h;switch(E.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},h,{isOpen:E.payload});default:return h}};
eBd=function(h,E){h=h===void 0?Jpq:h;switch(E.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},h,{isFullscreen:E.payload});case "SET_NAVIGATION_BUTTON":var g=E.payload.targetId,Z=Object.assign({},h.navigationButtons);Z[g]=E.payload.button;return Object.assign({},h,{navigationButtons:Z});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},h,{topPanelId:E.payload});case "SET_SECONDARY_HEADER":return g=E.payload.panelId,Z=Object.assign({},h.secondaryHeader),Z[g]=E.payload.secondaryHeader,
Object.assign({},h,{secondaryHeader:Z});default:return h}};
tS$=function(){return fQ(Object.assign({},{voiceSearch:UJN,engagementPanel:eBd,bottomSheet:PAV,cinematicSetting:UVW,shorts:gKd,drawerLayout:CAu,createPlaylist:jPW,locationCollection:qdW,reportChannel:f1Z,reportForm:NRz},ZJN))};
Sd$=function(h,E){_.KP.addLowPriorityJob(function(){var g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return _.CX(W,2),W.yield(zGa(),4);case 4:return W.yield(fetch(h),5);case 5:return g=W.yieldResult,W.yield(g.json(),6);case 6:Z=W.yieldResult;mm.set(h,Z);requestAnimationFrame(function(){E(Z)});
_.bN(W,0);break;case 2:M=_.th(W),_.O$(M),_.SK(W)}})})};
xVM=function(h){var E={animationConfig:{},listeners:{}},g=function(){h(!0)};
E.listeners.data_failed=g;E.listeners.error=g;E.listeners.data_ready=function(){h(!1)};
return E};
l1$=function(h){var E=h.model;var g=h.subscribed;var Z=h.isOverlay;var M=h.element;var W=h.commandController;var z=h.notificationState;if(g){var c,I;var B=(E==null?void 0:(c=E.buttonStyle)==null?void 0:c.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:E==null?void 0:(I=E.unsubscribeButtonContent)==null?void 0:I.buttonText}else{var U;B=E==null?void 0:(U=E.subscribeButtonContent)==null?void 0:U.buttonText}a:{var L;switch(E==null?void 0:(L=E.buttonStyle)==
null?void 0:L.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":c="S";break a;default:c="M"}}a:if(Z)Z="overlay";else switch(E.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":Z="overlay";break a;default:Z="mono"}a:if(g)var d="tonal";else switch((d=E.buttonStyle)==
null?void 0:d.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":d="tonal";break a;default:d="filled"}return{style:Z,type:d,state:E.disableSubscribeButton?"disabled":"active",size:c,focused:h.focused,toggled:g,accessibilityLabel:wLq(E,g,z),buttonText:B,iconPosition:E.disableNotificationBell?"none":"leading-trailing",onTap:DVN(E,g,M,W),disableTextEllipsis:!!h.disableTextEllipsis}};
DVN=function(h,E,g,Z){return function(M){if(E){var W;var z=h.disableNotificationBell?_.kB(h==null?void 0:(W=h.unsubscribeButtonContent)==null?void 0:W.onTapCommand):_.kB(h==null?void 0:h.onShowSubscriptionOptions)}else{var c;z=_.kB(h==null?void 0:(c=h.subscribeButtonContent)==null?void 0:c.onTapCommand)}z&&xP(z,{form:{element:g==null?void 0:g.value},commandController:Z});M.stopPropagation()}};
wLq=function(h,E,g){if(E){if(h==null?0:h.disableNotificationBell){var Z;return h==null?void 0:(Z=h.unsubscribeButtonContent)==null?void 0:Z.accessibilityText}switch(g){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var M;return h==null?void 0:(M=h.bellAccessibilityData)==null?void 0:M.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var W;return h==null?void 0:(W=h.bellAccessibilityData)==null?void 0:W.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var z;return h==null?void 0:(z=
h.bellAccessibilityData)==null?void 0:z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var c;return h==null?void 0:(c=h.bellAccessibilityData)==null?void 0:c.disabledLabel;default:var I;return h==null?void 0:(I=h.unsubscribeButtonContent)==null?void 0:I.accessibilityText}}else{var B;return h==null?void 0:(B=h.subscribeButtonContent)==null?void 0:B.accessibilityText}};
rpd=function(h){if(h){switch(h){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":h="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":h="NOTIFICATIONS_OFF";break;default:h="NOTIFICATIONS_NONE"}return h}};
mVZ=function(h,E,g){g.subscribed!==E&&((g=g.key)&&_.Gl(_.xx("subscriptionStateEntity",g,{key:g,subscribed:E})),h.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:E})),E||_.BX(h,"yt-unsubscribe-action"))};
HkW=function(h){h=_.e(_.kB(h),_.w5);var E,g,Z,M;return(M=_.e(h==null?void 0:(E=h.panelLoadingStrategy)==null?void 0:(g=E.inlineContent)==null?void 0:(Z=g.sheetViewModel)==null?void 0:Z.content,vtW))==null?void 0:M.listItems};
$VV=function(h,E){if(h.onShowSubscriptionOptions&&E&&(h=HkW(h.onShowSubscriptionOptions),h!=null&&h.length)){var g=rpd(E);h.forEach(function(Z){Z=_.e(Z,_.Dd);var M,W,z,c,I=Z==null?void 0:(M=Z.leadingImage)==null?void 0:(W=M.sources)==null?void 0:(z=W[0])==null?void 0:(c=z.clientResource)==null?void 0:c.imageName;Z&&I&&(Z.isSelected=I===g)})}};
K5q=function(h,E,g,Z){E&&g?h.style.width=g+"px":!E&&Z&&(h.style.width=Z+"px")};
Okq=function(h,E,g){var Z;(Z=h.lottieEl)==null||Z.goToAndPlay(0);var M;(M=E.lottieEl)==null||M.goToAndPlay(0);_.lv(_.KP,function(){var W;(W=g.lottieEl)==null||W.goToAndPlay(0)},300)};
nt$=function(h){return!(h==null||!h.iconName||(h==null?0:h.title))};
XLZ=function(h,E,g,Z){g&&_.KP.cancelJob(g);g=_.KP.addLowPriorityJob(function(){Z(void 0)},5E3);
Z(g);E&&h!==(E.likeStatus==="LIKE")&&E.key&&_.Gl(_.xx("likeStatusEntity",E.key,{key:E.key,likeStatus:h?"LIKE":"INDIFFERENT",hadUserInteraction:h}))};
_.Yd4=function(h,E){return _.Jj(h.entities,"accountLinkStatusEntity",E)};
sP$=function(h,E){return _.Jj(h.entities,"hatsSurveyEntity",E)};
VSz=function(h,E){return _.Jj(h.entities,"hatsSurveyStateEntity",E)};
kaM=function(h,E){return _.Jj(h.entities,"quantityIncrementerEntity",E)};
ypu=function(h){switch(h){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
F5M=function(h){switch(h){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}};
Apx=function(h){switch(h){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.bkM=function(h){var E=_.cx("web_generic_client_event_wait_period ",0);E||(E=3E5);var g=TRd.get(h);!_.J("enable_web_client_experiment_event_timeout_killswitch")&&g&&(0,_.zn)()-g<E||(TRd.set(h,(0,_.zn)()),_.vT("genericClientExperimentEvent",{eventType:h}))};
uQz=function(h){switch(h){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
QPZ=function(h){if(!h)return"";var E,g=(E=_.GF().resolve(_.pl(_.gu)))==null?void 0:E(),Z;if(!g&&((Z=h.vibrantColorPalette)==null?0:Z.iconInactiveColor))return QV(h.vibrantColorPalette.iconInactiveColor,"1");var M;return g&&((M=h.darkColorPalette)==null?0:M.iconInactiveColor)?QV(h.darkColorPalette.iconInactiveColor,"1"):h.color?QV(h.color,"1"):h.sampledThumbnailColor?(h=h.sampledThumbnailColor,"rgba("+h.red+","+h.green+","+h.blue+");"):""};
_.r5=function(h,E){if(!h.includes("DATE_PLACEHOLDER"))return h;var g=new Date(0);g.setUTCSeconds(E);return h.replace("DATE_PLACEHOLDER",hQO(g))};
E2q=function(h,E,g){return function(Z){var M=h.command;M&&(xP(M,{form:{element:g}}),E([M],Z))}};
ZqZ=function(h,E,g,Z,M){return function(W){var z=g2x(h,E);z&&xP(z,{form:{element:g},commandController:Z});M&&W.stopPropagation()}};
g2x=function(h,E){if(h.signInEndpoint&&!_.J("web_subscribe_sign_in_endpoint_killswitch"))return h.signInEndpoint;if(E){if(h.serviceEndpoints)return h.serviceEndpoints[1];if(h.onUnsubscribeEndpoints)return h.onUnsubscribeEndpoints[0]}else{if(h.serviceEndpoints)return h.serviceEndpoints[0];if(h.onSubscribeEndpoints)return h.onSubscribeEndpoints[0]}};
Meq=function(h,E){var g,Z,M,W;E=E&&((g=h.unsubscribeAccessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)||((M=h.subscribeAccessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label);return h.longSubscriberCountText?[E,_.Wp(h.longSubscriberCountText)].filter(function(z){return z}).join(" "):E};
mz=function(h,E){return E||(h==null?0:h.isChannelDelegate)?"disabled":"active"};
WQz=function(h,E){var g;switch((g=h.style)==null?void 0:g.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:mz(h)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:mz(h)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:mz(h,!0)};case "OVERLAY":return E?{style:"overlay",type:"tonal",state:mz(h)}:{style:"overlay",type:"filled",state:mz(h)};default:return E?{style:"mono",type:"tonal",state:mz(h)}:{style:"mono",type:"filled",state:mz(h)}}};
_.v3=function(){for(var h=[],E=_.G(_.VF.apply(0,arguments)),g=E.next();!g.done;g=E.next())if(g=g.value)if(typeof g==="string")h.push(g);else{g=_.G(Object.entries(g));for(var Z=g.next();!Z.done;Z=g.next()){var M=_.G(Z.value);Z=M.next().value;(M=M.next().value)&&h.push(Z)}}return h.join(" ")};
pSZ=function(h){switch(h){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Gmx=function(h){switch(h){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
zQZ=function(h,E){var g=h.map(function(Z){return Z.toString()});
return _.J7(function(Z){if(g.includes(Z.key)){E&&Z.preventDefault();var M;(M=Z.currentTarget)==null||M.click()}})};
_.acW=function(){return zQZ(["Enter"])};
_.cGV=function(){return zQZ(["Enter"," "],!0)};
_.H3=function(h){if(h.composedPath)return h.composedPath();if(!h.__composedPath){for(var E=[],g=h.target;g;)E.push(g),g=g.parentNode;E.push(window);h.__composedPath=E}return h.__composedPath};
_.$x=function(h,E,g){h=_.G(h);for(var Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(Z===E)break;for(var M=_.G(g),W=M.next();!W.done;W=M.next())if(W=W.value,Z.tagName===W||Z.role==="button"&&W==="BUTTON")return!0}return!1};
o2x=function(h,E){var g,Z=(g=E.observer)!=null?g:_.GF().resolve(aT);if(h){g=iqd(h);var M=[];E.showOption&&M.push(Z.observe(h,function(){E.visibilityCallback(!0,h)},E.showOption));
E.hideOption&&M.push(Z.observe(h,function(){E.visibilityCallback(!1,h)},E.hideOption));
E.prescanOption&&E.prescanCallback&&M.push(Z.observe(h,function(){E.prescanCallback()},E.prescanOption));
var W;g.visibilityMonitorKeys=((W=g.visibilityMonitorKeys)!=null?W:[]).concat(M)}};
iqd=function(h){var E;return(E=h.polymerController)!=null?E:h};
_.Oz=function(h){return!!_.K4(h)};
_.n4=function(h,E,g,Z,M){return function(W){var z=tCz();_.lX(function(){if(W){IcM(W,h(),M);var c=RQq(W,h(),E,g,Z,z);_.r9(c)}},"nr377e")}};
IcM=function(h,E,g){var Z=Pda(E),M=Blz(E);E=Z&&Unz;var W=M&&LQ$;(Z||M)&&o2x(h,{visibilityCallback:function(z){var c=_.GF().resolve(_.zF);z&&Z?c.resolveCommand(Z,{form:{element:g?h:void 0},disableClickTracking:!0}):!z&&M&&c.resolveCommand(M,{form:{element:g?h:void 0},disableClickTracking:!0})},
showOption:E,hideOption:W})};
RQq=function(h,E,g,Z,M,W){var z=new Map;if(E=_.K4(E)){var c;h=(Z==null?void 0:(c=Z.onTap)==null?void 0:c.value)||h;g=jgz(E,h,g==null?void 0:g.onTap,M,W);h.addEventListener("click",g);z.set("click",g)}return function(){for(var I=_.G(z),B=I.next();!B.done;B=I.next()){var U=_.G(B.value);B=U.next().value;U=U.next().value;h.removeEventListener(B,U)}}};
_.K4=function(h){var E;return(h=(E=_.e(h,dnZ))==null?void 0:E.onTap)&&_.kB(h)};
Pda=function(h){var E;return(h=(E=_.e(h,dnZ))==null?void 0:E.onVisible)&&_.kB(h)};
Blz=function(h){var E;return(h=(E=_.e(h,dnZ))==null?void 0:E.onHidden)&&_.kB(h)};
jgz=function(h,E,g,Z,M){var W=function(c){_.GF().resolve(_.zF).resolveCommand(h,c)},z=function(c){Z&&_.$x(_.H3(c),E,Z)||W(c.target?{form:{element:c.target,
sourceData:h,mutationContext:M}}:void 0)};
g&&(z=function(c){g(c,W)});
return z};
Cdx=function(h){switch(h){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}};
JGO=function(h){var E=h.numAvatarsInCluster;switch(h.clusterSize){case "small":return E===2?22:18;case "40":return E===2?24:22;default:return E===2?24:20}};
eQx=function(h,E){return function(g){var Z=Object.keys(E);_.lX(function(){if(h!=null&&h()){for(var M=_.G(Z),W=M.next();!W.done;W=M.next())W=W.value,g.addEventListener(W,E[W]);_.r9(function(){for(var z=_.G(Z),c=z.next();!c.done;c=z.next())c=c.value,g.removeEventListener(c,E[c])})}},"bXZGfe")}};
q_$=function(h){switch(JGO(h)){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""}};
fcd=function(h){switch(h){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""}};
Nlz=function(h){switch(JGO(h)){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""}};
tea=function(h){switch(h){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""}};
S_a=function(h){switch(h){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}};
xnx=function(h){return h==="medium"||h==="48"||h==="large"||h==="extra-large"||h==="extra-extra-large"||h==="giant"};
wSq=function(h){return!!((h==null?0:h.includes(3))||(h==null?0:h.includes(5)))};
lc$=function(h){var E=h.data;return{size:DnV(E.avatarImageSize),type:E.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:h.onTap,decorations:h.decorations||[],badgeText:h.badgeText,accessibilityText:h.accessibilityText,avatarButtonCustomClassName:h.avatarButtonCustomClassName,clusterLayoutConfig:h.clusterLayoutConfig}};
DnV=function(h){switch(h){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"}};
rG$=function(h){switch(h){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}};
mnz=function(h){switch(h){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
v2W=function(h){var E=h.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",g,Z=h.avatars&&h.avatars.length>0?(g=_.e(h.avatars[0],_.X5))==null?void 0:g.avatarImageSize:"AVATAR_SIZE_UNKNOWN";g=rG$(Z)||0;if(E){var M,W=(M=h.avatarClusterSize)!=null?M:"AVATAR_SIZE_M";E=rG$(W);var z,c,I=Math.min((c=(z=h.avatars)==null?void 0:z.length)!=null?c:0,4),B;return{avatars:((B=h.avatars)==null?void 0:B.slice(0,4))||[],avatarSizeInPx:g,avatarStackStyle:{width:E+"px",height:E+"px",position:"relative"},avatarStyle:function(L){var d=
JGO({clusterSize:DnV(W),numAvatarsInCluster:I,avatarIndex:L});var C=rG$(W);I===3&&L===2?(C=(C-d)/2,C=(_.nF("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*C):C=void 0;return{position:"absolute",top:I===2&&L===1||I===3&&L===2||I===4&&L>=2?"0":void 0,bottom:I===2&&L===0||I>2&&L<2?"0":void 0,left:I===2&&L===1||I>2&&(L===1||L===3)?"0":void 0,right:I<=3&&L===0||I===4&&(L===0||L===2)?"0":void 0,transform:C?"translateX("+C+"px)":void 0,width:d+"px",height:d+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(L){return{clusterSize:DnV(h.avatarClusterSize),numAvatarsInCluster:I,avatarIndex:L}},
avatarButtonCustomClassName:void 0}}var U;return{avatars:((U=h.avatars)==null?void 0:U.slice())||[],avatarSizeInPx:g,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:mnz(Z),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
Hqz=function(h,E,g){return function(){xP(h,{form:{element:E},commandController:g})}};
$nu=function(h){switch(h){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
KQ$=function(h){switch(h){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
OqO=function(h){if("accessibilityText"in h)return h.accessibilityText||"";if("title"in h){var E,g,Z;return((E=h.title)==null?void 0:(g=E.accessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)||""}if("accessibility"in h){var M,W;return((M=h.accessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)||""}return""};
n24=function(h){return"inlinePlayerData"in h};
Yx=function(h){return new XSz(h)};
Y_$=function(h){return function(E){h&&(h.thumbnailElRef=E.thumbnailElRef,h.thumbnail=E.thumbnail,h.thumbnailOverlays=E.thumbnailOverlays,h.thumbnailSize=E.thumbnailSize)}};
sg4=function(h){switch(h){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
kmx=function(h){var E=_.G(_.Bm(!1,void 0,"RIOonf")),g=E.next().value,Z=E.next().value;_.vJ(function(){var M=h==null?void 0:h();if(M){var W=_.GF().resolve(_.pl(Ve4));if(W){var z={triggeringElement:M,onDwellTriggeredFn:function(){Z(!0)},
onDwellEndFn:function(){Z(!1)}};
W.registerElement(z);_.r9(function(){_.sz(W,z)})}}});
return g};
yGW=function(h,E,g){g?g(E):_.Tl(E,h.target?{form:{element:h.target}}:void 0)};
_.VS=function(h,E,g){return function(Z){_.lX(function(){var M=new Map,W,z=(W=h())==null?void 0:W.onTap;z&&(W=function(c){a:{var I=c.composedPath();I=_.G(I);for(var B=I.next();!B.done;B=I.next()){B=B.value;if(B===Z)break;if(B.className.indexOf("HostIsClickableAdComponent")>=0||B.tagName==="A".toString()||B.tagName==="BUTTON".toString()){I=!0;break a}}I=!1}I||yGW(c,z,E)},(g==null?0:g())||_.J("enable_web_home_top_landscape_image_layout_level_click")?(Z.addEventListener("tap",W),M.set("tap",W)):(Z.addEventListener("click",
W),M.set("click",W)));
_.r9(function(){for(var c=_.G(M),I=c.next();!I.done;I=c.next()){var B=_.G(I.value);I=B.next().value;B=B.next().value;Z.removeEventListener(I,B)}})},"NMyqj")}};
FQu=function(h,E){var g,Z=(g=h.interaction)==null?void 0:g.onTap;if(h=_.F8({elementsCommand:Z,forceNewState:!0,skipOnClick:!0}))return h.onclick=function(M){bNq(M)&&(M.preventDefault(),Z&&yGW(M,Z,E))},AW(h)?h:void 0};
AGz=function(h){switch(h){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
TlM=function(h){switch(h){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"}};
bqq=function(h){switch(h){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"}};
_.uqd=function(h){return _.J("rich_grid_enable_dynamic_offset")&&h?Math.max(Math.round((h-_.cx("rich_grid_dynamic_offset_anchor_width",1300))/100*_.cx("rich_grid_dynamic_offset_offset_per_100",10)),_.cx("rich_grid_dynamic_offset_lower_bound",-60)):0};
QgN=function(h,E){switch(E){case 4:return 16;case 1:return h<528?16:h<1024?32:48;case 2:return(h>=528?16:8)/2;case 3:return(h<528?16:h<1024?32:48)+(h>=528?16:8)/2;default:return 0}};
hyM=function(h){var E=h.originalContainerWidth;var g=h.sizing;var Z=h.standardUnit;if(h.isCompactList&&E<528)return 1;switch(g){case "STANDARD":return Z;case "COMPACT":return Z+1;case "EXTRA_COMPACT":return _.J("web_responsive_extra_compact_2x")?Z*2:_.J("web_responsive_current")?Z===1?2:Z%2===0?Z/2*3:Z+2:Z<4?Z*2:Math.ceil(Z*3/2);case "MINI":return Z>1?Z*2:3;default:return Z}};
gkV=function(h){var E=h.containerWidth;var g=h.peek;var Z=h.gutter;var M=h.numItems;h=h.ignoreMaxWidthLimit;E=g?Math.max((E-g-Z*M)/M,0):Math.max((E-Z*(M-1))/M,0);return h?E:Math.min(E,Ekd)};
_.kx=function(h){var E=h.containerWidth;var g=h.hasPeek;var Z=h.sizing;var M=h.marginSettings;var W=h.isCompactList;var z=h.enableFullBleedForSingleCol;var c=h.standardUnitMinWidth;Z=Z||"STANDARD";g=!!g;h=E>=528?16:8;var I=g?E>=528?48:24:0;M=QgN(E,M);var B=Math.max(E-M*2,0);c=_.J("kevlar_disable_min_width_override")?void 0:c;c=Math.min(Math.max(Math.floor((B-I+h)/((c!=null?c:Za$)+_.uqd(E)+h)),1),6);var U=(z=!!z&&c===1)||c===1&&Z!=="STANDARD";g=g||U?B:Math.min(B,(Ekd+h)*c-h);Z=hyM({originalContainerWidth:E,
sizing:Z,standardUnit:c,isCompactList:W});return{itemWidth:gkV({containerWidth:g,peek:I,gutter:h,numItems:Z,ignoreMaxWidthLimit:U}),gutter:h,maxContainerWidth:g,numItems:Z,margin:z?0:M,contentMargin:QgN(E,1),typographyBump:gkV({containerWidth:g,peek:I,gutter:h,numItems:c,ignoreMaxWidthLimit:U})>400&&!(W&&E<528),standardUnit:c}};
Ma4=function(h){switch(h){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.WK4=function(h){if(h){var E;if((E=h.responsiveContainerConfiguration)==null?0:E.responsiveSize)return Ma4(h.responsiveContainerConfiguration.responsiveSize);if(h.layoutSizing)switch(h.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"}}};
poN=function(h){if(h.fullbleed)return 1;switch(h.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
cE$=function(h,E,g,Z,M,W,z,c){a:if(h===4&&Z==="LOCKUP_CONTENT_TYPE_SOURCE")var I=1;else switch(h){case 3:I=1;break a;default:I=0}a:switch(h){case 4:W=!!(W&&W<100);break a;default:W=!1}a:switch(h){case 3:case 4:var B=Z==="LOCKUP_CONTENT_TYPE_CHANNEL"||Z==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:B=!1}a:switch(h){case 5:var U=!0;break a;case 4:U=!1;break a;default:U=!1}return{isOverlay:U,isCard:GE$(Z,z),sizing:E!=null?E:"STANDARD",typographyBump:g!=null?g:!1,isTiny:W,isCentered:B,isCollection:zyz(Z),
arrangement:I,addMarginForFullbleed:h===1&&Z!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:h===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:a2$(Z,M,c),disableRounding:h===5||GE$(Z,z)||h===1&&Z==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:zyz(Z)?2:0,useLegacyTypography:!(c==null||!c.useLegacyTypography),useRichGridLegacyTypography:!(c==null||!c.useRichGridLegacyTypography)&&!_.J("web_enable_typography_bump"),compactMetadata:I===0&&Z==="LOCKUP_CONTENT_TYPE_VIDEO"}};
zyz=function(h){switch(h){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}};
GE$=function(h,E){if(E&&h==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(h){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
a2$=function(h,E,g){if(E&&(g==null||!g.alwaysRespectPodcastShowAspectRatio||h!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(h){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}};
ia$=function(h){switch(h){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"}};
ok$=function(h){switch(h){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
I2a=function(h){switch(h){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}};
_.yS=function(h){if(h){var E;return((E=_.GF().resolve(_.pl(_.gu)))==null?0:E())?h.darkThemeImage:h.image}};
Bdd=function(h,E,g,Z,M,W){if(M&&W&&E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:M,height:W};if(!g)return{};M=g.size;g=g.allowFullWidth;if(E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&g)return{fullWidth:!0};if(M===void 0)return{};switch(h){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:M,height:M};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:M,height:1/RyM*M};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:M*
P9q,height:M};default:return(Z==null?0:Z.height)&&(Z==null?0:Z.width)?Z.width/Z.height>1?{maxWidth:M*P9q}:{maxWidth:M}:{maxWidth:M}}};
U0a=function(h){var E;return h&&((E=_.yS(h.themedImage))!=null?E:h.image)};
LKq=function(h){var E;return h==null?void 0:(E=h.sources)==null?void 0:E[0]};
jBM=function(h){switch(h){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.d0u=function(h){if(h)return"content-id-"+h};
C9O=function(h){switch(h.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"}}};
JEu=function(h){var E=_.AU.currentPageSubTypeSelector(_.pL().getState())||"";return h?h+E:""};
eyx=function(h){switch(h){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
f2x=function(h){var E=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],g=_.G(_.Bm(void 0,void 0,"JrqNsb")),Z=g.next().value,M=g.next().value,W=_.G(_.Bm(void 0,void 0,"rWytse"));g=W.next().value;var z=W.next().value;W=_.G(_.Bm(void 0,void 0,"DHRqxe"));var c=W.next().value,I=W.next().value;return{touchFeedbackEvents:{pointerUpEvent:Z,pointerDownEvent:g,pointerLeaveEvent:c},touchFeedbackOnPointerUp:_.J7(function(B){qlz(_.H3(B),E)||(M(B),z(void 0),I(void 0))}),
touchFeedbackOnPointerDown:_.J7(function(B){h==null||h(B);qlz(_.H3(B),E)||(z(B),M(void 0),I(void 0))}),
touchFeedbackOnPointerLeave:_.J7(function(B){qlz(_.H3(B),E)||(I(B),z(void 0),M(void 0))})}};
qlz=function(h,E){E=E===void 0?[]:E;E=[].concat(_.$E(E),["BUTTON".toString()]);h=_.G(h);for(var g=h.next();!g.done;g=h.next()){g=g.value;for(var Z=_.G(E),M=Z.next();!M.done;M=Z.next())if(g.tagName===M.value)return!0}return!1};
NdZ=function(h){switch(h){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"}};
taW=function(h){return h.scrollHeight-h.offsetHeight>1};
SlV=function(h,E){var g;return EL(h,((g=h.content)==null?void 0:g.length)||0,!E)};
D0$=function(h,E,g,Z,M,W){if(!E||x0W){var z;return EL(h,((z=h.content)==null?void 0:z.length)||0,!0)}E=Z.value;if(!g.value||!E||!h.content)return h;g=0;Z=h.content.length;z=0;wo$||(wo$=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var c=wo$;for(M=M*W*c;g<=Z;)W=Math.floor(g+(Z-g)/2),c=EL(h,W)||h,E.firstChild&&(E.firstChild.textContent=c.content),E.scrollHeight>M?Z=W-1:(z=W,g=W+1);return EL(h,z)};
l2x=function(h,E){var g,Z;return(((g=h.content)==null?void 0:g.length)||0)>(((Z=E.content)==null?void 0:Z.length)||0)};
rEZ=function(h,E,g,Z,M,W){var z=_.hf("truncated-text-content"),c=_.hf("truncated-text-content"),I=_.hf("button"),B=_.hf("button"),U=_.hf("button"),L=_.GF().resolve(_.Mi),d=_.G(_.qi(function(){return SlV(h(),M())})),C=d.next().value,q=d.next().value;
d=_.G(_.qi(function(){return l2x(h(),C())}));
var w=d.next().value,r=d.next().value,v=null;_.lX(function(){function H(){if(z.value&&I.value&&U.value){var y=W()?h():D0$(h(),M(),z,c,E(),g());q(y);requestAnimationFrame(function(){if(z.value&&I.value&&U.value){var A=taW(z.value)||l2x(h(),y);r(A);if(!Z()){var E4=taW(z.value),iO=g(),RW=z.value,NN=I.value,Cd=U.value,Ba=L==="rtl";if(RW&&NN){var $$=NN.offsetLeft;Ba&&($$=RW.offsetWidth-NN.offsetWidth-NN.offsetLeft);if(A){A=NN.offsetWidth;NN=RW.offsetWidth;var Ha=E4?NN-A-70:$$-70;iO="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
iO+"rem,\n      #000 "+iO+"rem,\n      #000 100%), linear-gradient(\n      to "+((Ba?"left":"right")+",\n      #000 0px,\n      #000 "+Ha+"px,\n      transparent "+(E4?NN-A:Ha+70)+"px)");RW.style.setProperty("-webkit-mask-image",iO);RW.style.setProperty("mask-image",iO)}else RW.style.setProperty("-webkit-mask-image",""),RW.style.setProperty("mask-image","");E4?Ba?(Cd.style.setProperty("left","0"),Cd.style.setProperty("right","unset")):(Cd.style.setProperty("left",""),Cd.style.setProperty("right",
"0")):Ba?(Cd.style.setProperty("left","unset"),Cd.style.setProperty("right",$$+"px")):(Cd.style.setProperty("left",$$+"px"),Cd.style.setProperty("right","unset"))}}}})}}
var u,k;(u=v)==null||(k=u.stop)==null||k.call(u);u=new _.TD(H,17);H();v=u},"KjwIxd");
_.vJ(function(){q(SlV(h(),M()));r(l2x(h(),C()));var H=function(){wo$=void 0;var k,y;(k=v)==null||(y=k.fire)==null||y.call(k)};
if(window.ResizeObserver){var u=new ResizeObserver(H);u.observe(z.value);_.r9(function(){var k,y;(k=v)==null||(y=k.stop)==null||y.call(k);u.disconnect()})}else window.addEventListener("resize",H),_.r9(function(){var k,y;
(k=v)==null||(y=k.stop)==null||y.call(k);window.removeEventListener("resize",H)})});
return{isTruncated:w,displayText:C,contentRef:z,hiddenRef:c,placeholderTruncationTextRef:I,hiddenTruncationTextRef:B,truncationTextRef:U}};
m0V=function(h){return{content:h!=null?h:""}};
vk4=function(h){return _.kB(h.onTap)||_.K4(h.rendererContext)};
HaO=function(h){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:h.overflowMenuA11yLabel,onTap:function(E){E.preventDefault();E.stopPropagation();if(h.overflowMenuOnTap){var g=_.F8({elementsCommand:h.overflowMenuOnTap,forceNewState:!0});if(g==null?0:g.onclick)g.onclick(E)}}}};
_.bv=function(h,E,g,Z,M){Z=Z===void 0?{}:Z;if(!M||Math.random()<5E-4){E=E||null;g=g||null;h=h instanceof Error?h:new _.xX(h);if(h.args)for(var W=_.G(h.args),z=W.next();!z.done;z=W.next())z=z.value,z instanceof Object&&(Z=Object.assign({},z,Z));Z.category="H5 Ads Control Flow";E&&(Z.slot=E?"slot:  "+E.slotType:"");g&&(Z.layout=g?"layout:  "+g.layoutType:"",Z.layoutId=g.layoutId);M&&(Z.known_error_aggressively_sampled=!0);h.args=[Z];_.O$(h)}};
_.$0u=function(h,E){_.BX(h,"yt-open-popup-action",[_.at(E),h])};
_.uv=function(h,E){_.$0u(h,_.MR(E))};
Oad=function(h){if(!h)return"";if(KKd[h])return KKd[h];QS||(QS=_.q3("A"));QS.href!==h&&yF(QS,h);var E=QS.pathname;KKd[h]=E.startsWith("/")?E:"/"+E;return KKd[h]};
nk$=function(){var h=Oad(window.location.href);if(h==="/")return"home";if(h.startsWith("/results"))return"search";if(h.startsWith("/watch"))return"watch";if(h.startsWith("/shorts"))return"shorts";if(h.startsWith("/hashtag"))return"hashtag";if(h.startsWith("/create_channel"))return"create_channel";if(h.startsWith("/@")||h.startsWith("/user/")||h.startsWith("/channel/"))return"channel";if(h.startsWith("/experiments"))return"experiments";if(h.startsWith("/sponsor_channel"))return"sponsorship";if(h.startsWith("/select_site"))return"settings";
if(h.startsWith("/locate"))return"locate";if(h.startsWith("/redeem"))return"redeem";if(h.startsWith("/musicpremium")||h.startsWith("/premium")||h.startsWith("/red"))return"premium";if(h.startsWith("/paid_memberships"))return"paid_memberships";if(h.startsWith("/oops"))return"oops";if(h.startsWith("/clip"))return"clip";var E;return(he==null?void 0:(E=he.response)==null?void 0:E.page)==="404"?"404":h.startsWith("/feed/history")?"history":h.startsWith("/feed/library")?"library":h.startsWith("/feed/subscriptions")?
"subscriptions":h.startsWith("/feed/trending")?"trending":h.startsWith("/feed/news_destination")?"news":h.startsWith("/playlist")?"playlist":h.startsWith("/minor_moment")?"minor_moment":h.startsWith("/playable/")||h.match("^/playables/(?!saved).")?"mini_app":h.startsWith("/playables")?"playables":h.startsWith("/create/live/join")?"open_in_app":h.startsWith("/feed/explore")?"explore":"browse"};
_.VaO=function(){var h=he==null?void 0:he.response,E=h==null?void 0:h.endpoint;if(!E)return(h==null?void 0:h.page)==="watch"?"watch":nk$();var g;h=(g=_.e(E==null?void 0:E.commandMetadata,_.qH))==null?void 0:g.webPageType;g=!1;if(h&&!Xou.includes(h))switch(h){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 Z;return((Z=_.e(E==null?void 0:E.commandMetadata,_.qH))==null?0:Z.url)&&Oad(_.e(E.commandMetadata,_.qH).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var M;return(E=(M=_.e(E,_.tk))==null?void 0:M.browseId)?Yl4[E]||"browse":"browse";default:g=!0}if(_.e(E,_.Ea)||_.e(E,sBO))return"sponsorship";M=Oad(window.location.href);if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/create_channel"))return"create_channel";
if(_.e(E,_.yX)&&M.startsWith("/shorts"))return"shorts";if(_.e(E,_.yX)&&M.startsWith("/watch"))return"watch";g&&(E=new _.xX("Unsupported mWeb page type",{pathname:M,webPageType:h}),_.$W(E));return"browse"};
gH=function(h,E,g,Z){return h&&E?h!==g||E!==Z?(_.bv(Error("Qh"),void 0,void 0,{"stored-slot":h,"stored-layout":E,"latest-slot":g,"latest-layout":Z}),!1):!0:!1};
yE$=function(h,E,g){return h({targetId:E},function(Z){return g.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},Z,{contents:[g.continuationItems?_.e(g.continuationItems[0],kEM):{}]}):g.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},Z,{header:g.continuationItems?g.continuationItems[0]:void 0}):Object.assign({},Z,{contents:g.continuationItems?g.continuationItems:[]})})};
FKW=function(h,E,g,Z){if(E=E.trackingParams){var M,W=(M=g.getScreenLayer)==null?void 0:M.call(g);g=_.sH(W);M=_.YN(W);if(g&&M){var z=_.rp(E);_.J("combine_ve_grafts")?h.graftServerVe(E,M,W):_.uw(g,M,z);Z==null||Z(z)}}};
Tdx=function(h){var E;return((E=AEN.get(h))==null?void 0:E.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
QB$=function(h,E){var g={type:E.slotType,controlFlowManagerLayer:baZ.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E.slotEntryTrigger&&(g.entryTriggerType=E.slotEntryTrigger.triggerType);E.slotPhysicalPosition!==1&&(g.slotPhysicalPosition=E.slotPhysicalPosition);if(h){g.debugData={slotId:E.slotId};if(h=E.slotEntryTrigger)g.debugData.slotEntryTriggerData=ukz(h);h=E.slotFulfillmentTriggers;g.debugData.fulfillmentTriggerData=[];h=_.G(h);for(var Z=h.next();!Z.done;Z=h.next())g.debugData.fulfillmentTriggerData.push(ukz(Z.value));
E=E.slotExpirationTriggers;g.debugData.expirationTriggerData=[];E=_.G(E);for(h=E.next();!h.done;h=E.next())g.debugData.expirationTriggerData.push(ukz(h.value))}return g};
ukz=function(h,E){var g={type:h.triggerType};E!=null&&(g.category=E);h.triggeringSlotId!=null&&(g.triggerSourceData||(g.triggerSourceData={}),g.triggerSourceData.associatedSlotId=h.triggeringSlotId);h.triggeringLayoutId!=null&&(g.triggerSourceData||(g.triggerSourceData={}),g.triggerSourceData.associatedLayoutId=h.triggeringLayoutId);return g};
hi$=function(h,E,g,Z){E={opportunityType:E};h&&(Z||g)&&(Z=_.O6(Z||[],function(M){return QB$(h,M)}),E.debugData=Object.assign({},g&&g.length>0?{associatedSlotId:g}:{},Z.length>0?{slots:Z}:{}));
return E};
EoN=function(h){return Zq(h.opportunityAdapterMap).concat(Zq(h.triggerAdapterMap)).concat(Zq(h.fulfillmentAdapterFactoryMap)).concat(Zq(h.slotAdapterFactoryMap)).concat(Zq(h.layoutRenderingAdapterFactoryMap))};
Zq=function(h){var E=[];h=_.G(h.values());for(var g=h.next();!g.done;g=h.next())g=g.value,g.isAdsControlFlowEventListener&&E.push(g);return E};
Wg=function(h){var E=h.slotId,g=h.slotType,Z=h.slotPhysicalPosition;return E===void 0?new MT("Cannot construct a slot due to the missing id.",{adSlotMetadata:h}):g===void 0?new MT("Cannot construct a slot due to the missing type.",{adSlotMetadata:h}):Z===void 0?new MT("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:h}):{slotId:E,slotType:g,slotPhysicalPosition:Z,managerLayer:"external",adSlotLoggingData:h.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new goz}};
ZEz=function(h){var E=h.layoutId,g=h.layoutType;return E===void 0?new pu("Cannot construct a layout due to the missing id.",{adLayoutMetadata:h}):g===void 0?new pu("Cannot construct a layout due to the missing type.",{adLayoutMetadata:h}):{layoutId:E,layoutType:g,managerLayer:"external",adLayoutLoggingData:h.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new goz,interactionLoggingAdsClientData:{}}};
MON=function(h){if(h.querySelector("img")){var E=h.querySelector("img");E.addEventListener("error",function(){$ja(E.src).then(function(g){(g=_.sG(g).toString())?E.src=g:E.removeAttribute("src")}).catch(function(){E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
zK=function(h,E){if(E&&(WUa(E.viewableCommand)||WUa(E.endOfSessionCommand))){var g=p84(E==null?void 0:E.viewableCommand);E=p84(E==null?void 0:E.endOfSessionCommand);if(!GK){var Z=_.cx("custom_active_view_tos_timeout_ms");GK=Z>0&&Z!==36E5?new GMd(ziW(),Z):new GMd(ziW())}auq(GK,h);cdO(GK,h,g,E)}};
ad=function(h){GK&&auq(GK,h)};
ziW=function(){var h=_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(h==null?void 0:h.length)===2?h[1]:null};
WUa=function(h){h=_.kB(h);return!(h==null||!h.loggingUrls)&&h.loggingUrls.length>0};
p84=function(h){if(!h)return[];var E=[],g,Z;((Z=(g=_.kB(h))==null?void 0:g.loggingUrls)!=null?Z:[]).forEach(function(M){M.baseUrl&&E.push(M.baseUrl)});
return E};
iEW=function(h){if(_.J("stop_av_measurement_on_detach"))return function(){ad(h)}};
ooO=function(h){return function(){_.J("stop_av_measurement_on_detach")&&ad(h)}};
IuW=function(h){if(_.J("stop_av_measurement_on_detach"))return function(){ad(h)}};
Riq=function(h){return h.shorts.isDesktopSmallWidth};
_.P2d=function(h){return h.shorts.isShortsActive};
_.BTd=function(h){return h.shorts.isWatchWhileMode};
_.cg=function(h){return h.shorts.isFullscreen};
_.i1=function(h){return h.shorts.isShortsPipActive};
LU$=function(h){var E,g;if(h=(E=_.e(h.reelsAdCardButtoned,UE4))==null?void 0:(g=E.animatedRenderingConfig)==null?void 0:g.easeOutSeconds)return h+"s"};
dE$=function(h,E,g){return _.a(function(Z){return Z.return(new Promise(function(M){var W=new Image;W.onload=function(){M(new jQu(h,E,g,W.naturalWidth,W.naturalHeight))};
W.src=g.toString()}))})};
C2z=function(h,E){return Math.round(h/1E-5)===Math.round(E/1E-5)};
Jdu=function(h,E){return Math.round(h/1E-5)===Math.round(E/1E-5)};
eid=function(h,E){return h.year===E.year&&h.month===E.month&&h.day===E.day};
qwd=function(h,E){return h.year!==E.year?h.year<E.year:h.month!==E.month?h.month<E.month:h.day<E.day};
NTd=function(h){return h.day===fu$(h.year,h.month)?h.month===11?{year:h.year+1,month:0,day:1}:{year:h.year,month:h.month+1,day:1}:{year:h.year,month:h.month,day:h.day+1}};
tOa=function(){var h=new Date,E={year:h.getFullYear(),month:h.getMonth(),day:h.getDate()};return{start:E,end:{year:h.getFullYear()+2,month:h.getMonth(),day:h.getDate()},selectedDate:NTd(E)}};
Swz=function(h){return(new Z9(2)).format(new Date(h.year,h.month,h.day))};
xE4=function(h){return{year:h.getFullYear(),month:h.getMonth(),day:h.getDate()}};
w8W=function(h,E){h=(h+(Number(E.utcOffsetSec)+(new Date(h*1E3)).getTimezoneOffset()*60))*1E3;E=xE4(new Date(h));return{date:E,secondsSinceMidnight:Math.floor((h-(new Date(E.year,E.month,E.day)).getTime())/1E3)}};
DEO=function(h,E){E=E.months.findIndex(function(g){return g.year===h.year&&g.month===h.month});
return E>=0?E:void 0};
luz=function(h){if(!h)return!1;try{if(h.host&&h.host.tagName==="YT-FORMATTED-STRING"&&h.host.id==="contenteditable-textarea"||h.nodeType===Node.ELEMENT_NODE&&h.tagName==="YTD-COMMENTBOX")return!0}catch(E){return!1}return luz(h.parentNode)};
od=function(h){return h?!(h.tagName!=="A"||!h.href||!h.classList.contains("yt-simple-endpoint")):!1};
rd$=function(h){return h?h.tagName==="IMG"&&h.classList.contains("emoji"):!1};
mE4=function(h,E,g){if(!h)return null;var Z=od(h);if(Z&&g)return E=h.pathname.substring(h.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(Z&&!g)return document.createTextNode("");if(rd$(h))return g=h.alt,h=h.dataset.emojiId,!h&&E&&(E=_.Id(E,g))&&E.isCustomEmoji&&(h=E.emojiId),h?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+h+">"):document.createTextNode(g);Z=h.cloneNode(!1);for(var M=0;M<h.childNodes.length;++M){var W=mE4(h.childNodes[M],E,g);W&&Z.appendChild(W)}return Z};
Rd=function(h){return h?od(h)?h:Rd(h.lastChild):null};
vox=function(h){return h?od(h)?h:vox(h.firstChild):null};
HEx=function(h){if(!h)return null;for(var E=h.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=Rd(E))?h=E:h=(h=h.parentNode)?Rd(h.previousElementSibling):null;return h};
$Ed=function(h){if(!h)return null;for(var E=h.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=vox(E))?E:$Ed(h.parentNode)};
KUW=function(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();if(!luz(g.parentNode))return null;E=E.JSC$11350_getStartOffset();if(g.nodeType===Node.TEXT_NODE){var Z=_.Vw(g,od);if(Z){if(h&&E===0||!h&&E===g.length)return Z}else{if(h&&E===g.length)return!g||g.nodeName==="BR"||g.nextElementSibling&&_.Bg(g.nextElementSibling,"display")==="block"?null:vox(g.nextElementSibling);if(!h&&E===0)return g?Rd(g.previousElementSibling):null}}if(g.nodeType===Node.ELEMENT_NODE)if(h){if(0<=E&&E<g.childNodes.length)return vox(g.childNodes[E])}else if(0<
E&&E<=g.childNodes.length)return Rd(g.childNodes[E-1]);return null};
OE$=function(h,E,g){if(!h)return null;if(h.nodeType===Node.TEXT_NODE)if(g){var Z=HEx(h);if(Z&&!/^\s+\S/.test(h.wholeText.substr(0,E)))return Z}else if((Z=$Ed(h))&&!/\S\s+/.test(h.wholeText.substr(E,h.wholeText.length)))return Z;return h.nodeType===Node.ELEMENT_NODE?g?HEx(h.childNodes[E]):$Ed(h.childNodes[E]):OE$(h.parentNode,E,g)};
no$=function(h){if(h.hasChildNodes())switch(h.tagName){case "DIV":case "A":case "SPAN":var E="";for(h=h.firstChild;h;h=h.nextSibling)E+=no$(h);return E;default:return""}else switch(h.nodeType){case 3:return h.textContent;default:return""}};
Ua=function(h,E){return h.year===E.year&&h.month===E.month&&h.day===E.day};
Lu=function(h,E){return h.year!==E.year?h.year<E.year:h.month!==E.month?h.month<E.month:h.day<E.day};
X8$=function(h){return{year:h.getFullYear(),month:h.getMonth(),day:h.getDate()}};
YwN=function(h){var E=Kux;E=E===void 0?Kux:E;E(new Date(h.year,h.month,h.day))};
jp=function(h){return X8$(new Date(Number(h.seconds)*1E3))};
sQV=function(h){return h.year!==void 0&&h.month!==void 0&&h.day!==void 0};
VO$=function(h){return h.start!==void 0&&h.end!==void 0};
kMV=function(h){return VO$(h)?h.start:h};
ydu=function(h){return VO$(h)?h.end:void 0};
Adq=function(h,E){for(var g=[],Z=new Date(h.start.year,h.start.month);Z.getFullYear()<h.end.year||Z.getFullYear()===h.end.year&&Z.getMonth()<=h.end.month;){var M=g,W=M.push,z=Z.getFullYear(),c=Z.getMonth(),I=h,B=E,U=void 0,L=[],d=Object.freeze({extraCssClass:"invisible"}),C=new Date(z,c),q=X8$(C);C=C.getDay();for(var w=X8$(new Date);q.month===c;){C!==FUx&&U||(U=Array.from({length:7}).fill(d),L.push(U));var r={date:{year:z,month:c,day:q.day},extraCssClass:"",debugClass:""};r.extraCssClass=B(r.date,
q,w,I).trim();U[(C-FUx+7)%7]=r;q=q.day===fu$(q.year,q.month)?q.month===11?{year:q.year+1,month:0,day:1}:{year:q.year,month:q.month+1,day:1}:{year:q.year,month:q.month,day:q.day+1};C=(C+1)%7}W.call(M,{weeks:L,monthLabel:dH.SHORTMONTHS[c]+" "+z,year:z,month:c,monthLabelExtraCssClass:L[0][2]===d?"shift-down-label":""});Z.setMonth(Z.getMonth()+1)}return g};
TT$=function(h,E){E=E.months.findIndex(function(g){return g.year===h.year&&g.month===h.month});
return E>=0?E:void 0};
ueW=function(h,E){a:{var g=g===void 0?[2,3]:g;g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next()){var M=new Date;if((new bEz(Z.value)).parse(E,M,{validate:!0})){M.setHours(0,0,0,0);E=M;break a}}E=null}if(!E)return{isValid:!1,value:void 0};E=X8$(E);g=h.end;return Lu(E,h.start)||Lu(g,E)?{isValid:!1,value:void 0}:{isValid:!0,value:E}};
Zpd=function(h){var E=QQM;E=E===void 0?h4x:E;var g=h.columnsToShow||[],Z=E5q(h.columnDimensions,h.columnsToShow,h.leftFloatingColumns,E);return g.map(function(M,W){var z=h.columns[M];if(z===void 0)throw Error("Wh");var c=Z?Z[W]:"";var I=h.getCustomTooltip?h.getCustomTooltip(M,z.headerTooltipParagraphs):z.headerTooltipParagraphs;var B=g5z(h,M);return{type:M,index:W,style:c,classes:B,headerName:z.headerName||"",headerIcon:z.headerIcon,headerTooltipParagraphs:I||[],headerTooltipHelpContext:z.headerTooltipHelpContext,
sortOrders:z.sortOrders||[],selectionState:z.isSelectionCheckbox?h.selectionState:void 0}})};
g5z=function(h,E){var g=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],Z=h.columns[E];if(Z===void 0)return"";var M=g.includes("DEFAULTS")&&Z.cssClass?[Z.cssClass]:[];if(g.includes("SORTING")){Z.sortOrders&&Z.sortOrders.length&&M.push("sortable");if(h.sorting&&h.sorting.columnType===E)a:switch(h.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var W="column-sorted";break a;default:W=""}else W="";W&&M.push(W)}g.includes("FLOATING")&&(E=h.columnsToShow.indexOf(E),h.leftFloatingColumns&&E<h.leftFloatingColumns&&
M.push("floating-column"),h.leftFloatingColumns&&E===h.leftFloatingColumns-1&&M.push("last-floating-column"));g.includes("RIGHT_ALIGN")&&Z.rightAlignHeader&&M.push("right-align");return M.filter(function(z){return z}).join(" ")};
E5q=function(h,E,g,Z){g=g===void 0?0:g;Z=Z===void 0?h4x:Z;if(h){var M=[],W=0;M$a(h,E,Z).forEach(function(z,c){var I="min-width:"+z.minWidth+"px;padding-left:"+z.paddingLeft+"px;padding-right:"+z.paddingRight+"px;flex:"+z.flexGrow+" 0 "+z.minWidth+"px;";z.maxWidth!==Infinity&&(I=[I,"max-width:"+z.maxWidth+"px;"].join(""));W>0&&c<g&&(I=[I,"left:"+W+"px;"].join(""));M.push(I);W+=z.minWidth+z.paddingLeft+z.paddingRight});
return M}};
M$a=function(h,E,g){g=g===void 0?h4x:g;return E.map(function(Z,M){Z=h&&h[Z]||{};var W=M===0?g.paddingLeftFirstColumn:g.padding;Z.paddingLeft!==void 0&&(W=Z.paddingLeft);M=M===E.length-1?g.paddingRightLastColumn:g.padding;Z.paddingRight!==void 0&&(M=Z.paddingRight);return{paddingLeft:W,paddingRight:M,minWidth:Z.minWidth!==void 0?Z.minWidth:g.minWidth,maxWidth:Z.maxWidth!==void 0?Z.maxWidth:g.maxWidth,flexGrow:Z.flexGrow!==void 0?Z.flexGrow:g.flexGrow}})};
Wv$=function(h){var E=h.reduce(function(Z,M){var W=M.columnId,z={};M.headerText&&(z.headerName=_.Wp(M.headerText));M.rightAlignHeader&&(z.rightAlignHeader=M.rightAlignHeader);var c;if((c=M.headerIcon)==null?0:c.iconType)z.headerIcon=_.CL(M.headerIcon.iconType);Z[W]=z;return Z},{}),g=h.filter(function(Z){return!Z.hideColumn}).map(function(Z){return Z.columnId});
h=h.filter(function(Z){return!!Z.dimensions}).reduce(function(Z,M){Z[M.columnId]=M.dimensions;
return Z},{});
return{columns:E,columnsToShow:g,columnDimensions:h}};
_.pzz=function(h){return h?h.simpleText?h.simpleText:h.runs?h.runs.map(function(E){return E.text}).join(""):"":""};
ip$=function(h){var E=h.data;var g=h.onTap;var Z=h.isSelected;var M=h.onFocusIn;if(!E)return{};h=Gsq(E);Z===void 0&&(Z=E==null?void 0:E.isSelected);var W;return{text:z44(E,h),startIcon:(W=E.icon)==null?void 0:W.iconType,state:Z?0:2,type:0,onTap:axx(E,g),accessibilityLabel:cKV(E,h),onFocusIn:function(){return M==null?void 0:M()}}};
z44=function(h,E){if(!E)return h.text?_.pzz(h.text):void 0};
axx=function(h,E){return function(g){E==null||E(g,h)}};
Gsq=function(h){h=h.style&&h.style.styleType;return!x0W&&h==="STYLE_EXPLORE_LAUNCHER_CHIP"};
cKV=function(h,E){if(E){var g,Z,M;return(M=(g=h.accessibilityData)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)!=null?M:z44(h,!1)}};
Cu=function(h){return{signalAction:{signal:h}}};
R4N=function(){return _.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?o54:_.Ix$};
PgO=function(h,E){h=h===void 0?"SOFT_RELOAD_PAGE":h;E=E===void 0?49504:E;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.iV(_.NH("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:E}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:h}}]}}}};
Bvd=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iV(_.NH("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:R4N()}};
UL$=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:R4N()}};
LvV=function(h,E){var g=_.iV(_.NH("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),Z=_.iV(_.NH("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),M={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iV(_.NH("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};M.serviceEndpoint=h?h:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Cu("SOFT_RELOAD_PAGE")]}};return{title:g,bodyText:Z,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:M},
style:{value:E!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
dLM=function(h){h=h===void 0?{}:h;return{title:_.iV(h.localizedZeroStateTitleText===void 0?"":h.localizedZeroStateTitleText),bodyText:_.iV(h.localizedZeroStateMessage===void 0?"":h.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iV(h.localizedZeroStateButtonText===void 0?"":h.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[jiq]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
JKx=function(h){h=h===void 0?{}:h;return{title:_.iV(h.localizedOptInBannerTitleText===void 0?"":h.localizedOptInBannerTitleText),titleLength:19,subtitle:_.iV(h.localizedOptInMessage===void 0?"":h.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iV(_.NH("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:_.iV(_.NH("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:[Cgd]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
fxz=function(h,E){var g=E=E===void 0?{}:E;E=g.offlineTitleText===void 0?"":g.offlineTitleText;var Z=g.offlineDescriptionText===void 0?"":g.offlineDescriptionText,M=g.formattedSupplementalText,W=g.actionButtonText===void 0?"":g.actionButtonText,z=g.titleText===void 0?"":g.titleText;g=g.descriptionText===void 0?"":g.descriptionText;var c={title:W,accessibilityText:W,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};h||(z=E,g=Z,c={title:W,accessibilityText:W,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.iV(z),titleLength:z.length,overrideTitleMaxFontSize:30,subtitle:_.iV(g),supplementalText:M,primaryButton:{buttonViewModel:c},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[e44]},darkTileImage:{thumbnails:[qON]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.SO$=function(h,E,g,Z,M,W,z,c,I,B,U){M=M===void 0?!1:M;W=W===void 0?!1:W;z=z===void 0?0:z;c=c===void 0?-Infinity:c;I=I===void 0?!1:I;B=B===void 0?!1:B;U=U===void 0?!1:U;var L=[],d=_.iV(_.NH("SMART_DOWNLOADS",void 0,"Smart downloads")),C=_.iV(Nvz(z,c,h.length));c=z=void 0;B?z={statementBannerRenderer:fxz(U,Z)}:M?h.length>0?c=t$u(h,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.J("kevlar_manual_downloads_above"),d,C):I?c={alertBannerViewModel:{heading:{content:g.localizedOptInBannerTitleText===
void 0?"":g.localizedOptInBannerTitleText},body:{content:g.localizedPromptMessage===void 0?"":g.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.NH("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.NH("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:_.ymN}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:W&&(c={backgroundPromoRenderer:{bodyText:_.iV(_.NH("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}}):
W&&(c={alertBannerViewModel:{heading:{content:g.localizedOptInBannerTitleText===void 0?"":g.localizedOptInBannerTitleText},body:{content:g.localizedOptInMessage===void 0?"":g.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.NH("TURN_ON",void 0,"Turn on"),accessibilityText:_.NH("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}}}}}});g=_.iV(_.NH("YOUR_DOWNLOADS",void 0,"Your downloads"));Z=void 0;E.length>0?(Z=void 0,_.J("kevlar_display_downloads_numbers")&&(Z=_.iV(_.tT("VIDEO_COUNT",E.length))),Z=t$u(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,g,Z)):M||h.length||
B||(Z={backgroundPromoRenderer:{bodyText:_.iV(_.NH("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}}}});z?L.push({richSectionRenderer:{content:z}}):c&&!_.J("kevlar_manual_downloads_above")&&L.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
Z&&L.push({richSectionRenderer:{content:Z,loggingDirectives:{clientVeSpec:{uiType:51721}}}});c&&_.J("kevlar_manual_downloads_above")&&L.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(E.length>0||M&&h.length>0&&!B)&&L.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iV(_.NH("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:L}};
_.wz$=function(h){return xLd(h,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.DLu=function(h){return xLd(h,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
xLd=function(h,E){var g=[];h=t$u(h,E,!0);g.push({richSectionRenderer:{content:h}});return{contents:g}};
t$u=function(h,E,g,Z,M){g=g===void 0?!1:g;var W="RESPONSIVE_SIZE_STANDARD";_.J("kevlar_modern_downloads_compact")?W="RESPONSIVE_SIZE_COMPACT":_.J("kevlar_modern_downloads_extra_compact")?W="RESPONSIVE_SIZE_EXTRA_COMPACT":_.J("kevlar_modern_downloads_tiny")&&(W="RESPONSIVE_SIZE_TINY");h={isExpanded:g,contents:Je(h),entitySelectorType:E,responsiveContainerConfiguration:{responsiveSize:W}};Z&&(h.title=Z);M&&(h.subtitle=M);g||(_.J("kevlar_smart_downloads_show_more_button")?(h.showMoreButton={buttonRenderer:{accessibility:{label:_.NH("SHOW_MORE",
void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.iV(_.NH("SHOW_MORE",void 0,"Show more"))}},h.showLessButton={buttonRenderer:{accessibility:{label:_.NH("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.iV(_.NH("SHOW_LESS",void 0,"Show less"))}}):(h.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.NH("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}}}},h.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.NH("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}}}},h.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.NH("VIEW_ALL",void 0,"View all"),accessibilityText:_.NH("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:_.aY("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:h}};
Je=function(h){var E=[];h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,x8x(g)){var Z=E,M=Z.push;var W=void 0;if(g==null?0:(W=g.videoEntity)==null?0:W.videoId){W=Ty(_.Gv().getState(),g.videoEntity.videoId);var z=_.Gv().getState();var c=_.jD(g.videoEntity.videoId,"mainVideoEntity");z=!!_.Hn(z.entities)[c];z={videoId:g.videoEntity.videoId,title:oY(g.videoEntity.title),shortBylineText:oY(g.channelEntity.title),thumbnail:g.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:z&&_.J("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:pkz(g.videoEntity.videoId,W,g.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.NH("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};g.videoEntity.lengthSeconds&&(z.thumbnailOverlays=Z6x(g.videoEntity.lengthSeconds,W));z.isWatched=W>0;_.J("kevlar_modern_downloads_page")&&(z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:g.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.NH("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},z.badges=void 0);g=z}else g={};M.call(Z,{richItemRenderer:{content:{videoRenderer:g},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(SUW(g)){Z=E;M=Z.push;var I=c=W=void 0,B=void 0,U=void 0,L=void 0,d=void 0,C=void 0,q=void 0,w=void 0,r=void 0,v=void 0;z=g.mainPlaylistEntity.playlistId;var H=g==null?void 0:(v=g.mainPlaylistEntity)==null?void 0:(r=v.thumbnailStyleData)==null?void 0:(w=r[0])==null?void 0:(q=w.value)==null?void 0:(C=q.collageThumbnail)==
null?void 0:C.coverThumbnail;if(z&&H){C=GgV(z);!_.J("enable_offline_playlist_page")&&(g==null?0:(d=g.mainPlaylistEntity)==null?0:d.videos)&&(d=g==null?void 0:(L=g.mainPlaylistEntity)==null?void 0:(U=L.videos)==null?void 0:U[0],U=_.Bn(d).entityId,U=JSON.parse(U).videoId,U!==void 0&&(L=Ty(_.Gv().getState(),U),C=_.cn(U,z,void 0,void 0,L)));U=[];if(g==null?0:(B=g.mainPlaylistEntity)==null?0:(I=B.videos)==null?0:I.length)U=[$P$(),Object.assign({},(c=HSW(g==null?void 0:g.mainPlaylistEntity.videos.length))!=
null?c:{})];g={playlistId:z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:H}},navigationEndpoint:C,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:U,title:oY(g.mainPlaylistEntity.title),shortBylineText:oY(g==null?void 0:(W=g.channelEntity)==null?void 0:W.title),badges:[{metadataBadgeRenderer:{label:_.NH("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.J("kevlar_modern_downloads_page")&&(g.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:lxx,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.NH("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},g.badges=void 0)}else g=void 0;M.call(Z,{richItemRenderer:{content:{playlistRenderer:g},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return E};
Nvz=function(h,E,g){h=h?rK$(h):"";E!==void 0&&isFinite(E)?E===0?E=_.NH("UPDATING",void 0,"Updating..."):(E=glz(new Date(E),new Date),E=_.NH("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var Z="";h&&E&&(Z=" \u2022 ");if(g&&_.J("kevlar_display_downloads_numbers")){g=_.tT("VIDEO_COUNT",g);if(h||E)Z=" \u2022 ";return g+Z+h+Z+E}return h+Z+E};
mL$=function(h){return d8M(h.entities).length};
_.v5N=function(h,E){var g=Ma4(h.responsiveSize),Z;h=!((Z=h.responsiveMap)==null||!Z.some(function(M){return M.containerSize==="CONTAINER_SIZE_NARROW"&&M.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:E,sizing:g,enableFullBleedForSingleCol:!1,isCompactList:g==="COMPACT"&&h}};
HpM=function(h,E){return _.Jj(h.entities,"votingEntity",E)};
ep=function(h){if(h){var E;return((E=_.GF().resolve(_.pl(_.gu)))==null?0:E())?h.darkTheme:h.lightTheme}};
$LW=function(h,E){if(h.simpleText)return Object.assign({},h,{simpleText:Q1(h.simpleText,E)});if(!h.runs)return h;for(var g=Object.assign({},h,{runs:[]}),Z=0,M=_.G(h.runs),W=M.next();!W.done;W=M.next())if(W=W.value,W.text)if(Z+W.text.length<=E)g.runs.push(W),Z+=W.text.length;else return g.runs.push(Object.assign({},W,{text:Q1(W.text,E-Z)})),g;return h};
KvO=function(h,E){return _.Jj(h.entities,"chipBarStateEntity",E)};
OpN=function(h,E){return _.Jj(h.entities,"chipEntity",E)};
Xzz=function(h,E,g,Z){return function(){var M=n5x.has(h.displayType)&&h.selected,W=M&&h.deselectCommand?h.deselectCommand:h.tapCommand;!W||M&&Z||_.Tl(W,{form:{element:E==null?void 0:E.value}});g==null||g()}};
YOO=function(h){switch(h){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
si$=function(h,E){return{triggeringElement:h,onDwellTriggeredFn:function(){var g={triggeringElement:h,loadVideoPreviewEventData:E},Z=document.querySelector(".video-preview");Z&&Z.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:g}))},
onDwellEndFn:function(){var g=document.querySelector(".video-preview");g&&g.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
V$x=function(h,E){var g=_.GF().resolve(_.pl(Ve4)),Z=function(){var M=E();return g&&M?si$(h.value,M):null};
_.lX(function(){var M=Z();g&&M&&Promise.resolve().then(function(){g.registerElement(M)});
_.r9(function(){g&&M&&Promise.resolve().then(function(){_.sz(g,M)})})},"csPUge")};
yKW=function(h){var E=h.dataset.resizeObserverId;if(E)return E;E=""+ksN++;return h.dataset.resizeObserverId=E};
FvO=function(h,E){var g=yKW(h);qT.has(g)||qT.set(g,new Set);qT.get(g).add(E);fu.has(g)&&E(Object.assign({},{target:h},fu.get(g)))};
AK$=function(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=yKW(E.target),Z=Object.assign({},{target:E.target},fu.get(g));if(Z!=null&&Z.contentRect?Z.contentRect.width!==E.contentRect.width||Z.contentRect.height!==E.contentRect.height:1)for(fu.set(g,{borderBoxSize:E.borderBoxSize,contentBoxSize:E.contentBoxSize,contentRect:E.contentRect,devicePixelContentBoxSize:E.devicePixelContentBoxSize}),g=_.G(qT.get(g)||[]),Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z(E)}};
bpV=function(){return NT?NT:NT=new TvO(AK$)};
uHV=function(h,E){var g=yKW(h);qT.has(g)&&(qT.get(g).delete(E),qT.get(g).size===0&&(qT.delete(g),fu.delete(g),NT.unobserve(h),delete h.dataset.resizeObserverId));qT.size===0&&NT&&(NT.disconnect(),NT=void 0)};
hX4=function(h,E){var g=_.GF().resolve(aT);return Qi$.map(function(Z){return g.observe(h,E,Z)})};
EHz=function(h){var E=_.GF().resolve(aT);h.forEach(function(g){E.unobserveByKey(g)})};
_.Mwz=function(h,E){var g=Object.assign({},gHd,E);E=_.G(S$z());var Z=E.next().value,M=E.next().value,W=function(z){var c=z.contentRect.height;if((z=z.contentRect.width)||c||g.canHaveZeroSize)Z.width()===z&&Z.height()===c||M(Z,{height:c,width:z})};
_.vJ(function(){var z=h instanceof HTMLElement?h:h.value,c=ZRO(W,g.throttleMs),I=[];g.useVisibilityObserver&&(I=hX4(z,function(B,U){requestAnimationFrame(function(){U==="visible"?(FvO(z,c),bpV().observe(z)):uHV(z,c)})}));
I.length||(FvO(z,c),bpV().observe(z));_.r9(function(){I.length&&(EHz(I),I.length=0);uHV(z,c)})});
return Z};
pON=function(h,E,g,Z,M){h=E?h.switchOffCommand:h.switchOnCommand;if(Z&&M)W$x(h,g,M);else{var W,z;(W=_.F8({elementsCommand:h}))==null||(z=W.onclick)==null||z.call(W,g)}};
W$x=function(h,E,g){h=_.F8({elementsCommand:h,additionalCommandArgs:{commandController:{onSuccess:function(){g(!1)},
onServerError:function(){g(!1)}}}});
if(h==null?0:h.onclick)h.onclick(E),g(!0)};
zXz=function(h){if(h)return _.e(h,G4Z)};
ah$=function(h){if(!((h==null?0:h.entitySelectorType)&&(h==null?0:h.entityKey)))return{};switch(h.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.J("enable_web_shorts_captions_language_command")){var E;var g=(E=_.jv())==null?void 0:E.getOption("captions","track");var Z,M=typeof(g==null?void 0:g.translationLanguage)==="object"&&((Z=g.translationLanguage)==null?void 0:Z.languageName)||(g==null?void 0:g.displayName)||"";g=Object.assign({},!!M&&
{selectionText:{content:M}},!!M&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof(g==null?void 0:g.displayName)==="undefined"})}else g={};return g;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.J("web_shorts_audio_track_picker")){var W;Z=((W=_.jv())==null?void 0:W.getAudioTrack())||void 0;E=Z==null?void 0:(M=Z.getLanguageInfo())==null?void 0:M.getName();Z=Object.assign({},{selectionText:{content:E}},E&&!(Z==null?
0:(g=Z.getLanguageInfo())==null?0:g.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else Z={};return Z;default:return{}}};
c4q=function(h){var E=["A".toString(),"BUTTON".toString()];return function(g){var Z=function(M){_.$x(_.H3(M),g,E)||h(M)};
g.addEventListener("click",Z);return function(){g.removeEventListener("click",Z)}}};
iRa=function(h){return function(){return _.e(h(),_.te)}};
BzM=function(h,E,g){if(E)return[oHa];switch(h){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Sp];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return g?[Sp]:[IhZ,Sp];case "TRANSFER_STATE_PAUSED_BY_USER":return[RX$,Sp];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[PaO,Sp];default:return[oHa]}};
Uex=function(h,E,g,Z){return BzM(h,E,Z).map(function(M){var W=M.text,z=M.iconType,c=M.videoAction;M=M.playlistAction;W=W?{content:W}:void 0;z=z&&{sources:[{clientResource:{imageName:z}}]};var I=(0,_.Kt.unsafeClone)(g);if(I){var B=_.e(I,_.JU),U=_.e(I,_.ev);B&&c?B.action=c:U&&M&&(U.action=M)}return{title:W,leadingImage:z,rendererContext:I&&{commandContext:{onTap:{innertubeCommand:I}}}}})};
L$$=function(h){h=_.K4(h.rendererContext);var E;return(E=_.e(h,_.ev))==null?void 0:E.playlistId};
j3$=function(h){var E;return(E=h.listItems)==null?void 0:E.some(function(g){var Z;return _.Oz((Z=_.e(g,_.Dd))==null?void 0:Z.rendererContext)})};
J4$=function(h){var E;return(E=h.listItems)==null?void 0:E.some(function(g){var Z,M,W=(M=(Z=_.e(g,deO))==null?void 0:Z.defaultListItem)!=null?M:g;g=_.e(W,_.Dd);return!!_.e(g==null?void 0:g.leadingAccessory,Caq)})};
fha=function(h){var E=h.element;var g=h.veType;var Z=h.storedVisualElement===void 0?null:h.storedVisualElement;var M=h.elementIndex===void 0?0:h.elementIndex;h=h.clientYouTubeData;var W=_.sH();W!==eXa&&(q2W.clear(),eXa=W);if(E.visualElement&&q2W.has(E.visualElement))return null;if(Z&&q2W.has(Z))return E.visualElement=Z,null;g=_.tW(_.SQ(),{veType:g,elementIndex:M,clientYouTubeData:h});if(!g)return null;E.visualElement=g;q2W.add(g);return g};
_.x7=function(h,E,g,Z){g=g===void 0?null:g;Z=Z===void 0?R24:Z;var M=M===void 0?null:M;KL(function(){if(E){g instanceof Function&&(g=g());var W=fha({element:E,veType:h,storedVisualElement:g,clientYouTubeData:void 0});W&&(UYz(E,M),Z(W))}})};
wH=function(h,E){if(h){switch(E){case 0:h=h.primaryTitleColor;break;case 1:h=h.secondaryTitleColor;break;case 2:h=h.surgeColor;break;case 3:h=h.section2Color;break;case 4:h=h.section3Color;break;default:return}if(h)return _.bU(h)}};
Dq=function(h,E){if(h){switch(E){case 0:h=h.primaryTitleColor;break;case 1:h=h.secondaryTitleColor;break;case 2:h=h.surgeColor;break;case 3:h=h.section2Color;break;case 4:h=h.section3Color;break;default:return}if(h)return _.bU(h)}};
Nz$=function(h){return h?_.uU(h):""};
twV=function(h){return(h==null?void 0:h.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
S2u=function(h,E){return _.Jj(h.entities,"videoOverviewAsyncDataEntity",E)};
xe$=function(h,E){var g;return"linear-gradient(to bottom, "+((g=E==null?void 0:E.map(function(Z){var M=h?Z.darkThemeColor:Z.lightThemeColor;return M?_.uU(M)+" "+((Z==null?void 0:Z.startLocation)||0)*100+"%":"transparent"}))==null?void 0:g.join(", "))+")"};
wOa=function(h,E,g,Z,M){if(!((Z==null?0:Z.height)&&(Z==null?0:Z.width)))return{size:0};var W=Z.width;Z=Z.height;if(M)return E==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&W>Z?{size:312/P9q}:E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(g!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||h!==1&&h!==2||E!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&E!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&E!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(E==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||Z===W)switch(h){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Z>W)switch(h){case 1:case 3:return{size:240*RyM};default:return{size:360*RyM}}switch(h){case 1:case 2:return{size:1/P9q*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Deu=function(h){if(!("matchMedia"in window))return _.Fn(Error("Xh")),function(){return!1};
var E=window.matchMedia(h);h=_.G(_.Bm(E.matches,void 0,"jLJc8e"));var g=h.next().value,Z=h.next().value,M=function(W){Z(W.matches)};
E.addEventListener?(E.addEventListener("change",M),_.r9(function(){E.removeEventListener("change",M)})):E.addListener&&(E.addListener(M),_.r9(function(){E.removeListener(M)}));
return g};
lh$=function(h){return h==="IMAGE_BANNER_STYLE_INSET"||h==="IMAGE_BANNER_STYLE_UNKNOWN"};
r4$=function(){if(!("matchMedia"in window))return _.Fn(Error("Xh")),function(){return 0};
var h=HJ(function(){return window.matchMedia("(max-width: 527.9px)")}),E=HJ(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),g=HJ(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),Z=HJ(function(){return window.matchMedia("(min-width: 1024px)")}),M=_.G(_.Bm(h.matches,void 0,"og9kEc")),W=M.next().value,z=M.next().value;
M=_.G(_.Bm(E.matches,void 0,"ybDWCb"));var c=M.next().value,I=M.next().value;M=_.G(_.Bm(g.matches,void 0,"o0Gfh"));var B=M.next().value,U=M.next().value;M=_.G(_.Bm(Z.matches,void 0,"yqUUgd"));var L=M.next().value,d=M.next().value,C=HJ(function(){return function(v){z(v.matches)}}),q=HJ(function(){return function(v){I(v.matches)}}),w=HJ(function(){return function(v){U(v.matches)}}),r=HJ(function(){return function(v){d(v.matches)}});
_.vJ(function(){h.addEventListener?(h.addEventListener("change",C),E.addEventListener("change",q),g.addEventListener("change",w),Z.addEventListener("change",r)):h.addListener&&(h.addListener(C),E.addListener(q),g.addListener(w),Z.addListener(r));_.r9(function(){h.removeEventListener?(h.removeEventListener("change",C),E.removeEventListener("change",q),g.removeEventListener("change",w),Z.removeEventListener("change",r)):h.removeListener&&(h.removeListener(C),E.removeListener(q),g.removeListener(w),
Z.removeListener(r))})});
return function(){return W()?1:c()?2:B()?3:L()?4:0}};
meq=function(h){var E=0;h=_.G([h.title,h.metadata,h.actions,h.description,h.attribution]);for(var g=h.next();!g.done;g=h.next())g.value&&E++;return E};
vHu=function(h){return h===1||h===2?1:0};
$eq=function(h){h=(new HR$).parse(h);return(new eN).render(h).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(E){var g=E.split(":").map(Number),Z=0,M=0;if(g.length===3)g=_.G(g),Z=g.next().value,M=g.next().value,g=g.next().value;else if(g.length===2)g=_.G(g),M=g.next().value,g=g.next().value;else if(g.length===1)g=_.G(g).next().value;else throw Error("Yh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(Z*3600+M*60+g)+'" role="button">'+E+"</span>"})};
K$x=function(h){h=_.G(h.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var E=h.next(),g={};!E.done;g={clickHandler$jscomp$5:void 0},E=h.next()){E=E.value;g.clickHandler$jscomp$5=function(M){M=Number(M.target.getAttribute("data-time"));if(isNaN(M))throw Error("Zh");var W;(W=_.jv())==null||W.seekTo(M,!0)};
var Z=function(M){return function(W){W.key!=="Enter"&&W.key!=="Space"||(0,M.clickHandler$jscomp$5)(W)}}(g);
E.setAttribute("tabindex","0");E.removeEventListener("click",g.clickHandler$jscomp$5);E.removeEventListener("keydown",Z);E.addEventListener("click",g.clickHandler$jscomp$5);E.addEventListener("keydown",Z)}};
ORq=function(){return _.R("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.R(l1,{percentWidth:100}),_.R(l1,{animationDelay:200}),_.R(l1,{animationDelay:400}),_.R(l1,{animationDelay:600}),_.R(l1,{animationDelay:800,percentWidth:60}),_.R("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.R(l1,{percentWidth:100}),_.R(l1,{animationDelay:200}),_.R(l1,{animationDelay:400}),_.R(l1,{animationDelay:600,percentWidth:50}))};
l1=function(h){return _.R("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(h.percentWidth===void 0?100:h.percentWidth)+"%"},_.R("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(h.animationDelay===void 0?0:h.animationDelay)+"ms"}))};
nHO=function(){var h=_.G(_.Bm(function(){return""},void 0,"dXJHWc")),E=h.next().value;
return[function(){return E()()},
h.next().value]};
XOu=function(h,E){h=h?rK$(h):"";E!==void 0&&isFinite(E)?E===0?E=_.NH("UPDATING",void 0,"Updating..."):(E=glz(new Date(E),new Date),E=_.NH("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var g="";h&&E&&(g=" \u2022 ");return _.iV(h+g+E)};
VwV=function(h,E,g,Z,M,W){E=E===void 0?0:E;var z=Y2Z[E],c=z.title,I=z.iconType,B=z.topButtonRenderer,U=z.sectionClientVE;z=z.videoClientVE;var L;if(E!==1||h.length){g=[];h=_.G(h);for(Z=h.next();!Z.done;Z=h.next()){var d=Z.value;if(x8x(d))g.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:d.videoEntity.videoId,title:oY(d.videoEntity.title),shortBylineText:oY(d.channelEntity.title),thumbnail:d.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:d.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.NH("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}}}});else if(SUW(d)){Z=g;var C=Z.push;var q=void 0,w=void 0,r=void 0,v=void 0,H=void 0,u=void 0,k=void 0,y=void 0,A=d.mainPlaylistEntity.playlistId,E4=d==null?void 0:(y=d.mainPlaylistEntity)==null?void 0:(k=y.thumbnailStyleData)==null?void 0:(u=k[0])==null?void 0:(H=u.value)==null?void 0:(v=H.collageThumbnail)==null?void 0:v.coverThumbnail;v=GgV(A);if(!_.J("enable_offline_playlist_page")&&
(d==null?0:(r=d.mainPlaylistEntity)==null?0:r.videos)){b:{r=d==null?void 0:(w=d.mainPlaylistEntity)==null?void 0:w.videos;w=_.Gv().getState().entities;if(r!=null&&r.length&&w)for(r=_.G(r),H=r.next();!H.done;H=r.next())if(H=_.Bn(H.value).entityId,(H=JSON.parse(H).videoId)&&Lwa(w,H)==="TRANSFER_STATE_COMPLETE"){w=H;break b}w=""}w!==void 0&&(v=Ty(_.Gv().getState(),w),v=_.cn(w,A,void 0,void 0,v))}w=aLZ(_.NH("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),GgV(A));d=A&&E4&&w?{playlistId:A,navigationEndpoint:v,
viewPlaylistText:w,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:E4}},title:oY(d.mainPlaylistEntity.title),shortBylineText:oY(d==null?void 0:(q=d.channelEntity)==null?void 0:q.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:s3d,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:A,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.NH("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:z}}}:
void 0;C.call(Z,{gridPlaylistRenderer:d})}}z={gridRenderer:{items:g}};E===1&&(L=XOu(M,W))}else if(Z){var iO=_.iV((C=g==null?void 0:g.localizedPromptMessage)!=null?C:"");z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iV(_.NH("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.ymN}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iV(_.NH("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=XOu(M,W)}else iO=_.iV(_.NH("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
z={};return{contents:[{shelfRenderer:{title:c,titleAnnotation:L,icon:{iconType:I},subtitle:iO,content:z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:B}]}}}}],loggingDirectives:{clientVeSpec:{uiType:U}}}};
k4$=function(h,E,g,Z,M,W,z,c,I,B,U){g=g===void 0?{}:g;Z=Z===void 0?{}:Z;M=M===void 0?!1:M;W=W===void 0?!1:W;z=z===void 0?!1:z;c=c===void 0?!1:c;I=I===void 0?!1:I;B=B===void 0?0:B;U=U===void 0?-Infinity:U;if(!(E.length||h.length||M||c))return W?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:dLM(g)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.iV(_.NH("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var L=[];h.length&&L.push(VwV(h,0));c?L.push({contents:[{statementBannerRenderer:fxz(I,Z)}]}):M?L.push(VwV(E,1,g,z,B,U)):W&&L.push({contents:[{statementBannerRenderer:JKx(g)}]});(M&&E.length||h.length)&&L.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iV(_.NH("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return L.map(function(d){return{itemSectionRenderer:d}})};
rH=function(h,E){if(typeof h!=="object")return null;h=_.G(Object.entries(h));for(var g=h.next();!g.done;g=h.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;if(g===E)return g;if(Z=rH(Z,E))return g+"."+Z}return null};
mq=function(h){var E=h.content;return(h=h.styleRuns)&&E?{runs:h.map(function(g){var Z={text:E.slice(g.startIndex,g.startIndex+g.length)};g.fontColor&&(Z.textColor=g.fontColor);return Z})}:{simpleText:E}};
A4O=function(h,E,g,Z){var M=y4$;Z&&(h.quantity=Z);if(!h.quantity||!h.maxQuantity)return{};Z=h.minusButton;var W=h.plusButton,z,c,I,B;return{value:h.quantity,maxValue:h.maxQuantity,onChangeCallback:function(U){M(h,U)},
minusLabel:(z=_.e(Z,F$O))==null?void 0:z.label,minimumReachedLabel:(c=_.e(Z,F$O))==null?void 0:c.limitReachedLabel,plusLabel:(I=_.e(W,F$O))==null?void 0:I.label,maximumReachedLabel:(B=_.e(W,F$O))==null?void 0:B.limitReachedLabel,disabled:E,onRemoveCommand:g}};
y4$=function(h,E){var g=h.quantityIncrementerEntityKey;if(g){var Z={};Z.quantity=E;_.Gl(_.vg("quantityIncrementerEntity",g,Z));h.onChangeCommand&&_.Tl(h.onChangeCommand)}};
Tz$=function(h){return h?h===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(h).overflowY)?h:Tz$(h.parentElement):null};
Q3z=function(h,E){(h=bR4(h))&&((_.J("enable_mini_app_command_handler_mweb_fix")?0:E)?uIz.push({command:h,sourceData:{},commandContext:void 0}):_.GF().resolve(_.zF).resolveCommand(h))};
bR4=function(h){return _.e(h,_.V1)};
hUN=function(){var h=window.performance.timeOrigin+window.performance.now(),E=(new _.Hg).setSeconds(h/1E9);return _.hL(E,2,_.MZ(h%1E9),0)};
gha=function(h,E){var g;h=(g=_.e(_.e(h,_.V1),EhV))==null?void 0:g.methodName;var Z,M;(g=window.youtubewebview||((Z=window.webkit)==null?void 0:(M=Z.messageHandlers)==null?void 0:M.youtubewebview))&&h&&(Z=new $7,h=_.ln(Z,1,h),h=_.lJ(h.JSC$12396_serializeBinary()),E=_.lJ(E),g.postMessage(h+","+E))};
Ku=function(h,E){var g=_.e(_.e(h,_.V1),EhV);g&&(E&&(g.serializedAdditionalMetadata=_.lJ(E)),Q3z(h,!0))};
ZyZ=function(h){switch(h){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"}};
MZz=function(){return!!_.nF("ID_TOKEN")};
Gzz=function(h){return h instanceof Error&&h.cause instanceof WGM&&h.cause.rpcErrorCode!==void 0?!pd4.includes(h.cause.rpcErrorCode):!0};
aQZ=function(){return _.hl(zUz,{authuser:""+(_.nF("SESSION_INDEX")||0)})};
Oa=function(h,E,g,Z){g=g===void 0?"MINI_APP_SDK_API_UNSPECIFIED":g;Z=Z===void 0?"":Z;var M=new _.xX;g={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:Z,sdkApi:g};h instanceof Error&&(M.message=h.message,M.name=h.name,h.cause instanceof WGM&&h.cause.rpcErrorCode!==void 0&&(g.rpcErrorCode=h.cause.rpcErrorCode));var W;(W=E.onError)==null||W.call(E,{loggingError:M,metadata:g})};
iyN=function(h,E,g,Z){switch(h){case "MINI_APP_SOURCE_GAMESNACKS":return new nu(E,g,Z);default:return new cHx(E,g,Z)}};
ohu=function(h){switch(h){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"}};
IQz=function(h){switch(h){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"}};
RUM=function(h){switch(h){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"}};
PWz=function(){return Math.floor(Math.random()*4)+1};
BFd=function(h,E,g,Z){h=_.G(Object.entries(h));for(var M=h.next(),W={};!M.done;W={message$jscomp$993:void 0},M=h.next()){var z=_.G(M.value);M=z.next().value;z=z.next().value;W.message$jscomp$993=z;E.push(setTimeout(function(c){return function(){Z(!1);g(c.message$jscomp$993.text)}}(W),W.message$jscomp$993.delayMs));
Number(M)>0&&E.push(setTimeout(function(){Z(!0)},W.message$jscomp$993.delayMs-400))}};
UUu=function(h,E){var g=g===void 0?R24:g;_.J("mweb_fix_monitor_visibility_after_render")?h&&KL(function(){UYz(h,E,g)}):KL(function(){UYz(h,E,g)})};
LGz=function(h,E){var g=document.createElement("ytd-engagement-panel-section-list-renderer");g.data=h;if(E==null?0:E.isPersistentPanel)g.isPersistentPanel=!0;return g};
JH$=function(h){jcM||(jcM=dU$(new _.Q7(1,void 0,void 0,CWM),0));var E=jcM.format(Math.floor(h));E=bV==="be"||bV==="bg"||bV==="es"||bV==="et"||bV==="hu"||bV==="ka"||bV==="lv"||bV==="pl"||bV==="pt-PT"||bV==="sq"?E.replace(new RegExp("^(\\d)"+CWM.GROUP_SEP.replace(".","\\.")+"(\\d+("+CWM.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):E;return h>=1E3&&h<=9999&&E[1]==="."&&(bV==="sl"||bV==="it")?E.replace(".",""):E};
eUq=function(h,E){mtO("ytd-button-renderer",{data:h,className:E?E.className:"",overrides:E==null?void 0:E.buttonOverrides},vwV)};
NFq=function(h,E,g,Z){if(h)return Z=Z||h.likeStatus,E?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="LIKE",isDisabled:!h.likesAllowed,defaultIcon:{iconType:g},defaultText:Z==="LIKE"?h.likeCountWithUnlikeText:h.likeCountText,toggledText:Z==="LIKE"?h.likeCountText:h.likeCountWithLikeText,defaultNavigationEndpoint:qTZ(h,"LIKE"),defaultServiceEndpoint:fQz(h,"LIKE"),toggledServiceEndpoint:fQz(h,"INDIFFERENT"),defaultTooltip:_.Wp(h.likeCountTooltipText),toggledTooltip:_.Wp(h.likeCountTooltipText),
targetId:h.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:Z==="DISLIKE",isDisabled:!h.likesAllowed,defaultIcon:{iconType:g},defaultText:Z==="DISLIKE"?h.dislikeCountWithUndislikeText:h.dislikeCountText,toggledText:Z==="DISLIKE"?h.dislikeCountText:h.dislikeCountWithDislikeText,defaultNavigationEndpoint:qTZ(h,"DISLIKE"),defaultServiceEndpoint:fQz(h,"DISLIKE"),toggledServiceEndpoint:fQz(h,"INDIFFERENT"),defaultTooltip:_.Wp(h.dislikeCountTooltipText),
toggledTooltip:_.Wp(h.dislikeCountTooltipText)}};
qTZ=function(h,E){if(E==="LIKE")return h.likeCommand;if(E==="DISLIKE")return h.dislikeNavigationEndpoint};
fQz=function(h,E){var g;return(g=h.serviceEndpoints)==null?void 0:g.find(function(Z){var M;return((M=_.e(Z,_.XD))==null?void 0:M.status)===E})};
_.xUx=function(h,E,g){return window.spf&&!_.J("web_disable_spfjs_client")?tZV(h,E,g):ST$(h,E)};
tZV=function(h,E,g){var Z=null,M=(new _.jM(function(W,z){var c={};if(E){c.method=E.method;var I=E.postParams||{};E8u(h,E)&&(I[_.nF("XSRF_FIELD_NAME")]=_.nF("XSRF_TOKEN"));c.postData=_.Cl(I);E.type&&(c.type=E.type);I=E.headers}c.headers=ATa(h,I);_.J("debug_forward_web_query_parameters")&&(h=_.QaO(h,window.location.search));c.experimental_headers=c.headers;c.onError=function(B){B.err&&B.xhr&&(B.err.params={url:B.xhr.responseURL,response:B.xhr.responseText.substr(0,64)});z(B.err)};
c.onPartDone=function(B){g&&g.call(null,B.part)};
c.onDone=function(B){var U=wdz(B.response,"xsrf_token");ZV(window.location.href,h)&&U&&_.OW("XSRF_TOKEN",U);if(U=wdz(B.response,"service_worker_killswitch"))_.OW("SERVICE_WORKER_KILLSWITCH",U),bHM();W(B.response)};
Z=spf.request(h,c)})).then(DUM);
M.thenCatch(function(W){var z=W instanceof _.Y7,c=W&&W.hasOwnProperty("params")&&W.params.response?W.params.response:"";W instanceof Error&&(c?z?$IV(W):c===')]}\'\n{"reload":"now"}'?$IV(W):(lQz(W,h,c),rHM(W,c)?_.O$(W):_.$W(W)):$IV(W));Z&&Z.abort()});
return M};
DUM=function(h){if(h.type==="multipart"){var E=h.timing;h=h.parts.reduce(function(g,Z){Object.assign(g,Z);return g},{});
h.timing=h.timing||{};Object.assign(h.timing,E);h.type="reduced"}return h};
ST$=function(h,E){E=E===void 0?{}:E;var g=null,Z=new _.jM(function(M,W){E.onFinish=function(z){if(z.readyState===XMLHttpRequest.DONE)if(z.status===200){if(z.responseType!=="json"){var c=z.response;c.substring(0,5)===")]}'\n"&&(c=c.substring(5));try{var I=JSON.parse(c)}catch(B){I=B}}else I=z.response;I instanceof Error?W(I):(c=wdz(I,"xsrf_token"),ZV(window.location.href,h)&&c&&_.OW("XSRF_TOKEN",c),z=z.responseURL,window.performance&&window.performance.getEntriesByName?(c=window.performance.getEntriesByName(z).pop())?
z={responseStart:(0,_.zn)()-(c.responseEnd-c.responseStart)}:(Math.random()<.01&&(c=Error("ki"),c.params=z,_.O$(c)),z={responseStart:-1}):z={responseStart:0},I.timing=I.timing||{},Object.assign(I.timing,z),M(I))}else W(Error("ji`"+z.status))};
(g=_.df(h,E))||W(Error("ji`"+g.status))});
Z.thenCatch(function(M){M instanceof Error&&(lQz(M,h),rHM(M)&&(M.level="WARNING"))});
_.J("cancel_pending_navs")&&Z.thenCatch(function(){g.abort()});
return Z};
wdz=function(h,E){var g=h[E],Z=h.parts;h.type==="multipart"&&Z&&(g=(h=Z.find(function(M){return E in M}))&&h[E]);
return g};
lQz=function(h,E,g){var Z=h.message||"";E={original:Z,url:E};if(g)if(Z=Z.match(/position:?\s*(\d+)/)){Z=Z&&Number(Z[1])?Number(Z[1]):0;var M=Math.max(Z-25,0);E.position=Z;E.response=g.substring(M,Z+25)}else E.response=g.substring(0,50);_.nI(h,E);try{h.message="JSON parse error"}catch(W){}};
rHM=function(h,E){h=h.message||"";h=!!(h.indexOf("<")>=0||h.indexOf("end of ")>=0||h.indexOf("Unterminated string")>=0||h.indexOf("Unexpected EOF"));if(!h&&E)for(var g=E.length,Z=!1,M=0;M<g;M++)if(Z&&E[M]==="\\")M++;else if(E[M]==='"')Z=!Z;else if(E[M]==="<"&&!Z){h=!0;break}return h};
mU4=function(){return document.documentElement.hasAttribute("dark")};
_.vhu=function(h,E){if(h!=="GFEEDBACK"&&h!=="GUIDED_HELP")_.Vy(Error("li`"+h));else{var g=_.GF().resolve(_.pl(_.p4));if(g&&(g=g.getCurrentPage())&&g.getServiceTrackingParams&&(g=g.getServiceTrackingParams()))for(var Z=0,M;M=g[Z++];)if(M.service===h){if(h=M.params)for(g=0;Z=h[g++];)E[Z.key]=Z.value;break}}};
_.Hyq=function(h){var E=_.zD();E&&(E=E.getPlayer())&&(E.pauseVideo(),h.playback_id=E.getVideoData().cpn,h.eid=E.getVideoData().eventId,Object.assign(h,E.getFeedbackProductData()))};
$UV=function(){var h={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.nF("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(h.enableAnonymousFeedback=!0);_.nF("SESSION_INDEX")&&(h.authuser=String(_.nF("SESSION_INDEX")));_.J("enable_pageid_for_feedback")&&_.nF("DELEGATED_SESSION_ID")&&(h.pageId=String(_.nF("DELEGATED_SESSION_ID")));return h};
_.sa=function(h){_.J("enable_ypc_spinners")&&_.BX(h,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},h])};
_.VK=function(h){_.J("enable_ypc_spinners")&&_.BX(h,"yt-close-popup-action",["yt-loading-renderer"])};
KGd=function(h){return new Promise(function(E,g){_.y1({verifyCommand:{recaptchaToken:h.recaptchaResponse}},{commandController:{onSuccess:function(Z,M){M||g("ChallengeService did not return a response.");var W;E({challengeCompleted:(W=M.verified)!=null?W:!1})},
onServerError:function(Z,M){g(M)}}})})};
Oya=function(h,E,g,Z){E({recaptchaResponse:Z}).then(function(M){M.challengeCompleted?_.Nd()?(g(3),_.GF().resolve(_.zF).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:h}})):g(2):g(4)},function(){g(4)})};
Xd$=function(h,E,g){_.bC(_.BR(nhq,_.nF("HL")),function(){var Z;(Z=window.grecaptcha)==null||Z.ready(function(){var M=window.grecaptcha;M?(g(M.render(h,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Oya.bind(null,h,KGd,E)})),E(1)):E(4)})})};
YTq=function(h,E){return function(){switch(E()){case 0:return h().captchaLoadingMessage;case 1:return h().challengeReason;case 3:return h().captchaSuccessfulMessage;case 2:return h().captchaCookieSetFailureMessage;case 4:return h().captchaFailedMessage;default:return h().challengeReason}}()};
_.k7=function(){if(!scx){var h=document.querySelector("#player.skeleton");h&&(_.f8(h),scx=!0)}};
_.kzM=function(){return VZM=bJx()};
AHZ=function(){return _.a(function(h){return yH$!==void 0?h.return():h.yield(FGO(),0)})};
FGO=function(){return _.a(function(h){if(h.nextAddress==1)return h.yield(QqV(),2);VZM=h.yieldResult;yH$=_.KP.addLowPriorityJob(FGO,5E3);_.SK(h)})};
EvW=function(h){var E=E===void 0?TF$:E;var g,Z,M=(g=h.responseContext)==null?void 0:(Z=g.mainAppWebResponseContext)==null?void 0:Z.trackingParam;if(!M){E.increment("MISSING");var W,z,c,I,B,U;_.O$(new _.xX("282054944_a",{f9u:!!((W=h.responseContext)==null?0:(z=W.mainAppWebResponseContext)==null?0:z.loggedOut),vgU:((c=h.responseContext)==null?void 0:c.mainAppWebResponseContext)===void 0,uRq:h.responseContext===void 0,cp:(I=h.playabilityStatus)==null?void 0:I.contextParams,ncc:(((B=h.streamingData)==
null?void 0:B.formats)||[]).length>0,i5b:(((U=h.streamingData)==null?void 0:U.adaptiveFormats)||[]).length>0,os:!!h.offlineState,cotn:h.cotn}));return 2}g="";try{g=bya(M)}catch(C){return E.increment("C_ERROR"),_.$W(C),2}try{var L=_.uoa(g);var d=Qcu(L)}catch(C){return E.increment("P_ERROR"),_.$W(C),2}d=_.aD(d,h0a,1,_.ch());M=[];d=_.G(d);for(L=d.next();!L.done;L=d.next())Z=L.value,L=Z.getPath(),g=(0,_.Kt.getValueByKeys)(h,L.split(".")),g=String(g===void 0||g===null?"":g),Z=Z.getValue()||"",W=/[+\-\/_]/g,
g.replace(W,"")!==Z.replace(W,"")&&(E.increment("MISMATCH"),_.J("ab_mis_log_err")&&(g=new _.xX("282054944_p",{cPA:L,g:String(g),e:String(Z)}),_.$W(g)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(L)||(L.match(/enforcementMessageViewModel/i)?M.push(3):M.push(2)));if(M.length>0)return Math.max.apply(Math,_.$E(M));E.increment("SUCCESS");return 1};
MHa=function(h){var E=new yK;if(h.interpreterJavascript){var g=_.wbZ(h.interpreterJavascript);g=Wn4(g).toString();var Z=new gv4;_.ln(Z,6,g);_.fM(E,1,Z,Dl)}else h.interpreterUrl&&(g=_.OY(h.interpreterUrl),g=_.lx(g).toString(),Z=new _.ZBx,_.ln(Z,4,g),_.fM(E,2,Z,Dl));h.interpreterHash&&_.FD(E,3,h.interpreterHash,Dl);h.program&&_.FD(E,4,h.program,Dl);h.globalName&&_.FD(E,5,h.globalName,Dl);h.clientExperimentsStateBlob&&_.FD(E,7,h.clientExperimentsStateBlob,Dl);return E};
Ae=function(h){var E={};h=_.G(h.split("&"));for(var g=h.next();!g.done;g=h.next())g=g.value.split("="),g.length===2&&(E[g[0]]=g[1]);return E};
W3a=function(h){return Number(h.t)||7200};
SWz=function(){if(_.J("bg_st_hr"))return"havuokmhhs-0";var h,E=((h=globalThis.performance)==null?void 0:h.timeOrigin)||0;return"havuokmhhs-"+Math.floor(E)};
pH$=function(){return new Promise(function(h){var E=window;E.ntpevasrs!==void 0?h(new TK(E.ntpevasrs)):(E.ntpqfbel===void 0&&(E.ntpqfbel=[]),E.ntpqfbel.push(function(g){h(new TK(g))}))})};
G0x=function(h){var E=h.i7h.bind(h);_.Wu("yt.aba.att",E);h=h.rOD.bind(h);_.Wu("yt.aba.att2",h)};
ag$=function(h){switch(_.jy(h.input)){case _.zv(z0N):var E={};return E.encryptedVideoId=h.innerTubeRequest.externalVideoId,E}return{}};
ovd=function(h){switch(_.jy(h.input)){case _.zv(z0N):if(_.J("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.zv(cqO):if(_.J("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.zv(b1):if(_.J("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&h.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.zv(iBZ):var E,g;if(_.J("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((g=_.e((E=h.config)==null?void 0:E.command,G2z))==null?0:g.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.R0N=function(h){var E;if(h.playlistVideoRenderer&&((E=h.playlistVideoRenderer)==null?0:E.engagementBar))return Igz(h.playlistVideoRenderer.engagementBar);if(_.e(h,u1)){var g;if(h=(g=_.e(h,u1))==null?void 0:g.engagementBar)return Igz(h)}return""};
Igz=function(h){if(!h)return"";h=_.e(h,_.PDN);if(h==null||!h.actions)return"";h=_.G(h.actions);for(h=h.next();!h.done;h=h.next()){h=_.e(h.value,_.B0x);var E=void 0;if((E=h)==null||!E.itemId)break;return h.itemId}return""};
_.U7Z=function(h){var E;if(h.playlistVideoRenderer&&((E=h.playlistVideoRenderer)==null?0:E.videoId))return h.playlistVideoRenderer.videoId;if(_.e(h,u1)){var g,Z;if(h=(g=_.e(h,u1))==null?void 0:(Z=g.playlistItemData)==null?void 0:Z.videoId)return h}return""};
_.L3O=function(h){var E;if(h.playlistVideoRenderer&&((E=h.playlistVideoRenderer)==null?0:E.voteCount))return h.playlistVideoRenderer.voteCount;if(_.e(h,u1)){var g,Z;if(h=(g=_.e(h,u1))==null?void 0:(Z=g.playlistItemData)==null?void 0:Z.voteCount)return h}return 0};
_.QK=function(h,E){return _.Jj(h.entities,"flowStateEntity",E)};
d7O=function(h,E,g,Z){var M=void 0;h=_.G(h[E.iconName]||[]);for(var W=h.next();!W.done;W=h.next()){W=W.value;var z=E.iconSize;var c=E.iconStyle;z=!z||z===W[2];var I=jsa[W[0]];Z&&Z!==W[1]||!z||c&&c!==I?c=!1:M?(c=jsa[W[0]],c=!!E.iconStyle||c==="youtube_outline",z=M.version<=W[1],c=(!!E.iconSize||W[2]===24)&&c&&z):c=!0;c&&(M={name:E.iconName,style:jsa[W[0]],size:W[2],version:W[1],allowMirroring:!!W[3],url:g(E.iconName,W)})}return M};
CD$=function(h,E,g,Z){return h+(""+jsa[g[0]]+((Z===void 0?0:Z)?"_experimental":"")+"/"+E+"/v"+g[1]+"/")+(g[2]+"px.svg")};
Jqa=function(h){return _.nF("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.nF("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":h};
e0W=function(h,E){return CD$("https://fonts.gstatic.com/s/i/",h,E)};
qS4=function(h,E){return CD$("https://fonts.gstatic.com/s/i/",h,E,!0)};
fga=function(h,E){return CD$("https://www.gstatic.com/youtube/img/icons/web/",h,E)};
tHz=function(h){var E=h.enabled;var g=h.itemPlaybackModel;var Z=h.thumbnailElRef;var M=h.containerElRef;var W=h.options;var z;_.lX(function(){var c=M==null?void 0:M.value;var I,B=(I=Z())==null?void 0:I.value;I=g();var U=W();if(E&&I&&c&&B&&(U==null?0:U.thumbnail)){var L={data:I,hostElement:c},d,C,q=_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover")?[].concat(_.$E((d=U.thumbnailOverlays)!=null?d:[]),_.$E((C=I.overlays)!=null?C:[])):U.thumbnailOverlays||[],w,r;c={mediaRenderer:L,
lockupElement:c,thumbnailElement:B,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.kB((w=I.inlinePlayerData)==null?void 0:w.onVisible),navigationEndpoint:_.kB((r=I.inlinePlayerData)==null?void 0:r.onSelect),thumbnail:U.thumbnail,thumbnailOverlays:q,accessibilityText:U.accessibilityText||""},thumbnailSize:U.thumbnailSize,enableRounding:U.enableRounding}}}else c=void 0;if(w=c){var v;(v=z)==null||hN(v);z=Yx(w);var H,u;((H=g())==null?0:(u=H.inlinePlayerData)==null?0:u.forceImpAutoplay)&&
N0Z(z)}},"B33dEc");
_.r9(function(){var c;(c=z)==null||hN(c)})};
SSz=function(h){h=atob(h);for(var E=[],g=0;g<h.length;g++)E.push(h.charCodeAt(g));return new Blob([new Uint8Array(E)],{type:"image/png"})};
wHW=function(h,E,g,Z){Z=Z===void 0?"INSERTION_POSITION_UNSPECIFIED":Z;return h({targetId:E},function(M){var W,z=(W=M.contents)!=null?W:[];W=g!=null?g:[];var c=x7d(z);switch(Z){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},M,{contents:[].concat(_.$E(z.slice(0,c)),_.$E(W),_.$E(z.slice(c+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},M,{contents:[].concat(_.$E(W),_.$E(z))});case "INSERTION_POSITION_LAST":return Object.assign({},M,{contents:[].concat(_.$E(z),_.$E(W))});
default:return M}})};
lgu=function(h,E,g,Z,M){M=M===void 0?"RELATIVE_INSERTION_POSITION_AFTER":M;return h({targetId:E},function(W){var z,c=(z=W.contents)!=null?z:[];z=D7N(c,g);if(z<0)return W;z=M==="RELATIVE_INSERTION_POSITION_BEFORE"?z:z+1;return Object.assign({},W,{contents:[].concat(_.$E(c.slice(0,z)),_.$E(Z),_.$E(c.slice(z)))})})};
x7d=function(h){var E=h.findIndex(function(g){return _.e(g,_.Ec)});
return E>=0?E:h.length};
D7N=function(h,E){return h.findIndex(function(g){a:{g=_.G(Object.values(g));for(var Z=g.next();!Z.done;Z=g.next())if((Z=Z.value)&&Z.targetId){g=Z.targetId;break a}g=""}return g===E})};
m7W=function(h,E,g){return h({targetId:E},function(Z){var M,W=(M=Z.contents)!=null?M:[];return Object.assign({},Z,{contents:rqa(W,g)})})};
rqa=function(h,E){return h.filter(function(g){var Z=E.includes;a:{g=_.G(Object.values(g));for(var M=g.next();!M.done;M=g.next())if((M=M.value)&&M.targetId){g=M.targetId;break a}g=""}return!Z.call(E,g||"")})};
_.vvM=function(h,E){return{engagementPanelSectionListRenderer:{panelIdentifier:h,identifier:E,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
HB4=function(h,E){h=h.getAvailableAudioTracks();if(h.length)return h==null?void 0:h.find(function(g){var Z;return(g==null?void 0:(Z=g.getLanguageInfo())==null?void 0:Z.getId())===E})};
_.K3q=function(h){var E,g=(E=h.getOption("captions","tracklist",{includeAsr:!0}))!=null?E:[];return g=$7N(g,h)};
OBV=function(h){return h.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
$7N=function(h,E){E=OBV(E);if(E==null||!E.length)return h;var g=E.filter(function(z){return z});
E=h.filter(function(z){return z.languageCode.startsWith("en")});
g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,E.length){var M=E[0],W=Object.assign({},M);M.languageCode!==Z.languageCode&&(W.displayName=M.languageName+" >> "+Z.languageName,W.translationLanguage=Z,h.push(W))}return h};
nv$=function(h,E,g){h=_.K3q(h);if(h.length)return g?h.find(function(Z){if(typeof(Z==null?void 0:Z.translationLanguage)==="object"){var M;return((M=Z.translationLanguage)==null?void 0:M.languageCode)===E}return!1}):h==null?void 0:h.find(function(Z){return Z.languageCode===E})};
XH4=function(h){return h.getOption("captions","tracklist",{includeAsr:!0})};
YSu=function(h){var E=h.getAvailableAudioTracks();if(E!=null&&E.length){var g=h.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.$E(E.map(function(Z){return{listItemViewModel:{title:{content:Z.getLanguageInfo().getName()},isSelected:Z.getLanguageInfo().getId()===(g==null?void 0:g.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:Z.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
ssW=function(h){return h.getOption("captions","tracklist",{includeAsr:!0})};
VHO=function(h){var E=ssW(h);if(E==null?0:E.length)return E;h.loadModule("captions");return ssW(h)};
k0x=function(h){var E=h.getOption("captions","track");if(E)return E;h.loadModule("captions");return h.getOption("captions","track")};
F3u=function(h){var E=VHO(h);if(E!=null&&E.length){var g=k0x(h),Z;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.NH("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(g==null?0:g.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.$E(E.map(function(M){return{listItemViewModel:{title:{content:M.displayName},
isSelected:M.displayName===(g==null?void 0:g.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:M.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.NH("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!g.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!g.translationLanguage&&{selectionText:{content:(g==null?void 0:(Z=g.translationLanguage)==null?void 0:Z.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[yqz(h)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
yqz=function(h){var E=OBV(h);if(E==null||!E.length)throw Error("Ki");var g=k0x(h);h=E.filter(function(Z){return!Z.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.$E(h.map(function(Z){var M;return{listItemViewModel:{title:{content:Z.languageName},isSelected:Z.languageName===(g==null?void 0:(M=g.translationLanguage)==null?void 0:M.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:Z.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
u7d=function(h){return new Promise(function(E,g){if(h===void 0)_.$W(Error("Oi"),"ERROR"),g(Error("Oi"));else{g=new _.Aqz;var Z=_.T0q();g=g.init();var M=_.bBO(_.nF("YPC_MB_URL"),!0);Promise.all([g,M]).then(function(){var W=_.gE.payments.business.integration.ClientTokenFactory.createClientToken(h,Z);E(W)})}})};
EQV=function(h,E,g,Z,M,W,z){var c=_.hU();g=g.replace(/-/g,"+").replace(/_/g,"/");var I=_.xe().get("hl"),B=_.Zt(_.p3),U=E==null?void 0:E.element;U&&_.sa(U);QsZ(E,!0);_.hx4(B,g,c.resolve,function(){U&&_.VK(U)},function(L){U&&_.VK(U);
c.reject(L)},I,Z?function(L){Z&&_.QQ(h,Z,{backend_analytics:L})}:void 0,c.resolve,M,W,z);
return c.promise};
QsZ=function(h,E){!(h=h==null?void 0:h.element)||h.tagName!=="YT-BUTTON-RENDERER"&&h.tagName!=="YTD-BUTTON-RENDERER"||(h.disabled=E)};
gQ4=function(){var h=_.NH("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.iV(h),actionButton:{buttonRenderer:UL$()}}},popupType:"TOAST"}};
Zhd=function(){var h=_.NH("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.iV(h),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
M2Z=function(h){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:h}]}}};
Mh=function(h,E,g,Z){var M;return _.a(function(W){if(W.nextAddress==1)return _.CX(W,2),W.yield(h,4);if(W.nextAddress!=2)return(M=_.rZ(E.getState().entities).length>0)?W.return({title:_.iV(_.NH("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.iV(_.NH("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Bvd()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
W.return(LvV(g,Z));_.th(W);return W.return(LvV(g,Z))})};
W6d=function(h,E){return E?E==="PPSV"||C_z(h,E):!1};
p7$=function(h){h.responseContext||(h.responseContext={});h.responseContext.maxAgeSeconds=0;return h};
p$=function(h){var E;return _.a(function(g){return g.nextAddress==1?g.yield(GXq(h,"service:topbar:fallback"),2):(E=g.yieldResult)&&_.Ww(E)?g.return(p7$(_.Ww(E))):g.return()})};
zxZ=function(h){var E;return _.a(function(g){return g.nextAddress==1?g.yield(GXq(h,"service:downloads_settings:fallback"),2):(E=g.yieldResult)&&_.Ww(E)?g.return(E):g.return()})};
GXq=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)return h?Z.yield(h.get(E),2):Z.return();g=Z.yieldResult;return!g||!_.Ww(g)||!isNaN(Number(g.data.expireTimestampMs))&&g.isExpired()?Z.return():Z.return(g)})};
anN=function(h){var E=_.GF().resolve(G5).getState().entities;return h.playlistId?W6d(E,h.playlistId):!1};
cFa=function(h,E){var g;if(E==null?0:(g=E.requestTemplate)==null?0:g.panelId)h.panelId=E.requestTemplate.panelId;var Z;if(E==null?0:(Z=E.requestTemplate)==null?0:Z.params)h.params=E.requestTemplate.params};
oQ$=function(){if(ihW)return ihW();var h=!_.J("idb_response_store_auth_killswitch"),E={};ihW=Gn("yt-it-response-store",{objectStores:(E.ResponseStore={addedAtVersion:1},E),shared:!h,upgrade:function(g,Z){Z(1)&&(g=kL(g,"ResponseStore",{keyPath:["key","clientName"]}),ya(g,"byExpiration","expireTimestampMs"),ya(g,"byInterface","clientName"))},
version:1});return ihW()};
InW=function(h){return _.Qn(oQ$(),h)};
PRu=function(h,E){var g;return _.a(function(Z){return Z.nextAddress==1?Z.yield(_.pP(),2):(g=Z.yieldResult)?Z.return(new Rxx(h,E,g)):Z.return()})};
B7u=function(h){var E=Object.keys(h)[0];if(E)return h.screenExit&&(E=E+";"+h.screenExit.screen),E};
Uk$=function(h){var E=new Map;h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,g!=null&&(E.has(g.taskType)||E.set(g.taskType,[]),E.get(g.taskType).push(g));return E};
L6V=function(h){h=[].concat(_.$E(h)).sort(function(g,Z){return g-Z});
var E=Math.floor(h.length/2);return h.length%2?h[E]:(h[E-1]+h[E])/2};
CRM=function(h,E){h=h===void 0?JUV:h;E=E===void 0?{}:E;_.Wu("yt.logging.errors.log",_.$W);dIO();j7x(tvM(),E);window.onerror=h;dkd=CvO;window.addEventListener("unhandledrejection",function(g){if(g.reason instanceof Error){var Z=g.reason;_.nI(Z,{source:"unhandledrejection"});Z.name==="AbortError"&&(Z.level="WARNING")}CvO(g.reason);g.preventDefault()})};
_.JFa=function(h){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO,RW,NN,Cd,Ba,$$,Ha,zf,eF,Rm,bO,jF,PM,ll,xU,pU,pd;return _.a(function(gB){if(gB.nextAddress==1)return gB.yield(_.SD(h,{mode:"readonly",enableRetries:!0},function(CD){return x8(CD,"playbackData").then(function(E0){var Im=E0.map(function(cM){return cM.transfer}).filter(function(cM){return!!cM}),Qk=E0.map(function(cM){return cM.offlineVideoPolicy}).filter(function(cM){return!!cM}),TN=E0.filter(function(cM){return!!cM.key}).map(function(cM){return _.jD(_.Bn(cM.key).entityId,
"downloadStatusEntity")});
Im=x8(CD,"transfer",Im);Qk=x8(CD,"offlineVideoPolicy",Qk);TN=x8(CD,"downloadStatusEntity",TN);var hC=Im.then(function(cM){cM=cM.reduce(function(FC,jx){(jx==null?0:jx.offlineVideoStreams)&&FC.push.apply(FC,_.$E(jx.offlineVideoStreams));return FC},[]).filter(function(FC){return!!FC});
return x8(CD,"offlineVideoStreams",cM)});
return kX.all([Im,Qk,hC,TN]).then(function(cM){var FC=_.G(cM);cM=FC.next().value;var jx=FC.next().value;var wB=FC.next().value;FC=FC.next().value;return[E0,cM,jx,wB,FC]})})}),2);
if(gB.nextAddress!=3)return E=gB.yieldResult,gB.yield(_.SD(h,{mode:"readonly",enableRetries:!0},function(CD){return x8(CD,"mainDownloadsListEntity").then(function(E0){var Im,Qk;return(Qk=(Im=E0[0])==null?void 0:Im.downloads)!=null?Qk:[]})}),3);
g=gB.yieldResult;Z=_.G(E);M=Z.next().value;W=Z.next().value;z=Z.next().value;c=Z.next().value;I=Z.next().value;B=M;U=W;L=z;d=c;C=I;q={};w={};r={};v={};H={};u=[];k=_.G(U);for(y=k.next();!y.done;y=k.next())(A=y.value)&&(q[A.key]=A);E4=_.G(L);for(iO=E4.next();!iO.done;iO=E4.next())(RW=iO.value)&&(w[RW.key]=RW);NN=_.G(C);for(Cd=NN.next();!Cd.done;Cd=NN.next())(Ba=Cd.value)&&(r[Ba.key]=Ba);$$=_.G(d);for(Ha=$$.next();!Ha.done;Ha=$$.next())(zf=Ha.value)&&(v[zf.key]=zf);eF=_.G(g);for(Rm=eF.next();!Rm.done;Rm=
eF.next())bO=Rm.value,jF=void 0,H[(jF=bO.videoItem)!=null?jF:""]=!0,bO.videoItem&&(ll=PM=void 0,xU=(ll=(PM=_.Bn(bO.videoItem))==null?void 0:PM.entityId)!=null?ll:"",u.push({externalVideoId:xU}));pU=B.filter(function(CD){if(!CD||!CD.key||!CD.offlineVideoPolicy)return!1;CD=_.Bn(CD.key).entityId;CD=_.jD(CD,"downloadStatusEntity");var E0;return!(CD&&((E0=r[CD])==null?void 0:E0.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
pd=pU.map(function(CD){var E0=q[CD.transfer],Im=[];if(E0==null?0:E0.offlineVideoStreams)for(var Qk=_.G(E0.offlineVideoStreams),TN=Qk.next();!TN.done;TN=Qk.next())(TN=v[TN.value])&&Im.push(TN);Qk=w[CD.offlineVideoPolicy];TN=H;var hC=CD==null?void 0:CD.playerResponseTimestamp,cM=_.Bn(Qk.key).entityId;CD=_.jD(cM,"mainVideoEntity");if(Qk.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var FC="OFFLINE_VIDEO_STATE_DISABLED";Qk.expirationTimestamp&&Number(Qk.expirationTimestamp)<Date.now()/1E3&&(FC="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Qk.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")FC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(E0==null?void 0:E0.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":FC="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":FC="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":FC="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":FC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":FC="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":FC="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:FC="OFFLINE_VIDEO_STATE_UNKNOWN"}if(FC==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(E0==null?void 0:E0.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":FC="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":FC="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":FC=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}cM={id:cM,videoState:FC};if(E0==null?0:E0.cotn)cM.cotn=E0.cotn;if(E0==null?0:E0.maximumDownloadQuality)cM.selectedVideoQuality=E0==null?void 0:E0.maximumDownloadQuality;if(E0==null?0:E0.lastProgressTimeMs)cM.lastProgressTimeMs=E0.lastProgressTimeMs;hC&&(cM.playerResponseSavedTimeMs=String(Number(hC)*1E3));E0=String;hC=0;Im=_.G(Im);for(FC=Im.next();!FC.done;FC=Im.next())if(FC=FC.value,FC.streamsProgress){FC=_.G(FC.streamsProgress);for(var jx=FC.next();!jx.done;jx=
FC.next()){var wB=void 0;hC+=Number((wB=jx.value.numBytesDownloaded)!=null?wB:0)}}cM.downloadedBytes=E0(hC);cM.selectedOfflineMode=TN[CD]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Qk.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(cM.offlinePlaybackDisabledReason=Qk.offlinePlaybackDisabledReason);return cM});
return gB.return({offlineVideos:pd,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:u}}})})};
exO=function(){var h;return _.a(function(E){return E.nextAddress==1?E.yield(_.fe(),2):(h=E.yieldResult)?E.return(_.JFa(h)):E.return({state:"PES Unavailable"})})};
N7Z=function(){var h,E,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(_.fe(),2);if(M.nextAddress!=3)return(h=M.yieldResult)?M.yield(qnM(h),3):M.return({state:"PES Unavailable"});E=M.yieldResult;g={};Z=E.reduce(function(W,z){W[z.key]=z;return W},g);
return M.return(fnx(Z))})};
fnx=function(h){for(var E={},g=[],Z=_.G(Object.keys(h)),M=Z.next();!M.done;M=Z.next()){var W=M.value;M=h[W];var z=void 0;if(((z=M)==null?void 0:z.entityType)==="mainVideoEntity"){delete h[W];var c=M.data;M={};if(c){var I=void 0;z=(I=c.videoId)!=null?I:"vid-"+W;W=h;M.video=c;delete M.video.formattedDescription;delete M.video.thumbnail;c.owner&&(I=W[c.owner],I==null?0:I.data)&&(delete W[I.key],M.video.owner=I.data,delete M.video.owner.avatar);if(c=c.downloadState)if(I=W[c],I==null?0:I.data)if(delete W[c],
c=I.data.playbackData)if(I=W[c],I!=null&&I.data){delete W[c];c=I.data;delete c.playerResponseJson;M.playbackData=c;if(c.transfer&&(I=W[c.transfer],I==null?0:I.data)){delete W[I.key];var B=I.data;M.transfer=B;I=[];B=_.G(B.offlineVideoStreams||[]);for(var U=B.next();!U.done;U=B.next())if(U=W[U.value])delete W[U.key],I.push(U.data);I&&(M.streams=I)}(c=c.offlineVideoPolicy)&&(c=W[c])&&c.data&&(delete W[c.key],M.offlineVideoPolicy=c.data)}E[z]=M}}else M&&M.entityType==="offlineOrchestrationActionWrapperEntity"&&
M.data&&(delete h[M.key],z=M.data,W=void 0,g.push({id:z.rootActionId,type:((W=z.actionProto)==null?void 0:W.actionType)||"",entity:M}))}E.wrapperEntities=g;Object.keys(h).length>0&&(E.unknownKeys=h);return E};
t2z=function(){var h,E,g,Z,M,W,z,c,I;return _.a(function(B){if(B.nextAddress==1)return h=!!(new _.sY("")).expiringStorage_,Z=!!((E=_.MN.crypto)==null?0:(g=E.subtle)==null?0:g.importKey),M=!!_.MN.BroadcastChannel,W=!!_.MN.navigator.locks,B.yield(h9$(),2);z=B.yieldResult;c=h&&Z&&M&&W&&z;I={isSupported:c};if(c)return B.return(I);I.missingBrowserFeatures=[];z||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");h||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
Z||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");M||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");W||I.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return B.return(I)})};
Snx=function(){var h;return!((h=z5?z5:null)==null||!h.window)};
_.w7$=function(h){if(_.x$()&&_.RVZ("Chromium")>=120){var E=_.xkd().mediaSession;try{E.setActionHandler("enterpictureinpicture",function(){h()})}catch(g){}}};
Dka=function(h){for(var E=[],g=_.G(document.styleSheets),Z=g.next(),M={};!Z.done;M={node$jscomp$729:void 0},Z=g.next())M.node$jscomp$729=Z.value.ownerNode,M.node$jscomp$729&&(M.node$jscomp$729 instanceof HTMLStyleElement||M.node$jscomp$729 instanceof HTMLLinkElement)&&E.push(new Promise(function(W){return function(z){var c=W.node$jscomp$729.cloneNode(!0);c.onload=function(){z()};
c.onerror=function(){_.O$(Error("qj"));z()};
h.document.head.appendChild(c)}}(M)));
return Promise.all(E)};
X7Z=function(h){var E=[_.of(lnd),_.of(rFd),_.of(mkz)];vQW(window.document.documentElement,h.document.documentElement,[_.of(Hh4),_.of($ku),_.of(K6z),_.of(Oh$),_.of(nQ4)]);vQW(window.document.body,h.document.body,E)};
vQW=function(h,E,g){h=_.G(h.attributes);for(var Z=h.next();!Z.done;Z=h.next())if(Z=Z.value)try{_.zH(g,E,Z.name,Z.value)}catch(M){}};
s7$=function(h,E){h=new _.ae(h.document.documentElement);h.start(YnV,E);return h};
V2O=function(h){var E=h.document.documentElement;E.addEventListener("click",function(g){kLW(E,g)});
E.addEventListener("touchstart",function(g){bGW(g)});
E.addEventListener("mousedown",function(g){bGW(g)})};
yFa=function(h,E,g,Z){Z=Z===void 0?!1:Z;E=new kXa(E||h,g||h);return{x:h.x+((Z===void 0?0:Z)?E.lengthX*-1:E.lengthX)*.2,y:h.y+((Z===void 0?0:Z)?E.lengthY*-1:E.lengthY)*.2}};
F6z=function(h){if(!h)return!1;var E=h.status==="OK"||h.status==="LIVE_STREAM_OFFLINE",g,Z,M,W=(M=(g=h.errorScreen)==null?void 0:g.playerLegacyDesktopYpcTrailerRenderer)!=null?M:(Z=h.errorScreen)==null?void 0:Z.ypcTrailerRenderer;return!!E||!!W};
_.AFa=function(h,E){if(!h)return!1;var g,Z=(g=h.errorScreen)==null?void 0:g.playerLegacyDesktopYpcOfferRenderer,M;E=!!(E==null?0:(M=E.playerOverlayRenderer)==null?0:M.gatedActionsOverlayRenderer);return!!F6z(h)||!!Z||!!E};
uxW=function(h){return T7u(h,0,"gclid",h.search(bhz))>=0||T7u(h,0,"gad_source",h.search(bhz))>=0};
Q7$=function(h){var E=[],g=0;return{clear:function(){g=E.length=0},
push:function(Z){E[g]=Z;g=(g+1)%h},
iterate:function(){return function M(){var W,z,c,I;return _.cw(M,function(B){switch(B.nextAddress){case 1:_.qc(B,2),W=E.length,z=0;case 4:if(!(z<W)){B.jumpTo(2);break}c=g+z;I=_.iz;return B.yield(E[c%W],7);case 7:I(B.yieldResult);z++;B.jumpTo(4);break;case 2:_.eK(B),_.fX(B,0)}})}()}}};
hK$=function(h){h.eventsToIgnore||(h.eventsToIgnore=[]);var E=h.eventsToIgnore.map(AIV),g=new Set(E),Z=Q7$(h.bufferSize);return{flush:function(){var M=Array.from(Z.iterate());Z.clear();M=M.map(function(W){return{name:W.name,timestamp:W.startTime,attributes:W.attributes}});
return JSON.stringify(M)},
onSpanStart:function(M){M.name==="event"&&g.has(M.attributes.type)||Z.push(M)}}};
EVu=function(h){h=hK$(h);var E=h.flush;Gy.processors.push({onSpanStart:h.onSpanStart});ldu.subscribe("handleError",function(g){try{g.params.breadcrumbs=E()}catch(Z){_.$W(Z,"WARNING")}})};
gVz=function(){XF("web_tracing_action");_.Ye("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
ZiO=function(){XF("web_tracing_action");_.Ye("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
WL$=function(h,E,g){if(E===void 0){M7d||(ZiO(),setInterval(ZiO,6E5),M7d=!0);var Z="web_tracing_action"}else Z=E;var M,W=((M=h.endTime)!=null?M:h.startTime)-h.startTime,z={};M=h.name;var c=h.startTime;z={webTracing:(z[h.name]=h.attributes,z)};g=_.k3(PPz)(M,W,c,z,g,Z);if(h.children)for(h=_.G(h.children),Z=h.next();!Z.done;Z=h.next())WL$(Z.value,E,g)};
p2x=function(h){var E=EcV.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(g){g.data&&typeof g.data==="object"&&(g=g.data,g.from==="extension"&&g.app==="yt.telemetry"&&(E("Received message from extension",g),h.onMessage(g)))});
return function(g,Z){g={app:"yt.telemetry",from:"app",key:g,payload:Z};E("Sending message to extension",g);window.postMessage(g,"*")}};
GYz=function(){var h=h===void 0?3E3:h;var E=p2x({onMessage:function(){}}),g=[];
return{onSpanEnd:function(Z){Z.parentId==null&&g.push(Z)===1&&setTimeout(function(){var M=[].concat(_.$E(g));g.length=0;E("spansReported",{spans:M})},h)}}};
arO=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var h=window.performance.getEntriesByType("navigation");if(h.length>0){var E=h[0];hRx("pageLoad",{navigationType:zKu(E.type),unloadEventStart:Math.round(E.unloadEventStart),unloadEventEnd:Math.round(E.unloadEventEnd),domInteractive:Math.round(E.domInteractive),domContentLoadedEventStart:Math.round(E.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(E.domContentLoadedEventEnd),
domComplete:Math.round(E.domComplete),loadEventStart:Math.round(E.loadEventStart),loadEventEnd:Math.round(E.loadEventEnd),redirectCount:E.redirectCount},function(){})}}catch(g){}})};
zKu=function(h){switch(h){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
oV$=function(){for(var h=v6Z.value,E={},g=_.G(h.enabledSpansArray),Z=g.next();!Z.done;Z=g.next())E[Z.value]=!0;if(h.exportToCsi||h.exportBreadcrumbs)g=vFV(),Gy.initialized=!0,Gy.sessionId=g||"",Gy.enabledSpans=E,u3O("pageLoad")&&arO();h.exportBreadcrumbs&&EVu({eventsToIgnore:c5a,bufferSize:h.bufferSize});h.exportToCsi&&Gy.processors.push(iiO);h.exportToDevTools&&(h=GYz(),Gy.processors.push(h))};
Iru=function(h){return new Promise(function(E){window.setTimeout(E,h)})};
RK4=function(h){var E={bicf:function(W){h.fTk=W},
blc:function(){return h.getLatestChallengeResponse()},
bcr:function(W){h.lde.push(W)}},g=window;
g.ntpevasrs=E;if(g.ntpqfbel!==void 0)for(var Z=_.G(g.ntpqfbel),M=Z.next();!M.done;M=Z.next())M=M.value,M(E);g.ntpqfbel=void 0};
PZz=function(h){return _.a(function(E){if(E.nextAddress==1)return _.CX(E,2),E.yield(h.vVJ(),4);if(E.nextAddress!=2)return _.bN(E,0);_.th(E);_.SK(E)})};
Bi$=function(h){var E,g;(E=h.ytcsi)==null||(g=E.tick)==null||g.call(E,"pot_ist")};
UWz=function(h){if(h instanceof Error){var E=_.yy("yt.logging.errors.log");E&&E(h,"WARNING")}};
LL$=function(h){try{var E=JSON.parse(h);if(E.bgChallenge)return E}catch(g){}};
dWV=function(){var h=window,E={networkStatusManagerPromise:_.GF().resolve(new $Hd(_.bK)),initialChallengeSli:_.J("wpo_att_sli")?new _.Eia("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};h=h===void 0?window:h;var g=h.ytAtR,Z;E==null||(Z=E.initialChallengeSli)==null||_.oe(Z);if(g){if(g=LL$(g)){var M;E==null||(M=E.initialChallengeSli)==null||_.Ie(M,"SUCCESS");jr$(g,E)}h.ytAtR=void 0}else h.ytAtRC=function(W){if(W=LL$(W)){var z;E==null||(z=E.initialChallengeSli)==null||
_.Ie(z,"SUCCESS");jr$(W,E);h.ytAtRC=void 0}}};
eKV=function(){if(CZz)return CZz;try{var h=_.q3("IFRAME");_.hh(h,_.BR(J5u));h.sandbox.add("allow-same-origin");h.style.display="none";document.body.appendChild(h);return CZz=h}catch(E){h=new _.xX("Failed to create sandbox iframe"),_.$W(h)}};
qC$=function(h){var E,g;return(g=h==null?void 0:(E=h.contentWindow)==null?void 0:E.fetch)!=null?g:window.fetch};
frW=function(h){var E,g;return(g=h==null?void 0:(E=h.contentWindow)==null?void 0:E.Request)!=null?g:window.Request};
NiZ=function(h){var E,g;return(g=h==null?void 0:(E=h.contentWindow)==null?void 0:E.TextDecoder)!=null?g:window.TextDecoder};
t7Z=function(){return function(h,E){_.nF("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[h]=E}};
SCq=function(){return function(h,E){var g={};g[h]=E;h=_.k3(_.IU4)(g);Object.keys(h).length>0&&_.nZ(h)}};
DWu=function(){if(klu()==="hidden")var h="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else klu()==="visible"&&(h="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",xWN=null);h&&w2$(h)};
w2$=function(h){if(h==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||h==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(lr$===h)return;lr$=h}var E=9E4+Math.random()*2E3;if(h!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.zq()>E)&&klu()==="visible"){E=-1;xWN&&(E=Math.round((0,_.zn)()-xWN));var g=String;var Z=_.yy("_fact",window);Z=Z==null||Z==-1?-1:Math.max(Date.now()-Z,0);_.vT("foregroundHeartbeat",{firstActivityMs:g(Z),clientDocumentNonce:HbZ,index:String(r5O),lastEventDeltaMs:String(E),trigger:h});
_.Wu("_fact",-1,window);r5O++;xWN=(0,_.zn)()}};
_.mWx=function(){try{return!!self.sessionStorage}catch(h){return!1}};
vV$=function(){var h=navigator;return new Promise(function(E,g){var Z;(Z=h.webkitTemporaryStorage)!=null&&Z.queryUsageAndQuota?h.webkitTemporaryStorage.queryUsageAndQuota(function(M,W){E({usage:M,quota:W})},function(M){g(M)}):g(Error("Aj"))})};
Hi4=function(h,E){var g={errorSeverity:E.errorSeverity.toString(),wizFeatureFlags:Object.entries(E.featureFlags).join("\n")};jJa(E,g);E=E.errorSeverity;E===3?_.$W(h,"ERROR",void 0,void 0,void 0,g):E===2&&_.$W(h,"WARNING",void 0,void 0,void 0,g);_.J("cow_if_errors_in_popup")&&E===3&&h.message.indexOf("<If>")!==-1&&window.alert(h.message)};
$Wz=function(h,E){var g=pe.get(h)||{layerNode:E};g.layerNode=E;bfO(h,g);h.getScreenLayer=function(){return Re(g.layerNode)}};
KLa=function(h){var E;h=h.parentNode;for(var g;h&&((E=pe.get(h))==null||!E.isRenderer)&&!((g=h.polymerController)!=null?g:h).isRenderer_;)h=h.parentNode||h.host;if(E=h)return pe.get(E)};
OiO=function(h){if(h){pe.delete(h);var E=_.GF().resolve(aT);GoV(h,E)}};
X2$=function(h,E,g){if(g===void 0?0:g){if(g=h.getAttribute("client-ve-type"),E.data&&!E.disableReactiveLogging||g)_.$Z(function(){nV$(h,_.Hm(E.data))}),_.r9(function(){return void OiO(h)})}else typeof E.data!=="function"&&nV$(h,E.data)};
nV$=function(h,E){YC4++;sr$(h,E)&&_.KP.addJob(function(){_.Pw(_.KP,function(){if(sr$(h,E)&&h.ownerDocument.documentElement===document.documentElement&&h){var g;if(h.getAttribute("layer")){var Z=g=Number(h.getAttribute("layer")),M=pe.get(h);M?M.layerNode.layer=Z:$Wz(h,new V7Z(Z));(Z=KLa(h))&&(M=pe.get(h))!=null&&(M.layerNode.parent=Z.layerNode)}else if(g=pe.get(h))g=Re(g.layerNode);else{g=Re;Z=new V7Z;if(M=KLa(h))Z.parent=M.layerNode;$Wz(h,Z);g=g(Z)}g!=null||(g=0);Z=h.getAttribute("client-ve-type");
M=Number(Z);var W=!1;Z=!1;var z=pe.get(h),c;if((c=z)&&!(c=z[kYx]!==E)&&(c=M)){var I;c=((I=pe.get(h))==null?void 0:I.clientVeType)===void 0}c&&(z[kYx]=E,W=Z=z.isRenderer=!0);pe.has(h)&&(pe.get(h).clientVeType=M);h.visualElement&&(Z=!0);if(_.J("wiz_next_ld_fix_client_ve_spec")){var B;I=((B=_.e(E==null?void 0:E.rendererContext,_.xB))==null?void 0:B.loggingDirectives)||(E==null?void 0:E.loggingDirectives)}else I=E==null?void 0:E.loggingDirectives;I&&I.clientVeSpec&&(B=y5d(_.NB(),h),B=_.FLq(_.SQ(),I,B||
void 0,g))&&(h.visualElement=B);!h.visualElement&&M&&W&&(h.veType=M,B=void 0,_.J("wiz_next_client_ve_parent_fix")&&(B=y5d(_.NB(),h)),B=_.tW(_.SQ(),h,B,g),h.visualElement=B);Z&&(B=_.GF().resolve(aT),iNO(h,{data:E,observer:B,layer:g,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
sr$=function(h,E){return(E==null?0:E.trackingParams)||(E==null?0:E.loggingDirectives)||_.e(E==null?void 0:E.rendererContext,_.xB)||h.getAttribute("client-ve-type")?!0:!1};
A5O=function(h,E,g){h.componentType!==SA&&g instanceof HTMLElement&&E&&!_.J("cow_logging_in_component_wrapper")&&X2$(g,E,!0)};
Qrz=function(){if(!Ti$){Ti$=!0;var h=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.J("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:Hi4,enableComponentStacksInErrorMessages:!1});Object.assign(z9,h);$_V=biq;u$$();YHN=xSq;OQW=w1Z}};
u$$=function(){_.J("cow_logging_in_component_wrapper")?(n6z=function(h,E){E instanceof HTMLElement&&X2$(E,h,!0)},NA$=function(){}):(n6z=function(){},NA$=A5O)};
hSz=function(h,E,g){E=E===void 0?{}:E;var Z,M=(Z=_.e(h.commandMetadata,_.qH))==null?void 0:Z.url;Z=E.form||{};!g||Z.element||Z.skipDefaultElement||(E.form=E.form||{},E.form.element=g);if(M&&M!=="/service_ajax")return{type:0,command:h,form:E.form};if(_.J("kevlar_service_command_check")){if(_.uF(_.GF().resolve(_.yV),h))return Object.assign({},{type:1,command:h},E)}else{var W;if((W=_.e(h.commandMetadata,_.qH))==null?0:W.apiUrl)return Object.assign({},{type:1,command:h},E)}return{type:2,command:h,form:E.form}};
E1x=function(h){if(h.form){var E=h.form,g=Object.assign({},E);E=E.element;g=(delete g.element,g);if(E)return[_.LZ(E,[h.command,g,h.commandController])]}return[]};
g1z=function(h){if(h.form){var E=h.form,g=Object.assign({},E);E=E.element;g=(delete g.element,g);E&&_.jj(E,[h.command],E,g)}};
Mtz=function(h,E,g){var Z=new Zxx(h,E),M=new Bw(h,E,g);h={"/youtubei/v1/browse":new Uc(h,E,g),"/youtubei/v1/player":Z,"/youtubei/v1/navigation/resolve_url":new L$,"/youtubei/v1/next":M,"/youtubei/v1/guide":new dE(g),"/youtubei/v1/search":new C$(h,E,g),"/youtubei/v1/reel/reel_item_watch":new JN(h,E,g),"/youtubei/v1/get_watch":new e6(Z,M)};h["/youtubei/v1/account/account_menu"]=new qh;h["/youtubei/v1/notification/get_notification_menu"]=new f$;return h};
tN=function(){var h=_.GF().resolve(Nh);return Promise.resolve(WV$(h,_.MN.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
prq=function(h){return h&&(h=_.S6(_.nOV(h)))?(new URLSearchParams(h)).get("service"):null};
Dt=function(h,E){_.LO(_.xu(),function(){_.s7("adl")});
_.GF().resolve(GkN)(E);h=h.root;h.loadData&&h.loadData(E);(E==null?0:E.response)?_.Ie(MuW(),"SUCCESS"):_.O$(new _.xX("Lifecycle: No response in data",_.Xn("IS_SHELL_LOAD"),E?E.page:"NO_PAGE",E?E.endpoint:"NO_ENDPOINT"));h.polymerController.$["page-manager"].lazyPrepareCriticalPages((E==null?void 0:E.page)||"",E.endpoint);var g,Z;((Z=_.e(E==null?void 0:(g=E.endpoint)==null?void 0:g.commandMetadata,_.qH))==null?0:Z.webPageType)&&_.Gv().dispatch(_.wE(_.e(E.endpoint.commandMetadata,_.qH).webPageType))};
zS$=function(){var h,E;return _.a(function(g){switch(g.nextAddress){case 1:h=window;if(!h.getDataPromise){g.jumpTo(2);break}_.CX(g,3);return g.yield(h.getDataPromise(),5);case 5:return g.return(g.yieldResult);case 3:return _.th(g),g.yield(tN(),6);case 6:return g.return(g.yieldResult);case 2:if(h.getInitialData)return E=h.getInitialData(),h.getInitialData=void 0,g.return(E);throw Error("Cj`"+_.MN.location.href);}})};
c8Z=function(){_.OW("CSI_SERVICE_NAME","youtube");_.nZ({loadType:"cold"});_.J("kevlar_log_lcp")&&aZO(function(h){_.s7("lcp",h.value)})};
ix$=function(){var h=_.FR(document.location.href,"enable");h&&h.indexOf("scraper")>-1&&_.OW("ADD_SCRAPER_ATTRIBUTES",!0)};
B4q=function(h){var E=h.root;h=[o1x,IZu,_.lz];_.J("web_feedback_endpoint_autolog_allowlist_killswitch")&&h.push(_.rE,RSW);P$W(function(g,Z){return hSz(g,Z,E)},function(g){if(!g.command)return[];
var Z;((Z=g.form)==null?0:Z.element)?g.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},g.form,{endpoint:g.command})})):E.handleNavigate(g);return[]},h);
_.GF().addProvider({provide:_.zF,useValue:_.eQ.instance})};
LVz=function(){var h={},E={},g;for(g in UXa){var Z=_.G(_.Bm(UXa[g],void 0,"IAtZ7"));h[g]=Z.next().value;E[g]=Z.next().value}return[h,function(M){for(var W in M){var z=void 0;(z=E[W])==null||z(M[W])}}]};
_.my=function(h,E,g){E=E===void 0?!1:E;var Z=_.Kt.getValueByKeys(h,"contents","twoColumnWatchNextResults","results","results","contents"),M=_.Kt.getValueByKeys(h,"contents","twoColumnWatchNextResults","playlist","playlist")||null;E&&(M=null);var W=E=null;if(M)E=_.Kt.getValueByKeys(M,"titleText"),W=_.Kt.unsafeClone(_.Kt.getValueByKeys(M,"longBylineText")),Z="",W&&(Z=_.Wp(W)),W=_.MR(Z);else if(Z){Z=_.G(Z);for(var z=Z.next();!z.done;z=Z.next())z=z.value,z.videoPrimaryInfoRenderer&&(E=_.Kt.getValueByKeys.apply(_.Kt,
[z].concat(_.$E(jXW)))),z.videoSecondaryInfoRenderer&&(W=_.Kt.getValueByKeys.apply(_.Kt,[z].concat(_.$E(dXV))))}else _.Fn(Error("Hj"));var c;h.currentVideoEndpoint?c=h.currentVideoEndpoint:_.Fn(Error("Ij"));var I;g&&(I=_.Kt.getValueByKeys(g,"playabilityStatus","miniplayer","miniplayerRenderer"));h={miniplayerTitle:E,miniplayerSubtitle:W,watchEndpoint:c,playlistData:M};I&&(h.miniplayerRenderer=I);return h};
C$4=function(h){if(h)return _.X8(h)};
_.J8x=function(){return{isFullscreen:function(){throw Error("Jj");},
toggleFullscreen:function(){throw Error("Kj");},
exitFullscreen:function(){throw Error("Lj");},
isAutonavEnabled:function(){throw Error("Mj");},
setAutonavEnabled:function(){throw Error("Nj");},
isAutoplaySetExplicitly:function(){throw Error("Oj");}}};
eSx=function(h){return h.videoDuration?h.numTaps>1&&h.tapDirection!==0?_.vw(h.draggedTime/h.videoDuration,0,1):_.vw((h.playedTime||0)/h.videoDuration,0,1):0};
qmx=function(h){return h.videoDuration?h.isDragging||h.numTaps>1&&h.tapDirection!==0?_.vw(h.draggedTime/h.videoDuration,0,1):_.vw((h.playedTime||0)/h.videoDuration,0,1):0};
N4z=function(h){var E,g,Z;return _.e(h==null?void 0:(E=h.markersMap)==null?void 0:(g=E.find(function(M){return M.key==="HEATSEEKER"}))==null?void 0:(Z=g.value)==null?void 0:Z.heatmap,fZu)};
tt4=function(h){var E,g;return(g=(E=N4z(h))==null?void 0:E.heatMarkersDecorations)!=null?g:[]};
SmV=function(h){if(_.J("mweb_supported_chapters_killswitch"))return!0;var E;return!!(h==null?0:(E=h.markersMap)==null?0:E.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))};
_.xXW=function(h){var E=Object,g=E.assign,Z;h={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(Z=h==null?void 0:h.getPlayerState())!=null?Z:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return g.call(E,{},{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},h,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
wrZ=function(h){return function(E){var g=h(),Z,M=(Z=g.playerApi)==null?void 0:Z.getPlayerState();E&&E!==g.playerState&&(E===1||E===2)&&g.setState({playerState:M})}};
lZM=function(h){return function(E){var g=h(),Z=g.playerApi;Z&&(E==null?void 0:E.type)==="newdata"&&(DX$&&(clearTimeout(DX$),DX$=void 0),_.J("web_shorts_use_progress_state_for_gapless")?(E=Z==null?void 0:Z.getProgressState(E==null?void 0:E.playertype),E=E.seekableEnd-E.seekableStart):E=Z==null?void 0:Z.getDuration(E==null?void 0:E.playertype),g.setState({playedTime:0,videoDuration:E}))}};
r8d=function(h){return function(E){var g=h(),Z=g.playerApi;if(Z){var M=Z.getPresentingPlayerType();_.J("web_shorts_use_progress_state_for_gapless")?(Z=Z.getProgressState(M),Z=Z.seekableEnd-Z.seekableStart):Z=Z.getDuration(M);g.setState({playedTime:E,videoDuration:Z})}}};
v1Z=function(h){_.x7(112394,h,function(){return mXu},function(E){mXu=E})};
KVx=function(h,E){if(!h)return[];var g,Z,M;h=((g=h.markersMap)==null?void 0:(Z=g.find(function(W){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(W.key)}))==null?void 0:(M=Z.value)==null?void 0:M.chapters)||[];
!Hx$(h)||(E==null?0:E.ignoreStub)||(h=[$Xz()].concat(_.$E(h)));return h};
$Xz=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Hx$=function(h){if(h.length===0)return!1;var E;return((E=_.e(h[0],Oc))==null?void 0:E.timeRangeStartMillis)!==0};
n$=function(h){return h?h.timeRangeStartMillis||0:0};
n1a=function(h,E){if(h.isDragging&&E)return h=Oxu(h,E),h===-1?$Xz():KVx(E)[h]};
Oxu=function(h,E){return h.isDragging&&E?KVx(E,{ignoreStub:!0}).findIndex(function(g,Z,M){g=XrW(h);return YmW(g,M,Z).scrubberHovering}):-1};
XrW=function(h){return Object.assign({},h,{videoDuration:h.videoDuration*1E3,playedTime:h.playedTime*1E3,draggedTime:h.draggedTime*1E3})};
YmW=function(h,E,g){var Z=n$(_.e(E[g],Oc));E=n$(_.e(E[g+1],Oc))||h.videoDuration;g=h.isDragging;var M;if(M=h.isDragging)M=h.draggedTime,M=M!==null&&M>=Z&&M<E;var W=h.playedTime;return W!==null&&W>=Z&&W<E?{videoPosition:"active",isScrubbing:g,scrubberHovering:M}:h.playedTime<Z?{videoPosition:"pending",isScrubbing:g,scrubberHovering:M}:{videoPosition:"seen",isScrubbing:g,scrubberHovering:M}};
sX4=function(h,E){return h.videoPosition==="seen"||(E===void 0?0:E)>0};
VtN=function(h,E,g){E=h/E.storyboardInterval;var Z=KVx(g);if(!Z.length)return-E*72;g=0;Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())if(n$(_.e(M.value,Oc))/1E3<h)g++;else break;return-(E*72)-g*56};
kk4=function(h){return h?h.width/h.columns:0};
y84=function(h){return h.isHovering?h.hoveredTime:h.draggedTime};
FVq=function(h,E){h=h.draggedTime*1E3;return h>=E.visibleTimeRangeStartMillis&&h<=E.visibleTimeRangeEndMillis};
_.A8q=function(h){if(h===void 0||Number.isNaN(h))return"--:--";var E=Math.abs(Math.floor(h)),g=Math.floor(E/86400),Z=Math.floor(E%86400/3600),M=Math.floor(E%3600/60);E=Math.floor(E%60);var W="";g>0&&(W+=g+":",Z<10&&(W+="0"));if(g>0||Z>0)W+=Z+":",M<10&&(W+="0");W+=M+":";E<10&&(W+="0");W+=E;return h>=0?W:"-"+W};
T4$=function(h,E){return function(){var g=y84(h());var Z=E();var M=h().playerApi;if(M&&M.getNumberOfStoryboardLevels()!==0){var W=M.getStoryboardFrameIndex(g,1);W!==-1?Z=M.getStoryboardFrame(W,1):(g=M.getStoryboardFrameIndex(g,0),M=M.getStoryboardFrame(g,0),Z&&M&&(M.height*=3,M.width*=3),Z=M)}else Z=null;if(!Z)return null;E()&&(Z.width=90*Z.columns,Z.height=160*Z.rows);return Z}};
_.Xm=function(h){if(!h||h.getVideoData)return h};
bxZ=function(){var h;return{playerApi:(h=_.jv())!=null?h:void 0}};
ubM=function(h){var E;_.a(function(g){if(g.nextAddress==1)return g.yield(_.L4(),2);if(E=g.yieldResult)E.unMute(!0),E.setVolume(h,!0);_.SK(g)})};
QXZ=function(h,E){h&&(h.value=""+E,h.style.setProperty("--gradient-percent",E+"%"))};
hMN=function(h){var E;return(E=h==null?void 0:h.value)!=null?E:0};
EGW=function(){var h;_.a(function(E){if(E.nextAddress==1)return E.yield(_.L4(),2);h=E.yieldResult;if(!h)return E.return();h.isMuted()?h.unMute(!0):h.mute(!0);_.SK(E)})};
gG$=function(h){var E=_.GF().resolve(_.Yu).getPlayerElement();E&&h&&(h===1?E.pause():E.play())};
Zc$=function(h){_.U7(h,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
MoV=function(h){_.U7(h,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
pyd=function(h){return _.rX(h.document.body,function(){return _.R(Wez,null)},"Hf")};
GPV=function(){var h=window.performance.getEntriesByType("navigation");return h?h.map(function(E){return E.type}).includes("reload"):!1};
Pbq=function(){sc(sc(sc(sc(sc(sc(sc(_.GF().resolve(_.V8),_.zM$),_.aBZ),_.cJa),_.ic$),_.oG4),_.IBN),_.RMu)};
B1$=function(h,E){E=E===void 0?!1:E;var g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return E||!_.J("kevlar_shorts_seedless_retry_initial_load")||(g=window,Z=!(!g.getDataPromise&&!g.getInitialData),Z)?z.yield(zS$(),2):(setTimeout(B1$.bind(window,h,!0),1E3),z.return());if(z.nextAddress!=3)return M=z.yieldResult,z.yield(U5a(M),3);W=z.yieldResult;Dt(h,W);_.SK(z)})};
U5a=function(h){var E;if((E=h.response)==null||!E.replacementEndpoint)return _.dC(h);E=_.GF().resolve(Nh);h=h.response;_.e(h.replacementEndpoint,_.D9)&&h.sequenceContinuation&&(_.e(h.replacementEndpoint,_.D9).sequenceParams=h.sequenceContinuation);return ku(E,h.replacementEndpoint,{},_.MN.location.href,"shorts",function(){},function(){return!1})};
j6O=function(h){var E=_.GF().resolve(Leq);h.playerResponse&&E.handleResponse(h.playerResponse);h.response&&E.handleResponse(h.response)};
d54=function(h){var E=_.Gv(),g,Z=_.e((g=h.response)==null?void 0:g.frameworkUpdates,g5),M;g=_.e((M=h.playerResponse)==null?void 0:M.frameworkUpdates,g5);var W;h=_.e((W=h.reelWatchSequenceResponse)==null?void 0:W.frameworkUpdates,g5);Z&&_.tj(Z,E);g&&_.tj(g,E);h&&_.tj(h,E)};
Cbd=function(h){var E;_.J("enable_redirect_linking_for_desktop_web_client")&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&h.url&&(h.url=h.url.toString()+window.location.hash)};
qPN=function(h){var E=_.GF(),g=E.resolve(Nh);E=E.resolve(_.JJz);h.endpoint&&(g=eM$(g,h.endpoint),g.content&&h.response&&_.y8(E,h.response,g.content),g.player&&h.playerResponse&&_.y8(E,h.playerResponse,g.player),g.reelSequence&&h.reelWatchSequenceResponse&&_.y8(E,h.reelWatchSequenceResponse,g.reelSequence))};
Fm=function(h,E){_.J("web_service_params_response_processor")&&j6O(E);d54(E);var g;(E==null?0:E.url)&&((g=window.location.hash)==null?0:g.includes("redirect_state"))&&(Cbd(E),(g=prq(E.url))&&_.BX(h.root,"yt-initialize-third-party",[g,E]));qPN(E);g=_.GF();var Z=g.resolve(fBq);E.playerResponse&&g.resolve(N1u).handleResponse(E.playerResponse);if(E.playerResponse){g=void 0;if(_.J("ab_v_vid_sig")&&E.endpoint){var M,W=(M=_.e(E.endpoint,_.MH))!=null?M:_.e(E.endpoint,_.D9);W&&(g=W.videoId)}toa(Z,E.playerResponse,
g)}E.playerResponse&&fwx(E.playerResponse)&&_.J("web_enable_ab_rsp_cl")?AHZ().then(function(){SPV(Z,E.playerResponse);Dt(h,E)}):Dt(h,E)};
wyz=function(h){if(h=h.root.data){var E=_.GF().resolve(x5$);h.endpoint&&(h.response&&E.handleResponse(h.response,void 0,document.querySelector("ytd-app")),h.playerResponse&&E.handleResponse(h.playerResponse),h.reelWatchSequenceResponse&&E.handleResponse(h.reelWatchSequenceResponse))}};
D5q=function(h){var E,g,Z,M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:E=window;if(!E.getDataPromise){c.jumpTo(2);break}_.CX(c,3);return c.yield(E.getDataPromise(),5);case 5:g=c.yieldResult;Fm(h,g);_.bN(c,4);break;case 3:return _.th(c),c.yield(tN(),6);case 6:Z=c.yieldResult,Dt(h,Z);case 4:return c.return();case 2:if(!_.J("sw_nav_preload_pbj")){c.jumpTo(7);break}E.fetchInitialData=function(){var I;return _.a(function(B){if(B.nextAddress==1)return B.yield(tN(),2);I=B.yieldResult;Dt(h,I);
_.SK(B)})};
if(E.getInitialData){E.loadInitialData=function(I){Fm(h,I)};
M=E.getInitialData();E.getInitialData=void 0;Fm(h,M);c.jumpTo(8);break}E.fetchInitialData=void 0;return c.yield(tN(),9);case 9:W=c.yieldResult,Dt(h,W);case 8:return c.return();case 7:E.getInitialData?(z=E.getInitialData(),E.getInitialData=void 0,Fm(h,z)):E.loadInitialData=function(I){Fm(h,I)},_.SK(c)}})};
lB$=function(h){var E=0;return function(){return E<h.length?{done:!1,value:h[E++]}:{done:!0}}};
rJu=typeof Object.defineProperties=="function"?Object.defineProperty:function(h,E,g){if(h==Array.prototype||h==Object.prototype)return h;h[E]=g.value;return h};
m5x=function(h){h=["object"==typeof globalThis&&globalThis,h,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;E<h.length;++E){var g=h[E];if(g&&g.Math==Math)return g}throw Error("a");};
_.ze=m5x(this);AN=function(h,E){if(E)a:{var g=_.ze;h=h.split(".");for(var Z=0;Z<h.length-1;Z++){var M=h[Z];if(!(M in g))break a;g=g[M]}h=h[h.length-1];Z=g[h];E=E(Z);E!=Z&&E!=null&&rJu(g,h,{configurable:!0,writable:!0,value:E})}};
AN("Symbol",function(h){if(h)return h;var E=function(W,z){this.$jscomp$symbol$id_=W;rJu(this,"description",{configurable:!0,writable:!0,value:z})};
E.prototype.toString=function(){return this.$jscomp$symbol$id_};
var g="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Z=0,M=function(W){if(this instanceof M)throw new TypeError("b");return new E(g+(W||"")+"_"+Z++,W)};
return M});
AN("Symbol.iterator",function(h){if(h)return h;h=Symbol("c");for(var E="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),g=0;g<E.length;g++){var Z=_.ze[E[g]];typeof Z==="function"&&typeof Z.prototype[h]!="function"&&rJu(Z.prototype,h,{configurable:!0,writable:!0,value:function(){return vGq(lB$(this))}})}return h});
AN("Symbol.asyncIterator",function(h){return h?h:Symbol("d")});
var vGq=function(h){h={next:h};h[Symbol.iterator]=function(){return this};
return h},Hcd=typeof Object.create=="function"?Object.create:function(h){var E=function(){};
E.prototype=h;return new E},$5$=function(){function h(){function g(){}
new g;Reflect.construct(g,[],function(){});
return new g instanceof g}
if(typeof Reflect!="undefined"&&Reflect.construct){if(h())return Reflect.construct;var E=Reflect.construct;return function(g,Z,M){g=E(g,Z);M&&Reflect.setPrototypeOf(g,M.prototype);return g}}return function(g,Z,M){M===void 0&&(M=g);
M=Hcd(M.prototype||Object.prototype);return Function.prototype.apply.call(g,M,Z)||M}}(),KeW;
if(typeof Object.setPrototypeOf=="function")KeW=Object.setPrototypeOf;else{var Ocu;a:{var nGZ={a:!0},Xyq={};try{Xyq.__proto__=nGZ;Ocu=Xyq.a;break a}catch(h){}Ocu=!1}KeW=Ocu?function(h,E){h.__proto__=E;if(h.__proto__!==E)throw new TypeError("e`"+h);return h}:null}T5=KeW;
_.f=function(h,E){h.prototype=Hcd(E.prototype);h.prototype.constructor=h;if(T5)T5(h,E);else for(var g in E)if(g!="prototype")if(Object.defineProperties){var Z=Object.getOwnPropertyDescriptor(E,g);Z&&Object.defineProperty(h,g,Z)}else h[g]=E[g];h.superClass_=E.prototype};
_.G=function(h){var E=typeof Symbol!="undefined"&&Symbol.iterator&&h[Symbol.iterator];if(E)return E.call(h);if(typeof h.length=="number")return{next:lB$(h)};throw Error("f`"+String(h));};
E9=function(h){for(var E,g=[];!(E=h.next()).done;)g.push(E.value);return g};
_.$E=function(h){return h instanceof Array?h:E9(_.G(h))};
_.uz=function(h){return bz(h,h)};
bz=function(h,E){h.raw=E;Object.freeze&&(Object.freeze(h),Object.freeze(E));return h};
Q8=function(h,E){return Object.prototype.hasOwnProperty.call(h,E)};
YPV=function(h){if(h==null)throw new TypeError("g");return Object(h)};
s6$=typeof Object.assign=="function"?Object.assign:function(h,E){h=YPV(h);for(var g=1;g<arguments.length;g++){var Z=arguments[g];if(Z)for(var M in Z)Q8(Z,M)&&(h[M]=Z[M])}return h};
AN("Object.assign",function(h){return h||s6$});
var hs=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},VoZ=function(h){if(h.isRunning_)throw new TypeError("i");
h.isRunning_=!0};
hs.prototype.JSC$8723_next_=function(h){this.yieldResult=h};
var kP$=function(h,E){h.abruptCompletion_={exception:E,isException:!0};h.nextAddress=h.catchAddress_||h.finallyAddress_};
hs.prototype.return=function(h){this.abruptCompletion_={return:h};this.nextAddress=this.finallyAddress_};
hs.prototype.yield=function(h,E){this.nextAddress=E;return{value:h}};
hs.prototype.jumpTo=function(h){this.nextAddress=h};
_.SK=function(h){h.nextAddress=0};
_.CX=function(h,E,g){h.catchAddress_=E;g!=void 0&&(h.finallyAddress_=g)};
_.qc=function(h,E){h.catchAddress_=0;h.finallyAddress_=E||0};
_.bN=function(h,E,g){h.nextAddress=E;h.catchAddress_=g||0};
_.th=function(h,E){h.catchAddress_=E||0;E=h.abruptCompletion_.exception;h.abruptCompletion_=null;return E};
_.eK=function(h,E,g,Z){Z?h.finallyContexts_[Z]=h.abruptCompletion_:h.finallyContexts_=[h.abruptCompletion_];h.catchAddress_=E||0;h.finallyAddress_=g||0};
_.fX=function(h,E,g){g=h.finallyContexts_.splice(g||0)[0];(g=h.abruptCompletion_=h.abruptCompletion_||g)?g.isException?h.nextAddress=h.catchAddress_||h.finallyAddress_:g.jumpTo!=void 0&&h.finallyAddress_<g.jumpTo?(h.nextAddress=g.jumpTo,h.abruptCompletion_=null):h.nextAddress=h.finallyAddress_:h.nextAddress=E};
yJZ=function(h){this.JSC$8728_context_=new hs;this.program_=h};
AJM=function(h,E){VoZ(h.JSC$8728_context_);var g=h.JSC$8728_context_.yieldAllIterator_;if(g)return FeO(h,"return"in g?g["return"]:function(Z){return{value:Z,done:!0}},E,h.JSC$8728_context_.return);
h.JSC$8728_context_.return(E);return EK(h)};
FeO=function(h,E,g,Z){try{var M=E.call(h.JSC$8728_context_.yieldAllIterator_,g);if(!(M instanceof Object))throw new TypeError("h`"+M);if(!M.done)return h.JSC$8728_context_.isRunning_=!1,M;var W=M.value}catch(z){return h.JSC$8728_context_.yieldAllIterator_=null,kP$(h.JSC$8728_context_,z),EK(h)}h.JSC$8728_context_.yieldAllIterator_=null;Z.call(h.JSC$8728_context_,W);return EK(h)};
EK=function(h){for(;h.JSC$8728_context_.nextAddress;)try{var E=h.program_(h.JSC$8728_context_);if(E)return h.JSC$8728_context_.isRunning_=!1,{value:E.value,done:!1}}catch(g){h.JSC$8728_context_.yieldResult=void 0,kP$(h.JSC$8728_context_,g)}h.JSC$8728_context_.isRunning_=!1;if(h.JSC$8728_context_.abruptCompletion_){E=h.JSC$8728_context_.abruptCompletion_;h.JSC$8728_context_.abruptCompletion_=null;if(E.isException)throw E.exception;return{value:E.return,done:!0}}return{value:void 0,done:!0}};
T1a=function(h){this.next=function(E){VoZ(h.JSC$8728_context_);h.JSC$8728_context_.yieldAllIterator_?E=FeO(h,h.JSC$8728_context_.yieldAllIterator_.next,E,h.JSC$8728_context_.JSC$8723_next_):(h.JSC$8728_context_.JSC$8723_next_(E),E=EK(h));return E};
this.throw=function(E){VoZ(h.JSC$8728_context_);h.JSC$8728_context_.yieldAllIterator_?E=FeO(h,h.JSC$8728_context_.yieldAllIterator_["throw"],E,h.JSC$8728_context_.JSC$8723_next_):(kP$(h.JSC$8728_context_,E),E=EK(h));return E};
this.return=function(E){return AJM(h,E)};
this[Symbol.iterator]=function(){return this}};
_.cw=function(h,E){E=new T1a(new yJZ(E));T5&&h.prototype&&T5(E,h.prototype);return E};
bcZ=function(h){function E(Z){return h.next(Z)}
function g(Z){return h.throw(Z)}
return new Promise(function(Z,M){function W(z){z.done?Z(z.value):Promise.resolve(z.value).then(E,g).then(W,M)}
W(h.next())})};
_.a=function(h){return bcZ(new T1a(new yJZ(h)))};
_.Jh=function(h){var E=h[Symbol.asyncIterator];return E!==void 0?E.call(h):new uO$(_.G(h))};
uO$=function(h){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return h};
this.next=function(E){return Promise.resolve(h.next(E))};
this["throw"]=function(E){return new Promise(function(g,Z){var M=h["throw"];M!==void 0?g(M.call(h,E)):(g=h["return"],g!==void 0&&g.call(h),Z(new TypeError("j")))})};
h["return"]!==void 0&&(this["return"]=function(E){return Promise.resolve(h["return"](E))})};
_.VF=function(){for(var h=Number(this),E=[],g=h;g<arguments.length;g++)E[g-h]=arguments[g];return E};
_.iz=function(h){return h};
AN("globalThis",function(h){return h||_.ze});
AN("Reflect",function(h){return h?h:{}});
AN("Reflect.construct",function(){return $5$});
AN("Reflect.setPrototypeOf",function(h){return h?h:T5?function(E,g){try{return T5(E,g),!0}catch(Z){return!1}}:null});
AN("Promise",function(h){function E(){this.batch_=null}
function g(z){return z instanceof M?z:new M(function(c){c(z)})}
if(h&&(typeof _.ze.PromiseRejectionEvent!=="undefined"||!_.ze.Promise||_.ze.Promise.toString().indexOf("[native code]")===-1))return h;E.prototype.asyncExecute=function(z){if(this.batch_==null){this.batch_=[];var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})}this.batch_.push(z)};
var Z=_.ze.setTimeout;E.prototype.asyncExecuteFunction=function(z){Z(z,0)};
E.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var z=this.batch_;this.batch_=[];for(var c=0;c<z.length;++c){var I=z[c];z[c]=null;try{I()}catch(B){this.asyncThrow_(B)}}}this.batch_=null};
E.prototype.asyncThrow_=function(z){this.asyncExecuteFunction(function(){throw z;})};
var M=function(z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var c=this.createResolveAndReject_();try{z(c.resolve,c.reject)}catch(I){c.reject(I)}};
M.prototype.createResolveAndReject_=function(){function z(B){return function(U){I||(I=!0,B.call(c,U))}}
var c=this,I=!1;return{resolve:z(this.resolveTo_),reject:z(this.JSC$8756_reject_)}};
M.prototype.resolveTo_=function(z){if(z===this)this.JSC$8756_reject_(new TypeError("n"));else if(z instanceof M)this.settleSameAsPromise_(z);else{a:switch(typeof z){case "object":var c=z!=null;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(z):this.fulfill_(z)}};
M.prototype.resolveToNonPromiseObj_=function(z){var c=void 0;try{c=z.then}catch(I){this.JSC$8756_reject_(I);return}typeof c=="function"?this.settleSameAsThenable_(c,z):this.fulfill_(z)};
M.prototype.JSC$8756_reject_=function(z){this.settle_(2,z)};
M.prototype.fulfill_=function(z){this.settle_(1,z)};
M.prototype.settle_=function(z,c){if(this.state_!=0)throw Error("o`"+z+"`"+c+"`"+this.state_);this.state_=z;this.result_=c;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
M.prototype.scheduleUnhandledRejectionCheck_=function(){var z=this;Z(function(){if(z.notifyUnhandledRejection_()){var c=_.ze.console;typeof c!=="undefined"&&c.error(z.result_)}},1)};
M.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var z=_.ze.CustomEvent,c=_.ze.Event,I=_.ze.dispatchEvent;if(typeof I==="undefined")return!0;typeof z==="function"?z=new z("unhandledrejection",{cancelable:!0}):typeof c==="function"?z=new c("unhandledrejection",{cancelable:!0}):(z=_.ze.document.createEvent("CustomEvent"),z.initCustomEvent("unhandledrejection",!1,!0,z));z.promise=this;z.reason=this.result_;return I(z)};
M.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var z=0;z<this.onSettledCallbacks_.length;++z)W.asyncExecute(this.onSettledCallbacks_[z]);this.onSettledCallbacks_=null}};
var W=new E;M.prototype.settleSameAsPromise_=function(z){var c=this.createResolveAndReject_();z.callWhenSettled_(c.resolve,c.reject)};
M.prototype.settleSameAsThenable_=function(z,c){var I=this.createResolveAndReject_();try{z.call(c,I.resolve,I.reject)}catch(B){I.reject(B)}};
M.prototype.then=function(z,c){function I(d,C){return typeof d=="function"?function(q){try{B(d(q))}catch(w){U(w)}}:C}
var B,U,L=new M(function(d,C){B=d;U=C});
this.callWhenSettled_(I(z,B),I(c,U));return L};
M.prototype.catch=function(z){return this.then(void 0,z)};
M.prototype.callWhenSettled_=function(z,c){function I(){switch(B.state_){case 1:z(B.result_);break;case 2:c(B.result_);break;default:throw Error("p`"+B.state_);}}
var B=this;this.onSettledCallbacks_==null?W.asyncExecute(I):this.onSettledCallbacks_.push(I);this.isRejectionHandled_=!0};
M.resolve=g;M.reject=function(z){return new M(function(c,I){I(z)})};
M.race=function(z){return new M(function(c,I){for(var B=_.G(z),U=B.next();!U.done;U=B.next())g(U.value).callWhenSettled_(c,I)})};
M.all=function(z){var c=_.G(z),I=c.next();return I.done?g([]):new M(function(B,U){function L(q){return function(w){d[q]=w;C--;C==0&&B(d)}}
var d=[],C=0;do d.push(void 0),C++,g(I.value).callWhenSettled_(L(d.length-1),U),I=c.next();while(!I.done)})};
return M});
var gr=function(h,E,g){if(h==null)throw new TypeError("q`"+g);if(E instanceof RegExp)throw new TypeError("r`"+g);return h+""};
AN("String.prototype.startsWith",function(h){return h?h:function(E,g){var Z=gr(this,E,"startsWith"),M=Z.length,W=E.length;g=Math.max(0,Math.min(g|0,Z.length));for(var z=0;z<W&&g<M;)if(Z[g++]!=E[z++])return!1;return z>=W}});
AN("Object.setPrototypeOf",function(h){return h||T5});
AN("Symbol.dispose",function(h){return h?h:Symbol("s")});
AN("SuppressedError",function(h){function E(g,Z,M){if(!(this instanceof E))return new E(g,Z,M);M=Error(M);"stack"in M&&(this.stack=M.stack);this.message=M.message;this.error=g;this.suppressed=Z}
if(h)return h;_.f(E,Error);E.prototype.name="SuppressedError";return E});
var Q6Z=function(h,E,g){h instanceof String&&(h=String(h));for(var Z=h.length,M=0;M<Z;M++){var W=h[M];if(E.call(g,W,M,h))return{i:M,v:W}}return{i:-1,v:void 0}};
AN("Array.prototype.find",function(h){return h?h:function(E,g){return Q6Z(this,E,g).v}});
AN("WeakMap",function(h){function E(){}
function g(I){var B=typeof I;return B==="object"&&I!==null||B==="function"}
function Z(I){if(!Q8(I,W)){var B=new E;rJu(I,W,{value:B})}}
function M(I){var B=Object[I];B&&(Object[I]=function(U){if(U instanceof E)return U;Object.isExtensible(U)&&Z(U);return B(U)})}
if(function(){if(!h||!Object.seal)return!1;try{var I=Object.seal({}),B=Object.seal({}),U=new h([[I,2],[B,3]]);if(U.get(I)!=2||U.get(B)!=3)return!1;U.delete(I);U.set(B,4);return!U.has(I)&&U.get(B)==4}catch(L){return!1}}())return h;
var W="$jscomp_hidden_"+Math.random();M("freeze");M("preventExtensions");M("seal");var z=0,c=function(I){this.JSC$8763_id_=(z+=Math.random()+1).toString();if(I){I=_.G(I);for(var B;!(B=I.next()).done;)B=B.value,this.set(B[0],B[1])}};
c.prototype.set=function(I,B){if(!g(I))throw Error("t");Z(I);if(!Q8(I,W))throw Error("u`"+I);I[W][this.JSC$8763_id_]=B;return this};
c.prototype.get=function(I){return g(I)&&Q8(I,W)?I[W][this.JSC$8763_id_]:void 0};
c.prototype.has=function(I){return g(I)&&Q8(I,W)&&Q8(I[W],this.JSC$8763_id_)};
c.prototype.delete=function(I){return g(I)&&Q8(I,W)&&Q8(I[W],this.JSC$8763_id_)?delete I[W][this.JSC$8763_id_]:!1};
return c});
AN("Map",function(h){if(function(){if(!h||typeof h!="function"||!h.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),I=new h(_.G([[c,"s"]]));if(I.get(c)!="s"||I.size!=1||I.get({x:4})||I.set({x:4},"t")!=I||I.size!=2)return!1;var B=I.entries(),U=B.next();if(U.done||U.value[0]!=c||U.value[1]!="s")return!1;U=B.next();return U.done||U.value[0].x!=4||U.value[1]!="t"||!B.next().done?!1:!0}catch(L){return!1}}())return h;
var E=new WeakMap,g=function(c){this[0]={};this[1]=W();this.size=0;if(c){c=_.G(c);for(var I;!(I=c.next()).done;)I=I.value,this.set(I[0],I[1])}};
g.prototype.set=function(c,I){c=c===0?0:c;var B=Z(this,c);B.list||(B.list=this[0][B.id]=[]);B.entry?B.entry.value=I:(B.entry={next:this[1],previous:this[1].previous,head:this[1],key:c,value:I},B.list.push(B.entry),this[1].previous.next=B.entry,this[1].previous=B.entry,this.size++);return this};
g.prototype.delete=function(c){c=Z(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this[0][c.id],c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};
g.prototype.clear=function(){this[0]={};this[1]=this[1].previous=W();this.size=0};
g.prototype.has=function(c){return!!Z(this,c).entry};
g.prototype.get=function(c){return(c=Z(this,c).entry)&&c.value};
g.prototype.entries=function(){return M(this,function(c){return[c.key,c.value]})};
g.prototype.keys=function(){return M(this,function(c){return c.key})};
g.prototype.values=function(){return M(this,function(c){return c.value})};
g.prototype.forEach=function(c,I){for(var B=this.entries(),U;!(U=B.next()).done;)U=U.value,c.call(I,U[1],U[0],this)};
g.prototype[Symbol.iterator]=g.prototype.entries;var Z=function(c,I){var B=I&&typeof I;B=="object"||B=="function"?E.has(I)?B=E.get(I):(B=""+ ++z,E.set(I,B)):B="p_"+I;var U=c[0][B];if(U&&Q8(c[0],B))for(c=0;c<U.length;c++){var L=U[c];if(I!==I&&L.key!==L.key||I===L.key)return{id:B,list:U,index:c,entry:L}}return{id:B,list:U,index:-1,entry:void 0}},M=function(c,I){var B=c[1];
return vGq(function(){if(B){for(;B.head!=c[1];)B=B.previous;for(;B.next!=B.head;)return B=B.next,{done:!1,value:I(B)};B=null}return{done:!0,value:void 0}})},W=function(){var c={};
return c.previous=c.next=c.head=c},z=0;
return g});
AN("Set",function(h){if(function(){if(!h||typeof h!="function"||!h.prototype.entries||typeof Object.seal!="function")return!1;try{var g=Object.seal({x:4}),Z=new h(_.G([g]));if(!Z.has(g)||Z.size!=1||Z.add(g)!=Z||Z.size!=1||Z.add({x:4})!=Z||Z.size!=2)return!1;var M=Z.entries(),W=M.next();if(W.done||W.value[0]!=g||W.value[1]!=g)return!1;W=M.next();return W.done||W.value[0]==g||W.value[0].x!=4||W.value[1]!=W.value[0]?!1:M.next().done}catch(z){return!1}}())return h;
var E=function(g){this.JSC$8777_map_=new Map;if(g){g=_.G(g);for(var Z;!(Z=g.next()).done;)this.add(Z.value)}this.size=this.JSC$8777_map_.size};
E.prototype.add=function(g){g=g===0?0:g;this.JSC$8777_map_.set(g,g);this.size=this.JSC$8777_map_.size;return this};
E.prototype.delete=function(g){g=this.JSC$8777_map_.delete(g);this.size=this.JSC$8777_map_.size;return g};
E.prototype.clear=function(){this.JSC$8777_map_.clear();this.size=0};
E.prototype.has=function(g){return this.JSC$8777_map_.has(g)};
E.prototype.entries=function(){return this.JSC$8777_map_.entries()};
E.prototype.values=function(){return this.JSC$8777_map_.values()};
E.prototype.keys=E.prototype.values;E.prototype[Symbol.iterator]=E.prototype.values;E.prototype.forEach=function(g,Z){var M=this;this.JSC$8777_map_.forEach(function(W){return g.call(Z,W,W,M)})};
return E});
AN("Math.log2",function(h){return h?h:function(E){return Math.log(E)/Math.LN2}});
AN("Object.values",function(h){return h?h:function(E){var g=[],Z;for(Z in E)Q8(E,Z)&&g.push(E[Z]);return g}});
AN("Object.is",function(h){return h?h:function(E,g){return E===g?E!==0||1/E===1/g:E!==E&&g!==g}});
AN("Array.prototype.includes",function(h){return h?h:function(E,g){var Z=this;Z instanceof String&&(Z=String(Z));var M=Z.length;g=g||0;for(g<0&&(g=Math.max(g+M,0));g<M;g++){var W=Z[g];if(W===E||Object.is(W,E))return!0}return!1}});
AN("String.prototype.includes",function(h){return h?h:function(E,g){return gr(this,E,"includes").indexOf(E,g||0)!==-1}});
AN("Array.from",function(h){return h?h:function(E,g,Z){g=g!=null?g:function(c){return c};
var M=[],W=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(typeof W=="function"){E=W.call(E);for(var z=0;!(W=E.next()).done;)M.push(g.call(Z,W.value,z++))}else for(W=E.length,z=0;z<W;z++)M.push(g.call(Z,E[z],z));return M}});
AN("Object.entries",function(h){return h?h:function(E){var g=[],Z;for(Z in E)Q8(E,Z)&&g.push([Z,E[Z]]);return g}});
AN("Number.isFinite",function(h){return h?h:function(E){return typeof E!=="number"?!1:!isNaN(E)&&E!==Infinity&&E!==-Infinity}});
AN("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
AN("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
AN("Number.isInteger",function(h){return h?h:function(E){return Number.isFinite(E)?E===Math.floor(E):!1}});
AN("Number.isSafeInteger",function(h){return h?h:function(E){return Number.isInteger(E)&&Math.abs(E)<=Number.MAX_SAFE_INTEGER}});
AN("String.prototype.endsWith",function(h){return h?h:function(E,g){var Z=gr(this,E,"endsWith");g===void 0&&(g=Z.length);g=Math.max(0,Math.min(g|0,Z.length));for(var M=E.length;M>0&&g>0;)if(Z[--g]!=E[--M])return!1;return M<=0}});
var hmZ=function(h,E){h instanceof String&&(h+="");var g=0,Z=!1,M={next:function(){if(!Z&&g<h.length){var W=g++;return{value:E(W,h[W]),done:!1}}Z=!0;return{done:!0,value:void 0}}};
M[Symbol.iterator]=function(){return M};
return M};
AN("Array.prototype.entries",function(h){return h?h:function(){return hmZ(this,function(E,g){return[E,g]})}});
AN("Math.trunc",function(h){return h?h:function(E){E=Number(E);if(isNaN(E)||E===Infinity||E===-Infinity||E===0)return E;var g=Math.floor(Math.abs(E));return E<0?-g:g}});
AN("Number.isNaN",function(h){return h?h:function(E){return typeof E==="number"&&isNaN(E)}});
AN("Array.prototype.keys",function(h){return h?h:function(){return hmZ(this,function(E){return E})}});
AN("Array.prototype.values",function(h){return h?h:function(){return hmZ(this,function(E,g){return g})}});
AN("Array.prototype.fill",function(h){return h?h:function(E,g,Z){var M=this.length||0;g<0&&(g=Math.max(0,M+g));if(Z==null||Z>M)Z=M;Z=Number(Z);Z<0&&(Z=Math.max(0,M+Z));for(g=Number(g||0);g<Z;g++)this[g]=E;return this}});
var ZW=function(h){return h?h:Array.prototype.fill};
AN("Int8Array.prototype.fill",ZW);AN("Uint8Array.prototype.fill",ZW);AN("Uint8ClampedArray.prototype.fill",ZW);AN("Int16Array.prototype.fill",ZW);AN("Uint16Array.prototype.fill",ZW);AN("Int32Array.prototype.fill",ZW);AN("Uint32Array.prototype.fill",ZW);AN("Float32Array.prototype.fill",ZW);AN("Float64Array.prototype.fill",ZW);
AN("Object.fromEntries",function(h){return h?h:function(E){var g={};if(!(Symbol.iterator in E))throw new TypeError("v`"+E);E=E[Symbol.iterator].call(E);for(var Z=E.next();!Z.done;Z=E.next()){Z=Z.value;if(Object(Z)!==Z)throw new TypeError("w");g[Z[0]]=Z[1]}return g}});
AN("String.prototype.replaceAll",function(h){return h?h:function(E,g){if(E instanceof RegExp&&!E.global)throw new TypeError("x");return E instanceof RegExp?this.replace(E,g):this.replace(new RegExp(String(E).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),g)}});
AN("Object.getOwnPropertySymbols",function(h){return h?h:function(){return[]}});
AN("String.prototype.repeat",function(h){return h?h:function(E){var g=gr(this,null,"repeat");if(E<0||E>1342177279)throw new RangeError("y");E|=0;for(var Z="";E;)if(E&1&&(Z+=g),E>>>=1)g+=g;return Z}});
AN("Array.prototype.findIndex",function(h){return h?h:function(E,g){return Q6Z(this,E,g).i}});
AN("Array.prototype.flatMap",function(h){return h?h:function(E,g){var Z=[];Array.prototype.forEach.call(this,function(M,W){M=E.call(g,M,W,this);Array.isArray(M)?Z.push.apply(Z,M):Z.push(M)});
return Z}});
AN("String.prototype.codePointAt",function(h){return h?h:function(E){var g=gr(this,null,"codePointAt"),Z=g.length;E=Number(E)||0;if(E>=0&&E<Z){E|=0;var M=g.charCodeAt(E);if(M<55296||M>56319||E+1===Z)return M;E=g.charCodeAt(E+1);return E<56320||E>57343?M:(M-55296)*1024+E+9216}}});
AN("String.fromCodePoint",function(h){return h?h:function(E){for(var g="",Z=0;Z<arguments.length;Z++){var M=Number(arguments[Z]);if(M<0||M>1114111||M!==Math.floor(M))throw new RangeError("z`"+M);M<=65535?g+=String.fromCharCode(M):(M-=65536,g+=String.fromCharCode(M>>>10&1023|55296),g+=String.fromCharCode(M&1023|56320))}return g}});
AN("String.prototype.trimLeft",function(h){function E(){return this.replace(/^[\s\xa0]+/,"")}
return h||E});
AN("String.prototype.trimStart",function(h){return h||String.prototype.trimLeft});
AN("String.prototype.padStart",function(h){return h?h:function(E,g){var Z=gr(this,null,"padStart");E-=Z.length;g=g!==void 0?String(g):" ";return(E>0&&g?g.repeat(Math.ceil(E/g.length)).substring(0,E):"")+Z}});
AN("Promise.prototype.finally",function(h){return h?h:function(E){return this.then(function(g){return Promise.resolve(E()).then(function(){return g})},function(g){return Promise.resolve(E()).then(function(){throw g;
})})}});
AN("Math.imul",function(h){return h?h:function(E,g){E=Number(E);g=Number(g);var Z=E&65535,M=g&65535;return Z*M+((E>>>16&65535)*M+Z*(g>>>16&65535)<<16>>>0)|0}});
AN("Object.hasOwn",function(h){return h?h:function(E,g){return Object.prototype.hasOwnProperty.call(E,g)}});
AN("Math.sign",function(h){return h?h:function(E){E=Number(E);return E===0||isNaN(E)?E:E>0?1:-1}});
AN("Array.prototype.flat",function(h){return h?h:function(E){E=E===void 0?1:E;var g=[];Array.prototype.forEach.call(this,function(Z){Array.isArray(Z)&&E>0?(Z=Array.prototype.flat.call(Z,E-1),g.push.apply(g,Z)):g.push(Z)});
return g}});
AN("String.raw",function(h){return h?h:function(E,g){E=YPV(E);for(var Z=E.raw,M=Z.length,W="",z=0;z<M;++z)W+=Z[z],z+1<M&&z+1<arguments.length&&(W+=String(arguments[z+1]));return W}});
AN("Reflect.ownKeys",function(h){return h?h:function(E){var g=[],Z=Object.getOwnPropertyNames(E);E=Object.getOwnPropertySymbols(E);for(var M=0;M<Z.length;M++)(Z[M].substring(0,14)=="jscomp_symbol_"?E:g).push(Z[M]);return g.concat(E)}});
AN("Object.getOwnPropertyDescriptors",function(h){return h?h:function(E){for(var g={},Z=Reflect.ownKeys(E),M=0;M<Z.length;M++)g[Z[M]]=Object.getOwnPropertyDescriptor(E,Z[M]);return g}});
AN("WeakSet",function(h){if(function(){if(!h||!Object.seal)return!1;try{var g=Object.seal({}),Z=Object.seal({}),M=new h([g]);if(!M.has(g)||M.has(Z))return!1;M.delete(g);M.add(Z);return!M.has(g)&&M.has(Z)}catch(W){return!1}}())return h;
var E=function(g){this.JSC$8790_map_=new WeakMap;if(g){g=_.G(g);for(var Z;!(Z=g.next()).done;)this.add(Z.value)}};
E.prototype.add=function(g){this.JSC$8790_map_.set(g,!0);return this};
E.prototype.has=function(g){return this.JSC$8790_map_.has(g)};
E.prototype.delete=function(g){return this.JSC$8790_map_.delete(g)};
return E});
AN("Promise.allSettled",function(h){function E(Z){return{status:"fulfilled",value:Z}}
function g(Z){return{status:"rejected",reason:Z}}
return h?h:function(Z){var M=this;Z=Array.from(Z,function(W){return M.resolve(W).then(E,g)});
return M.all(Z)}});
AN("Number.parseInt",function(h){return h||parseInt});
_._DumpException=window._DumpException||function(h){throw h;};
window._DumpException=_._DumpException;var ERZ=window.ytcsi;ERZ&&typeof ERZ.tick==="function"&&ERZ.tick("rses_dpj");var gRu,Mv,WW,pW,Zoz,MrN,Wkd,pI$,Sx,GWu;gRu=gRu||{};_.MN=this||self;_.Wu=function(h,E,g){h=h.split(".");g=g||_.MN;for(var Z;h.length&&(Z=h.shift());)h.length||E===void 0?g[Z]&&g[Z]!==Object.prototype[Z]?g=g[Z]:g=g[Z]={}:g[Z]=E};
Mv=function(h,E){var g=_.yy("WIZ_global_data.oxN3nb");h=g&&g[h];return h!=null?h:E};
WW=_.MN._F_toggles_default_kevlar_base||[];pW=function(){};
pW.get=function(){return null};
_.$Tu=null;_.yy=function(h,E){h=h.split(".");E=E||_.MN;for(var g=0;g<h.length;g++)if(E=E[h[g]],E==null)return null;return E};
_.GZ=function(h){h.instance_=void 0;h.getInstance=function(){return h.instance_?h.instance_:h.instance_=new h}};
_.Tf=function(h){var E=typeof h;return E!="object"?E:h?Array.isArray(h)?"array":E:"null"};
_.s4=function(h){var E=_.Tf(h);return E=="array"||E=="object"&&typeof h.length=="number"};
_.yx=function(h){var E=typeof h;return E=="object"&&h!=null||E=="function"};
_.AM=function(h){return Object.prototype.hasOwnProperty.call(h,Zoz)&&h[Zoz]||(h[Zoz]=++MrN)};
Zoz="closure_uid_"+(Math.random()*1E9>>>0);MrN=0;Wkd=function(h,E,g){return h.call.apply(h.bind,arguments)};
pI$=function(h,E,g){if(!h)throw Error();if(arguments.length>2){var Z=Array.prototype.slice.call(arguments,2);return function(){var M=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(M,Z);return h.apply(E,M)}}return function(){return h.apply(E,arguments)}};
_.DJ=function(h,E,g){_.DJ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Wkd:pI$;return _.DJ.apply(null,arguments)};
_.Sj=function(h,E){var g=Array.prototype.slice.call(arguments,1);return function(){var Z=g.slice();Z.push.apply(Z,arguments);return h.apply(this,Z)}};
_.zZ=function(){return Date.now()};
Sx=function(h){return h};
_.aV=function(h,E){function g(){}
g.prototype=E.prototype;h.superClass_=E.prototype;h.prototype=new g;h.prototype.constructor=h;h.base=function(Z,M,W){for(var z=Array(arguments.length-2),c=2;c<arguments.length;c++)z[c-2]=arguments[c];return E.prototype[M].apply(Z,z)}};
GWu=function(h){return h};var zm$,aoq;_.Y=function(h,E,g,Z){var M=arguments.length,W=M<3?E:Z===null?Z=Object.getOwnPropertyDescriptor(E,g):Z,z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")W=Reflect.decorate(h,E,g,Z);else for(var c=h.length-1;c>=0;c--)if(z=h[c])W=(M<3?z(W):M>3?z(E,g,W):z(E,g))||W;M>3&&W&&Object.defineProperty(E,g,W)};
_.V=function(h,E){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(h,E)};
zm$=function(h,E){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("A");if(g===void 0){if(!Symbol.dispose)throw new TypeError("C");var g=E[Symbol.dispose]}if(typeof g!=="function")throw new TypeError("D");h.stack.push({value:E,dispose:g,async:!1})}return E};
aoq=function(h){function E(W){h.error=h.hasError?new SuppressedError(W,h.error,"An error was suppressed during disposal."):W;h.hasError=!0}
function g(){for(;Z=h.stack.pop();)try{if(!Z.async&&M===1)return M=0,h.stack.push(Z),Promise.resolve().then(g);if(Z.dispose){var W=Z.dispose.call(Z.value);if(Z.async)return M|=2,Promise.resolve(W).then(g,function(z){E(z);return g()})}else M|=1}catch(z){E(z)}if(M===1)return h.hasError?Promise.reject(h.error):Promise.resolve();
if(h.hasError)throw h.error;}
var Z,M=0;g()};_.aV(_.g$,Error);_.g$.prototype.name="CustomError";var crz;var ioV=void 0,oRd,Iou=typeof TextDecoder!=="undefined",Zd$,g$Z=typeof String.prototype.isWellFormed==="function",E$V=typeof TextEncoder!=="undefined";var Rmx;_.xd=function(h){for(var E=[],g=0,Z=0;Z<h.length;Z++){var M=h.charCodeAt(Z);M<128?E[g++]=M:(M<2048?E[g++]=M>>6|192:((M&64512)==55296&&Z+1<h.length&&(h.charCodeAt(Z+1)&64512)==56320?(M=65536+((M&1023)<<10)+(h.charCodeAt(++Z)&1023),E[g++]=M>>18|240,E[g++]=M>>12&63|128):E[g++]=M>>12|224,E[g++]=M>>6&63|128),E[g++]=M&63|128)}return E};
Rmx=function(h){for(var E=[],g=0,Z=0;g<h.length;){var M=h[g++];if(M<128)E[Z++]=String.fromCharCode(M);else if(M>191&&M<224){var W=h[g++];E[Z++]=String.fromCharCode((M&31)<<6|W&63)}else if(M>239&&M<365){W=h[g++];var z=h[g++],c=h[g++];M=((M&7)<<18|(W&63)<<12|(z&63)<<6|c&63)-65536;E[Z++]=String.fromCharCode(55296+(M>>10));E[Z++]=String.fromCharCode(56320+(M&1023))}else W=h[g++],z=h[g++],E[Z++]=String.fromCharCode((M&15)<<12|(W&63)<<6|z&63)}return E.join("")};var Pa=String.prototype.trim?function(h){return h.trim()}:function(h){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(h)[1]},Pjq=/&/g,BJd=/</g,Ur4=/>/g,LkW=/"/g,jvV=/'/g,drV=/\x00/g,Cj$=/[\x00&<>"']/;var cW=!!(WW[0]>>15&1),Jr4=!!(WW[0]&1024),emZ=!!(WW[0]>>16&1),qeN=!!(WW[0]&8),foM=!!(WW[0]&2),NJM=!!(WW[0]&4),trW=!!(WW[0]&16),Sez=!!(WW[0]&128);var xrd=Mv(1,!0),d$=cW?emZ:Mv(610401301,!1),wIz=cW?qeN:Mv(772657768,!1),Dra=cW?foM:Mv(513659523,!1),lox=cW?Jr4||!NJM:Mv(568333945,!0),uBM=cW?trW:Mv(1331761403,!1),oUx=cW?Jr4||!Sez:Mv(748402147,xrd);var JM,rra=_.MN.navigator;JM=rra?rra.userAgentData||null:null;var Qa;_.O4=function(h,E){return Array.prototype.indexOf.call(h,E,void 0)};
_.Tt=function(h,E,g){Array.prototype.forEach.call(h,E,g)};
_.i3=function(h,E,g){return Array.prototype.filter.call(h,E,g)};
_.O6=function(h,E,g){return Array.prototype.map.call(h,E,g)};
Qa=function(h,E,g){return Array.prototype.some.call(h,E,g)};
_.xbx=function(h,E,g){return Array.prototype.every.call(h,E,g)};var oV=function(h){oV[" "](h);return h};
oV[" "]=function(){};
var eu$=function(h,E){try{return oV(h[E]),!0}catch(g){}return!1},BeZ=function(h,E,g,Z){Z=Z?Z(E):E;
return Object.prototype.hasOwnProperty.call(h,Z)?h[Z]:h[Z]=g(E)};var mrx,Zp,vR4,HoZ,KkM,OoW,CoM,nRd,XIa,YeM,x0W,VrZ,kWz,TJu,boz,uSd;_.xkd=function(){return _.MN.navigator||null};
mrx=Gua();_.IV=zVN();Zp=qN("Edge");vR4=Zp||_.IV;_.RV=qN("Gecko")&&!(_.IW(_.jq(),"WebKit")&&!qN("Edge"))&&!(qN("Trident")||qN("MSIE"))&&!qN("Edge");_.PW=_.IW(_.jq(),"WebKit")&&!qN("Edge");HoZ=_.PW&&qN("Mobile");_.$rV=_.UNz();KkM=_.LZu();OoW=(w$()?JM.platform==="Linux":qN("Linux"))||_.jWZ();CoM=_.POd();nRd=B$O();XIa=qN("iPad");YeM=qN("iPod");_.sv$=_.Dz();x0W=_.IW(_.jq(),"KaiOS");VrZ=function(){var h=_.MN.document;return h?h.documentMode:void 0};
a:{var yrz="",Fkx=function(){var h=_.jq();if(_.RV)return/rv:([^\);]+)(\)|;)/.exec(h);if(Zp)return/Edge\/([\d\.]+)/.exec(h);if(_.IV)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(h);if(_.PW)return/WebKit\/(\S+)/.exec(h);if(mrx)return/(?:Version)[ \/]?(\S+)/.exec(h)}();
Fkx&&(yrz=Fkx?Fkx[1]:"");if(_.IV){var Aru=VrZ();if(Aru!=null&&Aru>parseFloat(yrz)){kWz=String(Aru);break a}}kWz=yrz}TJu=kWz;boz={};_.BW=function(h){return BeZ(boz,h,function(){return _.U4(TJu,h)>=0})};
if(_.MN.document&&_.IV){var QvM=VrZ();uSd=QvM?QvM:parseInt(TJu,10)||void 0}else uSd=void 0;_.h5x=uSd;var l$q,rjx,Eb$;_.UK=Sq();l$q=B$O()||qN("iPod");rjx=qN("iPad");Eb$=_.idd();_.LW=_.x$();_.sq=_.cMz()&&!_.Dz();var gbq,jP,XRZ,wBO,MUN,Z9Z;gbq={};jP=null;XRZ=_.RV||_.PW||typeof _.MN.btoa=="function";_.lJ=function(h,E){E===void 0&&(E=0);Z9Z();E=gbq[E];for(var g=Array(Math.floor(h.length/3)),Z=E[64]||"",M=0,W=0;M<h.length-2;M+=3){var z=h[M],c=h[M+1],I=h[M+2],B=E[z>>2];z=E[(z&3)<<4|c>>4];c=E[(c&15)<<2|I>>6];I=E[I&63];g[W++]=B+z+c+I}B=0;I=Z;switch(h.length-M){case 2:B=h[M+1],I=E[(B&15)<<2]||Z;case 1:h=h[M],g[W]=E[h>>2]+E[(h&3)<<4|B>>4]+I+Z}return g.join("")};
wBO=function(h){var E="";MUN(h,function(g){E+=String.fromCharCode(g)});
return E};
_.uoa=function(h){var E=[];MUN(h,function(g){E.push(g)});
return E};
_.Qx=function(h){var E=h.length,g=E*3/4;g%3?g=Math.floor(g):_.oW("=.",h[E-1])&&(g=_.oW("=.",h[E-2])?g-2:g-1);var Z=new Uint8Array(g),M=0;MUN(h,function(W){Z[M++]=W});
return M!==g?Z.subarray(0,M):Z};
MUN=function(h,E){function g(I){for(;Z<h.length;){var B=h.charAt(Z++),U=jP[B];if(U!=null)return U;if(!_.ca(B))throw Error("H`"+B);}return I}
Z9Z();for(var Z=0;;){var M=g(-1),W=g(0),z=g(64),c=g(64);if(c===64&&M===-1)break;E(M<<2|W>>4);z!=64&&(E(W<<4&240|z>>2),c!=64&&E(z<<6&192|c))}};
Z9Z=function(){if(!jP){jP={};for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),E=["+/=","+/","-_=","-_.","-_"],g=0;g<5;g++){var Z=h.concat(E[g].split(""));gbq[g]=Z;for(var M=0;M<Z.length;M++){var W=Z[M];jP[W]===void 0&&(jP[W]=M)}}}};var VqV=typeof Uint8Array!=="undefined",rMz=!_.IV&&typeof btoa==="function",mN$=/[-_.]/g,DNz={"-":"+",_:"/",".":"="},tn={};var NA,pYa;NA=function(h,E){if(E!==tn)throw Error("J");this.JSC$8820_value_=h;if(h!=null&&h.length===0)throw Error("I");};
_.SF=function(){return WBx||(WBx=new NA(null,tn))};
pYa=function(h){return new Uint8Array(vUz(h)||0)};
NA.prototype.isEmpty=function(){return this.JSC$8820_value_==null};
NA.prototype.sizeBytes=function(){var h=vUz(this);return h?h.length:0};
var vUz=function(h){if(tn!==tn)throw Error("J");var E=h.JSC$8820_value_;E==null||VqV&&E!=null&&E instanceof Uint8Array||(typeof E==="string"?E=v$z(E):(_.Tf(E),E=null));return E==null?E:h.JSC$8820_value_=E},WBx;var $Nx=void 0;var WM=typeof Symbol==="function"&&typeof Symbol()==="symbol",GJN=MA("jas",void 0,!0),ll$=MA(void 0,"0di"),gU=MA(void 0,"1oa"),wI=MA(void 0,Symbol()),Anx=MA(void 0,"0ub"),bDW=MA(void 0,"0ubs"),L2V=MA(void 0,"0ubsb"),RCq=MA(void 0,"0actk"),qZ=MA("m_m","messagePrototypeMarker",!0),Gpu=MA(void 0,"vps"),kf4=MA();var n$V,Odz,FX,z5$;n$V={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Odz=Object.defineProperties;_.pD=WM?GJN:"internalArrayState";z5$=[];Gf(z5$,7);FX=Object.freeze(z5$);var fU={},om={},ajV=function(h,E,g){this.iterable=h;this.mapper=E;this.thisArg=g};
ajV.prototype.next=function(){var h=this.iterable.next();h.done||(h.value=this.mapper.call(this.thisArg,h.value));return h};
ajV.prototype[Symbol.iterator]=function(){return this};
var cwa=Object.freeze({}),Dl={};_.i9O=mf(function(h){return h!==null&&h!==void 0});var bdx=mf(function(h){return typeof h==="number"}),T$u=mf(function(h){return typeof h==="string"}),QWV=mf(function(h){return typeof h==="boolean"}),obO=mf(function(h){return h!=null&&typeof h==="object"&&typeof h.then==="function"}),NfM=mf(function(h){return typeof h==="function"}),ap=mf(function(h){return!!h&&(typeof h==="object"||typeof h==="function")});var uzO=typeof _.MN.BigInt==="function"&&typeof _.MN.BigInt(0)==="bigint";var NBz=mf(function(h){return uzO?h>=IjM&&h<=R5x:h[0]==="-"?hHZ(h,PTO):hHZ(h,B3O)}),PTO=Number.MIN_SAFE_INTEGER.toString(),IjM=uzO?BigInt(Number.MIN_SAFE_INTEGER):void 0,B3O=Number.MAX_SAFE_INTEGER.toString(),R5x=uzO?BigInt(Number.MAX_SAFE_INTEGER):void 0;var UFz=typeof Uint8Array.prototype.slice==="function",HM=0,$M=0,ZDV;var aG,IG,bl,oG,oMz;aG=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Bc=typeof BigInt==="function"?BigInt.asUintN:void 0;IG=Number.isSafeInteger;bl=Number.isFinite;oG=Math.trunc;oMz=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var zC4={};var YDa={},LBq=function(){try{var h=function(){return $5$(Map,[],this.constructor)};
_.f(h,Map);oV(new h);return!1}catch(E){return!0}}(),dr=function(){this.JSC$8839_map_=new Map};
_.p=dr.prototype;_.p.get=function(h){return this.JSC$8839_map_.get(h)};
_.p.set=function(h,E){this.JSC$8839_map_.set(h,E);this.size=this.JSC$8839_map_.size;return this};
_.p.delete=function(h){h=this.JSC$8839_map_.delete(h);this.size=this.JSC$8839_map_.size;return h};
_.p.clear=function(){this.JSC$8839_map_.clear();this.size=this.JSC$8839_map_.size};
_.p.has=function(h){return this.JSC$8839_map_.has(h)};
_.p.entries=function(){return this.JSC$8839_map_.entries()};
_.p.keys=function(){return this.JSC$8839_map_.keys()};
_.p.values=function(){return this.JSC$8839_map_.values()};
_.p.forEach=function(h,E){return this.JSC$8839_map_.forEach(h,E)};
dr.prototype[Symbol.iterator]=function(){return this.entries()};
var mi=function(){if(LBq)return Object.setPrototypeOf(dr.prototype,Map.prototype),Object.defineProperties(dr.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),dr;var h=function(){return $5$(Map,[],this.constructor)};
_.f(h,Map);return h}(),tC=function(h,E,g,Z){g=g===void 0?$Ad:g;
Z=Z===void 0?$Ad:Z;var M=mi.call(this)||this;M.arrayState=h[_.pD]|0;M.valueCtor=E;M.keyToApi=g;M.valueToApi=M.valueCtor?ODO:Z;for(var W=0;W<h.length;W++){var z=h[W],c=g(z[0],!1,!0),I=z[1];E?I===void 0&&(I=null):I=Z(z[1],!1,!0,void 0,void 0,M.arrayState);mi.prototype.set.call(M,c,I)}return M};
_.f(tC,mi);var jLx=function(h){if(h.arrayState&2)throw Error("N");},UZW=function(h){return Array.from(mi.prototype.entries.call(h))};
_.p=tC.prototype;_.p.clear=function(){jLx(this);mi.prototype.clear.call(this)};
_.p.delete=function(h){jLx(this);return mi.prototype.delete.call(this,this.keyToApi(h,!0,!1))};
_.p.entries=function(){if(this.valueCtor){var h=mi.prototype.keys.call(this);h=new ajV(h,nM4,this)}else h=mi.prototype.entries.call(this);return h};
_.p.values=function(){if(this.valueCtor){var h=mi.prototype.keys.call(this);h=new ajV(h,tC.prototype.get,this)}else h=mi.prototype.values.call(this);return h};
_.p.forEach=function(h,E){this.valueCtor?mi.prototype.forEach.call(this,function(g,Z,M){h.call(E,M.get(Z),Z,M)}):mi.prototype.forEach.call(this,h,E)};
_.p.set=function(h,E){jLx(this);h=this.keyToApi(h,!0,!1);return h==null?this:E==null?(mi.prototype.delete.call(this,h),this):mi.prototype.set.call(this,h,this.valueToApi(E,!0,!0,this.valueCtor,!1,this.arrayState))};
_.p.has=function(h){return mi.prototype.has.call(this,this.keyToApi(h,!1,!1))};
_.p.get=function(h){h=this.keyToApi(h,!1,!1);var E=mi.prototype.get.call(this,h);if(E!==void 0){var g=this.valueCtor;return g?(g=this.valueToApi(E,!1,!0,g,this.callToMutableOnAccess,this.arrayState),g!==E&&mi.prototype.set.call(this,h,g),g):E}};
tC.prototype[Symbol.iterator]=function(){return this.entries()};
tC.prototype.toJSON=void 0;var XMM;var EUZ=function(){},QmV=function(h,E){for(var g in h)!isNaN(g)&&E(h,+g,h[g])},gU$=function(h){var E=new EUZ;
QmV(h,function(g,Z,M){E[Z]=sD(M)});
E.reviveUnknownFields=h.reviveUnknownFields;return E},yn$={reviveIntoImmutable:!0};var hCO;var aRZ,cCZ;var dFx,uJ,dQ,fI,CT4,SP,eM,JwN,e5W,l3,qMV,rr,HW,$g;dFx=_.vM(0);_.CW={};_.Js=function(h,E,g,Z,M){E=uJ(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,g,M);if(E!==null||Z&&h.noLegacyNull!==om)return E};
uJ=function(h,E,g,Z){if(E===-1)return null;var M=E+(g?0:-1),W=h.length-1;if(!(W<1+(g?0:-1))){if(M>=W){var z=h[W];if(z!=null&&typeof z==="object"&&z.constructor===Object){g=z[E];var c=!0}else if(M===W)g=z;else return}else g=h[M];if(Z&&g!=null){Z=Z(g);if(Z==null)return Z;if(!Object.is(Z,g))return c?z[E]=Z:h[M]=Z,Z}return g}};
_.II=function(h,E,g,Z){s0(h);var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;yG(M,M[_.pD]|0,E,g,Z);return h};
_.eP=function(h,E,g){h=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wcW(h,h[_.pD]|0,E,g)!==void 0};
_.qv=function(h,E,g,Z){var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return wcW(M,M[_.pD]|0,E,fI(h,Z,g))!==void 0};
_.ch=function(h){return h===cwa?2:4};
_.fW=function(h,E){h=_.Js(h,E,void 0,void 0,q0u);return h==null?_.SF():h};
dQ=function(h,E,g,Z){s0(h);var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[_.pD]|0;if(Z==null){var z=txx(M);if(S04(z,M,W,g)===E)z.set(g,0);else return h}else W=xZx(M,W,g,E);yG(M,W,E,Z);return h};
_.Nv=function(h,E,g,Z){var M=h[_.pD]|0,W=rB(M);M=xZx(h,M,g,E,W);yG(h,M,E,Z,W)};
fI=function(h,E,g){return _.ts(h,E)===g?g:-1};
_.ts=function(h,E){h=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return S04(txx(h),h,void 0,E,void 0)};
CT4=function(h,E,g){var Z=h[_.pD]|0,M=rB(Z),W=uJ(h,g,M);if(W!=null&&W[qZ]===fU){if(!dB(W))return XX(W),W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var z=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(W)&&(z=W);if(z){var c=z[_.pD]|0;c&2&&(z=O0(z,c))}z=KU(z,E,!0);z!==W&&yG(h,Z,g,z,M);return z};
_.iK=function(h,E,g,Z){var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[_.pD]|0;E=wcW(M,W,E,g,Z);if(E==null)return E;W=M[_.pD]|0;if(!dB(h,W)){var z=KfV(E);z!==E&&(XX(h)&&(M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W=M[_.pD]|0),E=z,W=yG(M,W,g,E,Z),VG(M,W))}return E};
_.aD=function(h,E,g,Z){var M=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return DZW(h,M,M[_.pD]|0,E,g,Z,!1,!0)};
_.fM=function(h,E,g,Z){g=lRW(g);_.II(h,E,g,Z);g&&!dB(g)&&VG(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return h};
_.No=function(h,E,g,Z){Z=lRW(Z);dQ(h,E,g,Z);Z&&!dB(Z)&&VG(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return h};
SP=function(h,E,g){s0(h);var Z=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=Z[_.pD]|0;if(g==null)return yG(Z,M,E),h;for(var W=g===FX?7:g[_.pD]|0,z=W,c=bJ(W),I=c||Object.isFrozen(g),B=!0,U=!0,L=0;L<g.length;L++){var d=g[L];c||(d=dB(d),B&&(B=!d),U&&(U=d))}c||(W=B?13:5,W=U?W&-4097:W|4096);I&&W===z||(g=sD(g),z=0,W=AC(W,M));W!==z&&Gf(g,W);M=yG(Z,M,E,g);2&W||!(4096&W||16&W)||VG(Z,M);return h};
eM=function(h,E,g,Z){mZu(h,E,g,Z);return h};
JwN=function(h,E,g){mZu(h,E,xg,void 0,g,1,!0);return h};
_.wr=function(h,E,g){h=_.Js(h,E,void 0,g);E=typeof h;h=h==null?h:E==="bigint"?_.vM((0,_.Bc)(64,h)):_.ul(h)?E==="string"?_.flx(h):_.eHz(h):void 0;return h};
_.DW=function(h,E){var g=g===void 0?!1:g;var Z;return(Z=_.iDZ(_.Js(h,E)))!=null?Z:g};
_.i4=function(h,E,g){g=g===void 0?0:g;var Z;return(Z=_.Wc(_.Js(h,E)))!=null?Z:g};
e5W=function(h,E){var g=g===void 0?0:g;h=_.RHM(_.Js(h,E));return h!=null?h:g};
l3=function(h,E,g){g=g===void 0?dFx:g;var Z;return(Z=_.xAM(_.Js(h,E)))!=null?Z:g};
qMV=function(h){var E=E===void 0?dFx:E;var g;return(g=_.wr(h,23))!=null?g:E};
rr=function(h,E){var g=g===void 0?0:g;var Z;return(Z=_.Js(h,E,void 0,void 0,_.yk))!=null?Z:g};
_.mj=function(h,E,g,Z){g=g===void 0?"":g;var M;return(M=_.JC(_.Js(h,E,Z)))!=null?M:g};
_.vW=function(h,E){var g=g===void 0?0:g;var Z;return(Z=_.ZR(_.Js(h,E)))!=null?Z:g};
HW=function(h,E){var g=g===void 0?"0":g;h=SDZ(_.Js(h,E),!0);return h!=null?h:g};
$g=function(h,E,g){return _.mj(h,fI(h,g,E))};
_.KW=function(h,E,g,Z){return _.iK(h,E,fI(h,Z,g),void 0)};
_.ef=function(h,E){return _.JC(_.Js(h,E,void 0,_.CW))};
_.Ph=function(h,E,g){return _.II(h,E,cn$(g))};
_.OH=function(h,E,g){return _.hL(h,E,cn$(g),!1)};
_.OK=function(h,E,g){return _.II(h,E,_.MZ(g))};
_.t1=function(h,E,g){return _.II(h,E,iJ(g))};
_.ln=function(h,E,g){return _.II(h,E,CU(g))};
_.FD=function(h,E,g,Z){return _.hL(h,E,CU(g),"",Z)};
_.oI=function(h,E,g){return _.II(h,E,g==null?g:_.gI(g))};
_.nW=function(h,E,g){return _.hL(h,E,g==null?g:_.gI(g),0)};var Z0=function(h,E,g){this.buffer=h;if(g&&!E)throw Error();this.JSC$8851_isImmutable=E};var fjz=function(h,E,g,Z){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.init(h,E,g,Z)},XW,tUz,SMZ,xFO,wYa,DFO,GNz,N3W;
_.p=fjz.prototype;_.p.init=function(h,E,g,Z){var M=Z===void 0?{}:Z;Z=M.aliasBytesFields===void 0?!1:M.aliasBytesFields;M=M.treatNewDataAsImmutable===void 0?!1:M.treatNewDataAsImmutable;this.aliasBytesFields=Z;this.treatNewDataAsImmutable=M;h&&(h=HUM(h,this.treatNewDataAsImmutable),this.bytes_=h.buffer,this.bytesAreImmutable_=h.JSC$8851_isImmutable,this.JSC$8854_start_=E||0,this.end_=g!==void 0?this.JSC$8854_start_+g:this.bytes_.length,this.cursor_=this.JSC$8854_start_)};
_.p.free=function(){this.clear();N3W.length<100&&N3W.push(this)};
_.p.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8854_start_=0;this.aliasBytesFields=!1};
_.p.reset=function(){this.cursor_=this.JSC$8854_start_};
_.p.atEnd=function(){return this.cursor_==this.end_};
_.Yg=function(h,E){var g=0,Z=0,M=0,W=h.bytes_,z=h.cursor_;do{var c=W[z++];g|=(c&127)<<M;M+=7}while(M<32&&c&128);if(M>32)for(Z|=(c&127)>>4,M=3;M<32&&c&128;M+=7)c=W[z++],Z|=(c&127)<<M;XW(h,z);if(!(c&128))return E(g>>>0,Z>>>0);throw Error();};
XW=function(h,E){h.cursor_=E;if(E>h.end_)throw Error();};
_.sK=function(h){var E=h.bytes_,g=h.cursor_,Z=E[g++],M=Z&127;if(Z&128&&(Z=E[g++],M|=(Z&127)<<7,Z&128&&(Z=E[g++],M|=(Z&127)<<14,Z&128&&(Z=E[g++],M|=(Z&127)<<21,Z&128&&(Z=E[g++],M|=Z<<28,Z&128&&E[g++]&128&&E[g++]&128&&E[g++]&128&&E[g++]&128&&E[g++]&128)))))throw Error();XW(h,g);return M};
_.Vj=function(h){var E=h.bytes_,g=h.cursor_,Z=E[g],M=E[g+1],W=E[g+2];E=E[g+3];XW(h,h.cursor_+4);return(Z<<0|M<<8|W<<16|E<<24)>>>0};
tUz=function(h){var E=_.Vj(h);h=_.Vj(h);return WfZ(E,h)};
SMZ=function(h){var E=_.Vj(h);h=(E>>31)*2+1;var g=E>>>23&255;E&=8388607;return g==255?E?NaN:h*Infinity:g==0?h*1.401298464324817E-45*E:h*Math.pow(2,g-150)*(E+8388608)};
xFO=function(h){var E=_.Vj(h),g=_.Vj(h);h=(g>>31)*2+1;var Z=g>>>20&2047;E=4294967296*(g&1048575)+E;return Z==2047?E?NaN:h*Infinity:Z==0?h*4.9E-324*E:h*Math.pow(2,Z-1075)*(E+4503599627370496)};
wYa=function(h){for(var E=0,g=h.cursor_,Z=g+10,M=h.bytes_;g<Z;){var W=M[g++];E|=W;if((W&128)===0)return XW(h,g),!!(E&127)}throw Error();};
DFO=function(h,E){if(E<0)throw Error();var g=h.cursor_;E=g+E;if(E>h.end_)throw Error();h.cursor_=E;return g};
GNz=function(h,E){if(E==0)return _.SF();var g=DFO(h,E);h.aliasBytesFields&&h.bytesAreImmutable_?g=h.bytes_.subarray(g,g+E):(h=h.bytes_,E=g+E,g=g===E?new Uint8Array(0):UFz?h.slice(g,E):new Uint8Array(h.subarray(g,E)));return g.length==0?_.SF():new NA(g,tn)};
N3W=[];var rwW=function(h,E,g,Z){if(N3W.length){var M=N3W.pop();M.init(h,E,g,Z);h=M}else h=new fjz(h,E,g,Z);this.decoder_=h;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;ljz(this,Z)},ljz=function(h,E){E=E===void 0?{}:E;
h.discardUnknownFields=E.discardUnknownFields===void 0?!1:E.discardUnknownFields},cLN=function(h,E,g,Z){if(mF$.length){var M=mF$.pop();
ljz(M,Z);M.decoder_.init(h,E,g,Z);return M}return new rwW(h,E,g,Z)},MLu,pia,kg,vbM,mF$;
rwW.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;mF$.length<100&&mF$.push(this)};
rwW.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
MLu=function(h){if(h.decoder_.atEnd())return!1;h.fieldCursor_=h.decoder_.cursor_;var E=_.sK(h.decoder_)>>>0,g=E>>>3;E&=7;if(!(E>=0&&E<=5))throw Error();if(g<1)throw Error();h.nextField_=g;h.nextWireType_=E;return!0};
pia=function(h){switch(h.nextWireType_){case 0:h.nextWireType_!=0?pia(h):wYa(h.decoder_);break;case 1:h=h.decoder_;XW(h,h.cursor_+8);break;case 2:if(h.nextWireType_!=2)pia(h);else{var E=_.sK(h.decoder_)>>>0;h=h.decoder_;XW(h,h.cursor_+E)}break;case 5:h=h.decoder_;XW(h,h.cursor_+4);break;case 3:E=h.nextField_;do{if(!MLu(h))throw Error();if(h.nextWireType_==4){if(h.nextField_!=E)throw Error();break}pia(h)}while(1);break;default:throw Error();}};
kg=function(h,E,g){var Z=h.decoder_.end_,M=_.sK(h.decoder_)>>>0;M=h.decoder_.cursor_+M;var W=M-Z;W<=0&&(h.decoder_.end_=M,g(E,h,void 0,void 0,void 0),W=M-h.decoder_.cursor_);if(W)throw Error();h.decoder_.cursor_=M;h.decoder_.end_=Z;return E};
vbM=function(h){var E=_.sK(h.decoder_)>>>0;h=h.decoder_;var g=DFO(h,E);h=h.bytes_;if(Iou){var Z=h,M;(M=oRd)||(M=oRd=new TextDecoder("utf-8",{fatal:!0}));E=g+E;Z=g===0&&E===Z.length?Z:Z.subarray(g,E);try{var W=M.decode(Z)}catch(B){if(ioV===void 0){try{M.decode(new Uint8Array([128]))}catch(U){}try{M.decode(new Uint8Array([97])),ioV=!0}catch(U){ioV=!1}}!ioV&&(oRd=void 0);throw B;}}else{W=g;E=W+E;g=[];for(var z=null,c,I;W<E;)c=h[W++],c<128?g.push(c):c<224?W>=E?Zz():(I=h[W++],c<194||(I&192)!==128?(W--,
Zz()):g.push((c&31)<<6|I&63)):c<240?W>=E-1?Zz():(I=h[W++],(I&192)!==128||c===224&&I<160||c===237&&I>=160||((M=h[W++])&192)!==128?(W--,Zz()):g.push((c&15)<<12|(I&63)<<6|M&63)):c<=244?W>=E-2?Zz():(I=h[W++],(I&192)!==128||(c<<28)+(I-144)>>30!==0||((M=h[W++])&192)!==128||((Z=h[W++])&192)!==128?(W--,Zz()):(c=(c&7)<<18|(I&63)<<12|(M&63)<<6|Z&63,c-=65536,g.push((c>>10&1023)+55296,(c&1023)+56320))):Zz(),g.length>=8192&&(z=hVW(z,g),g.length=0);W=hVW(z,g)}return W};
_.H9W=function(h){var E=_.sK(h.decoder_)>>>0;return GNz(h.decoder_,E)};
_.$F$=function(h,E,g){var Z=_.sK(h.decoder_)>>>0;for(Z=h.decoder_.cursor_+Z;h.decoder_.cursor_<Z;)g.push(E(h.decoder_))};
mF$=[];var KBV=function(h,E){this.JSC$8861_lo=h>>>0;this.JSC$8861_hi=E>>>0},O9x=function(h){h=BigInt.asUintN(64,h);
return new KBV(Number(h&BigInt(4294967295)),Number(h>>BigInt(32)))},OUz=function(h){if(!h)return nbO||(nbO=new KBV(0,0));
if(!/^\d+$/.test(h))return null;YM(h);return new KBV(HM,$M)},nbO,eaq=function(h,E){this.JSC$8863_lo=h>>>0;
this.JSC$8863_hi=E>>>0},$ZV=function(h){if(!h)return XYz||(XYz=new eaq(0,0));
if(!/^-?\d+$/.test(h))return null;YM(h);return new eaq(HM,$M)},XYz;var yj=function(){this.JSC$8865_buffer_=[]},Pi,UG,YMO;
yj.prototype.length=function(){return this.JSC$8865_buffer_.length};
yj.prototype.end=function(){var h=this.JSC$8865_buffer_;this.JSC$8865_buffer_=[];return h};
Pi=function(h,E,g){for(;g>0||E>127;)h.JSC$8865_buffer_.push(E&127|128),E=(E>>>7|g<<25)>>>0,g>>>=7;h.JSC$8865_buffer_.push(E)};
UG=function(h,E){for(;E>127;)h.JSC$8865_buffer_.push(E&127|128),E>>>=7;h.JSC$8865_buffer_.push(E)};
_.qGq=function(h,E){if(E>=0)UG(h,E);else{for(var g=0;g<9;g++)h.JSC$8865_buffer_.push(E&127|128),E>>=7;h.JSC$8865_buffer_.push(1)}};
YMO=function(h,E){YM(E);pMO(function(g,Z){Pi(h,g>>>0,Z>>>0)})};
yj.prototype.writeUint8=function(h){this.JSC$8865_buffer_.push(h>>>0&255)};
_.RK=function(h,E){h.JSC$8865_buffer_.push(E>>>0&255);h.JSC$8865_buffer_.push(E>>>8&255);h.JSC$8865_buffer_.push(E>>>16&255);h.JSC$8865_buffer_.push(E>>>24&255)};
yj.prototype.writeInt8=function(h){this.JSC$8865_buffer_.push(h>>>0&255)};var sLu,aK,NUq,xoZ,sGM;sLu=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new yj};
aK=function(h,E){E.length!==0&&(h.blocks_.push(E),h.totalLength_+=E.length)};
_.VUZ=function(h,E){_.IK(h,E,2);E=h.encoder_.end();aK(h,E);E.push(h.totalLength_);return E};
_.kJN=function(h,E){var g=E.pop();for(g=h.totalLength_+h.encoder_.length()-g;g>127;)E.push(g&127|128),g>>>=7,h.totalLength_++;E.push(g);h.totalLength_++};
_.IK=function(h,E,g){UG(h.encoder_,E*8+g)};
NUq=function(h,E,g){if(g!=null)switch(nU4(g),_.IK(h,E,1),typeof g){case "number":h=h.encoder_;EMV(g);_.RK(h,HM);_.RK(h,$M);break;case "bigint":g=O9x(g);h=h.encoder_;E=g.JSC$8861_hi;_.RK(h,g.JSC$8861_lo);_.RK(h,E);break;default:g=OUz(g),h=h.encoder_,E=g.JSC$8861_hi,_.RK(h,g.JSC$8861_lo),_.RK(h,E)}};
xoZ=function(h,E,g){_.IK(h,E,2);UG(h.encoder_,g.length);aK(h,h.encoder_.end());aK(h,g)};
sGM=function(h,E,g,Z){g!=null&&(E=_.VUZ(h,E),Z(g,h),_.kJN(h,E))};var XcV,ywZ,FBq,Awq,T3z,u6Z,QLM,E4u,g4x;XcV=Mo();ywZ=Mo();FBq=Mo();Awq=Mo();T3z=Mo();_.b9$=Mo();_.FW=Mo();u6Z=Mo();QLM=Mo();_.hv$=Mo();E4u=Mo();g4x=Mo();_.ZKa=Mo();_.M5N=Mo();_.GN=function(h,E,g){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,E,g)};
_.GN.prototype.toJSON=function(){return vc(this)};
_.GN.prototype.serialize=function(h){return JSON.stringify(vc(this,h))};
var K2q=function(h,E){if(E==null||E=="")return new h;E=JSON.parse(E);if(!Array.isArray(E))throw Error("V");return new h(sWu(E))};
_.GN.prototype.getExtension=function(h){TBO(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h.fieldIndex);FfW(this,h.fieldIndex);return h.ctor?h.isRepeated?h.getExtensionFn(this,h.ctor,h.fieldIndex,_.ch(),h.JSC$8876_hasMessageId):h.getExtensionFn(this,h.ctor,h.fieldIndex,h.JSC$8876_hasMessageId):h.isRepeated?h.getExtensionFn(this,h.fieldIndex,_.ch(),h.JSC$8876_hasMessageId):h.getExtensionFn(this,h.fieldIndex,h.defaultValue,h.JSC$8876_hasMessageId)};
_.GN.prototype.clone=function(){var h=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=h[_.pD]|0;return dZz(this,h,E)?jGa(this,h,!0):new this.constructor(O0(h,E,!1))};
_.GN.prototype[qZ]=fU;_.GN.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Wi=function(h,E,g){this.$$binaryReaderFn=h;this.$$binaryWriterFn=E;h=Sx(XcV);this.$$isMsg=!!h&&g===h||!1},TIz=Y0q(function(h,E,g,Z,M){if(h.nextWireType_!==2)return!1;
kg(h,CT4(E,Z,g),M);return!0},kpN),bUq=Y0q(function(h,E,g,Z,M){if(h.nextWireType_!==2)return!1;
kg(h,CT4(E,Z,g),M);return!0},kpN),or$=Symbol(),ha4=Symbol(),ZMx=Symbol(),PxZ=Symbol(),zaM=Symbol(),yCz,Fix;var vrZ,W4q,As,pNd,G6$,zv$,aHq,b3,cya,u3,iKq,o4Z,IHM,Rva,PS$,Bjq,UQN,jza,dQa,CSx,JyN;vrZ=function(h,E){var g=new sLu;BU$(h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g,pM(or$,iMO,I0q,E));aK(g,g.encoder_.end());h=new Uint8Array(g.totalLength_);E=g.blocks_;for(var Z=E.length,M=0,W=0;W<Z;W++){var z=E[W];h.set(z,M);M+=z.length}g.blocks_=[h];return h};
W4q=Y0q(function(h,E,g,Z,M){if(h.nextWireType_!==2)return!1;h=kg(h,KU([void 0,void 0],Z,!0),M);h=sD(h);Z=E[_.pD]|0;M=rB(Z);if(Z&2)throw Error();var W=uJ(E,g,M);W instanceof tC?(W.arrayState&2)!=0?(W=UZW(W),W.push(h),yG(E,Z,g,W,M)):(E=W,g=E.keyToApi(h[0],!1,!0),h=h[1],h=E.valueCtor?h===void 0?null:h:E.valueToApi(h,!1,!0,void 0,!1,E.arrayState),mi.prototype.set.call(E,g,h)):Array.isArray(W)?((W[_.pD]|0)&2&&(W=fR$(W),yG(E,Z,g,W,M)),W.push(h)):yG(E,Z,g,[h],M);return!0},function(h,E,g,Z,M){if(E instanceof
tC)E.forEach(function(c,I){sGM(h,g,KU([I,
c],Z,!1),M)});
else if(Array.isArray(E))for(var W=0;W<E.length;W++){var z=E[W];Array.isArray(z)&&sGM(h,g,KU(z,Z,!1),M)}});
As=_.ix(function(h,E,g){if(h.nextWireType_!==1)return!1;_.oK(E,g,xFO(h.decoder_));return!0},CxV,g4x);
pNd=_.ix(function(h,E,g,Z){if(h.nextWireType_!==1)return!1;_.Nv(E,g,Z,xFO(h.decoder_));return!0},CxV,g4x);
G6$=_.ix(function(h,E,g){if(h.nextWireType_!==5)return!1;_.oK(E,g,SMZ(h.decoder_));return!0},JL4,E4u);
zv$=_.dou(function(h,E,g){if(h.nextWireType_!==5&&h.nextWireType_!==2)return!1;E=_.EG(E,E[_.pD]|0,g);h.nextWireType_==2?_.$F$(h,SMZ,E):E.push(SMZ(h.decoder_));return!0},function(h,E,g){E=_.jKz(_.yk,E,!0);
if(E!=null&&E.length)for(_.IK(h,g,2),UG(h.encoder_,E.length*4),g=0;g<E.length;g++){var Z=h.encoder_;MFO(E[g]);_.RK(Z,HM)}},E4u);
aHq=_.ix(function(h,E,g,Z){if(h.nextWireType_!==5)return!1;_.Nv(E,g,Z,SMZ(h.decoder_));return!0},JL4,E4u);
_.TZ=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.Yg(h.decoder_,nD));return!0},_.Bi,_.FW);
b3=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;h=_.Yg(h.decoder_,nD);_.oK(E,g,h===0?void 0:h);return!0},_.Bi,_.FW);
cya=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;_.Nv(E,g,Z,_.Yg(h.decoder_,nD));return!0},_.Bi,_.FW);
u3=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.Yg(h.decoder_,WfZ));return!0},function(h,E,g){E=DAz(E);
if(E!=null&&(nU4(E),E!=null))switch(_.IK(h,g,0),typeof E){case "number":h=h.encoder_;KD(E);Pi(h,HM,$M);break;case "bigint":g=O9x(E);Pi(h.encoder_,g.JSC$8861_lo,g.JSC$8861_hi);break;default:g=OUz(E),Pi(h.encoder_,g.JSC$8861_lo,g.JSC$8861_hi)}},u6Z);
_.Qj=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.sK(h.decoder_));return!0},f0V,Awq);
iKq=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;h=_.sK(h.decoder_);_.oK(E,g,h===0?void 0:h);return!0},f0V,Awq);
o4Z=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;_.Nv(E,g,Z,_.sK(h.decoder_));return!0},f0V,Awq);
IHM=_.ix(function(h,E,g){if(h.nextWireType_!==1)return!1;_.oK(E,g,tUz(h.decoder_));return!0},_.tLO,_.hv$);
Rva=_.dou(function(h,E,g){if(h.nextWireType_!==1&&h.nextWireType_!==2)return!1;E=_.EG(E,E[_.pD]|0,g);h.nextWireType_==2?_.$F$(h,tUz,E):E.push(tUz(h.decoder_));return!0},function(h,E,g){E=_.jKz(DAz,E,!1);
if(E!=null)for(var Z=0;Z<E.length;Z++)NUq(h,g,E[Z])},_.hv$);
_.ho=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,wYa(h.decoder_));return!0},SGz,ywZ);
_.Ep=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;h=wYa(h.decoder_);_.oK(E,g,h===!1?void 0:h);return!0},SGz,ywZ);
PS$=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;_.Nv(E,g,Z,wYa(h.decoder_));return!0},SGz,ywZ);
_.gk=_.ix(function(h,E,g){if(h.nextWireType_!==2)return!1;_.oK(E,g,vbM(h));return!0},wi$,FBq);
_.ZE=_.ix(function(h,E,g){if(h.nextWireType_!==2)return!1;h=vbM(h);_.oK(E,g,h===""?void 0:h);return!0},wi$,FBq);
_.MG=_.ix(function(h,E,g,Z){if(h.nextWireType_!==2)return!1;_.Nv(E,g,Z,vbM(h));return!0},wi$,FBq);
Bjq=_.dou(function(h,E,g){if(h.nextWireType_!==2)return!1;h=vbM(h);_.EG(E,E[_.pD]|0,g).push(h);return!0},function(h,E,g){E=_.jKz(_.JC,E,!0);
if(E!=null)for(var Z=0;Z<E.length;Z++){var M=h,W=g,z=E[Z];z!=null&&xoZ(M,W,MqV(z))}},FBq);
UQN=void 0;UQN=UQN===void 0?XcV:UQN;_.WF=new Wi(function(h,E,g,Z,M){if(h.nextWireType_!==2)return!1;Z=KU(void 0,Z,!0);_.EG(E,E[_.pD]|0,g).push(Z);kg(h,Z,M);return!0},function(h,E,g,Z,M){if(Array.isArray(E))for(var W=0;W<E.length;W++)Do$(h,E[W],g,Z,M)},UQN);
_.pz=Y0q(function(h,E,g,Z,M,W){if(h.nextWireType_!==2)return!1;var z=E[_.pD]|0;xZx(E,z,W,g,rB(z));E=CT4(E,Z,g);kg(h,E,M);return!0},Do$);
_.L4a=_.ix(function(h,E,g){if(h.nextWireType_!==2)return!1;_.oK(E,g,_.H9W(h));return!0},_.l0z,_.ZKa);
jza=_.ix(function(h,E,g,Z){if(h.nextWireType_!==2)return!1;_.Nv(E,g,Z,_.H9W(h));return!0},_.l0z,_.ZKa);
dQa=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.sK(h.decoder_)>>>0);return!0},rL4,T3z);
CSx=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;_.Nv(E,g,Z,_.sK(h.decoder_)>>>0);return!0},rL4,T3z);
_.Gb=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.sK(h.decoder_));return!0},_.moW,_.M5N);
_.zb=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;h=_.sK(h.decoder_);_.oK(E,g,h===0?void 0:h);return!0},_.moW,_.M5N);
JyN=_.ix(function(h,E,g){if(h.nextWireType_!==0)return!1;_.oK(E,g,_.Yg(h.decoder_,Gfq));return!0},function(h,E,g){E=wMZ(E);
if(E!=null&&(Kix(E),E!=null))switch(_.IK(h,g,0),typeof E){case "number":h=h.encoder_;g=E;E=g<0;g=Math.abs(g)*2;EMV(g);g=HM;var Z=$M;E&&(g==0?Z==0?Z=g=4294967295:(Z--,g=4294967295):g--);HM=g;$M=Z;Pi(h,HM,$M);break;case "bigint":h=h.encoder_;E=E<<BigInt(1)^E>>BigInt(63);HM=Number(BigInt.asUintN(32,E));$M=Number(BigInt.asUintN(32,E>>BigInt(32)));Pi(h,HM,$M);break;default:YMO(h.encoder_,E)}},QLM);var fHu=function(){var h=evd,E=qNa;this.fieldIndex=175237375;this.ctor=E;this.isRepeated=0;this.getExtensionFn=_.iK;this.defaultValue=void 0;this.JSC$8876_hasMessageId=h.messageId!=null?Dl:void 0};
fHu.prototype.register=function(){oV(this)};var Njd=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Njd,_.GN);var t5N=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(t5N,_.GN);var XiM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(XiM,_.GN);var SNO=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(SNO,_.GN);var xQ4=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(xQ4,_.GN);var wN$=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(wN$,_.GN);var DQV=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(DQV,_.GN);DQV.prototype.getData=function(){return _.fW(this,2)};var lHz=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(lHz,_.GN);var ryW=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ryW,_.GN);ryW.prototype.getStyle=function(){return _.iK(this,Njd,1)};var qo=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qo,_.GN);qo.prototype.getPayloadCase=function(){return _.ts(this,tL)};
qo.prototype.getStyle=function(){return _.KW(this,ryW,6,tL)};
var mQZ=function(){var h=new qo,E=new xQ4;return _.No(h,7,tL,E)},v4O=function(){var h=new qo,E=new wN$;
return _.No(h,8,tL,E)},tL=[1,
2,3,4,5,6,7,8];var HKM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(HKM,_.GN);var $QO=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f($QO,_.GN);var K4M=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(K4M,_.GN);var OKd=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(OKd,_.GN);var n4d=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(n4d,_.GN);var XNM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(XNM,_.GN);var YNa=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(YNa,_.GN);var szZ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(szZ,_.GN);szZ.prototype.getData=function(){return _.fW(this,2)};var V5z=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(V5z,_.GN);var nrW=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(nrW,_.GN);nrW.prototype.getPayloadCase=function(){return _.ts(this,aO)};
var aO=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var cF=function(h,E){h=Error.call(this,h);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=E===void 0?2:E};
_.f(cF,Error);var k64=Promise;var yyO=function(h){this.channelPromise=h};
yyO.prototype.send=function(h,E,g){this.channelPromise.then(function(Z){Z.send(h,E,g)})};var F4u=function(h,E){this.data=h;this.channel=E};
F4u.prototype.reply=function(h,E,g){this.channel.send(h,E,g)};var Aya=function(h){this.JSC$8942_port_=h};
Aya.prototype.send=function(h,E,g){g=g===void 0?[]:g;var Z=new MessageChannel;TjW(Z.port1,E);this.JSC$8942_port_.postMessage(h,[Z.port2].concat(g))};
var bKa=function(h,E){TjW(h,E);return new Aya(h)},TjW=function(h,E){E&&(h.onmessage=function(g){E(new F4u(g.data,bKa(g.ports[0])))})};var u1$=function(h){this.verifier_=h};
u1$.prototype.verify=function(h){return this.verifier_(h)};
var Qzz=function(h){var E=Object.create(null);(typeof h==="string"?[h]:h).forEach(function(g){if(g==="null")throw Error("X");E[g]=!0});
return function(g){return E[g]===!0}};_.hVm=function(){if(!_.MN.addEventListener||!Object.defineProperty)return!1;var h=!1,E=Object.defineProperty({},"passive",{get:function(){h=!0}});
try{var g=function(){};
_.MN.addEventListener("test",g,E);_.MN.removeEventListener("test",g,E)}catch(Z){}return h}();var E$H;_.iY=function(h){var E=h.destination;var g=h.iframe;var Z=h.origin;var M=h.channelName===void 0?"ZNWN1d":h.channelName;var W=h.onMessage===void 0?void 0:h.onMessage;h=h.onEstablished===void 0?void 0:h.onEstablished;return E$H({destination:E,getSource:function(){return g.contentWindow},
originVerifier:Z instanceof u1$?Z:typeof Z==="function"?new u1$(Z):new u1$(Qzz(Z)),channelName:M,onMessage:W,onEstablished:h})};
E$H=function(h){var E=h.destination;var g=h.getSource;var Z=h.originVerifier;var M=h.token===void 0?void 0:h.token;var W=h.channelName;var z=h.onMessage===void 0?void 0:h.onMessage;var c=h.onEstablished===void 0?void 0:h.onEstablished;return new yyO(new k64(function(I,B){var U=function(L){L.source&&L.source===g()&&Z.verify(L.origin)&&(L.data.n||L.data)===W&&(E.removeEventListener("message",U,!1),M&&L.data.t!==M?B(Error("Y`"+W+"`"+M+"`"+L.data.t)):(I(bKa(L.ports[0],z)),c&&c(L)))};
E.addEventListener("message",U,!1)}))};var g$f=function(h){try{h()}catch(E){Wa(E)}};var MqH=function(h){var E=this;var g=h.getMessageType;var Z=h.onUnregisteredMessage===void 0?function(){}:h.onUnregisteredMessage;
var M=h.onBeforeRegisteredMessage===void 0?function(){}:h.onBeforeRegisteredMessage;
h=h.onAfterRegisteredMessage===void 0?function(){}:h.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=g;this.onUnregisteredMessage_=Z;this.onBeforeRegisteredMessage_=M;this.onAfterRegisteredMessage_=h;this.onMessage=function(W){return ZdB(E,W)}};
MqH.prototype.register=function(h,E){this.registry_.set(h,E);return this};
var ZdB=function(h,E){var g=h.getMessageType_(E.data),Z=h.registry_.get(g);Z?(g$f(function(){return h.onBeforeRegisteredMessage_(E,g)}),g$f(function(){return Z(E)}),g$f(function(){return h.onAfterRegisteredMessage_(E,g)})):g$f(function(){return h.onUnregisteredMessage_(E,g)})};var WZH=function(h){this.JSC$8959_channel_=h},GuM,zVA;
WZH.prototype.send=function(h,E,g){this.JSC$8959_channel_.send(vc(h),E,g)};
_.paH=function(h,E){return function(g){var Z=new h(g.data);return E(new F4u(Z,g.channel))}};
GuM=function(h){return function(E){return h(new F4u(E.data,new WZH(E.channel)))}};
zVA=function(h,E){return GuM(_.paH(h,E))};var azm=function(h,E,g,Z){this.registry=h;this.delegate=E;this.receiveMessageConstructor=g;this.createInitMessage=Z;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},OMx=function(h){var E=new MqH({getMessageType:h.getPayloadCase});
return new azm(E,new WZH(_.iY({iframe:h.child,destination:window,origin:h.origin,channelName:h.channelName,onMessage:zVA(h.receiveMessageConstructor,E.onMessage)})),h.receiveMessageConstructor,h.createInitMessage)},cMl=function(h,E){h.createInitMessage=E};
azm.prototype.send=function(h){if(!this.initialised)throw new cF("Attempted to send a message before initialisation.");this.delegate.send(h)};
var idD=function(h,E){return _.a(function(g){if(!h.initialised)throw new cF("Attempted to send a message before initialisation.");return g.return(new Promise(function(Z){h.delegate.send(E,zVA(h.receiveMessageConstructor,Z))}))})};
azm.prototype.init=function(){var h=this;return _.a(function(E){if(h.initialised)throw new cF("Attempted to initialise twice. The SDK can only be initialised once.");if(h.createInitMessage!==void 0){var g=h.delegate,Z=g.send,M=h.createInitMessage;var W=new t5N;var z=[].concat(_.$E(h.features));W=_.QG(W,1,z,_.gI);Z.call(g,M.call(h,W))}h.initialised=!0;_.SK(E)})};
var oO=function(h,E){if(h.initialised)throw new cF('Attempted to set up API "'+E+'" after initialisation. All APIs must be set up before initialising the SDK.');h.features.add(E);return h.registry};
_.ze.Object.defineProperties(azm.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var o$F=function(h){this.channel=h;this.registered=!1};
o$F.prototype.update=function(h){if(this.channel.isInitialised){if(!this.registered)throw new cF("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var E=new qo;var g=new SNO;g=_.Ph(g,1,h);E=_.No(E,2,tL,g);this.channel.send(E)}else this.register();this.JSC$8973_audioEnabled=h};
o$F.prototype.register=function(){oO(this.channel,1);this.registered=!0};
o$F.prototype.isAudioEnabled=function(){return this.JSC$8973_audioEnabled};var Izf=function(h){this.channel=h};
_.p=Izf.prototype;_.p.onFirstFrameReady=function(h){oO(this.channel,2).register(11,function(E){E=_.KW(E.data,HKM,11,aO);if(!E)throw new cF("Unexpectedly nonexistent GameFirstFrameReadyEvent");h(_.mj(E,1))})};
_.p.onReady=function(h){oO(this.channel,2).register(4,function(E){E=_.KW(E.data,K4M,4,aO);if(!E)throw new cF("Unexpectedly nonexistent GameReadyEvent");h(_.mj(E,1))})};
_.p.onLevelComplete=function(h){oO(this.channel,2).register(5,function(E){E=_.KW(E.data,OKd,5,aO);if(!E)throw new cF("Unexpectedly nonexistent LevelCompleteEvent");h(_.mj(E,1),_.i4(E,2))})};
_.p.onGameOver=function(h){oO(this.channel,2).register(6,function(E){E=_.KW(E.data,$QO,6,aO);if(!E)throw new cF("Unexpectedly nonexistent GameOverEvent");h(_.mj(E,1))})};
_.p.pause=function(){var h=this;if(!this.channel.isInitialised)return oO(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cF("Using unregistered Game Feature: pause.");var E=mQZ();return new Promise(function(g){return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(idD(h.channel,E),2);g();_.SK(Z)})})};
_.p.resume=function(){var h=this;if(!this.channel.isInitialised)return oO(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new cF("Using unregistered Game Feature: resume.");var E=v4O();return new Promise(function(g){return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(idD(h.channel,E),2);g();_.SK(Z)})})};var RVf=function(h){this.channel=h};
RVf.prototype.onReady=function(h){oO(this.channel,5).register(8,function(E){if(!_.KW(E.data,n4d,8,aO))throw new cF("Unexpectedly nonexistent PageReadyEvent");h()})};var POD=function(h){this.channel=h};
POD.prototype.onChange=function(h){oO(this.channel,3).register(7,function(E){E=_.KW(E.data,XNM,7,aO);if(!E)throw new cF("Unexpectedly nonexistent ScoreEvent");h(_.mj(E,1),_.i4(E,2))})};var B$l={load:function(){throw new cF("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new cF("Storage used, but storage.onSave() listener not set!");}},UNC=function(h){this.channel=h;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},LZf=function(h){oO(h.channel,4).register(2,B$l.load).register(3,B$l.save);
h.initialSetupDone=!0};
UNC.prototype.onLoad=function(h){this.initialSetupDone||LZf(this);this.loadRegistered||(this.loadRegistered=!0,oO(this.channel,4).register(2,function(E){var g,Z,M;return _.a(function(W){if(W.nextAddress==1){g=_.KW(E.data,YNa,2,aO);if(!g)throw new cF("Unexpectedly nonexistent StorageLoad");Z=_.mj(g,1);return W.yield(h(Z),2)}M=W.yieldResult;var z=E.reply,c=new qo;var I=new DQV;I=_.ln(I,1,Z);I=_.II(I,2,_.xM(M,!1));c=_.No(c,3,tL,I);z.call(E,c);_.SK(W)})}))};
UNC.prototype.onSave=function(h){this.initialSetupDone||LZf(this);this.saveRegistered||(this.saveRegistered=!0,oO(this.channel,4).register(3,function(E){var g,Z,M;return _.a(function(W){if(W.nextAddress==1){g=_.KW(E.data,szZ,3,aO);if(!g)throw new cF("Unexpectedly nonexistent StorageSave");Z=_.mj(g,1);M=pYa(g.getData());return W.yield(h(Z,M),2)}var z=E.reply,c=new qo;var I=new lHz;I=_.ln(I,1,Z);c=_.No(c,4,tL,I);z.call(E,c);_.SK(W)})}))};var jWf=function(h){this.channel=h};
jWf.prototype.update=function(h){if(!this.channel.features.has(6))throw new cF("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var E=new qo,g=new ryW;h=_.fM(g,1,h);E=_.No(E,6,tL,h);this.channel.send(E)};
jWf.prototype.register=function(){oO(this.channel,6)};var dNC=function(h){this.channel=h;this.userActivityLoggingIntervalMs=0};
dNC.prototype.onUserActivity=function(h,E){this.userActivityLoggingIntervalMs=E;oO(this.channel,7).register(9,function(g){if(!_.KW(g.data,V5z,9,aO))throw new cF("Unexpectedly nonexistent ClickEvent");h()})};var COk=function(h){var E=this;this.channel=h;this.init=this.channel.init.bind(this.channel);this.page=new RVf(this.channel);this.game=new Izf(this.channel);this.audio=new o$F(this.channel);this.score=new POD(this.channel);this.storage=new UNC(this.channel);this.style=new jWf(this.channel);this.userActivity=new dNC(this.channel);cMl(this.channel,function(g){var Z=new XiM;g=_.fM(Z,1,g);g=_.OK(g,3,E.userActivity.userActivityLoggingIntervalMs);Z=E.audio.isAudioEnabled();Z!==void 0&&_.Ph(g,2,Z);Z=new qo;
return _.No(Z,5,tL,g)})};var JMM=function(){this.timedFunctionContext=0};
JMM.prototype.timeExecution=function(h,E){var g=this;return function(){var Z=_.VF.apply(0,arguments);g.timedFunctionContext=h;return E.apply(null,_.$E(Z))}};var eVF=function(){var h={};this.priorityTasks=(h[3]=[],h[2]=[],h[1]=[],h);this.isFlushing=!1},e8=function(h,E,g){var Z=q4B(h,g);
h.priorityTasks[g].push(E);Z&&h.priorityTasks[g].length===1&&h.flush()},q4B=function(h,E){return Object.keys(h.priorityTasks).map(function(g){return Number(g)}).filter(function(g){return!isNaN(g)&&g>E}).every(function(g){return h.priorityTasks[g].length===0})};
eVF.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(h){return h.length>0});)fzm(this,3),fzm(this,2),fzm(this,1)}catch(h){throw Object.values(this.priorityTasks).forEach(function(E){return void E.splice(0,E.length)}),h;
}finally{this.isFlushing=!1}}};
var fzm=function(h,E){for(;q4B(h,E)&&h.priorityTasks[E].length>0;)h.priorityTasks[E][0](),h.priorityTasks[E].shift()};
_.ze.Object.defineProperties(eVF.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(h){return h.length>0})}}});var ALW={};var N$D=globalThis.trustedTypes,sKM=N$D,kNx;var xr=function(h){this.privateDoNotAccessOrElseWrappedResourceUrl=h};
xr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var tqD,S4m,xND,waf,DNl,lzf,rMl,mNB;tqD=_.uz([""]);S4m=bz(["\x00"],["\\0"]);xND=bz(["\n"],["\\n"]);waf=bz(["\x00"],["\\u0000"]);DNl=_.uz([""]);lzf=bz(["\x00"],["\\0"]);rMl=bz(["\n"],["\\n"]);mNB=bz(["\x00"],["\\u0000"]);_.v$C=F2a(function(h){return h(tqD)})||F2a(function(h){return h(S4m)})||F2a(function(h){return h(xND)})||F2a(function(h){return h(waf)});
_.Hdl=_.rU(DNl)&&_.rU(lzf)&&_.rU(rMl)&&_.rU(mNB);var Xj;_.m2=function(h,E){this.privateDoNotAccessOrElseWrappedUrl=E};
_.m2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.$Nk=vi("about:blank");Xj=vi("about:invalid#zClosurez");var TUq=function(h){this.isValid=h},KZD=new TUq(function(h){return/^[^:]*([/?#]|$)/.test(h)}),Odl=OG("data"),n$H=OG("http"),Xaf=OG("https"),Y4m=OG("ftp"),sWf=OG("mailto"),VqH=OG("intent"),kul=OG("vnd.youtube"),bM$=[Odl,
n$H,Xaf,sWf,Y4m,KZD],QKO=SL(function(){return typeof URL==="function"}),yMf=["data:",
"http:","https:","mailto:","ftp:"],EEa=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Fj=function(h){this.privateDoNotAccessOrElseWrappedHtml=h};
Fj.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var IpW=SL(function(){return new Fj(N$D?N$D.emptyHTML:"")});var FZl={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"},ZXz=function(h,E){var g=Error.call(this,h+" cannot be used with intent "+FZl[E]);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.type=h;this.intent=E;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.f(ZXz,Error);_.ZT=function(h){this.privateDoNotAccessOrElseWrappedScript=h};
_.ZT.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var GHd=function(h){this.privateDoNotAccessOrElseWrappedAttributePrefix=h};
GHd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var zLa="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var cA=function(h){this.privateDoNotAccessOrElseWrappedStyleSheet=h};
cA.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var N5W=function(h){var E=_.yy("window.location.href");h==null&&(h='Unknown Error of type "null/undefined"');if(typeof h==="string")return{message:h,name:"Unknown error",lineNumber:"Not available",fileName:E,stack:"Not available"};var g=!1;try{var Z=h.lineNumber||h.line||"Not available"}catch(z){Z="Not available",g=!0}try{var M=h.fileName||h.filename||h.sourceURL||_.MN.$googDebugFname||E}catch(z){M="Not available",g=!0}E=AMl(h);if(!(!g&&h.lineNumber&&h.fileName&&h.stack&&h.message&&h.name)){g=h.message;
if(g==null){if(h.constructor&&h.constructor instanceof Function){if(h.constructor.name)g=h.constructor.name;else if(g=h.constructor,IO[g])g=IO[g];else{g=String(g);if(!IO[g]){var W=/function\s+([^\(]+)/m.exec(g);IO[g]=W?W[1]:"[Anonymous]"}g=IO[g]}g='Unknown Error of type "'+g+'"'}else g="Unknown Error of unknown type";typeof h.toString==="function"&&Object.prototype.toString!==h.toString&&(g+=": "+h.toString())}return{message:g,name:h.name||"UnknownError",lineNumber:Z,fileName:M,stack:E||"Not available"}}return{message:h.message,
name:h.name,lineNumber:h.lineNumber,fileName:h.fileName,stack:E}},AMl=function(h,E){E||(E={});
E[T$f(h)]=!0;var g=h.stack||"",Z=h.cause;Z&&!E[T$f(Z)]&&(g+="\nCaused by: ",Z.stack&&Z.stack.indexOf(Z.toString())==0||(g+=typeof Z==="string"?Z:Z.message+"\n"),g+=AMl(Z,E));h=h.errors;if(Array.isArray(h)){Z=1;var M;for(M=0;M<h.length&&!(Z>4);M++)E[T$f(h[M])]||(g+="\nInner error "+Z++ +": ",h[M].stack&&h[M].stack.indexOf(h[M].toString())==0||(g+=typeof h[M]==="string"?h[M]:h[M].message+"\n"),g+=AMl(h[M],E));M<h.length&&(g+="\n... "+(h.length-M)+" more inner errors")}return g},T$f=function(h){var E=
"";
typeof h.toString==="function"&&(E=""+h);return E+h.stack},IO={};var bdk,Wx,B3,QWH,hHf,uzl,AA,uC,gMl;bdk=function(h,E){for(var g=h.split("%s"),Z="",M=Array.prototype.slice.call(arguments,1);M.length&&g.length>1;)Z+=g.shift()+M.shift();return Z+g.join("%s")};
_.Ax=function(h){return encodeURIComponent(String(h))};
Wx=function(h){return decodeURIComponent(h.replace(/\+/g," "))};
B3=function(h){Cj$.test(h)&&(h.indexOf("&")!=-1&&(h=h.replace(Pjq,"&amp;")),h.indexOf("<")!=-1&&(h=h.replace(BJd,"&lt;")),h.indexOf(">")!=-1&&(h=h.replace(Ur4,"&gt;")),h.indexOf('"')!=-1&&(h=h.replace(LkW,"&quot;")),h.indexOf("'")!=-1&&(h=h.replace(jvV,"&#39;")),h.indexOf("\x00")!=-1&&(h=h.replace(drV,"&#0;")));return h};
QWH=function(h){var E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var g=_.MN.document.createElement("div");return h.replace(uzl,function(Z,M){var W=E[Z];if(W)return W;M.charAt(0)=="#"&&(M=Number("0"+M.slice(1)),isNaN(M)||(W=String.fromCharCode(M)));W||(_.GH(g,AL(Z+" ")),W=g.firstChild.nodeValue.slice(0,-1));return E[Z]=W})};
hHf=function(h){return h.replace(/&([^;]+);/g,function(E,g){switch(g){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return g.charAt(0)!="#"||(g=Number("0"+g.slice(1)),isNaN(g))?E:String.fromCharCode(g)}})};
uzl=/&([^;\s<&]+);?/g;_.W9a=function(h){return String(h).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.EMH=String.prototype.repeat?function(h,E){return h.repeat(E)}:function(h,E){return Array(E+1).join(h)};
_.RO=function(h,E){if(!Number.isFinite(h))return String(h);h=String(h);var g=h.indexOf(".");g===-1&&(g=h.length);var Z=h[0]==="-"?"-":"";Z&&(h=h.substring(1));return Z+(0,_.EMH)("0",Math.max(0,E-g))+h};
AA=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.zZ()).toString(36)};
uC=function(h){for(var E=0,g=0;g<h.length;++g)E=31*E+h.charCodeAt(g)>>>0;return E};
_.SN=function(h){return String(h).replace(/\-([a-z])/g,function(E,g){return g.toUpperCase()})};
_.tQ=function(h){return String(h).replace(/([A-Z])/g,"-$1").toLowerCase()};
gMl=function(h){return h.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(E,g,Z){return g+Z.toUpperCase()})};var ZDH=function(){this.names=new Map};
ZDH.prototype.getName=function(h){var E=this.names.get(h);if(E)return E;var g;E=(g=h.description)!=null?g:AA();this.names.set(h,E);return E};var MFl=function(h){var E=Error.call(this,h?h.length+" errors occurred during unsubscription:\n"+h.map(function(g,Z){return Z+1+") "+g.toString()}).join("\n  "):"");
this.message=E.message;"stack"in E&&(this.stack=E.stack);this.errors=h;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.f(MFl,Error);var oH=function(h){this.initialTeardown=h;this.closed=!1;this._teardowns=this._parentage=null};
_.p=oH.prototype;
_.p.unsubscribe=function(){if(!this.closed){this.closed=!0;var h=this._parentage;if(Array.isArray(h))for(var E=_.G(h),g=E.next();!g.done;g=E.next())g.value.remove(this);else h==null||h.remove(this);E=this.initialTeardown;if(ir(E))try{E()}catch(W){var Z=W instanceof MFl?W.errors:[W]}var M=this._teardowns;if(M)for(this._teardowns=null,E=_.G(M),g=E.next();!g.done;g=E.next()){g=g.value;try{ir(g)?g():g.unsubscribe()}catch(W){g=void 0,Z=(g=Z)!=null?g:[],W instanceof MFl?Z=[].concat(_.$E(Z),_.$E(W.errors)):
Z.push(W)}}if(Z)throw new MFl(Z);}};
_.p.add=function(h){if(h&&h!==this)if(this.closed)ir(h)?h():h.unsubscribe();else{if(h instanceof oH){if(h.closed||h._hasParent(this))return;h._addParent(this)}var E;(this._teardowns=(E=this._teardowns)!=null?E:[]).push(h)}};
_.p._hasParent=function(h){var E=this._parentage;return E===h||Array.isArray(E)&&E.includes(h)};
_.p._addParent=function(h){var E=this._parentage;this._parentage=Array.isArray(E)?(E.push(h),E):E?[E,h]:h};
_.p._removeParent=function(h){var E=this._parentage;E===h?this._parentage=null:Array.isArray(E)&&oEM(E,h)};
_.p.remove=function(h){var E=this._teardowns;E&&oEM(E,h);h instanceof oH&&h._removeParent(this)};
var Wff=new oH;Wff.closed=!0;oH.JSC$9069_EMPTY=Wff;var RLd=function(){setTimeout.apply(null,_.$E(_.VF.apply(0,arguments)))};var PF=function(h){oH.call(this);this.JSC$9074_isStopped=!1;this.destination=h instanceof PF?h:new BF(!h||ir(h)?{next:h!=null?h:void 0}:h);ITd(h)&&h.add(this)};
_.f(PF,oH);PF.JSC$9069_EMPTY=oH.JSC$9069_EMPTY;PF.create=function(h,E,g){return new Up(h,E,g)};
_.p=PF.prototype;_.p.next=function(h){this.JSC$9074_isStopped||this._next(h)};
_.p.error=function(h){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._error(h))};
_.p.complete=function(){this.JSC$9074_isStopped||(this.JSC$9074_isStopped=!0,this._complete())};
_.p.unsubscribe=function(){this.closed||(this.JSC$9074_isStopped=!0,oH.prototype.unsubscribe.call(this))};
_.p._next=function(h){this.destination.next(h)};
_.p._error=function(h){this.destination.error(h);this.unsubscribe()};
_.p._complete=function(){this.destination.complete();this.unsubscribe()};
var BF=function(h){this.partialObserver=h};
BF.prototype.next=function(h){var E=this.partialObserver;if(E.next)try{E.next(h)}catch(g){RH(g)}};
BF.prototype.error=function(h){var E=this.partialObserver;if(E.error)try{E.error(h)}catch(g){RH(g)}else RH(h)};
BF.prototype.complete=function(){var h=this.partialObserver;if(h.complete)try{h.complete()}catch(E){RH(E)}};
var Up=function(h,E,g){PF.call(this);var Z;ir(h)||!h?Z={next:h!=null?h:void 0,error:E!=null?E:void 0,complete:g!=null?g:void 0}:Z=h;this.destination=new BF(Z)};
_.f(Up,PF);Up.JSC$9069_EMPTY=PF.JSC$9069_EMPTY;Up.create=PF.create;var LX=typeof Symbol==="function"&&Symbol.observable||"@@observable";var UZ=function(h){h&&(this._subscribe=h)};
_.p=UZ.prototype;_.p.lift=function(h){var E=new UZ;E.source=this;E.operator=h;return E};
_.p.subscribe=function(h,E,g){h=h&&h instanceof PF||h&&ir(h.next)&&ir(h.error)&&ir(h.complete)&&ITd(h)?h:new Up(h,E,g);E=this.operator;g=this.source;h.add(E?E.call(h,g):g?this._subscribe(h):this._trySubscribe(h));return h};
_.p._trySubscribe=function(h){try{return this._subscribe(h)}catch(E){h.error(E)}};
_.p.forEach=function(h,E){var g=this;E=Bxq(E);return new E(function(Z,M){var W=g.subscribe(function(z){try{h(z)}catch(c){M(c),W==null||W.unsubscribe()}},M,Z)})};
_.p._subscribe=function(h){var E;return(E=this.source)==null?void 0:E.subscribe(h)};
UZ.prototype[LX]=function(){return this};
UZ.prototype.pipe=function(){var h=_.VF.apply(0,arguments);return h.length?PrM(h)(this):this};
UZ.create=function(h){return new UZ(h)};var pMl=function(){var h=Error.call(this,"object unsubscribed");this.message=h.message;"stack"in h&&(this.stack=h.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.f(pMl,Error);var d2=function(){this.observers=[];this.hasError=this.JSC$9090_isStopped=this.closed=!1;this.thrownError=null};
_.f(d2,UZ);_.p=d2.prototype;_.p.lift=function(h){var E=new Lz(this,this);E.operator=h;return E};
_.p._throwIfClosed=function(){if(this.closed)throw new pMl;};
_.p.next=function(h){this._throwIfClosed();if(!this.JSC$9090_isStopped){var E=this.observers.slice();E=_.G(E);for(var g=E.next();!g.done;g=E.next())g.value.next(h)}};
_.p.error=function(h){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.hasError=this.JSC$9090_isStopped=!0;this.thrownError=h;for(var E=this.observers;E.length;)E.shift().error(h)}};
_.p.complete=function(){this._throwIfClosed();if(!this.JSC$9090_isStopped){this.JSC$9090_isStopped=!0;for(var h=this.observers;h.length;)h.shift().complete()}};
_.p.unsubscribe=function(){this.JSC$9090_isStopped=this.closed=!0;this.observers=null};
_.p._trySubscribe=function(h){this._throwIfClosed();return UZ.prototype._trySubscribe.call(this,h)};
_.p._subscribe=function(h){this._throwIfClosed();this._checkFinalizedStatuses(h);return this._innerSubscribe(h)};
_.p._innerSubscribe=function(h){var E=this,g=this.JSC$9090_isStopped,Z=this.observers;return this.hasError||g?oH.JSC$9069_EMPTY:(Z.push(h),new oH(function(){return oEM(E.observers,h)}))};
_.p._checkFinalizedStatuses=function(h){var E=this.thrownError,g=this.JSC$9090_isStopped;this.hasError?h.error(E):g&&h.complete()};
d2.create=function(h,E){return new Lz(h,E)};
var Lz=function(h,E){d2.call(this);this.destination=h;this.source=E};
_.f(Lz,d2);Lz.create=d2.create;Lz.prototype.next=function(h){var E,g;(E=this.destination)==null||(g=E.next)==null||g.call(E,h)};
Lz.prototype.error=function(h){var E,g;(E=this.destination)==null||(g=E.error)==null||g.call(E,h)};
Lz.prototype.complete=function(){var h,E;(h=this.destination)==null||(E=h.complete)==null||E.call(h)};
Lz.prototype._subscribe=function(h){var E,g;return(g=(E=this.source)==null?void 0:E.subscribe(h))!=null?g:oH.JSC$9069_EMPTY};var TR=function(h){d2.call(this);this._value=h};
_.f(TR,d2);TR.create=d2.create;TR.prototype._subscribe=function(h){var E=d2.prototype._subscribe.call(this,h);!E.closed&&h.next(this._value);return E};
TR.prototype.getValue=function(){var h=this.thrownError,E=this._value;if(this.hasError)throw h;this._throwIfClosed();return E};
TR.prototype.next=function(h){d2.prototype.next.call(this,this._value=h)};
_.ze.Object.defineProperties(TR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var YE=new UZ(function(h){return h.complete()});var dcd=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var fTd=function(h){return h&&typeof h.length==="number"&&typeof h!=="function"};var GfF={now:function(){return(GfF.delegate||Date).now()},
delegate:void 0};var WR=function(h,E,g){h=h===void 0?Infinity:h;E=E===void 0?Infinity:E;g=g===void 0?GfF:g;d2.call(this);this.bufferSize=h;this.windowTime=E;this.timestampProvider=g;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=E===Infinity;this.bufferSize=Math.max(1,h);this.windowTime=Math.max(1,E)};
_.f(WR,d2);WR.create=d2.create;WR.prototype.next=function(h){var E=this.buffer,g=this.infiniteTimeWindow,Z=this.timestampProvider,M=this.windowTime;this.JSC$9090_isStopped||(E.push(h),!g&&E.push(Z.now()+M));zHn(this);d2.prototype.next.call(this,h)};
WR.prototype._subscribe=function(h){this._throwIfClosed();zHn(this);for(var E=this._innerSubscribe(h),g=this.infiniteTimeWindow,Z=this.buffer.slice(),M=0;M<Z.length&&!h.closed;M+=g?1:2)h.next(Z[M]);this._checkFinalizedStatuses(h);return E};
var zHn=function(h){var E=h.bufferSize,g=h.timestampProvider,Z=h.buffer;h=h.infiniteTimeWindow;var M=(h?1:2)*E;E<Infinity&&M<Z.length&&Z.splice(0,Z.length-M);if(!h){E=g.now();g=0;for(h=1;h<Z.length&&Z[h]<=E;h+=2)g=h;g&&Z.splice(0,g+1)}};var cnM=function(h,E){E=E===void 0?all:E;this.schedulerActionCtor=h;this.now=E};
cnM.prototype.schedule=function(h,E,g){E=E===void 0?0:E;return(new this.schedulerActionCtor(this,h)).schedule(g,E)};
var all=GfF.now;var UsZ=function(){var h=Error.call(this,"no elements in sequence");this.message=h.message;"stack"in h&&(this.stack=h.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.f(UsZ,Error);var rx=function(h,E,g,Z,M){PF.call(this,h);this.onUnsubscribe=M;E&&(this._next=function(W){try{E(W)}catch(z){this.destination.error(z)}});
g&&(this._error=function(W){try{g(W)}catch(z){this.destination.error(z)}this.unsubscribe()});
Z&&(this._complete=function(){try{Z()}catch(W){this.destination.error(W)}this.unsubscribe()})};
_.f(rx,PF);rx.JSC$9069_EMPTY=PF.JSC$9069_EMPTY;rx.create=PF.create;rx.prototype.unsubscribe=function(){var h;this.closed||(h=this.onUnsubscribe)!=null&&h.call(this);PF.prototype.unsubscribe.call(this)};var Zb=function(h,E){this.source=h;this.subjectFactory=E;this._subject=null;this._refCount=0;this._connection=null};
_.f(Zb,UZ);Zb.create=UZ.create;Zb.prototype._subscribe=function(h){return iDf(this).subscribe(h)};
var iDf=function(h){var E=h._subject;if(!E||E.JSC$9090_isStopped)h._subject=h.subjectFactory();return h._subject};
Zb.prototype._teardown=function(){this._refCount=0;var h=this._connection;this._subject=this._connection=null;h==null||h.unsubscribe()};
Zb.prototype.connect=function(){var h=this,E=this._connection;if(!E){E=this._connection=new oH;var g=iDf(this);E.add(this.source.subscribe(new rx(g,void 0,function(Z){h._teardown();g.error(Z)},function(){h._teardown();
g.complete()},function(){return h._teardown()})));
E.closed&&(this._connection=null,E=oH.JSC$9069_EMPTY)}return E};var $cO=Array.isArray;var OX$=Array.isArray,oMC=Object,nE4=oMC.getPrototypeOf,XAV=oMC.prototype,YZz=oMC.keys;var OZ=function(h,E,g){PF.call(this,h);this._next=E;this.shouldComplete=g};
_.f(OZ,PF);OZ.JSC$9069_EMPTY=PF.JSC$9069_EMPTY;OZ.create=PF.create;OZ.prototype._complete=function(){this.shouldComplete()?PF.prototype._complete.call(this):this.unsubscribe()};var uUN=["addListener","removeListener"],bXd=["addEventListener","removeEventListener"],hu4=["on","off"];var jI=function(){oH.call(this)};
_.f(jI,oH);jI.JSC$9069_EMPTY=oH.JSC$9069_EMPTY;jI.prototype.schedule=function(){return this};var Ilk=function(h,E){return setInterval.apply(null,[h,E].concat(_.$E(_.VF.apply(2,arguments))))};var dk=function(h,E){oH.call(this);this.scheduler=h;this.work=E;this.pending=!1};
_.f(dk,jI);dk.JSC$9069_EMPTY=jI.JSC$9069_EMPTY;dk.prototype.schedule=function(h,E){E=E===void 0?0:E;if(this.closed)return this;this.state=h;h=this.id;var g=this.scheduler;h!=null&&(this.id=RHn(this,h,E));this.pending=!0;this.delay=E;this.id=this.id||this.requestAsyncId(g,this.id,E);return this};
dk.prototype.requestAsyncId=function(h,E,g){g=g===void 0?0:g;return Ilk(h.flush.bind(h,this),g)};
var RHn=function(h,E,g){g=g===void 0?0:g;if(g!=null&&h.delay===g&&h.pending===!1)return E;clearInterval(E)};
dk.prototype.execute=function(h,E){if(this.closed)return Error("ha");this.pending=!1;if(h=this._execute(h,E))return h;this.pending===!1&&this.id!=null&&(this.id=RHn(this,this.id,null))};
dk.prototype._execute=function(h){var E=!1;try{this.work(h)}catch(Z){E=!0;var g=!!Z&&Z||Error(Z)}if(E)return this.unsubscribe(),g};
dk.prototype.unsubscribe=function(){if(!this.closed){var h=this.id,E=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;oEM(E,this);h!=null&&(this.id=RHn(this,h,null));this.delay=null;jI.prototype.unsubscribe.call(this)}};var Plf=function(h,E){E=E===void 0?all:E;cnM.call(this,h,E);this.actions=[];this.active=!1;this.scheduled=void 0};
_.f(Plf,cnM);Plf.prototype.flush=function(h){var E=this.actions;if(this.active)E.push(h);else{var g;this.active=!0;do if(g=h.execute(h.state,h.delay))break;while(h=E.shift());this.active=!1;if(g){for(;h=E.shift();)h.unsubscribe();throw g;}}};var vR=new UZ(IH);var EpV=Array.isArray;var Cz=function(h,E){dk.call(this,h,E);this.scheduler=h;this.work=E};
_.f(Cz,dk);Cz.JSC$9069_EMPTY=dk.JSC$9069_EMPTY;Cz.prototype.schedule=function(h,E){E=E===void 0?0:E;if(E>0)return dk.prototype.schedule.call(this,h,E);this.delay=E;this.state=h;this.scheduler.flush(this);return this};
Cz.prototype.execute=function(h,E){return E>0||this.closed?dk.prototype.execute.call(this,h,E):this._execute(h,E)};
Cz.prototype.requestAsyncId=function(h,E,g){g=g===void 0?0:g;return g!=null&&g>0||g==null&&this.delay>0?dk.prototype.requestAsyncId.call(this,h,E,g):h.flush(this)};var BBD=function(){Plf.apply(this,arguments)};
_.f(BBD,Plf);var vEz=new BBD(Cz);var UAC=function(){this.performanceMonitor=new JMM;this.queue=new eVF;this.internalSymbol=Symbol();this.debugNames=new ZDH};
UAC.prototype.getOnBackgrounded=function(){return vR};
_.ze.Object.defineProperties(UAC.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Jo=function(h,E){E=Error.call(this,E?h+": "+E:String(h));this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=h;this.__proto__=Jo.prototype;this.name=String(h)};
_.f(Jo,Error);var HR=function(h){Jo.call(this,1E3,'sfr:"'+h+'"');this.measurementStrategyFailureReason=h;this.__proto__=HR.prototype};
_.f(HR,Jo);var $p=function(){Jo.call(this,1003);this.__proto__=$p.prototype};
_.f($p,Jo);var eI=function(){Jo.call(this,1009);this.__proto__=eI.prototype};
_.f(eI,Jo);var Lfl=function(){Jo.call(this,1011);this.__proto__=Lfl.prototype};
_.f(Lfl,Jo);var jmC=function(){Jo.call(this,1007);this.__proto__=$p.prototype};
_.f(jmC,Jo);var r2=function(h){Jo.call(this,1004,String(h));this.inputObservableIndex=h;this.__proto__=r2.prototype};
_.f(r2,Jo);var lJ$=function(h){Jo.call(this,1010,h);this.__proto__=rAu.prototype};
_.f(lJ$,Jo);var rAu=function(h){Jo.call(this,1005,h);this.__proto__=rAu.prototype};
_.f(rAu,Jo);var dAC=function(h){var E=_.VF.apply(1,arguments),g=this;this.orderedFactories=[];this.orderedFactories.push(h);E.forEach(function(Z){g.orderedFactories.push(Z)})};
dAC.prototype.isSupported=function(h){return this.orderedFactories.some(function(E){return E.isSupported(h)})};
dAC.prototype.makeBeacon=function(h,E){for(var g=0;g<this.orderedFactories.length;g++)if(this.orderedFactories[g].isSupported(E))return this.orderedFactories[g].makeBeacon(h,E);throw new eI;};var CXz=Symbol("ia"),Cll=Symbol("ja"),FU=function(h,E){this.value=h;this.timeline=E},yL=function(h,E){if(E.timeline!==h.timeline)throw new jmC;
return h.value-E.value};
_.p=FU.prototype;_.p.equals=function(h){return yL(this,h)===0};
_.p.maximum=function(h){if(h.timeline!==this.timeline)throw new jmC;return this.value>=h.value?this:h};
_.p.round=function(){return new FU(Math.round(this.value),this.timeline)};
_.p.add=function(h){return new FU(this.value+h,this.timeline)};
_.p.toString=function(){return String(this.value)};var qG=function(h,E){this.context=h;this.JSC$9196_pinger=E};
qG.prototype.isSupported=function(h){return this.JSC$9196_pinger.isSupported(h)};
qG.prototype.makeBeacon=function(h,E){if(!this.isSupported(E))throw new eI;return new NG(this.context,this.JSC$9196_pinger,E!=null?E:void 0,h)};
var NG=function(h,E,g,Z){var M=this;this.JSC$9202_pinger=E;this.properties=g;this.url=Z;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var W;this.method=(W=g==null?void 0:g.beaconMethod)!=null?W:"GET";this.backgroundedSubscription=h.getOnBackgrounded().subscribe(function(){M.sendNow()})};
NG.prototype.deactivate=function(){this.internalIsPending=!1};
NG.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9202_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var h,E;this.JSC$9202_pinger.pingWithHeadersAndBody((h=this.properties)!=null?h:{},this.customHeaders,(E=this.body)!=null?E:"",this.url)}else this.JSC$9202_pinger.ping(this.url);this.internalIsPending=!1}catch(g){}else this.internalIsPending=!1};
NG.prototype.setHeader=function(h,E){this.customHeaders.set(h,E)};
_.ze.Object.defineProperties(NG.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var eHC=function(){for(var h=_.G(_.VF.apply(0,arguments)),E=h.next();!E.done;E=h.next())if(E=E.value,E.available()){this.timeProvider=E;return}this.timeProvider=new Jnf};
_.p=eHC.prototype;_.p.available=function(){return this.timeProvider.available()};
_.p.now=function(){return this.timeProvider.now()};
_.p.setTimeout=function(h,E){return this.timeProvider.setTimeout(h,E)};
_.p.clearTimeout=function(h){this.timeProvider.clearTimeout(h)};
_.p.interval=function(h,E){var g=this.intervalObservable(h).subscribe(E);return function(){return void g.unsubscribe()}};
_.p.intervalObservable=function(h){return this.timeProvider.intervalObservable(h)};
_.ze.Object.defineProperties(eHC.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Jnf=function(){this.timeline=Symbol()};
_.p=Jnf.prototype;_.p.available=function(){return!1};
_.p.now=function(){return new FU(0,this.timeline)};
_.p.setTimeout=function(){return 0};
_.p.clearTimeout=function(){};
_.p.interval=function(){return function(){}};
_.p.intervalObservable=function(){return vR};var to=function(h,E){this.intrinsicFunctionNamespace=h;this.performanceMonitor=E};
_.p=to.prototype;_.p.setTimeout=function(h,E){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,h),E)};
_.p.clearTimeout=function(h){this.intrinsicFunctionNamespace.clearTimeout(h)};
_.p.interval=function(h,E){var g=this.intervalObservable(h).subscribe(E);return function(){return void g.unsubscribe()}};
_.p.intervalObservable=function(h){var E=this;return new UZ(function(g){var Z=0,M=E.intrinsicFunctionNamespace.setInterval(function(){g.next(Z++)},h);
return function(){E.intrinsicFunctionNamespace.clearInterval(M)}})};
_.p.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var qDf=function(h,E){to.call(this,h,E);this.timeline=Cll};
_.f(qDf,to);qDf.prototype.now=function(){return new FU(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
qDf.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&to.prototype.available.call(this)};var flk=function(h,E){to.call(this,h,E);this.timeline=CXz};
_.f(flk,to);flk.prototype.now=function(){return new FU(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
flk.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&to.prototype.available.call(this)};var tFl=function(h){this.context=h;if(NBC===void 0)a:{var E,g,Z=(E=h.global)==null?void 0:(g=E.document)==null?void 0:g.createElement("meta");if(Z)try{Z.httpEquiv="origin-trial";Z.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";h.global.document.head.append(Z);NBC=Z;break a}catch(M){}NBC=void 0}},
NBC;
tFl.prototype.isSupported=function(h){return itO(this.context)!==void 0&&!(h==null||!h.endOfSession)&&!SI(this.context)&&!(h==null?0:h.attributionEnabled)&&!(h==null?0:h.customHeaders)&&!(h==null?0:h.customBody)};
tFl.prototype.makeBeacon=function(h,E){if(!this.isSupported(E))throw new eI;return new xS(this.context,h,E)};
var xS=function(h,E,g){this.context=h;this.properties=g;this.JSC$9229_urlWithoutToken=E;var Z;this.beaconMethod=(Z=g==null?void 0:g.beaconMethod)!=null?Z:"GET";h=itO(this.context);if(h===void 0)throw Error();this.fetchLater=h;SDf(this,xAn(this))},SDf=function(h,E){h.beaconResult&&h.beaconResult.activated||(h.beaconAbort=new AbortController,h.beaconResult=h.fetchLater(E,{method:h.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:h.beaconAbort.signal,activateAfter:96E4}))},xAn=function(h){h=h.JSC$9229_urlWithoutToken;
return(h.slice(-1)[0]==="&"?h:h+"&")+"flapi=1"};
xS.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
xS.prototype.sendNow=function(){};
xS.prototype.setHeader=function(){};
_.ze.Object.defineProperties(xS.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9229_urlWithoutToken},
set:function(h){this.JSC$9229_urlWithoutToken=h;h=xAn(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);SDf(this,h)}},
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 wMf=function(h){this.context=h};
wMf.prototype.isSupported=function(){return!SI(this.context)&&!!this.context.global.fetch};
wMf.prototype.ping=function(){var h=this;return VL.apply(null,_.$E(_.VF.apply(0,arguments).map(function(E){return dx(h.context.global.fetch(E,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(vA(function(g){return g.status===200}))}))).pipe(L8$(function(E){return E}),dsx())};
wMf.prototype.pingWithHeadersAndBody=function(h,E,g){for(var Z=_.VF.apply(3,arguments),M=this,W=new Headers,z=_.G(E.entries()),c=z.next();!c.done;c=z.next()){var I=_.G(c.value);c=I.next().value;I=I.next().value;W.set(c,I)}var B,U=(B=h.keepAlive)!=null?B:!1;VL.apply(null,_.$E(Z.map(function(L){return dx(M.context.global.fetch(L,Object.assign({},{method:String(h.beaconMethod),cache:"no-cache"},U?{keepalive:!0}:{},{mode:"no-cors",headers:W,body:g}))).pipe(vA(function(d){return d.status===200}))}))).pipe(L8$(function(L){return L}),
dsx())};var DAl,ZRO,llB;_.wk=function(){};
_.va=function(h){return h};
DAl=function(h){var E=E||0;return function(){return h.apply(this,Array.prototype.slice.call(arguments,0,E))}};
_.DE=function(h){var E=!1,g;return function(){E||(g=h(),E=!0);return g}};
_.lY=function(h,E){var g=0;return function(Z){_.MN.clearTimeout(g);var M=arguments;g=_.MN.setTimeout(function(){h.apply(void 0,M)},E)}};
ZRO=function(h,E){var g=0,Z=!1,M=[],W=function(){g=0;Z&&(Z=!1,z())},z=function(){g=_.MN.setTimeout(W,E);
var c=M;M=[];h.apply(void 0,c)};
return function(c){M=arguments;g?Z=!0:z()}};
llB=function(h,E){var g=0,Z=function(){g=0};
return function(M){g||(g=_.MN.setTimeout(Z,E),h.apply(void 0,arguments))}};var mAf=function(){return d$&&JM?JM.mobile:!rnD()&&(qN("iPod")||qN("iPhone")||qN("Android")||qN("IEMobile"))},rnD=function(){return d$&&JM?!JM.mobile&&(qN("iPad")||qN("Android")||qN("Silk")):qN("iPad")||qN("Android")&&!qN("Mobile")||qN("Silk")};var vMf;_.Kt={};vMf="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Kt.add=function(h,E,g){if(h!==null&&E in h)throw Error("la`"+E);h[E]=g};
_.Kt.clear=function(h){for(var E in h)delete h[E]};
_.Kt.clone=function(h){var E={},g;for(g in h)E[g]=h[g];return E};
_.Kt.contains=function(h,E){return N2Z(h,E)};
_.Kt.containsKey=function(h,E){return h!==null&&E in h};
_.Kt.containsValue=N2Z;_.Kt.create=xsz;_.Kt.createImmutableView=function(h){var E=h;Object.isFrozen&&!Object.isFrozen(h)&&(E=Object.create(h),Object.freeze(E));return E};
_.Kt.createSet=wRV;_.Kt.equals=function(h,E){for(var g in h)if(!(g in E)||h[g]!==E[g])return!1;for(var Z in E)if(!(Z in h))return!1;return!0};
_.Kt.every=function(h,E,g){for(var Z in h)if(!E.call(g,h[Z],Z,h))return!1;return!0};
_.Kt.extend=function(h,E){for(var g,Z,M=1;M<arguments.length;M++){Z=arguments[M];for(g in Z)h[g]=Z[g];for(var W=0;W<vMf.length;W++)g=vMf[W],Object.prototype.hasOwnProperty.call(Z,g)&&(h[g]=Z[g])}};
_.Kt.filter=function(h,E,g){var Z={},M;for(M in h)E.call(g,h[M],M,h)&&(Z[M]=h[M]);return Z};
_.Kt.findKey=t8z;_.Kt.findValue=function(h,E,g){return(E=t8z(h,E,g))&&h[E]};
_.Kt.forEach=function(h,E,g){for(var Z in h)E.call(g,h[Z],Z,h)};
_.Kt.get=function(h,E,g){return h!==null&&E in h?h[E]:g};
_.Kt.getAllPropertyNames=function(h,E,g){if(!h)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return fb4(h);for(var Z={};h&&(h!==Object.prototype||E)&&(h!==Function.prototype||g);){for(var M=Object.getOwnPropertyNames(h),W=0;W<M.length;W++)Z[M[W]]=!0;h=Object.getPrototypeOf(h)}return fb4(Z)};
_.Kt.getAnyKey=function(h){for(var E in h)return E};
_.Kt.getAnyValue=function(h){for(var E in h)return h[E]};
_.Kt.getCount=function(h){var E=0,g;for(g in h)E++;return E};
_.Kt.getKeys=fb4;_.Kt.getSuperClass=function(h){return(h=Object.getPrototypeOf(h.prototype))&&h.constructor};
_.Kt.getValueByKeys=function(h,E){var g=_.s4(E),Z=g?E:arguments;for(g=g?0:1;g<Z.length;g++){if(h==null)return;h=h[Z[g]]}return h};
_.Kt.getValues=function(h){var E=[],g=0,Z;for(Z in h)E[g++]=h[Z];return E};
_.Kt.isEmpty=function(h){for(var E in h)return!1;return!0};
_.Kt.isImmutableView=function(h){return!!Object.isFrozen&&Object.isFrozen(h)};
_.Kt.map=function(h,E,g){var Z={},M;for(M in h)Z[M]=E.call(g,h[M],M,h);return Z};
_.Kt.remove=function(h,E){var g;(g=E in h)&&delete h[E];return g};
_.Kt.set=function(h,E,g){h[E]=g};
_.Kt.setIfUndefined=function(h,E,g){return E in h?h[E]:h[E]=g};
_.Kt.setWithReturnValueIfNotSet=function(h,E,g){if(E in h)return h[E];g=g();return h[E]=g};
_.Kt.some=function(h,E,g){for(var Z in h)if(E.call(g,h[Z],Z,h))return!0;return!1};
_.Kt.transpose=function(h){var E={},g;for(g in h)E[h[g]]=g;return E};
_.Kt.unsafeClone=S6q;var rk=function(h,E,g,Z,M){this.allowedElements=h;this.elementPolicies=E;this.allowedGlobalAttributes=g;this.globalAttributePolicies=Z;this.globallyAllowedAttributePrefixes=M},HDC=function(h,E,g){g=h.elementPolicies.get(g);
return(g==null?0:g.has(E))?g.get(E):h.allowedGlobalAttributes.has(E)?{policyAction:1}:(g=h.globalAttributePolicies.get(E))?g:h.globallyAllowedAttributePrefixes&&[].concat(_.$E(h.globallyAllowedAttributePrefixes)).some(function(Z){return E.indexOf(Z)===0})?{policyAction:1}:{policyAction:0}};var $AD="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(" "),
KfH=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],ODl="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(" "),
nMD=[["dir",{policyAction:3,conditions:SL(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:SL(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:SL(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:SL(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],XMn=new rk(new Set($AD),new Map(KfH),new Set(ODl),new Map(nMD)),YDM=new rk(new Set($AD.concat(["BUTTON",
"INPUT"])),new Map(KfH),new Set(SL(function(){return ODl.concat(["class","id","name"])})),new Map(SL(function(){return nMD.concat([["style",
{policyAction:1}]])})));var sml,VFf,ynB;sml=function(h,E,g,Z,M){this.JSC$9290_sanitizerTable=h;this.styleElementSanitizer=E;this.styleAttributeSanitizer=g;this.JSC$9290_resourceUrlPolicy=Z;this.JSC$9290_navigationUrlPolicy=M;this.changes=[]};
_.kfD=function(h,E){var g=document.implementation.createHTMLDocument("");h=VFf(h,E,g);g=g.body;g.appendChild(h);g=(new XMLSerializer).serializeToString(g);g=g.slice(g.indexOf(">")+1,g.lastIndexOf("</"));return AL(g)};
VFf=function(h,E,g){E=rbN(E,g);E=document.createTreeWalker(E,5,function(c){if(c.nodeType===3)c=1;else if(vpx(c))if(c=msa(c),c===null)c=2;else{var I=h.JSC$9290_sanitizerTable;c=c!=="FORM"&&(I.allowedElements.has(c)||I.elementPolicies.has(c))?1:2}else c=2;return c});
for(var Z=E.nextNode(),M=g.createDocumentFragment(),W=M;Z!==null;){var z=void 0;if(Z.nodeType===3)h.styleElementSanitizer&&W.nodeName==="STYLE"?(Z=h.styleElementSanitizer(Z.data),z=h.createTextNode(Z)):z=h.createTextNode(Z.data);else if(vpx(Z))z=ynB(h,Z,g);else throw Error("Z");W.appendChild(z);if(Z=E.firstChild())W=z;else for(;!(Z=E.nextSibling())&&(Z=E.parentNode());)W=W.parentNode}return M};
sml.prototype.createTextNode=function(h){return document.createTextNode(h)};
ynB=function(h,E,g){var Z,M=msa(E);g=g.createElement(M);E=E.attributes;for(var W=_.G(E),z=W.next();!z.done;z=W.next()){var c=z.value;z=c.name;c=c.value;var I=HDC(h.JSC$9290_sanitizerTable,z,M);a:{if(Z=I.conditions){Z=_.G(Z);for(var B=Z.next();!B.done;B=Z.next()){var U=_.G(B.value);B=U.next().value;U=U.next().value;var L=void 0;if((B=(L=E.getNamedItem(B))==null?void 0:L.value)&&!U.has(B)){Z=!1;break a}}}Z=!0}if(Z)switch(I.policyAction){case 1:Rf(g,z,c);break;case 2:throw Error();case 3:Rf(g,z,c.toLowerCase());
break;case 4:h.styleAttributeSanitizer?(c=h.styleAttributeSanitizer(c),Rf(g,z,c)):Rf(g,z,c);break;case 5:h.JSC$9290_resourceUrlPolicy?(I={type:2,attributeName:z,elementName:M},c=lbZ(c),(c=h.JSC$9290_resourceUrlPolicy(c,I))&&Rf(g,z,c.toString())):Rf(g,z,c);break;case 6:if(h.JSC$9290_resourceUrlPolicy){I={type:2,attributeName:z,elementName:M};Z=[];c=_.G(c.split(","));for(B=c.next();!B.done;B=c.next())U=_.G(B.value.trim().split(/\s+/,2)),B=U.next().value,U=U.next().value,Z.push({url:B,descriptor:U});
c={parts:[]};Z=_.G(Z);for(B=Z.next();!B.done;B=Z.next())B=B.value,U=lbZ(B.url),(U=h.JSC$9290_resourceUrlPolicy(U,I))&&c.parts.push({url:U.toString(),descriptor:B.descriptor});Rf(g,z,Htq(c))}else Rf(g,z,c);break;case 7:I=c;if(h.JSC$9290_navigationUrlPolicy){I={type:2,attributeName:z,elementName:M};c=lbZ(c);c=h.JSC$9290_navigationUrlPolicy(c,I);if(c===null)break;I=c.toString()}c=I;I=_.hLa(c);I=I!==void 0&&yMf.indexOf(I.toLowerCase())!==-1?c:"about:invalid#zClosurez";Rf(g,z,I)}}return g};
_.Ffm=SL(function(){return new sml(XMn)});
_.Ank=SL(function(){return new sml(YDM)});var TBl=function(){this.calledBuild=!1;this.JSC$9302_sanitizerTable=XMn},bDm=function(){TBl.apply(this,arguments)};
_.f(bDm,TBl);bDm.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new sml(this.JSC$9302_sanitizerTable,void 0,void 0,this.JSC$9302_resourceUrlPolicy,this.JSC$9302_navigationUrlPolicy)};var uCf=/[^#]*/;var hCl=function(h){var E=QmH;if(E)for(var g in E)Object.prototype.hasOwnProperty.call(E,g)&&h(E[g],g,E)},EUf=function(){var h=[];
hCl(function(E){h.push(E)});
return h},QmH={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"},gUB=_.DE(function(){return EUf()}),Mxf=function(){var h=ZUB("IFRAME"),
E={};
_.Tt(gUB(),function(g){h.sandbox&&h.sandbox.supports&&h.sandbox.supports(g)&&(E[g]=!0)});
return E},ZUB=function(h,E){E=E===void 0?document:E;
return E.createElement(String(h).toLowerCase())};var mI;_.vw=function(h,E,g){return Math.min(Math.max(h,E),g)};
mI=function(h,E,g){return h+g*(E-h)};_.nt=function(h,E){this.x=h!==void 0?h:0;this.y=E!==void 0?E:0};
_.p=_.nt.prototype;_.p.clone=function(){return new _.nt(this.x,this.y)};
_.p.equals=function(h){return h instanceof _.nt&&(this==h?!0:this&&h?this.x==h.x&&this.y==h.y:!1)};
_.p.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.p.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.p.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.p.translate=function(h,E){h instanceof _.nt?(this.x+=h.x,this.y+=h.y):(this.x+=Number(h),typeof E==="number"&&(this.y+=E));return this};
_.p.scale=function(h,E){this.x*=h;this.y*=typeof E==="number"?E:h;return this};_.Ns=function(h,E){this.width=h;this.height=E};
_.p=_.Ns.prototype;_.p.clone=function(){return new _.Ns(this.width,this.height)};
_.p.area=function(){return this.width*this.height};
_.p.aspectRatio=function(){return this.width/this.height};
_.p.isEmpty=function(){return!this.area()};
_.p.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.p.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.p.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.p.scale=function(h,E){this.width*=h;this.height*=typeof E==="number"?E:h;return this};var Xi=function(h,E){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=h===xIa&&E||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=WiM};
Xi.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var pcB=function(h){return h instanceof Xi&&h.constructor===Xi&&h.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===WiM?h.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},WiM={},xIa={};
new Xi(xIa,"");var w2,N3,HF,Gpf,cCf,aRf,XK,oUk,RCF,IRl,nz,PJH,JCC,CJn,dZl,eCF,q0f,fRM,NIk,AWz,txk,xZk,wcm,S0D,vF;w2=function(h){return h?new vF(_.Yp(h)):crz||(crz=new vF)};
_.c3=function(h,E){return typeof E==="string"?h.getElementById(E):E};
N3=function(h,E){return(E||document).getElementsByTagName(String(h))};
_.zCD=function(h){return Gpf("yt-formatted-string","paper-input-input",h)};
HF=function(h,E,g,Z){h=Z||h;return(E=E&&E!="*"?String(E).toUpperCase():"")||g?h.querySelectorAll(E+(g?"."+g:"")):h.getElementsByTagName("*")};
Gpf=function(h,E,g){var Z=document,M=h&&h!="*"?String(h).toUpperCase():"";return M||E?(g||Z).querySelector(M+(E?"."+E:"")):HF(Z,h,E,g)[0]||null};
cCf=function(h,E){_.Kt.forEach(E,function(g,Z){Z=="style"?h.style.cssText=g:Z=="class"?h.className=g:Z=="for"?h.htmlFor=g:aRf.hasOwnProperty(Z)?h.setAttribute(aRf[Z],g):_.Gu(Z,"aria-")||_.Gu(Z,"data-")?h.setAttribute(Z,g):h[Z]=g})};
aRf={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"};_.S8=function(h){h=(h||window).document;h=h.compatMode=="CSS1Compat"?h.documentElement:h.body;return new _.Ns(h.clientWidth,h.clientHeight)};
_.iUD=function(h){var E=_.$S(h);h=h.defaultView;return new _.nt(h.pageXOffset||E.scrollLeft,h.pageYOffset||E.scrollTop)};
_.$S=function(h){return h.scrollingElement?h.scrollingElement:_.PW||h.compatMode!="CSS1Compat"?h.body||h.documentElement:h.documentElement};
XK=function(h){return h?h.defaultView:window};
_.Kz=function(h,E,g){return oUk(document,arguments)};
oUk=function(h,E){var g=E[1],Z=IRl(h,String(E[0]));g&&(typeof g==="string"?Z.className=g:Array.isArray(g)?Z.className=g.join(" "):cCf(Z,g));E.length>2&&RCF(h,Z,E,2);return Z};
RCF=function(h,E,g,Z){function M(c){c&&E.appendChild(typeof c==="string"?h.createTextNode(c):c)}
for(;Z<g.length;Z++){var W=g[Z];if(!_.s4(W)||_.yx(W)&&W.nodeType>0)M(W);else{a:{if(W&&typeof W.length=="number"){if(_.yx(W)){var z=typeof W.item=="function"||typeof W.item=="string";break a}if(typeof W==="function"){z=typeof W.item=="function";break a}}z=!1}_.Tt(z?_.Y$(W):W,M)}}};
_.q3=function(h){return IRl(document,h)};
IRl=function(h,E){E=String(E);h.contentType==="application/xhtml+xml"&&(E=E.toLowerCase());return h.createElement(E)};
_.Op=function(){return document.createTextNode("\n")};
nz=function(h){if(h.nodeType!=1)return!1;switch(h.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};
PJH=function(h,E){RCF(_.Yp(h),h,arguments,1)};
_.XV=function(h){for(var E;E=h.firstChild;)h.removeChild(E)};
_.YS=function(h,E){E.parentNode&&E.parentNode.insertBefore(h,E)};
_.sp=function(h,E){E.parentNode&&E.parentNode.insertBefore(h,E.nextSibling)};
_.f8=function(h){return h&&h.parentNode?h.parentNode.removeChild(h):null};
_.BIk=function(h,E){var g=E.parentNode;g&&g.replaceChild(h,E)};
_.UZm=function(h){var E,g=h.parentNode;if(g&&g.nodeType!=11)if(h.removeNode)h.removeNode(!1);else{for(;E=h.firstChild;)g.insertBefore(E,h);_.f8(h)}};
_.Vm=function(h){return h.children!=void 0?h.children:Array.prototype.filter.call(h.childNodes,function(E){return E.nodeType==1})};
_.jGM=function(h){return h.nextElementSibling!==void 0?h.nextElementSibling:_.LiF(h.nextSibling,!0)};
_.LiF=function(h,E){for(;h&&h.nodeType!=1;)h=E?h.nextSibling:h.previousSibling;return h};
_.gQ=function(h){return _.yx(h)&&h.nodeType==1};
_.y_=function(h,E){if(!h||!E)return!1;if(h.contains&&E.nodeType==1)return h==E||h.contains(E);if(typeof h.compareDocumentPosition!="undefined")return h==E||!!(h.compareDocumentPosition(E)&16);for(;E&&h!=E;)E=E.parentNode;return E==h};
JCC=function(h,E){if(h==E)return 0;if(h.compareDocumentPosition)return h.compareDocumentPosition(E)&2?1:-1;if("sourceIndex"in h||h.parentNode&&"sourceIndex"in h.parentNode){var g=h.nodeType==1,Z=E.nodeType==1;if(g&&Z)return h.sourceIndex-E.sourceIndex;var M=h.parentNode,W=E.parentNode;return M==W?dZl(h,E):!g&&_.y_(M,E)?-1*CJn(h,E):!Z&&_.y_(W,h)?CJn(E,h):(g?h.sourceIndex:M.sourceIndex)-(Z?E.sourceIndex:W.sourceIndex)}Z=_.Yp(h);g=Z.createRange();g.selectNode(h);g.collapse(!0);h=Z.createRange();h.selectNode(E);
h.collapse(!0);return g.compareBoundaryPoints(_.MN.Range.START_TO_END,h)};
CJn=function(h,E){var g=h.parentNode;if(g==E)return-1;for(;E.parentNode!=g;)E=E.parentNode;return dZl(E,h)};
dZl=function(h,E){for(;E=E.previousSibling;)if(E==h)return-1;return 1};
eCF=function(h){var E,g=arguments.length;if(!g)return null;if(g==1)return arguments[0];var Z=[],M=Infinity;for(E=0;E<g;E++){for(var W=[],z=arguments[E];z;)W.unshift(z),z=z.parentNode;Z.push(W);M=Math.min(M,W.length)}W=null;for(E=0;E<M;E++){z=Z[0][E];for(var c=1;c<g;c++)if(z!=Z[c][E])return W;W=z}return W};
_.Yp=function(h){return h.nodeType==9?h:h.ownerDocument||h.document};
q0f=function(h){return h.contentDocument||h.contentWindow.document};
_.kS=function(h,E){if("textContent"in h)h.textContent=E;else if(h.nodeType==3)h.data=String(E);else if(h.firstChild&&h.firstChild.nodeType==3){for(;h.lastChild!=h.firstChild;)h.removeChild(h.lastChild);h.firstChild.data=String(E)}else _.XV(h),h.appendChild(_.Yp(h).createTextNode(String(E)))};
fRM={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};NIk={IMG:" ",BR:"\n"};AWz=function(h){var E;h.tagName=="A"&&h.hasAttribute("href")||h.tagName=="INPUT"||h.tagName=="TEXTAREA"||h.tagName=="SELECT"||h.tagName=="BUTTON"?E=!h.disabled&&(!h.hasAttribute("tabindex")||txk(h)):E=h.hasAttribute("tabindex")&&txk(h);return E};
txk=function(h){h=h.tabIndex;return typeof h==="number"&&h>=0&&h<32768};
xZk=function(h){var E=[];S0D(h,E,!0);h=E.join("");h=h.replace(/ \xAD /g," ").replace(/\xAD/g,"");h=h.replace(/\u200B/g,"");h=h.replace(/ +/g," ");h!=" "&&(h=h.replace(/^\s*/,""));return h};
wcm=function(h){var E=[];S0D(h,E,!1);return E.join("")};
S0D=function(h,E,g){if(!(h.nodeName in fRM))if(h.nodeType==3)g?E.push(String(h.nodeValue).replace(/(\r\n|\r|\n)/g,"")):E.push(h.nodeValue);else if(h.nodeName in NIk)E.push(NIk[h.nodeName]);else for(h=h.firstChild;h;)S0D(h,E,g),h=h.nextSibling};
_.DZm=function(h,E,g){if(!E&&!g)return null;var Z=E?String(E).toUpperCase():null;return _.Vw(h,function(M){return(!Z||M.nodeName==Z)&&(!g||typeof M.className==="string"&&_.nd(M.className.split(/\s+/),g))},!0)};
_.Vw=function(h,E,g){h&&!g&&(h=h.parentNode);for(g=0;h;){if(E(h))return h;h=h.parentNode;g++}return null};
vF=function(h){this.JSC$9327_document_=h||_.MN.document||document};
_.p=vF.prototype;_.p.getElement=function(h){return _.c3(this.JSC$9327_document_,h)};
_.p.$=vF.prototype.getElement;_.p.getElementsByTagName=function(h,E){return(E||this.JSC$9327_document_).getElementsByTagName(String(h))};
_.p.getElementsByTagNameAndClass=function(h,E,g){return HF(this.JSC$9327_document_,h,E,g)};
_.p.$$=vF.prototype.getElementsByTagNameAndClass;_.p.setProperties=cCf;_.p.JSC$9329_createDom=function(h,E,g){return oUk(this.JSC$9327_document_,arguments)};
_.p.createElement=function(h){return IRl(this.JSC$9327_document_,h)};
_.p.createTextNode=function(h){return this.JSC$9327_document_.createTextNode(String(h))};
_.p.getWindow=function(){return this.JSC$9327_document_.defaultView};
var xp=function(h){return _.iUD(h.JSC$9327_document_)};
_.p=vF.prototype;_.p.appendChild=function(h,E){h.appendChild(E)};
_.p.append=PJH;_.p.canHaveChildren=nz;_.p.removeNode=_.f8;_.p.getChildren=_.Vm;_.p.contains=_.y_;_.p.isFocusable=AWz;_.p=Lt.prototype;_.p.getWidth=function(){return this.right-this.left};
_.p.getHeight=function(){return this.bottom-this.top};
_.p.clone=function(){return new Lt(this.top,this.right,this.bottom,this.left)};
_.p.contains=function(h){return this&&h?h instanceof Lt?h.left>=this.left&&h.right<=this.right&&h.top>=this.top&&h.bottom<=this.bottom:h.x>=this.left&&h.x<=this.right&&h.y>=this.top&&h.y<=this.bottom:!1};
_.p.expand=function(h,E,g,Z){_.yx(h)?(this.top-=h.top,this.right+=h.right,this.bottom+=h.bottom,this.left-=h.left):(this.top-=h,this.right+=Number(E),this.bottom+=Number(g),this.left-=Number(Z));return this};
_.p.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.p.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.p.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.p.translate=function(h,E){h instanceof _.nt?(this.left+=h.x,this.right+=h.x,this.top+=h.y,this.bottom+=h.y):(this.left+=h,this.right+=h,typeof E==="number"&&(this.top+=E,this.bottom+=E));return this};
_.p.scale=function(h,E){E=typeof E==="number"?E:h;this.left*=h;this.right*=h;this.top*=E;this.bottom*=E;return this};var ym=function(h,E,g,Z){this.left=h;this.top=E;this.width=g;this.height=Z};
_.p=ym.prototype;_.p.clone=function(){return new ym(this.left,this.top,this.width,this.height)};
_.p.boundingRect=function(h){var E=Math.max(this.left+this.width,h.left+h.width),g=Math.max(this.top+this.height,h.top+h.height);this.left=Math.min(this.left,h.left);this.top=Math.min(this.top,h.top);this.width=E-this.left;this.height=g-this.top};
_.p.contains=function(h){return h instanceof _.nt?h.x>=this.left&&h.x<=this.left+this.width&&h.y>=this.top&&h.y<=this.top+this.height:this.left<=h.left&&this.left+this.width>=h.left+h.width&&this.top<=h.top&&this.top+this.height>=h.top+h.height};
_.p.distance=function(h){var E=h.x<this.left?this.left-h.x:Math.max(h.x-(this.left+this.width),0);h=h.y<this.top?this.top-h.y:Math.max(h.y-(this.top+this.height),0);return Math.sqrt(E*E+h*h)};
_.p.getSize=function(){return new _.Ns(this.width,this.height)};
_.p.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.p.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.p.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.p.translate=function(h,E){h instanceof _.nt?(this.left+=h.x,this.top+=h.y):(this.left+=h,typeof E==="number"&&(this.top+=E));return this};
_.p.scale=function(h,E){E=typeof E==="number"?E:h;this.left*=h;this.width*=h;this.top*=E;this.height*=E;return this};var rCf,Tb,aaO,Ao,$ZH,HUn,Kik,Tk4,OUC,XcH;_.FV=function(h,E,g){if(typeof E==="string")(E=_.lRm(h,E))&&(h.style[E]=g);else for(var Z in E){g=h;var M=E[Z],W=_.lRm(g,Z);W&&(g.style[W]=M)}};
rCf={};_.lRm=function(h,E){var g=rCf[E];if(!g){var Z=_.SN(E);g=Z;h.style[Z]===void 0&&(Z=(_.PW?"Webkit":_.RV?"Moz":null)+gMl(Z),h.style[Z]!==void 0&&(g=Z));rCf[E]=g}return g};
_.Bg=function(h,E){var g=_.Yp(h);return g.defaultView&&g.defaultView.getComputedStyle&&(h=g.defaultView.getComputedStyle(h,null))?h[E]||h.getPropertyValue(E)||"":""};
_.kd=function(h,E){return _.Bg(h,E)||(h.currentStyle?h.currentStyle[E]:null)||h.style&&h.style[E]};
_.mZf=function(h){return _.kd(h,"position")};
Tb=function(h,E,g){if(E instanceof _.nt){var Z=E.x;E=E.y}else Z=E,E=g;h.style.left=Ao(Z,!1);h.style.top=Ao(E,!1)};
aaO=function(h){try{return h.getBoundingClientRect()}catch(E){return{left:0,top:0,right:0,bottom:0}}};
_.s6=function(h){var E=_.Yp(h),g=new _.nt(0,0);if(h==(E?_.Yp(E):document).documentElement)return g;h=aaO(h);E=xp(w2(E));g.x=h.left+E.x;g.y=h.top+E.y;return g};
_.vUl=function(h,E,g){if(E instanceof _.Ns)g=E.height,E=E.width;else if(g==void 0)throw Error("oa");h.style.width=Ao(E,!0);h.style.height=Ao(g,!0)};
Ao=function(h,E){typeof h=="number"&&(h=(E?Math.round(h):h)+"px");return h};
$ZH=function(h){return HUn(h)};
HUn=function(h){var E=Kik;if(_.kd(h,"display")!="none")return E(h);var g=h.style,Z=g.display,M=g.visibility,W=g.position;g.visibility="hidden";g.position="absolute";g.display="inline";h=E(h);g.display=Z;g.position=W;g.visibility=M;return h};
Kik=function(h){var E=h.offsetWidth,g=h.offsetHeight,Z=_.PW&&!E&&!g;return(E===void 0||Z)&&h.getBoundingClientRect?(h=aaO(h),new _.Ns(h.right-h.left,h.bottom-h.top)):new _.Ns(E,g)};
Tk4=function(h){var E=_.s6(h);h=HUn(h);return new ym(E.x,E.y,h.width,h.height)};
OUC=function(h,E){h=h.style;"opacity"in h?h.opacity=E:"MozOpacity"in h?h.MozOpacity=E:"filter"in h&&(h.filter=E===""?"":"alpha(opacity="+Number(E)*100+")")};
_.Q_=function(h,E){h.style.display=E?"":"none"};
_.nUD=function(h){return"rtl"==_.kd(h,"direction")};
XcH=function(h){var E=_.Bg(h,"marginLeft"),g=_.Bg(h,"marginRight"),Z=_.Bg(h,"marginTop");h=_.Bg(h,"marginBottom");return new Lt(parseFloat(Z),parseFloat(g),parseFloat(h),parseFloat(E))};
_.Y0F=function(h){var E=_.Bg(h,"borderLeftWidth"),g=_.Bg(h,"borderRightWidth"),Z=_.Bg(h,"borderTopWidth");h=_.Bg(h,"borderBottomWidth");return new Lt(parseFloat(Z),parseFloat(g),parseFloat(h),parseFloat(E))};var bY=function(h){this.context=h};
bY.prototype.isSupported=function(h){return(h==null?0:h.attributionEnabled)||(h==null?void 0:h.beaconMethod)==="POST"||(h==null?0:h.customHeaders)||(h==null?0:h.customBody)||(h==null?0:h.keepAlive)?!1:!SI(this.context)};
bY.prototype.ping=function(){var h=this;return wx(_.VF.apply(0,arguments).map(function(E){try{var g=h.context.global,Z=!1;Z=Z===void 0?!1:Z;g.google_image_requests||(g.google_image_requests=[]);var M=ZUB("IMG",g.document);Z&&(M.attributionSrc="");M.src=E;g.google_image_requests.push(M);return!0}catch(W){return!1}}).every(function(E){return E}))};
bY.prototype.pingWithHeadersAndBody=function(h,E,g){this.ping.apply(this,_.$E(_.VF.apply(3,arguments)))};var sGn=function(h){this.context=h};
sGn.prototype.isSupported=function(h){return Vxf&&!SI(this.context)&&K84(this.context)!==void 0&&!(h==null?0:h.attributionEnabled)&&(h==null?void 0:h.beaconMethod)!=="POST"&&!(h==null?0:h.customHeaders)&&!(h==null?0:h.customBody)};
sGn.prototype.makeBeacon=function(h,E){if(!this.isSupported(E))throw new eI;return new uY(this.context,h)};
var Vxf=!1,uY=function(h,E){this.context=h;this.JSC$9348_urlWithoutToken=E;h=K84(this.context);if(h===void 0)throw Error();this.wrappedBeacon=new h(kpA(this),{})},kpA=function(h){h=h.JSC$9348_urlWithoutToken;
return(h.slice(-1)[0]==="&"?h:h+"&")+"pbapi=1"};
uY.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
uY.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
uY.prototype.setHeader=function(){};
_.ze.Object.defineProperties(uY.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9348_urlWithoutToken},
set:function(h){this.JSC$9348_urlWithoutToken=h;this.wrappedBeacon.setURL(kpA(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(h){if(h!=="GET")throw new eI;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var yCC=function(h){this.context=h};
yCC.prototype.isSupported=function(h){if((h==null?0:h.attributionEnabled)||(h==null?void 0:h.beaconMethod)==="GET"||(h==null?0:h.customHeaders)||(h==null?0:h.customBody)||(h==null?0:h.keepAlive))return!1;var E;return!SI(this.context)&&((E=this.context.global.navigator)==null?void 0:E.sendBeacon)!==void 0};
yCC.prototype.ping=function(){var h=this;return wx(_.VF.apply(0,arguments).map(function(E){var g;return(g=h.context.global.navigator)==null?void 0:g.sendBeacon(E)}).every(function(E){return E}))};
yCC.prototype.pingWithHeadersAndBody=function(h,E,g){this.ping.apply(this,_.$E(_.VF.apply(3,arguments)))};var qs=function(h){this.value=h},gO=function(h,E){return wx(h.value).pipe(Jb(E))},M3=new qs(!1),CIa=new qs(!0);var kp=function(h){this.value=h;this.releasedSubject=new d2};
kp.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ze.Object.defineProperties(kp.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9361_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var uKM=["FRAME","IMG","IFRAME"],kRZ=/^[01](px)?$/,btZ=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},T2$=function(){var h=new btZ;
h.crossDomainLoadedDefault=!0;h.pendingImagesBlockLoad=!0;return h};var Fik=function(h,E){var g=Wxz(h);if(g)if(g.onCreativeLoad)g.onCreativeLoad(E);else{var Z=E?[E]:[],M=function(W){for(var z=0;z<Z.length;++z)try{Z[z](1,W)}catch(c){}Z={push:function(c){c(1,W)}}};
g.onCreativeLoad=function(W){Z.push(W)};
g.setAttribute("data-creative-load-listener","");g.addEventListener("creativeLoad",function(W){M(W.detail)});
_.MN.addEventListener("message",function(W){MfN(g,M,W)})}};var Qm=function(h,E){var g=this;this.global=h;this.parentContext=E;this.JSC$9372_onVisibilityChange=this.document?VL(wx(!0),XU(this.document,"visibilitychange")).pipe(Ah(this.parentContext.performanceMonitor,748),vA(function(){return g.getVisibilityState()}),E6()):wx("visible");
this.document?XU(this.document,"DOMContentLoaded").pipe(Ah(this.parentContext.performanceMonitor,739),hb(1)):wx(sf$("DOMContentLoaded"))},dad=function(h){return h.document!==null&&h.document.visibilityState!==void 0};
Qm.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Qm.prototype.querySelector=function(h){return this.document?this.document.querySelector(h):null};
Qm.prototype.querySelectorAll=function(h){return this.document?_.Y$(this.document.querySelectorAll(h)):[]};
Qm.prototype.elementFromPoint=function(h,E){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;h=this.document.elementFromPoint(h,E);return h===null?null:new kp(h)};
var aGz=function(h,E,g){g=g===void 0?!1:g;if(E.ref===void 0||!h.document)return wx(E).pipe(Ah(h.parentContext.performanceMonitor,749));var Z=new WR(1),M=function(){Z.next(E)};
g||Fik(E.ref,M);Qfz(E.ref,M);return Z.pipe(Ah(h.parentContext.performanceMonitor,749),hb(1))};
_.ze.Object.defineProperties(Qm.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return eu$(this.global,"document")?this.global.document||null:null}}});var phd=_.uz(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),G8z=_.uz(["./reach_worklet.js"]),zl$=_.uz(["./reach_worklet.js"]),ACF=_.uz(["./reach_worklet.html"]),TIC=_.uz(["./reach_worklet.js"]),bUF=_.uz(["./reach_worklet.js"]);_.BR(ACF);_.BR(TIC);_.BR(bUF);var bn={left:0,top:0,width:0,height:0};var uXf,QGM,haD,Ern,ZV,ZMk,MLf,W2D,T7u,bhz,zan,a0D;uXf=function(h,E,g,Z,M,W,z){var c="";h&&(c+=h+":");g&&(c+="//",E&&(c+=E+"@"),c+=g,Z&&(c+=":"+Z));M&&(c+=M);W&&(c+="?"+W);z&&(c+="#"+z);return c};
QGM=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Eq=function(h){return h.match(QGM)};
_.S6=function(h,E){return h?E?decodeURI(h):decodeURIComponent(h):h};
haD=function(h){h=_.Eq(h)[1]||null;!h&&_.MN.self&&_.MN.self.location&&(h=_.MN.self.location.protocol.slice(0,-1));return h?h.toLowerCase():""};
_.gf=function(h){return _.S6(_.Eq(h)[3]||null,!0)};
_.jy=function(h){return _.S6(_.Eq(h)[5]||null,!0)};
_.nOV=function(h){var E=h.indexOf("#");return E<0?null:h.slice(E+1)};
Ern=function(h){h=_.Eq(h);return uXf(h[1],h[2],h[3],h[4])};
_.grm=function(h){h=_.Eq(h);return uXf(h[1],null,h[3],h[4])};
_.QE=function(h){h=_.Eq(h);return uXf(null,null,null,null,h[5],h[6],h[7])};
_.GG=function(h){var E=h.indexOf("#");return E<0?h:h.slice(0,E)};
ZV=function(h,E){h=_.Eq(h);E=_.Eq(E);return h[3]==E[3]&&h[1]==E[1]&&h[4]==E[4]};
ZMk=function(h,E){if(h){h=h.split("&");for(var g=0;g<h.length;g++){var Z=h[g].indexOf("="),M=null;if(Z>=0){var W=h[g].substring(0,Z);M=h[g].substring(Z+1)}else W=h[g];E(W,M?Wx(M):"")}}};
MLf=function(h){var E=h.indexOf("#");E<0&&(E=h.length);var g=h.indexOf("?");if(g<0||g>E){g=E;var Z=""}else Z=h.substring(g+1,E);return[h.slice(0,g),Z,h.slice(E)]};
W2D=function(h,E){return E?h?h+"&"+E:E:h};
_.piM=function(h,E){if(!E)return h;h=MLf(h);h[1]=W2D(h[1],E);return h[0]+(h[1]?"?"+h[1]:"")+h[2]};
_.GNC=function(h,E,g){if(Array.isArray(E))for(var Z=0;Z<E.length;Z++)_.GNC(h,String(E[Z]),g);else E!=null&&g.push(h+(E===""?"":"="+_.Ax(E)))};
_.Cl=function(h){var E=[],g;for(g in h)_.GNC(g,h[g],E);return E.join("&")};
_.hl=function(h,E){E=_.Cl(E);return _.piM(h,E)};
_.hO=function(h,E,g){g=g!=null?"="+_.Ax(g):"";return _.piM(h,E+g)};
T7u=function(h,E,g,Z){for(var M=g.length;(E=h.indexOf(g,E))>=0&&E<Z;){var W=h.charCodeAt(E-1);if(W==38||W==63)if(W=h.charCodeAt(E+M),!W||W==61||W==38||W==35)return E;E+=M+1}return-1};
bhz=/#|$/;_.FR=function(h,E){var g=h.search(bhz),Z=T7u(h,0,E,g);if(Z<0)return null;var M=h.indexOf("&",Z);if(M<0||M>g)M=g;Z+=E.length+1;return Wx(h.slice(Z,M!==-1?M:0))};
zan=/[?&]($|#)/;_.aa=function(h,E){for(var g=h.search(bhz),Z=0,M,W=[];(M=T7u(h,Z,E,g))>=0;)W.push(h.substring(Z,M)),Z=Math.min(h.indexOf("&",M)+1||g,g);W.push(h.slice(Z));return W.join("").replace(zan,"$1")};
_.YW=function(h,E,g){return _.hO(_.aa(h,E),E,g)};
a0D=function(h){var E=MLf(window.location.href),g=E[1],Z=[];g&&g.split("&").forEach(function(M){var W=M.indexOf("=");W=W>=0?M.slice(0,W):M;h.hasOwnProperty(W)||Z.push(M)});
E[1]=W2D(Z.join("&"),_.Cl(h));return E[0]+(E[1]?"?"+E[1]:"")+E[2]};var StV=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(StV,_.GN);StV.prototype.getVersion=function(){return _.mj(this,2)};var tfN=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(tfN,_.GN);var C44=function(h,E){return _.ln(h,2,E)},NO$=function(h,E){return _.ln(h,3,E)};
tfN.prototype.getModel=function(){return _.mj(this,4)};
var elx=function(h,E){return _.ln(h,4,E)},d3x=function(h,E){return _.ln(h,5,E)},fJq=function(h,E){return _.ln(h,9,E)},jD$=function(h,E){return SP(h,10,E)},LxN=function(h,E){return _.Ph(h,11,E)},JA4=function(h,E){return _.ln(h,1,E)},qtu=function(h,E){return _.Ph(h,7,E)};var BO$="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var ZJ=function(h,E,g,Z){h=h===void 0?window:h;E=E===void 0?null:E;g=g===void 0?new JMM:g;Z=Z===void 0?aJ4():Z;UAC.call(this);var M=this;this.global=h;this.debugChannel=E;this.performanceMonitor=g;this.onPageHide=Txd(function(){return XU(M.global,"pagehide")}).pipe(Ah(this.performanceMonitor,941));
this.onLoad=Txd(function(){return XU(M.global,"load")}).pipe(Ah(this.performanceMonitor,738),hb(1));
this.onResize=Txd(function(){return XU(M.global,"resize")}).pipe(Ah(this.performanceMonitor,741));
this.onMessage=Txd(function(){return XU(M.global,"message")}).pipe(Ah(this.performanceMonitor,740));
this.document=new Qm(this.global,this);this.timeProvider=new eHC(new flk(this.intrinsicFunctionNamespace,this.performanceMonitor),new qDf(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new dAC(new tFl(this),new sGn(this),new qG(this,new wMf(this)),new qG(this,new yCC(this)),new qG(this,new bY(this)))};
_.f(ZJ,UAC);var SI=function(h){var E=h.global;return!!h.global.HTMLFencedFrameElement&&!!E.fence&&typeof E.fence.reportEvent==="function"};
_.p=ZJ.prototype;_.p.reportFencedFrameEvent=function(h){SI(this)&&this.global.fence.reportEvent(h)};
_.p.getOnBackgrounded=function(){return this.onPageHide.pipe(Ah(this.performanceMonitor,942),Jb(this.queue),vA(function(){}))};
_.p.postMessage=function(h,E,g){g=g===void 0?[]:g;this.global.postMessage(h,E,g)};
_.p.getWidth=function(){return q6O(this.global)?this.global.width:0};
_.p.getHeight=function(){return q6O(this.global)?this.global.height:0};
_.p.isMobile=function(){return rnD()||mAf()};
var yw=function(h,E){try{var g=IJq(E,h.global,h.isMobile());return{left:g.left,top:g.top,width:g.getWidth(),height:g.getHeight()}}catch(Z){return bn}};
ZJ.prototype.validate=function(){var h=this.beaconFactory.isSupported()||SI(this);return this.global&&this.timeProvider.available()&&h};
var np$=function(h){return(h=whq(h.global))?dx(h):null};
_.ze.Object.defineProperties(ZJ.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(h){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!q6O(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}}});_.cLA=!_.IV&&!_.cMz();var Jxu=function(h){return h};var qWq=function(h){return h.pipe(kE(function(E){var g=E.endOfSessionReason;var Z;return((Z=E.viewable)==null?void 0:Z.extrapolateToNow().value)||g!=void 0}),hb(1),br())};var $3O=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Kxq=function(h){var E=h.sequenceNumber.toString(10).padStart(2,"0");
E=""+h.startTime+E;h.sequenceNumber<99&&h.sequenceNumber++;return E};var joM=BA(cR(function(h){return h.endOfSessionReason===void 0}),vA(function(h){return Object.assign({},h,{timestamps:m8(h)})}),kE(function(h){var E=h.viewable;
h=h.timestamps;var g;return(g=E==null?void 0:E.extrapolateUsingTimestampMap(h).value)!=null?g:!1}),vA(function(h){var E=h.beaconFactory;
var g=h.timestampedExposureHistory;var Z=h.timeOnScreen;var M=h.binaryContext;h=h.timestamps;if(E===void 0||g===void 0||Z===void 0||M===void 0)return!1;if(Z.extrapolateUsingTimestampMap(h).value.every(function(W){return W>=0}))return!0;
g=g.map(function(W){return W.timestamp+":"+W.value}).join(",");
Z=O8V({bin:M,tos:Z},h);E.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+Z+("&eh="+g)).sendNow();return!0}),cR(function(h){return!h}),br());var XhZ=function(h){return{id:h.pingId,mcvt:h.maxConsecutiveViewTime,p:h.creativePosition,asp:h.adSpeedPosition,tm:h.totalMeasurementTime,tu:h.totalUnviewedTime,mtos:h.maxTimeOnScreen,tos:h.timeOnScreen,v:h.binaryVersion,bin:h.binaryContext,avms:h.measurementStrategy,bs:h.browserSize,mc:h.maximumExposure,"if":h.crossDomainIframeState,vu:h.delayedImpressionJsState,app:h.inApp,mse:h.mraidError,mtop:h.mraidSituation,itpl:h.injectedTemplateId,adk:h.adKey,exk:h.awbidKey,rs:h.requestSource,la:h.isLargeAd,
cr:h.isContentRecommendationAd,uach:h.userAgentClientHints,vs:h.viewState,r:h.reasonCode,pay:h.hasCpmavUrl,co:h.clientPingOrderCounter,rst:h.adRenderStartTime,rpt:h.adRenderPeriodTime,isd:h.initialScrollDepth,lsd:h.loadedScrollDepth,context:h.errorContext,msg:h.errorMessage,stack:h.errorStack,name:h.errorName,ec:h.hasElementChanged,sfr:h.strategyFailureReasons,met:h.creativeSearchResult,wmsd:h.webMeasurementStartDiagnostic,pv:h.pageVisible,epv:h.eosPageVisible,pbe:h.inStatefulBeaconExperiment,fle:h.inFetchLaterBeaconExperiment,
vae:h.inViewableAttributionExperiment,spb:h.supportsPendingBeacon,sfl:h.supportsFetchLater,ffslot:h.isFencedFrameSlotTurtlex,reach:h.sharedStorageReachMode,io2:h.v2VisibilityBitVector,rxdbg:h.rxDebugger,omida:h.omidAppId,omidp:h.omidPartner,omidpv:h.omidPartnerVersion,omidor:h.omidOcclusionReasons,omidv:h.omidVersion,omids:h.omidSessionType,omidam:h.omidAccessMode,omidct:h.omidCreativeType,omidia:h.omidInApp,omiddc:h.omidDeviceCategory,omidlat:h.omidLastActivity,omiddit:h.omidDeviceIdleTime,qid:h.errorEscapedQueryId}};var eJz=function(h){var E=[];return h.pipe(vA(function(g){var Z=g.beaconFactory,M=g.fetchBeaconFactory,W=g.timeOnScreen,z=g.timeOnScreenUrlPrefixes,c=g.payloadMapper,I=g.timeOnScreenPingId,B=g.timeOnScreenReason,U=g.urlSerializer,L=g.viewable,d=g.hasImpressionFired,C=g.inStatefulBeaconExperiment,q=g.supportsPendingBeacon,w=g.supportsFetchLater,r=g.turtlexReportEventData;if(!g.geometryMeasurable||!d||g.maxTimeOnScreen===void 0||W===void 0||z===void 0||c===void 0||I===void 0||U===void 0||Z===void 0)return!1;
if(g.isTurtlex){if(B===void 0)return!1;z=g.reportFencedFrameEvent;if(!z)return!1;z({eventType:"active-view-time-on-screen",eventData:r!=null?r:"",destination:["buyer"]});return!0}if(!(C||w||B))return!1;r=m8(g);var v;L=(v=L==null?void 0:L.extrapolateUsingTimestampMap(r).value)!=null?v:!1;v=U(Object.assign({},g,{pingId:I,viewState:L?4:3,reasonCode:B!=null?B:"u",payloadMapper:c,urlPrefixes:z}),r);if(C){for(;E.length>z.length;)g=void 0,(g=E.shift())==null||g.deactivate();v.forEach(function(u,k){k>=E.length?
E.push(Z.makeBeacon(u)):E[k].url=u});
return q&&M&&B!==void 0?(v.forEach(function(u){M.makeBeacon(u).sendNow()}),!0):B!==void 0}if(q&&M&&B!==void 0)return v.forEach(function(u){M.makeBeacon(u).sendNow()}),!0;
if(w&&M){for(;E.length>z.length;)q=void 0,(q=E.shift())==null||q.deactivate();var H=U(Object.assign({},g,{pingId:I,viewState:L?4:3,reasonCode:B!=null?B:"u",payloadMapper:c,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),r)[0];v.forEach(function(u,k){k>=E.length?E.push(Z.makeBeacon(H,{endOfSession:!0})):E[k].url=H});
return B!==void 0?(v.forEach(function(u){M.makeBeacon(u).sendNow()}),!0):B!==void 0}return B!==void 0?(v.forEach(function(u){Z.makeBeacon(u).sendNow()}),!0):!1}),cR(function(g){return!g}),br())};var fGZ=BA(kE(function(h){return h.immediateUrlPrefixes!==void 0&&h.payloadMapper!==void 0&&h.urlSerializer!==void 0&&h.inferredPingId!==void 0&&h.beaconFactory!==void 0}),kE(function(h){return TO4(h)!==null}),Fxz(function(h){return h.activeViewUnmeasurableEvent},function(h){return h.emit}),vA(function(h){if(h.isTurtlex){var E=h.reportFencedFrameEvent;
if(E){var g;E({eventType:"active-view-unmeasurable",eventData:(g=h.turtlexReportEventData)!=null?g:"",destination:["buyer"]})}}else{g=void 0;var Z=TO4(h);if(Z==="x"){var M,W=(M=h.geometricMeasurementErrors)!=null?M:h.contextValidationErrors;W&&(E=W.stack,g=W.message)}h.urlSerializer(Object.assign({},h,{urlPrefixes:h.immediateUrlPrefixes,payloadMapper:h.payloadMapper,pingId:h.inferredPingId,viewState:2,reasonCode:Z,errorMessage:g,errorStack:E}),m8(h)).forEach(function(z){h.beaconFactory.makeBeacon(z).sendNow()})}}),
hb(1),br());var b8u=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var L1u=BA(kE(function(h){return h.payloadMapper!==void 0&&h.immediateUrlPrefixes!==void 0&&h.urlSerializer!==void 0&&h.inferredPingId!==void 0&&h.beaconFactory!==void 0}),vA(function(h){return Object.assign({},h,{timestamps:m8(h)})}),kE(function(h){var E=h.viewable;
var g=h.hasImpressionFired;h=h.timestamps;var Z;return!!g&&((Z=E==null?void 0:E.extrapolateUsingTimestampMap(h).value)!=null?Z:!1)}),Fxz(function(h){return h.activeViewViewableEvent},function(h){return h.emit}),vA(function(h){var E=h.beaconFactory,g=h.turtlexReportEventData;
if(h.isTurtlex){var Z=h.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-viewable",eventData:g!=null?g:"",destination:["buyer"]});return!0}g=h.urlSerializer(Object.assign({},h,{urlPrefixes:h.immediateUrlPrefixes,payloadMapper:h.payloadMapper,pingId:h.inferredPingId,viewState:4,reasonCode:"v"}),h.timestamps);(Z=h.cpmavUrls)&&Z.length>0&&h.viewUrlSerializer&&h.viewUrlSerializer(Z,h).forEach(function(M){E.makeBeacon(M).sendNow()});
(Z=h.viewableRelayUrls)&&Z.length>0&&h.viewUrlSerializer&&h.viewUrlSerializer(Z,h).forEach(function(M){E.makeBeacon(M).sendNow()});
g.forEach(function(M){E.makeBeacon(M,{attributionEnabled:h.isViewableAttributionEnabled}).sendNow()});
return!0}),cR(function(h){return!h}),br());var Xmd=vA(function(h){return[h.value.topWindowViewportExternalGeometry.width,h.value.topWindowViewportExternalGeometry.height]});var FK=function(h,E){this.callback=h;this.options=E;this.intersectionObserverV2=this.intersectionObserverV1=null},eoz=function(h,E){E?h.intersectionObserverV2||(E=Object.assign({},h.options,{delay:100,
trackVisibility:!0}),h.intersectionObserverV2=new IntersectionObserver(h.callback,E)):h.intersectionObserverV1||(h.intersectionObserverV1=new IntersectionObserver(h.callback,h.options))},iMl=function(h,E){h=E?h.intersectionObserverV2:h.intersectionObserverV1;
if(!h)throw new Lfl;return h};
FK.prototype.observe=function(h,E){iMl(this,h).observe(E)};
FK.prototype.unobserve=function(h,E){iMl(this,h).unobserve(E)};
FK.prototype.disconnect=function(h){iMl(this,h).disconnect()};
FK.prototype.takeRecords=function(h){return iMl(this,h).takeRecords()};var iwZ={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:bn,topWindowViewportExternalGeometry:bn,measurementRequests:new d2,elementGeometrySourceName:"ns",elementGeometry:bn,intersectionGeometry:bn,viewportLocalAppOffset:{x:0,y:0}};var wm$=un(BA(vA(function(h){var E;return(E=h.exposureOverride)!=null?E:faM(h)}),vA(function(h){return isFinite(h)?h:0}))),$6z=un(BA(vA(function(h){var E;
return(E=h.exposureOverride)!=null?E:faM(h)}),vA(function(h){return isFinite(h)?h:-1})));var Ej=function(h,E){this.a=h;this.b=E;if(h.clock.timeline!==E.clock.timeline)throw Error();};
Ej.prototype.equivalentTo=function(h){return h instanceof Ej?this.a.equivalentTo(h.a)&&this.b.equivalentTo(h.b):!1};
Ej.prototype.extrapolateToTime=function(h){var E=this.a.extrapolateToTime(h).value,g=this.b.extrapolateToTime(h).value;return{timestamp:h,value:[E,g]}};
_.ze.Object.defineProperties(Ej.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 h=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),E=this.a.lastMeasurement.timestamp.equals(h)?this.a.lastMeasurement.value:this.a.extrapolateToTime(h).value,g=this.b.lastMeasurement.timestamp.equals(h)?this.b.lastMeasurement.value:this.b.extrapolateToTime(h).value;return{timestamp:h,value:[E,g]}}}});var g6=function(h,E){this.input=h;this.mapFunction=E;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
g6.prototype.equivalentTo=function(h){return h instanceof g6?this.input.equivalentTo(h.input)&&this.mapFunction===h.mapFunction:!1};
g6.prototype.extrapolateToTime=function(h){h=this.input.extrapolateToTime(h);return{timestamp:h.timestamp,value:this.mapFunction(h.value)}};
_.ze.Object.defineProperties(g6.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var ZD=function(){};
ZD.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
ZD.prototype.extrapolateUsingTimestampMap=function(h){var E=this.clock.timeline,g,Z=(g=h.get(E))!=null?g:this.clock.now();h.set(E,Z);return this.extrapolateToTime(Z)};
ZD.prototype.map=function(h){return new orB(this,h)};
ZD.prototype.joinWith=function(h){return new I0F(this,h)};
var I0F=function(){Ej.apply(this,arguments);this.map=ZD.prototype.map;this.joinWith=ZD.prototype.joinWith;this.extrapolateToNow=ZD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=ZD.prototype.extrapolateUsingTimestampMap};
_.f(I0F,Ej);var orB=function(){g6.apply(this,arguments);this.map=ZD.prototype.map;this.joinWith=ZD.prototype.joinWith;this.extrapolateToNow=ZD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=ZD.prototype.extrapolateUsingTimestampMap};
_.f(orB,g6);var hA=function(h,E){this.lastMeasurement=E;this.extrapolateToNow=ZD.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=ZD.prototype.extrapolateUsingTimestampMap;this.map=ZD.prototype.map;this.joinWith=ZD.prototype.joinWith;this.clock=h};
hA.prototype.equivalentTo=function(h){return h.active};
hA.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ze.Object.defineProperties(hA.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var nZz=vA(function(h){if(h.value.viewportGeometrySourceName==="omid"){if(h.value.elementGeometrySourceName==="nio")return"omio";if(h.value.elementGeometrySourceName==="geo")return"omgeo"}return h.value.elementGeometrySourceName==="geo"||h.value.elementGeometrySourceName==="nio"?h.value.viewportGeometrySourceName:h.value.elementGeometrySourceName});var tAW=BA(kE(function(h){return!isNaN(h)}),GR(function(h,E){return isNaN(h)?E:Math.min(h,E)},NaN),E6());var D6O=un(BA(vA(function(h){return h.intersectionGeometry.width*h.intersectionGeometry.height/(h.exposedViewportLocalGeometry.width*h.exposedViewportLocalGeometry.height)}),vA(function(h){return isFinite(h)?Math.min(1,h):0})));var Ow$=BA(un(vA(function(h){h=h.exposureOverride?h.elementGeometry.width*h.elementGeometry.height*h.exposureOverride/(h.topWindowViewportExternalGeometry.width*h.topWindowViewportExternalGeometry.height):h.intersectionGeometry.width*h.intersectionGeometry.height/(h.topWindowViewportExternalGeometry.width*h.topWindowViewportExternalGeometry.height);return isFinite(h)?h:0})));var VAZ=function(h,E){var g=this;this.timeProvider=h;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=E.pipe(E6()).subscribe(function(Z){yVd(g);g.measurementRequestObserver=Z})},FEa=function(h,E){yVd(h);
h.lastMeasurementRequest=h.timeProvider.setTimeout(function(){var g;return void((g=h.measurementRequestObserver)==null?void 0:g.next())},E)},yVd=function(h){h.lastMeasurementRequest!==null&&h.timeProvider.clearTimeout(h.lastMeasurementRequest);
h.lastMeasurementRequest=null};
VAZ.prototype.dispose=function(){yVd(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var Raf=function(){};var PIW=function(h,E){this.context=h;this.strategies=E};
_.f(PIW,Raf);PIW.prototype.buildGeometrySource=function(h,E){var g=this.strategies.map(function(W){return W.buildGeometrySource(h,E)}),Z=Qpq(g.map(function(W){return W.geometrySource})),M=Z.capturedErrors.pipe(Pxf());
return{geometrySource:Z.chain.pipe(Jb(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:M,strategyErrors:Z.capturedErrors}].concat(_.$E(g.map(function(W){return W.additionalOutputs}))))}};
var Pxf=function(){return GR(function(h,E){E instanceof HR?h.push(E.measurementStrategyFailureReason):h.push(-1);return h},[])};var Uaz=function(h,E){this.context=h;this.poller=E};
_.f(Uaz,Raf);Uaz.prototype.buildGeometrySource=function(h,E){var g=hJd(g3q(this.context,this.poller),oZz(this.context,E.requestSource));return{geometrySource:uhz(h.measurableCreative.pipe(g),E.inApp),additionalOutputs:{}}};var BXd=function(h,E,g){g=g===void 0?LE$(h,E):g;this.context=h;this.intersectionObserverStrategy=g};
_.f(BXd,Raf);BXd.prototype.buildGeometrySource=function(h,E){var g=this.intersectionObserverStrategy(E.useV2);return{geometrySource:uhz(h.measurableCreative.pipe(g,jpM(this.context)),E.inApp),additionalOutputs:{}}};var BUB=function(h,E,g){var Z=Z===void 0?Symbol():Z;this.element=h;this.immediateUrls=E;this.timeOnScreenUrls=g;this.symbol=Z};var spq=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),GtN=Object.freeze([1,.75,spq.exposureThreshold,spq.largeAdExposureThreshold,0]);var GMd=function(h,E){E=E===void 0?36E5:E;var g=g===void 0?!0:g;this.creatives=new d2;this.elementsToUnregister=new d2;this.elementMap=new Map;var Z=new ZJ(window,null);Z.beaconFactory=new qG(Z,new bY(Z));RJW(Z,this.creatives,this.elementsToUnregister,h,E,g).subscribe()},cdO=function(h,E,g,Z){if(!h.elementMap.has(E)){var M=new kp(E);
h.elementMap.set(E,M);h.creatives.next(new BUB(M,g,Z))}},auq=function(h,E){h.elementsToUnregister.next(E);
var g=h.elementMap.get(E);g!==void 0&&(g.release(),h.elementMap.delete(E))};var qQx=function(h){var E=h.url;h=h.uaDataValues;this.JSC$9477_url_=E;this.uaDataValues_=h;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var g=/[?&]([^&=]+)=([^&]*)/g;h=g.exec(E);)this.urlParamValues_[h[1]]=h[2]},f6z=function(h){h=h.uaDataValues_;
if(!h)return"";var E=Wh("uap",h.platform)+Wh("uapv",h.platformVersion)+Wh("uafv",h.uaFullVersion)+Wh("uaa",h.architecture)+Wh("uam",h.model)+Wh("uab",h.bitness);h.fullVersionList&&(E+="&uafvl="+encodeURIComponent(h.fullVersionList.map(function(g){return encodeURIComponent(g.brand)+";"+encodeURIComponent(g.version)}).join("|")));
h.wow64!=null&&(E+="&uaw="+Number(h.wow64));return E.slice(1)};var UoA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(UoA,_.GN);UoA.prototype.getId=function(){return _.mj(this,1)};var Mg=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Mg,_.GN);Mg.prototype.getSeconds=function(){return l3(this,1)};
Mg.prototype.setSeconds=function(h){return _.hL(this,1,iJ(h),"0")};_.Hg=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(_.Hg,_.GN);_.Hg.prototype.getSeconds=function(){return l3(this,1)};
_.Hg.prototype.setSeconds=function(h){return _.hL(this,1,iJ(h),"0")};
_.L2H=function(h){var E=Number(HW(h,1));h=_.i4(h,2);return new Date(E*1E3+h/1E6)};var WQ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(WQ,_.GN);WQ.prototype.getUrl=function(){return _.mj(this,1)};
WQ.prototype.setUrl=function(h){return _.FD(this,1,h)};
WQ.prototype.getHeight=function(){return _.i4(this,2)};
WQ.prototype.getWidth=function(){return _.i4(this,3)};var pA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(pA,_.GN);pA.prototype.getAspectRatio=function(){return rr(this,1)};
pA.prototype.getDuration=function(){return _.iK(this,Mg,2)};var jKl=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(jKl,_.GN);var dof=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(dof,_.GN);var CxH=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(CxH,_.GN);var JLD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(JLD,_.GN);var eaF=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(eaF,_.GN);var qGF=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qGF,_.GN);var f0H=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(f0H,_.GN);var NUF=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(NUF,_.GN);var tLl=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(tLl,_.GN);var Gc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Gc,_.GN);var zc=[2,4,5,6,7];var SGl=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(SGl,_.GN);var xg=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(xg,_.GN);_.p=xg.prototype;_.p.getId=function(){return _.iK(this,UoA,1)};
_.p.getName=function(){return _.mj(this,2)};
_.p.setDescription=function(h){return _.FD(this,3,h)};
_.p.getUrl=function(){return _.mj(this,8)};
_.p.setUrl=function(h){return _.FD(this,8,h)};
var aj=function(h){return _.aD(h,WQ,10,_.ch())};
xg.prototype.getOwner=function(h){var E=_.Tp(this,40,_.JC,3,!0);kuO(E,h);return E[h]};
xg.prototype.getVersion=function(){return l3(this,45)};
var cQ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(cQ,_.GN);_.i0=[0,b3,iKq];_.oj=[0,b3,iKq];var xof=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(xof,_.GN);var Ij=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Ij,_.GN);Ij.prototype.getStatus=function(){return _.vW(this,1)};
Ij.prototype.removeItem=function(h){return JwN(this,2,h)};var wiM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(wiM,_.GN);wiM.prototype.getName=function(){return _.mj(this,8)};var Rj=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Rj,_.GN);Rj.prototype.getCommand=function(){return _.vW(this,1)};
Rj.prototype.getSource=function(){return _.iK(this,wiM,2)};
Rj.prototype.setVisible=function(h){return _.OH(this,5,h)};
Rj.prototype.removeItem=function(h){return JwN(this,7,h)};var DoM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(DoM,_.GN);DoM.prototype.getCommand=function(){return _.vW(this,1)};
DoM.prototype.removeItem=function(h){return JwN(this,4,h)};
var l0C=_.CM(DoM);var PQ=function(h,E,g){g=g===void 0?Error():g;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=h;E+=":";g instanceof Error?(this.message=E+g.message,this.stack=g.stack||""):(this.message=E+String(g),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(PQ,Error);_.wO=function(){this.JSC$9535_disposed_=this.JSC$9535_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.wO.prototype.JSC$9535_disposed_=!1;_.wO.prototype.isDisposed=function(){return this.JSC$9535_disposed_};
_.wO.prototype.dispose=function(){this.JSC$9535_disposed_||(this.JSC$9535_disposed_=!0,this.disposeInternal())};
_.wO.prototype[Symbol.dispose]=function(){this.dispose()};
_.jf=function(h,E){h.addOnDisposeCallback(_.Sj(_.p8,E))};
_.wO.prototype.addOnDisposeCallback=function(h,E){this.JSC$9535_disposed_?E!==void 0?h.call(E):h():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),E&&(h=h.bind(E)),this.onDisposeCallbacks_.push(h))};
_.wO.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var BQ=function(h){_.wO.call(this);this.wpc=h};
_.f(BQ,_.wO);BQ.prototype.vVJ=function(){return this.wpc.f()};
BQ.prototype.r0J=function(h){return this.wpc.c(h)};
BQ.prototype.dY=function(h){return this.wpc.m(wJO(h))};
BQ.prototype.oCC=function(h){return this.wpc.mws(wJO(h))};
var z8=function(h){_.wO.call(this);var E=this;this.vm=h;this.pix="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.dfJ=void 0;this.cuq=this.vm.p;this.bmD=this.t97.bind(this);this.addOnDisposeCallback(function(){return void rLD(E)})};
_.f(z8,_.wO);var mom=function(h){var E;return _.a(function(g){if(g.nextAddress==1){if(!h.vm.wpc)throw new PQ(30,"NWA");return h.fx7?g.return(h.fx7):g.yield(h.vm.wpc(),2)}E=g.yieldResult;h.fx7=new BQ(E);return g.return(h.fx7)})};
z8.prototype.snapshot=function(h){return this.vm.s(Object.assign({},h.bS&&{c:h.bS},h.sPC&&{s:h.sPC},h.t6S!==void 0&&{p:h.t6S}))};
z8.prototype.t97=function(h){this.vm.e(h)};
z8.prototype.go7=function(h,E){return this.vm.c(h,E,!1)};
var rLD=function(h){h.dfJ!==void 0&&(h.pix.forEach(function(E){var g;(g=h.dfJ)==null||g.removeEventListener(E,h.bmD)}),h.dfJ=void 0)};
z8.prototype.x48=function(){return this.vm.l()};var Uj=function(){_.wO.apply(this,arguments);this.cZh=1};
_.f(Uj,_.wO);Uj.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.cZh++;return this};
Uj.prototype.dispose=function(){--this.cZh||_.wO.prototype.dispose.call(this)};var vrf=function(h){this.fDa=h;h.addNewEventMetric("/client_streamz/bg/frs",_.RD("mk"))};
vrf.prototype.record=function(h,E){this.fDa.record("/client_streamz/bg/frs",h,E)};
var HMD=function(h){this.sGR=h;h.addNewEventMetric("/client_streamz/bg/wrl",_.RD("mn"),ID("ac"),ID("sc"),_.RD("rk"),_.RD("mk"))};
HMD.prototype.record=function(h,E,g,Z,M,W){this.sGR.record("/client_streamz/bg/wrl",h,E,g,Z,M,W)};
var $oD=function(h){this.eoE=h;h.addNewCounter("/client_streamz/bg/ec",_.RD("en"),_.RD("mk"))};
$oD.prototype.increment=function(h,E){this.eoE.JSC$9788_incrementCounter("/client_streamz/bg/ec",h,E)};
var K2F=function(h){this.qE0=h;h.addNewEventMetric("/client_streamz/bg/el",_.RD("en"),_.RD("mk"))};
K2F.prototype.record=function(h,E,g){this.qE0.record("/client_streamz/bg/el",h,E,g)};
var OMk=function(h){this.vz0=h;h.addNewCounter("/client_streamz/bg/cec",ID("ec"),_.RD("mk"))};
OMk.prototype.increment=function(h,E){this.vz0.JSC$9788_incrementCounter("/client_streamz/bg/cec",h,E)};
var nrm=function(h){this.ozX=h;h.addNewCounter("/client_streamz/bg/po/csc",ID("cs"),_.RD("mk"))};
nrm.prototype.increment=function(h,E){this.ozX.JSC$9788_incrementCounter("/client_streamz/bg/po/csc",h,E)};
var Xin=function(h){this.uTR=h;h.addNewCounter("/client_streamz/bg/po/ctav",_.RD("av"),_.RD("mk"))};
Xin.prototype.increment=function(h,E){this.uTR.JSC$9788_incrementCounter("/client_streamz/bg/po/ctav",h,E)};
var YGM=function(h){this.kne=h;h.addNewCounter("/client_streamz/bg/po/cwsc",_.RD("su"),_.RD("mk"))};
YGM.prototype.increment=function(h,E){this.kne.JSC$9788_incrementCounter("/client_streamz/bg/po/cwsc",h,E)};var WXz=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(WXz,_.GN);var MyO=function(h,E){return _.QG(h,3,E,Ilx)};var sKn=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(sKn,_.GN);var VLH=[1,2,3];var kNk=[0,VLH,_.MG,o4Z,PS$];var yLl=[0,_.WF,[0,As,_.TZ]];var F2M=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(F2M,_.GN);var ALm=[1,2,3];var TUF=[0,ALm,cya,pNd,_.pz,yLl];var bMB=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(bMB,_.GN);var ujl=[0,_.WF,kNk,TUF];var QKl=[0,_.gk];var hLM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(hLM,_.GN);var EEM=[0,_.gk,-1,_.ho];var gED=[0,_.gk,-1,_.Qj,_.ho];var ZXC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ZXC,_.GN);var MKk=[1,2,3];var WnD=[0,MKk,_.pz,EEM,_.pz,gED,_.pz,QKl];var pAD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(pAD,_.GN);pAD.prototype.JSC$9608_serializeBinary=HMd([0,_.gk,WnD,Bjq,_.WF,ujl,IHM,Rva]);var GHD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(GHD,_.GN);var chn=function(h){var E=new pAD;E=_.ln(E,1,h.JSC$9724_metricName);var g=zLM(h);E=_.QG(E,3,g,_.LU);g=[];for(var Z=[],M=_.G(h.cellMap.keys()),W=M.next();!W.done;W=M.next())Z.push(W.value.split(","));for(M=0;M<Z.length;M++){W=Z[M];for(var z=h.cellType,c=h.getCells(W)||[],I=[],B=0;B<c.length;B++){var U=c[B],L=U&&U.cellValue;U=new F2M;switch(z){case 3:L=Number(L);Number.isFinite(L)&&dQ(U,1,ALm,iJ(L));break;case 2:dQ(U,2,ALm,_.kM(Number(L)))}I.push(U)}z=I;for(c=0;c<z.length;c++){I=z[c];B=new bMB;I=_.fM(B,
2,I);B=[];U=aTM(h);for(L=0;L<U.length;L++){var d=U[L],C=W[L],q=new sKn;switch(d){case 3:dQ(q,1,VLH,CU(String(C)));break;case 2:d=Number(C);Number.isFinite(d)&&dQ(q,2,VLH,_.MZ(d));break;case 1:dQ(q,3,VLH,cn$(C==="true"))}B.push(q)}SP(I,1,B);g.push(I)}}SP(E,4,g);return E};var iXf=function(h){if(!h)return"";if(/^about:(?:blank|srcdoc)$/.test(h))return window.origin||"";h.indexOf("blob:")===0&&(h=h.substring(5));h=h.split("#")[0].split("?")[0];h=h.toLowerCase();h.indexOf("//")==0&&(h=window.location.protocol+h);/^[\w\-]*:\/\//.test(h)||(h=window.location.href);var E=h.substring(h.indexOf("://")+3),g=E.indexOf("/");g!=-1&&(E=E.substring(0,g));g=h.substring(0,h.indexOf("://"));if(!g)throw Error("qa`"+h);if(g!=="http"&&g!=="https"&&g!=="chrome-extension"&&g!=="moz-extension"&&
g!=="file"&&g!=="android-app"&&g!=="chrome-search"&&g!=="chrome-untrusted"&&g!=="chrome"&&g!=="app"&&g!=="devtools")throw Error("ra`"+g);h="";var Z=E.indexOf(":");if(Z!=-1){var M=E.substring(Z+1);E=E.substring(0,Z);if(g==="http"&&M!=="80"||g==="https"&&M!=="443")h=":"+M}return g+"://"+E+h};var ITD=function(h,E,g){var Z=String(_.MN.location.href);return Z&&h&&E?[E,oEn(iXf(Z),h,g||null)].join(" "):null},oEn=function(h,E,g){var Z=[],M=[];
if((Array.isArray(g)?2:1)==1)return M=[E,h],_.Tt(Z,function(c){M.push(c)}),RLD(M.join(" "));
var W=[],z=[];_.Tt(g,function(c){z.push(c.key);W.push(c.value)});
g=Math.floor((new Date).getTime()/1E3);M=W.length==0?[g,E,h]:[W.join(":"),g,E,h];_.Tt(Z,function(c){M.push(c)});
h=RLD(M.join(" "));h=[g,h];z.length==0||h.push(z.join(""));return h.join("_")},RLD=function(h){var E=K1q();
E.update(h);return E.digestString().toLowerCase()};var LA=function(h){this.JSC$9619_document_=h||{cookie:""}},Prn;
_.p=LA.prototype;_.p.isEnabled=function(){if(!_.MN.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.p.set=function(h,E,g){var Z=!1;if(typeof g==="object"){var M=g.sameSite;Z=g.secure||!1;var W=g.domain||void 0;var z=g.path||void 0;var c=g.maxAge}if(/[;=\s]/.test(h))throw Error("sa`"+h);if(/[;\r\n]/.test(E))throw Error("ta`"+E);c===void 0&&(c=-1);g=W?";domain="+W:"";z=z?";path="+z:"";Z=Z?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+c*1E3)).toUTCString();this.JSC$9619_document_.cookie=h+"="+E+g+z+c+Z+(M!=null?";samesite="+M:"")};
_.p.get=function(h,E){for(var g=h+"=",Z=(this.JSC$9619_document_.cookie||"").split(";"),M=0,W;M<Z.length;M++){W=Pa(Z[M]);if(W.lastIndexOf(g,0)==0)return W.slice(g.length);if(W==h)return""}return E};
_.p.remove=function(h,E,g){var Z=this.containsKey(h);this.set(h,"",{maxAge:0,path:E,domain:g});return Z};
_.p.getKeys=function(){return Prn(this).keys};
_.p.getValues=function(){return Prn(this).values};
_.p.isEmpty=function(){return!this.JSC$9619_document_.cookie};
_.p.getCount=function(){return this.JSC$9619_document_.cookie?(this.JSC$9619_document_.cookie||"").split(";").length:0};
_.p.containsKey=function(h){return this.get(h)!==void 0};
_.p.containsValue=function(h){for(var E=Prn(this).values,g=0;g<E.length;g++)if(E[g]==h)return!0;return!1};
_.p.clear=function(){for(var h=Prn(this).keys,E=h.length-1;E>=0;E--)this.remove(h[E])};
Prn=function(h){h=(h.JSC$9619_document_.cookie||"").split(";");for(var E=[],g=[],Z,M,W=0;W<h.length;W++)M=Pa(h[W]),Z=M.indexOf("="),Z==-1?(E.push(""),g.push(M)):(E.push(M.substring(0,Z)),g.push(M.substring(Z+1)));return{keys:E,values:g}};
_.qd=new LA(typeof document=="undefined"?null:document);var duO,BxF;duO=function(){var h=_.MN.__SAPISID||_.MN.__APISID||_.MN.__3PSAPISID||_.MN.__1PSAPISID||_.MN.__OVERRIDE_SID;if(h)return!0;typeof document!=="undefined"&&(h=new LA(document),h=h.get("SAPISID")||h.get("APISID")||h.get("__Secure-3PAPISID")||h.get("__Secure-1PAPISID"));return!!h};
BxF=function(h,E,g,Z){(h=_.MN[h])||typeof document==="undefined"||(h=(new LA(document)).get(E));return h?ITD(h,g,Z):null};
_.hqz=function(h){var E=iXf(_.MN==null?void 0:_.MN.location.href),g=[];if(duO()){E=E.indexOf("https:")==0||E.indexOf("chrome-extension:")==0||E.indexOf("chrome-untrusted://new-tab-page")==0||E.indexOf("moz-extension:")==0;var Z=E?_.MN.__SAPISID:_.MN.__APISID;Z||typeof document==="undefined"||(Z=new LA(document),Z=Z.get(E?"SAPISID":"APISID")||Z.get("__Secure-3PAPISID"));(Z=Z?ITD(Z,E?"SAPISIDHASH":"APISIDHASH",h):null)&&g.push(Z);E&&((E=BxF("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",h))&&g.push(E),
(h=BxF("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",h))&&g.push(h))}return g.length==0?null:g.join(" ")};var Ucn=function(){this.minSize=1024};
Ucn.prototype.compress=function(h){var E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return E=new CompressionStream("gzip"),g=(new Response(E.readable)).arrayBuffer(),Z=E.writable.getWriter(),W.yield(Z.write((new TextEncoder).encode(h)),2);case 2:return W.yield(Z.close(),3);case 3:return M=Uint8Array,W.yield(g,4);case 4:return W.return(new M(W.yieldResult))}})};
Ucn.prototype.isSupported=function(h){return h<this.minSize?!1:typeof CompressionStream!=="undefined"};var LnA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(LnA,_.GN);var jJ=function(h,E){this.intervalMs=h;this.callback=E;this.enabled=!1;this.nowFn=function(){return _.zZ()};
this.lastTimeMs=this.nowFn()};
jJ.prototype.setInterval=function(h){this.intervalMs=h;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
jJ.prototype.start=function(){var h=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){h.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
jJ.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
jJ.prototype.tick=function(){var h=this;if(this.enabled){var E=Math.max(this.nowFn()-this.lastTimeMs,0);E<this.intervalMs*.8?this.timer=setTimeout(function(){h.tick()},this.intervalMs-E):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var jHn=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(jHn,_.GN);var dcD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(dcD,_.GN);var Crf=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Crf,_.GN);Crf.prototype.getTransmissionType=function(){return _.vW(this,1)};var YWW=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(YWW,_.GN);YWW.prototype.getVersion=function(){return _.mj(this,2)};var d6=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(d6,_.GN);var XJM=function(h){SP(sou,1,h)};
d6.prototype.getModel=function(){return _.mj(this,6)};
var JhB=_.CM(d6);var eLC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(eLC,_.GN);var OFW=["platform","platformVersion","architecture","model","uaFullVersion"],sou=new d6,n3$=null;var CA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(CA,_.GN);var qZD=function(h){return _.oI(h,1,1)};var fTD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,4)};
_.f(fTD,_.GN);_.JO=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,36)};
_.f(_.JO,_.GN);_.JO.prototype.getExperimentIds=function(){return _.iK(this,LnA,16)};var Nxl=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,19)};
_.f(Nxl,_.GN);Nxl.prototype.setLogSource=function(h){return _.oI(this,2,h)};
Nxl.prototype.setScheduler=function(h){return _.oI(this,10,h)};var SZD=function(h,E){this.isServiceWorkerScope=E=E===void 0?!1:E;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Nxl;Number.isInteger(h)&&this.logRequest.setLogSource(h);E||(this.locale=document.documentElement.getAttribute("lang"));tKH(this,new CA)};
SZD.prototype.setLogSource=function(h){this.logRequest.setLogSource(h);return this};
var tKH=function(h,E){_.fM(h.logRequest,1,E);_.vW(E,1)||qZD(E);h.isServiceWorkerScope||(E=eJ(h),_.mj(E,5)||_.ln(E,5,h.locale));h.uach&&(E=eJ(h),_.iK(E,d6,9)||_.fM(E,9,h.uach))},xcf=function(h,E){h.transmissionType=E},wAA=function(h){var E=E===void 0?OFW:E;
var g=h.isServiceWorkerScope?void 0:XK();g?VX$(g,E).then(function(Z){h.uach=JhB(Z!=null?Z:"[]");Z=eJ(h);_.fM(Z,9,h.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},eJ=function(h){var E=_.iK(h.logRequest,CA,1);
E||(E=new CA,tKH(h,E));h=E;E=_.iK(h,eLC,11);E||(E=new eLC,_.fM(h,11,E));return E};
SZD.prototype.build=function(h,E,g,Z,M,W){E=E===void 0?0:E;g=g===void 0?0:g;Z=Z===void 0?null:Z;M=M===void 0?0:M;W=W===void 0?0:W;if(!this.isServiceWorkerScope){var z=eJ(this);var c=new Crf;c=_.oI(c,1,this.transmissionType);c=_.Ph(c,2,this.isFinal);g=_.OK(c,3,g>0?g:void 0);g=_.OK(g,4,M>0?M:void 0);g=_.OK(g,5,W>0?W:void 0);M=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=M[_.pD]|0;g=dB(g,W)?g:dZz(g,M,W)?jGa(g,M):new g.constructor(O0(M,W,!0));_.fM(z,10,g)}z=this.logRequest.clone();g=Date.now().toString();
z=_.II(z,4,iJ(g));h=h.slice();h=SP(z,3,h);Z&&(z=new jHn,Z=_.OK(z,13,Z),z=new dcD,Z=_.fM(z,2,Z),z=new fTD,Z=_.fM(z,1,Z),Z=_.oI(Z,2,9),_.fM(h,18,Z));E&&_.t1(h,14,E);return h};Bh.prototype.currBackoffCount_=0;Bh.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Bh.prototype.getValue=function(){return this.currValue_};
var Dcl=function(h){h.currBaseValue_=Math.min(h.maxValue_,h.currBaseValue_*h.backoffFactor_);h.currValue_=Math.min(h.maxValue_,h.currBaseValue_+(h.randomFactor_?Math.round(h.randomFactor_*(Math.random()-.5)*2*h.currBaseValue_):0));h.currBackoffCount_++};var evd=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,8)};
_.f(evd,_.GN);var lTk=_.CM(evd);var qNa=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qNa,_.GN);var qg;qg=new fHu;var fA=function(h){_.wO.call(this);var E=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9697_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$9697_sendBeaconApiEnabled=!1;this.logSource=h.logSource;this.getAuthHeaderValue=
h.getAuthHeaderValue||function(){};
this.logRequestBuilder=new SZD(h.logSource,h.isServiceWorkerScope);this.network=h.network||null;this.productID=h.productID||null;this.bufferSize=1E3;this.clearcutUrl=h.urlOverride||null;this.sessionIndex=h.sessionIndex||null;this.disableAutomaticFlush=h.disableAutomaticFlush||!1;this.withCredentials=!h.disableWithCredentials;this.isServiceWorkerScope=h.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!XK()&&!!XK().navigator&&XK().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(rhH())).searchParams&&!!(new URL(rhH())).searchParams.set;var g=qZD(new CA);tKH(this.logRequestBuilder,g);this.flushBackoff=new Bh(1E4,3E5,.1);h=mcB(this,h.backgroundJobDeferrer);this.JSC$9697_flushTimer=new jJ(this.flushBackoff.getValue(),h);this.backupTimer=new jJ(6E5,h);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){vEC(E);
var Z;(Z=E.metalogService)==null||Z.flush()}}),document.addEventListener("pagehide",function(){vEC(E);
var Z;(Z=E.metalogService)==null||Z.flush()}))};
_.f(fA,_.wO);var mcB=function(h,E){return h.isBrowserSupported?E?function(){E().then(function(){h.flush()})}:function(){h.flush()}:function(){}};
fA.prototype.disposeInternal=function(){vEC(this);this.JSC$9697_flushTimer.stop();this.backupTimer.stop();_.wO.prototype.disposeInternal.call(this)};
var HXM=function(h){h.clearcutUrl||(h.clearcutUrl=rhH());try{return(new URL(h.clearcutUrl)).toString()}catch(E){return(new URL(h.clearcutUrl,XK().location.origin)).toString()}};
fA.prototype.dispatch=function(h){if(h instanceof _.JO)this.log(h);else try{var E=new _.JO,g=h.serialize();var Z=_.ln(E,8,g);this.log(Z)}catch(M){Ng(this,4,1)}};
var Ng=function(h,E,g){h.metalogService&&h.metalogService.increment(E,g)};
fA.prototype.log=function(h){Ng(this,2,1);if(this.isBrowserSupported){h=h.clone();var E=this.sequencePosition++;h=_.t1(h,21,E);this.componentId&&_.ln(h,26,this.componentId);E=h;if(SDZ(_.Js(E,1))==null){var g=Date.now();g=Number.isFinite(g)?g.toString():"0";_.II(E,1,iJ(g))}_.tFO(_.Js(E,15))!=null||_.t1(E,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(g=this.experimentIds.clone(),_.fM(E,16,g));Ng(this,1,1);E=this.pendingEvents.length-this.bufferSize+1;E>0&&(this.pendingEvents.splice(0,E),
this.numLogsDroppedSinceLastFlush+=E,Ng(this,3,E));this.pendingEvents.push(h);this.disableAutomaticFlush||this.JSC$9697_flushTimer.enabled||this.JSC$9697_flushTimer.start()}};
fA.prototype.flush=function(h,E){var g=this;if(this.pendingEvents.length===0)h&&h();else if(this.JSC$9697_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$cl(this);else{var Z=Date.now();if(this.noFlushUntilMs>Z&&this.startWaitingMs<Z)E&&E("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?xcf(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var M=this.pendingEvents.length,
W=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),z=this.getAuthHeaderValue();if(z&&this.lastFailedAuth===z)E&&E("stale-auth-token");else{this.pendingEvents=[];this.JSC$9697_flushTimer.enabled&&this.JSC$9697_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;Z=W.serialize();var c;this.JSC$9697_compressor&&this.JSC$9697_compressor.isSupported(Z.length)&&
(c=this.JSC$9697_compressor.compress(Z));var I=KnD(this,Z,z),B=function(d){g.flushBackoff.reset();g.JSC$9697_flushTimer.setInterval(g.flushBackoff.getValue());if(d){var C=null;try{var q=JSON.stringify(JSON.parse(d.replace(")]}'\n","")));C=lTk(q)}catch(w){}C&&(d=Number(l3(C,1,_.vM("-1"))),d>0&&(g.startWaitingMs=Date.now(),g.noFlushUntilMs=g.startWaitingMs+d),TBO(C.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,qg.fieldIndex),FfW(C,qg.fieldIndex),C=qg.ctor?qg.getExtensionFn(C,qg.ctor,qg.fieldIndex,
qg.JSC$8876_hasMessageId):qg.getExtensionFn(C,qg.fieldIndex,null,qg.JSC$8876_hasMessageId),C=C===null?void 0:C)&&(C=_.i4(C,1,-1),C!==-1&&(g.flushBackoff=new Bh(C<1?1:C,3E5,.1),g.JSC$9697_flushTimer.setInterval(g.flushBackoff.getValue())))}h&&h();g.numRetriesSinceLastSuccessfulFlush=0},U=function(d,C){var q=_.aD(W,_.JO,3,_.ch());
var w=Number(l3(W,14));Dcl(g.flushBackoff);g.JSC$9697_flushTimer.setInterval(g.flushBackoff.getValue());d===401&&z&&(g.lastFailedAuth=z);w&&(g.numLogsDroppedSinceLastFlush+=w);C===void 0&&(C=g.isRetryable(d));C&&(g.pendingEvents=q.concat(g.pendingEvents),g.disableAutomaticFlush||g.JSC$9697_flushTimer.enabled||g.JSC$9697_flushTimer.start());Ng(g,7,1);E&&E("net-send-failed",d);++g.numRetriesSinceLastSuccessfulFlush},L=function(){g.network&&g.network.send(I,B,U)};
c?c.then(function(d){Ng(g,5,M);I.requestHeaders["Content-Encoding"]="gzip";I.requestHeaders["Content-Type"]="application/binary";I.body=d;I.bodyType=2;L()},function(){Ng(g,6,M);
L()}):L()}}}};
var KnD=function(h,E,g){g=g===void 0?null:g;var Z=Z===void 0?h.withCredentials:Z;var M={},W=new URL(HXM(h));g&&(M.Authorization=g);h.sessionIndex&&(M["X-Goog-AuthUser"]=h.sessionIndex,W.searchParams.set("authuser",h.sessionIndex));h.pageId&&(Object.defineProperty(M,"X-Goog-PageId",{value:h.pageId}),W.searchParams.set("pageId",h.pageId));return{url:W.toString(),body:E,bodyType:1,requestHeaders:M,requestType:"POST",withCredentials:Z,timeoutMillis:h.timeoutMillis}},vEC=function(h){h.logRequestBuilder.isFinal=
!0;
h.flush();h.logRequestBuilder.isFinal=!1},$cl=function(h){OXM(h,function(E,g){E=new URL(E);
E.searchParams.set("format","json");var Z=!1;try{Z=XK().navigator.sendBeacon(E.toString(),g.serialize())}catch(M){}Z||(h.isSendBeaconSupported=!1);return Z})},OXM=function(h,E){if(h.pendingEvents.length!==0){var g=new URL(HXM(h));
g.searchParams.delete("format");var Z=h.getAuthHeaderValue();Z&&g.searchParams.set("auth",Z);g.searchParams.set("authuser",h.sessionIndex||"0");for(Z=0;Z<10&&h.pendingEvents.length;++Z){var M=h.pendingEvents.slice(0,32),W=h.logRequestBuilder.build(M,h.numLogsDroppedSinceLastFlush,h.numRetriesSinceLastSuccessfulFlush,h.productID,h.persistedLogRecoveredCount,h.persistedLogExpiredCount);if(!E(g.toString(),W)){++h.numRetriesSinceLastSuccessfulFlush;break}h.numLogsDroppedSinceLastFlush=0;h.numRetriesSinceLastSuccessfulFlush=
0;h.persistedLogRecoveredCount=0;h.persistedLogExpiredCount=0;h.pendingEvents=h.pendingEvents.slice(M.length)}h.JSC$9697_flushTimer.enabled&&h.JSC$9697_flushTimer.stop()}};
fA.prototype.isRetryable=function(h){return 500<=h&&h<600||h===401||h===0};
var rhH=function(){return"https://play.google.com/log?format=json&hasfast=true"};var nED=function(){this.abortSupported=typeof AbortController!=="undefined"};
nED.prototype.send=function(h,E,g){var Z=this,M,W,z,c,I,B,U,L,d,C;return _.a(function(q){switch(q.nextAddress){case 1:return W=(M=Z.abortSupported?new AbortController:void 0)?setTimeout(function(){M.abort()},h.timeoutMillis):void 0,_.CX(q,2,3),z=Object.assign({},{method:h.requestType,
headers:Object.assign({},h.requestHeaders)},h.body&&{body:h.body},h.withCredentials&&{credentials:"include"},{signal:h.timeoutMillis&&M?M.signal:null}),q.yield(fetch(h.url,z),5);case 5:c=q.yieldResult;if(c.status!==200){(I=g)==null||I(c.status);q.jumpTo(3);break}if((B=E)==null){q.jumpTo(7);break}return q.yield(c.text(),8);case 8:B(q.yieldResult);case 7:case 3:_.eK(q);clearTimeout(W);_.fX(q,0);break;case 2:U=_.th(q);switch((L=U)==null?void 0:L.name){case "AbortError":(d=g)==null||d(408);break;default:(C=
g)==null||C(400)}q.jumpTo(3)}})};
nED.prototype.getTransmissionType=function(){return 4};_.L8=function(h,E){E=E===void 0?"0":E;_.wO.call(this);this.logSource=h;this.sessionIndex=E;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9715_clearExperimentIds=this.productID=null;this.JSC$9715_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.f(_.L8,_.wO);var EXz=function(h,E){h.buildLabel=E;return h},hw4=function(h,E){h.network=E;
return h},ZlM=function(h,E){h.JSC$9715_clearExperimentIds=E},QoV=function(h){h.JSC$9715_sendBeaconApiEnabled=!0;
return h};
_.L8.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.L8.prototype.build=function(){this.network||(this.network=new nED);var h=new fA({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.hqz,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.jf(this,h);if(this.buildLabel){var E=this.buildLabel,g=
eJ(h.logRequestBuilder);_.ln(g,7,E)}h.JSC$9697_compressor=new Ucn;this.componentId&&(h.componentId=this.componentId);this.productID&&(h.productID=this.productID);this.pageId&&(h.pageId=this.pageId);this.JSC$9715_clearExperimentIds&&((g=this.JSC$9715_clearExperimentIds)?(h.experimentIds||(h.experimentIds=new LnA),E=h.experimentIds,g=g.serialize(),_.ln(E,4,g)):h.experimentIds&&_.II(h.experimentIds,4));this.JSC$9715_sendBeaconApiEnabled&&(h.JSC$9697_sendBeaconApiEnabled=h.isSendBeaconSupported);wAA(h.logRequestBuilder);
this.bufferSize&&(h.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(h);return h};var pxN=function(h,E,g,Z,M,W,z){h=h===void 0?-1:h;E=E===void 0?"":E;g=g===void 0?"":g;Z=Z===void 0?!1:Z;M=M===void 0?"":M;_.wO.call(this);this.logSource=h;this.componentId=E;W?E=W:(h=new _.L8(h,"0"),h.componentId=E,_.jf(this,h),g!==""&&(h.destinationUrl=g),Z&&(h.serviceWorkerScopeEnabled=!0),M&&EXz(h,M),z&&hw4(h,z),E=h.build());this.JSC$9719_transport=E};
_.f(pxN,_.wO);pxN.prototype.flush=function(h){h=h||[];if(h.length){for(var E=new GHD,g=[],Z=0;Z<h.length;Z++){var M=h[Z],W=chn(M);g.push(W);M.clear()}SP(E,1,g);this.JSC$9719_transport.dispatch(E);this.JSC$9719_transport.flush()}};var XAH=function(h){this.cellValue=h};var tO=function(h,E,g){this.JSC$9724_metricName=h;this.cellType=E;this.fields=g||[];this.cellMap=new Map},aTM=function(h){return h.fields.map(function(E){return E.fieldType})},zLM=function(h){return h.fields.map(function(E){return E.fieldName})};
_.p=tO.prototype;_.p.addCell=function(h){var E=_.VF.apply(1,arguments),g=this.getCells(E);g?g.push(new XAH(h)):this.JSC$9724_setCell(h,E)};
_.p.JSC$9724_setCell=function(h){var E=this.JSC$9724_getKey(_.VF.apply(1,arguments));this.cellMap.set(E,[new XAH(h)])};
_.p.getCells=function(){var h=this.JSC$9724_getKey(_.VF.apply(0,arguments));return this.cellMap.has(h)?this.cellMap.get(h):void 0};
_.p.getCell=function(){var h=this.getCells(_.VF.apply(0,arguments));return h&&h.length?h[0]:void 0};
_.p.clear=function(){this.cellMap.clear()};
_.p.JSC$9724_getKey=function(){var h=_.VF.apply(0,arguments);return h?h.join(","):"key"};var YZl=function(h,E){tO.call(this,h,3,E)};
_.f(YZl,tO);YZl.prototype.JSC$9727_incrementCounterBy=function(h){var E=_.VF.apply(1,arguments),g=0,Z=this.getCell(E);Z&&(g=Z.cellValue);this.JSC$9724_setCell(g+h,E)};var sHC=function(h,E){tO.call(this,h,2,E)};
_.f(sHC,tO);sHC.prototype.record=function(h){this.addCell(h,_.VF.apply(1,arguments))};_.SJ=function(h){this.id=h};
_.SJ.prototype.toString=function(){return this.id};_.xD=function(h,E){this.type=h instanceof _.SJ?String(h):h;this.currentTarget=this.target=E;this.defaultPrevented=this.propagationStopped_=!1};
_.xD.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.xD.prototype.preventDefault=function(){this.defaultPrevented=!0};_.w6=function(h,E){_.xD.call(this,h?h.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;h&&this.init(h,E)};
_.aV(_.w6,_.xD);
_.w6.prototype.init=function(h,E){var g=this.type=h.type,Z=h.changedTouches&&h.changedTouches.length?h.changedTouches[0]:null;this.target=h.target||h.srcElement;this.currentTarget=E;E=h.relatedTarget;E||(g=="mouseover"?E=h.fromElement:g=="mouseout"&&(E=h.toElement));this.relatedTarget=E;Z?(this.clientX=Z.clientX!==void 0?Z.clientX:Z.pageX,this.clientY=Z.clientY!==void 0?Z.clientY:Z.pageY,this.screenX=Z.screenX||0,this.screenY=Z.screenY||0):(this.offsetX=_.PW||h.offsetX!==void 0?h.offsetX:h.layerX,
this.offsetY=_.PW||h.offsetY!==void 0?h.offsetY:h.layerY,this.clientX=h.clientX!==void 0?h.clientX:h.pageX,this.clientY=h.clientY!==void 0?h.clientY:h.pageY,this.screenX=h.screenX||0,this.screenY=h.screenY||0);this.button=h.button;this.keyCode=h.keyCode||0;this.key=h.key||"";this.charCode=h.charCode||(g=="keypress"?h.keyCode:0);this.ctrlKey=h.ctrlKey;this.altKey=h.altKey;this.shiftKey=h.shiftKey;this.metaKey=h.metaKey;this.pointerId=h.pointerId||0;this.pointerType=h.pointerType;this.state=h.state;
this.timeStamp=h.timeStamp;this.event_=h;h.defaultPrevented&&_.w6.superClass_.preventDefault.call(this)};
_.w6.prototype.isButton=function(h){return this.event_.button==h};
_.w6.prototype.stopPropagation=function(){_.w6.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.w6.prototype.preventDefault=function(){_.w6.superClass_.preventDefault.call(this);var h=this.event_;h.preventDefault?h.preventDefault():h.returnValue=!1};var VKB="closure_listenable_"+(Math.random()*1E6|0),DD=function(h){return!(!h||!h[VKB])};var kHB=0;var yhn=function(h,E,g,Z,M){this.listener=h;this.proxy=null;this.src=E;this.type=g;this.capture=!!Z;this.handler=M;this.key=++kHB;this.removed=this.callOnce=!1},FnM=function(h){h.removed=!0;
h.listener=null;h.proxy=null;h.src=null;h.handler=null};Ut.prototype.add=function(h,E,g,Z,M){var W=h.toString();h=this.listeners[W];h||(h=this.listeners[W]=[],this.typeCount_++);var z=Ahk(h,E,Z,M);z>-1?(E=h[z],g||(E.callOnce=!1)):(E=new yhn(E,this.src,W,!!Z,M),E.callOnce=g,h.push(E));return E};
Ut.prototype.remove=function(h,E,g,Z){h=h.toString();if(!(h in this.listeners))return!1;var M=this.listeners[h];E=Ahk(M,E,g,Z);return E>-1?(FnM(M[E]),_.eVq(M,E),M.length==0&&(delete this.listeners[h],this.typeCount_--),!0):!1};
var TxD=function(h,E){var g=E.type;if(!(g in h.listeners))return!1;var Z=_.Xz(h.listeners[g],E);Z&&(FnM(E),h.listeners[g].length==0&&(delete h.listeners[g],h.typeCount_--));return Z};
Ut.prototype.removeAll=function(h){h=h&&h.toString();var E=0,g;for(g in this.listeners)if(!h||g==h){for(var Z=this.listeners[g],M=0;M<Z.length;M++)++E,FnM(Z[M]);delete this.listeners[g];this.typeCount_--}return E};
Ut.prototype.getListener=function(h,E,g,Z){h=this.listeners[h.toString()];var M=-1;h&&(M=Ahk(h,E,g,Z));return M>-1?h[M]:null};
Ut.prototype.hasListener=function(h,E){var g=h!==void 0,Z=g?h.toString():"",M=E!==void 0;return _.Kt.some(this.listeners,function(W){for(var z=0;z<W.length;++z)if(!(g&&W[z].type!=Z||M&&W[z].capture!=E))return!0;return!1})};
var Ahk=function(h,E,g,Z){for(var M=0;M<h.length;++M){var W=h[M];if(!W.removed&&W.listener==E&&W.capture==!!g&&W.handler==Z)return M}return-1};var bXD,uUA,QHC,EpH,gpD,D6,ls,W8B,ZtM,M8D,l0,pRD,huD;bXD="closure_lm_"+(Math.random()*1E6|0);uUA={};QHC=0;_.vK=function(h,E,g,Z,M){if(Z&&Z.once)return D6(h,E,g,Z,M);if(Array.isArray(E)){for(var W=0;W<E.length;W++)_.vK(h,E[W],g,Z,M);return null}g=huD(g);return DD(h)?h.listen(E,g,_.yx(Z)?!!Z.capture:!!Z,M):EpH(h,E,g,!1,Z,M)};
EpH=function(h,E,g,Z,M,W){if(!E)throw Error("va");var z=_.yx(M)?!!M.capture:!!M,c=l0(h);c||(h[bXD]=c=new Ut(h));g=c.add(E,g,Z,z,W);if(g.proxy)return g;Z=gpD();g.proxy=Z;Z.src=h;Z.listener=g;if(h.addEventListener)_.hVm||(M=z),M===void 0&&(M=!1),h.addEventListener(E.toString(),Z,M);else if(h.attachEvent)h.attachEvent(ZtM(E.toString()),Z);else if(h.addListener&&h.removeListener)h.addListener(Z);else throw Error("wa");QHC++;return g};
gpD=function(){var h=M8D,E=function(g){return h.call(E.src,E.listener,g)};
return E};
D6=function(h,E,g,Z,M){if(Array.isArray(E)){for(var W=0;W<E.length;W++)D6(h,E[W],g,Z,M);return null}g=huD(g);return DD(h)?h.listenOnce(E,g,_.yx(Z)?!!Z.capture:!!Z,M):EpH(h,E,g,!0,Z,M)};
_.r6=function(h,E,g,Z,M){if(Array.isArray(E))for(var W=0;W<E.length;W++)_.r6(h,E[W],g,Z,M);else Z=_.yx(Z)?!!Z.capture:!!Z,g=huD(g),DD(h)?h.unlisten(E,g,Z,M):h&&(h=l0(h))&&(E=h.getListener(E,g,Z,M))&&ls(E)};
ls=function(h){if(typeof h==="number"||!h||h.removed)return!1;var E=h.src;if(DD(E))return TxD(E.eventTargetListeners_,h);var g=h.type,Z=h.proxy;E.removeEventListener?E.removeEventListener(g,Z,h.capture):E.detachEvent?E.detachEvent(ZtM(g),Z):E.addListener&&E.removeListener&&E.removeListener(Z);QHC--;(g=l0(E))?(TxD(g,h),g.typeCount_==0&&(g.src=null,E[bXD]=null)):FnM(h);return!0};
W8B=function(h,E,g,Z,M){g=huD(g);Z=!!Z;return DD(h)?h.getListener(E,g,Z,M):h?(h=l0(h))?h.getListener(E,g,Z,M):null:null};
ZtM=function(h){return h in uUA?uUA[h]:uUA[h]="on"+h};
M8D=function(h,E){if(h.removed)h=!0;else{E=new _.w6(E,this);var g=h.listener,Z=h.handler||h.src;h.callOnce&&ls(h);h=g.call(Z,E)}return h};
l0=function(h){h=h[bXD];return h instanceof Ut?h:null};
pRD="__closure_events_fn_"+(Math.random()*1E9>>>0);huD=function(h){if(typeof h==="function")return h;h[pRD]||(h[pRD]=function(E){return h.handleEvent(E)});
return h[pRD]};_.ms=function(){_.wO.call(this);this.eventTargetListeners_=new Ut(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.aV(_.ms,_.wO);_.ms.prototype[VKB]=!0;_.p=_.ms.prototype;_.p.setParentEventTarget=function(h){this.parentEventTarget_=h};
_.p.addEventListener=function(h,E,g,Z){_.vK(this,h,E,g,Z)};
_.p.removeEventListener=function(h,E,g,Z){_.r6(this,h,E,g,Z)};
_.p.dispatchEvent=function(h){var E,g=this.parentEventTarget_;if(g)for(E=[];g;g=g.parentEventTarget_)E.push(g);g=this.actualEventTarget_;var Z=h.type||h;if(typeof h==="string")h=new _.xD(h,g);else if(h instanceof _.xD)h.target=h.target||g;else{var M=h;h=new _.xD(Z,g);_.Kt.extend(h,M)}M=!0;var W;if(E)for(W=E.length-1;!h.propagationStopped_&&W>=0;W--){var z=h.currentTarget=E[W];M=GRm(z,Z,!0,h)&&M}h.propagationStopped_||(z=h.currentTarget=g,M=GRm(z,Z,!0,h)&&M,h.propagationStopped_||(M=GRm(z,Z,!1,h)&&
M));if(E)for(W=0;!h.propagationStopped_&&W<E.length;W++)z=h.currentTarget=E[W],M=GRm(z,Z,!1,h)&&M;return M};
_.p.disposeInternal=function(){_.ms.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.p.listen=function(h,E,g,Z){return this.eventTargetListeners_.add(String(h),E,!1,g,Z)};
_.p.listenOnce=function(h,E,g,Z){return this.eventTargetListeners_.add(String(h),E,!0,g,Z)};
_.p.unlisten=function(h,E,g,Z){return this.eventTargetListeners_.remove(String(h),E,g,Z)};
_.p.removeAllListeners=function(h){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(h):0};
var GRm=function(h,E,g,Z){E=h.eventTargetListeners_.listeners[String(E)];if(!E)return!0;E=E.concat();for(var M=!0,W=0;W<E.length;++W){var z=E[W];if(z&&!z.removed&&z.capture==g){var c=z.listener,I=z.handler||z.src;z.callOnce&&TxD(h.eventTargetListeners_,z);M=c.call(I,Z)!==!1&&M}}return M&&!Z.defaultPrevented};
_.ms.prototype.getListener=function(h,E,g,Z){return this.eventTargetListeners_.getListener(String(h),E,g,Z)};
_.ms.prototype.hasListener=function(h,E){return this.eventTargetListeners_.hasListener(h!==void 0?String(h):void 0,E)};var vQ=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(h){return h&&AsyncContext.Snapshot.wrap(h)}:function(h){return h};var zul=function(h,E){this.create_=h;this.reset_=E;this.occupants_=0;this.JSC$9759_head_=null};
zul.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var h=this.JSC$9759_head_;this.JSC$9759_head_=h.next;h.next=null}else h=this.create_();return h};
zul.prototype.put=function(h){this.reset_(h);this.occupants_<100&&(this.occupants_++,h.next=this.JSC$9759_head_,this.JSC$9759_head_=h)};var abf=function(){this.workTail_=this.workHead_=null};
abf.prototype.add=function(h,E){var g=yxz.get();g.set(h,E);this.workTail_?this.workTail_.next=g:this.workHead_=g;this.workTail_=g};
abf.prototype.remove=function(){var h=null;this.workHead_&&(h=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),h.next=null);return h};
var yxz=new zul(function(){return new cbM},function(h){return h.reset()}),cbM=function(){this.next=this.scope=this.fn=null};
cbM.prototype.set=function(h,E){this.fn=h;this.scope=E;this.next=null};
cbM.prototype.reset=function(){this.next=this.scope=this.fn=null};var itl,F14,ktq,opF;F14=!1;ktq=new abf;_.HQ=function(h,E){itl||opF();F14||(itl(),F14=!0);ktq.add(h,E)};
opF=function(){var h=Promise.resolve(void 0);itl=function(){h.then(Axq)}};var IbD=function(h){h.prototype.$goog_Thenable=!0},RuD=function(h){if(!h)return!1;
try{return!!h.$goog_Thenable}catch(E){return!1}};var Pnl,B2k,Usf,jfD,dsk,CnA,fbD,S6F,lbf,wRH,dkd;_.jM=function(h,E){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(h!=_.wk)try{var g=this;h.call(E,function(Z){g.resolve_(2,Z)},function(Z){g.resolve_(3,Z)})}catch(Z){this.resolve_(3,Z)}};
Pnl=function(){this.next=this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
Pnl.prototype.reset=function(){this.context=this.JSC$9770_onRejected=this.JSC$9770_onFulfilled=this.child=null;this.always=!1};
B2k=new zul(function(){return new Pnl},function(h){h.reset()});
Usf=function(h,E,g){var Z=B2k.get();Z.JSC$9770_onFulfilled=h;Z.JSC$9770_onRejected=E;Z.context=g;return Z};
_.dC=function(h){if(h instanceof _.jM)return h;var E=new _.jM(_.wk);E.resolve_(2,h);return E};
_.$B=function(h){return new _.jM(function(E,g){g(h)})};
jfD=function(h,E,g){L8M(h,E,g,null)||_.HQ(_.Sj(E,h))};
_.$D=function(h){return new _.jM(function(E,g){var Z=h.length,M=[];if(Z)for(var W=function(B,U){Z--;M[B]=U;Z==0&&E(M)},z=function(B){g(B)},c,I=0;I<h.length;I++)c=h[I],jfD(c,_.Sj(W,I),z);
else E(M)})};
dsk=function(h){return new _.jM(function(E){var g=h.length,Z=[];if(g)for(var M=function(c,I,B){g--;Z[c]=I?{fulfilled:!0,value:B}:{fulfilled:!1,reason:B};g==0&&E(Z)},W,z=0;z<h.length;z++)W=h[z],jfD(W,_.Sj(M,z,!0),_.Sj(M,z,!1));
else E(Z)})};
CnA=function(h){return new _.jM(function(E,g){var Z=h.length,M=[];if(Z)for(var W=function(B){E(B)},z=function(B,U){Z--;
M[B]=U;Z==0&&g(M)},c,I=0;I<h.length;I++)c=h[I],jfD(c,W,_.Sj(z,I));
else E(void 0)})};
_.hU=function(){var h,E,g=new _.jM(function(Z,M){h=Z;E=M});
return new Jbl(g,h,E)};
_.jM.prototype.then=function(h,E,g){return euM(this,vQ(typeof h==="function"?h:null),vQ(typeof E==="function"?E:null),g)};
IbD(_.jM);fbD=function(h,E,g,Z){q6l(h,Usf(E||_.wk,g||null,Z))};
_.KA=function(h,E){E=vQ(E);E=Usf(E,E);E.always=!0;q6l(h,E);return h};
_.jM.prototype.finally=function(h){var E=this;h=vQ(h);return new _.jM(function(g,Z){fbD(E,function(M){h();g(M)},function(M){h();
Z(M)})})};
_.jM.prototype.thenCatch=function(h,E){return euM(this,null,vQ(h),E)};
_.jM.prototype.catch=_.jM.prototype.thenCatch;_.jM.prototype.cancel=function(h){if(this.state_==0){var E=new _.Y7(h);_.HQ(function(){N2f(this,E)},this)}};
var N2f=function(h,E){if(h.state_==0)if(h.parent_){var g=h.parent_;if(g.callbackEntries_){for(var Z=0,M=null,W=null,z=g.callbackEntries_;z&&(z.always||(Z++,z.child==h&&(M=z),!(M&&Z>1)));z=z.next)M||(W=z);M&&(g.state_==0&&Z==1?N2f(g,E):(W?(Z=W,Z.next==g.callbackEntriesTail_&&(g.callbackEntriesTail_=Z),Z.next=Z.next.next):t8C(g),S6F(g,M,3,E)))}h.parent_=null}else h.resolve_(3,E)},q6l=function(h,E){h.callbackEntries_||h.state_!=2&&h.state_!=3||xsC(h);
h.callbackEntriesTail_?h.callbackEntriesTail_.next=E:h.callbackEntries_=E;h.callbackEntriesTail_=E},euM=function(h,E,g,Z){var M=Usf(null,null,null);
M.child=new _.jM(function(W,z){M.JSC$9770_onFulfilled=E?function(c){try{var I=E.call(Z,c);W(I)}catch(B){z(B)}}:W;
M.JSC$9770_onRejected=g?function(c){try{var I=g.call(Z,c);I===void 0&&c instanceof _.Y7?z(c):W(I)}catch(B){z(B)}}:z});
M.child.parent_=h;q6l(h,M);return M.child};
_.jM.prototype.unblockAndFulfill_=function(h){this.state_=0;this.resolve_(2,h)};
_.jM.prototype.unblockAndReject_=function(h){this.state_=0;this.resolve_(3,h)};
_.jM.prototype.resolve_=function(h,E){this.state_==0&&(this===E&&(h=3,E=new TypeError("xa")),this.state_=1,L8M(E,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=E,this.state_=h,this.parent_=null,xsC(this),h!=3||E instanceof _.Y7||wRH(this,E)))};
var L8M=function(h,E,g,Z){if(h instanceof _.jM)return fbD(h,E,g,Z),!0;if(RuD(h))return h.then(E,g,Z),!0;if(_.yx(h))try{var M=h.then;if(typeof M==="function")return Dsk(h,M,E,g,Z),!0}catch(W){return g.call(Z,W),!0}return!1},Dsk=function(h,E,g,Z,M){var W=!1,z=function(I){W||(W=!0,g.call(M,I))},c=function(I){W||(W=!0,Z.call(M,I))};
try{E.call(h,z,c)}catch(I){c(I)}},xsC=function(h){h.executing_||(h.executing_=!0,_.HQ(h.executeCallbacks_,h))},t8C=function(h){var E=null;
h.callbackEntries_&&(E=h.callbackEntries_,h.callbackEntries_=E.next,E.next=null);h.callbackEntries_||(h.callbackEntriesTail_=null);return E};
_.jM.prototype.executeCallbacks_=function(){for(var h;h=t8C(this);)S6F(this,h,this.state_,this.result_);this.executing_=!1};
S6F=function(h,E,g,Z){if(g==3&&E.JSC$9770_onRejected&&!E.always)for(;h&&h.hadUnhandledRejection_;h=h.parent_)h.hadUnhandledRejection_=!1;if(E.child)E.child.parent_=null,lbf(E,g,Z);else try{E.always?E.JSC$9770_onFulfilled.call(E.context):lbf(E,g,Z)}catch(M){dkd.call(null,M)}B2k.put(E)};
lbf=function(h,E,g){E==2?h.JSC$9770_onFulfilled.call(h.context,g):h.JSC$9770_onRejected&&h.JSC$9770_onRejected.call(h.context,g)};
wRH=function(h,E){h.hadUnhandledRejection_=!0;_.HQ(function(){h.hadUnhandledRejection_&&dkd.call(null,E)})};
dkd=Wa;_.Y7=function(h){_.g$.call(this,h)};
_.aV(_.Y7,_.g$);_.Y7.prototype.name="cancel";var Jbl=function(h,E,g){this.promise=h;this.resolve=E;this.reject=g};var Oj;_.R5=function(h,E){_.ms.call(this);this.JSC$9782_interval_=h||1;this.timerObject_=E||_.MN;this.boundTick_=(0,_.DJ)(this.tick_,this);this.last_=_.zZ()};
_.aV(_.R5,_.ms);_.p=_.R5.prototype;_.p.enabled=!1;_.p.JSC$9784_timer_=null;_.p.setInterval=function(h){this.JSC$9782_interval_=h;this.JSC$9784_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9784_timer_&&this.stop()};
_.p.tick_=function(){if(this.enabled){var h=_.zZ()-this.last_;h>0&&h<this.JSC$9782_interval_*.8?this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_-h):(this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.p.start=function(){this.enabled=!0;this.JSC$9784_timer_||(this.JSC$9784_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9782_interval_),this.last_=_.zZ())};
_.p.stop=function(){this.enabled=!1;this.JSC$9784_timer_&&(this.timerObject_.clearTimeout(this.JSC$9784_timer_),this.JSC$9784_timer_=null)};
_.p.disposeInternal=function(){_.R5.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Oj=function(h,E,g){if(typeof h==="function")g&&(h=(0,_.DJ)(h,g));else if(h&&typeof h.handleEvent=="function")h=(0,_.DJ)(h.handleEvent,h);else throw Error("ya");return Number(E)>2147483647?-1:_.MN.setTimeout(h,E||0)};
_.rbA=function(h){var E=null;return(new _.jM(function(g,Z){E=Oj(function(){g(void 0)},h);
E==-1&&Z(Error("za"))})).thenCatch(function(g){_.MN.clearTimeout(E);
throw g;})};var C8=function(h){_.wO.call(this);this.streamzLogger=h;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9788_flushTimer=new _.R5(this.flushInterval);this.JSC$9788_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.jf(this,this.JSC$9788_flushTimer)};
_.f(C8,_.wO);C8.prototype.sendIsolatedPayload=function(h){this.shouldSendIsolatedPayload=h;this.invocationLimit=1};
var msM=function(h){h.JSC$9788_flushTimer.enabled||h.JSC$9788_flushTimer.start();h.invocationCount++;h.invocationCount>=h.invocationLimit&&h.snapshotAndFlush()};
C8.prototype.snapshotAndFlush=function(){var h=this.metricMap.values();h=[].concat(_.$E(h)).filter(function(E){return E.cellMap.size});
h.length&&this.streamzLogger.flush(h,this.shouldSendIsolatedPayload);vpk(h);this.invocationCount=0;this.JSC$9788_flushTimer.enabled&&this.JSC$9788_flushTimer.stop()};
C8.prototype.addNewCounter=function(h){var E=_.VF.apply(1,arguments);this.metricMap.has(h)||this.metricMap.set(h,new YZl(h,E))};
C8.prototype.addNewEventMetric=function(h){var E=_.VF.apply(1,arguments);this.metricMap.has(h)||this.metricMap.set(h,new sHC(h,E))};
var HtF=function(h,E){return h.disabledMetrics.has(E)?void 0:h.metricMap.get(E)};
C8.prototype.JSC$9788_incrementCounter=function(h){this.JSC$9788_incrementCounterBy(h,1,_.VF.apply(1,arguments))};
C8.prototype.JSC$9788_incrementCounterBy=function(h,E){var g=_.VF.apply(2,arguments),Z=HtF(this,h);Z&&Z instanceof YZl&&(Z.JSC$9727_incrementCounterBy(E,g),msM(this))};
C8.prototype.record=function(h,E){var g=_.VF.apply(2,arguments),Z=HtF(this,h);Z&&Z instanceof sHC&&(Z.record(E,g),msM(this))};
var vpk=function(h){for(var E=0;E<h.length;E++)h[E].clear()};_.nA=function(h,E,g){g=g===void 0?{}:g;E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=h;this.metadata=g;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.nA,Error);_.nA.prototype.toString=function(){var h="RpcError("+(bFx(this.code)||String(this.code))+")";this.message&&(h+=": "+this.message);return h};_.$sm=_.MN.JSON.parse;_.XY=_.MN.JSON.stringify;_.KQ=_.MN.JSON.parse;_.K8D=function(h){switch(h){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 OtA=function(h){switch(h){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var npM,XRf=function(){};
_.aV(XRf,_.unq);XRf.prototype.createInstance=function(){return new XMLHttpRequest};
npM=new XRf;_.YD=function(h){_.ms.call(this);this.headers=new Map;this.JSC$9797_xmlHttpFactory_=h||null;this.JSC$9797_active_=!1;this.JSC$9797_xhr_=null;this.JSC$9797_lastUri_="";this.JSC$9797_lastErrorCode_=0;this.JSC$9797_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9797_timeoutId_=null;this.responseType_="";this.JSC$9797_withCredentials_=!1};
_.aV(_.YD,_.ms);var Y6M=/^https?$/i,sfM=["POST","PUT"],V8f=[],eeW=function(h,E,g,Z,M,W,z){var c=new _.YD;V8f.push(c);E&&c.listen("complete",E);c.listenOnce("ready",c.cleanupSend_);W&&(c.timeoutInterval_=Math.max(0,W));z&&(c.JSC$9797_withCredentials_=z);c.send(h,g,Z,M)};
_.YD.prototype.cleanupSend_=function(){this.dispose();_.Xz(V8f,this)};
_.YD.prototype.send=function(h,E,g,Z){if(this.JSC$9797_xhr_)throw Error("Aa`"+this.JSC$9797_lastUri_+"`"+h);E=E?E.toUpperCase():"GET";this.JSC$9797_lastUri_=h;this.JSC$9797_lastError_="";this.JSC$9797_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9797_active_=!0;this.JSC$9797_xhr_=this.createXhr();this.JSC$9797_xhr_.onreadystatechange=vQ((0,_.DJ)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9797_xhr_.open(E,String(h),!0),this.inOpen_=!1}catch(z){kRf(this,z);return}h=g||"";g=new Map(this.headers);
if(Z)if(Object.getPrototypeOf(Z)===Object.prototype)for(var M in Z)g.set(M,Z[M]);else if(typeof Z.keys==="function"&&typeof Z.get==="function"){M=_.G(Z.keys());for(var W=M.next();!W.done;W=M.next())W=W.value,g.set(W,Z.get(W))}else throw Error("Ba`"+String(Z));Z=Array.from(g.keys()).find(function(z){return"content-type"==z.toLowerCase()});
M=_.MN.FormData&&h instanceof _.MN.FormData;!_.nd(sfM,E)||Z||M||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");E=_.G(g);for(Z=E.next();!Z.done;Z=E.next())g=_.G(Z.value),Z=g.next().value,g=g.next().value,this.JSC$9797_xhr_.setRequestHeader(Z,g);this.responseType_&&(this.JSC$9797_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9797_xhr_&&this.JSC$9797_xhr_.withCredentials!==this.JSC$9797_withCredentials_&&(this.JSC$9797_xhr_.withCredentials=this.JSC$9797_withCredentials_);
try{this.JSC$9797_timeoutId_&&(clearTimeout(this.JSC$9797_timeoutId_),this.JSC$9797_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9797_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9797_xhr_.send(h),this.inSend_=!1}catch(z){kRf(this,z)}};
_.YD.prototype.createXhr=function(){return this.JSC$9797_xmlHttpFactory_?this.JSC$9797_xmlHttpFactory_.createInstance():npM.createInstance()};
_.YD.prototype.timeout_=function(){typeof gRu!="undefined"&&this.JSC$9797_xhr_&&(this.JSC$9797_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9797_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var kRf=function(h,E){h.JSC$9797_active_=!1;h.JSC$9797_xhr_&&(h.inAbort_=!0,h.JSC$9797_xhr_.abort(),h.inAbort_=!1);h.JSC$9797_lastError_=E;h.JSC$9797_lastErrorCode_=5;ybD(h);F8F(h)},ybD=function(h){h.errorDispatched_||(h.errorDispatched_=!0,h.dispatchEvent("complete"),h.dispatchEvent("error"))};
_.YD.prototype.abort=function(h){this.JSC$9797_xhr_&&this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1,this.JSC$9797_lastErrorCode_=h||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),F8F(this))};
_.YD.prototype.disposeInternal=function(){this.JSC$9797_xhr_&&(this.JSC$9797_active_&&(this.JSC$9797_active_=!1,this.inAbort_=!0,this.JSC$9797_xhr_.abort(),this.inAbort_=!1),F8F(this,!0));_.YD.superClass_.disposeInternal.call(this)};
_.YD.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Abf(this);else this.onReadyStateChangeEntryPoint_()};
_.YD.prototype.onReadyStateChangeEntryPoint_=function(){Abf(this)};
var Abf=function(h){if(h.JSC$9797_active_&&typeof gRu!="undefined")if(h.inSend_&&_.sj(h)==4)setTimeout(h.onReadyStateChange_.bind(h),0);else if(h.dispatchEvent("readystatechange"),h.isComplete()){h.JSC$9797_active_=!1;try{if(h.isSuccess())h.dispatchEvent("complete"),h.dispatchEvent("success");else{h.JSC$9797_lastErrorCode_=6;try{var E=_.sj(h)>2?h.JSC$9797_xhr_.statusText:""}catch(g){E=""}h.JSC$9797_lastError_=E+" ["+h.getStatus()+"]";ybD(h)}}finally{F8F(h)}}},F8F=function(h,E){if(h.JSC$9797_xhr_){h.JSC$9797_timeoutId_&&
(clearTimeout(h.JSC$9797_timeoutId_),h.JSC$9797_timeoutId_=null);
var g=h.JSC$9797_xhr_;h.JSC$9797_xhr_=null;E||h.dispatchEvent("ready");try{g.onreadystatechange=null}catch(Z){}}};
_.YD.prototype.isActive=function(){return!!this.JSC$9797_xhr_};
_.YD.prototype.isComplete=function(){return _.sj(this)==4};
_.YD.prototype.isSuccess=function(){var h=this.getStatus(),E;if(!(E=OtA(h))){if(h=h===0)h=haD(String(this.JSC$9797_lastUri_)),h=!Y6M.test(h);E=h}return E};
_.sj=function(h){return h.JSC$9797_xhr_?h.JSC$9797_xhr_.readyState:0};
_.p=_.YD.prototype;_.p.getStatus=function(){try{return _.sj(this)>2?this.JSC$9797_xhr_.status:-1}catch(h){return-1}};
_.p.getResponseText=function(){try{return this.JSC$9797_xhr_?this.JSC$9797_xhr_.responseText:""}catch(h){return""}};
_.p.getResponse=function(){try{if(!this.JSC$9797_xhr_)return null;if("response"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9797_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9797_xhr_)return this.JSC$9797_xhr_.mozResponseArrayBuffer}return null}catch(h){return null}};
_.p.getAllResponseHeaders=function(){return this.JSC$9797_xhr_&&_.sj(this)>=2?this.JSC$9797_xhr_.getAllResponseHeaders()||"":""};
_.p.getLastError=function(){return typeof this.JSC$9797_lastError_==="string"?this.JSC$9797_lastError_:String(this.JSC$9797_lastError_)};var gXq=function(){};
gXq.prototype.send=function(h,E,g){E=E===void 0?function(){}:E;
g=g===void 0?function(){}:g;
eeW(h.url,function(Z){Z=Z.target;Z.isSuccess()?E(Z.getResponseText()):g(Z.getStatus())},h.requestType,h.body,h.requestHeaders,h.timeoutMillis,h.withCredentials)};
gXq.prototype.getTransmissionType=function(){return 1};var T2B=function(h,E){this.x2a=h;this.event=E;this.startTime=JA()},zwV;
T2B.prototype.done=function(){this.x2a.u9(this.event,JA()-this.startTime)};
var VP=function(){Uj.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.f(VP,Uj);_.kD=function(h,E,g){var Z=JA();E=E();h.u9(g,JA()-Z);return E};
zwV=function(){VP.apply(this,arguments)};
_.f(zwV,VP);_.p=zwV.prototype;_.p.hUz=function(){};
_.p.dV=function(){};
_.p.u9=function(){};
_.p.logError=function(){};
_.p.gH=function(){};
_.p.pcX=function(){};
_.p.kV7=function(){};
_.p.jrC=function(){};
var btf=function(h){VP.call(this);var E=this;this.j9=h;this.TEST_ONLY={eEX:function(){return E.j9},
getExperimentIds:function(){return E.j9.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void E.j9.dispose()})};
_.f(btf,VP);_.p=btf.prototype;_.p.update=function(h){this.j9.dispose();this.j9=h};
_.p.dV=function(h){this.j9.dV(h)};
_.p.u9=function(h,E){this.j9.u9(h,E)};
_.p.logError=function(h){this.j9.logError(h)};
_.p.gH=function(){this.j9.gH()};
_.p.pcX=function(h){this.j9.pcX(h)};
_.p.kV7=function(h){this.j9.kV7(h)};
_.p.jrC=function(h){this.j9.jrC(h)};
_.p.hUz=function(h){this.j9.hUz(h)};
var uKn=function(h,E){_.wO.call(this);var g=this;this.callback=h;this.b7U=E;this.gSN=-E;this.addOnDisposeCallback(function(){return void clearTimeout(g.timer)})};
_.f(uKn,_.wO);var Qfl=function(h){if(h.timer===void 0){var E=Math.max(0,h.gSN+h.b7U-JA());h.timer=setTimeout(function(){try{h.callback()}finally{h.gSN=JA(),h.timer=void 0}},E)}},hln=function(h,E){VP.call(this);
this.metrics=h;this.n3=E};
_.f(hln,VP);_.p=hln.prototype;_.p.hUz=function(h){this.metrics.c2a.record(h,this.n3)};
_.p.dV=function(h){this.metrics.eventCount.increment(h,this.n3)};
_.p.u9=function(h,E){this.metrics.fGh.record(E,h,this.n3)};
_.p.logError=function(h){this.metrics.errorCount.increment(h,this.n3)};
_.p.pcX=function(h){this.metrics.rKq.increment(h,this.n3)};
_.p.kV7=function(h){this.metrics.mkD.increment(h,this.n3)};
_.p.jrC=function(h){this.metrics.x4c.increment(h,this.n3)};
var aVV=function(h,E){E=E===void 0?[]:E;var g={n3:h.n3||"_",qiq:h.qiq||[],i8T:h.i8T|0,destinationUrl:h.destinationUrl,yVj:h.yVj||function(){},
fZt:h.fZt||function(W,z){return GFW(W,z,g.yVj,g.destinationUrl)}},Z=g.fZt("51",g.qiq.concat(E));
hln.call(this,{c2a:new vrf(Z),errorCount:new OMk(Z),eventCount:new $oD(Z),fGh:new K2F(Z),maa:new HMD(Z),rKq:new nrm(Z),mkD:new Xin(Z),x4c:new YGM(Z)},g.n3);var M=this;this.TEST_ONLY={getExperimentIds:function(){return M.options.qiq.concat(M.bXw).sort(function(W,z){return W-z})}};
this.options=g;this.service=Z;this.wMh=!h.fZt;this.flushDebouncer=new uKn(function(){return void M.service.snapshotAndFlush()},g.i8T);
this.addOnDisposeCallback(function(){M.flushDebouncer.dispose();M.wMh&&M.service.dispose()});
(this.bXw=E.slice()).sort(_.tqd)};
_.f(aVV,hln);aVV.prototype.gH=function(){Qfl(this.flushDebouncer)};var gv4=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(gv4,_.GN);_.ZBx=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(_.ZBx,_.GN);var yK=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,0,yK.messageId)};
_.f(yK,_.GN);var Edn=_.$od(yK);yK.messageId="bfkj";var maq=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(maq,_.GN);var gdD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(gdD,_.GN);var Z8l=_.CM(gdD);_.dN=function(){var h=this;this.promise=new Promise(function(E,g){h.resolve=E;h.reject=g})};_.yP=function(h){_.wO.call(this);var E=this;this.lZL=Math.floor(Math.random()*200);this.v2h=new gdD;if("challenge"in h&&Edn(h.challenge)){var g=_.mj(h.challenge,4,void 0,Dl);var Z=_.mj(h.challenge,5,void 0,Dl);_.mj(h.challenge,7,void 0,Dl)&&(this.v2h=Z8l(_.mj(h.challenge,7,void 0,Dl)))}else g=h.program,Z=h.globalName;this.addOnDisposeCallback(function(){var q,w,r;return _.a(function(v){if(v.nextAddress==1)return v.yield(E.qfS,2);q=v.yieldResult;w=q.urc;(r=w)==null||r();_.SK(v)})});
this.jy=clx(h.vCS||{},this.v2h);_.jf(this,this.jy);var M=new _.dN;this.qfS=M.promise;this.jy.dV("t");var W=this.jy.share(),z=new T2B(W,"t"),c=function(q,w,r,v){if(!E.jy.isDisposed()){var H="k";w?H="h":r&&(H="u");H!=="k"?v!==0&&(E.jy.dV(H),E.jy.u9(H,q)):E.lZL<=0?(E.jy.dV(H),E.jy.u9(H,q),E.lZL=Math.floor(Math.random()*200)):E.lZL--}},I=function(q,w,r,v){Promise.resolve().then(function(){z.done();
W.gH();W.dispose();M.resolve({kJU:q,urc:w,miZ:r,qeU:v})})};
if(!_.MN[Z])throw this.jy.logError(25),Error("Ca");if(!_.MN[Z].a)throw this.jy.logError(26),Error("Da");try{var B=_.MN[Z].a;Z=[];for(var U=[],L=v3M(this.v2h),d=0;d<L.length;d++)Z.push(L[d]),U.push(1);var C=HFa(this.v2h);for(L=0;L<C.length;L++)Z.push(C[L]),U.push(2);this.h8G=_.G(B(g,I,!0,h.eTD,c,[Z,U],_.mj(this.v2h,5),!1)).next().value;this.cuq=M.promise.then(function(){})}catch(q){throw this.jy.logError(28),q;
}};
_.f(_.yP,_.wO);_.yP.prototype.snapshot=function(h){if(this.isDisposed())throw Error("Ea");this.jy.dV("n");var E=this.jy.share();return this.qfS.then(function(g){var Z=g.kJU;return new Promise(function(M){var W=new T2B(E,"n");Z(function(z){W.done();E.hUz(z.length);E.gH();E.dispose();M(z)},[h.bS,
h.sPC,h.nwe,h.t6S])})})};
_.yP.prototype.t97=function(h){this.qfS.then(function(E){var g;(g=E.miZ)==null||g(h)})};
_.yP.prototype.go7=function(h,E){return this.qfS.then(function(g){var Z;return(Z=g.qeU)==null?void 0:Z(h,E,!1)})};
_.yP.prototype.x48=function(){return this.jy.share()};var MfA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(MfA,_.GN);var MNN=_.$od(MfA);var WxC=function(){this.promises={};this.z7T=null},phD=function(){WxC.instance||(WxC.instance=new WxC);
return WxC.instance},zlB=function(h,E){return G8C(h,_.iK(E,gv4,1,Dl),_.iK(E,_.ZBx,2,Dl),_.mj(E,3,void 0,Dl))},G8C=function(h,E,g,Z){if(!E&&!g)return Promise.resolve();
if(!Z)return PNq(E,g);var M;(M=h.promises)[Z]||(M[Z]=new Promise(function(W,z){PNq(E,g).then(function(){h.z7T=Z;W()},function(c){delete h.promises[Z];
z(c)})}));
return h.promises[Z]};var aJD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(aJD,_.GN);var cAF=function(h,E){return _.FD(h,1,E)},i8F=function(h,E){return _.FD(h,2,E)};var FY=function(h){_.wO.call(this);var E=this;this.options=h;this.a6H=new _.dN;this.cuq=this.a6H.promise;this.rWS=new _.dN;this.fJT=1;this.iQC=new _.dN;this.lo8=[];this.vth=h.vth||function(){};
this.qFz=new btf(clx(h.vCS||{}));odM(this,h.xF,h.swU,h.tVG,h.mma,Object.assign({},IJF,h.akX||{}));this.addOnDisposeCallback(function(){return void Rln(E)})};
_.f(FY,_.wO);FY.prototype.snapshot=function(h){var E=this;return _.a(function(g){switch(g.nextAddress){case 1:if(E.isDisposed())throw Error("Ea");if(E.ew||E.wj6){g.jumpTo(2);break}return g.yield(E.rWS.promise,2);case 2:if(!E.ew){g.jumpTo(4);break}return g.yield(E.ew.snapshot(h),5);case 5:return g.return(g.yieldResult);case 4:throw E.wj6;}})};
var P4H=function(h){var E;return _.a(function(g){if(h.isDisposed())throw Error("Ea");(E=h.z6)!=null&&(E.endTimeMs=0,E.resolver(1));return g.yield(h.iQC.promise,0)})},Rln=function(h){h.wj6=Error("Ga");
h.rWS.resolve();$a$(h.a6H.promise);h.a6H.reject(Error("Ga"));h.qFz.dispose();Promise.all(h.lo8).then(function(){var g;return _.a(function(Z){(g=h.ew)==null||g.dispose();h.ew=void 0;_.SK(Z)})});
h.lo8=[];var E;(E=h.z6)!=null&&(E.endTimeMs=0,E.resolver(1));$a$(h.iQC.promise);h.iQC.reject(Error("Ga"))};
FY.prototype.t97=function(h){var E,g;(E=this.ew)==null||(g=E.t97)==null||g.call(E,h)};
FY.prototype.go7=function(h,E){var g,Z,M;return(M=(g=this.ew)==null?void 0:(Z=g.go7)==null?void 0:Z.call(g,h,E))!=null?M:Promise.resolve()};
var BOB=function(h,E){var g=h.vth;h.vth=function(){g();E()}},U3D=function(h,E){h.isDisposed()||(h.ew=E,h.qFz.update(E.x48()),h.rWS.resolve(),h.a6H.resolve(void 0),h.vth())};
FY.prototype.handleError=function(h){if(!this.isDisposed()){this.wj6=h;this.rWS.resolve();var E,g;(g=(E=this.options).u7d)==null||g.call(E,h)}};
var LxA=function(h,E){E&&(Promise.all(h.lo8).then(function(){return void E.dispose()}),h.lo8=[])},AO=function(h,E){h.fJT=E;
var g,Z;(Z=(g=h.options).x07)==null||Z.call(g,E)},jDM=function(h){h.isDisposed()||(h.iQC.resolve(),h.iQC=new _.dN)},odM=function(h,E,g,Z,M,W){Z=Z===void 0?phD():Z;
M=M===void 0?Promise.resolve(void 0):M;var z,c,I,B,U,L,d,C,q,w,r,v;_.a(function(H){switch(H.nextAddress){case 1:return H.yield(0,3);case 3:c=null;if(!z){H.jumpTo(6);break}AO(h,7);_.CX(H,7);return H.yield(tA(z.snapshot({}),W.y5w,function(){return Promise.resolve("E:CTO")}),9);
case 9:c=H.yieldResult;_.bN(H,6);break;case 7:_.th(H),c="E:UCE";case 6:I=void 0,B=z?W.iHR:W.njE,U=new Bh(B,W.yDw,W.wIE,W.aGE),L=1;case 10:if(!(L<=W.maxAttempts)){H.jumpTo(12);break}if(L===1){H.jumpTo(13);break}AO(h,0);h.z6=new d3k(U.getValue(),W.zwX,W.uaE);return H.yield(h.z6.promise,14);case 14:d=H.yieldResult,h.z6=void 0,d===1?(L=1,U.reset()):Dcl(U);case 13:_.CX(H,15);C=void 0;if(g){C=g;H.jumpTo(17);break}AO(h,5);q=Z.z7T;return H.yield(tA(C4D(E,q,c),W.yCD,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:C=H.yieldResult;case 17:return AO(h,3),H.yield(tA(zlB(Z,C),W.nEa,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return AO(h,8),H.yield(M,20);case 20:return w=new _.yP({challenge:C,vCS:h.options.vCS,eTD:h.options.eTD}),H.yield(tA(w.cuq,W.h2D,function(){return Promise.reject(Error("Ja"))}),21);
case 21:I=w;H.jumpTo(12);break;case 15:r=_.th(H),h.handleError(r),jDM(h);case 11:L++;H.jumpTo(10);break;case 12:if(h.isDisposed()){H.jumpTo(5);break}I&&(g=void 0,LxA(h,z),z=I,U3D(h,I),jDM(h));AO(h,2);h.z6=new d3k(W.gsh,W.zwX,W.uaE);return H.yield(h.z6.promise,22);case 22:h.z6=void 0;if(h.isDisposed()){H.jumpTo(5);break}H.jumpTo(3);break;case 5:(v=z)==null||v.dispose(),_.SK(H)}})};
FY.prototype.x48=function(){return this.qFz.share()};
var IJF={gsh:432E5,zwX:3E5,uaE:10,y5w:1E4,yCD:3E4,nEa:3E4,h2D:6E4,njE:1E3,iHR:6E4,yDw:6E5,wIE:.25,aGE:2,maxAttempts:10},d3k=function(h,E,g){var Z=this;this.endTimeMs=Date.now()+h;this.promise=new Promise(function(W){Z.resolver=W});
var M=function(){var W=Z.endTimeMs-Date.now();W<=g?Z.resolver(0):setTimeout(M,Math.min(W,E))};
M()};var JAD,LX$=(JAD=Math.imul)!=null?JAD:function(h,E){return h*E|0},Sf=[196,
200,224,18],Tc=function(h,E,g){g=g===void 0?[]:g;this.maxItems=h;this.he=E===void 0?0:E;this.hJ=g},elk=function(h){var E=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!E)return new Tc(h);var g=E.split(",");if(g.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Tc(h);E=g.slice(1);E.length===1&&E[0]===""&&(E=[]);g=Number(g[0]);return isNaN(g)||g<0||g>E.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Tc(h)):new Tc(h,g,E)};
Tc.prototype.serialize=function(){return String(this.he)+","+this.hJ.join()};
Tc.prototype.insert=function(h,E){var g=void 0;if(this.hJ[this.he]!==h){var Z=this.hJ.indexOf(h);Z!==-1?(this.hJ.splice(Z,1),Z<this.he&&this.he--,this.hJ.splice(this.he,0,h)):(g=this.hJ[this.he],this.hJ[this.he]=h)}this.he=(this.he+1)%this.maxItems;h=Bf$("iU5q-!O9@$",this.serialize());g&&h&&E(g);return h};
var qtf=function(h,E){this.p9q=E;try{var g=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){g=!1}g&&(this.index=elk(h))},fJF=function(h,E,g,Z,M){var W=h.index?_.kD(h.p9q,function(){return JlW(h.index,ddZ(E),g,Z,M)},"W"):"u";
h.p9q.jrC(W)},NOM=function(h,E,g){var Z=_.G(h.index?_.kD(h.p9q,function(){return ewd(ddZ(E),g)},"R"):["u"]),M=Z.next().value;
Z=Z.next().value;h.p9q.kV7(M);return Z};var tfA={toString:function(h){var E=[],g=0;h-=-2147483648;E[g++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(h%52);for(h=Math.floor(h/52);h>0;)E[g++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(h%62),h=Math.floor(h/62);return E.join("")}};var whF=function(h){h=StH(h);for(var E=2654435769,g=2654435769,Z=314159265,M=h.length,W=M,z=0,c=function(){E-=g;E-=Z;E^=Z>>>13;g-=Z;g-=E;g^=E<<8;Z-=E;Z-=g;Z^=g>>>13;E-=g;E-=Z;E^=Z>>>12;g-=Z;g-=E;g^=E<<16;Z-=E;Z-=g;Z^=g>>>5;E-=g;E-=Z;E^=Z>>>3;g-=Z;g-=E;g^=E<<10;Z-=E;Z-=g;Z^=g>>>15};W>=12;W-=12,z+=12)E+=x3f(h,z),g+=x3f(h,z+4),Z+=x3f(h,z+8),c();
Z+=M;switch(W){case 11:Z+=h[z+10]<<24;case 10:Z+=h[z+9]<<16;case 9:Z+=h[z+8]<<8;case 8:g+=h[z+7]<<24;case 7:g+=h[z+6]<<16;case 6:g+=h[z+5]<<8;case 5:g+=h[z+4];case 4:E+=h[z+3]<<24;case 3:E+=h[z+2]<<16;case 2:E+=h[z+1]<<8;case 1:E+=h[z]}c();return tfA.toString(Z)},StH=function(h){for(var E=[],g=0;g<h.length;g++)E.push(h.charCodeAt(g));
return E},x3f=function(h,E){return h[E]+(h[E+1]<<8)+(h[E+2]<<16)+(h[E+3]<<24)};var b0=function(h){_.wO.call(this);this.hG=h;this.qdS=new _.dN};
_.f(b0,_.wO);var D3l=function(h,E){var g=setTimeout(function(){h.qdS.resolve()},E);
h.addOnDisposeCallback(function(){return void clearTimeout(g)})};
b0.prototype.oCC=function(h,E){var g=this.dY(h);E==null||E(g);return _.kD(this.hG,function(){return _.lJ(g,2)},this.z2r)};
var lJM=function(h,E,g,Z){return _.kD(h.hG,function(){return g?h.oCC(E,Z):h.dY(E,Z)},h.u7j)},rAf=function(h,E,g,Z){b0.call(this,h);
this.szh=E;this.qYh=g;this.u7j="m";this.z2r="x";this.eWa=0;D3l(this,Z)};
_.f(rAf,b0);rAf.prototype.dY=function(h,E){var g=this;this.hG.dV(this.u7j);++this.eWa>=this.qYh&&this.qdS.resolve();var Z=h();h=_.kD(this.hG,function(){return g.szh(Z)},"C");
if(h===void 0)throw new PQ(17,"YNJ:Undefined");if(!(h instanceof Uint8Array))throw new PQ(18,"ODM:Invalid");E==null||E(h);return h};
var m3D=function(h,E,g){b0.call(this,h);this.aFe=E;this.u7j="f";this.z2r="z";D3l(this,g)};
_.f(m3D,b0);m3D.prototype.dY=function(){return this.aFe};
var vdf=function(h,E,g){b0.call(this,h);this.wvD=E;this.u7j="w";this.z2r="z";D3l(this,g)};
_.f(vdf,b0);vdf.prototype.dY=function(){var h=this;return _.kD(this.hG,function(){return _.Qx(h.wvD)},"d")};
vdf.prototype.oCC=function(){return this.wvD};
var H8B=function(h,E){b0.call(this,h);this.error=E;this.u7j="e";this.z2r="y"};
_.f(H8B,b0);var $3l=function(h,E){var g=(E(h.error.message)+":"+E(h.error.stack)).substring(0,2048);E=g.length+1;g=qqa(g);var Z=new Uint8Array(4+g.length);Z.set([42,E&127|128,E>>7,h.error.code]);Z.set(g,4);return Z};
H8B.prototype.dY=function(){if(this.fGv)return this.fGv;this.fGv=$3l(this,function(h){return"_"+whF(h)});
return $3l(this,function(h){return h})};
var KxF=function(h,E,g){b0.call(this,h);this.uRe=E;this.clientState=g;this.u7j="S";this.z2r="q"};
_.f(KxF,b0);KxF.prototype.dY=function(){var h=Math.floor(Date.now()/1E3),E=[Math.random()*255,Math.random()*255],g=E.concat([this.uRe&255,this.clientState],[h>>24&255,h>>16&255,h>>8&255,h&255]);h=new Uint8Array(2+g.length);h[0]=34;h[1]=g.length;h.set(g,2);g=h.subarray(2);for(var Z=E=E.length;Z<g.length;++Z)g[Z]^=g[Z%E];this.hG.pcX(this.clientState);return h};var O8H={zsE:3E4,gwa:2E4},u0=function(h){_.wO.call(this);var E=this;this.zX7=new _.dN;this.ktT=0;this.lN=void 0;this.state=2;this.vm=h.vm;this.xF=h.xF;this.akX=Object.assign({},O8H,h.akX||{});this.iP=h.vm.x48();var g;this.onError=(g=h.onError)!=null?g:function(){};
this.vXB=h.vXB||!1;if(ndH(h)){var Z=this.vm;this.igk=function(){return P4H(Z).catch(function(z){z=E.reportError(new PQ(E.uP?20:32,"TRG:Disposed",z));E.lN=z;var c;(c=E.uP)==null||c.dispose();E.uP=void 0;E.zX7.reject(z)})};
BOB(Z,function(){return void Xhf(E)});
Z.fJT===2&&Xhf(this)}else this.igk=h.oAd,Xhf(this);var M=this.iP.share();M.dV("o");var W=new T2B(M,"o");this.zX7.promise.then(function(){W.done();M.gH();M.dispose()},function(){return void M.dispose()});
this.addOnDisposeCallback(function(){E.uP?(E.uP.dispose(),E.uP=void 0):E.lN?E.iP.gH():(E.lN=E.reportError(new PQ(32,"TNP:Disposed")),E.iP.gH(),E.zX7.reject(E.lN))});
_.jf(this,this.iP)};
_.f(u0,_.wO);u0.prototype.vVJ=function(){return this.zX7.promise};
var YtB=function(h,E){if(!(E instanceof PQ))if(E instanceof _.nA){var g=Error(E.toString());g.stack=E.stack;E=new PQ(11,"EBH:Error",g)}else E=new PQ(12,"BSO:Unknown",E);return h.reportError(E)},Xhf=function(h){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q,w;
return _.a(function(r){switch(r.nextAddress){case 1:E=void 0;h.ktT++;g=new _.dN;h.vm instanceof FY&&h.vm.lo8.push(g.promise);if(!h.vXB){r.jumpTo(2);break}Z=new _.dN;setTimeout(function(){return void Z.resolve()});
return r.yield(Z.promise,2);case 2:return M=h.iP.share(),_.CX(r,4,5),h.state=5,W={},z=[],r.yield(tA(h.vm.snapshot({bS:W,nwe:z}),h.akX.gwa,function(){return Promise.reject(new PQ(15,"MDA:Timeout"))}),7);
case 7:c=r.yieldResult;if(h.isDisposed())throw new PQ(h.uP?20:32,"MDA:Disposed");I=z[0];h.state=6;return r.yield(tA(sDn(h.xF,c),h.akX.zsE,function(){return Promise.reject(new PQ(10,"BWB:Timeout"))}),8);
case 8:B=r.yieldResult;if(h.isDisposed())throw new PQ(h.uP?20:32,"BWB:Disposed");h.state=7;E=_.kD(M,function(){var H=Vfn(h,B,g,I);H.qdS.promise.then(function(){return void h.igk()});
return H},"i");
case 5:_.eK(r);M.dispose();_.fX(r,6);break;case 4:U=_.th(r);(L=E)==null||L.dispose();if(!h.lN){d=YtB(h,U);g.resolve();var v;if(v=h.vm instanceof FY&&h.ktT<2)a:if(U instanceof PQ)v=U.code!==32&&U.code!==20&&U.code!==10;else{if(U instanceof _.nA)switch(U.code){case 2:case 13:case 14:case 4:break;default:v=!1;break a}v=!0}if(v)return C=(1+Math.random()*.25)*(h.uP?6E4:1E3),q=setTimeout(function(){return void h.igk()},C),h.addOnDisposeCallback(function(){return void clearTimeout(q)}),r.return();
h.lN=d}M.logError(h.uP?13:14);h.zX7.reject(h.lN);return r.return();case 6:h.state=8,h.ktT=0,(w=h.uP)==null||w.dispose(),h.uP=E,h.zX7.resolve(),_.SK(r)}})},Vfn=function(h,E,g,Z){var M=e5W(E,2)*1E3;
if(M<=0)throw new PQ(31,"TTM:Invalid");if(_.mj(E,4))return new vdf(h.iP,_.mj(E,4),M);if(!e5W(E,3))return new m3D(h.iP,pYa(_.fW(E,1)),M);if(!Z)throw new PQ(4,"PMD:Undefined");Z=Z(pYa(_.fW(E,1)));if(!(Z instanceof Function))throw new PQ(16,"APF:Failed");h.iXh=Math.floor((Date.now()+M)/1E3);h=new rAf(h.iP,Z,e5W(E,3),M);h.addOnDisposeCallback(function(){return void g.resolve()});
return h};
u0.prototype.dY=function(h){return k8A(this,Object.assign({},h),!1)};
u0.prototype.oCC=function(h){return k8A(this,Object.assign({},h),!0)};
u0.prototype.r0J=function(h){if(h>150)return!1;try{return this.cache=new qtf(h,this.iP),!0}catch(E){return this.reportError(new PQ(22,"GBJ:init",E)),!1}};
u0.prototype.reportError=function(h){this.iP.logError(h.code);this.onError(h);return h};
var yAl=function(h,E){E=E instanceof PQ?E:new PQ(5,"TVD:error",E);return h.reportError(E)},k8A=function(h,E,g){try{if(h.isDisposed())throw new PQ(21,"BNT:disposed");
if(!h.uP&&h.lN)throw h.lN;var Z,M;return(M=(Z=Fxl(h,E,g))!=null?Z:AAf(h,E,g))!=null?M:TOD(h,E,g)}catch(W){if(!E.sH2)throw yAl(h,W);return b8f(h,g,W)}},Fxl=function(h,E,g){var Z;
return(Z=h.uP)==null?void 0:lJM(Z,function(){return uRB(h,E)},g,function(M){var W;
if(h.uP instanceof rAf&&((W=E.fU)==null?0:W.gQa))try{var z;(z=h.cache)==null||fJF(z,uRB(h,E),M,E.fU.alq,h.iXh-120)}catch(c){h.reportError(new PQ(24,"ELX:write",c))}})},AAf=function(h,E,g){var Z;
if((Z=E.fU)!=null&&Z.wMv)try{var M,W=(M=h.cache)==null?void 0:NOM(M,uRB(h,E),E.fU.alq);return W?g?_.kD(h.iP,function(){return _.lJ(W,2)},"a"):W:void 0}catch(z){h.reportError(new PQ(23,"RXO:read",z))}},TOD=function(h,E,g){var Z={stack:[],
error:void 0,hasError:!1};try{if(!E.fj2)throw new PQ(29,"SDF:notready");return lJM(zm$(Z,new KxF(h.iP,0,h.state)),function(){return uRB(h,E)},g)}catch(M){Z.error=M,Z.hasError=!0}finally{aoq(Z)}},b8f=function(h,E,g){var Z={stack:[],
error:void 0,hasError:!1};try{var M=yAl(h,g);return lJM(zm$(Z,new H8B(h.iP,M)),function(){return[]},E)}catch(W){Z.error=W,Z.hasError=!0}finally{aoq(Z)}},uRB=function(h,E){return E.aC8?E.aC8:E.bS?_.kD(h.iP,function(){return E.aC8=qqa(E.bS)},"c"):[]},ndH=function(h){return mf(function(E){if(!ap(E))return!1;
for(var g=_.G(Object.entries(h)),Z=g.next();!Z.done;Z=g.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;if(!(Z in E)){if(M.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!M(E[Z]))return!1}return!0})}({vm:function(h){return mf(function(E){return E instanceof h})}(FY)},"");var QDf=function(){var h=_.Bp();this.JSC$9915_streamzService=h;h.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",oD("cookie_enabled"),oD("cookie_3p_enabled"),_.RD("browser"))};
QDf.prototype.increment=function(h,E,g){this.JSC$9915_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",h,E,g)};
var VE$=function(){var h=_.Bp();this.JSC$9939_streamzService=h;h.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",ID("tick"),oD("from_st_cookie"))};
VE$.prototype.increment=function(h,E){this.JSC$9939_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",h,E)};
var hof=function(){var h=_.Bp();this.JSC$9945_streamzService=h;h.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.RD("status"))};
hof.prototype.increment=function(h){this.JSC$9945_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",h)};
var EZk=function(){var h=_.Bp();this.JSC$9948_streamzService=h;h.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.RD("stage"),oD("is_using_ytd_player"),oD("has_expandable_tiles"))};
EZk.prototype.increment=function(h,E,g){this.JSC$9948_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",h,E,g)};
var gZB=function(){var h=_.Bp();this.JSC$9951_streamzService=h;h.addNewCounter("/client_streamz/youtube/web/response_signature",_.RD("check_status"))};
gZB.prototype.increment=function(h){this.JSC$9951_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/response_signature",h)};
var Zwf=function(){var h=_.Bp();this.JSC$9954_streamzService=h;h.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.RD("sig"),ID("de"))};
Zwf.prototype.increment=function(h,E){this.JSC$9954_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_log",h,E)};
var MAH=function(){var h=_.Bp();this.JSC$9957_streamzService=h;h.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.RD("sig"),ID("de"))};
MAH.prototype.increment=function(h,E){this.JSC$9957_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/e_sig_en",h,E)};
_.WEA=function(){var h=_.Bp();this.JSC$9960_streamzService=h;h.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.RD("action"))};
_.WEA.prototype.increment=function(h){this.JSC$9960_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/web/enforcement_intent",h)};var QP=window;var pmC=(new Date).getTime();_.Kt.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Kt.createSet("action","cite","data","formaction","href","manifest","poster","src");var G9D=function(h){this.servicePromise_=h;h.then((0,_.DJ)(function(){},this),function(){},this)},zoF=function(h,E,g){h.servicePromise_.then(function(Z){var M=Z[E];
if(!M)throw Error("Ka`"+E);return M.apply(Z,g)})},iwf=function(h,E,g){for(var Z=Array(arguments.length-2),M=2;M<arguments.length;M++)Z[M-2]=arguments[M];
M=aal(h,E).then(function(W){return W.apply(null,Z)},function(W){W=Error("La`"+E+"`"+h,{cause:W});
delete cVB[E];return _.$B(W)});
return new G9D(M)},cVB={},aal=function(h,E){var g=cVB[E];
if(g)return g;g=(g=_.yy(E))?_.dC(g):(new _.jM(function(Z,M){var W=(new vF(document)).createElement("SCRIPT");W.async=!0;_.pX(W,_.wU(pcB(h)));W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||Z()};
W.onerror=function(z){M(Error("Ma`"+E+"`"+h,{cause:z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(W)})).then(function(){var Z=_.yy(E);
if(!Z)throw Error("Na`"+E+"`"+h);return Z});
return cVB[E]=g};var oZC={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Rof=function(){var h=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=fVV(function(){return _.a(function(E){if(E.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?E.return(Promise.resolve()):E.yield(IaM(h),2);h.rsaForList.length>
0&&document.addEventListener("click",h.requestAccessForHelpPanel);_.SK(E)})});
this.requestAccessForHelpPanel=function(){if(!(h.rsaForPromises.length>0)){for(var E=_.G(h.rsaForList),g=E.next();!g.done;g=E.next()){g=g.value;try{h.rsaForPromises.push(document.requestStorageAccessFor(g))}catch(Z){}}Promise.all(h.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){h.reset()})}}};
Rof.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var IaM=function(h){var E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:E=_.G(Object.values(oZC)),g=E.next();case 2:if(g.done){W.jumpTo(0);break}Z=g.value;_.CX(W,5);return W.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:Z}),7);case 7:M=W.yieldResult;M.state!=="granted"&&h.rsaForList.push(Z);_.bN(W,3);break;case 5:_.th(W);W.jumpTo(0);break;case 3:g=E.next(),W.jumpTo(2)}})};(new Rof).initialize();var PXD=function(h){this.JSC$9974_loader_=h};
PXD.prototype.startHelp=function(h){zoF(this.JSC$9974_loader_,"startHelp",arguments)};
PXD.prototype.JSC$9976_loadChatSupport=function(h){zoF(this.JSC$9974_loader_,"loadChatSupport",arguments)};
var U6m=function(h,E){E=E||{};h=iwf(B9f,"help.service.Lazy.create",h,{apiKey:E.apiKey||E.apiKey,asxUiUri:E.asxUiUri||E.asxUiUri,environment:E.environment||E.environment,flow:E.flow||E.flow,frdProductData:E.frdProductData||E.frdProductData,frdProductDataSerializedJspb:E.frdProductDataSerializedJspb||E.frdProductDataSerializedJspb,helpCenterPath:E.helpCenterPath||E.helpCenterPath,locale:E.locale||E.locale||"en-US".replace(/-/g,"_"),nonce:E.nonce||E.nonce,productData:E.productData||E.productData,receiverUri:E.receiverUri||
E.receiverUri,renderApiUri:E.renderApiUri||E.renderApiUri,theme:E.theme||E.theme,window:E.window||E.window});return new PXD(h)},B9f=new Xi(xIa,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var LEB=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(LEB,_.GN);var jpn=_.CM(LEB);var d6B=[0,_.ZE,b3,iKq];_.CXC=new function(h,E,g,Z){this.configType=h;this.flagName=g;this.defaultValue=Z;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 eol=function(){this.retriever=_.GF().resolve(JVD)};_.gE={get payments(){return window.payments}};ty$(Node);ty$(Element);var q9l=ty$(HTMLElement);ty$(SVGElement);var fan,N9m,ZY,tAm;fan=function(h){return typeof h.className=="string"?h.className:h.getAttribute&&h.getAttribute("class")||""};
N9m=function(h){return h.classList?h.classList:fan(h).match(/\S+/g)||[]};
_.h2=function(h,E){typeof h.className=="string"?h.className=E:h.setAttribute&&h.setAttribute("class",E)};
_.Ef=function(h,E){return h.classList?h.classList.contains(E):_.nd(N9m(h),E)};
_.GT=function(h,E){if(h.classList)h.classList.add(E);else if(!_.Ef(h,E)){var g=fan(h);_.h2(h,g+(g.length>0?" "+E:E))}};
ZY=function(h,E){if(h.classList)Array.prototype.forEach.call(E,function(M){_.GT(h,M)});
else{var g={};Array.prototype.forEach.call(N9m(h),function(M){g[M]=!0});
Array.prototype.forEach.call(E,function(M){g[M]=!0});
E="";for(var Z in g)E+=E.length>0?" "+Z:Z;_.h2(h,E)}};
_.W$=function(h,E){h.classList?h.classList.remove(E):_.Ef(h,E)&&_.h2(h,Array.prototype.filter.call(N9m(h),function(g){return g!=E}).join(" "))};
tAm=function(h,E){h.classList?Array.prototype.forEach.call(E,function(g){_.W$(h,g)}):_.h2(h,Array.prototype.filter.call(N9m(h),function(g){return!_.nd(E,g)}).join(" "))};var S9f=function(h){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=h.document},D6l=function(h,E){x6D(h);
var g=document.createElement("div"),Z;(Z=E.parentNode)==null||Z.insertBefore(g,E);g.tabIndex=0;g.id="fc-focus-trap-pre-div";g=document.createElement("div");var M;(M=E.parentNode)==null||M.insertBefore(g,E.nextSibling);g.tabIndex=0;g.id="fc-focus-trap-post-div";var W=wmB(h,E),z=wmB(h,E,!0);W&&z&&(h.focusChangeHandler=function(){var c=h.document.activeElement;if(c)if(_.y_(E,c))h.previouslyFocusedElement=c;else if(c===h.document.activeElement)switch(h.previouslyFocusedElement){case W:z.focus();h.previouslyFocusedElement=
z;break;default:W.focus(),h.previouslyFocusedElement=W}},h.document.addEventListener("focus",h.focusChangeHandler,!0),h.document.addEventListener("focusin",h.focusChangeHandler))},x6D=function(h){h.focusChangeHandler&&(document.removeEventListener("focus",h.focusChangeHandler,!0),document.removeEventListener("focusin",h.focusChangeHandler),h.focusChangeHandler=null);
var E;(E=document.getElementById("fc-focus-trap-pre-div"))==null||E.remove();var g;(g=document.getElementById("fc-focus-trap-post-div"))==null||g.remove()},laf=function(h,E,g,Z,M){g=g===void 0?!0:g;
var W;M=(W=M===void 0?null:M)!=null?W:wmB(h,E,Z===void 0?!1:Z);M!==null&&(M.focus(),g&&D6l(h,E))};
S9f.prototype.disableButton=function(h,E){E=E===void 0?null:E;h.disabled=!0;E&&_.GT(h,E)};
var wmB=function(h,E,g){g=g===void 0?!1:g;if(AWz(E)&&!g)return E;var Z=g?[].slice.call(E.children,0).reverse():E.children;Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())if(M=M.value,q9l(M)&&(M=wmB(h,M,g)))return M;return AWz(E)&&g?E:null};var rVD=function(h){this.originalBodyOverflow="";this.JSC$10001_domHelper=w2(h)};
rVD.prototype.enableScrolling=function(){this.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow=this.originalBodyOverflow};_.aV(_.l4,_.wO);_.p=_.l4.prototype;_.p.JSC$10004_id_=0;_.p.disposeInternal=function(){_.l4.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10002_listener_;delete this.handler_};
_.p.start=function(h){this.stop();this.JSC$10004_id_=Oj(this.callback_,h!==void 0?h:this.JSC$10002_interval_)};
_.p.stop=function(){this.isActive()&&_.MN.clearTimeout(this.JSC$10004_id_);this.JSC$10004_id_=0};
_.p.fire=function(){this.stop();this.JSC$10004_doAction_()};
_.p.isActive=function(){return this.JSC$10004_id_!=0};
_.p.JSC$10004_doAction_=function(){this.JSC$10004_id_=0;this.JSC$10002_listener_&&this.JSC$10002_listener_.call(this.handler_)};_.Pl=function(h){_.wO.call(this);this.handler_=h;this.JSC$10005_keys_={}};
_.aV(_.Pl,_.wO);var m6D=[];_.Pl.prototype.listen=function(h,E,g,Z){Array.isArray(E)||(E&&(m6D[0]=E.toString()),E=m6D);for(var M=0;M<E.length;M++){var W=_.vK(h,E[M],g||this.handleEvent,Z||!1,this.handler_||this);if(!W)break;this.JSC$10005_keys_[W.key]=W}return this};
_.Pl.prototype.listenOnce=function(h,E,g,Z){return vZH(this,h,E,g,Z)};
var vZH=function(h,E,g,Z,M,W){if(Array.isArray(g))for(var z=0;z<g.length;z++)vZH(h,E,g[z],Z,M,W);else{E=D6(E,g,Z||h.handleEvent,M,W||h.handler_||h);if(!E)return h;h.JSC$10005_keys_[E.key]=E}return h};
_.Pl.prototype.unlisten=function(h,E,g,Z,M){if(Array.isArray(E))for(var W=0;W<E.length;W++)this.unlisten(h,E[W],g,Z,M);else if(h=W8B(h,E,g||this.handleEvent,_.yx(Z)?!!Z.capture:!!Z,M||this.handler_||this))ls(h),delete this.JSC$10005_keys_[h.key];return this};
_.Pl.prototype.removeAll=function(){_.Kt.forEach(this.JSC$10005_keys_,function(h,E){this.JSC$10005_keys_.hasOwnProperty(E)&&ls(h)},this);
this.JSC$10005_keys_={}};
_.Pl.prototype.disposeInternal=function(){_.Pl.superClass_.disposeInternal.call(this);this.removeAll()};
_.Pl.prototype.handleEvent=function(){throw Error("Oa");};var M$=function(){_.wO.call(this);this.services_={}};
_.aV(M$,_.wO);M$.prototype.connect=function(h){h&&h()};
M$.prototype.isConnected=function(){return!0};
M$.prototype.registerService=function(h,E,g){this.services_[h]={callback:E,objectPayload:!!g}};
M$.prototype.getService=function(h,E){var g=this.services_[h];return g?g:this.defaultService_?{callback:_.Sj(this.defaultService_,h),objectPayload:_.yx(E)}:null};
var Hwf=function(h,E){if(E&&typeof h==="string")try{return JSON.parse(h)}catch(g){return null}else if(!E&&typeof h!=="string")return(0,_.XY)(h);return h};
M$.prototype.disposeInternal=function(){M$.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 W5=function(h,E){this.sequence_=[];this.onCancelFunction_=h;this.defaultScope_=E||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};
W5.prototype.cancel=function(h){if(this.fired_)this.result_ instanceof W5&&this.result_.cancel();else{if(this.parent_){var E=this.parent_;delete this.parent_;h?E.cancel(h):(E.branches_--,E.branches_<=0&&E.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new pr(this))}};
W5.prototype.continue_=function(h,E){this.blocked_=!1;$6C(this,h,E)};
var $6C=function(h,E,g){h.fired_=!0;h.result_=g;h.hadError_=!E;KEC(h)},nZC=function(h){if(h.fired_){if(!h.silentlyCanceled_)throw new OwB(h);
h.silentlyCanceled_=!1}};
W5.prototype.callback=function(h){nZC(this);$6C(this,!0,h)};
W5.prototype.errback=function(h){nZC(this);$6C(this,!1,h)};
var XmD=function(h,E,g){G7(h,E,null,g)};
W5.prototype.finally=function(h){var E=this;return Y9f(new Promise(function(g,Z){G7(E,function(M){h();g(M)},function(M){h();
Z(M)})}))};
var G7=function(h,E,g,Z){var M=h.fired_;M||(E===g?E=g=vQ(E):(E=vQ(E),g=vQ(g)));h.sequence_.push([E,g,Z]);M&&KEC(h)};
W5.prototype.then=function(h,E,g){var Z,M,W=new _.jM(function(z,c){M=z;Z=c});
G7(this,M,function(z){z instanceof pr?W.cancel():Z(z);return spF},this);
return W.then(h,E,g)};
IbD(W5);var VAf=function(h,E){E instanceof W5?XmD(h,(0,_.DJ)(E.branch,E)):XmD(h,function(){return E})};
W5.prototype.branch=function(h){var E=new W5;G7(this,E.callback,E.errback,E);h&&(E.parent_=this,this.branches_++);return E};
W5.prototype.isError=function(h){return h instanceof Error};
var k9n=function(h){return Qa(h.sequence_,function(E){return typeof E[1]==="function"})},spF={},KEC=function(h){if(h.unhandledErrorId_&&h.fired_&&k9n(h)){var E=h.unhandledErrorId_,g=yVD[E];
g&&(_.MN.clearTimeout(g.JSC$10022_id_),delete yVD[E]);h.unhandledErrorId_=0}h.parent_&&(h.parent_.branches_--,delete h.parent_);E=h.result_;for(var Z=g=!1;h.sequence_.length&&!h.blocked_;){var M=h.sequence_.shift(),W=M[0],z=M[1];M=M[2];if(W=h.hadError_?z:W)try{var c=W.call(M||h.defaultScope_,E);c===spF&&(c=void 0);c!==void 0&&(h.hadError_=h.hadError_&&(c==E||h.isError(c)),h.result_=E=c);if(RuD(E)||typeof _.MN.Promise==="function"&&E instanceof _.MN.Promise)Z=!0,h.blocked_=!0}catch(I){E=I,h.hadError_=
!0,k9n(h)||(g=!0)}}h.result_=E;Z&&(c=(0,_.DJ)(h.continue_,h,!0),Z=(0,_.DJ)(h.continue_,h,!1),E instanceof W5?(G7(E,c,Z),E.blocking_=!0):E.then(c,Z));g&&(E=new FEM(E),yVD[E.JSC$10022_id_]=E,h.unhandledErrorId_=E.JSC$10022_id_)},Y9f=function(h){var E=new W5;
h.then(function(g){E.callback(g)},function(g){E.errback(g)});
return E},OwB=function(){_.g$.call(this)};
_.aV(OwB,_.g$);OwB.prototype.message="Deferred has already fired";OwB.prototype.name="AlreadyCalledError";var pr=function(){_.g$.call(this)};
_.aV(pr,_.g$);pr.prototype.message="Deferred was canceled";pr.prototype.name="CanceledError";var FEM=function(h){this.JSC$10022_id_=_.MN.setTimeout((0,_.DJ)(this.throwError,this),0);this.JSC$10022_error_=h};
FEM.prototype.throwError=function(){delete yVD[this.JSC$10022_id_];throw this.JSC$10022_error_;};
var yVD={};var AVf={1:"NativeMessagingTransport"},T9D=["pu","lru","pru","lpu","ppu"],uhC=function(){for(var h=10,E=bwm,g=E.length,Z="";h-- >0;)Z+=E.charAt(Math.floor(Math.random()*g));return Z},bwm="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var z7=function(h){_.wO.call(this);this.JSC$10025_domHelper_=h||w2()};
_.aV(z7,_.wO);z7.prototype.transportType=0;z7.prototype.getWindow=function(){return this.JSC$10025_domHelper_.getWindow()};
z7.prototype.getName=function(){return AVf[String(this.transportType)]||""};var ab=function(h,E,g,Z,M){z7.call(this,g);this.JSC$10028_channel_=h;this.protocolVersion_=M||2;this.peerHostname_=E||"*";this.JSC$10028_eventHandler_=new _.Pl(this);this.maybeAttemptToConnectTimer_=new _.R5(100,this.getWindow());this.oneSidedHandshake_=!!Z;this.setupAckReceived_=new W5;this.setupAckSent_=new W5;this.JSC$10028_connected_=new W5;this.endpointId_=uhC();this.peerEndpointId_=null;this.oneSidedHandshake_?QpF(this.JSC$10028_channel_)==1?VAf(this.JSC$10028_connected_,this.setupAckReceived_):
VAf(this.JSC$10028_connected_,this.setupAckSent_):(VAf(this.JSC$10028_connected_,this.setupAckReceived_),this.protocolVersion_==2&&VAf(this.JSC$10028_connected_,this.setupAckSent_));XmD(this.JSC$10028_connected_,this.notifyConnected_,this);this.JSC$10028_connected_.callback(!0);this.JSC$10028_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.aV(ab,z7);ab.prototype.peerProtocolVersion_=null;ab.prototype.initialized_=!1;ab.prototype.transportType=1;var hJD={};ab.prototype.sendTimerId_=0;
var ZFD=function(h){var E=h.event_.data;if(typeof E!=="string")return!1;var g=E.indexOf("|"),Z=E.indexOf(":");if(g==-1||Z==-1)return!1;var M=E.substring(0,g);g=E.substring(g+1,Z);E=E.substring(Z+1);if(Z=c5[M])return Z.xpcDeliver(g,E,h.event_.origin),!0;Z=E3D(E)[0];for(var W in c5){var z=c5[W];if(QpF(z)==1&&!z.isConnected()&&g=="tp"&&(Z=="SETUP"||Z=="SETUP_NTPV2")&&g3F(z,h.event_.origin))return delete c5[z.name],z.name=M,c5[M]=z,z.xpcDeliver(g,E),!0}return!1},MXf=function(h){h.protocolVersion_!=2||
h.peerProtocolVersion_!=null&&h.peerProtocolVersion_!=2||h.send("tp","SETUP_NTPV2,"+h.endpointId_);
h.peerProtocolVersion_!=null&&h.peerProtocolVersion_!=1||h.send("tp","SETUP")},W1n=function(h,E){if(h.protocolVersion_!=2||h.peerProtocolVersion_!=null&&h.peerProtocolVersion_!=2||E!=2){if(h.peerProtocolVersion_!=null&&h.peerProtocolVersion_!=1||E!=1)return;
h.send("tp","SETUP_ACK")}else h.send("tp","SETUP_ACK_NTPV2");h.setupAckSent_.fired_||h.setupAckSent_.callback(!0)},pJf=function(h,E){E>h.peerProtocolVersion_&&(h.peerProtocolVersion_=E);
h.peerProtocolVersion_==1&&(h.setupAckSent_.fired_||h.oneSidedHandshake_||h.setupAckSent_.callback(!0),h.peerEndpointId_=null)};
_.p=ab.prototype;_.p.connect=function(){var h=this.getWindow(),E=_.AM(h),g=hJD[E];typeof g!=="number"&&(g=0);g==0&&_.vK(h.postMessage?h:h.document,"message",ZFD,!1,ab);hJD[E]=g+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.p.maybeAttemptToConnect_=function(){var h=QpF(this.JSC$10028_channel_)==0;this.oneSidedHandshake_&&h||this.JSC$10028_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),MXf(this))};
_.p.send=function(h,E){var g=this.JSC$10028_channel_.peerWindowObject_;g&&(this.send=function(Z,M){var W=this,z=this.JSC$10028_channel_.name;this.sendTimerId_=Oj(function(){W.sendTimerId_=0;try{var c=g.postMessage?g:g.document;c.postMessage&&c.postMessage(z+"|"+Z+":"+M,W.peerHostname_)}catch(I){}},0)},this.send(h,E))};
_.p.notifyConnected_=function(){var h=this.JSC$10028_channel_,E=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;h.isConnected()||h.connectionDelay_&&h.connectionDelay_.isActive()||(h.state_=2,_.p8(h.connectionDelay_),E!==void 0?(h.connectionDelay_=new _.l4(h.connectCb_,E),h.connectionDelay_.start()):(h.connectionDelay_=null,h.connectCb_()))};
_.p.disposeInternal=function(){if(this.initialized_){var h=this.getWindow(),E=_.AM(h),g=hJD[E];hJD[E]=g-1;g==1&&_.r6(h.postMessage?h:h.document,"message",ZFD,!1,ab)}this.sendTimerId_&&(_.MN.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.p8(this.JSC$10028_eventHandler_);delete this.JSC$10028_eventHandler_;_.p8(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10028_connected_.cancel();delete this.JSC$10028_connected_;delete this.send;ab.superClass_.disposeInternal.call(this)};
var E3D=function(h){h=h.split(",");h[1]=h[1]||null;return h};var zJf;_.iG=function(h){if(h.getValues&&typeof h.getValues=="function")return h.getValues();if(typeof Map!=="undefined"&&h instanceof Map||typeof Set!=="undefined"&&h instanceof Set)return Array.from(h.values());if(typeof h==="string")return h.split("");if(_.s4(h)){for(var E=[],g=h.length,Z=0;Z<g;Z++)E.push(h[Z]);return E}return _.Kt.getValues(h)};
_.GtA=function(h){if(h.getKeys&&typeof h.getKeys=="function")return h.getKeys();if(!h.getValues||typeof h.getValues!="function"){if(typeof Map!=="undefined"&&h instanceof Map)return Array.from(h.keys());if(!(typeof Set!=="undefined"&&h instanceof Set)){if(_.s4(h)||typeof h==="string"){var E=[];h=h.length;for(var g=0;g<h;g++)E.push(g);return E}return _.Kt.getKeys(h)}}};
zJf=function(h,E,g){if(h.forEach&&typeof h.forEach=="function")h.forEach(E,g);else if(_.s4(h)||typeof h==="string")Array.prototype.forEach.call(h,E,g);else for(var Z=_.GtA(h),M=_.iG(h),W=M.length,z=0;z<W;z++)E.call(g,M[z],Z&&Z[z],h)};var ASO,Lr,dG,PIm,aGl,iFF,cxH,RJm,o3f;
_.WX=function(h,E){this.JSC$10033_domain_=this.userInfo_=this.scheme_="";this.JSC$10033_port_=null;this.fragment_=this.JSC$10033_path_="";this.JSC$10033_ignoreCase_=!1;var g;h instanceof _.WX?(this.JSC$10033_ignoreCase_=E!==void 0?E:h.JSC$10033_ignoreCase_,_.ob(this,h.scheme_),this.userInfo_=h.userInfo_,_.Ib(this,h.JSC$10033_domain_),_.Rb(this,h.JSC$10033_port_),_.P5(this,h.getPath()),_.B5(this,h.JSC$10033_queryData_.clone()),_.Uf(this,h.fragment_)):h&&(g=_.Eq(String(h)))?(this.JSC$10033_ignoreCase_=
!!E,_.ob(this,g[1]||"",!0),this.userInfo_=Lr(g[2]||""),_.Ib(this,g[3]||"",!0),_.Rb(this,g[4]),_.P5(this,g[5]||"",!0),_.B5(this,g[6]||"",!0),_.Uf(this,g[7]||"",!0)):(this.JSC$10033_ignoreCase_=!!E,this.JSC$10033_queryData_=new _.j_(null,this.JSC$10033_ignoreCase_))};
_.WX.prototype.toString=function(){var h=[],E=this.scheme_;E&&h.push(dG(E,aGl,!0),":");var g=this.JSC$10033_domain_;if(g||E=="file")h.push("//"),(E=this.userInfo_)&&h.push(dG(E,aGl,!0),"@"),h.push(_.Ax(g).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),g=this.JSC$10033_port_,g!=null&&h.push(":",String(g));if(g=this.getPath())this.JSC$10033_domain_&&g.charAt(0)!="/"&&h.push("/"),h.push(dG(g,g.charAt(0)=="/"?cxH:iFF,!0));(g=this.JSC$10033_queryData_.toString())&&h.push("?",g);(g=this.fragment_)&&h.push("#",
dG(g,o3f));return h.join("")};
_.WX.prototype.resolve=function(h){var E=this.clone(),g=!!h.scheme_;g?_.ob(E,h.scheme_):g=!!h.userInfo_;g?E.userInfo_=h.userInfo_:g=!!h.JSC$10033_domain_;g?_.Ib(E,h.JSC$10033_domain_):g=h.JSC$10033_port_!=null;var Z=h.getPath();if(g)_.Rb(E,h.JSC$10033_port_);else if(g=!!h.JSC$10033_path_){if(Z.charAt(0)!="/")if(this.JSC$10033_domain_&&!this.JSC$10033_path_)Z="/"+Z;else{var M=E.getPath().lastIndexOf("/");M!=-1&&(Z=E.getPath().slice(0,M+1)+Z)}M=Z;if(M==".."||M==".")Z="";else if(_.oW(M,"./")||_.oW(M,
"/.")){Z=_.Gu(M,"/");M=M.split("/");for(var W=[],z=0;z<M.length;){var c=M[z++];c=="."?Z&&z==M.length&&W.push(""):c==".."?((W.length>1||W.length==1&&W[0]!="")&&W.pop(),Z&&z==M.length&&W.push("")):(W.push(c),Z=!0)}Z=W.join("/")}else Z=M}g?_.P5(E,Z):g=h.JSC$10033_queryData_.toString()!=="";g?_.B5(E,h.JSC$10033_queryData_.clone()):g=!!h.fragment_;g&&_.Uf(E,h.fragment_);return E};
_.WX.prototype.clone=function(){return new _.WX(this)};
_.ob=function(h,E,g){h.scheme_=g?Lr(E,!0):E;h.scheme_&&(h.scheme_=h.scheme_.replace(/:$/,""));return h};
_.Ib=function(h,E,g){h.JSC$10033_domain_=g?Lr(E,!0):E;return h};
_.Rb=function(h,E){if(E){E=Number(E);if(isNaN(E)||E<0)throw Error("Pa`"+E);h.JSC$10033_port_=E}else h.JSC$10033_port_=null;return h};
_.WX.prototype.getPath=function(){return this.JSC$10033_path_};
_.P5=function(h,E,g){h.JSC$10033_path_=g?Lr(E,!0):E;return h};
_.B5=function(h,E,g){E instanceof _.j_?(h.JSC$10033_queryData_=E,IGD(h.JSC$10033_queryData_,h.JSC$10033_ignoreCase_)):(g||(E=dG(E,RJm)),h.JSC$10033_queryData_=new _.j_(E,h.JSC$10033_ignoreCase_));return h};
_.u4=function(h,E,g){h.JSC$10033_queryData_.set(E,g);return h};
_.b4=function(h,E){return h.JSC$10033_queryData_.get(E)};
_.Uf=function(h,E,g){h.fragment_=g?Lr(E):E;return h};
_.Cr=function(h){_.u4(h,"zx",AA());return h};
_.T8=function(h,E){return h instanceof _.WX?h.clone():new _.WX(h,E)};
ASO=function(h,E){h instanceof _.WX||(h=_.T8(h));E instanceof _.WX||(E=_.T8(E));return h.resolve(E)};
Lr=function(h,E){return h?E?decodeURI(h.replace(/%25/g,"%2525")):decodeURIComponent(h):""};
dG=function(h,E,g){return typeof h==="string"?(h=encodeURI(h).replace(E,PIm),g&&(h=h.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h):null};
PIm=function(h){h=h.charCodeAt(0);return"%"+(h>>4&15).toString(16)+(h&15).toString(16)};
aGl=/[#\/\?@]/g;iFF=/[#\?:]/g;cxH=/[#\?]/g;RJm=/[#\?@]/g;o3f=/#/g;_.j_=function(h,E){this.count_=this.keyMap_=null;this.encodedQuery_=h||null;this.JSC$10034_ignoreCase_=!!E};
_.J2=function(h){h.keyMap_||(h.keyMap_=new Map,h.count_=0,h.encodedQuery_&&ZMk(h.encodedQuery_,function(E,g){h.add(Wx(E),g)}))};
_.p=_.j_.prototype;_.p.getCount=function(){_.J2(this);return this.count_};
_.p.add=function(h,E){_.J2(this);this.encodedQuery_=null;h=e_(this,h);var g=this.keyMap_.get(h);g||this.keyMap_.set(h,g=[]);g.push(E);this.count_+=1;return this};
_.p.remove=function(h){_.J2(this);h=e_(this,h);return this.keyMap_.has(h)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(h).length,this.keyMap_.delete(h)):!1};
_.p.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.p.isEmpty=function(){_.J2(this);return this.count_==0};
_.p.containsKey=function(h){_.J2(this);h=e_(this,h);return this.keyMap_.has(h)};
_.p.containsValue=function(h){var E=this.getValues();return _.nd(E,h)};
_.p.forEach=function(h,E){_.J2(this);this.keyMap_.forEach(function(g,Z){g.forEach(function(M){h.call(E,M,Z,this)},this)},this)};
_.p.getKeys=function(){_.J2(this);for(var h=Array.from(this.keyMap_.values()),E=Array.from(this.keyMap_.keys()),g=[],Z=0;Z<E.length;Z++)for(var M=h[Z],W=0;W<M.length;W++)g.push(E[Z]);return g};
_.p.getValues=function(h){_.J2(this);var E=[];if(typeof h==="string")this.containsKey(h)&&(E=E.concat(this.keyMap_.get(e_(this,h))));else{h=Array.from(this.keyMap_.values());for(var g=0;g<h.length;g++)E=E.concat(h[g])}return E};
_.p.set=function(h,E){_.J2(this);this.encodedQuery_=null;h=e_(this,h);this.containsKey(h)&&(this.count_-=this.keyMap_.get(h).length);this.keyMap_.set(h,[E]);this.count_+=1;return this};
_.p.get=function(h,E){if(!h)return E;h=this.getValues(h);return h.length>0?String(h[0]):E};
_.BXD=function(h,E,g){h.remove(E);g.length>0&&(h.encodedQuery_=null,h.keyMap_.set(e_(h,E),_.Y$(g)),h.count_+=g.length)};
_.j_.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var h=[],E=Array.from(this.keyMap_.keys()),g=0;g<E.length;g++){var Z=E[g],M=_.Ax(Z);Z=this.getValues(Z);for(var W=0;W<Z.length;W++){var z=M;Z[W]!==""&&(z+="="+_.Ax(Z[W]));h.push(z)}}return this.encodedQuery_=h.join("&")};
_.j_.prototype.clone=function(){var h=new _.j_;h.encodedQuery_=this.encodedQuery_;this.keyMap_&&(h.keyMap_=new Map(this.keyMap_),h.count_=this.count_);return h};
var e_=function(h,E){E=String(E);h.JSC$10034_ignoreCase_&&(E=E.toLowerCase());return E},IGD=function(h,E){E&&!h.JSC$10034_ignoreCase_&&(_.J2(h),h.encodedQuery_=null,h.keyMap_.forEach(function(g,Z){var M=Z.toLowerCase();
Z!=M&&(this.remove(Z),_.BXD(this,M,g))},h));
h.JSC$10034_ignoreCase_=E};
_.j_.prototype.extend=function(h){for(var E=0;E<arguments.length;E++)zJf(arguments[E],function(g,Z){this.add(Z,g)},this)};var q$=function(h,E){M$.call(this);for(var g=0,Z;Z=T9D[g];g++)if(Z in h&&!/^https?:\/\//.test(h[Z]))throw Error("Ra`"+h[Z]+"`"+Z);this.cfg_=h;this.name=this.cfg_.cn||uhC();this.JSC$10029_domHelper_=E||w2();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Pl(this);h.lpu=h.lpu||Ern(this.JSC$10029_domHelper_.getWindow().location.href)+"/robots.txt";h.ppu=h.ppu||Ern(h.pu||"")+"/robots.txt";c5[this.name]=this;W8B(window,"unload",UaC)||D6(window,"unload",UaC)};
_.aV(q$,M$);var L1f=RegExp("^%*tp$"),jon=RegExp("^%+tp$");_.p=q$.prototype;_.p.connectionDelay_=null;_.p.peerWindowDeferred_=null;_.p.transport_=null;_.p.state_=1;_.p.isConnected=function(){return this.state_==2};
_.p.peerWindowObject_=null;_.p.iframeElement_=null;_.p.connect=function(h){this.connectCb_=h||_.wk;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?XmD(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.p.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10029_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var h=this.iframeElement_.contentWindow;h||(h=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=h}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");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$10029_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new ab(this,this.cfg_.ph,this.JSC$10029_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.p.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.p8(this.transport_);this.connectCb_=this.transport_=null;_.p8(this.connectionDelay_);this.connectionDelay_=null};
_.p.send=function(h,E){if(this.isConnected()){try{var g=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(M){g=!1}if(g){_.yx(E)&&(E=(0,_.XY)(E));g=this.transport_;var Z=g.send;L1f.test(h)&&(h="%"+h);h=h.replace(/[%:|]/g,encodeURIComponent);Z.call(g,h,E)}else this.close()}};
_.p.xpcDeliver=function(h,E,g){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.DJ)(this.xpcDeliver,this,h,E,g));else if(g3F(this,g)&&!this.isDisposed()&&this.state_!=3)if(h&&h!="tp")this.isConnected()&&(h=h.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),h=jon.test(h)?h.substring(1):h,h=this.getService(h,E))&&(E=Hwf(E,h.objectPayload),E!=null&&h.callback(E));else switch(h=this.transport_,g=E3D(E),E=g[1],g[0]){case "SETUP_ACK":pJf(h,1);h.setupAckReceived_.fired_||h.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":h.protocolVersion_==2&&(pJf(h,2),h.setupAckReceived_.fired_||h.setupAckReceived_.callback(!0));break;case "SETUP":pJf(h,1);W1n(h,1);break;case "SETUP_NTPV2":h.protocolVersion_==2&&(g=h.peerProtocolVersion_,pJf(h,2),W1n(h,2),g!=1&&h.peerEndpointId_==null||h.peerEndpointId_==E||MXf(h),h.peerEndpointId_=E)}};
var QpF=function(h){var E=h.cfg_.role;return typeof E==="number"?E:window.parent==h.peerWindowObject_?1:0},g3F=function(h,E){var g=h.cfg_.ph;
return _.ca(E==null?"":String(E))||_.ca(g==null?"":String(g))||E==h.cfg_.ph};
q$.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete c5[this.name];_.p8(this.peerLoadHandler_);delete this.peerLoadHandler_;q$.superClass_.disposeInternal.call(this)};
var UaC=function(){for(var h in c5)_.p8(c5[h])},c5={};var CIM=function(h,E){this.JSC$10043_win=h;this.allowAdsHttpEndpoint=E;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10043_domHelper=w2(h);this.scrollManager=new rVD(h);this.accessibilityManager=new S9f(h);daD(this)},daD=function(h){var E=function(){h.allowAdsPopup&&h.allowAdsPopup.style.setProperty("display","none","important");
h.wallElement.style.setProperty("display","","important");x6D(h.accessibilityManager);laf(h.accessibilityManager,h.wallElement.querySelector(".fc-dialog-container"),!1,!1,h.wallElement.querySelector(".fc-button-whitelist"));h.scrollManager.enableScrolling()};
h.allowAdsPopup=h.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-root"});h.allowAdsPopup.style.setProperty("display","none","important");h.JSC$10043_domHelper.appendChild(h.JSC$10043_domHelper.JSC$9327_document_.body,h.allowAdsPopup);var g=h.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-dialog-overlay"});h.JSC$10043_domHelper.appendChild(h.allowAdsPopup,g);var Z=h.JSC$10043_domHelper.JSC$9329_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:E});h.JSC$10043_domHelper.appendChild(h.allowAdsPopup,
Z);g=h.JSC$10043_domHelper.JSC$9329_createDom("IFRAME");g.className="fc-whitelist-dialog";g.frameBorder="0";g.id="fc-whitelist-iframe";g.tabIndex="0";_.hh(g,h.allowAdsHttpEndpoint);h.JSC$10043_domHelper.appendChild(Z,g);Z={};Z.pu=_.lx(h.allowAdsHttpEndpoint).toString();Z.tp=1;Z.cn="fc-whitelist-channel";Z.ifrid=g.id;Z.osh=!0;h.allowAdsCrossPageChannel=new q$(Z);h.allowAdsCrossPageChannel.registerService("close",E);h.allowAdsCrossPageChannel.registerService("refresh",function(){h.JSC$10043_win.location.reload()});
h.allowAdsCrossPageChannel.registerService("resize",function(M){if(M){var W=h.allowAdsPopup.querySelector(".fc-whitelist-dialog");M.width&&W.style.setProperty("width",M.width,"important");M.height&&W.style.setProperty("height",M.height,"important")}},!0);
h.allowAdsCrossPageChannel.connect()};
CIM.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10043_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var fr=window,N$=document,Jxf=fr.location,eJC=function(){},qWF=/\[native code\]/,t2=function(h,E,g){return h[E]=h[E]||g},fGf=function(h){h=h.sort();
for(var E=[],g=void 0,Z=0;Z<h.length;Z++){var M=h[Z];M!=g&&E.push(M);g=M}return E},S_=function(){var h;
if((h=Object.create)&&qWF.test(h))h=h(null);else{h={};for(var E in h)h[E]=void 0}return h},xs=t2(fr,"gapi",{});var DY={};DY=t2(fr,"___jsl",S_());t2(DY,"I",0);t2(DY,"hel",10);var NXC=function(){var h=Jxf.href;if(DY.dpo)var E=DY.h;else{E=DY.h;var g=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),Z=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(h=h&&(g.exec(h)||Z.exec(h)))try{E=decodeURIComponent(h[2])}catch(M){}}return E},tXF=function(h){var E=t2(DY,"PQ",[]);
DY.PQ=[];var g=E.length;if(g===0)h();else for(var Z=0,M=function(){++Z===g&&h()},W=0;W<g;W++)E[W](M)},SWC=function(h){return t2(t2(DY,"H",S_()),h,S_())};var lG=function(h){this.JSC$10045_obj_=h};
lG.prototype.value=function(){return this.JSC$10045_obj_};
lG.prototype.getWidth=function(){return this.JSC$10045_obj_.width};
lG.prototype.getHeight=function(){return this.JSC$10045_obj_.height};
lG.prototype.getStyle=function(){return this.JSC$10045_obj_.style};var xan=function(h){this.JSC$10048_obj_=h||{}};
_.p=xan.prototype;_.p.value=function(){return this.JSC$10048_obj_};
_.p.setUrl=function(h){this.JSC$10048_obj_.url=h;return this};
_.p.getUrl=function(){return this.JSC$10048_obj_.url};
_.p.getStyle=function(){return this.JSC$10048_obj_.style};
_.p.getId=function(){return this.JSC$10048_obj_.id};
_.p.getContext=function(){return this.JSC$10048_obj_.context};
var wJl=function(h){h.JSC$10048_obj_.attributes=h.JSC$10048_obj_.attributes||{};return new lG(h.JSC$10048_obj_.attributes)};var DaB=function(){xan.apply(this,arguments)};
_.f(DaB,xan);var lGD=t2(DY,"perf",S_());t2(lGD,"g",S_());var rxM=t2(lGD,"i",S_());t2(lGD,"r",[]);S_();S_();var v3n=function(h,E,g){E&&E.length>0&&(E=maF(E),g&&g.length>0&&(E+="___"+maF(g)),E.length>28&&(E=E.substr(0,28)+(E.length-28)),g=E,E=t2(rxM,"_p",S_()),t2(E,g,S_())[h]=(new Date).getTime(),E=lGD.r,typeof E==="function"?E(h,"_p",g):E.push([h,"_p",g]))},maF=function(h){return h.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var HFM=S_(),$aB=[],rG=function(h){throw Error("Ua`"+h);};
$aB.push(["jsl",function(h){for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var g=h[E];typeof g=="object"?DY[E]=t2(DY,E,[]).concat(g):t2(DY,E,g)}if(E=h.u)h=t2(DY,"us",[]),h.push(E),(E=/^https:(.*)$/.exec(E))&&h.push("http:"+E[1])}]);
var K1F=/^(\/[a-zA-Z0-9_\-]+)+$/,OFm=[/\/amp\//,/\/amp$/,/^\/amp$/],n3M=/^[a-zA-Z0-9\-_\.,!]+$/,XJn=/^gapi\.loaded_[0-9]+$/,YWm=/^[a-zA-Z0-9,._-]+$/,yxC=function(h,E,g,Z,M){var W=h.split(";"),z=W.shift(),c=HFM[z],I=null;c?I=c(W,E,g,Z):rG("no hint processor for: "+z);I||rG("failed to generate load url");E=I;g=E.match(sof);(Z=E.match(VXM))&&Z.length===1&&ktF.test(E)&&g&&g.length===1||rG("failed sanity: "+h);try{h="?";if(M&&M.length>0){N$4(M);var B=M.join(",");I=I+"?le="+B;h="&"}if(DY.rol){var U=DY.ol;
U&&U.length&&(I=""+I+h+"ol="+U.length)}}catch(L){}return I},TXH=function(h,E,g,Z){h=F1D(h);
XJn.test(g)||rG("invalid_callback");E=AxF(E);Z=Z&&Z.length?AxF(Z):null;var M=function(W){return encodeURIComponent(W).replace(/%2C/g,",")};
return[encodeURIComponent(h.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",M(h.version),"/m=",M(E),Z?"/exm="+M(Z):"","/rt=j/sv=1/d=1/ed=1",h.activeMods?"/am="+M(h.activeMods):"",h.resourceSig?"/rs="+M(h.resourceSig):"",h.zcms?"/t="+M(h.zcms):"","/cb=",M(g)].join("")},F1D=function(h){h.charAt(0)!=="/"&&rG("relative path");
for(var E=h.substring(1).split("/"),g=[];E.length;){h=E.shift();if(!h.length||h.indexOf(".")==0)rG("empty/relative directory");else if(h.indexOf("=")>0){E.unshift(h);break}g.push(h)}h={};for(var Z=0,M=E.length;Z<M;++Z){var W=E[Z].split("="),z=decodeURIComponent(W[0]),c=decodeURIComponent(W[1]);W.length==2&&z&&c&&(h[z]=h[z]||c)}E="/"+g.join("/");K1F.test(E)||rG("invalid_prefix");g=0;for(Z=OFm.length;g<Z;++g)OFm[g].test(E)&&rG("invalid_prefix");g=bFk(h,"k",!0);Z=bFk(h,"am");M=bFk(h,"rs");h=bFk(h,"t");
return{pathPrefix:E,version:g,activeMods:Z,resourceSig:M,zcms:h}},AxF=function(h){for(var E=[],g=0,Z=h.length;g<Z;++g){var M=h[g].replace(/\./g,"_").replace(/-/g,"_");
YWm.test(M)&&E.push(M)}return E.join(",")},bFk=function(h,E,g){h=h[E];
!h&&g&&rG("missing: "+E);if(h){if(n3M.test(h))return h;rG("invalid: "+E)}return null},ktF=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,VXM=/\/cb=/g,sof=/\/\//g;
HFM.m=function(h,E,g,Z){(h=h[0])||rG("missing_hint");return"https://apis.google.com"+TXH(h,E,g,Z)};
var unF=decodeURI("%73cript"),QoH=/^[-+_0-9\/A-Za-z]+={0,2}$/,hwD=function(h,E){for(var g=[],Z=0;Z<h.length;++Z){var M=h[Z],W;if(W=M){a:{for(W=0;W<E.length;W++)if(E[W]===M)break a;W=-1}W=W<0}W&&g.push(M)}return g},EXC=function(){var h=DY.nonce;
return h!==void 0?h&&h===String(h)&&h.match(QoH)?h:DY.nonce=null:N$.querySelector?(h=N$.querySelector("script[nonce]"))?(h=h.nonce||h.getAttribute("nonce")||"",h&&h===String(h)&&h.match(QoH)?DY.nonce=h:DY.nonce=null):null:null},Myl=function(h){if(N$.readyState!="loading")gXF(h);
else{var E=EXC(),g="";E!==null&&(g=' nonce="'+E+'"');h="<"+unF+' src="'+encodeURI(h)+'"'+g+"></"+unF+">";N$.write(Zln?Zln.createHTML(h):h)}},gXF=function(h){var E=N$.createElement(unF);
E.setAttribute("src",Zln?Zln.createScriptURL(h):h);h=EXC();h!==null&&E.setAttribute("nonce",h);E.async="true";(h=N$.getElementsByTagName(unF)[0])?h.parentNode.insertBefore(E,h):(N$.head||N$.body||N$.documentElement).appendChild(E)},pxA=function(h,E,g){WXC(function(){var Z=E===NXC()?t2(xs,"_",S_()):S_();
Z=t2(SWC(E),"_",Z);h(Z)},g)},muW=function(h,E){var g=E||{};
typeof E=="function"&&(g={},g.callback=E);var Z=(E=g)&&E._c;if(Z)for(var M=0;M<$aB.length;M++){var W=$aB[M][0],z=$aB[M][1];z&&Object.prototype.hasOwnProperty.call(Z,W)&&z(Z[W],h,E)}E=[];h?E=h.split(":"):g.features&&(E=g.features);if(!(h=g.h)&&(h=NXC(),!h))throw Error("Va");GFm(E||[],g,h)},GFm=function(h,E,g){h=fGf(h)||[];
var Z=E.callback,M=E.config,W=E.timeout,z=E.ontimeout,c=E.onerror,I=void 0;typeof c=="function"&&(I=c);var B=null,U=!1;if(W&&!z||!W&&z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";c=t2(SWC(g),"r",[]).sort();var L=t2(SWC(g),"L",[]).sort(),d=DY.le||[],C=[].concat(c),q=function(u,k){if(U)return 0;fr.clearTimeout(B);L.push.apply(L,w);var y=((xs||{}).config||{}).update;y?y(M):M&&t2(DY,"cu",[]).push(M);if(k){v3n("me0",u,C);try{pxA(k,g,I)}finally{v3n("me1",u,C)}}return 1};
W>0&&(B=fr.setTimeout(function(){U=!0;z()},W));
var w=hwD(h,L);if(w.length){w=hwD(h,c);var r=t2(DY,"CP",[]),v=r.length;r[v]=function(u){if(!u)return 0;v3n("ml1",w,C);var k=function(A){r[v]=null;q(w,u)&&tXF(function(){Z&&Z();A()})},y=function(){var A=r[v+1];
A&&A()};
v>0&&r[v-1]?r[v]=function(){k(y)}:k(y)};
if(w.length){var H="loaded_"+DY.I++;xs[H]=function(u){r[v](u);xs[H]=null};
h=yxC(g,w,"gapi."+H,c,d);c.push.apply(c,w);v3n("ml0",w,C);E.sync||fr.___gapisync?Myl(h):gXF(h)}else r[v](eJC)}else q(w)&&Z&&Z()},zwH;
var aVH=null,clk=_.MN.trustedTypes;if(clk&&clk.createPolicy){try{aVH=clk.createPolicy("goog#gapi",{createHTML:GWu,createScript:GWu,createScriptURL:GWu})}catch(h){_.MN.console&&_.MN.console.error(h.message)}zwH=aVH}else zwH=aVH;var Zln=zwH,WXC=function(h,E){if(DY.hee&&DY.hel>0)try{return h()}catch(g){E&&E(g),DY.hel--,muW("debug_error",function(){try{window.___jsl.hefn(g)}catch(Z){throw g;}})}else try{return h()}catch(g){throw E&&E(g),g;
}},iln=xs.load;
iln&&t2(DY,"ol",[]).push(iln);xs.load=function(h,E){return WXC(function(){return muW(h,E)})};var lV4;var IVD=function(h,E){var g=g||[];this.serviceId_=h;this.moduleId_=E||null;this.dependencies_=[];oXC(this,g)};
IVD.prototype.toString=function(){return this.serviceId_};
IVD.prototype.getModuleId=function(){return this.moduleId_};
var oXC=function(h,E){var g=!1;g=g===void 0?!1:g;h.dependencies_=h.dependencies_.concat(E);if(g){if(!h.moduleId_)throw Error("Wa`"+h.serviceId_);E.map(function(Z){return Z.getModuleId()}).forEach(function(Z){rl$(function(M){M.addExtraEdge(h.moduleId_,Z)})})}};var j5N=new IVD("MpJwZc","MpJwZc");var iZO=new _.SJ("a"),CCV=new _.SJ("c"),d_V=function(h,E,g){_.xD.call(this,h,E);this.node=E;this.kind=g};
_.f(d_V,_.xD);var RwA=function(){this.JSC$10061_keys_={};this.urlPrefix_="";this.JSC$10061_queryData_={}};
RwA.prototype.toString=function(){var h=this.urlPrefix_+PNF(this),E=_.Cl(this.JSC$10061_queryData_),g="";E!=""&&(g="?"+E);return h+g};
var BfM=function(h){h=m9(h,"md");return!!h&&h!=="0"},PNF=function(h){var E=[],g=(0,_.DJ)(function(Z){this.JSC$10061_keys_[Z]!==void 0&&E.push(Z+"="+this.JSC$10061_keys_[Z])},h);
BfM(h)?(g("md"),g("k"),g("ck"),g("am"),g("rs"),g("gssmodulesetproto"),g("slk"),g("dti")):(g("sdch"),g("k"),g("ck"),g("am"),g("rt"),"d"in h.JSC$10061_keys_||v5(h,"d","0"),g("d"),g("exm"),g("excm"),(h.JSC$10061_keys_.excm||h.JSC$10061_keys_.exm)&&E.push("ed=1"),g("im"),g("dg"),g("sm"),m9(h,"br")!="1"&&m9(h,"br")!="0"||g("br"),g("br-d"),m9(h,"rb")=="1"&&g("rb"),m9(h,"zs")!=="0"&&g("zs"),Udm(h)!==""&&g("wt"),g("gssmodulesetproto"),g("ujg"),g("sp"),g("rs"),g("cb"),g("ee"),g("slk"),g("dti"),g("m"));return E.join("/")},
m9=function(h,E){return h.JSC$10061_keys_[E]?h.JSC$10061_keys_[E]:null},v5=function(h,E,g){g?h.JSC$10061_keys_[E]=g:delete h.JSC$10061_keys_[E]},LXB=function(h,E){h.urlPrefix_=E},jCC=function(h,E){E&&E.length>0?(E.sort(),v5(h,"exm",E.join(","))):v5(h,"exm",null)},ddf=function(h,E){E&&E.length>0?(E.sort(),v5(h,"excm",E.join(","))):v5(h,"excm",null)},CNl=function(h){return(h=m9(h,"m"))?h.split(","):[]},Udm=function(h){switch(m9(h,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Jlm=function(h,E){var g=Object.keys(E).filter(function(Z){return!!Object.keys(E[Z]).length}).map(function(Z){var M=Object.keys(E[Z]);
M.length>1&&M.sort();return Z+":"+M.join(",")});
g.sort();v5(h,"ee",g.join(";"))},YY$=function(h){var E=m9(h,"ee");
if(!E)return{};h={};E=_.G(E.split(";"));for(var g=E.next();!g.done;g=E.next()){var Z=_.G(g.value.split(":"));g=Z.next().value;Z=Z.next().value;h[g]={};Z=_.G(Z.split(","));for(var M=Z.next();!M.done;M=Z.next())h[g][M.value]=!0}return h},ewD=function(h){delete h.JSC$10061_keys_.m;
delete h.JSC$10061_keys_.exm;delete h.JSC$10061_keys_.ed};
RwA.prototype.clone=function(){var h=new RwA;h.JSC$10061_keys_=Object.assign({},this.JSC$10061_keys_);h.urlPrefix_=this.urlPrefix_;h.JSC$10061_queryData_=Object.assign({},this.JSC$10061_queryData_);return h};
var sIV=function(h,E){E=E===void 0?!0:E;var g=qqM(h),Z=new RwA,M=_.Eq(g)[5];_.Kt.forEach(fVH,function(z){var c=M.match("/"+z+"=([^/]+)");c&&v5(Z,z,c[1])});
var W="";W=h.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";LXB(Z,h.substr(0,h.indexOf(W)+W.length));if(!E)return Z;(h=_.Eq(g)[6]||null)&&ZMk(h,function(z,c){Z.JSC$10061_queryData_[z]=c});
return Z},OP$=function(h){h=_.jy(qqM(h));
return h===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(h)?/\/k=/.test(h):!1},qqM=function(h){return h.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?h.substr(65):h},fVH={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"},Nfn=RegExp("^loaded_(g|h)?[_\\d]+$");_.H5=function(h){this.JSC$10073_id_=h;this.opts={}};
_.H5.prototype.JSC$10075_setLabel=function(h){this.label_=h||void 0;return this};
_.H5.prototype.addUploadMetadata=function(h,E){var g=this.opts.data||{};g[h]=E;this.opts.data=g;return this};
var tyM=function(h){var E=_.Kt.filter(h.opts,function(g){return g!==null});
E=_.Kt.isEmpty(E)?null:E;h=[h.JSC$10073_id_,h.label_,E];E=COx(h);return h=h.slice(0,E+1)};
_.H5.prototype.toString=function(){var h=tyM(this);return"("+_.O6(h,function(E){return JSON.stringify(E)}).join(",")+")"};
_.H5.prototype.getId=function(){return this.JSC$10073_id_};
_.H5.prototype.getOptions=function(){return _.Kt.clone(this.opts)};var $s=function(){_.H5.call(this,"image-search")};
_.f($s,_.H5);$s.prototype.setSize=function(h){this.opts.imgsz=h;return this};
$s.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
$s.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};var Kr=function(){_.H5.call(this,"maps")};
_.f(Kr,_.H5);Kr.prototype.setZoom=function(h){this.opts.zoom=h;return this};
Kr.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
Kr.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};_.Of=function(){_.H5.call(this,"photos")};
_.f(_.Of,_.H5);_.Of.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
_.Of.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};var nr=function(){_.H5.call(this,"url")};
_.f(nr,_.H5);var SqH=function(){var h=new nr;h.opts.type="video";h.opts.site="youtube.com";return h};
nr.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
nr.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};var XE=function(){_.H5.call(this,"video-search")};
_.f(XE,_.H5);var xdC=function(){var h=new XE;h.opts.site="youtube.com";return h};
XE.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
XE.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};var wxM=function(){_.H5.call(this,"web")};
_.f(wxM,_.H5);wxM.prototype.JSC$10075_setLabel=function(h){_.H5.prototype.JSC$10075_setLabel.call(this,h);return this};
wxM.prototype.addUploadMetadata=function(h,E){_.H5.prototype.addUploadMetadata.call(this,h,E);return this};var Ys=function(){this.items_=[];this.opts={}},Ddf=function(h){switch(h){case "image-search":return new $s;
case "maps":return new Kr;case "photos":return new _.Of;case "url":return new nr;case "video-search":return new XE;case "web":return new wxM}return new _.H5(h)};
Ys.prototype.addView=function(h){this.items_.push(typeof h==="string"?Ddf(h):h);return this};
var lVD=function(h){return"("+_.O6(h.items_,function(E){return E.toString()}).join(",")+")"};
Ys.prototype.toString=function(){return lVD(this)};
Ys.prototype.getViews=function(h,E){E=E===void 0?[]:E;for(var g=this.items_,Z=0;Z<g.length;Z++){var M=g[Z];M instanceof Ys?M.getViews(h,E):M.getId()==h&&E.push(M)}return E};
Ys.prototype.getOptions=function(){return _.Kt.clone(this.opts)};var st=function(h){this.basePickerUrl_=h||"https://docs.google.com/picker";this.nav_=new Ys};
st.prototype.nav_=null;st.prototype.addView=function(h){this.nav_.addView(h);return this};
st.prototype.getBaseUrl=function(){return this.basePickerUrl_};
st.prototype.getViews=function(h){return this.nav_.getViews(h)};
_.rlM=function(h,E){h.callback_=E;return h};var mdD=new Map;mdD.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");mdD.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");mdD.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var vXk=new Set;vXk.add("application/vnd.google-apps.kix");vXk.add("application/vnd.google-apps.ritz");vXk.add("application/vnd.google-apps.punch");var FXM=function(h,E,g){var Z=g&&_.mj(g,1);g=Hlm(g);var M=h[0].getId();switch(_.vW(M,2)){case 13:return $dM(h,E,Z,g);case 3:return KXM(h,E,Z,g);case 10:return OlH(h,E,Z,g);case 27:return OlH(h,E,Z,g);case 12:return nXm(h,E);case 2:return XxD(h,E,Z,g);case 5:return Yqk(h,E,Z,g);case 9:return sCC(h,E,Z,g);case 6:return VyF(h,E,Z,g);case 25:return kFD(h,E,Z,g);case 1:return _.eP(h[0],jKl,26)?yln(h,E,Z,g):OlH(h,E,Z,g);default:return{}}},VyF=function(h,E,g,Z){h=h.map(function(M){return{id:M.getId().getId(),
serviceId:"youtube",name:M.getName(),description:_.mj(M,3),type:sf(M),lastEditedUtc:_.L2H(_.iK(M,_.Hg,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:_.mj(M,13),thumbnails:V$(aj(M))}});
return{action:E,docs:h,viewToken:Z,view:g||"youtube",v2Translated:!0}},XxD=function(h,E,g,Z){var M=h.map(function(W){var z=W.getId().getId(),c=_.mj(W,7),I=W.getName(),B=sf(W),U=_.L2H(_.iK(W,_.Hg,12)).getTime(),L=W.getUrl(),d=Number(qMV(W)),C=_.mj(W,3),q=_.mj(W,11),w=V$(aj(W));
var r=_.iK(W,cQ,21);r=_.DW(r,1);var v=_.iK(W,cQ,21);v=_.mj(v,10);var H=_.mj(W,13);var u=_.iK(W,cQ,21);u=_.DW(u,9);var k=_.iK(W,cQ,21);k=_.mj(k,11);z={id:z,serviceId:"docs",mimeType:c,name:I,type:B,lastEditedUtc:U,url:L,sizeBytes:d,description:C,iconUrl:q,thumbnails:w,isShared:r,downloadUrl:v,embedUrl:H,copyable:u,resourceKey:k};c=_.iK(W,cQ,21);_.DW(c,12)&&(z.uploadState="success",z.isNew=!0);c=_.iK(W,cQ,21);_.eP(c,pA,3)&&(W=_.iK(W,cQ,21),W=_.iK(W,pA,3),_.eP(W,Mg,2)&&(c=Ot(W.getDuration().getSeconds()),
I=W.getDuration(),I=_.i4(I,2),z.duration=c+I/1E9),z.aspectRatio=W.getAspectRatio());return z});
return{action:E,docs:M,viewToken:Z,view:g||"all",extraUserInputs:AlM(h),v2Translated:!0}},Yqk=function(h,E,g,Z){h=h.map(function(M){var W=_.iK(M,SGl,15);
W=_.iK(W,WQ,1);eM(M,10,WQ,W);return{id:M.getId().getId(),serviceId:"web",mimeType:_.mj(M,7),name:M.getName(),type:sf(M),url:M.getUrl(),description:_.mj(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(M))}});
return{action:E,docs:h,viewToken:Z,view:g||"image-search",v2Translated:!0}},sCC=function(h,E,g,Z){h=h.map(function(M){return{serviceId:"url",
name:aj(M)[0].getUrl().split("/").pop(),type:sf(M),mimeType:_.mj(M,7),url:M.getUrl(),description:_.mj(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(M))}});
return{action:E,docs:h,viewToken:Z,view:g||"url",v2Translated:!0}},yln=function(h,E,g,Z){h=h.map(function(M){return{id:M.getId().getId(),
serviceId:"picasa",name:M.getName(),type:sf(M),description:_.mj(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(M))}});
return{action:E,docs:h,viewToken:Z,view:g||"webcam",v2Translated:!0}},OlH=function(h,E,g,Z){return{action:E,
docs:h.map(Tfm),viewToken:Z,view:blM(g||"upload",h),extraUserInputs:AlM(h),v2Translated:!0}},blM=function(h,E){return E.some(function(g){var Z;
return((Z=_.iK(g,Gc,30))==null?void 0:_.vW(Z,3))===9})?h+"/gmailphotos":h},KXM=function(h,E,g,Z){var M=h.map(function(W){var z={id:W.getId().getId(),
serviceId:"picasa",mimeType:_.mj(W,7),name:W.getName(),type:sf(W),lastEditedUtc:_.L2H(_.iK(W,_.Hg,12)).getTime(),url:W.getUrl(),sizeBytes:Number(qMV(W)),description:_.mj(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(W)),mediaKey:W.getId().getId(),parentId:_.mj(W,4)},c,I=(c=_.iK(W,JLD,18))==null?void 0:_.iK(c,CxH,3);I&&(z.latitude=rr(I,1),z.longitude=rr(I,2));var B;W=(B=_.iK(W,JLD,18))==null?void 0:l3(B,6);B=W!=null?Ot(W):void 0;B&&(z.version=
B);return z});
return{action:E,docs:M,viewToken:Z,view:g||"photos",extraUserInputs:AlM(h),v2Translated:!0}},$dM=function(h,E,g,Z){h=h.map(function(M){return{id:M.getId().getId(),
serviceId:"et",name:aj(M)[0].getUrl().split("/").pop(),description:_.mj(M,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(M),"etjpg")}});
return{action:E,docs:h,viewToken:Z,view:g||"et",v2Translated:!0}},kFD=function(h,E,g,Z){h=h.map(function(M){var W=M.getId().getId(),z=Z["2"];
return{id:W,serviceId:z.type!=="gmail_themes"&&z.parent==="6226252643674576769"?"picasa":"static_themes",name:M.getName(),mimeType:_.mj(M,7),type:sf(M),description:_.mj(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:M.getUrl(),embedUrl:M.getUrl(),thumbnails:V$(aj(M))}});
return{action:E,docs:h,viewToken:Z,view:g||"photos",v2Translated:!0}},nXm=function(h,E){h=h.map(function(g){var Z=_.iK(g,dof,27);
Z=_.Tp(Z,1,_.JC,_.ch())[0];return{id:g.getId().getId(),serviceId:"contacts",mimeType:_.mj(g,7),name:g.getName(),description:_.mj(g,3),url:"mailto:"+Z,thumbnail:[{url:_.mj(g,11)}],email:Z}});
return{action:E,docs:h,view:"contacts",v2Translated:!0}},Hlm=function(h){if(!h)return{};
var E=_.mj(h,3);E=E&&JSON.parse(E)||{};return{0:_.mj(h,1),1:_.mj(h,2),2:E}},V$=function(h,E){E=E===void 0?"":E;
if(!h.length)return null;E=="etjpg"&&(h=h.filter(function(g){return g.getUrl().includes("w1200-h300")}));
return h.map(function(g){return{url:g.getUrl(),height:g.getHeight(),width:g.getWidth(),type:E}})},AlM=function(h){return{isAttachment:h.some(function(E){return _.DW(E,31)})}},Tfm=function(h){var E,g={id:(E=h.getId())==null?void 0:E.getId(),
serviceId:uyA(h),mimeType:_.mj(h,7),name:h.getName(),type:sf(h),sizeBytes:Number(qMV(h)),description:_.mj(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:V$(aj(h)),isNew:!0};if(E=_.iK(h,Gc,30)){g.dataUrl=_.mj(E,1)||null;a:{var Z=_.iK(h,Gc,30);switch(_.vW(Z,3)){case 9:Z=_.KW(Z,NUF,2,zc);Z={remoteRefs:Z&&_.mj(Z,1)};break a;case 10:case 15:Z=_.KW(Z,f0H,4,zc);var M=aj(h);Z={photo_id:Z&&_.mj(Z,1),media_key:h.getId().getId(),media_type:_.vW(h,6)===1?1:2,image_url:M&&
M[0].getUrl(),width:M&&String(M[0].getWidth()),height:M&&String(M[0].getHeight())};break a}Z=null}g.uploadMetadata=Z;g.uploadId=_.mj(E,9)||null;g.uploadState=QCA(E)||null}(Z=E&&_.KW(E,f0H,4,zc))&&(g.id=_.mj(Z,1));(Z=E&&_.KW(E,tLl,5,zc))&&(g.contentId=_.mj(Z,1));(Z=E&&_.KW(E,eaF,7,zc))&&(g.contentId=_.mj(Z,1));(Z=E&&_.KW(E,qGF,6,zc))&&(g.contentId=_.mj(Z,1));(E==null?void 0:_.vW(E,3))===1&&(g.mediaKey=h.getId().getId());return g},uyA=function(h){var E;
switch(((E=_.iK(h,Gc,30))==null?void 0:_.vW(E,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},sf=function(h){switch(_.vW(h,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 _.mj(h,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},QCA=function(h){switch(h==null?void 0:_.vW(h,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 ZPk,hTf,ELC,gLM;_.Msm=function(h,E){var g=E||{};E=g.document||document;var Z=_.lx(h).toString(),M=(new vF(E)).createElement("SCRIPT"),W={script_:M,timeout_:void 0},z=new W5(hTf,W),c=null,I=g.timeout!=null?g.timeout:5E3;I>0&&(c=window.setTimeout(function(){ELC(M,!0);z.errback(new gLM(1,"Timeout reached for loading script "+Z))},I),W.timeout_=c);
M.onload=M.onreadystatechange=function(){M.readyState&&M.readyState!="loaded"&&M.readyState!="complete"||(ELC(M,g.cleanupWhenDone||!1,c),z.callback(null))};
M.onerror=function(){ELC(M,!0,c);z.errback(new gLM(0,"Error while loading script "+Z))};
W=g.attributes||{};_.Kt.extend(W,{type:"text/javascript",charset:"UTF-8"});cCf(M,W);_.pX(M,h);ZPk(E).appendChild(M);return z};
ZPk=function(h){var E=N3("HEAD",h);return E&&E.length!==0?E[0]:h.documentElement};
hTf=function(){if(this&&this.script_){var h=this.script_;h&&h.tagName=="SCRIPT"&&ELC(h,!0,this.timeout_)}};
ELC=function(h,E,g){g!=null&&_.MN.clearTimeout(g);h.onload=function(){};
h.onerror=function(){};
h.onreadystatechange=function(){};
E&&window.setTimeout(function(){_.f8(h)},0)};
gLM=function(h,E){var g="Jsloader error (code #"+h+")";E&&(g+=": "+E);_.g$.call(this,g);this.code=h};
_.aV(gLM,_.g$);var WgM=_.uz(["https://apis.google.com/js/api.js"]),puk=_.BR(WgM),ctM=function(h,E,g){g=g===void 0?{}:g;var Z=!1,M=GnD(h,E,g).then(function(z){Z=!0;return z}),W=_.rbA(5E3).then(function(){return Z?GnD(h,E,g):zTk(E,g).then(function(z){return apl(z,h)})});
return CnA([M,W])},GnD=function(h,E,g){g=g===void 0?{}:g;
return iPf(E,g).then(function(Z){return apl(Z,h)})},apl=function(h,E){var g=_.Gu(E,"gapi.")?E.slice(5):E;
return h[g]?_.dC(h[g]):new _.jM(function(Z,M){var W=Oj(function(){M(Error("Ya"))},3E4);
h.load(E,{callback:function(){_.MN.clearTimeout(W);Z(h[g])},
onerror:function(z){_.MN.clearTimeout(W);M(z)}})})},iPf=function(h,E){E=E===void 0?{}:E;
return h.gapi&&h.gapi.load?_.dC(h.gapi):zTk(h,E)},zTk=function(h,E){E=E===void 0?{}:E;
return _.Msm(puk,{document:h.document,attributes:E}).then(function(){return h.gapi})},oLm=function(){};
oLm.prototype.load=function(h,E,g){E=E===void 0?window:E;g=g===void 0?{}:g;var Z=Date.now();return ctM(h,E,g).then(function(M){var W=Date.now();return{library:M,loadStartMs:Z,loadEndMs:W}},function(M){throw M instanceof Error?M:Error(String(M));
})};var kF4=function(){_.wO.call(this);this.gapiLoader_=new oLm;this.origin_=null;this.gapiPickerIframeResolver_=_.hU();this.gapiIframesResolver_=_.hU();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.f(kF4,_.wO);var Ipm=function(h,E){var g=g===void 0?{}:g;var Z=_.yy("gapi.iframes",E);return Z?(h=Date.now(),_.dC({library:Z,loadStartMs:h,loadEndMs:h})):h.gapiLoader_.load("gapi.iframes",E,g)},RTC=function(h,E,g,Z,M,W){var z=!1;
z=z===void 0?!1:z;Ipm(h,XK(E.ownerDocument)).then(function(c){var I=c.library;h.gapiIframesResolver_.resolve(I);c=h.gapiPickerIframeResolver_;var B=c.resolve,U=z;U=U===void 0?!1:U;var L={};L["host-message-handler"]=g;h.hostMessageHandlerInternal_=L;var d=_.T8(Z);d=_.T8(d);d=_.Rb(_.Ib(_.ob(new _.WX,d.scheme_),d.JSC$10033_domain_),d.JSC$10033_port_).toString();h.origin_=d;d=(new DaB).setUrl(Z);d.JSC$10048_obj_.where=E;d.JSC$10048_obj_.allowPost=U;d.JSC$10048_obj_.messageHandlers=L;U=_.yy("makeWhiteListIframesFilter",
I)([h.origin_]);d.JSC$10048_obj_.messageHandlersFilter=U;M!=null&&(d.JSC$10048_obj_.id=M);W!=null&&(d.JSC$10048_obj_.rpctoken=W);U=wJl(d);U.JSC$10045_obj_.style={display:"block","min-width":"100%",width:"1px"};U.JSC$10045_obj_.height="100%";wJl(d).value().allow="camera 'src' "+h.origin_;I=I.getContext().openChild(d.value());B.call(c,I)},function(c){h.gapiIframesResolver_.reject(c);
h.gapiPickerIframeResolver_.reject(c)});
return h.gapiPickerIframeResolver_.promise},PKM=function(h,E){return _.$D([h.gapiIframesResolver_.promise,
h.gapiPickerIframeResolver_.promise]).then(function(g){var Z=_.G(g);g=Z.next().value;return(Z=Z.next().value)?Z.send("picker-message-handler",E,void 0,_.yy("makeWhiteListIframesFilter",g)([h.origin_])):_.$B(Error("Za"))})};
kF4.prototype.disposeInternal=function(){Bef(this);_.wO.prototype.disposeInternal.call(this)};
var Bef=function(h){h.gapiPickerIframeResolver_.promise.then(function(E){E&&(E.unregister("host-message-handler"),delete h.hostMessageHandlerInternal_["host-message-handler"])})};var U2A=function(){this.JSC$10135_nextId=0};var jIk=function(h,E){switch(h.action){case "select-contacts":h=LgD(h.contacts);break;case "visibility":h=h.visible;var g=new Rj;h=_.nW(g,1,7).setVisible(h);g={};g["iframe-command"]=h.serialize();h=g;break;default:h=null}return h?PKM(E,h):_.dC()},LgD=function(h){if(!h||h.length==0)return null;
var E=new Rj;_.nW(E,1,11);var g=new U2A;h.forEach(function(Z){if(Z.email){var M=new xg;M=_.FD(M,2,Z.name?Z.name:Z.email);var W=new dof;Z=_.rCZ(W,1,_.LU,Z.email,_.JC);Z=_.fM(M,27,Z);M=new UoA;W=":"+(g.JSC$10135_nextId++).toString(36);M=_.FD(M,1,W);M=_.nW(M,2,12);Z=_.fM(Z,1,M)}else Z=null;Z&&eM(E,7,xg,Z)});
h={};h["iframe-command"]=E.serialize();return h};_.d2C=function(){if(KkM){var h=/Windows NT ([0-9.]+)/;return(h=h.exec(_.jq()))?h[1]:"0"}return _.$rV?(h=/1[0|1][_.][0-9_.]+/,(h=h.exec(_.jq()))?h[0].replace(/_/g,"."):"10"):CoM?(h=/Android\s+([^\);]+)(\)|;)/,(h=h.exec(_.jq()))?h[1]:""):nRd||XIa||YeM?(h=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(h=h.exec(_.jq()))?h[1].replace(/_/g,"."):""):""}();var ks;ks=function(h){return(h=h.exec(_.jq()))?h[1]:""};
_.CKF=function(){if(_.UK)return ks(/Firefox\/([0-9.]+)/);if(_.IV||Zp||mrx)return TJu;if(_.LW){if(_.Dz()||_.UNz()){var h=ks(/CriOS\/([0-9.]+)/);if(h)return h}return ks(/Chrome\/([0-9.]+)/)}if(_.sq&&!_.Dz())return ks(/Version\/([0-9.]+)/);if(l$q||rjx){if(h=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.jq()))return h[1]+"."+h[2]}else if(Eb$)return(h=ks(/Android\s+([0-9.]+)/))?h:ks(/Version\/([0-9.]+)/);return""}();var Jtk=function(){};
_.GZ(Jtk);Jtk.prototype.nextId_=0;_.y$=function(h){return":"+(h.nextId_++).toString(36)};var FE=function(h){_.ms.call(this);this.JSC$10143_dom_=h||w2();this.JSC$10143_id_=null;this.inDocument_=!1;this.JSC$10143_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.aV(FE,_.ms);FE.prototype.idGenerator_=Jtk.getInstance();FE.prototype.getId=function(){return this.JSC$10143_id_||(this.JSC$10143_id_=_.y$(this.idGenerator_))};
FE.prototype.getElement=function(){return this.JSC$10143_element_};
var A2=function(h){h.googUiComponentHandler_||(h.googUiComponentHandler_=new _.Pl(h));return h.googUiComponentHandler_},eTC=function(h,E){if(h==E)throw Error("$a");
var g;if(g=E&&h.parent_&&h.JSC$10143_id_){g=h.parent_;var Z=h.JSC$10143_id_;g=g.childIndex_&&Z?_.Kt.get(g.childIndex_,Z)||null:null}if(g&&h.parent_!=E)throw Error("$a");h.parent_=E;FE.superClass_.setParentEventTarget.call(h,E)};
FE.prototype.setParentEventTarget=function(h){if(this.parent_&&this.parent_!=h)throw Error("ab");FE.superClass_.setParentEventTarget.call(this,h)};
FE.prototype.JSC$10145_createDom=function(){this.JSC$10143_element_=this.JSC$10143_dom_.createElement("DIV")};
FE.prototype.render=function(h){qYf(this,h)};
var qYf=function(h,E,g){if(h.inDocument_)throw Error("bb");h.JSC$10143_element_||h.JSC$10145_createDom();E?E.insertBefore(h.JSC$10143_element_,g||null):h.JSC$10143_dom_.JSC$9327_document_.body.appendChild(h.JSC$10143_element_);h.parent_&&!h.parent_.inDocument_||h.enterDocument()};
_.p=FE.prototype;_.p.decorate=function(h){if(this.inDocument_)throw Error("bb");if(h&&this.canDecorate(h)){this.wasDecorated_=!0;var E=_.Yp(h);this.JSC$10143_dom_&&this.JSC$10143_dom_.JSC$9327_document_==E||(this.JSC$10143_dom_=w2(h));this.decorateInternal(h);this.enterDocument()}else throw Error("cb");};
_.p.canDecorate=function(){return!0};
_.p.decorateInternal=function(h){this.JSC$10143_element_=h};
_.p.enterDocument=function(){this.inDocument_=!0;fpn(this,function(h){!h.inDocument_&&h.getElement()&&h.enterDocument()})};
_.p.exitDocument=function(){fpn(this,function(h){h.inDocument_&&h.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.p.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);fpn(this,function(h){h.dispose()});
!this.wasDecorated_&&this.JSC$10143_element_&&_.f8(this.JSC$10143_element_);this.parent_=this.model_=this.JSC$10143_element_=this.childIndex_=this.children_=null;FE.superClass_.disposeInternal.call(this)};
_.p.getModel=function(){return this.model_};
_.p.addChild=function(h,E){var g=this.children_?this.children_.length:0;if(h.inDocument_&&(E||!this.inDocument_))throw Error("bb");if(g<0||g>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);h.parent_==this?(_.Kt.set(this.childIndex_,h.getId(),h),_.Xz(this.children_,h)):_.Kt.add(this.childIndex_,h.getId(),h);eTC(h,this);_.fzW(this.children_,g,0,h);h.inDocument_&&this.inDocument_&&h.parent_==this?(E=this.getContentElement(),
(E.childNodes[g]||null)!=h.getElement()&&(h.getElement().parentElement==E&&E.removeChild(h.getElement()),g=E.childNodes[g]||null,E.insertBefore(h.getElement(),g))):E?(this.JSC$10143_element_||this.JSC$10145_createDom(),g=this.children_?this.children_[g+1]||null:null,qYf(h,this.getContentElement(),g?g.JSC$10143_element_:null)):this.inDocument_&&!h.inDocument_&&h.JSC$10143_element_&&h.JSC$10143_element_.parentNode&&h.JSC$10143_element_.parentNode.nodeType==1&&h.enterDocument()};
_.p.getContentElement=function(){return this.JSC$10143_element_};
var fpn=function(h,E){h.children_&&h.children_.forEach(E,void 0)};
FE.prototype.removeChild=function(h,E){if(h){var g=typeof h==="string"?h:h.getId();h=this.childIndex_&&g?_.Kt.get(this.childIndex_,g)||null:null;g&&h&&(_.Kt.remove(this.childIndex_,g),_.Xz(this.children_,h),E&&(h.exitDocument(),h.JSC$10143_element_&&_.f8(h.JSC$10143_element_)),eTC(h,null))}if(!h)throw Error("eb");return h};_.aV(HlW,vXx);_.aV($d$,vXx);var NeM;_.Kt.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var tsH=function(h,E){E?h.setAttribute("role",E):h.removeAttribute("role")},T7=function(h,E,g){Array.isArray(g)&&(g=g.join(" "));
var Z="aria-"+E;g===""||g==void 0?(NeM||(g={},NeM=(g.atomic=!1,g.autocomplete="none",g.dropeffect="none",g.haspopup=!1,g.live="off",g.multiline=!1,g.multiselectable=!1,g.orientation="vertical",g.readonly=!1,g.relevant="additions text",g.required=!1,g.sort="none",g.busy=!1,g.disabled=!1,g.hidden=!1,g.invalid="false",g)),g=NeM,E in g?h.setAttribute(Z,g[E]):h.removeAttribute(Z)):h.setAttribute(Z,g)};var SYD;_.bG=function(h,E,g){_.ms.call(this);this.target=h;this.handle=E||h;this.limits=g||new ym(NaN,NaN,NaN,NaN);this.JSC$10148_document_=_.Yp(h);this.JSC$10148_eventHandler_=new _.Pl(this);_.jf(this,this.JSC$10148_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;_.vK(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=SYD};
_.aV(_.bG,_.ms);SYD=_.MN.document&&_.MN.document.documentElement&&!!_.MN.document.documentElement.setCapture&&!!_.MN.document.releaseCapture;_.x2D=function(h,E){h.hysteresisDistanceSquared_=Math.pow(E,2)};
_.p=_.bG.prototype;_.p.setEnabled=function(h){this.enabled_=h};
_.p.disposeInternal=function(){_.bG.superClass_.disposeInternal.call(this);_.r6(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10148_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10148_document_.releaseCapture();this.handle=this.target=null};
_.p.startDrag=function(h){var E=h.type=="mousedown";if(!this.enabled_||this.dragging_||E&&(!h.isButton(0)||_.$rV&&h.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new uG("start",this,h.clientX,h.clientY,h)))this.dragging_=!0,E&&h.preventDefault();else return;else E&&h.preventDefault();E=this.JSC$10148_document_;var g=E.documentElement,Z=!this.useSetCapture_;this.JSC$10148_eventHandler_.listen(E,["touchmove","mousemove"],this.handleMove_,
{capture:Z,passive:!1});this.JSC$10148_eventHandler_.listen(E,["touchend","mouseup"],this.endDrag,Z);this.useSetCapture_?(g.setCapture(!1),this.JSC$10148_eventHandler_.listen(g,"losecapture",this.endDrag)):this.JSC$10148_eventHandler_.listen(XK(E),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10148_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,Z);this.clientX=this.startX=h.clientX;this.clientY=this.startY=h.clientY;this.screenX=h.screenX;this.screenY=h.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=xp(w2(this.JSC$10148_document_))}};
_.p.endDrag=function(h,E){this.JSC$10148_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10148_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new uG("end",this,h.clientX,h.clientY,h,wul(this,this.deltaX),D2M(this,this.deltaY),E||h.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.p.handleMove_=function(h){if(this.enabled_){var E=h.clientX-this.clientX,g=h.clientY-this.clientY;this.clientX=h.clientX;this.clientY=h.clientY;this.screenX=h.screenX;this.screenY=h.screenY;if(!this.dragging_){var Z=this.startX-this.clientX,M=this.startY-this.clientY;if(Z*Z+M*M>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new uG("start",this,h.clientX,h.clientY,h)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(h);return}}g=lpM(this,E,g);E=g.x;g=g.y;this.dragging_&&this.dispatchEvent(new uG("beforedrag",
this,h.clientX,h.clientY,h,E,g))&&(rtF(this,h,E,g),h.preventDefault())}};
var lpM=function(h,E,g){var Z=xp(w2(h.JSC$10148_document_));E+=Z.x-h.pageScroll.x;g+=Z.y-h.pageScroll.y;h.pageScroll=Z;h.deltaX+=E;h.deltaY+=g;return new _.nt(wul(h,h.deltaX),D2M(h,h.deltaY))};
_.bG.prototype.onScroll_=function(h){var E=lpM(this,0,0);h.clientX=this.clientX;h.clientY=this.clientY;rtF(this,h,E.x,E.y)};
var rtF=function(h,E,g,Z){h.target.style.left=g+"px";h.target.style.top=Z+"px";h.dispatchEvent(new uG("drag",h,E.clientX,E.clientY,E,g,Z))},wul=function(h,E){var g=h.limits;
h=isNaN(g.left)?null:g.left;g=isNaN(g.width)?0:g.width;return Math.min(h!=null?h+g:Infinity,Math.max(h!=null?h:-Infinity,E))},D2M=function(h,E){var g=h.limits;
h=isNaN(g.top)?null:g.top;g=isNaN(g.height)?0:g.height;return Math.min(h!=null?h+g:Infinity,Math.max(h!=null?h:-Infinity,E))};
_.bG.prototype.isDragging=function(){return this.dragging_};
var uG=function(h,E,g,Z,M,W,z){_.xD.call(this,h);this.clientX=g;this.clientY=Z;this.browserEvent=M;this.left=W!==void 0?W:E.deltaX;this.top=z!==void 0?z:E.deltaY};
_.aV(uG,_.xD);var Q$=function(h){this.JSC$10155_map_=new Map;var E=arguments.length;if(E>1){if(E%2)throw Error("ka");for(var g=0;g<E;g+=2)this.set(arguments[g],arguments[g+1])}else h&&this.addAll(h)};
_.p=Q$.prototype;_.p.getCount=function(){return this.JSC$10155_map_.size};
_.p.getValues=function(){return Array.from(this.JSC$10155_map_.values())};
_.p.getKeys=function(){return Array.from(this.JSC$10155_map_.keys())};
_.p.containsKey=function(h){return this.JSC$10155_map_.has(h)};
_.p.containsValue=function(h){return this.getValues().some(function(E){return E==h})};
_.p.equals=function(h,E){var g=this;E=E===void 0?function(Z,M){return Z===M}:E;
return this===h?!0:this.JSC$10155_map_.size!=h.getCount()?!1:this.getKeys().every(function(Z){return E(g.JSC$10155_map_.get(Z),h.get(Z))})};
_.p.isEmpty=function(){return this.JSC$10155_map_.size==0};
_.p.clear=function(){this.JSC$10155_map_.clear()};
_.p.remove=function(h){return this.JSC$10155_map_.delete(h)};
_.p.get=function(h,E){return this.JSC$10155_map_.has(h)?this.JSC$10155_map_.get(h):E};
_.p.set=function(h,E){this.JSC$10155_map_.set(h,E);return this};
_.p.addAll=function(h){if(h instanceof Q$){h=_.G(h.JSC$10155_map_);for(var E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;this.JSC$10155_map_.set(E,g)}}else if(h)for(h=_.G(Object.entries(h)),E=h.next();!E.done;E=h.next())g=_.G(E.value),E=g.next().value,g=g.next().value,this.JSC$10155_map_.set(E,g)};
_.p.forEach=function(h,E){var g=this;E=E===void 0?this:E;this.JSC$10155_map_.forEach(function(Z,M){return h.call(E,Z,M,g)})};
_.p.clone=function(){return new Q$(this)};(function(){for(var h=["ms","moz","webkit","o"],E,g=0;E=h[g]&&!_.MN.requestAnimationFrame;++g)_.MN.requestAnimationFrame=_.MN[E+"RequestAnimationFrame"],_.MN.cancelAnimationFrame=_.MN[E+"CancelAnimationFrame"]||_.MN[E+"CancelRequestAnimationFrame"];if(!_.MN.requestAnimationFrame){var Z=0;_.MN.requestAnimationFrame=function(M){var W=(new Date).getTime(),z=Math.max(0,16-(W-Z));Z=W+z;return _.MN.setTimeout(function(){M(W+z)},z)};
_.MN.cancelAnimationFrame||(_.MN.cancelAnimationFrame=function(M){clearTimeout(M)})}})();
var m2A=[[],[]],vLf=0,HPf=!1,$2n=0,OPM=function(h,E){var g=$2n++,Z={measureTask:{id:g,fn:h.measure,context:E},mutateTask:{id:g,fn:h.mutate,context:E},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(Z.args||(Z.args=[]),Z.args.length=0,Z.args.push.apply(Z.args,arguments),Z.args.push(Z.state)):Z.args&&Z.args.length!=0?(Z.args[0]=Z.state,Z.args.length=1):Z.args=[Z.state];Z.isScheduled||(Z.isScheduled=!0,m2A[vLf].push(Z));HPf||(HPf=!0,window.requestAnimationFrame(Kgl))}},Kgl=
function(){HPf=!1;
var h=m2A[vLf],E=h.length;vLf=(vLf+1)%2;for(var g,Z=0;Z<E;++Z){g=h[Z];var M=g.measureTask;g.isScheduled=!1;M.fn&&M.fn.apply(M.context,g.args)}for(Z=0;Z<E;++Z)g=h[Z],M=g.mutateTask,g.isScheduled=!1,M.fn&&M.fn.apply(M.context,g.args),g.state={};h.length=0};var nLn=_.uz(["about:blank"]),Xuk=_.uz(["javascript:undefined"]),YYB=_.BR(nLn);_.lx(YYB);var sIH=_.BR(Xuk);_.lx(sIH);var hB=function(h){_.ms.call(this);this.JSC$10161_element_=h;this.listenKeyIn_=_.vK(this.JSC$10161_element_,"focus",this,!0);this.listenKeyOut_=_.vK(this.JSC$10161_element_,"blur",this,!0)};
_.aV(hB,_.ms);hB.prototype.handleEvent=function(h){var E=new _.w6(h.event_);E.type=h.type=="focusin"||h.type=="focus"?"focusin":"focusout";this.dispatchEvent(E)};
hB.prototype.disposeInternal=function(){hB.superClass_.disposeInternal.call(this);ls(this.listenKeyIn_);ls(this.listenKeyOut_);delete this.JSC$10161_element_};var Vsm=function(h,E){this.JSC$10164_element_=h;this.JSC$10164_dom_=E};var ER=function(h,E){FE.call(this,E);this.useIframeMask_=!!h;this.lastFocus_=null;this.resizeBackgroundTask_=OPM({mutate:this.resizeBackground_},this);OPM({mutate:this.updateModalAndBackground_},this)};
_.aV(ER,FE);_.p=ER.prototype;_.p.focusHandler_=null;_.p.visible_=!1;_.p.bgEl_=null;_.p.bgIframeEl_=null;_.p.tabCatcherElement_=null;_.p.backwardTabWrapInProgress_=!1;_.p.getCssClass=function(){return"goog-modalpopup"};
_.p.getBackgroundElement=function(){return this.bgEl_};
_.p.JSC$10145_createDom=function(){ER.superClass_.JSC$10145_createDom.call(this);var h=this.getElement(),E=Pa(this.getCssClass()).split(" ");ZY(h,E);h.tabIndex=0;_.Q_(h,!1);knB(this);ytC(this)};
var knB=function(h){if(h.useIframeMask_&&!h.bgIframeEl_){var E=h.JSC$10143_dom_.JSC$9329_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.hh(E,YYB);h.bgIframeEl_=E;h.bgIframeEl_.className=h.getCssClass()+"-bg";_.Q_(h.bgIframeEl_,!1);OUC(h.bgIframeEl_,0)}h.bgEl_||(h.bgEl_=h.JSC$10143_dom_.JSC$9329_createDom("DIV",h.getCssClass()+"-bg"),_.Q_(h.bgEl_,!1))},ytC=function(h){h.tabCatcherElement_||(h.tabCatcherElement_=h.JSC$10143_dom_.createElement("SPAN"),_.Q_(h.tabCatcherElement_,
!1),h.tabCatcherElement_.tabIndex=0,h.tabCatcherElement_.style.position="absolute")};
_.p=ER.prototype;_.p.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.p.canDecorate=function(h){return!!h&&h.tagName=="DIV"};
_.p.decorateInternal=function(h){ER.superClass_.decorateInternal.call(this,h);h=Pa(this.getCssClass()).split(" ");ZY(this.getElement(),h);knB(this);ytC(this);this.getElement().tabIndex=0;_.Q_(this.getElement(),!1)};
_.p.enterDocument=function(){this.bgIframeEl_&&_.YS(this.bgIframeEl_,this.getElement());_.YS(this.bgEl_,this.getElement());ER.superClass_.enterDocument.call(this);_.sp(this.tabCatcherElement_,this.getElement());this.focusHandler_=new hB(this.JSC$10143_dom_.JSC$9327_document_);A2(this).listen(this.focusHandler_,"focusin",this.onFocus);Fgf(this,!1)};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.p8(this.focusHandler_);ER.superClass_.exitDocument.call(this);_.f8(this.bgIframeEl_);_.f8(this.bgEl_);_.f8(this.tabCatcherElement_)};
_.p.setVisible=function(h){if(h!=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_&&Fgf(this,h),h){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10143_dom_.JSC$9327_document_.activeElement}catch(M){}this.updateModalAndBackground_();A2(this).listen(this.JSC$10143_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10143_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);AtH(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)D6(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){A2(this).unlisten(this.JSC$10143_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10143_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)D6(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var E=this.JSC$10143_dom_,g=E.JSC$9327_document_.body,Z=E.JSC$9327_document_.activeElement||g;if(!this.lastFocus_||this.lastFocus_==g){this.lastFocus_=null;break a}(Z==g||E.contains(this.getElement(),Z))&&this.lastFocus_.focus()}catch(M){}this.lastFocus_=
null}}};
var Fgf=function(h,E){h.modalAriaVisibilityHelper_||(h.modalAriaVisibilityHelper_=new Vsm(h.JSC$10143_element_,h.JSC$10143_dom_));h=h.modalAriaVisibilityHelper_;if(E){h.hiddenElements_||(h.hiddenElements_=[]);E=h.JSC$10164_dom_.getChildren(h.JSC$10164_dom_.JSC$9327_document_.body);for(var g=0;g<E.length;g++){var Z=E[g],M;if(M=Z!=h.JSC$10164_element_)M=Z.getAttribute("aria-hidden"),M=!(M==null||M==void 0?0:String(M));M&&(T7(Z,"hidden",!0),h.hiddenElements_.push(Z))}}else if(h.hiddenElements_){for(E=
0;E<h.hiddenElements_.length;E++)h.hiddenElements_[E].removeAttribute("aria-hidden");h.hiddenElements_=null}};
ER.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var AtH=function(h,E){h.bgIframeEl_&&_.Q_(h.bgIframeEl_,E);h.bgEl_&&_.Q_(h.bgEl_,E);_.Q_(h.getElement(),E);_.Q_(h.tabCatcherElement_,E)};
_.p=ER.prototype;_.p.onShow=function(){this.dispatchEvent("show")};
_.p.onHide=function(){AtH(this,!1);this.dispatchEvent("hide")};
_.p.isVisible=function(){return this.visible_};
_.p.focus=function(){this.focusElement_()};
_.p.resizeBackground_=function(){this.bgIframeEl_&&_.Q_(this.bgIframeEl_,!1);this.bgEl_&&_.Q_(this.bgEl_,!1);var h=this.JSC$10143_dom_.JSC$9327_document_;var E=_.S8(XK(this.JSC$10143_dom_.JSC$9327_document_)||window);var g=Math.max(E.width,Math.max(h.body.scrollWidth,h.documentElement.scrollWidth));h=Math.max(E.height,Math.max(h.body.scrollHeight,h.documentElement.scrollHeight));this.bgIframeEl_&&(_.Q_(this.bgIframeEl_,!0),_.vUl(this.bgIframeEl_,g,h));this.bgEl_&&(_.Q_(this.bgEl_,!0),_.vUl(this.bgEl_,
g,h))};
_.p.reposition=function(){var h;if(_.mZf(this.getElement())=="fixed")var E=h=0;else E=xp(this.JSC$10143_dom_),h=E.x,E=E.y;var g=$ZH(this.getElement());var Z=_.S8(XK(this.JSC$10143_dom_.JSC$9327_document_)||window);h=Math.max(h+Z.width/2-g.width/2,0);E=Math.max(E+Z.height/2-g.height/2,0);Tb(this.getElement(),h,E);Tb(this.tabCatcherElement_,h,E)};
_.p.onFocus=function(h){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():h.target==this.tabCatcherElement_&&Oj(this.focusElement_,0,this)};
_.p.focusElement_=function(){try{this.getElement().focus()}catch(h){}};
_.p.disposeInternal=function(){_.p8(this.popupShowTransition_);this.popupShowTransition_=null;_.p8(this.popupHideTransition_);this.popupHideTransition_=null;_.p8(this.bgShowTransition_);this.bgShowTransition_=null;_.p8(this.bgHideTransition_);this.bgHideTransition_=null;ER.superClass_.disposeInternal.call(this)};var n8=function(h,E,g){ER.call(this,E,g);this.JSC$10174_class_=h||"modal-dialog";this.buttons_=(new gh).addButton(Tef,!0).addButton(bPf,!1,!0)};
_.aV(n8,ER);_.p=n8.prototype;_.p.escapeToCancel_=!0;_.p.hasTitleCloseButton_=!0;_.p.modal_=!0;_.p.draggable_=!0;_.p.backgroundElementOpacity_=.5;_.p.title_="";_.p.JSC$10176_dragger_=null;_.p.JSC$10176_disposeOnHide_=!1;_.p.titleEl_=null;_.p.titleTextEl_=null;_.p.titleTextId_=null;_.p.titleCloseEl_=null;_.p.contentEl_=null;_.p.buttonEl_=null;_.p.getCssClass=function(){return this.JSC$10174_class_};
_.p.setTitle=function(h){this.title_=h;this.titleTextEl_&&_.kS(this.titleTextEl_,h)};
_.p.getTitle=function(){return this.title_};
_.p.getContent=function(){return""};
_.p.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var uLM=function(h){h.getElement()||h.render();return h.getElement()};
n8.prototype.getBackgroundElement=function(){this.getElement()||this.render();return n8.superClass_.getBackgroundElement.call(this)};
var QIf=function(h,E){h.backgroundElementOpacity_=E;h.getElement()&&(E=h.getBackgroundElement())&&OUC(E,h.backgroundElementOpacity_)};
n8.prototype.setDraggable=function(h){this.draggable_=h;h8H(this,h&&this.inDocument_)};
n8.prototype.handleDrag=function(){};
var h8H=function(h,E){var g=Pa(h.JSC$10174_class_+"-title-draggable").split(" ");h.getElement()&&(E?ZY(h.titleEl_,g):tAm(h.titleEl_,g));E&&!h.JSC$10176_dragger_?(E=new _.bG(h.getElement(),h.titleEl_),h.JSC$10176_dragger_=E,ZY(h.titleEl_,g),_.vK(h.JSC$10176_dragger_,"start",h.setDraggerLimits_,!1,h),_.vK(h.JSC$10176_dragger_,"drag",h.handleDrag,!1,h)):!E&&h.JSC$10176_dragger_&&(h.JSC$10176_dragger_.dispose(),h.JSC$10176_dragger_=null)};
_.p=n8.prototype;
_.p.JSC$10145_createDom=function(){n8.superClass_.JSC$10145_createDom.call(this);var h=this.getElement(),E=this.JSC$10143_dom_;this.titleTextId_=this.getId();var g=this.getId()+".contentEl";this.titleEl_=E.JSC$9329_createDom("DIV",this.JSC$10174_class_+"-title",this.titleTextEl_=E.JSC$9329_createDom("SPAN",{className:this.JSC$10174_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=E.JSC$9329_createDom("SPAN",this.JSC$10174_class_+"-title-close"));PJH(h,this.titleEl_,this.contentEl_=
E.JSC$9329_createDom("DIV",{className:this.JSC$10174_class_+"-content",id:g}),this.buttonEl_=E.JSC$9329_createDom("DIV",this.JSC$10174_class_+"-buttons"));tsH(this.titleTextEl_,"heading");tsH(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;T7(this.titleCloseEl_,"label","Close");tsH(h,"dialog");T7(h,"labelledby",this.titleTextId_||"");_.Q_(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(h=this.buttons_,h.JSC$10177_element_=this.buttonEl_,h.render());_.Q_(this.buttonEl_,!!this.buttons_);
QIf(this,this.backgroundElementOpacity_)};
_.p.decorateInternal=function(h){n8.superClass_.decorateInternal.call(this,h);h=this.getElement();var E=this.JSC$10174_class_+"-content";this.contentEl_=HF(document,null,E,h)[0];this.contentEl_||(this.contentEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",E),h.appendChild(this.contentEl_));E=this.JSC$10174_class_+"-title";var g=this.JSC$10174_class_+"-title-text",Z=this.JSC$10174_class_+"-title-close";(this.titleEl_=HF(document,null,E,h)[0])?(this.titleTextEl_=HF(document,null,g,this.titleEl_)[0],
this.titleCloseEl_=HF(document,null,Z,this.titleEl_)[0]):(this.titleEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",E),h.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=xZk(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Kz("SPAN",{className:g,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;T7(h,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10143_dom_.JSC$9329_createDom("SPAN",Z),this.titleEl_.appendChild(this.titleCloseEl_));_.Q_(this.titleCloseEl_,this.hasTitleCloseButton_);E=this.JSC$10174_class_+"-buttons";(this.buttonEl_=HF(document,null,E,h)[0])?(this.buttons_=new gh(this.JSC$10143_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10143_dom_.JSC$9329_createDom("DIV",E),h.appendChild(this.buttonEl_),this.buttons_&&(h=this.buttons_,h.JSC$10177_element_=this.buttonEl_,h.render()),_.Q_(this.buttonEl_,
!!this.buttons_));QIf(this,this.backgroundElementOpacity_)};
_.p.enterDocument=function(){n8.superClass_.enterDocument.call(this);A2(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);A2(this).listen(this.buttonEl_,"click",this.onButtonClick_);h8H(this,this.draggable_);A2(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var h=this.getElement();tsH(h,"dialog");this.titleTextEl_.id!==""&&T7(h,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){h=this.JSC$10143_dom_;
var E=this.getBackgroundElement();h.removeNode(this.bgIframeEl_);h.removeNode(E)}this.isVisible()&&Fgf(this,!1)}};
_.p.exitDocument=function(){this.isVisible()&&this.setVisible(!1);h8H(this,!1);n8.superClass_.exitDocument.call(this)};
_.p.setVisible=function(h){h!=this.isVisible()&&(this.inDocument_||this.render(),n8.superClass_.setVisible.call(this,h))};
_.p.onShow=function(){n8.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.p.onHide=function(){n8.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10176_disposeOnHide_&&this.dispose()};
_.p.setDraggerLimits_=function(){var h=this.JSC$10143_dom_.JSC$9327_document_,E=_.S8(XK(h)||window),g=Math.max(h.body.scrollWidth,E.width);h=Math.max(h.body.scrollHeight,E.height);var Z=$ZH(this.getElement());_.mZf(this.getElement())=="fixed"?this.JSC$10176_dragger_.limits=new ym(0,0,Math.max(0,E.width-Z.width),Math.max(0,E.height-Z.height)):this.JSC$10176_dragger_.limits=new ym(0,0,g-Z.width,h-Z.height)};
_.p.onTitleCloseClick_=function(){EWM(this)};
var EWM=function(h){if(h.hasTitleCloseButton_){var E=h.buttons_,g=E&&E.cancelButton_;g?(E=E.get(g),h.dispatchEvent(new Z4(g,E))&&h.setVisible(!1)):h.setVisible(!1)}},gWD=function(h){h.hasTitleCloseButton_=!1;
h.titleCloseEl_&&_.Q_(h.titleCloseEl_,h.hasTitleCloseButton_)};
n8.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;n8.superClass_.disposeInternal.call(this)};
n8.prototype.onButtonClick_=function(h){a:{for(h=h.target;h!=null&&h!=this.buttonEl_;){if(h.tagName=="BUTTON")break a;h=h.parentNode}h=null}if(h&&!h.disabled){h=h.name;var E=this.buttons_.get(h);this.dispatchEvent(new Z4(h,E))&&this.setVisible(!1)}};
n8.prototype.onKey_=function(h){var E=!1,g=!1,Z=this.buttons_,M=h.target;if(h.type=="keydown")if(this.escapeToCancel_&&h.keyCode==27){var W=Z&&Z.cancelButton_;M=M.tagName=="SELECT"&&!M.disabled;W&&!M?(g=!0,E=Z.get(W),E=this.dispatchEvent(new Z4(W,E))):M||(E=!0)}else{if(h.keyCode==9&&h.shiftKey&&M==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(U){}Oj(this.resetBackwardTabWrap_,0,this)}}else if(h.keyCode==13){if(M.tagName=="BUTTON"&&!M.disabled)W=M.name;
else if(M==this.titleCloseEl_)EWM(this);else if(Z){var z=Z.defaultButton_,c;if(c=z)a:{c=N3("BUTTON",Z.JSC$10177_element_);for(var I,B=0;I=c[B];B++)if(I.name==z||I.id==z){c=I;break a}c=null}M=(M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="A")&&!M.disabled;!c||c.disabled||M||(W=z)}W&&Z&&(g=!0,E=this.dispatchEvent(new Z4(W,String(Z.get(W)))))}else M!=this.titleCloseEl_||h.keyCode!=32&&h.key!=" "||EWM(this);if(E||g)h.stopPropagation(),h.preventDefault();E&&this.setVisible(!1)};
var Z4=function(h,E){this.type="dialogselect";this.key=h;this.caption=E};
_.aV(Z4,_.xD);var gh=function(h){Q$.call(this);h||w2();this.cancelButton_=this.JSC$10177_element_=this.defaultButton_=null};
_.aV(gh,Q$);_.p=gh.prototype;_.p.clear=function(){Q$.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.p.set=function(h,E,g,Z){Q$.prototype.set.call(this,h,E);g&&(this.defaultButton_=h);Z&&(this.cancelButton_=h);return this};
_.p.addButton=function(h,E,g){return this.set(h.key,h.caption,E,g)};
_.p.render=function(){if(this.JSC$10177_element_){_.GH(this.JSC$10177_element_,IpW);var h=w2(this.JSC$10177_element_);this.forEach(function(E,g){E=h.JSC$9329_createDom("BUTTON",{name:g},E);g==this.defaultButton_&&(E.className="goog-buttonset-default");this.JSC$10177_element_.appendChild(E)},this)}};
_.p.decorate=function(h){if(h&&h.nodeType==1){this.JSC$10177_element_=h;h=N3("BUTTON",this.JSC$10177_element_);for(var E,g,Z,M=0;E=h[M];M++)if(g=E.name||E.id,Z=xZk(E)||E.value,g){var W=M==0;this.set(g,Z,W,E.name=="cancel");W&&_.GT(E,"goog-buttonset-default")}}};
_.p.getElement=function(){return this.JSC$10177_element_};
var Tef={key:"ok",caption:"OK"},bPf={key:"cancel",caption:"Cancel"},ZIM={key:"yes",caption:"Yes"},MMB={key:"no",caption:"No"},WJf={key:"save",caption:"Save"},pTC={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new gh).addButton(Tef,!0,!0),(new gh).addButton(Tef,!0).addButton(bPf,!1,!0),(new gh).addButton(ZIM,!0).addButton(MMB,!1,!0),(new gh).addButton(ZIM).addButton(MMB,!0).addButton(bPf,!1,!0),(new gh).addButton(pTC).addButton(WJf).addButton(bPf,!0,!0));_.aV(KXa,n8);_.aV(OlV,st);var GqH=_.uz(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),z8M=_.uz(["//apis.google.com/js/rpc.js"]),oLW=_.BR(GqH),FX$=_.BR(z8M),Xxd=null;var V_=function(h,E){_.ms.call(this);this.JSC$10186_element_=h;h=_.gQ(this.JSC$10186_element_)?this.JSC$10186_element_:this.JSC$10186_element_?this.JSC$10186_element_.body:null;this.isRtl_=!!h&&_.nUD(h);this.listenKey_=_.vK(this.JSC$10186_element_,_.RV?"DOMMouseScroll":"mousewheel",this,E)};
_.aV(V_,_.ms);V_.prototype.handleEvent=function(h){var E=0,g=0,Z=h.event_;Z.type=="mousewheel"?(h=aPn(-Z.wheelDelta),Z.wheelDeltaX!==void 0?(E=aPn(-Z.wheelDeltaX),g=aPn(-Z.wheelDeltaY)):g=h):(h=Z.detail,h>100?h=3:h<-100&&(h=-3),Z.axis!==void 0&&Z.axis===Z.HORIZONTAL_AXIS?E=h:g=h);typeof this.maxDeltaX_==="number"&&(E=_.vw(E,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(g=_.vw(g,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(E=-E);E=new c1m(h,Z,E,g);this.dispatchEvent(E)};
var aPn=function(h){return _.PW&&(_.$rV||OoW)&&h%40!=0?h:h/40};
V_.prototype.disposeInternal=function(){V_.superClass_.disposeInternal.call(this);ls(this.listenKey_);this.listenKey_=null};
var c1m=function(h,E,g,Z){_.w6.call(this,E);this.type="mousewheel";this.detail=h;this.deltaX=g;this.deltaY=Z};
_.aV(c1m,_.w6);_.Zt=function(h){var E="instance_";if(h.instance_&&h.hasOwnProperty(E))return h.instance_;E=new h;return h.instance_=E};var ylM;var iID=_.uz(["https://about:blank"]),oWM=_.uz(['javascript:""']),IPM=_.uz(["about:blank"]);_.aV(hV,KXa);_.p=hV.prototype;_.p.JSC$10194_url_="";_.p.JSC$10194_iframe_=null;_.p.iframeLoaded_=!1;_.p.loadedFired_=!1;_.p.callback_=function(){};
_.p.enterDocument=function(){hV.superClass_.enterDocument.call(this);Vyq(this.getBackgroundElement(),A2(this))};
_.p.render=function(h){var E=this;hV.superClass_.render.call(this,h);this.useGapi_?Ipm(this.iframeManager_,window).then(function(){return R8m(E)}).then(null,function(){E.callback_({action:"error"})}):Ppl(this)};
var R8m=function(h){var E=h.JSC$10143_dom_.JSC$9329_createDom("div",["picker-dialog-content","picker-frame"]);_.Q_(E,!1);h.getContentElement().appendChild(E);return RTC(h.iframeManager_,E,function(g){var Z=l0C(g["iframe-command"]);switch(Z.getCommand()){case 1:g=h.callback_;Z=_.iK(Z,Ij,2);var M="";switch(Z.getStatus()){case 2:M="cancel";break;case 1:M="picked";break;case 3:M="error"}var W=_.aD(Z,xg,2,_.ch(cwa));Z=W.length===0?{action:M}:FXM(W,M,_.iK(Z,xof,7));g.call(h,Z);h.setVisible(!1);break;case 4:gWD(h);
h.callback_({action:"loaded"});break;case 7:case 8:g=h.callback_;a:{M=Z.getCommand();W=_.iK(Z,Ij,2);switch(M){case 7:M="uploadScheduled";break;case 8:M="uploadStateChange";break;default:Z={};break a}Z=_.aD(W,xg,2,_.ch(cwa));if(Z.length===0)Z={action:M};else{var z=_.iK(W,xof,7);W=z&&_.mj(z,1);z=Hlm(z);Z=OlH(Z,M,W,z)}}g.call(h,Z)}},h.JSC$10194_url_,h.targetId_,h.rpcToken_).then(function(g){h.JSC$10194_iframe_=g.getIframeEl();
BQD(h);_.Q_(h.JSC$10194_iframe_.parentElement,!0);_.GT(h.getElement(),"picker-dialog");UKl(h);return g})},Ppl=function(h){h.JSC$10194_iframe_=h.JSC$10143_dom_.JSC$9329_createDom("IFRAME",{id:h.targetId_,
name:h.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.hh(h.JSC$10194_iframe_,LJH(h));_.GT(h.getElement(),"picker-dialog");h.getContentElement().appendChild(h.JSC$10194_iframe_);A2(h).listen(h.JSC$10194_iframe_,"load",function(){return void BQD(h)});
h.JSC$10194_iframe_.src=h.JSC$10194_url_;UKl(h)},dKf=function(h){j8M(h,(0,_.DJ)(function(E){E.setAuthToken(this.targetId_,this.rpcToken_)},h))},UKl=function(h){var E=_.b4(_.T8(h.JSC$10194_url_),"title");
E&&h.setTitle(E)},LJH=function(h){return _.RVZ("Internet Explorer")>=7&&_.Gu(h.JSC$10194_url_,"https")?_.BR(iID):_.IV?_.BR(oWM):_.BR(IPM)},BQD=function(h){dKf(h);
h.iframeLoaded_=!0;h.JSC$10194_iframe_.tabIndex=0;h.isVisible()&&h.focus()};
hV.prototype.handleKeydown_=function(h){h.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),h.stopPropagation(),h.preventDefault())};
var j8M=function(h,E){var g=h.JSC$10192_gadgetsDomHelper_;Yqx(function(){E(g.getWindow().gadgets.rpc)},g)};
hV.prototype.setUrl=function(h){h=_.u4(new _.WX(h),"rpcService",this.targetId_);_.u4(h,"rpctoken",this.rpcToken_);_.Uf(h,"rpctoken="+this.rpcToken_);_.ob(h,"https");this.JSC$10194_url_=h.toString();this.JSC$10194_iframe_&&(this.JSC$10194_iframe_.src=this.JSC$10194_url_)};
var CpH=function(h,E){h.callback_=E;j8M(h,(0,_.DJ)(function(g){g.register(this.targetId_,(0,_.DJ)(this.handlePickerAction_,this))},h))};
hV.prototype.handlePickerAction_=function(h){var E=h.action;E=="loaded"&&(this.loadedFired_=!0,J1M(this,new $d$(this.isVisible())),e8D(this),gWD(this),A2(this).unlisten(this.JSC$10143_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10194_iframe_.tabIndex=0);E!="picked"&&E!="cancel"||this.setVisible(!1);this.callback_(h)};
var e8D=function(h){h.JSC$10194_appId_&&J1M(h,new HlW(h.JSC$10194_appId_,window.location.protocol+"//"+window.location.host))};
hV.prototype.setRelayUrl=function(h){j8M(this,(0,_.DJ)(function(E){E.setRelayUrl(this.targetId_,h)},this))};
var J1M=function(h,E){h.useGapi_&&jIk(E,h.iframeManager_).then(null,function(){h.callback_({action:"error"})});
j8M(h,(0,_.DJ)(function(g){g.call(this.targetId_,"picker",null,E)},h))};
hV.prototype.resizePicker_=function(){var h=XK(this.JSC$10143_dom_.JSC$9327_document_)||window;if(_.b4(_.T8(this.JSC$10194_url_),"ignoreLimits")=="true")h=new _.Ns(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.b4(_.T8(this.JSC$10194_url_),"shadeDialog")=="true"){var E=uLM(this);E=XcH(E);var g=_.S8(h);h=g.width-80;g=g.height-40;E&&(h-=E.left?E.left:0,h-=E.right?E.right:0,g-=E.top?E.top:0,g-=E.bottom?E.bottom:0);h=new _.Ns(h>0?h:0,g>0?g:0)}else(E=this.preferredDialogWidth_)?(E=Math.max(320,
Math.min(1051,E)),(g=this.preferredDialogHeight_)||(g=_.S8(h).height*.85),g=Math.max(480,Math.min(650,g))):(E=_.S8(h),g=E.width*.618,g=g<E.height?Math.round(Math.max(480,Math.min(650,g*.85))):Math.round(Math.max(480,Math.min(650,E.height*.85))),E=Math.round(g/.618)),h=_.S8(h),E=Math.min(E,Math.max(h.width,320)),g=Math.min(g,Math.max(h.height,480)),h=new _.Ns(E,g);_.vUl(this.getContentElement(),h);this.reposition()};
hV.prototype.reposition=function(){if(_.b4(_.T8(this.JSC$10194_url_),"shadeDialog")=="true"){var h=$ZH(this.getElement()),E=_.S8(this.JSC$10143_dom_.getWindow());h=Math.floor(E.width/2-h.width/2);E=uLM(this);if(E=XcH(E)){var g=E.left?E.left:0;g+=E.right?E.right:0;h=Math.floor(h-g/2)}h=h>0?h:0;E=xp(this.JSC$10143_dom_).y;Tb(this.getElement(),h,E)}else hV.superClass_.reposition.call(this)};
hV.prototype.setVisible=function(h){if(h!=this.isVisible()&&this.autoSizeDialog_){var E=this.JSC$10143_dom_.getWindow();h?(this.resizePicker_(),A2(this).listen(E,"resize",this.resizePicker_),this.iframeLoaded_||A2(this).listen(E,"keydown",this.handleKeydown_)):(A2(this).unlisten(E,"resize",this.resizePicker_),this.iframeLoaded_||A2(this).unlisten(E,"keydown",this.handleKeydown_))}hV.superClass_.setVisible.call(this,h);J1M(this,new $d$(h))};
hV.prototype.focus=function(){hV.superClass_.focus.call(this);if(this.JSC$10194_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10194_iframe_.focus()}catch(h){}};var VV=function(h,E){E=E===void 0?hV:E;st.call(this,h);this.pickerConstructor=E;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(h=window.location.origin)||(h=window.location.protocol+"//"+window.location.host);h&&this.urlParamMap_.set("origin",h);this.postProcessors_=[]};
_.f(VV,OlV);VV.prototype.JSC$10199_disposeOnHide_=!1;
VV.prototype.build=function(){this.JSC$10100_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10100_appId_);this.getRelayUrl()||this.setRelayUrl(_.P5(_.Uf(_.B5(_.T8(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var h=new this.pickerConstructor(q$M(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);h.JSC$10176_disposeOnHide_=this.JSC$10199_disposeOnHide_;
h.JSC$10194_appId_=this.JSC$10100_appId_;h.loadedFired_&&e8D(h);CpH(h,this.callback_);return h};
var fPH=function(h){h.urlParamMap_.set("multiselectEnabled","true");return h};
_.p=VV.prototype;_.p.getHeight=function(){return this.dialogHeight_};
_.p.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.p.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.p.getTitle=function(){return this.urlParamMap_.get("title")};
_.p.getWidth=function(){return this.dialogWidth_};
var NQn=function(h){h.JSC$10199_disposeOnHide_=void 0;return h};
VV.prototype.setRelayUrl=function(h){this.urlParamMap_.set("parent",h);return this};
var tMC=function(h,E){h.urlParamMap_.set("selectButtonLabel",E);return h};
VV.prototype.setSize=function(h,E){this.dialogWidth_=h;this.dialogHeight_=E;return this};
VV.prototype.setTitle=function(h){this.urlParamMap_.set("title",h);return this};
var q$M=function(h){h.postProcessors_.length&&h.urlParamMap_.set("pp",JSON.stringify(h.postProcessors_));h.urlParamMap_.set("nav",lVD(h.nav_));var E=new _.WX(h.getBaseUrl());h.urlParamMap_.forEach(function(g,Z){_.u4(E,Z,g)});
return E};var wTl=function(h,E){h.name!==void 0?(this.name=h.name,this.code=S$C[h.name]):(this.code=h=h.code,this.name=xKl(h));_.g$.call(this,bdk("%s %s",this.name,E))};
_.aV(wTl,_.g$);var xKl=function(h){var E=_.Kt.findKey(S$C,function(g){return h==g});
if(E===void 0)throw Error("hb`"+h);return E},Ml={},S$C=(Ml.AbortError=3,Ml.EncodingError=5,Ml.InvalidModificationError=9,Ml.InvalidStateError=7,Ml.NotFoundError=1,Ml.NotReadableError=4,Ml.NoModificationAllowedError=6,Ml.PathExistsError=12,Ml.QuotaExceededError=10,Ml.SecurityError=2,Ml.SyntaxError=8,Ml.TypeMismatchError=11,Ml);var DKk=function(h,E){_.xD.call(this,h.type,E);this.event_=h};
_.aV(DKk,_.xD);var lPm=function(h,E,g){g===void 0&&(g=h.size);return h.slice?h.slice(E,g):null};var PK$=new WeakMap,RTz=function(h,E){h=[h];for(var g=E.length-1;g>=0;--g)h.push(typeof E[g],E[g]);return h.join("\v")};_.U2N(function(){if(!_.MN.Blob)return!1;var h=new Uint8Array(100);try{var E=new Blob([h])}catch(g){return!1}return E.size!=100?!1:!0});
var r1B=_.U2N(function(){if(!_.MN.Blob)return!1;var h=new Uint8Array(100);try{var E=new Blob([h])}catch(g){return!1}return lPm(E,0,1)===null?!1:!0});_.MN.U3bHHf!=null||(_.MN.U3bHHf=0);_.MN.U3bHHf++;_.mKH=new WeakMap;_.vWl=new WeakMap;var jIx={};var Za=void 0;var CKq=Symbol("pb");var m2N=pw("WizInjectionContext_Dispatcher");var Gt=Symbol("qb");var CF,tx;CF=function(){this.afterRenderCallbacks=null};
_.Mja=Symbol("rb");tx=function(h){this.props=h;this.__unmounted=!1};
tx.prototype.didPatch=function(){};
tx.prototype.didMount=function(){};
tx.prototype.didUnmount=function(){};
tx.prototype.didUpdate=function(){};_.x24=pw("WizInjectionContext_RootElement");var D2a=pw("WizInjectionContext_AppContext"),wuO=pw("WizInjectionContext_ModelRootElement"),lp$=pw("WizInjectionContext_RendererData"),rtq=pw("WizInjectionContext_InjectingConstructor"),SY4=pw("WizInjectionContext_AsyncDeps"),vLZ={};var Xux=!1;var kn$={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:Dra,enableLazyTsx:lox,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:wIz,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var z9=Object.assign({},{attributes:{},handleError:function(h){throw h;}},kn$);var HIf=Symbol("vb"),eA=Symbol("wb"),XT$=Symbol("xb"),OIx=Symbol("yb"),A1z=mf(function(h){return ap(h)&&HIf in h});var QIZ=Symbol("zb"),Ws={},bPZ=(Ws[QIZ]=!0,Ws.debugName="[component]",Ws.getComponentStack=function(){for(var h=[],E=this;E;)h8V(E)&&h.push(E.debugName),E=E.parent;return h},Ws.registerSignal=function(){},Ws.registerEffect=function(){},Ws);var cm=null,op=!1,MM$=1,IP$=Symbol("Db"),d9={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var pb=Symbol("Eb"),G1=Symbol("Fb"),Rp=Symbol("Gb"),oW$=Object.assign({},d9,{value:pb,dirty:!0,error:null,equal:EWa,kind:"computed",producerMustRecompute:function(h){return h.value===pb||h.value===G1},
producerRecomputeValue:function(h){if(h.value===G1)throw Error("Z");var E=h.value;h.value=G1;var g=aPM(h),Z=!1;try{var M=h.computation();iX(null);Z=E!==pb&&E!==Rp&&M!==Rp&&h.equal(E,M)}catch(W){M=Rp,h.error=W}finally{iId(h,g)}Z?h.value=E:(h.value=M,h.version++)}});Object.assign({},d9,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var UKO=function(){throw Error();};var j8$=null,Ppz=Object.assign({},d9,{equal:EWa,value:void 0,kind:"signal"});Object.assign({},d9,{value:pb,dirty:!0,error:null,equal:EWa,kind:"linkedSignal",producerMustRecompute:function(h){return h.value===pb||h.value===G1},
producerRecomputeValue:function(h){if(h.value===G1)throw Error("Z");var E=h.value;h.value=G1;var g=aPM(h);try{var Z=h.source();var M=h.computation(Z,E===pb||E===Rp?void 0:{source:h.sourceValue,value:E});h.sourceValue=Z}catch(W){M=Rp,h.error=W}finally{iId(h,g)}E!==pb&&M!==Rp&&h.equal(E,M)?h.value=E:(h.value=M,h.version++)}});Object.assign({},d9,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(h){h.schedule!==null&&h.schedule(h.ref)},
hasRun:!1,cleanupFn:function(){}});var CpV=Symbol("Hb"),U9=Symbol("Ib");var Lw=Array.isArray;var wTO;var $KM={},lPW=xKz(Object.assign({},{consumerAllowSignalWrites:!0},$KM)),eX=xKz(Object.assign({},{consumerAllowSignalWrites:!0},$KM));var q6=0,fw=!1,z1=function(){this.queue=new Set};
z1.prototype.schedule=function(h){this.queue.add(h)};
z1.prototype.remove=function(h){this.queue.delete(h)};
z1.prototype.clear=function(){this.queue.clear()};
var vWz=Symbol("Nb"),r1$=Symbol("Ob"),a2=function(){z1.apply(this,arguments)};
_.f(a2,z1);a2.prototype.flush=function(){if(this.queue.size){fw=!0;for(var h=_.G(this.queue),E=h.next();!E.done;E=h.next()){E=E.value;this.queue.delete(E);try{E.run()}catch(g){KJl(g)}}fw=!1}};
var OIk=function(){a2.apply(this,arguments)};
_.f(OIk,a2);var mKV=new OIk,nWM=function(){a2.apply(this,arguments)};
_.f(nWM,a2);nWM.prototype.schedule=function(h){var E=this;return _.a(function(g){if(g.nextAddress==1)return z9.enableQueueEffectAndOnInitInitialRuns?g.jumpTo(2):g.yield(Promise.resolve(),3);if(g.nextAddress!=2)return h.run(),g.return();E.queue.add(h);_.SK(g)})};
var HIZ=new nWM,cs=function(){z1.apply(this,arguments)};
_.f(cs,z1);cs.prototype.flush=function(){this.queue.size&&TQV(this.queue)};
var XTM=function(){cs.apply(this,arguments)};
_.f(XTM,cs);XTM.prototype.schedule=function(h){h.hasRun?this.queue.add(h):h.run()};
XTM.prototype.flush=function(){if(this.queue.size)if(z9.flushRenderEffectsDuringRender){var h=this.queue;this.queue=new Set;TQV(h)}else TQV(this.queue)};
var KJO=new XTM,Y$m=function(){cs.apply(this,arguments)};
_.f(Y$m,cs);Y$m.prototype.schedule=function(h){var E=this;return _.a(function(g){if(g.nextAddress==1)return z9.enableQueueEffectAndOnInitInitialRuns||h.hasRun?g.jumpTo(2):g.yield(Promise.resolve(),3);if(g.nextAddress!=2)return h.run(),g.return();E.queue.add(h);_.SK(g)})};
var Y$W=new Y$m,s8B=function(){cs.apply(this,arguments)};
_.f(s8B,cs);var nW$=new s8B,VMO=[KJO,mKV,nW$],FJ4=[HIZ,Y$W],VMl=[KJO,nW$,Y$W],bIq=[].concat(_.$E(VMO),_.$E(FJ4)),kqH=[];j8$=function(){y1z();for(var h=_.G(kqH),E=h.next();!E.done;E=h.next())E=E.value,E()};
var KJl=Wa;var SA=Symbol("Pb");var tV=null,hIO,Ewu=null,gwq;var iQ={},y1C=Object.assign({},d9,(iQ[HIf]=!0,iQ.effectType=eA,iQ.isResettableContext=!0,iQ.hasRun=!1,iQ.effectFn=null,iQ.consumerIsAlwaysLive=!0,iQ.consumerAllowSignalWrites=!0,iQ.consumerMarkedDirty=s8$,iQ.kind="effect",iQ.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(op)throw Error("Qb");this.dirty=!1;if(!this.hasRun||WJZ(this)){this.hasRun=!0;tsV(this);var h=_.M6(this),E=aPM(this);Fgu("effectRun",this.debugName);try{Da(this.effectFn,this.componentStack,this)}catch(g){throw z9.enableContextBasedComponentStacks&&
w9(g),g;}finally{AtV("effectRun",this.debugName),iId(this,E),_.M6(h)}}}},iQ.componentStack=void 0,iQ.debugName="[effect]",iQ[Symbol.dispose]=function(){if(Ip(this))for(var h=this.producers;h!==void 0;)h=c1W(h);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;h=_.G(VMl);for(var E=h.next();!E.done;E=h.next())E.value.remove(this);Ne$(this)},iQ));var WOV=Object.assign({},y1C,{effectType:XT$});var p6V=Symbol("Rb");var G$x=Object.assign({},y1C,{effectType:eA});var sTu=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 cfW={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},a_x=
{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}]}},bAW={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},I_4=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],owx={"*":{async:1,dir:0,loading:2,target:3}};var FJD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,o2={},Pf$=(o2[1]=null,o2[2]=function(h,E){return E instanceof Fj?ux(E):Xj.toString()},o2[3]=function(h,E){return Hi(E)?_.$r(E):FJD.test(String(E))?String(E):Xj.toString()},o2[4]=function(h,E){return E instanceof xr?_.lx(E):Xj.toString()},o2[5]=function(h,E){return String(E)},o2[7]=null,o2[8]=null,o2[10]=null,o2);var aq$=Symbol("Xb");var rK$=function(h){var E=A1l,g=h,Z="",M="",W=1;h<0&&(h=-h);if(h===Infinity)h=(Infinity*Math.sign(g)).toString();else{for(var z=0;z<TQH.length;z++){var c=TQH[z];W=E[c];if(h>=W||W<=1&&h>.1*W){Z=c;break}}Z?(Z+="B",M=" "):W=1;h=Math.round(g/W*10)/10+M+Z}return h},TQH="Y Z E P T G M K  m u n".split(" "),A1l={"":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};_.bIF=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 Io={};RegExp.prototype.hasOwnProperty("sticky");var k$u=function(h){h=String(h);for(var E=function(Z,M,W){for(var z=Math.min(M.length-W,Z.length),c=0;c<z;c++){var I=M[W+c];if(Z[c]!==("A"<=I&&I<="Z"?I.toLowerCase():I))return!1}return!0},g=0;(g=h.indexOf("<",g))!=-1;){if(E("\x3c/script",h,g)||E("\x3c!--",h,g))return"zSoyz";
g+=1}return h};var YZ={default:"__default"};var Cfz=Object.prototype.hasOwnProperty;LOq.prototype=Object.create(null);var G$=qvW();var gX=null;var Hga=function(h){this.created=[];this.deleted=[];this.node=h};var $CM=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var h=this,E=h;h;)E=h,h=h.parentNode;return E};var Nau=function(h,E){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=h;this.key=E;this.text=void 0};var T9=null,bX=null,kZ=null,Q6=null,DCz=[],w6d=Sva,hx=[],EW=[],zA$=function(h){return KOa(function(E,g,Z){kZ=bX=E;bX=null;g(Z);xCO(null);bX=kZ;kZ=kZ.parentNode;return E},h)}(),GKd=function(h){return KOa(function(E,g,Z){var M={nextSibling:E};
bX=M;g(Z);kZ&&xCO(E.nextSibling);return M===bX?null:bX},h)}();var ZG=[],nw$=0;var Ma=new LOq;var OQ=new LOq;var uik=qvW(),AfZ=uik[YZ.default],FOd=uik.style,VYO=["focusin","focusout"],u9q="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var $_V=function(){},NA$=function(){},YHN=function(){},OQW=function(){};var pF=Symbol("bc");var ZQd,gN$=ENO;var UW=Symbol("cc");var Xl4=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(" ")),
nN$=new Set(["a","font","script","style","title"]);var BJ={setUp:BAq,tearDown:BAq,log:BAq,logNodeRange:BAq,graft:function(h,E){E()}};var qa={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var fF=null,Na=function(h,E){tx.call(this,h);var g=this;this.functionComponent=E;this.hooks=[];this.hookCounter=0;this.disposeEffects=mE(function(Z){g.effectContext=Z;_.r9(function(){wlV(g,g.el)})},z9.alwaysTrackContexts||!!Za)};
_.f(Na,tx);Na.prototype.render=function(h){var E=fF;fF=this;this.hookCounter=0;var g=iX(eX),Z=_.M6(this.effectContext);try{return Fgu("render",this.componentName),this.functionComponent(h)}finally{AtV("render",this.componentName),_.M6(Z),iX(g),fF=E}};
_.ze.Object.defineProperties(Na.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return uix(this.functionComponent)}}});var s5q=Symbol("qc"),vNd=function(h,E,g){this.afterRenderCallbacks=null;this.kind=h;this.props=E;this.children=g};
_.f(vNd,CF);vNd.prototype.render=function(){var h=m_M(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var E=_.G(this.afterRenderCallbacks),g=E.next();!g.done;g=E.next())g=g.value,h=g(h);return h};
vNd.prototype.getChildren=function(){return this.children};var keO=[];UKO=function(h){throw Error("ob`"+h.debugName);};
(function(){var h=gX;gX=function(E){h==null||h(E);yQz(E)}})();Object.assign({},y1C,{effectType:eA,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var h=this.elementRef;var E;h.element!=null||(h.element=(E=h.document.getElementById(h.value))!=null?E:void 0);h=h.element;for(E=this.attributes;E;){var g=E.signal();g!==E.prevValue&&(E.prevValue=g,E.namespace===1?h[E.name]=g:sTu.has(E.name)?Xh(h,E.name,g?"":null):Xh(h,E.name,g));E=E.next}}});Object.assign({},y1C,{effectType:eA,hasRun:!0});_.P.debugName="RlDudd";var FrV={nonNullableCondIsNull:function(){return Error("vc")}};var hhu=function(){this.map=new Map};
hhu.prototype.push=function(h,E){var g=this.map;g.has(h)&&(this.multi||(this.multi=new Map),this.multi.set(E,g.get(h)));g.set(h,E)};
hhu.prototype.pop=function(h){var E=this.map,g=E.get(h),Z;g!==void 0&&((Z=this.multi)==null?0:Z.has(g))?(E.set(h,this.multi.get(g)),this.multi.delete(g)):E.delete(h);return g};_.SX.debugName="nsTGHd";_.x3.debugName="tbhMcf";_.wX.debugName="zyMFzb";_.DG.debugName="vI1rtf";_.pX$={OUT_OF_ORDER_HOOK_CALL:function(h){return Error("wc`"+h)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(h,E){return Error("Ac`"+((E===void 0?0:E)?"IDOM":"Reactive")+"`"+(lI(h)?h.description:h))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(h,E){return Error("Bc`"+(lI(h)?h.description:h)+"`"+E)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(h){return Error("Cc`"+(lI(h)?h.description:h))},
USE_ELEMENT_NOT_ASSIGNED:function(h){return Error("Dc`"+(lI(h)?h.description:h))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(h){return Error("Ec`"+(lI(h)?h.description:h))}};ZQd=HQ4;var oed=Symbol("Fc");SHN({beforeRender:function(h){var E=_.M6(h.effectContext);try{var g;((g=h.__syncEffects)==null?0:g.length)&&PwO(h.__syncEffects)}finally{_.M6(E)}},
didPatch:function(h){var E=_.M6(h.effectContext);try{var g;((g=h.__syncEffects)==null?0:g.length)&&PwO(h.__syncEffects)}finally{_.M6(E)}},
didUnmount:function(h){var E;((E=h.hooks)==null?0:E.length)&&h.hooks.forEach(RhV)}});var Q8l,hIl,Ewf;Q8l=_.MN.window;_.KF=(Q8l==null?void 0:(hIl=Q8l.yt)==null?void 0:hIl.config_)||(Q8l==null?void 0:(Ewf=Q8l.ytcfg)==null?void 0:Ewf.data_)||{};_.Wu("yt.config_",_.KF);var gwF={},dHx=[];_.xX=function(h){var E=_.VF.apply(1,arguments);var g=Error.call(this,h);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.args=[].concat(_.$E(E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(_.xX,Error);var r9Z=function(h,E,g){this.actionName=h;this.optionalAction=E===void 0?!1:E;this.args=g===void 0?null:g;this.returnValue=[]};_.I2=function(h){this.name=h};_.VX=new _.I2("signalAction");var DHd=/^[\w.]*$/,fAd={q:!0,search_query:!0},q7u=String(ehN);var R2;R2=Symbol("Gc");_.Ps=function(h){this.name=h};
_.Ps.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var lAd=function(h){this.key=h},$Hd=function(h){this.deferredKey=h},mHz=function(){var h=this;
this.providers=new Map;this.JSC$10493_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(h.providers)}}};
mHz.prototype.addProvider=function(h){this.providers.set(h.provide,h);var E=this.JSC$10493_deferred.get(h.provide);if(E)try{E.resolver(this.resolve(h.provide))}catch(g){E.rejector(g)}};
mHz.prototype.resolve=function(h){return h instanceof $Hd?ZgH(this,h):h instanceof lAd?MYH(this,h.key,[],!0):MYH(this,h,[])};
var ZgH=function(h,E){E=E.deferredKey;if(h.JSC$10493_deferred.has(E))return h.JSC$10493_deferred.get(E).promise;var g={};g.promise=new Promise(function(Z,M){g.resolver=Z;g.rejector=M});
h.JSC$10493_deferred.set(E,g);return g.promise},MYH=function(h,E,g,Z){Z=Z===void 0?!1:Z;
if(g.indexOf(E)>-1)throw Error("Hc`"+E);if(h.cachedValues.has(E))return h.cachedValues.get(E);if(!h.providers.has(E)){if(Z)return;throw Error("Ic`"+E);}Z=h.providers.get(E);g.push(E);if(Z.useValue!==void 0)var M=Z.useValue;else if(Z.useFactory)M=Z[R2]?WOH(h,Z[R2],g):[],M=Z.useFactory.apply(Z,_.$E(M));else if(Z.useClass){M=Z.useClass;var W=M[R2]?WOH(h,M[R2],g):[];M=new (Function.prototype.bind.apply(M,[null].concat(_.$E(W))))}else throw Error("Jc`"+E);g.pop();Z.skipCache||h.cachedValues.set(E,M);return M},
WOH=function(h,E,g){return E?E.map(function(Z){return Z instanceof lAd?MYH(h,Z.key,g,!0):MYH(h,Z,g)}):[]};var rTx;var kW=new _.Ps("ENDPOINT_HANDLER_TOKEN");_.yX=new _.I2("urlEndpoint");var p6H=function(){this.data=[];this.cachedPackedInt52=-1};
p6H.prototype.set=function(h,E){E=E===void 0?!0:E;0<=h&&h<52&&Number.isInteger(h)&&this.data[h]!==E&&(this.data[h]=E,this.cachedPackedInt52=-1)};
p6H.prototype.get=function(h){return!!this.data[h]};
var G$k=function(h){h.cachedPackedInt52===-1&&(h.cachedPackedInt52=h.data.reduce(function(E,g,Z){return E+(g?Math.pow(2,Z):0)},0));
return h.cachedPackedInt52};var uF$=function(h){var E=zIA;h=h===void 0?_.yy("yt.ads.biscotti.lastId_")||"":h;var g=Object,Z=g.assign,M={};M.dt=pmC;M.flash="0";a:{try{var W=E.JSC$10499_win_.top.location.href}catch(E4){W=2;break a}W=W?W===E.doc_.location.href?0:1:2}M=(M.frm=W,M);try{M.u_tz=-(new Date).getTimezoneOffset();try{var z=QP.history.length}catch(E4){z=0}M.u_his=z;var c;M.u_h=(c=QP.screen)==null?void 0:c.height;var I;M.u_w=(I=QP.screen)==null?void 0:I.width;var B;M.u_ah=(B=QP.screen)==null?void 0:B.availHeight;var U;M.u_aw=
(U=QP.screen)==null?void 0:U.availWidth;var L;M.u_cd=(L=QP.screen)==null?void 0:L.colorDepth}catch(E4){}z=E.JSC$10499_win_;try{var d=z.screenX;var C=z.screenY}catch(E4){}try{var q=z.outerWidth;var w=z.outerHeight}catch(E4){}try{var r=z.innerWidth;var v=z.innerHeight}catch(E4){}try{var H=z.screenLeft;var u=z.screenTop}catch(E4){}try{r=z.innerWidth,v=z.innerHeight}catch(E4){}try{var k=z.screen.availWidth;var y=z.screen.availTop}catch(E4){}d=[H,u,d,C,k,y,q,w,r,v];C=oda(!1,E.JSC$10499_win_.top);q={};
var A=A===void 0?_.MN:A;w=new p6H;"SVGElement"in A&&"createElementNS"in A.document&&w.set(0);r=Mxf();r["allow-top-navigation-by-user-activation"]&&w.set(1);r["allow-popups-to-escape-sandbox"]&&w.set(2);A.crypto&&A.crypto.subtle&&w.set(3);"TextDecoder"in A&&"TextEncoder"in A&&w.set(4);A=G$k(w);E=(q.bc=A,q.bih=C.height,q.biw=C.width,q.brdim=d.join(),q.vis=ZFd(E.doc_),q.wgl=!!QP.WebGLRenderingContext,q);g=Z.call(g,M,E);g.ca_type="image";h&&(g.bid=h);return g},zIA=new function(){var h=window.document;
this.JSC$10499_win_=window;this.doc_=h};
_.Wu("yt.ads_.signals_.getAdSignalsString",function(h){return NCd(uF$(h))});_.zZ();navigator.userAgent.indexOf(" (CrKey ");var Y7N="XMLHttpRequest"in _.MN?function(){return new XMLHttpRequest}:null;var a_k="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),cfm=[].concat(_.$E(a_k),["client_dev_set_cookie"]);var bZ4={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"},kGz="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(_.$E(a_k)),Gyd=!1,Fcu=_.QaO,MDx=TC$;var SzV=[{messageFn:function(h){return"Cannot read property '"+h.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(h){return"Cannot call '"+h.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(h){return h.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var igD={messageWeights:[],callbackWeights:[{callback:ieN,weight:500},{callback:o8O,weight:500}]};var owk=function(){this.callbackWeights=[];this.messageWeights=[]},I_D,tvM=function(){if(!I_D){var h=I_D=new owk;
h.messageWeights.length=0;h.callbackWeights.length=0;j7x(h,igD)}return I_D},j7x=function(h,E){E.messageWeights&&h.messageWeights.push.apply(h.messageWeights,E.messageWeights);
E.callbackWeights&&h.callbackWeights.push.apply(h.callbackWeights,E.callbackWeights)};_.aV(_.Jl,_.wO);_.Jl.prototype.subscribe=function(h,E,g){var Z=this.topics_[h];Z||(Z=this.topics_[h]=[]);var M=this.JSC$10523_key_;this.subscriptions_[M]=h;this.subscriptions_[M+1]=E;this.subscriptions_[M+2]=g;this.JSC$10523_key_=M+3;Z.push(M);return M};
var RIH=function(h){var E=ldu,g=!1,Z=E.subscribe("handleError",function(M){g||(g=!0,this.unsubscribeByKey(Z),h.apply(void 0,arguments))},E)};
_.Jl.prototype.unsubscribe=function(h,E,g){if(h=this.topics_[h]){var Z=this.subscriptions_;if(h=h.find(function(M){return Z[M+1]==E&&Z[M+2]==g}))return this.unsubscribeByKey(h)}return!1};
_.Jl.prototype.unsubscribeByKey=function(h){var E=this.subscriptions_[h];if(E){var g=this.topics_[E];this.publishDepth_!=0?(this.pendingKeys_.push(h),this.subscriptions_[h+1]=function(){}):(g&&_.Xz(g,h),delete this.subscriptions_[h],delete this.subscriptions_[h+1],delete this.subscriptions_[h+2])}return!!E};
_.Jl.prototype.publish=function(h,E){var g=this.topics_[h];if(g){var Z=Array(arguments.length-1),M=arguments.length,W;for(W=1;W<M;W++)Z[W-1]=arguments[W];if(this.async_)for(W=0;W<g.length;W++)M=g[W],PfM(this.subscriptions_[M+1],this.subscriptions_[M+2],Z);else{this.publishDepth_++;try{for(W=0,M=g.length;W<M&&!this.isDisposed();W++){var z=g[W];this.subscriptions_[z+1].apply(this.subscriptions_[z+2],Z)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;g=this.pendingKeys_.pop();)this.unsubscribeByKey(g)}}return W!=
0}return!1};
var PfM=function(h,E,g){_.HQ(function(){h.apply(E,g)})};
_.Jl.prototype.clear=function(h){if(h){var E=this.topics_[h];E&&(E.forEach(this.unsubscribeByKey,this),delete this.topics_[h])}else this.subscriptions_.length=0,this.topics_={}};
_.Jl.prototype.getCount=function(h){if(h){var E=this.topics_[h];return E?E.length:0}h=0;for(E in this.topics_)h+=this.getCount(E);return h};
_.Jl.prototype.disposeInternal=function(){_.Jl.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var ldu=new _.Jl;var RI=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(RI,_.GN);RI.prototype.getColdHashData=function(){return _.mj(this,3)};
RI.prototype.getHotHashData=function(){return _.mj(this,5)};
RI.prototype.setHotHashData=function(h){return _.ln(this,5,h)};var f9M=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(f9M,_.GN);var Q9u=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Q9u,_.GN);_.p=Q9u.prototype;_.p.getDeviceId=function(){return _.mj(this,6)};
_.p.getExperimentIds=function(h){var E=_.Tp(this,9,_.Wc,3,!0);kuO(E,h);return E[h]};
_.p.getPlayerType=function(){return _.vW(this,36)};
_.p.setHomeGroupInfo=function(h){return _.fM(this,81,h)};
_.p.clearLocationPlayabilityToken=function(){return _.II(this,89)};var J1=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(J1,_.GN);J1.prototype.setKey=function(h){return _.ln(this,1,h)};
J1.prototype.getValue=function(){return $g(this,2,ExM)};
var ExM=[2,3,4,5,6];var BaA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(BaA,_.GN);BaA.prototype.setTrackingParams=function(h){return _.II(this,1,_.xM(h,!1))};var hnq=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(hnq,_.GN);var S8N=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(S8N,_.GN);S8N.prototype.getExperimentIds=function(h){var E=_.Tp(this,5,_.RHM,3,!0);kuO(E,h);return E[h]};var NK=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(NK,_.GN);NK.prototype.getToken=function(){return _.ef(this,2)};
NK.prototype.setToken=function(h){return _.ln(this,2,h)};var qK=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qK,_.GN);qK.prototype.setSafetyMode=function(h){return _.oI(this,5,h)};var CI=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(CI,_.GN);CI.prototype.setClient=function(h){return _.fM(this,1,h)};var tlz={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 NN4;_.Km=function(){var h=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.MN.addEventListener("beforeinstallprompt",function(E){E.preventDefault();h.deferredInstallPrompt=E});
_.MN.addEventListener("appinstalled",function(){h.appInstalledEventFired=!0},{once:!0})};
NN4=function(){if(!_.MN.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.MN.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.MN.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.MN.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.MN.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(h){return"WEB_DISPLAY_MODE_UNKNOWN"}};var DRa=function(){this.syncHeaders=!0},l9N=function(h){var E={},g=[];
"USER_SESSION_ID"in _.KF&&g.push({key:"u",value:_.nF("USER_SESSION_ID")});if(g=_.hqz(g))E.Authorization=g,g=h=h==null?void 0:h.sessionIndex,g===void 0&&(g=Number(_.nF("SESSION_INDEX",0)),g=isNaN(g)?0:g),_.J("voice_search_auth_header_removal")||(E["X-Goog-AuthUser"]=g.toString()),"INNERTUBE_HOST_OVERRIDE"in _.KF||(E["X-Origin"]=window.location.origin),h===void 0&&"DELEGATED_SESSION_ID"in _.KF&&(E["X-Goog-PageId"]=_.nF("DELEGATED_SESSION_ID"));return E};var UCD={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Bs=_.yy("ytglobal.prefsUserPrefsPrefs_")||{},LOF;_.Wu("ytglobal.prefsUserPrefsPrefs_",Bs);_.UR=function(){this.cookieName=_.nF("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.nF("ALT_PREF_COOKIE_DOMAIN","youtube.com");var h=_.qd.get(this.cookieName,void 0);h&&this.parse(h)};
_.xe=function(){LOF||(LOF=new _.UR);return LOF};
_.UR.prototype.get=function(h,E){jTf(h);dCm(h);h=Bs[h]!==void 0?Bs[h].toString():null;return h!=null?h:E?E:""};
_.UR.prototype.set=function(h,E){jTf(h);dCm(h);if(E==null)throw Error("Mc");Bs[h]=E.toString()};
_.UR.prototype.getFlag=function(h){return!!((Cfl("f"+(Math.floor(h/31)+1))||0)&1<<h%31)};
_.wC=function(h,E,g){h="f"+(Math.floor(E/31)+1);E=1<<E%31;var Z=Cfl(h)||0;Z=g?Z|E:Z&~E;Z===0?delete Bs[h]:(g=Z.toString(16),Bs[h]=g.toString())};
_.UR.prototype.remove=function(h){jTf(h);dCm(h);delete Bs[h]};
_.UR.prototype.save=function(){var h=!0;_.J("web_secure_pref_cookie_killswitch")&&(h=!1);_.fl(this.cookieName,this.dump(),63072E3,this.cookieDomain,h)};
_.UR.prototype.clear=function(){_.Kt.clear(Bs)};
_.UR.prototype.dump=function(){var h=[],E;for(E in Bs)Bs.hasOwnProperty(E)&&h.push(E+"="+encodeURIComponent(String(Bs[E])));return h.join("&")};
var dCm=function(h){if(/^f([1-9][0-9]*)$/.test(h))throw Error("Nc`"+h);},jTf=function(h){if(!/^\w+$/.test(h))throw Error("Oc`"+h);
},Cfl=function(h){h=Bs[h]!==void 0?Bs[h].toString():null;
return h!=null&&/^[A-Fa-f0-9]+$/.test(h)?parseInt(h,16):null};
_.UR.prototype.parse=function(h){h=decodeURIComponent(h).split("&");for(var E=0;E<h.length;E++){var g=h[E].split("="),Z=g[0];(g=g[1])&&(Bs[Z]=g.toString())}};var CVa={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"},xRZ={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},wpz={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},eO$={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var UL;_.Lb=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.xW=function(h,E,g){return h.addJob(E,0,g)};
_.Lb.prototype.addLowPriorityJob=function(h,E){return this.addJob(h,1,E)};
_.lv=function(h,E,g){return h.addJob(E,2,g)};
_.Pw=function(h,E,g){return h.addJob(E,3,g)};
_.LO=function(h,E,g){return h.addJob(E,4,g)};
UL=function(h){var E=_.yy("yt.scheduler.instance.addImmediateJob");E?E(h):h()};
_.Lb.prototype.debounce=function(h,E,g){var Z=this,M=0,W=function(){M&&Z.cancelJob(M);M=Z.addJob(h,E,g);Z.cancelDebouncedJobMap.set(W,M)};
return W};
_.Lb.prototype.cancelThrottle=function(h){(h=this.cancelThrottledJobMap.get(h))&&h()};var jb=function(){_.Lb.apply(this,arguments)};
_.f(jb,_.Lb);_.xu=function(){jb.instance||(jb.instance=new jb);return jb.instance};
jb.prototype.addJob=function(h,E,g){g!==void 0&&Number.isNaN(Number(g))&&(g=void 0);var Z=_.yy("yt.scheduler.instance.addJob");return Z?Z(h,E,g):g===void 0?(h(),NaN):_.Bx(h,g||0)};
jb.prototype.cancelJob=function(h){if(h===void 0||!Number.isNaN(Number(h))){var E=_.yy("yt.scheduler.instance.cancelJob");E?E(h):_.Ll(h)}};
jb.prototype.start=function(){var h=_.yy("yt.scheduler.instance.start");h&&h()};
jb.prototype.pause=function(){var h=_.yy("yt.scheduler.instance.pause");h&&h()};
_.KP=_.xu();_.wf.prototype.set=function(h,E){E===void 0?this.mechanism.remove(h):this.mechanism.set(h,(0,_.XY)(E))};
_.wf.prototype.get=function(h){try{var E=this.mechanism.get(h)}catch(g){return}if(E!==null)try{return JSON.parse(E)}catch(g){throw"Storage: Invalid value was encountered";}};
_.wf.prototype.remove=function(h){this.mechanism.remove(h)};var dh=function(h){this.mechanism=h};
_.aV(dh,_.wf);var Jff=function(h){this.data=h},eID=function(h){return h===void 0||h instanceof Jff?h:new Jff(h)};
dh.prototype.set=function(h,E){dh.superClass_.set.call(this,h,eID(E))};
dh.prototype.getWrapper=function(h){h=dh.superClass_.get.call(this,h);if(h===void 0||h instanceof Object)return h;throw"Storage: Invalid value was encountered";};
dh.prototype.get=function(h){if(h=this.getWrapper(h)){if(h=h.data,h===void 0)throw"Storage: Invalid value was encountered";}else h=void 0;return h};_.aV(DV,dh);_.qvm=function(h){var E=h.creation;h=h.expiration;return!!h&&h<_.zZ()||!!E&&E>_.zZ()};
DV.prototype.set=function(h,E,g){if(E=eID(E)){if(g){if(g<_.zZ()){DV.prototype.remove.call(this,h);return}E.expiration=g}E.creation=_.zZ()}DV.superClass_.set.call(this,h,E)};
DV.prototype.getWrapper=function(h,E){var g=DV.superClass_.getWrapper.call(this,h);if(g)if(!E&&_.qvm(g))DV.prototype.remove.call(this,h);else return g};var Cb=function(){};
Cb.prototype.next=function(){return JB};
var JB={done:!0,value:void 0},eb=function(h){return{value:h,done:!1}};
Cb.prototype.__iterator__=function(){return this};
_.f_l=function(h){if(h instanceof Cb)return h;if(typeof h.__iterator__=="function")return h.__iterator__(!1);if(_.s4(h)){var E=0,g=new Cb;g.next=function(){for(;;){if(E>=h.length)return JB;if(E in h)return eb(h[E++]);E++}};
return g}throw Error("Pc");};var Naf=function(h){if(h instanceof ql||h instanceof fb||h instanceof Nl)return h;if(typeof h.next=="function")return new ql(function(){return h});
if(typeof h[Symbol.iterator]=="function")return new ql(function(){return h[Symbol.iterator]()});
if(typeof h.__iterator__=="function")return new ql(function(){return h.__iterator__()});
throw Error("Qc");},ql=function(h){this.func_=h};
ql.prototype.__iterator__=function(){return new fb(this.func_())};
ql.prototype[Symbol.iterator]=function(){return new Nl(this.func_())};
ql.prototype.toEs6=function(){return new Nl(this.func_())};
var fb=function(h){this.JSC$10607_iter_=h};
_.f(fb,Cb);fb.prototype.next=function(){return this.JSC$10607_iter_.next()};
fb.prototype[Symbol.iterator]=function(){return new Nl(this.JSC$10607_iter_)};
fb.prototype.toEs6=function(){return new Nl(this.JSC$10607_iter_)};
var Nl=function(h){ql.call(this,function(){return h});
this.JSC$10610_iter_=h};
_.f(Nl,ql);Nl.prototype.next=function(){return this.JSC$10610_iter_.next()};var tYn=function(){};var tB=function(){};
_.aV(tB,tYn);tB.prototype.getCount=function(){for(var h=0,E=_.G(this),g=E.next();!g.done;g=E.next())h++;return h};
tB.prototype[Symbol.iterator]=function(){return Naf(this.__iterator__(!0)).toEs6()};
tB.prototype.clear=function(){var h=Array.from(this);h=_.G(h);for(var E=h.next();!E.done;E=h.next())this.remove(E.value)};_.aV(lN,tB);_.p=lN.prototype;_.p.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var h=this.storage_;if(h)try{h.setItem("__sak","1");h.removeItem("__sak");var E=!0}catch(g){E=g instanceof DOMException&&(g.name==="QuotaExceededError"||g.code===22||g.code===1014||g.name==="NS_ERROR_DOM_QUOTA_REACHED")&&h&&h.length!==0}else E=!1;this.cachedIsStorageAvailable_=E}return this.cachedIsStorageAvailable_};
_.p.set=function(h,E){Sb(this);try{this.storage_.setItem(h,E)}catch(g){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.p.get=function(h){Sb(this);h=this.storage_.getItem(h);if(typeof h!=="string"&&h!==null)throw"Storage mechanism: Invalid value was encountered";return h};
_.p.remove=function(h){Sb(this);this.storage_.removeItem(h)};
_.p.getCount=function(){Sb(this);return this.storage_.length};
_.p.__iterator__=function(h){Sb(this);var E=0,g=this.storage_,Z=new Cb;Z.next=function(){if(E>=g.length)return JB;var M=g.key(E++);if(h)return eb(M);M=g.getItem(M);if(typeof M!=="string")throw"Storage mechanism: Invalid value was encountered";return eb(M)};
return Z};
_.p.clear=function(){Sb(this);this.storage_.clear()};
_.p.key=function(h){Sb(this);return this.storage_.key(h)};
var Sb=function(h){if(h.storage_==null)throw Error("Rc");h.isAvailable()||Wa(Error("Rc"))};_.aV(f$$,lN);_.aV(NZM,lN);_.aV(rf,tB);rf.prototype.set=function(h,E){this.mechanism_.set(this.JSC$10625_prefix_+h,E)};
rf.prototype.get=function(h){return this.mechanism_.get(this.JSC$10625_prefix_+h)};
rf.prototype.remove=function(h){this.mechanism_.remove(this.JSC$10625_prefix_+h)};
rf.prototype.__iterator__=function(h){var E=this.mechanism_[Symbol.iterator](),g=this,Z=new Cb;Z.next=function(){var M=E.next();if(M.done)return M;for(M=M.value;M.slice(0,g.JSC$10625_prefix_.length)!=g.JSC$10625_prefix_;){M=E.next();if(M.done)return M;M=M.value}return eb(h?M.slice(g.JSC$10625_prefix_.length):g.mechanism_.get(M))};
return Z};_.sY=function(h){this.expiringStorage_=(h=_.tDV(h))?new DV(h):null;this.JSC$10629_domain_=document.domain||window.location.hostname};
_.sY.prototype.set=function(h,E,g,Z){g=g||31104E3;this.remove(h);if(this.expiringStorage_)try{this.expiringStorage_.set(h,E,Date.now()+g*1E3);return}catch(W){}var M="";if(Z)try{M=escape((0,_.XY)(E))}catch(W){return}else M=escape(E);_.fl(h,M,g,this.JSC$10629_domain_)};
_.sY.prototype.get=function(h,E){var g=void 0,Z=!this.expiringStorage_;if(!Z)try{g=this.expiringStorage_.get(h)}catch(M){Z=!0}if(Z&&(g=_.qd.get(h,void 0))&&(g=unescape(g),E))try{g=JSON.parse(g)}catch(M){this.remove(h),g=void 0}return g};
_.sY.prototype.remove=function(h){this.expiringStorage_&&this.expiringStorage_.remove(h);_.LM4(h,"/",this.JSC$10629_domain_)};
_.sY.prototype.getCreationTime=function(h){return this.expiringStorage_&&(h=(this.expiringStorage_.getWrapper(h)||{}).creation,typeof h==="number")?h:null};var xw$=function(){var h;return function(){h||(h=new _.sY("ytidb"));return h}}();var Dwq;_.vx=[];Dwq=!1;var TZx=l$q||rjx;var xF={},SvM=(xF.AUTH_INVALID="No user identifier specified.",xF.EXPLICIT_ABORT="Transaction was explicitly aborted.",xF.IDB_NOT_SUPPORTED="IndexedDB is not supported.",xF.MISSING_INDEX="Index not created.",xF.MISSING_OBJECT_STORES="Object stores not created.",xF.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",xF.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",xF.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",xF.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",xF.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",xF.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",xF.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",xF),wh={},xCl=(wh.AUTH_INVALID="ERROR",wh.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",wh.EXPLICIT_ABORT="IGNORED",
wh.IDB_NOT_SUPPORTED="ERROR",wh.MISSING_INDEX="WARNING",wh.MISSING_OBJECT_STORES="ERROR",wh.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",wh.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",wh.QUOTA_EXCEEDED="WARNING",wh.QUOTA_MAYBE_EXCEEDED="WARNING",wh.UNKNOWN_ABORT="WARNING",wh.INCOMPATIBLE_DB_VERSION="WARNING",wh),D4={},w6D=(D4.AUTH_INVALID=!1,D4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,D4.EXPLICIT_ABORT=!1,D4.IDB_NOT_SUPPORTED=!1,D4.MISSING_INDEX=!1,D4.MISSING_OBJECT_STORES=!1,D4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,D4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,D4.QUOTA_EXCEEDED=!1,D4.QUOTA_MAYBE_EXCEEDED=!0,D4.UNKNOWN_ABORT=!0,D4.INCOMPATIBLE_DB_VERSION=!1,D4),YX=function(h,E,g,Z,M){E=E===void 0?{}:E;g=g===void 0?SvM[h]:g;Z=Z===void 0?xCl[h]:Z;M=M===void 0?w6D[h]:M;_.xX.call(this,g,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:h},E));this.type=h;this.message=g;this.level=Z;this.retryable=M;Object.setPrototypeOf(this,YX.prototype)};
_.f(YX,_.xX);var DCC=function(h,E){YX.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:E,foundObjectStores:h},SvM.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,DCC.prototype)};
_.f(DCC,YX);var v8a=function(h,E){var g=Error.call(this);this.message=g.message;"stack"in g&&(this.stack=g.stack);this.index=h;this.objectStore=E;Object.setPrototypeOf(this,v8a.prototype)};
_.f(v8a,Error);var Heq=["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 yn=function(h){this.executor=h},kX=function(h){var E=this;
this.state={status:"PENDING"};this.JSC$10657_onFulfilled=[];this.JSC$10657_onRejected=[];h=h.executor;var g=function(M){if(E.state.status==="PENDING"){E.state={status:"FULFILLED",value:M};M=_.G(E.JSC$10657_onFulfilled);for(var W=M.next();!W.done;W=M.next())W=W.value,W()}},Z=function(M){if(E.state.status==="PENDING"){E.state={status:"REJECTED",
reason:M};M=_.G(E.JSC$10657_onRejected);for(var W=M.next();!W.done;W=M.next())W=W.value,W()}};
try{h(g,Z)}catch(M){Z(M)}};
kX.all=function(h){return new kX(new yn(function(E,g){var Z=[],M=h.length;M===0&&E(Z);for(var W={i$jscomp$468:0};W.i$jscomp$468<h.length;W={i$jscomp$468:W.i$jscomp$468},++W.i$jscomp$468)kX.resolve(h[W.i$jscomp$468]).then(function(z){return function(c){Z[z.i$jscomp$468]=c;M--;M===0&&E(Z)}}(W)).catch(function(z){g(z)})}))};
kX.resolve=function(h){return new kX(new yn(function(E,g){h instanceof kX?h.then(E,g):E(h)}))};
kX.reject=function(h){return new kX(new yn(function(E,g){g(h)}))};
kX.prototype.then=function(h,E){var g=this,Z=h!=null?h:OeN,M=E!=null?E:KM4;return new kX(new yn(function(W,z){g.state.status==="PENDING"?(g.JSC$10657_onFulfilled.push(function(){l_M(g,g,Z,W,z)}),g.JSC$10657_onRejected.push(function(){rfl(g,g,M,W,z)})):g.state.status==="FULFILLED"?l_M(g,g,Z,W,z):g.state.status==="REJECTED"&&rfl(g,g,M,W,z)}))};
kX.prototype.catch=function(h){return this.then(void 0,h)};
var l_M=function(h,E,g,Z,M){try{if(h.state.status!=="FULFILLED")throw Error("Uc");var W=g(h.state.value);W instanceof kX?mCA(h,E,W,Z,M):Z(W)}catch(z){M(z)}},rfl=function(h,E,g,Z,M){try{if(h.state.status!=="REJECTED")throw Error("Vc");
var W=g(h.state.reason);W instanceof kX?mCA(h,E,W,Z,M):Z(W)}catch(z){M(z)}},mCA=function(h,E,g,Z,M){E===g?M(new TypeError("Wc")):g.then(function(W){W instanceof kX?mCA(h,E,W,Z,M):Z(W)},function(W){M(W)})};var lQ;lQ=window;_.zn=lQ.ytcsi&&lQ.ytcsi.now?lQ.ytcsi.now:lQ.performance&&lQ.performance.timing&&lQ.performance.now&&lQ.performance.timing.navigationStart?function(){return lQ.performance.timing.navigationStart+lQ.performance.now()}:function(){return(new Date).getTime()};var Al=function(h,E){this.JSC$10669_wrapped=h;this.options=E;this.transactionCount=0;this.startedMs=Math.round((0,_.zn)());this.hasUnknownAbortedTransaction=!1},rh=function(){return _.J("idb_immediate_commit")},$Cn,KOM,Hs,X6H;
Al.prototype.add=function(h,E,g){return _.ht(this,[h],{mode:"readwrite",enableRetries:!0,commit:rh()},function(Z){return Z.objectStore(h).add(E,g)})};
Al.prototype.clear=function(h){return _.ht(this,[h],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(h).clear()})};
Al.prototype.close=function(){this.JSC$10669_wrapped.close();var h;((h=this.options)==null?0:h.closed)&&this.options.closed()};
Al.prototype.count=function(h,E){return _.ht(this,[h],{mode:"readonly",enableRetries:!0,commit:rh()},function(g){return g.objectStore(h).count(E)})};
var kL=function(h,E,g){h=h.JSC$10669_wrapped.createObjectStore(E,g);return new mo(h)};
Al.prototype.delete=function(h,E){return _.ht(this,[h],{mode:"readwrite",enableRetries:!0,commit:rh()&&!(E instanceof IDBKeyRange)},function(g){return g.objectStore(h).delete(E)})};
var vwH=function(h,E){return _.ht(h,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(g){return g.objectStore("ResponseStore").index("byInterface").delete(E)})};
Al.prototype.get=function(h,E){return _.ht(this,[h],{mode:"readonly",enableRetries:!0,commit:rh()},function(g){return g.objectStore(h).get(E)})};
Al.prototype.getAll=function(h,E,g){return _.ht(this,[h],{mode:"readonly",enableRetries:!0},function(Z){return Z.objectStore(h).getAll(E,g)})};
Al.prototype.put=function(h,E,g){return _.ht(this,[h],{mode:"readwrite",enableRetries:!0,commit:rh()},function(Z){return Z.objectStore(h).put(E,g)})};
Al.prototype.objectStoreNames=function(){return Array.from(this.JSC$10669_wrapped.objectStoreNames)};
_.ht=function(h,E,g,Z){var M,W,z,c,I,B,U,L,d,C,q,w;return _.a(function(r){switch(r.nextAddress){case 1:var v={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof g==="string"?v.mode=g:Object.assign(v,g);M=v;h.transactionCount++;W=M.enableRetries?3:1;z=0;case 2:if(c){r.jumpTo(4);break}z++;I=Math.round((0,_.zn)());_.CX(r,5);B=h.JSC$10669_wrapped.transaction(E,M.mode);v=r.yield;var H=!!M.commit;var u=new TF(B);H=HgM(u,Z,H);return v.call(r,H,7);case 7:return U=r.yieldResult,L=Math.round((0,_.zn)()),
$Cn(h,I,L,z,void 0,E.join(),M),r.return(U);case 5:d=_.th(r);C=Math.round((0,_.zn)());q=$wx(d,h.JSC$10669_wrapped.name,E.join(),h.JSC$10669_wrapped.version);if((w=q instanceof YX&&!q.retryable)||z>=W)$Cn(h,I,C,z,q,E.join(),M),c=q;r.jumpTo(2);break;case 4:return r.return(Promise.reject(c))}})};
$Cn=function(h,E,g,Z,M,W,z){E=g-E;M?(M instanceof YX&&(M.type==="QUOTA_EXCEEDED"||M.type==="QUOTA_MAYBE_EXCEEDED")&&$X("QUOTA_EXCEEDED",{dbName:nl(h.JSC$10669_wrapped.name),objectStoreNames:W,transactionCount:h.transactionCount,transactionMode:z.mode}),M instanceof YX&&M.type==="UNKNOWN_ABORT"&&(g-=h.startedMs,g<0&&g>=2147483648&&(g=0),$X("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:W,transactionDuration:E,transactionCount:h.transactionCount,dbDuration:g}),h.hasUnknownAbortedTransaction=!0),
KOM(h,!1,Z,W,E,z.tag),_.Hx(M)):KOM(h,!0,Z,W,E,z.tag)};
KOM=function(h,E,g,Z,M,W){$X("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:h.hasUnknownAbortedTransaction,duration:M,isSuccessful:E,tryCount:g,tag:W===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":W})};
Al.prototype.getVersion=function(){return this.JSC$10669_wrapped.version};
Al.prototype.getName=function(){return this.JSC$10669_wrapped.name};
var mo=function(h){this.JSC$10684_wrapped=h};
mo.prototype.add=function(h,E){return Fy(this.JSC$10684_wrapped.add(h,E))};
mo.prototype.autoIncrement=function(){return this.JSC$10684_wrapped.autoIncrement};
mo.prototype.clear=function(){return Fy(this.JSC$10684_wrapped.clear()).then(function(){})};
var ya=function(h,E,g){h.JSC$10684_wrapped.createIndex(E,g,{unique:!1})};
mo.prototype.count=function(h){return Fy(this.JSC$10684_wrapped.count(h))};
var OgM=function(h,E){return ge(h,{query:E},function(g){return g.delete().then(function(){return g.continue()})}).then(function(){})};
mo.prototype.delete=function(h){return h instanceof IDBKeyRange?OgM(this,h):Fy(this.JSC$10684_wrapped.delete(h))};
mo.prototype.get=function(h){return Fy(this.JSC$10684_wrapped.get(h))};
mo.prototype.getAll=function(h,E){return"getAll"in IDBObjectStore.prototype?Fy(this.JSC$10684_wrapped.getAll(h,E)):nwB(this,h,E)};
var nwB=function(h,E,g){var Z=[];return ge(h,{query:E},function(M){if(!(g!==void 0&&Z.length>=g))return Z.push(M.getValue()),M.continue()}).then(function(){return Z})};
mo.prototype.index=function(h){try{return new vs(this.JSC$10684_wrapped.index(h))}catch(E){if(E instanceof Error&&E.name==="NotFoundError")throw new v8a(h,this.JSC$10684_wrapped.name);throw E;}};
mo.prototype.getName=function(){return this.JSC$10684_wrapped.name};
mo.prototype.keyPath=function(){return this.JSC$10684_wrapped.keyPath};
mo.prototype.put=function(h,E){return Fy(this.JSC$10684_wrapped.put(h,E))};
var ge=function(h,E,g){h=h.JSC$10684_wrapped.openCursor(E.query,E.direction);return X6H(h).then(function(Z){return YoW(Z,g)})},TF=function(h){var E=this;
this.JSC$10692_wrapped=h;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(g,Z){E.JSC$10692_wrapped.addEventListener("complete",function(){g()});
E.JSC$10692_wrapped.addEventListener("error",function(M){M.currentTarget===M.target&&Z(E.JSC$10692_wrapped.error)});
E.JSC$10692_wrapped.addEventListener("abort",function(){var M=E.JSC$10692_wrapped.error;if(M)Z(M);else if(!E.aborted){M=YX;for(var W=E.JSC$10692_wrapped.objectStoreNames,z=[],c=0;c<W.length;c++){var I=W.item(c);if(I===null)throw Error("Xc");z.push(I)}M=new M("UNKNOWN_ABORT",{objectStoreNames:z.join(),dbName:E.JSC$10692_wrapped.db.name,mode:E.JSC$10692_wrapped.mode});Z(M)}})})},HgM=function(h,E,g){var Z=new Promise(function(M,W){try{var z=E(h);
g&&h.commit();z.then(function(c){M(c)}).catch(W)}catch(c){W(c),h.abort()}});
return Promise.all([Z,h.done]).then(function(M){return _.G(M).next().value})};
TF.prototype.abort=function(){this.JSC$10692_wrapped.abort();this.aborted=!0;throw new YX("EXPLICIT_ABORT");};
TF.prototype.commit=function(){if(!this.aborted){var h,E;(E=(h=this.JSC$10692_wrapped).commit)==null||E.call(h)}};
TF.prototype.objectStore=function(h){h=this.JSC$10692_wrapped.objectStore(h);var E=this.objectStoreCache.get(h);E||(E=new mo(h),this.objectStoreCache.set(h,E));return E};
var vs=function(h){this.JSC$10694_wrapped=h};
vs.prototype.count=function(h){return Fy(this.JSC$10694_wrapped.count(h))};
vs.prototype.delete=function(h){return _.aI(this,{query:h},function(E){return E.delete().then(function(){return E.continue()})})};
vs.prototype.get=function(h){return Fy(this.JSC$10694_wrapped.get(h))};
vs.prototype.getAll=function(h,E){return"getAll"in IDBIndex.prototype?Fy(this.JSC$10694_wrapped.getAll(h,E)):YvD(this,h,E)};
var YvD=function(h,E,g){var Z=[];return _.aI(h,{query:E},function(M){if(!(g!==void 0&&Z.length>=g))return Z.push(M.getValue()),M.continue()}).then(function(){return Z})};
vs.prototype.keyPath=function(){return this.JSC$10694_wrapped.keyPath};
vs.prototype.unique=function(){return this.JSC$10694_wrapped.unique};
_.aI=function(h,E,g){h=h.JSC$10694_wrapped.openCursor(E.query===void 0?null:E.query,E.direction===void 0?"next":E.direction);return X6H(h).then(function(Z){return YoW(Z,g)})};
Hs=function(h,E){this.request=h;this.cursor=E};
X6H=function(h){return Fy(h).then(function(E){return E?new Hs(h,E):null})};
Hs.prototype.continue=function(h){this.cursor.continue(h);return X6H(this.request)};
Hs.prototype.delete=function(){return Fy(this.cursor.delete()).then(function(){})};
Hs.prototype.getValue=function(){return this.cursor.value};
Hs.prototype.update=function(h){return Fy(this.cursor.update(h))};var $F=function(h,E){this.name=h;this.options=E;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},sTf;
$F.prototype.openDb=function(h,E,g){g=g===void 0?{}:g;return VDV(h,E,g)};
$F.prototype.delete=function(h){h=h===void 0?{}:h;return _.uN(this.name,h)};
sTf=function(h,E){return new YX("INCOMPATIBLE_DB_VERSION",{dbName:h.name,oldVersion:h.options.version,newVersion:E})};
_.Qn=function(h,E){if(!E)throw Vn("openWithToken",nl(h.name));return h.open()};
$F.prototype.open=function(){var h=this;if(!this.isCompatible)throw sTf(this);if(this.connectionPromise)return this.connectionPromise;var E,g=function(){h.connectionPromise===E&&(h.connectionPromise=void 0)},Z={blocking:function(W){W.close()},
closed:g,terminated:g,upgrade:this.options.upgrade},M=function(){var W,z,c,I,B,U,L,d,C,q;return _.a(function(w){switch(w.nextAddress){case 1:return z=(W=Error().stack)!=null?W:"",_.CX(w,2),w.yield(h.openDb(h.name,h.options.version,Z),4);case 4:for(var r=c=w.yieldResult,v=h.options,H=[],u=_.G(Object.keys(v.objectStores)),k=u.next();!k.done;k=u.next()){k=k.value;var y=v.objectStores[k],A=y.removedAtVersion===void 0?Number.MAX_VALUE:y.removedAtVersion;!(r.JSC$10669_wrapped.version>=y.addedAtVersion)||
r.JSC$10669_wrapped.version>=A||r.JSC$10669_wrapped.objectStoreNames.contains(k)||H.push(k)}I=H;if(I.length===0){w.jumpTo(5);break}B=Object.keys(h.options.objectStores);U=c.objectStoreNames();if(h.timesReopenedToFixMissingObjectStore<_.cx("ytidb_reopen_db_retries",0))return h.timesReopenedToFixMissingObjectStore++,c.close(),_.Hx(new YX("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:h.name,expectedObjectStores:B,foundObjectStores:U})),w.return(M());if(!(h.timesDeletedToFixMissingObjectStore<_.cx("ytidb_remake_db_retries",
1))){w.jumpTo(6);break}h.timesDeletedToFixMissingObjectStore++;return w.yield(h.delete(),7);case 7:return _.Hx(new YX("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:h.name,expectedObjectStores:B,foundObjectStores:U})),w.return(M());case 6:throw new DCC(U,B);case 5:return w.return(c);case 2:L=_.th(w);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."){w.jumpTo(8);
break}return w.yield(h.openDb(h.name,void 0,Object.assign({},Z,{upgrade:void 0})),9);case 9:d=w.yieldResult;C=d.getVersion();if(h.options.version!==void 0&&C>h.options.version+1)throw d.close(),h.isCompatible=!1,sTf(h,C);return w.return(d);case 8:throw g(),L instanceof Error&&!_.J("ytidb_async_stack_killswitch")&&(L.stack=L.stack+"\n"+z.substring(z.indexOf("\n")+1)),$wx(L,h.name,"",(q=h.options.version)!=null?q:-1);}})};
return this.connectionPromise=E=M()};var kyq=new $F("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(h,E){E(1)&&kL(h,"databases",{keyPath:"actualName"})}});var QYV,be$=new function(){}(new function(){});new _.dN;var VYl=function(h,E){$F.call(this,h,E);this.options=E;Kl(h)};
_.f(VYl,$F);var a9$=function(h,E){var g;return function(){g||(g=new VYl(h,E));return g}};
VYl.prototype.openDb=function(h,E,g){g=g===void 0?{}:g;return(this.options.shared?Mlz:Zmz)(h,E,Object.assign({},g))};
VYl.prototype.delete=function(h){h=h===void 0?{}:h;return(this.options.shared?z9z:WbV)(this.name,h)};var k$f={},ckx=Gn("ytGcfConfig",{objectStores:(k$f.coldConfigStore={addedAtVersion:1},k$f.hotConfigStore={addedAtVersion:1},k$f),shared:!1,upgrade:function(h,E){E(1)&&(ya(kL(h,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ya(kL(h,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var yfD=function(){_.wO.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var h=_.yy("yt.gcf.config.hotUpdateCallbacks");h?(this.localHotConfigJobQueue=[].concat(_.$E(h)),this.sharedHotConfigJobQueue=h):(this.sharedHotConfigJobQueue=[],_.Wu("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.f(yfD,_.wO);yfD.prototype.disposeInternal=function(){for(var h=_.G(this.localHotConfigJobQueue),E=h.next();!E.done;E=h.next()){var g=this.sharedHotConfigJobQueue;E=g.indexOf(E.value);E>=0&&g.splice(E,1)}this.localHotConfigJobQueue.length=0;_.wO.prototype.disposeInternal.call(this)};var wQ=function(){var h=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new yfD;this.TEST_ONLY={initializeConfigDb:function(){h.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return h.coldGlobalConfigGroup},
setHotConfigGroup:function(E){FOD(h,E)},
setHotHashData:function(E){h.setHotHashData(E)},
setColdConfigGroup:function(E){Aff(h,E)},
getColdHashData:function(){return h.coldHashData},
getHotHashData:function(){return h.hotHashData},
getHotConfigGroup:function(){return h.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Tal()},
getExportedHotConfigGroup:function(){return Kb()},
getExportedColdHashData:function(){return _.yy("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.yy("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){bgA(h)},
resetInstance:function(){h.setHotHashData(void 0);u9F(h);delete wQ.instance},
setDebounceTimer:function(E){h.debounceTimer=E},
getDebounceTimer:function(){return h.debounceTimer}}},QTC=function(){if(!wQ.instance){var h=new wQ;
wQ.instance=h}return wQ.instance},gNB=function(h){var E;
_.a(function(g){if(g.nextAddress==1)return _.J("start_client_gcf")||_.J("delete_gcf_config_db")?_.J("start_client_gcf")?g.yield(_.pP(),3):g.jumpTo(2):g.return();g.nextAddress!=2&&((E=g.yieldResult)&&_.Sy()&&!_.J("delete_gcf_config_db")?(h.isConfigDbInitialized=!0,bgA(h)):(hkM(h),ENl(h)));return _.J("delete_gcf_config_db")?g.yield(BNu(),0):g.jumpTo(0)})},DP=function(){var h;
return(h=Kb())!=null?h:_.nF("RAW_HOT_CONFIG_GROUP")},ZQD=function(h){var E,g,Z,M,W,z;
return _.a(function(c){switch(c.nextAddress){case 1:if(h.hotGlobalConfigGroup)return c.return(Kb());if(!h.isConfigDbInitialized)return E=Vn("getHotConfig IDB not initialized"),_.Fn(E),c.return(Promise.reject(E));g=M2();Z=_.nF("TIME_CREATED_MS");if(!g){M=Vn("getHotConfig token error");_.Fn(M);c.jumpTo(2);break}return c.yield(PUM(g),3);case 3:if((W=c.yieldResult)&&W.timestamp>Z)return FOD(h,W.config),h.setHotHashData(W.hashData),c.return(Kb());case 2:ENl(h);if(!(g&&h.hotGlobalConfigGroup&&h.hotHashData)){c.jumpTo(4);
break}return c.yield(oYV(h.hotGlobalConfigGroup,h.hotHashData,g,Z),4);case 4:return h.hotGlobalConfigGroup?c.return(Kb()):(z=new _.xX("Config not available in ytConfig"),_.Fn(z),c.return(Promise.reject(z)))}})},WrC=function(h){var E,g,Z,M,W,z;
return _.a(function(c){switch(c.nextAddress){case 1:if(h.coldGlobalConfigGroup)return c.return(Tal());if(!h.isConfigDbInitialized)return E=Vn("getColdConfig IDB not initialized"),_.Fn(E),c.return(Promise.reject(E));g=M2();Z=_.nF("TIME_CREATED_MS");if(!g){M=Vn("getColdConfig");_.Fn(M);c.jumpTo(2);break}return c.yield(R9d(g),3);case 3:if((W=c.yieldResult)&&W.timestamp>Z)return Aff(h,W.config),MNA(h,W.configData),u9F(h,W.hashData),c.return(Tal());case 2:hkM(h);if(!(g&&h.coldGlobalConfigGroup&&h.coldHashData&&
h.configData)){c.jumpTo(4);break}return c.yield(I9$(h.coldGlobalConfigGroup,h.coldHashData,h.configData,g,Z),4);case 4:return h.coldGlobalConfigGroup?c.return(Tal()):(z=new _.xX("Config not available in ytConfig"),_.Fn(z),c.return(Promise.reject(z)))}})},bgA=function(h){if(!h.hotGlobalConfigGroup||!h.coldGlobalConfigGroup){if(!M2()){var E=Vn("scheduleGetConfigs");
_.Fn(E)}h.initJob||(h.initJob=_.KP.addLowPriorityJob(function(){return _.a(function(g){switch(g.nextAddress){case 1:return _.CX(g,2),g.yield(ZQD(h),4);case 4:_.bN(g,3);break;case 2:_.th(g);case 3:return _.CX(g,5),g.yield(WrC(h),7);case 7:_.bN(g,6);break;case 5:_.th(g);case 6:h.initJob&&(h.initJob=0),_.SK(g)}})},100))}},oxz=function(h,E,g){var Z,M,W;
return _.a(function(z){switch(z.nextAddress){case 1:if(!_.J("start_client_gcf")){z.jumpTo(0);break}g&&FOD(h,g);h.setHotHashData(E);Z=M2();if(!Z){z.jumpTo(3);break}if(g){z.jumpTo(4);break}return z.yield(PUM(Z),5);case 5:M=z.yieldResult,g=(W=M)==null?void 0:W.config;case 4:return z.yield(oYV(g,E,Z),3);case 3:if(g)for(var c=g,I=_.G(h.configUpdateService.sharedHotConfigJobQueue),B=I.next();!B.done;B=I.next())B=B.value,B(c);_.SK(z)}})},Id$=function(h,E,g){var Z,M,W,z;
return _.a(function(c){if(c.nextAddress==1){if(!_.J("start_client_gcf"))return c.jumpTo(0);u9F(h,E);return(Z=M2())?g?c.jumpTo(4):c.yield(R9d(Z),5):c.jumpTo(0)}c.nextAddress!=4&&(M=c.yieldResult,g=(W=M)==null?void 0:W.config);if(!g)return c.jumpTo(0);z=g.configData;return c.yield(I9$(g,E,z,Z),0)})},mR$=function(){var h=QTC(),E=(0,_.zn)()-h.debounceTimer;
if(!(h.debounceTimer!==0&&E<_.cx("send_config_hash_timer"))){E=_.yy("yt.gcf.config.coldConfigData");var g=_.yy("yt.gcf.config.hotHashData"),Z=_.yy("yt.gcf.config.coldHashData");E&&g&&Z&&(h.debounceTimer=(0,_.zn)());return{coldConfigData:E,hotHashData:g,coldHashData:Z}}},hkM=function(h){Aff(h,_.nF("RAW_COLD_CONFIG_GROUP"));
u9F(h,_.nF("SERIALIZED_COLD_HASH_DATA"));var E;MNA(h,(E=h.coldGlobalConfigGroup)==null?void 0:E.configData)},ENl=function(h){FOD(h,_.nF("RAW_HOT_CONFIG_GROUP"));
h.setHotHashData(_.nF("SERIALIZED_HOT_HASH_DATA"))},FOD=function(h,E){h.hotGlobalConfigGroup=E;
_.Wu("yt.gcf.config.hotConfigGroup",h.hotGlobalConfigGroup||null)},Aff=function(h,E){h.coldGlobalConfigGroup=E;
_.Wu("yt.gcf.config.coldConfigGroup",h.coldGlobalConfigGroup||null)};
wQ.prototype.setHotHashData=function(h){this.hotHashData=h;_.Wu("yt.gcf.config.hotHashData",this.hotHashData||null)};
var u9F=function(h,E){h.coldHashData=E;_.Wu("yt.gcf.config.coldHashData",h.coldHashData||null)},MNA=function(h,E){h.configData=E;
_.Wu("yt.gcf.config.coldConfigData",h.configData||null)},Kb=function(){return _.yy("yt.gcf.config.hotConfigGroup")},Tal=function(){return _.yy("yt.gcf.config.coldConfigGroup")};var js={},plA=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";js.assign=function(h){for(var E=Array.prototype.slice.call(arguments,1);E.length;){var g=E.shift();if(g){if(typeof g!=="object")throw new TypeError("$c`"+g);for(var Z in g)Object.prototype.hasOwnProperty.call(g,Z)&&(h[Z]=g[Z])}}return h};
js.shrinkBuf=function(h,E){if(h.length===E)return h;if(h.subarray)return h.subarray(0,E);h.length=E;return h};
var GeM={arraySet:function(h,E,g,Z,M){if(E.subarray&&h.subarray)h.set(E.subarray(g,g+Z),M);else for(var W=0;W<Z;W++)h[M+W]=E[g+W]},
flattenChunks:function(h){var E,g;var Z=g=0;for(E=h.length;Z<E;Z++)g+=h[Z].length;var M=new Uint8Array(g);Z=g=0;for(E=h.length;Z<E;Z++){var W=h[Z];M.set(W,g);g+=W.length}return M}},zkF={arraySet:function(h,E,g,Z,M){for(var W=0;W<Z;W++)h[M+W]=E[g+W]},
flattenChunks:function(h){return[].concat.apply([],h)}};
js.setTyped=function(){plA?(js.Buf8=Uint8Array,js.Buf16=Uint16Array,js.Buf32=Int32Array,js.assign(js,GeM)):(js.Buf8=Array,js.Buf16=Array,js.Buf32=Array,js.assign(js,zkF))};
js.setTyped();var aNM=!0;try{new Uint8Array(1)}catch(h){aNM=!1}
var Pqz=function(h){var E,g,Z=h.length,M=0;for(E=0;E<Z;E++){var W=h.charCodeAt(E);if((W&64512)===55296&&E+1<Z){var z=h.charCodeAt(E+1);(z&64512)===56320&&(W=65536+(W-55296<<10)+(z-56320),E++)}M+=W<128?1:W<2048?2:W<65536?3:4}var c=new js.Buf8(M);for(E=g=0;g<M;E++)W=h.charCodeAt(E),(W&64512)===55296&&E+1<Z&&(z=h.charCodeAt(E+1),(z&64512)===56320&&(W=65536+(W-55296<<10)+(z-56320),E++)),W<128?c[g++]=W:(W<2048?c[g++]=192|W>>>6:(W<65536?c[g++]=224|W>>>12:(c[g++]=240|W>>>18,c[g++]=128|W>>>12&63),c[g++]=
128|W>>>6&63),c[g++]=128|W&63);return c};var gAN={};gAN=function(h,E,g,Z){var M=h&65535|0;h=h>>>16&65535|0;for(var W;g!==0;){W=g>2E3?2E3:g;g-=W;do M=M+E[Z++]|0,h=h+M|0;while(--W);M%=65521;h%=65521}return M|h<<16|0};for(var re={},OR,cQC=[],iQM=0;iQM<256;iQM++){OR=iQM;for(var oNA=0;oNA<8;oNA++)OR=OR&1?3988292384^OR>>>1:OR>>>1;cQC[iQM]=OR}re=function(h,E,g,Z){g=Z+g;for(h^=-1;Z<g;Z++)h=h>>>8^cQC[(h^E[Z])&255];return h^-1};var es={};es={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 Vlq=[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],yk$=[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],RbO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],hbx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tt=Array(576);Pu(tt);var Ss=Array(60);Pu(Ss);var CP=Array(512);Pu(CP);var de=Array(256);Pu(de);var kvV=Array(29);Pu(kvV);var Fbu=Array(30);Pu(Fbu);var i3a,oAd,IM$,cad=!1;var $L;
$L=[new Hu(0,0,0,0,function(h,E){var g=65535;for(g>h.pending_buf_size-5&&(g=h.pending_buf_size-5);;){if(h.lookahead<=1){mg(h);if(h.lookahead===0&&E===0)return 1;if(h.lookahead===0)break}h.strstart+=h.lookahead;h.lookahead=0;var Z=h.block_start+g;if(h.strstart===0||h.strstart>=Z)if(h.lookahead=h.strstart-Z,h.strstart=Z,we(h,!1),h.strm.avail_out===0)return 1;if(h.strstart-h.block_start>=h.w_size-262&&(we(h,!1),h.strm.avail_out===0))return 1}h.insert=0;if(E===4)return we(h,!0),h.strm.avail_out===0?3:
4;h.strstart>h.block_start&&we(h,!1);return 1}),
new Hu(4,4,8,4,Z3M),new Hu(4,5,16,8,Z3M),new Hu(4,6,32,32,Z3M),new Hu(4,4,16,16,vu),new Hu(8,16,32,32,vu),new Hu(8,16,128,128,vu),new Hu(8,32,128,256,vu),new Hu(32,128,258,1024,vu),new Hu(32,258,258,4096,vu)];var aMq={};aMq=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 BDx=Object.prototype.toString;
zb$.prototype.push=function(h,E){var g=this.strm,Z=this.options.chunkSize;if(this.ended)return!1;var M=E===~~E?E:E===!0?4:0;typeof h==="string"?g.input=Pqz(h):BDx.call(h)==="[object ArrayBuffer]"?g.input=new Uint8Array(h):g.input=h;g.next_in=0;g.avail_in=g.input.length;do{g.avail_out===0&&(g.output=new js.Buf8(Z),g.next_out=0,g.avail_out=Z);h=Gwq(g,M);if(h!==1&&h!==0)return INf(this,h),this.ended=!0,!1;if(g.avail_out===0||g.avail_in===0&&(M===4||M===2))if(this.options.to==="string"){var W=js.shrinkBuf(g.output,
g.next_out);E=W;W=W.length;if(W<65537&&(E.subarray&&aNM||!E.subarray))E=String.fromCharCode.apply(null,js.shrinkBuf(E,W));else{for(var z="",c=0;c<W;c++)z+=String.fromCharCode(E[c]);E=z}this.chunks.push(E)}else E=js.shrinkBuf(g.output,g.next_out),this.chunks.push(E)}while((g.avail_in>0||g.avail_out===0)&&h!==1);if(M===4)return(g=this.strm)&&g.state?(Z=g.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?h=q2(g,-2):(g.state=null,h=Z===113?q2(g,-3):0)):h=-2,INf(this,h),this.ended=
!0,h===0;M===2&&(INf(this,0),g.avail_out=0);return!0};
var INf=function(h,E){E===0&&(h.result=h.options.to==="string"?h.chunks.join(""):js.flattenChunks(h.chunks));h.chunks=[];h.err=E;h.msg=h.strm.msg};var RkM=typeof TextEncoder!=="undefined"?new TextEncoder:null,kw4=RkM?function(h){return RkM.encode(h)}:function(h){h=_.xd(h);
for(var E=new Uint8Array(h.length),g=0;g<E.length;g++)E[g]=h[g];return E};var tzd={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},xOM={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var nb=function(h,E){this.version=h;this.args=E};
nb.prototype.serialize=function(){return{version:this.version,args:this.args}};var Cqz=function(h,E){this.topic=h;this.dataClass=E};
Cqz.prototype.toString=function(){return this.topic};var PCM=_.yy("ytPubsub2Pubsub2Instance")||new _.Jl;_.Jl.prototype.subscribe=_.Jl.prototype.subscribe;_.Jl.prototype.unsubscribeByKey=_.Jl.prototype.unsubscribeByKey;_.Jl.prototype.publish=_.Jl.prototype.publish;_.Jl.prototype.clear=_.Jl.prototype.clear;_.Wu("ytPubsub2Pubsub2Instance",PCM);var dmz=_.yy("ytPubsub2Pubsub2SubscribedKeys")||{};_.Wu("ytPubsub2Pubsub2SubscribedKeys",dmz);var eb$=_.yy("ytPubsub2Pubsub2TopicToKeys")||{};_.Wu("ytPubsub2Pubsub2TopicToKeys",eb$);
var JaM=_.yy("ytPubsub2Pubsub2IsAsync")||{};_.Wu("ytPubsub2Pubsub2IsAsync",JaM);_.Wu("ytPubsub2Pubsub2SkipSubKey",null);var raq=void 0,DmW=void 0;var Xbz=_.cx("max_body_size_to_compress",5E5),YBN=_.cx("min_body_size_to_compress",500),nP=!0,Aa$=0,XL=0,FhN=_.cx("compression_performance_threshold_lr",250),TDz=_.cx("slow_compressions_before_abandon_count",4),H3W=!1,$mz=new Map,VgN=1,sNa=!0;_.aV(YL,QNW);YL.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 BAF=function(h,E,g){g||(g=0);var Z=h.W_;if(typeof E==="string")for(var M=0;M<16;M++)Z[M]=E.charCodeAt(g)<<24|E.charCodeAt(g+1)<<16|E.charCodeAt(g+2)<<8|E.charCodeAt(g+3),g+=4;else for(M=0;M<16;M++)Z[M]=E[g]<<24|E[g+1]<<16|E[g+2]<<8|E[g+3],g+=4;for(E=16;E<80;E++)g=Z[E-3]^Z[E-8]^Z[E-14]^Z[E-16],Z[E]=(g<<1|g>>>31)&4294967295;E=h.chain_[0];g=h.chain_[1];M=h.chain_[2];for(var W=h.chain_[3],z=h.chain_[4],c,I,B=0;B<80;B++)B<40?B<20?(c=W^g&(M^W),I=1518500249):(c=g^M^W,I=1859775393):B<60?(c=g&M|W&(g|M),
I=2400959708):(c=g^M^W,I=3395469782),c=(E<<5|E>>>27)+c+z+I+Z[B]&4294967295,z=W,W=M,M=(g<<30|g>>>2)&4294967295,g=E,E=c;h.chain_[0]=h.chain_[0]+E&4294967295;h.chain_[1]=h.chain_[1]+g&4294967295;h.chain_[2]=h.chain_[2]+M&4294967295;h.chain_[3]=h.chain_[3]+W&4294967295;h.chain_[4]=h.chain_[4]+z&4294967295};
YL.prototype.update=function(h,E){if(h!=null){E===void 0&&(E=h.length);for(var g=E-this.blockSize,Z=0,M=this.buf_,W=this.inbuf_;Z<E;){if(W==0)for(;Z<=g;)BAF(this,h,Z),Z+=this.blockSize;if(typeof h==="string")for(;Z<E;){if(M[W]=h.charCodeAt(Z),++W,++Z,W==this.blockSize){BAF(this,M);W=0;break}}else for(;Z<E;)if(M[W]=h[Z],++W,++Z,W==this.blockSize){BAF(this,M);W=0;break}}this.inbuf_=W;this.total_+=E}};
YL.prototype.digest=function(){var h=[],E=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var g=this.blockSize-1;g>=56;g--)this.buf_[g]=E&255,E/=256;BAF(this,this.buf_);for(g=E=0;g<5;g++)for(var Z=24;Z>=0;Z-=8)h[E]=this.chain_[g]>>Z&255,++E;return h};var gB$;var YF=function(h){var E=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(U){E.databaseToken=U},
triggerThrottle:function(){E.throttledSend()},
cancelThrottle:function(){E.cancelThrottledSend()},
immediateSend:function(U){return _.a(function(L){return L.yield(E.immediateSend(U),0)})},
requestWithinAgeLimit:function(U,L){return E.requestWithinAgeLimit(U,L)},
retryQueuedRequests:function(){E.retryQueuedRequests()}};
var g;this.throttleTimeout=(g=h.throttleTimeout)!=null?g:100;var Z;this.retryMaxAttempts=(Z=h.retryMaxAttempts)!=null?Z:1;var M;this.requestAgeLimitMs=(M=h.requestAgeLimitMs)!=null?M:2592E6;var W;this.queuedRequestAgeLimitMs=(W=h.queuedRequestAgeLimitMs)!=null?W:12E4;var z;this.retryDelayMs=(z=h.retryDelayMs)!=null?z:5E3;var c;this.databaseToken=(c=h.databaseToken)!=null?c:void 0;this.enableCleaning=!!h.enableCleaning;var I;this.cleaningRate=(I=h.cleaningRate)!=null?I:.1;var B;this.potentialEsfErrorLimit=
(B=h.potentialEsfErrorLimit)!=null?B:10;h.handleError&&(this.handleError=h.handleError);h.handleWarning&&(this.handleWarning=h.handleWarning);h.disableYtIdbTransactions&&(this.disableYtIdbTransactions=h.disableYtIdbTransactions);h.bypassDbTokenDependency&&(this.bypassDbTokenDependency=h.bypassDbTokenDependency);this.getBooleanFlag=h.getBooleanFlag;this.jobManager=h.jobManager;this.logsStore=h.logsStore;this.networkManager=h.networkManager;this.sendFn=h.sendFn;this.onlineEvent=h.onlineEvent;this.offlineEvent=
h.offlineEvent;Xc(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&U_l(this)},U_l=function(h){Xc(h)&&!h.disableYtIdbTransactions&&(h.initialized=!0,h.enableCleaning&&Math.random()<=h.cleaningRate&&h.logsStore.cleanLogsStore(h.databaseToken),h.retryQueuedRequests(),h.networkManager.isNetworkAvailable()&&h.throttledSend(),h.networkManager.listen(h.onlineEvent,h.throttledSend.bind(h)),h.networkManager.listen(h.offlineEvent,h.cancelThrottledSend.bind(h)))};
_.p=YF.prototype;_.p.writeThenSend=function(h,E){var g=this;E=E===void 0?{}:E;if(Xc(this)&&this.initialized){var Z={url:h,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(Z,this.databaseToken).then(function(M){Z.id=M;g.networkManager.isNetworkAvailable()&&g.immediateSend(Z)}).catch(function(M){g.immediateSend(Z);
Lrl(g,M)})}else this.sendFn(h,E)};
_.p.sendThenWrite=function(h,E,g){var Z=this;E=E===void 0?{}:E;if(Xc(this)&&this.initialized){var M={url:h,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(M.skipRetry=g);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!M.skipRetry){if(!M.skipRetry){var W=E.onError?E.onError:function(){};
E.onError=function(z,c){return _.a(function(I){if(I.nextAddress==1)return I.yield(Z.logsStore.set(M,Z.databaseToken).catch(function(B){Lrl(Z,B)}),2);
W(z,c);_.SK(I)})}}this.sendFn(h,E,M.skipRetry)}else this.logsStore.set(M,this.databaseToken).catch(function(z){Z.sendFn(h,E,M.skipRetry);
Lrl(Z,z)})}else this.sendFn(h,E,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&g)};
_.p.sendAndWrite=function(h,E){var g=this;E=E===void 0?{}:E;if(Xc(this)&&this.initialized){var Z={url:h,options:E,timestamp:this.now(),status:"NEW",sendCount:0},M=!1,W=E.onSuccess?E.onSuccess:function(){};
Z.options.onSuccess=function(z,c){Z.id!==void 0?g.logsStore.deleteRequest(Z.id,g.databaseToken):M=!0;g.networkManager.networkStatusHint&&g.getBooleanFlag&&g.getBooleanFlag("vss_network_hint")&&g.networkManager.networkStatusHint(!0);W(z,c)};
this.sendFn(Z.url,Z.options,void 0,!0);this.logsStore.set(Z,this.databaseToken).then(function(z){Z.id=z;M&&g.logsStore.deleteRequest(Z.id,g.databaseToken)}).catch(function(z){Lrl(g,z)})}else this.sendFn(h,E,void 0,!0)};
_.p.throttledSend=function(){var h=this;if(!Xc(this))throw Error("cd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.logsStore.getMostRecentByStatus("NEW",h.databaseToken),2);if(g.nextAddress!=3)return E=g.yieldResult,E?g.yield(h.immediateSend(E),3):(h.cancelThrottledSend(),g.return());h.intervalJob&&(h.intervalJob=0,h.throttledSend());_.SK(g)})},this.throttleTimeout))};
_.p.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.p.immediateSend=function(h){var E=this,g;return _.a(function(Z){switch(Z.nextAddress){case 1:if(!Xc(E))throw Error("dd");if(h.id===void 0){Z.jumpTo(2);break}return Z.yield(E.logsStore.markAsQueued(h.id,E.databaseToken),3);case 3:(g=Z.yieldResult)||E.handleWarning(Error("ed"));case 2:if(E.requestWithinAgeLimit(h,E.requestAgeLimitMs)){Z.jumpTo(4);break}E.handleWarning(Error("fd"));if(h.id===void 0){Z.jumpTo(5);break}return Z.yield(E.logsStore.deleteRequest(h.id,E.databaseToken),5);case 5:return Z.return();
case 4:h.skipRetry||(h=j5A(E,h));if(!h){Z.jumpTo(0);break}if(!h.skipRetry||h.id===void 0){Z.jumpTo(8);break}return Z.yield(E.logsStore.deleteRequest(h.id,E.databaseToken),8);case 8:E.sendFn(h.url,h.options,!!h.skipRetry),_.SK(Z)}})};
var j5A=function(h,E){if(!Xc(h))throw Error("gd");var g=E.options.onError?E.options.onError:function(){};
E.options.onError=function(M,W){var z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:z=Gld(W);(c=zq4(W))&&h.getBooleanFlag&&h.getBooleanFlag("web_enable_error_204")&&h.handleError(Error("hd"),E.url,W);if(!(h.getBooleanFlag&&h.getBooleanFlag("nwl_consider_error_code")&&z||h.getBooleanFlag&&!h.getBooleanFlag("nwl_consider_error_code")&&h.potentialEsfErrorCounter<=h.potentialEsfErrorLimit)){U.jumpTo(2);break}if(!h.networkManager.sendNetworkCheckRequest){U.jumpTo(3);break}return U.yield(h.networkManager.sendNetworkCheckRequest(),
3);case 3:if(h.networkManager.isNetworkAvailable()){U.jumpTo(2);break}g(M,W);if(!h.getBooleanFlag||!h.getBooleanFlag("nwl_consider_error_code")||((I=E)==null?void 0:I.id)===void 0){U.jumpTo(6);break}return U.yield(h.logsStore.resetRequest(E.id,h.databaseToken,!1),6);case 6:return U.return();case 2:if(h.getBooleanFlag&&h.getBooleanFlag("nwl_consider_error_code")&&!z&&h.potentialEsfErrorCounter>h.potentialEsfErrorLimit)return U.return();h.potentialEsfErrorCounter++;if(((B=E)==null?void 0:B.id)===void 0){U.jumpTo(8);
break}return E.sendCount<h.retryMaxAttempts?U.yield(h.logsStore.resetRequest(E.id,h.databaseToken,!0,c?!1:void 0),12):U.yield(h.logsStore.deleteRequest(E.id,h.databaseToken),8);case 12:h.jobManager.addLowPriorityJob(function(){h.networkManager.isNetworkAvailable()&&h.throttledSend()},h.retryDelayMs);
case 8:g(M,W),_.SK(U)}})};
var Z=E.options.onSuccess?E.options.onSuccess:function(){};
E.options.onSuccess=function(M,W){var z;return _.a(function(c){if(c.nextAddress==1)return((z=E)==null?void 0:z.id)===void 0?c.jumpTo(2):c.yield(h.logsStore.deleteRequest(E.id,h.databaseToken),2);h.networkManager.networkStatusHint&&h.getBooleanFlag&&h.getBooleanFlag("vss_network_hint")&&h.networkManager.networkStatusHint(!0);Z(M,W);_.SK(c)})};
return E};
YF.prototype.requestWithinAgeLimit=function(h,E){h=h.timestamp;return this.now()-h>=E?!1:!0};
YF.prototype.retryQueuedRequests=function(){var h=this;if(!Xc(this))throw Error("id");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(E){E&&!h.requestWithinAgeLimit(E,h.queuedRequestAgeLimitMs)?h.jobManager.addLowPriorityJob(function(){return _.a(function(g){if(g.nextAddress==1)return E.id===void 0?g.jumpTo(2):g.yield(h.logsStore.resetRequest(E.id,h.databaseToken),2);h.retryQueuedRequests();_.SK(g)})}):h.networkManager.isNetworkAvailable()&&h.throttledSend()})};
var Lrl=function(h,E){h.writeError&&!h.networkManager.isNetworkAvailable()?h.writeError(E):h.handleError(E)},Xc=function(h){return!!h.databaseToken||h.bypassDbTokenDependency};var a64;var B5Z={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,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var d_H={},juZ=Gn("ServiceWorkerLogsDatabase",{objectStores:(d_H.SWHealthLog={addedAtVersion:1},d_H),shared:!0,upgrade:function(h,E){E(1)&&ya(kL(h,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var tQM={},Npx=0;var DBN;var sR=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},uK=function(){if(!sR.instance){var h=_.yy("yt.networkRequestMonitor.instance")||new sR;
_.Wu("yt.networkRequestMonitor.instance",h);sR.instance=h}return sR.instance};
sR.prototype.requestComplete=function(h,E){E&&(this.anyRequestHasSucceeded=!0);h=this.removeParams(h);this.requestMap.get(h)||this.requestMap.set(h,E)};
sR.prototype.isEndpointCFR=function(h){h=this.removeParams(h);return(h=this.requestMap.get(h))?!1:h===!1&&this.anyRequestHasSucceeded?!0:null};
sR.prototype.removeParams=function(h){return h.split("?")[0]};
sR.prototype.removeParams=sR.prototype.removeParams;sR.prototype.isEndpointCFR=sR.prototype.isEndpointCFR;sR.prototype.requestComplete=sR.prototype.requestComplete;sR.getInstance=uK;var VM=function(h){_.ms.call(this);var E=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=h!=null?h:{addLowPriorityJob:function(M,W){return setTimeout(M,W)},
cancelJob:function(M){clearTimeout(M)}};
var g,Z;this.isOnline=(Z=(g=window.navigator)==null?void 0:g.onLine)!=null?Z:!0;this.onNavigatorChange=function(){return _.a(function(M){return M.yield(CCH(E),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||JQl(this)};
_.f(VM,_.ms);VM.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete VM.instance};
VM.prototype.isNetworkAvailable=function(){return this.isOnline};
var JQl=function(h){h.pollingJob=h.jobManager.addLowPriorityJob(function(){var E;return _.a(function(g){if(g.nextAddress==1)return h.isOnline?((E=window.navigator)==null?0:E.onLine)?g.jumpTo(3):g.yield(CCH(h),3):g.yield(CCH(h),3);JQl(h);_.SK(g)})},3E4)},CCH=function(h,E){return h.networkRequestPromise?h.networkRequestPromise:h.networkRequestPromise=new Promise(function(g){var Z,M,W,z;
return _.a(function(c){switch(c.nextAddress){case 1:return Z=window.AbortController?new window.AbortController:void 0,W=(M=Z)==null?void 0:M.signal,z=!1,_.CX(c,2,3),Z&&(h.abortTimeoutKey=h.jobManager.addLowPriorityJob(function(){Z.abort()},E||2E4)),c.yield(fetch("/generate_204",{method:"HEAD",
signal:W}),5);case 5:z=!0;case 3:_.eK(c);h.networkRequestPromise=void 0;h.abortTimeoutKey&&(h.jobManager.cancelJob(h.abortTimeoutKey),h.abortTimeoutKey=0);z!==h.isOnline&&(h.isOnline=z,h.isOnline?h.dispatchEvent("networkstatus-online"):h.dispatchEvent("networkstatus-offline"));g(z);_.fX(c,0);break;case 2:_.th(c),z=!1,c.jumpTo(3)}})})};var kF=function(){_.ms.call(this);var h=this;this.shouldFlushErrors=!1;VM.instance||(VM.instance=new VM(_.KP));this.sharedNetworkStatusManager=VM.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(h.shouldFlushErrors&&_.J("offline_error_handling")){var E=l6W().get("errors",!0);if(E){for(var g in E)if(E[g]){var Z=new _.xX(g,"sent via offline_errors");Z.name=E[g].name;Z.stack=E[g].stack;Z.level=E[g].level;_.Vy(Z)}l6W().set("errors",{},2592E3,!0)}}})};
_.f(kF,_.ms);var ekD=function(){if(!kF.instance){var h=_.yy("yt.networkStatusManager.instance")||new kF;_.Wu("yt.networkStatusManager.instance",h);kF.instance=h}return kF.instance};
_.p=kF.prototype;_.p.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.p.networkStatusHint=function(h){this.sharedNetworkStatusManager.isOnline=h};
_.p.getWindowStatus=function(){var h=window.navigator.onLine;return h===void 0?!0:h};
_.p.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.p.listen=function(h,E){return this.sharedNetworkStatusManager.listen(h,E)};
_.p.sendNetworkCheckRequest=function(h){h=CCH(this.sharedNetworkStatusManager,h);h.then(function(E){_.J("use_cfr_monitor")&&uK().requestComplete("generate_204",E)});
return h};
kF.prototype.sendNetworkCheckRequest=kF.prototype.sendNetworkCheckRequest;kF.prototype.listen=kF.prototype.listen;kF.prototype.enableErrorFlushing=kF.prototype.enableErrorFlushing;kF.prototype.getWindowStatus=kF.prototype.getWindowStatus;kF.prototype.networkStatusHint=kF.prototype.networkStatusHint;kF.prototype.isNetworkAvailable=kF.prototype.isNetworkAvailable;kF.getInstance=ekD;_.bK=function(h){h=h===void 0?{}:h;_.ms.call(this);var E=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ekD();var g=_.yy("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);g&&(h.rateLimit?(this.rateLimit=h.rateLimit,g("networkstatus-online",function(){qHl(E,"publicytnetworkstatus-online")}),g("networkstatus-offline",function(){qHl(E,"publicytnetworkstatus-offline")})):(g("networkstatus-online",function(){E.dispatchEvent("publicytnetworkstatus-online")}),g("networkstatus-offline",
function(){E.dispatchEvent("publicytnetworkstatus-offline")})))};
_.f(_.bK,_.ms);_.bK.prototype.isNetworkAvailable=function(){var h=_.yy("yt.networkStatusManager.instance.isNetworkAvailable");return h?h.bind(this.nsmInstance)():!0};
_.bK.prototype.networkStatusHint=function(h){var E=_.yy("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);E&&E(h)};
_.bK.prototype.sendNetworkCheckRequest=function(h){var E=this,g;return _.a(function(Z){g=_.yy("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(E.nsmInstance);return _.J("skip_network_check_if_cfr")&&uK().isEndpointCFR("generate_204")?Z.return(new Promise(function(M){var W;E.networkStatusHint(((W=window.navigator)==null?void 0:W.onLine)||!0);M(E.isNetworkAvailable())})):g?Z.return(g(h)):Z.return(!0)})};
var qHl=function(h,E){h.rateLimit?h.lastJobTime?(_.KP.cancelJob(h.schedulerJob),h.schedulerJob=_.KP.addLowPriorityJob(function(){h.lastPublicSignalSent!==E&&(h.dispatchEvent(E),h.lastPublicSignalSent=E,h.lastJobTime=(0,_.zn)())},h.rateLimit-((0,_.zn)()-h.lastJobTime))):(h.dispatchEvent(E),h.lastPublicSignalSent=E,h.lastJobTime=(0,_.zn)()):h.dispatchEvent(E)};var $BM,yM=function(){YF.call(this,{logsStore:{cleanLogsStore:UBu,deleteRequest:Bpd,getMostRecentByStatus:I6a,markAsQueued:Rq$,resetRequest:PsV,set:oB$},networkManager:_.KTN(),handleError:function(h,E,g){var Z,M=g==null?void 0:(Z=g.error)==null?void 0:Z.code;if(M===400||M===415){var W;h=new _.xX(h.message,E,g==null?void 0:(W=g.error)==null?void 0:W.code);_.Fn(h,void 0,void 0,void 0,!0)}else _.Vy(h)},
handleWarning:_.Fn,sendFn:vB$,now:_.zn,writeError:rWZ,jobManager:_.xu(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.cx("potential_esf_error_limit",10),getBooleanFlag:_.J,disableYtIdbTransactions:!(_.Sy()&&_.OLd())});this.initializationPromise=new _.dN;_.J("networkless_immediately_drop_all_requests")&&LTu();z9z("LogsDatabaseV2")};
_.f(yM,YF);_.NAM=function(){var h=_.yy("yt.networklessRequestController.instance");h||(h=new yM,_.Wu("yt.networklessRequestController.instance",h),_.J("networkless_logging")&&_.pP().then(function(E){h.databaseToken=E;U_l(h);h.initializationPromise.resolve();h.enableCleaning&&Math.random()<=h.cleaningRate&&h.databaseToken&&CsW(h.databaseToken);_.J("networkless_immediately_drop_sw_health_store")&&fNM(h)}));
return h};
yM.prototype.writeThenSend=function(h,E){E||(E={});E=HL4(h,E);_.Sy()||(this.initialized=!1);YF.prototype.writeThenSend.call(this,h,E)};
yM.prototype.sendThenWrite=function(h,E,g){E||(E={});E=HL4(h,E);_.Sy()||(this.initialized=!1);YF.prototype.sendThenWrite.call(this,h,E,g)};
yM.prototype.sendAndWrite=function(h,E){E||(E={});E=HL4(h,E);_.Sy()||(this.initialized=!1);YF.prototype.sendAndWrite.call(this,h,E)};
yM.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var fNM=function(h){var E;_.a(function(g){if(!h.databaseToken)throw E=Vn("clearSWHealthLogsDb"),E;return g.return(JWN(h.databaseToken).catch(function(Z){h.handleError(Z)}))})};_.XK$=!1;_.nBW=_.MN.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.XK$};_.Wu("ytNetworklessLoggingInitializationOptions",_.nBW);var mJ=function(h){var E=this;this.config_=null;h?this.config_=h:URa()&&(this.config_=_.cu());_.xW(_.KP,function(){pK$(E)},5E3)};
mJ.prototype.isReady=function(){!this.config_&&URa()&&(this.config_=_.cu());return!!this.config_};
var WTz=function(h,E,g,Z){!_.nF("VISITOR_DATA")&&E!=="visitor_id"&&Math.random()<.01&&_.Fn(new _.xX("Missing VISITOR_DATA when sending innertube request.",E,g,Z));if(!h.isReady()){var M=new _.xX("innertube xhrclient not ready",E,g,Z);_.Vy(M);throw M;}var W={headers:Z.headers||{},method:"POST",postParams:g,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()},
onFetchTimeout:Z.onTimeout,onSuccess:function(L,d){if(Z.onSuccess)Z.onSuccess(d)},
onFetchSuccess:function(L){if(Z.onSuccess)Z.onSuccess(L)},
onProgress:function(L){if(Z.onProgress)Z.onProgress(L)},
onError:function(L,d){if(Z.onError)Z.onError(d)},
onFetchError:function(L){if(Z.onError)Z.onError(L)},
timeout:Z.timeout,withCredentials:!0,compress:Z.compress};W.headers["Content-Type"]||(W.headers["Content-Type"]="application/json");var z="";(M=h.config_.innertubeHostOverride)&&(z=M);var c=h.config_.innertubeUseThirdPartyAuth||!1,I=_.rkx(c,z,Z);Object.assign(W.headers,I);W.headers.Authorization&&!z&&c&&(W.headers["x-origin"]=window.location.origin);var B=_.Qy(z+("/youtubei/"+h.config_.innertubeApiVersion+"/"+E),{alt:"json"}),U=function(L){L=L===void 0?!1:L;var d;if(Z.retry&&z!="www.youtube-nocookie.com"&&
(L||_.J("skip_ls_gel_retry")||W.headers["Content-Type"]!=="application/json"||(d=ZL$(E,g,I,c)),d)){var C=W.onSuccess,q=W.onFetchSuccess;W.onSuccess=function(v,H){MQ4(d);C(v,H)};
g.onFetchSuccess=function(v,H){MQ4(d);q(v,H)}}try{if(L&&Z.retry&&!Z.networklessOptions.bypassNetworkless)W.method="POST",Z.networklessOptions.writeThenSend?_.NAM().writeThenSend(B,W):_.NAM().sendAndWrite(B,W);
else if(Z.compress){var w=!Z.networklessOptions.writeThenSend;if(W.postBody){var r=W.postBody;typeof r!=="string"&&(r=JSON.stringify(W.postBody));yax(B,r,W,_.df,w)}else yax(B,JSON.stringify(W.postParams),W,hOd,w)}else _.J("web_all_payloads_via_jspb")?_.df(B,W):hOd(B,W)}catch(v){if(v.name==="InvalidAccessError")d&&(MQ4(d),d=0),_.Fn(Error("jd"));else throw v;}d&&_.xW(_.KP,function(){pK$(h)},5E3)};
_.YQx()?h9$().then(function(L){U(L)}):U(!1)};var gJz=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(gJz,_.GN);var tNk=0,VQa=_.PW?"webkit":_.RV?"moz":_.IV?"ms":mrx?"o":"";_.Wu("ytDomDomGetNextId",_.yy("ytDomDomGetNextId")||function(){return++tNk});var SHA={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},MK=function(h){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(h=
h||window.event){this.event=h;for(var E in h)E in SHA||(this[E]=h[E]);this.scale=h.scale;this.rotation=h.rotation;var g=h.target||h.srcElement;g&&g.nodeType==3&&(g=g.parentNode);this.target=g;var Z=h.relatedTarget;if(Z)try{Z=Z.nodeName?Z:null}catch(M){Z=null}else this.type=="mouseover"?Z=h.fromElement:this.type=="mouseout"&&(Z=h.toElement);this.relatedTarget=Z;this.clientX=h.clientX!=void 0?h.clientX:h.pageX;this.clientY=h.clientY!=void 0?h.clientY:h.pageY;this.keyCode=h.keyCode?h.keyCode:h.which;
this.charCode=h.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=h.altKey;this.ctrlKey=h.ctrlKey;this.shiftKey=h.shiftKey;this.metaKey=h.metaKey;this.pageX_=h.pageX;this.pageY_=h.pageY}}catch(M){}},x_m=function(h){if(document.body&&document.documentElement){var E=document.body.scrollTop+document.documentElement.scrollTop;
h.pageX_=h.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);h.pageY_=h.clientY+E}};
MK.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
MK.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
MK.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ZP=_.MN.ytEventsEventsListeners||{};_.Wu("ytEventsEventsListeners",ZP);var bLZ=_.MN.ytEventsEventsCounter||{count:0};_.Wu("ytEventsEventsCounter",bLZ);var u8u=_.DE(function(){var h=!1;try{var E=Object.defineProperty({},"capture",{get:function(){h=!0}});
window.addEventListener("test",null,E)}catch(g){}return h});_.aV(pI,_.wO);pI.prototype.onMouseMove_=function(h){h.pageX_===void 0&&x_m(h);var E=h.pageX_;h.pageY_===void 0&&x_m(h);this.position_=new _.nt(E,h.pageY_)};
pI.prototype.checkPosition_=function(){if(this.position_){var h=(0,_.zn)();if(this.previousTime_!=0){var E=this.previousPosition_,g=this.position_,Z=E.x-g.x;E=E.y-g.y;Z=Math.sqrt(Z*Z+E*E)/(h-this.previousTime_);this.cycles_[this.index_]=Math.abs((Z-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(g=E=0;g<4;g++)E+=this.cycles_[g]||0;E>=3&&this.callback_();this.previousVelocity_=Z}this.previousTime_=h;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
pI.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.Qux(this.mouseListenerKey_)};var ZOz={};var i4q=new _.I2("rawColdConfigGroup");var cUu=new _.I2("rawHotConfigGroup");var wlH=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(wlH,_.GN);var EJV=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(EJV,_.GN);var SM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h,500)};
_.f(SM,_.GN);SM.prototype.getPayloadCase=function(){return _.ts(this,D_D)};
SM.prototype.getContext=function(){return _.iK(this,EJV,33)};
var D_D=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var MvZ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(MvZ,_.GN);var r7z=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(r7z,_.GN);r7z.prototype.setVideoId=function(h){return dQ(this,1,miz,CU(h))};
r7z.prototype.getPlaylistId=function(){return _.ef(this,fI(this,miz,2))};
var miz=[1,2];var uNu=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(uNu,_.GN);uNu.prototype.getContext=function(){return _.iK(this,CI,1)};
uNu.prototype.getTier=function(){return _.vW(this,7)};var lNl,ip,o8;lNl=_.MN.ytPubsubPubsubInstance||new _.Jl;ip=_.MN.ytPubsubPubsubSubscribedKeys||{};o8=_.MN.ytPubsubPubsubTopicToKeys||{};_.Mdx=_.MN.ytPubsubPubsubIsSynchronous||{};_.Jl.prototype.subscribe=_.Jl.prototype.subscribe;_.Jl.prototype.unsubscribeByKey=_.Jl.prototype.unsubscribeByKey;_.Jl.prototype.publish=_.Jl.prototype.publish;_.Jl.prototype.clear=_.Jl.prototype.clear;_.Wu("ytPubsubPubsubInstance",lNl);_.Wu("ytPubsubPubsubTopicToKeys",o8);_.Wu("ytPubsubPubsubIsSynchronous",_.Mdx);
_.Wu("ytPubsubPubsubSubscribedKeys",ip);var R8=window;var Fc=_.J("web_enable_lifecycle_monitoring")&&aCx()!==0,rQF=_.J("web_enable_lifecycle_monitoring");var m_n=function(h){var E=this;var g=g===void 0?0:g;var Z=Z===void 0?_.xu():Z;this.JSC$10891_defaultPriority=g;this.scheduler=Z;this.completedResolver=new _.dN;this.scheduledPayloads=h;for(h={i$jscomp$492:0};h.i$jscomp$492<this.scheduledPayloads.length;h={payload$jscomp$20:void 0,i$jscomp$492:h.i$jscomp$492},h.i$jscomp$492++)h.payload$jscomp$20=this.scheduledPayloads[h.i$jscomp$492],g=function(M){return function(){M.payload$jscomp$20.job();E.scheduledPayloads[M.i$jscomp$492].processed=!0;E.scheduledPayloads.every(function(W){return W.processed===
!0})&&E.completedResolver.resolve()}}(h),Z=this.getPriority(h.payload$jscomp$20),Z=this.scheduler.addJob(g,Z),this.scheduledPayloads[h.i$jscomp$492]=Object.assign({},h.payload$jscomp$20,{job:g,
jobId:Z})};
m_n.prototype.flushJobs=function(){var h=this,E=Array.from(this.scheduledPayloads.keys()).sort(function(Z,M){return h.getPriority(h.scheduledPayloads[M])-h.getPriority(h.scheduledPayloads[Z])});
E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=this.scheduledPayloads[g.value],g.jobId===void 0||g.processed||(this.scheduler.cancelJob(g.jobId),this.scheduler.addJob(g.job,10))};
m_n.prototype.cancel=function(){for(var h=_.G(this.scheduledPayloads),E=h.next();!E.done;E=h.next())E=E.value,E.jobId===void 0||E.processed||this.scheduler.cancelJob(E.jobId),E.processed=!0;this.completedResolver.resolve()};
m_n.prototype.getPriority=function(h){var E;return(E=h.priority)!=null?E:this.JSC$10891_defaultPriority};var AB=function(h){this.state=h;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Fc&&c7$(this.state)};
AB.prototype.install=function(h){this.plugins.push(h);return this};
AB.prototype.uninstall=function(){var h=this;_.VF.apply(0,arguments).forEach(function(E){E=h.plugins.indexOf(E);E>-1&&h.plugins.splice(E,1)})};
AB.prototype.transition=function(h,E){var g=this;Fc&&iOz(this.state);var Z=this.transitions.find(function(W){return Array.isArray(W.from)?W.from.find(function(z){return z===g.state&&W.to===h}):W.from===g.state&&W.to===h});
if(Z){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);vND(this,h,E);this.state=h;Fc&&c7$(this.state);Z=Z.action.bind(this);var M=this.plugins.filter(function(W){return W[h]}).map(function(W){return W[h]});
Z(HQD(this,M),E)}else throw Error("kd`"+this.state+"`"+h);};
var HQD=function(h,E){var g=E.filter(function(M){return $_H(h,M)===10}),Z=E.filter(function(M){return $_H(h,M)!==10});
return h.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var M=_.VF.apply(0,arguments);return _.a(function(W){if(W.nextAddress==1)return W.yield(h.runImmediateJobsAsync.apply(h,[g].concat(_.$E(M))),2);h.setJobSetWithScheduledJobs.apply(h,[Z].concat(_.$E(M)));_.SK(W)})}:function(){var M=_.VF.apply(0,arguments);
h.runImmediateJobsSync.apply(h,[g].concat(_.$E(M)));h.setJobSetWithScheduledJobs.apply(h,[Z].concat(_.$E(M)))}};
AB.prototype.runImmediateJobsSync=function(h){var E=_.VF.apply(1,arguments);_.xu();for(var g=_.G(h),Z=g.next(),M={};!Z.done;M={lifecycle$jscomp$2:void 0},Z=g.next())M.lifecycle$jscomp$2=Z.value,UL(function(W){return function(){Krf(W.lifecycle$jscomp$2.name);ICz(function(){return W.lifecycle$jscomp$2.callback.apply(W.lifecycle$jscomp$2,_.$E(E))});
T1(W.lifecycle$jscomp$2.name)}}(M))};
AB.prototype.runImmediateJobsAsync=function(h){var E=_.VF.apply(1,arguments),g,Z,M,W;return _.a(function(z){z.nextAddress==1&&(_.xu(),g=_.G(h),Z=g.next(),M={});if(z.nextAddress!=3){if(Z.done)return z.jumpTo(0);M.lifecycle$jscomp$3=Z.value;M.asyncJobCompletion=void 0;W=function(c){return function(){Krf(c.lifecycle$jscomp$3.name);var I=ICz(function(){return c.lifecycle$jscomp$3.callback.apply(c.lifecycle$jscomp$3,_.$E(E))});
obO(I)?c.asyncJobCompletion=_.J("web_lifecycle_error_handling_killswitch")?I.then(function(){T1(c.lifecycle$jscomp$3.name)}):I.then(function(){T1(c.lifecycle$jscomp$3.name)},function(B){oPx(B);
T1(c.lifecycle$jscomp$3.name)}):T1(c.lifecycle$jscomp$3.name)}}(M);
UL(W);return M.asyncJobCompletion?z.yield(M.asyncJobCompletion,3):z.jumpTo(3)}M={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};Z=g.next();return z.jumpTo(2)})};
AB.prototype.setJobSetWithScheduledJobs=function(h){var E=_.VF.apply(1,arguments),g=this,Z=h.map(function(M){return{job:function(){Krf(M.name);ICz(function(){return M.callback.apply(M,_.$E(E))});
T1(M.name)},
priority:$_H(g,M)}});
Z.length&&(this.jobSet=new m_n(Z))};
var $_H=function(h,E){var g,Z;return(Z=(g=h.overridePriority)!=null?g:E.priority)!=null?Z:0},Krf=function(h){Fc&&h&&c7$(h)},T1=function(h){Fc&&h&&iOz(h)},vND=function(h,E,g){rQF&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+h.constructor.name+"] '"+h.state+"' to '"+E+"'"),console.log("with message: ",g),console.groupEnd())};
_.ze.Object.defineProperties(AB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var OQm=function(h){AB.call(this,h===void 0?"none":h);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(){}}]},nNM;
_.f(OQm,AB);OQm.prototype.runApplicationNavigationBegin=function(h,E){var g=this;this.navigationTimer=_.xW(_.KP,function(){g.currentState==="application_navigating"&&g.transition("none")},5E3);
h(E==null?void 0:E.event)};
OQm.prototype.runApplicationNavigationEnd=function(h,E){this.navigationTimer&&(_.KP.cancelJob(this.navigationTimer),this.navigationTimer=null);h(E==null?void 0:E.event)};
_.adz=function(){nNM||(nNM=new OQm);return nNM};var znd=[];_.Wu("yt.logging.transport.getScrapedGelPayloads",function(){return znd});var PT=function(){var h=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return h.totalEntries}}};
PT.prototype.storePayload=function(h,E){h=Rz4(h);this.store[h]?this.store[h].push(E):(this.memoizedKeySequences={},this.store[h]=[E]);this.totalEntries++;_.J("more_accurate_gel_parser")&&(E=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(E));return h};
PT.prototype.smartExtractMatchingEntries=function(h){if(!h.keys.length)return[];for(var E=XlD(this,h.keys.splice(0,1)[0]),g=[],Z=0;Z<E.length;Z++)this.store[E[Z]]&&h.sizeLimit&&(this.store[E[Z]].length<=h.sizeLimit?(g.push.apply(g,_.$E(this.store[E[Z]])),delete this.store[E[Z]]):g.push.apply(g,_.$E(this.store[E[Z]].splice(0,h.sizeLimit))));this.totalEntries-=g.length;(h==null?0:h.sizeLimit)&&g.length<(h==null?void 0:h.sizeLimit)&&(h.sizeLimit-=g.length,g.push.apply(g,_.$E(this.smartExtractMatchingEntries(h))));
return g};
PT.prototype.extractMatchingEntries=function(h){h=XlD(this,h);for(var E=[],g=0;g<h.length;g++)this.store[h[g]]&&(E.push.apply(E,_.$E(this.store[h[g]])),delete this.store[h[g]]);this.totalEntries-=E.length;return E};
PT.prototype.getSequenceCount=function(h){h=XlD(this,h);for(var E=0,g=0;g<h.length;g++){var Z=void 0;E+=((Z=this.store[h[g]])==null?void 0:Z.length)||0}return E};
var XlD=function(h,E){var g=Rz4(E);if(h.memoizedKeySequences[g])return h.memoizedKeySequences[g];var Z=Object.keys(h.store)||[];if(Z.length<=1&&Rz4(E)===Z[0])return Z;for(var M=[],W=0;W<Z.length;W++){var z=Z[W].split("/");if(YHA(E.auth,z[0])){var c=E.isJspb;YHA(c===void 0?"undefined":c?"true":"false",z[1])&&YHA(E.cttAuthInfo,z[2])&&(c=E.tier,c=c===void 0?"undefined":JSON.stringify(c),YHA(c,z[3])&&M.push(Z[W]))}}return h.memoizedKeySequences[g]=M},YHA=function(h,E){return h===void 0||h==="undefined"?
!0:h===E};
PT.prototype.getSequenceCount=PT.prototype.getSequenceCount;PT.prototype.extractMatchingEntries=PT.prototype.extractMatchingEntries;PT.prototype.smartExtractMatchingEntries=PT.prototype.smartExtractMatchingEntries;PT.prototype.storePayload=PT.prototype.storePayload;var s9W,X$$,Vdd,LI,s5F,PvV,RnM,nPq,OOd,SLx,YLx,p3V,HO$;s9W=_.cx("initial_gel_batch_timeout",2E3);X$$=_.cx("gel_queue_timeout_max_ms",6E4);Vdd=_.cx("gel_min_batch_size",5);LI=void 0;s5F=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
PvV=new s5F;RnM=new s5F;nPq=new s5F;OOd=new s5F;YLx=!0;p3V=1;_.Wzu=new Map;HO$=_.MN.ytLoggingTransportTokensToCttTargetIds_||{};_.Wu("ytLoggingTransportTokensToCttTargetIds_",HO$);var vPx=_.MN.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Wu("ytLoggingTransportTokensToJspbCttTargetIds_",vPx);var U$={};var lp=_.MN.ytLoggingGelSequenceIdObj_||{};_.Wu("ytLoggingGelSequenceIdObj_",lp);var LzN=[];var w3N=new Set,enM=0,mIu=0,rUO=0,fdu=[],qzz=[],vxO=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var AU$=function(){};
AU$.prototype.getUrl=function(h,E){E=E===void 0?!1:E;return h.hasOwnProperty("shareEndpoint")?null:_.O4W(h,null,E)};
var F_q=function(h,E,g){h={endpoint:E,actions:[]};g=(g.path?g.path[0]:g.target).icon||"";E=g.indexOf(":");E>0&&(g=g.substr(E+1));g&&h.actions.push(g);return h};var kDN=/Command$/,Vvd=/Endpoint$/,X3Z=new Map;var VNM,kel;VNM=1;_.Tq=function(){this.actionRoutingMap=new Map};
_.Tq.prototype.triggerAction=function(h){var E=new r9Z(h,!1,_.VF.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.Tq.prototype.triggerOptionalAction=function(h){var E=new r9Z(h,!0,_.VF.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.bQ=function(h,E,g){E.forEach(function(Z){var M=sJz(Z);M&&h.triggerOptionalAction(M,Z,g,void 0)})};
_.Tq.prototype.handleAction=function(h){var E=this.actionRoutingMap.get(h.actionName);E&&kel(h,E);h.optionalAction||h.returnValue.length!==0||(h=new _.xX("Unhandled action",h.actionName),_.Fn(h))};
kel=function(h,E){E.forEach(function(g){var Z=null;g?Z=g.apply(null,h.args):(g=Error("ld"),g.params=h.actionName,_.Vy(g));h.returnValue.push(Z)})};
_.bp=function(h,E,g){g||(g=VNM++);for(var Z=_.G(Object.keys(E)),M=Z.next();!M.done;M=Z.next()){M=M.value;var W=h.actionRoutingMap.get(M);W||(W=new Map,h.actionRoutingMap.set(M,W));h.registerActionHandler(g,M,E[M],W)}return g};
_.Tq.prototype.registerActionHandler=function(h,E,g,Z){Z.set(h,_.k3(g))};
_.up=function(h,E,g){E=_.G(Object.keys(E));for(var Z=E.next();!Z.done;Z=E.next())(Z=h.actionRoutingMap.get(Z.value))&&Z.delete(g)};
_.GZ(_.Tq);var u5d=function(h,E){var g=_.Tq.getInstance();_.vJ(function(){var Z={},M=_.bp(g,(Z[h]=E,Z));_.r9(function(){var W={};_.up(g,(W[h]="",W),M)})})};var WAu=Symbol("nd");ZQd=HQ4;var RAZ=new Set(["For","If","Match","Watch"]),yQl={},FrH=(yQl[YZ.default]=function(){return TaO},yQl.style=function(){return TaO},yQl),AQn;
for(AQn in FrH)z9.attributes[AQn]=FrH[AQn](z9.attributes[AQn]);var aT=new _.Ps("VISIBILITY_OBSERVER");var qaq={retrieve:function(h){return this.id.\u0275prov.token===h.\u0275prov.token?this.contextValue:this?_.Wm(this,this.id):CKq}};var biq=function(h,E,g){if(h!==W6)return!1;h=zA$(document.createElement("div"),function(){var Z=ao(!1);try{g[0]()}finally{ao(Z)}});
h=Array.from(h.childNodes);h.length===1&&(h=h[0]);return h};var TAl=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(h){}var bQA=typeof WeakRef==="function";var uaF=function(h){this.value=h};
uaF.prototype.deref=function(){return this.value};
var Q5B=bQA?WeakRef:uaF,hhf=function(h){this.newKeyHandler=h;this.map=new WeakMap};
hhf.prototype.add=function(h,E){this.map.has(h)||(this.newKeyHandler(h),this.map.set(h,[]));this.map.get(h).push(new Q5B(E))};
hhf.prototype.get=function(h){var E=this;return function Z(){var M,W,z,c,I,B,U,L,d,C,q;return _.cw(Z,function(w){switch(w.nextAddress){case 1:_.qc(w,2);M=E.map.get(h);if(!M)return w.return();W=0;z=_.G(M);c=z.next();case 4:if(c.done){w.jumpTo(6);break}I=c.value;B=I.deref();if(!B){w.jumpTo(5);break}W++;U=_.iz;return w.yield(B,8);case 8:U(w.yieldResult);case 5:c=z.next();w.jumpTo(4);break;case 6:if(2*W<M.length){L=0;d=_.G(M);for(C=d.next();!C.done;C=d.next())q=C.value,q.deref()&&(M[L++]=q);M.length=
L}case 2:_.eK(w),_.fX(w,0)}})}()};var Een=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},DT$=new hhf(function(h){h.addEventListener("abort",reZ,{once:!0})}),wgV=new WeakMap,geC=function(h){h=h===void 0?uQ:h;
this.signal=new h};
geC.prototype.abort=function(h){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=h,h=new Event("abort"),this.signal.dispatchEvent(h))};
var uQ=function(){this.target=Een();this.aborted=!1;this.onabort=null};
uQ.prototype.throwIfAborted=function(){xT$.call(this)};
uQ.prototype.addEventListener=function(h,E,g){this.target.addEventListener(h,E,g)};
uQ.prototype.removeEventListener=function(h,E,g){this.target.removeEventListener(h,E,g)};
uQ.prototype.dispatchEvent=function(h){if(this.onabort&&h.type==="abort")this.onabort(h);return this.target.dispatchEvent(h)};
uQ.abort=SaV;uQ.timeout=mTW;uQ.any=lqd;var tpu=TAl?AbortController:geC,QM=TAl?AbortSignal:uQ;typeof QM.abort!=="function"&&(QM.abort=SaV);typeof QM.prototype.throwIfAborted!=="function"&&(QM.prototype.throwIfAborted=xT$);typeof QM.any!=="function"&&(QM.any=lqd);typeof QM.timeout!=="function"&&(QM.timeout=mTW);var ZZB=function(h){h=h.clone();ewD(h);v5(h,"dg",null);v5(h,"d","0");jCC(h,null);ddf(h,null);return h},MjM=!0,WcB=function(h,E,g){var Z=g===void 0?{}:g;
g=Z.cssRowKey===void 0?void 0:Z.cssRowKey;var M=Z.combinedSignature===void 0?void 0:Z.combinedSignature;var W=Z.extraEdges===void 0?void 0:Z.extraEdges;Z=Z.callback===void 0?void 0:Z.callback;v5(h,"m",E.join(","));W&&Jlm(h,W);g&&(v5(h,"ck",g),M?v5(h,"rs",M):MjM&&(MjM=!1));if(Z){if(Z!=null&&!Nfn.test(Z))throw Error("Xa`"+Z);v5(h,"cb",Z)}h=h.toString();_.Gu(h,"/")&&(h=Ern(document.location.href)+h);return _.wU(h)};var GGl=function(h){return pXB(h).then(function(E){return JSON.parse(E.responseText)})},pXB=function(h){var E={},g=E.xmlHttpFactory?E.xmlHttpFactory.createInstance():npM.createInstance();
return(new _.jM(function(Z,M){var W;try{g.open("GET",h,!0)}catch(I){M(new h9("Error opening XHR: "+I.message,h,g))}g.onreadystatechange=function(){if(g.readyState==4){_.MN.clearTimeout(W);var I;!(I=OtA(g.status))&&(I=g.status===0)&&(I=haD(h),I=!(I=="http"||I=="https"||I==""));I?Z(g):M(new zhn(g.status,h,g))}};
g.onerror=function(){M(new h9("Network error",h,g))};
if(E.headers)for(var z in E.headers){var c=E.headers[z];c!=null&&g.setRequestHeader(z,c)}E.withCredentials&&(g.withCredentials=E.withCredentials);E.responseType&&(g.responseType=E.responseType);E.mimeType&&g.overrideMimeType(E.mimeType);E.timeoutMs>0&&(W=_.MN.setTimeout(function(){g.onreadystatechange=function(){};
g.abort();M(new aAD(h,g))},E.timeoutMs));
try{g.send(null)}catch(I){g.onreadystatechange=function(){},_.MN.clearTimeout(W),M(new h9("Error sending XHR: "+I.message,h,g))}})).thenCatch(function(Z){Z instanceof _.Y7&&g.abort();
throw Z;})},h9=function(h,E,g){_.g$.call(this,h+", url="+E);
this.url=E;this.xhr=g};
_.aV(h9,_.g$);h9.prototype.name="XhrError";var zhn=function(h,E,g){h9.call(this,"Request Failed, status="+h,E,g);this.status=h};
_.aV(zhn,h9);zhn.prototype.name="XhrHttpError";var aAD=function(h,E){h9.call(this,"Request timed out",h,E)};
_.aV(aAD,h9);aAD.prototype.name="XhrTimeoutError";pW=pW||{};var E1=function(){_.wO.call(this)};
_.aV(E1,_.wO);E1.prototype.initialize=function(){};var cTM=function(h,E){this.fn_=h;this.handler_=E};
cTM.prototype.execute=function(h){this.fn_&&(this.fn_.call(this.handler_||null,h),this.fn_=this.handler_=null)};
cTM.prototype.abort=function(){this.handler_=this.fn_=null};var gg=function(h,E){_.wO.call(this);this.deps_=h;this.JSC$11045_id_=E;this.onloadCallbacks_=[];this.JSC$11045_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.aV(gg,_.wO);gg.prototype.moduleConstructor_=E1;gg.prototype.module_=null;gg.prototype.getId=function(){return this.JSC$11045_id_};
gg.prototype.registerCallback=function(h,E){return iZl(this.onloadCallbacks_,h,E)};
var oeD=function(h,E){iZl(h.JSC$11045_onErrorCallbacks_,E)},iZl=function(h,E,g){E=new cTM(E,g);
h.push(E);return E};
gg.prototype.isLoaded=function(){return!!this.module_};
gg.prototype.onLoad=function(h){var E=new this.moduleConstructor_;E.initialize(h());this.module_=E;E=(E=IAC(this.earlyOnloadCallbacks_,h()))||IAC(this.onloadCallbacks_,h());E||(this.JSC$11045_onErrorCallbacks_.length=0);return E};
gg.prototype.onError=function(h){(h=IAC(this.JSC$11045_onErrorCallbacks_,h))&&Wa(Error("rd`"+h));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var IAC=function(h,E){for(var g=[],Z=0;Z<h.length;Z++)try{h[Z].execute(E)}catch(M){Wa(M),g.push(M)}h.length=0;return g.length?g:null};
gg.prototype.disposeInternal=function(){gg.superClass_.disposeInternal.call(this);_.p8(this.module_)};var RhH,dHk,LcD,jal,BCl,UHH,fAD,ehA,q7f;
_.IT=function(h,E,g,Z,M){Z=Z===void 0?!1:Z;M=M===void 0?!1:M;var W=W===void 0?!0:W;this.scsReferenceUrl_=sIV(_.lx(h).toString(),W);this.cssRowKey_=E;this.combinedSignature_=g;this.useNegativeLoading_=Z;this.requestedModuleMap_={};this.JSC$11048_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(h=m9(this.scsReferenceUrl_,"excm"))?h.split(","):[];this.shouldScanForCss_=M;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;VsW();_.Zv(this,CNl(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
RhH=function(h,E){if(E.href||E.getAttribute("data-href"))if(E=E.href||E.getAttribute("data-href"),OP$(E)&&!sIV(E).urlPrefix_.endsWith("_/js/")){E=CNl(sIV(E));E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,h.loadedCssModuleList_.includes(g)||h.loadedCssModuleList_.push(g)}};
_.IT.prototype.JSC$11050_loadModules=function(h,E,g){var Z=g===void 0?{}:g;g=Z.extraEdges;var M=Z.onError;var W=Z.onSuccess;Z=Z.forceReload;this.JSC$11048_moduleInfoMap_=E;if(!h)throw Error("sd");if(this.shouldScanForCss_){E=_.G(document.getElementsByTagName("style"));for(var z=E.next();!z.done;z=E.next())RhH(this,z.value);E=_.G(document.getElementsByTagName("link"));for(z=E.next();!z.done;z=E.next())RhH(this,z.value)}Pwl(this,BCl(this,h),g,M,W,Z)};
var Pwl=function(h,E,g,Z,M,W){Z=Z===void 0?function(){}:Z;
M=M===void 0?function(){}:M;
W=W===void 0?!1:W;UHH(h,E,function(z,c,I){I=I===void 0?c:I;h.enableFallbackFetch&&W?h.loadWithFetch(z,c,Z,M,I):h.load(z,c,Z,M,I,g)},g)||Z(-1)};
_.IT.prototype.loadWithFetch=function(){_.a(function(){throw Error("td");})};
_.IT.prototype.maybeSetAdditionalFields=function(){};
dHk=function(h,E,g){if(h.useNegativeLoading_){var Z=h.scsReferenceUrl_;h={cssRowKey:h.cssRowKey_,combinedSignature:h.combinedSignature_,extraEdges:g,requestedModuleIds:LcD(h),requestedCssModuleIds:jal(h)};var M=h===void 0?{}:h;h=M.requestedModuleIds===void 0?[]:M.requestedModuleIds;g=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds;var W=M.cssRowKey===void 0?void 0:M.cssRowKey;var z=M.combinedSignature===void 0?void 0:M.combinedSignature;var c=M.extraEdges===void 0?void 0:M.extraEdges;
M=M.callback===void 0?void 0:M.callback;Z=ZZB(Z);v5(Z,"d","1");jCC(Z,h);ddf(Z,g);E=WcB(Z,E,{cssRowKey:W,combinedSignature:z,extraEdges:c,callback:M})}else Z=h.scsReferenceUrl_,h={cssRowKey:h.cssRowKey_,combinedSignature:h.combinedSignature_,requestedModuleIds:LcD(h),requestedCssModuleIds:jal(h)},c=h===void 0?{}:h,h=c.requestedCssModuleIds===void 0?[]:c.requestedCssModuleIds,g=c.cssRowKey===void 0?void 0:c.cssRowKey,W=c.combinedSignature===void 0?void 0:c.combinedSignature,z=c.extraEdges===void 0?
void 0:c.extraEdges,c=c.callback===void 0?void 0:c.callback,Z=ZZB(Z),ddf(Z,h),E=WcB(Z,E,{cssRowKey:g,combinedSignature:W,extraEdges:z,callback:c});return E};
_.Zv=function(h,E){for(var g=!1,Z=[],M=0;M<E.length;++M){var W=E[M];h.requestedModuleMap_[W]||(h.requestedModuleMap_[W]=!0,h.requestedModuleList_.push(W),g=!0,Z.push(W))}g&&(h.requestedModuleListSorted_=!1)};
_.Mu=function(h,E){for(var g=[],Z=0;Z<E.length;++Z){var M=E[Z];h.requestedModuleMap_[M]&&(delete h.requestedModuleMap_[M],_.Xz(h.requestedModuleList_,M),g.push(M))}};
_.IT.prototype.load=function(h,E,g,Z,M){M=M===void 0?E:M;_.lx(h);var W=this.useCors_,z=this.corsMode_,c=this.fetchPriority,I=_.q3("SCRIPT");_.pX(I,h);W&&(I.crossOrigin=z);I.async=!1;c&&I.setAttribute("fetchpriority",c);_.Zv(this,E);_.CwF(this,h,I,E,g,Z,M)};
_.CwF=function(h,E,g,Z,M,W,z){z=z===void 0?Z:z;h.lastScript_=g;h.insertPos.insertBefore(g,h.insertPos.firstChild);_.JTl(g,Z,function(){g.parentElement.removeChild(g);h.lastScript_==g&&(h.lastScript_=null);var c=new Set;Z.map(function(B){return c.add(B)});
for(var I in h.JSC$11048_moduleInfoMap_)h.JSC$11048_moduleInfoMap_[I].isLoaded()&&c.add(I);Array.from(c);W()},function(c){g.parentElement.removeChild(g);
h.lastScript_==g&&(h.lastScript_=null);_.Mu(h,c);h.pendingModuleGraphUpdate_?h.pendingModuleGraphUpdate_.then(function(){M(-1,E)}):M(-1,E)},z)};
_.JTl=function(h,E,g,Z,M){M=M===void 0?E:M;var W=E.length,z=function(){W=0;h.onload=null;h.onerror=null;c=function(){}},c=function(){z();
var B=M.filter(function(U){return!Hh().getModuleInfo(U).isLoaded()});
B.length!==0?Z(B,"Response was successful but was missing module(s) "+B+"."):g()},I=function(){W--;
W==0&&c()};
E.forEach(function(B){B=Hh().getModuleInfo(B);B.isLoaded()?I():(iZl(B.earlyOnloadCallbacks_,I),oeD(B,I))});
h.onload=function(){return c()};
h.onerror=function(){z();Z(E)}};
LcD=function(h){h.requestedModuleListSorted_||(h.requestedModuleListSorted_=!0,h.requestedModuleList_.sort());return h.requestedModuleList_};
jal=function(h){h=h.loadedCssModuleList_;h.sort();return h};
BCl=function(h,E){return E.filter(function(g){return!h.requestedModuleMap_[g]})};
UHH=function(h,E,g,Z){if(h.pendingModuleGraphUpdate_)return h.pendingModuleGraphUpdate_.then(function(){UHH(h,E,g,Z)}),!0;
if(!h.useNegativeLoading_){var M=[],W=Object.assign({},h.requestedModuleMap_);ehA(h,E,function(U){M.push(U.getId())},Z,function(U){return!U.isLoaded()},W);
E=M}for(W=0;W<E.length;){for(var z=E.length-W,c=W==0?E:E.slice(W,E.length),I=dHk(h,c,Z),B=_.lx(I).toString();B.length>h.urlMaxLength;)if(z>1)z-=Math.ceil((B.length-h.urlMaxLength)/6),z=Math.max(z,1),c=E.slice(W,W+z),I=dHk(h,c,Z),B=_.lx(I).toString();else return h.useNegativeLoading_?(h.useNegativeLoading_=!1,h.pendingModuleGraphUpdate_=q7f(h).then(function(U){fAD(h,U,Z)}),UHH(h,E.slice(W),g,Z)):!1;
W+=z;h.useNegativeLoading_?g(I,c):g(I,c,W===E.length?E:[])}return!0};
fAD=function(h,E,g){Hh().setAllModuleInfoString((E||{}).moduleGraph);ehA(h,LcD(h),function(Z){_.Zv(h,[Z.getId()])},g);
h.pendingModuleGraphUpdate_=null};
ehA=function(h,E,g,Z,M,W){W=W===void 0?{}:W;var z=Hh();E=_.G(E);for(var c=E.next();!c.done;c=E.next()){c=c.value;var I=z.getModuleInfo(c);if(!(W[c]||M&&!M(I))){W[c]=!0;var B=I.deps_||[];if(Z){var U=[];Z[c]&&(U=Object.keys(Z[c]));B=B.concat(U)}ehA(h,B,g,Z,M,W);g(I)}}};
q7f=function(h){h=h.scsReferenceUrl_.clone();ewD(h);v5(h,"dg",null);v5(h,"md","1");return GGl(h.toString())};var v7q=new Uint8Array(123);var NCD=[];var tjF=function(){this.JSC$10055_loader_=null};
_.p=tjF.prototype;_.p.setBatchModeEnabled=function(){};
_.p.setAllModuleInfoString=function(){};
_.p.addExtraEdge=function(){throw Error("ud");};
_.p.removeExtraEdge=function(){throw Error("vd");};
_.p.getModuleContext=function(){return null};
_.p.isActive=function(){return!1};
_.p.isUserActive=function(){return!1};
_.p.registerCallback=function(){};var WC=function(h,E,g,Z,M){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.name="ModuleLoadFailure";this.type=h;this.status=E;this.requestedModuleIds=g;this.url=Z;this.cause=M;this.message=this.toString()};
_.f(WC,Error);WC.prototype.toString=function(){return S7k(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var S7k=function(h){switch(h.type){case WC.Type.UNAUTHORIZED:return"Unauthorized";case WC.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case WC.Type.TIMEOUT:return"Timed out";case WC.Type.OLD_CODE_GONE:return"Out of date module id";case WC.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+h.type}};
pW.ModuleLoadFailure=WC;pW.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var p2=function(){this.moduleIds_=this.JSC$10055_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11063_extraEdges_={};this.JSC$11063_callbackMap_={};this.JSC$11063_currentlyLoadingModule_=this.baseModuleInfo_=new gg([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new W5;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.aV(p2,tjF);var xHH=function(h,E){_.g$.call(this,"Error loading "+h+": "+E)};
_.aV(xHH,_.g$);p2.prototype.setBatchModeEnabled=function(h){this.batchModeEnabled_=h};
p2.prototype.setAllModuleInfoString=function(h,E){if(!(this instanceof p2))this.setAllModuleInfoString(h,E);else if(typeof h==="string"){if(h.startsWith("d$")){h=h.substring(2);for(var g=[],Z=0,M=h.indexOf("/"),W=0,z=!1,c=0;;){var I=z?h.substring(W):h.substring(W,M);if(I.length===0)Z++,W="sy"+Z.toString(36),I=[];else{var B=I.indexOf(":");if(B<0)W=I,I=[];else if(B===I.length-1)W=I.substring(0,B),I=Array(g[c-1]);else{W=I.substring(0,B);I=I.substring(B+1).split(",");B=c;for(var U=0;U<I.length;U++)B-=
I[U].length===0?1:Number(I[U]),I[U]=g[B]}B=0;if(W.length===0)B=1;else if(W.charAt(0)==="+"||W.charAt(0)==="-")B=Number(W);B!==0&&(Z+=B,W="sy"+Z.toString(36))}g.push(W);wXH(this,W,I);if(z)break;W=M+1;M=h.indexOf("/",W);M===-1&&(z=!0);c++}this.moduleIds_=g}else if(h.startsWith("p$"))DHD(this,h);else{h=h.split("/");g=[];for(Z=0;Z<h.length;Z++){c=h[Z].split(":");M=c[0];z=[];if(c[1])for(z=c[1].split(","),c=0;c<z.length;c++)z[c]=g[parseInt(z[c],36)];g.push(M);wXH(this,M,z)}this.moduleIds_=g}E&&E.length?
(_.Vx(this.loadingModuleIds_,E),this.lastInitialModuleId_=_.r$(E)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11063_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11063_currentlyLoadingModule_=null,(E=this.baseModuleInfo_.onLoad((0,_.DJ)(this.getModuleContext,this)))&&E.length&&lAD(this,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,E[0])),GC(this))}};
var DHD=function(h,E){var g=E.substring(2);for(E=0;E<64;E++)v7q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(E)]=E;var Z={buf:g,pos:0};oT(Z);var M=oT(Z),W=oT(Z)+1;E=Array(M);var z=Array(M),c=Array(M);W=Array(W);var I=0,B=0,U=Z.pos,L=Z.buf.indexOf("|",Z.pos);Z.pos=L+1;for(L=0;L<M;L++){var d=oT(Z),C=d&2,q=d&1;d>>>=2;q?(I+=d>>>1^-(d&1),d="sy"+I.toString(36)):(q=U,U+=d,d=g.substring(q,U));E[L]=d;C&&(W[B++]=d)}W[B]="";Z.pos++;B=M&-2;g=M&1;for(I=0;I<B;I+=2)U=Huu(Z),c[I]=
U&7,c[I+1]=U>>>3&7;g&&(g=Huu(Z),c[B]=g&7);Z.pos++;for(B=0;B<M;B++)c[B]===7&&(c[B]=oT(Z));Z.pos++;for(g=B=0;g<M;g++){I=c[g];U=I===0?NCD:Array(I);z[g]=U;L=B;for(C=0;C<I;C++)L-=oT(Z),U[C]=W[L];W[B]===E[g]&&B++}for(Z=0;Z<E.length;Z++)wXH(h,E[Z],z[Z]);h.moduleIds_=E};
_.p=p2.prototype;_.p.getModuleInfo=function(h){return this.moduleInfoMap[h]};
_.p.addExtraEdge=function(h,E){var g=this.getModuleInfo(h);g&&g.isLoaded()?this.load(E):(this.JSC$11063_extraEdges_[h]||(this.JSC$11063_extraEdges_[h]={}),this.JSC$11063_extraEdges_[h][E]=!0)};
_.p.removeExtraEdge=function(h,E){if(this.JSC$11063_extraEdges_[h]){delete this.JSC$11063_extraEdges_[h][E];for(var g in this.JSC$11063_extraEdges_[h])return;delete this.JSC$11063_extraEdges_[h]}};
_.p.isActive=function(){return this.loadingModuleIds_.length>0};
_.p.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var GC=function(h){var E=h.lastActive_,g=h.isActive();g!=E&&(h.executeCallbacks_(g?"active":"idle"),h.lastActive_=g);E=h.isUserActive();E!=h.userLastActive_&&(h.executeCallbacks_(E?"userActive":"userIdle"),h.userLastActive_=E)},wXH=function(h,E,g){h.moduleInfoMap[E]?(h=h.moduleInfoMap[E].deps_,h!=g&&h.splice.apply(h,[0,
h.length].concat(_.$E(g)))):h.moduleInfoMap[E]=new gg(g,E)},mHl=function(h,E,g){var Z=[];
N$4(E,Z);E=[];for(var M={},W=0;W<Z.length;W++){var z=Z[W],c=h.getModuleInfo(z);if(!c)throw Error("wd`"+z);var I=new W5;M[z]=I;c.isLoaded()?I.callback(null):(rTk(h,z,c,!!g,I),h.isModuleLoading(z)||E.push(z))}E.length>0&&(h.loadingModuleIds_.length===0?h.loadModules_(E):(h.requestedModuleIdsQueue_.push(E),GC(h)));return M},rTk=function(h,E,g,Z,M){g.registerCallback(M.callback,M);
oeD(g,function(W){M.errback(new xHH(E,W))});
h.isModuleLoading(E)?Z&&(veA(h,E),GC(h)):Z&&veA(h,E)};
p2.prototype.loadModules_=function(h,E,g){var Z=this;E||(this.consecutiveFailures_=0);var M=HZC(this,h);this.loadingModuleIds_=M;this.requestedLoadingModuleIds_=this.batchModeEnabled_?h:_.Y$(M);GC(this);if(M.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,M);h=this.JSC$10055_loader_;if(!h)throw Error("xd");if(Object.keys(this.JSC$11063_extraEdges_).length>0&&!h.supportsExtraEdges)throw Error("yd");g=(0,_.DJ)(h.JSC$11050_loadModules,h,_.Y$(M),this.moduleInfoMap,{extraEdges:this.JSC$11063_extraEdges_,
forceReload:!!g,onError:function(W,z){var c=Z.requestedLoadingModuleIds_;W=W!=null?W:void 0;Z.consecutiveFailures_++;var I=_.Y$(M);Z.requestedLoadingModuleIds_=c;M.forEach(_.Sj(_.Xz,Z.requestedModuleIds_),Z);W==401?(lAD(Z,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.UNAUTHORIZED,W)),Z.requestedModuleIdsQueue_.length=0):W==410?($HD(Z,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.OLD_CODE_GONE,W)),KcC(Z)):Z.consecutiveFailures_>=3?($HD(Z,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
W,I,z)),KcC(Z)):Z.loadModules_(Z.requestedLoadingModuleIds_,!0,W==8001||!1)},
onTimeout:(0,_.DJ)(this.handleLoadTimeout_,this)});(h=Math.pow(this.consecutiveFailures_,2)*5E3)?_.MN.setTimeout(g,h):g()}};
var HZC=function(h,E){E=E.filter(function(M){return h.moduleInfoMap[M].isLoaded()?(_.MN.setTimeout(function(){return Error("zd`"+M)},0),!1):!0});
for(var g=[],Z=0;Z<E.length;Z++)g=g.concat(OZk(h,E[Z]));N$4(g);return!h.batchModeEnabled_&&g.length>1?(E=g.shift(),h.requestedModuleIdsQueue_=g.map(function(M){return[M]}).concat(h.requestedModuleIdsQueue_),[E]):g},OZk=function(h,E){var g=_.Kt.createSet(h.requestedModuleIds_),Z=[];
g[E]||Z.push(E);E=[E];for(var M=0;M<E.length;M++)for(var W=h.getModuleInfo(E[M]).deps_,z=W.length-1;z>=0;z--){var c=W[z];h.getModuleInfo(c).isLoaded()||g[c]||(Z.push(c),E.push(c))}Z.reverse();N$4(Z);return Z};
p2.prototype.JSC$11058_setLoaded=function(){if(this.JSC$11063_currentlyLoadingModule_){var h=this.JSC$11063_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11063_extraEdges_[h]){for(var g=_.G(Object.keys(this.JSC$11063_extraEdges_[h])),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=this.getModuleInfo(Z);M&&!M.isLoaded()&&(this.removeExtraEdge(h,Z),E.push(Z))}this.loadMultiple(E)}this.isDisposed()||((E=this.moduleInfoMap[h].onLoad((0,_.DJ)(this.getModuleContext,this)))&&E.length&&lAD(this,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,E[0])),_.Xz(this.userInitiatedLoadingModuleIds_,h),_.Xz(this.loadingModuleIds_,h),this.loadingModuleIds_.length===0&&KcC(this),this.lastInitialModuleId_&&h==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),GC(this),this.JSC$11063_currentlyLoadingModule_=null)}};
p2.prototype.isModuleLoading=function(h){if(_.nd(this.loadingModuleIds_,h))return!0;for(var E=0;E<this.requestedModuleIdsQueue_.length;E++)if(_.nd(this.requestedModuleIdsQueue_[E],h))return!0;return!1};
p2.prototype.load=function(h,E){return mHl(this,[h],E)[h]};
p2.prototype.loadMultiple=function(h){return mHl(this,h)};
var veA=function(h,E){_.nd(h.userInitiatedLoadingModuleIds_,E)||h.userInitiatedLoadingModuleIds_.push(E)};
p2.prototype.beforeLoadModuleCode=function(h){var E=this;this.JSC$11063_currentlyLoadingModule_&&this.JSC$11063_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11058_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[h]&&nef(this,this.moduleInfoMap[h].deps_||[],function(g){g.module_=new E1;_.Xz(E.loadingModuleIds_,g.getId())},function(g){return!g.isLoaded()});
this.JSC$11063_currentlyLoadingModule_=this.getModuleInfo(h)};
p2.prototype.handleLoadTimeout_=function(){$HD(this,new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.TIMEOUT));KcC(this)};
var $HD=function(h,E){h.requestedLoadingModuleIds_.length>1?h.requestedModuleIdsQueue_=h.requestedLoadingModuleIds_.map(function(g){return[g]}).concat(h.requestedModuleIdsQueue_):lAD(h,E)},lAD=function(h,E){var g=h.requestedLoadingModuleIds_;
h.loadingModuleIds_.length=0;for(var Z=[],M=0;M<h.requestedModuleIdsQueue_.length;M++){var W=h.requestedModuleIdsQueue_[M].filter(function(I){var B=OZk(this,I);return Qa(g,function(U){return _.nd(B,U)})},h);
_.Vx(Z,W)}for(M=0;M<g.length;M++)_.JM$(Z,g[M]);for(M=0;M<Z.length;M++){for(W=0;W<h.requestedModuleIdsQueue_.length;W++)_.Xz(h.requestedModuleIdsQueue_[W],Z[M]);_.Xz(h.userInitiatedLoadingModuleIds_,Z[M])}if(M=h.JSC$11063_callbackMap_.error)for(W=0;W<M.length;W++)for(var z=M[W],c=0;c<Z.length;c++)z("error",Z[c],E);for(Z=0;Z<g.length;Z++)if(h.moduleInfoMap[g[Z]])h.moduleInfoMap[g[Z]].onError(E);h.requestedLoadingModuleIds_.length=0;GC(h)},KcC=function(h){for(;h.requestedModuleIdsQueue_.length;){var E=
h.requestedModuleIdsQueue_.shift().filter(function(g){return!this.getModuleInfo(g).isLoaded()},h);
if(E.length>0){h.loadModules_(E);return}}GC(h)};
p2.prototype.registerCallback=function(h,E){Array.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var Z=h[g],M=E,W=this.JSC$11063_callbackMap_;W[Z]||(W[Z]=[]);W[Z].push(M)}};
p2.prototype.executeCallbacks_=function(h){for(var E=this.JSC$11063_callbackMap_[h],g=0;E&&g<E.length;g++)E[g](h)};
var nef=function(h,E,g,Z,M){Z=Z===void 0?function(){return!0}:Z;
M=M===void 0?{}:M;E=_.G(E);for(var W=E.next();!W.done;W=E.next()){W=W.value;var z=h.getModuleInfo(W);!M[W]&&Z(z)&&(M[W]=!0,nef(h,z.deps_||[],g,Z,M),g(z))}};
p2.prototype.dispose=function(){_.G8(_.Kt.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11063_callbackMap_={};this.isDisposed_=!0};
p2.prototype.isDisposed=function(){return this.isDisposed_};
_.vh=function(){return new p2};var XXC=[5E3,2E4],Y7A=function(){this.JSC$10055_loader_=null;this.JSC$11071_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11071_queue_=[];this.JSC$11071_extraEdges_=Object.create(null);this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.f(Y7A,tjF);_.p=Y7A.prototype;_.p.setAllModuleInfoString=function(){this.JSC$11071_currentlyLoadingModule_&&this.JSC$11071_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11058_setLoaded()};
_.p.getModuleInfo=function(h){var E=this.JSC$11071_moduleInfoMap_[h];E||(E=new gg([],h),this.JSC$11071_moduleInfoMap_[h]=E);return E};
_.p.addExtraEdge=function(h,E){this.getModuleInfo(h).isLoaded()?this.load(E):(this.JSC$11071_extraEdges_[h]||(this.JSC$11071_extraEdges_[h]={}),this.JSC$11071_extraEdges_[h][E]=!0)};
_.p.removeExtraEdge=function(h,E){if(this.JSC$11071_extraEdges_[h]){delete this.JSC$11071_extraEdges_[h][E];for(var g in this.JSC$11071_extraEdges_[h])return;delete this.JSC$11071_extraEdges_[h]}};
_.p.isModuleLoading=function(h){return!!this.loadingModules_[h]};
_.p.load=function(h){san(this,[h]);return VjD(this,h)};
_.p.loadMultiple=function(h){var E=this,g=Object.create(null),Z=[];h.forEach(function(M){g[M]||(g[M]=VjD(E,M),Z.push(M))});
san(this,Z);return g};
_.p.beforeLoadModuleCode=function(h){var E;((E=this.JSC$11071_currentlyLoadingModule_)==null?void 0:E.getId())==="synthetic_module_overhead"&&this.JSC$11058_setLoaded();var g,Z;kGC(this,(Z=(g=this.JSC$11071_moduleInfoMap_[h])==null?void 0:g.deps_)!=null?Z:[],function(M){M.module_=new E1},function(M){return!M.isLoaded()});
this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo(h)};
_.p.JSC$11058_setLoaded=function(){if(this.JSC$11071_currentlyLoadingModule_){var h=this.JSC$11071_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11071_extraEdges_[h]){for(var g=_.G(Object.keys(this.JSC$11071_extraEdges_[h])),Z=g.next();!Z.done;Z=g.next())Z=Z.value,this.getModuleInfo(Z).isLoaded()||(this.removeExtraEdge(h,Z),E.push(Z));this.loadMultiple(E)}this.JSC$11071_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11071_currentlyLoadingModule_=null;(!this.isModuleLoading(h)&&/^sy[0-9a-z]{0,4}$/.test(h)||h==="synthetic_module_overhead")&&delete this.JSC$11071_moduleInfoMap_[h];this.unsetModulesAsLoading(h)}};
_.p.setModulesAsLoading=function(){var h=this;_.VF.apply(0,arguments).forEach(function(E){h.loadingModules_[E]=!0})};
_.p.unsetModulesAsLoading=function(){var h=this;_.VF.apply(0,arguments).forEach(function(E){delete h.loadingModules_[E]})};
var VjD=function(h,E){return new _.jM(function(g,Z){var M=h.getModuleInfo(E);M.isLoaded()?g(null):(M.registerCallback(function(){g(null)}),oeD(M,function(W){var z="Error loading "+E+": "+W;
W instanceof pW.ModuleLoadFailure&&W.url&&(z=z+", requested url: "+W.url.toString());Z(Error(z))}))})},san=function(h,E){E=E.filter(function(g){return!h.isModuleLoading(g)&&!h.getModuleInfo(g).isLoaded()});
E.length>0&&(h.setModulesAsLoading.apply(h,_.$E(E)),h.JSC$11071_queue_.push(E),yTM(h))},yTM=function(h){for(var E={};h.activeLoads_<Infinity&&h.JSC$11071_queue_.length>0;E={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})E.ids$jscomp$36=h.JSC$11071_queue_.shift().filter(function(g){return!h.getModuleInfo(g).isLoaded()}),E.ids$jscomp$36.length>0&&(h.activeLoads_++,E.finishLoad=function(g){return function(){h.activeLoads_--;
yTM(h);g.finishLoad=function(){}}}(E),_.$D(E.ids$jscomp$36.map(function(g){return VjD(h,g)})).then(function(g){return function(){(0,g.finishLoad)()}}(E)),E.attempt$jscomp$6=0,E.load$jscomp$1=function(g){return function(){if(Object.keys(h.JSC$11071_extraEdges_).length>0&&!h.JSC$10055_loader_.supportsExtraEdges)throw Error("yd");
h.JSC$10055_loader_.JSC$11050_loadModules(g.ids$jscomp$36,h.JSC$11071_moduleInfoMap_,{extraEdges:h.JSC$11071_extraEdges_,onError:function(Z,M){var W=XXC[g.attempt$jscomp$6++];W!==void 0?setTimeout(function(){(0,g.load$jscomp$1)()},W):(h.unsetModulesAsLoading.apply(h,_.$E(g.ids$jscomp$36)),(0,g.finishLoad)(),g.ids$jscomp$36.forEach(function(z){z=h.getModuleInfo(z);
if(!z.isLoaded())z.onError(new pW.ModuleLoadFailure(pW.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,Z,g.ids$jscomp$36,M))}))}})}}(E),(0,E.load$jscomp$1)())},kGC=function(h,E,g,Z,M){Z=Z===void 0?function(){return!0}:Z;
M=M===void 0?{}:M;E=_.G(E);for(var W=E.next();!W.done;W=E.next()){W=W.value;var z=h.getModuleInfo(W);!M[W]&&Z(z)&&(M[W]=!0,kGC(h,z.deps_||[],g,Z,M),g(z))}};var Fcf=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var n7Z=Symbol("Bd");window.JSCompiler_renameProperty=function(h){return h};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var ATM=!Fcf||HTMLElement.es5Shimmed||_.MN.Reflect===void 0||_.MN.customElements===void 0||_.MN.customElements.polyfillWrapFlushCallback||!1,TCB,Uj4=function(){var h=HTMLElement;if(ATM)return h;if(TCB!==void 0)return TCB;var E=_.MN.Reflect,g=function(){return E.construct(h,[],this.constructor)};
g.prototype=h.prototype;g.prototype.constructor=g;g.es5Shimmed=!0;Object.setPrototypeOf(g,h);return TCB=g},bZD=!1;ATM||bZD||(bZD=!0,_.MN.HTMLElement=Uj4());/*

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 kKO=/(url\()([^)]*)(\))/g,sdM=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,VpW,RT;var Af=!window.ShadyDOM||!window.ShadyDOM.inUse,uFM=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Qal=!window.customElements.polyfillWrapFlushCallback,hOD;if(hOD=Af&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var E8f=new CSSStyleSheet;E8f.replaceSync("");var g8F=document.createElement("div");g8F.attachShadow({mode:"open"});g8F.shadowRoot.adoptedStyleSheets=[E8f];hOD=g8F.shadowRoot.adoptedStyleSheets[0]===E8f}catch(h){hOD=!1}
var ZeD=hOD,MDk=window.Polymer&&window.Polymer.rootPath||FqV(document.baseURI||window.location.href),SY=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ggz=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Qu=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,WMM=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,F9=window.Polymer&&window.Polymer.legacyOptimizations||!1,uf=window.Polymer&&window.Polymer.legacyWarnings||!1,pnl=window.Polymer&&window.Polymer.syncInitialRender||
!1,wa=window.Polymer&&window.Polymer.legacyUndefined||!1,GyD=window.Polymer&&window.Polymer.orderedComputed||!1,zC=window.Polymer&&window.Polymer.removeNestedTemplates||!1,a1=window.Polymer&&window.Polymer.fastDomIf||!1,cC=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,zOD=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,a$A=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var io={},cjl={},lf=function(){return HTMLElement.apply(this,arguments)||this};
_.f(lf,HTMLElement);lf.import=function(h,E){return h?(h=io[h]||cjl[h.toLowerCase()])&&E?h.querySelector(E):h:null};
lf.prototype.attributeChangedCallback=function(h,E,g){E!==g&&this.register()};
lf.prototype.register=function(h){if(h=h||this.id){if(Qu&&(io[h]||cjl[h.toLowerCase()])!==void 0)throw io[h]=cjl[h.toLowerCase()]=null,Error("Cd`"+h);this.id=h;io[h]=cjl[h.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ze.Object.defineProperties(lf.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var h=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;h=_.P6(this.getAttribute("assetpath")||"",h.baseURI);this.__assetpath=FqV(h)}return this.__assetpath}}});
_.ze.Object.defineProperties(lf,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
lf["import"]=lf.import;lf.prototype.modules=io;customElements.define("dom-module",lf);var ieA=0,THz=0,B6=[],o8l=0,Aed=!1,I$D=document.createTextNode(""),ROl,kw;(new window.MutationObserver(bux)).observe(I$D,{characterData:!0});_.o1={after:function(h){return{run:function(E){return window.setTimeout(E,h)},
cancel:function(E){window.clearTimeout(E)}}},
run:function(h,E){return window.setTimeout(h,E)},
cancel:function(h){window.clearTimeout(h)}};
_.HK={run:function(h){return window.requestAnimationFrame(h)},
cancel:function(h){window.cancelAnimationFrame(h)}};
ROl={run:function(h){return window.requestIdleCallback?window.requestIdleCallback(h):window.setTimeout(h,16)},
cancel:function(h){window.cancelIdleCallback?window.cancelIdleCallback(h):window.clearTimeout(h)}};
kw={run:function(h){Aed||(Aed=!0,I$D.textContent=o8l++);B6.push(h);return ieA++},
cancel:function(h){var E=h-THz;if(E>=0){if(!B6[E])throw Error("Dd`"+h);B6[E]=null}}};var PVD=0,I1=function(h){var E=h.__mixinApplications;E||(E=new WeakMap,h.__mixinApplications=E);var g=PVD++;return function(Z){var M=Z.__mixinSet;if(M&&M[g])return Z;var W=E,z=W.get(Z);z||(z=h(Z),W.set(Z,z),Z=Object.create(z.__mixinSet||M||null),Z[g]=!0,z.__mixinSet=Z);return z}};_.tf=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(h){return ShadyDOM.patch(h)}:function(h){return h};var BZC=I1(function(h){var E=function(){var g=h.call(this)||this;g.__dataEnabled=!1;g.__dataReady=!1;g.__dataInvalid=!1;g.__data={};g.__dataPending=null;g.__dataOld=null;g.__dataInstanceProps=null;g.__dataCounter=0;g.__serializing=!1;g._initializeProperties();return g};
_.f(E,h);E.createProperties=function(g){var Z=this.prototype,M;for(M in g)M in Z||Z._createPropertyAccessor(M)};
E.attributeNameForProperty=function(g){return g.toLowerCase()};
E.typeForProperty=function(){};
E.prototype._createPropertyAccessor=function(g,Z){this._addPropertyToAttributeMap(g);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[g]||(this.__dataHasAccessor[g]=!0,this._definePropertyAccessor(g,Z))};
E.prototype._addPropertyToAttributeMap=function(g){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var Z=this.__dataAttributes[g];Z||(Z=this.constructor.attributeNameForProperty(g),this.__dataAttributes[Z]=g);return Z};
E.prototype._definePropertyAccessor=function(g,Z){Object.defineProperty(this,g,{get:function(){return this.__data[g]},
set:Z?function(){}:function(M){this._setPendingProperty(g,M,!0)&&this._invalidateProperties()}})};
E.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
E.prototype._initializeProperties=function(){for(var g in this.__dataHasAccessor)this.hasOwnProperty(g)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[g]=this[g],delete this[g])};
E.prototype._initializeInstanceProperties=function(g){Object.assign(this,g)};
E.prototype._setProperty=function(g,Z){this._setPendingProperty(g,Z)&&this._invalidateProperties()};
E.prototype._getProperty=function(g){return this.__data[g]};
E.prototype._setPendingProperty=function(g,Z){var M=this.__data[g],W=this._shouldPropertyChange(g,Z,M);W&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||g in this.__dataOld||(this.__dataOld[g]=M),this.__data[g]=Z,this.__dataPending[g]=Z);return W};
E.prototype._isPropertyPending=function(g){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(g))};
E.prototype._invalidateProperties=function(){var g=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,kw.run(function(){g.__dataInvalid&&(g.__dataInvalid=!1,g._flushProperties())}))};
E.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
E.prototype._flushProperties=function(){this.__dataCounter++;var g=this.__data,Z=this.__dataPending,M=this.__dataOld;this._shouldPropertiesChange(g,Z,M)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(g,Z,M));this.__dataCounter--};
E.prototype._shouldPropertiesChange=function(g,Z){return!!Z};
E.prototype._propertiesChanged=function(){};
E.prototype._shouldPropertyChange=function(g,Z,M){return M!==Z&&(M===M||Z===Z)};
E.prototype.attributeChangedCallback=function(g,Z,M,W){Z!==M&&this._attributeToProperty(g,M);h.prototype.attributeChangedCallback&&h.prototype.attributeChangedCallback.call(this,g,Z,M,W)};
E.prototype._attributeToProperty=function(g,Z,M){if(!this.__serializing){var W=this.__dataAttributes;g=W&&W[g]||g;this[g]=this._deserializeValue(Z,M||this.constructor.typeForProperty(g))}};
E.prototype._propertyToAttribute=function(g,Z,M){this.__serializing=!0;M=arguments.length<3?this[g]:M;this._valueToNodeAttribute(this,M,Z||this.constructor.attributeNameForProperty(g));this.__serializing=!1};
E.prototype._valueToNodeAttribute=function(g,Z,M){Z=this._serializeValue(Z);if(M==="class"||M==="name"||M==="slot")g=(0,_.tf)(g);Z===void 0?g.removeAttribute(M):g.setAttribute(M,Z===""&&window.trustedTypes?window.trustedTypes.emptyScript:Z)};
E.prototype._serializeValue=function(g){switch(typeof g){case "boolean":return g?"":void 0;default:return g!=null?g.toString():void 0}};
E.prototype._deserializeValue=function(g,Z){switch(Z){case Boolean:return g!==null;case Number:return Number(g);default:return g}};
return E});var Uwf=0,uDO=[];var LMD=I1(function(h){function E(W){W=Object.getPrototypeOf(W);return W.prototype instanceof M?W:null}
function g(W){if(!W.hasOwnProperty("__ownProperties")){var z=null;if(W.hasOwnProperty("properties")){var c=W.properties;if(c){z={};for(var I in c){var B=c[I];z[I]=typeof B==="function"?{type:B}:B}}}W.__ownProperties=z}return W.__ownProperties}
var Z=BZC(h),M=function(){return Z.apply(this,arguments)||this};
_.f(M,Z);M.finalize=function(){if(!this.hasOwnProperty("__finalized")){var W=E(this);W&&W.finalize();this.__finalized=!0;this._finalizeClass()}};
M._finalizeClass=function(){var W=g(this);W&&this.createProperties(W)};
M.typeForProperty=function(W){return(W=this._properties[W])&&W.type};
M.prototype._initializeProperties=function(){Uwf++;this.constructor.finalize();Z.prototype._initializeProperties.call(this)};
M.prototype.connectedCallback=function(){Z.prototype.connectedCallback&&Z.prototype.connectedCallback.call(this);this._enableProperties()};
M.prototype.disconnectedCallback=function(){Z.prototype.disconnectedCallback&&Z.prototype.disconnectedCallback.call(this)};
_.ze.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var W=this;if(!this.hasOwnProperty("__observedAttributes")){QdZ(this.prototype);var z=this._properties;this.__observedAttributes=z?Object.keys(z).map(function(c){return W.prototype._addPropertyToAttributeMap(c)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var W=E(this);this.__properties=Object.assign({},W&&W._properties,g(this))}return this.__properties}}});
return M});var h1O={},Eud=/-[a-z]/g,guW=/([A-Z])/g;for(var jYl={},dwD=HTMLElement.prototype;dwD;){for(var CVM=Object.getOwnPropertyNames(dwD),JjM=0;JjM<CVM.length;JjM++)jYl[CVM[JjM]]=!0;dwD=Object.getPrototypeOf(dwD)}var eOB=window.trustedTypes?function(h){return trustedTypes.isHTML(h)||trustedTypes.isScript(h)||trustedTypes.isScriptURL(h)}:function(){return!1},qoM=I1(function(h){var E=BZC(h);
h=function(){return E.apply(this,arguments)||this};
_.f(h,E);h.createPropertiesForAttributes=function(){for(var g=this.observedAttributes,Z=0;Z<g.length;Z++)this.prototype._createPropertyAccessor(Uv(g[Z]))};
h.attributeNameForProperty=function(g){return Lg(g)};
h.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);E.prototype._initializeProperties.call(this)};
h.prototype._initializeProtoProperties=function(g){for(var Z in g)this._setProperty(Z,g[Z])};
h.prototype._ensureAttribute=function(g,Z){this.hasAttribute(g)||this._valueToNodeAttribute(this,Z,g)};
h.prototype._serializeValue=function(g){switch(typeof g){case "object":if(g instanceof Date)return g.toString();if(g){if(eOB(g))return g;try{return JSON.stringify(g)}catch(Z){return""}}default:return E.prototype._serializeValue.call(this,g)}};
h.prototype._deserializeValue=function(g,Z){switch(Z){case Object:try{var M=JSON.parse(g)}catch(W){M=g}break;case Array:try{M=JSON.parse(g)}catch(W){M=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+g)}break;case Date:M=isNaN(g)?String(g):Number(g);M=new Date(M);break;default:M=E.prototype._deserializeValue.call(this,g,Z)}return M};
h.prototype._definePropertyAccessor=function(g,Z){if(!jYl[g]){var M=this[g];M!==void 0&&(this.__data?this._setPendingProperty(g,M):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[g]=M))}E.prototype._definePropertyAccessor.call(this,g,Z)};
h.prototype._hasAccessor=function(g){return this.__dataHasAccessor&&this.__dataHasAccessor[g]};
h.prototype._isPropertyPending=function(g){return!!(this.__dataPending&&g in this.__dataPending)};
return h});var f$B={"dom-if":!0,"dom-repeat":!0},NZn=!1,tDH=!1,Sof=function(){var h=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(E){return E}});
return function(E,g,Z){g=g.getAttribute(Z);h&&Z.startsWith("on-")?E.setAttribute(Z,h.createScript(g,Z)):E.setAttribute(Z,g)}}(),xwM=I1(function(h){var E=function(){return h.apply(this,arguments)||this};
_.f(E,h);E._parseTemplate=function(g,Z){if(!g._templateInfo){var M=g._templateInfo={};M.nodeInfoList=[];M.nestedTemplate=!!Z;M.stripWhiteSpace=Z&&Z.stripWhiteSpace||g.hasAttribute&&g.hasAttribute("strip-whitespace");this._parseTemplateContent(g,M,{parent:null})}return g._templateInfo};
E._parseTemplateContent=function(g,Z,M){return this._parseTemplateNode(g.content,Z,M)};
E._parseTemplateNode=function(g,Z,M){var W=!1;g.localName!="template"||g.hasAttribute("preserve-content")?g.localName==="slot"&&(Z.hasInsertionPoint=!0):W=this._parseTemplateNestedTemplate(g,Z,M)||W;if(!NZn){NZn=!0;var z=document.createElement("textarea");z.placeholder="a";tDH=z.placeholder===z.textContent}tDH&&g.localName==="textarea"&&g.placeholder&&g.placeholder===g.textContent&&(g.textContent=null);g.firstChild&&this._parseTemplateChildNodes(g,Z,M);g.hasAttributes&&g.hasAttributes()&&(W=this._parseTemplateNodeAttributes(g,
Z,M)||W);return W||M.noted};
E._parseTemplateChildNodes=function(g,Z,M){if(g.localName!=="script"&&g.localName!=="style")for(var W=g.firstChild,z=0,c;W;W=c){if(W.localName=="template"){var I=W.getAttribute("is");if(I&&f$B[I])for(c=W,c.removeAttribute("is"),W=c.ownerDocument.createElement(I),c.parentNode.replaceChild(W,c),W.appendChild(c);c.attributes.length;)I=c.attributes[0].name,Sof(W,c,I),c.removeAttribute(I)}c=W.nextSibling;if(W.nodeType===Node.TEXT_NODE){for(I=c;I&&I.nodeType===Node.TEXT_NODE;)W.textContent+=I.textContent,
c=I.nextSibling,g.removeChild(I),I=c;if(Z.stripWhiteSpace&&!W.textContent.trim()){g.removeChild(W);continue}}I={parentIndex:z,parentInfo:M};this._parseTemplateNode(W,Z,I)&&(I.infoIndex=Z.nodeInfoList.push(I)-1);W.parentNode&&z++}};
E._parseTemplateNestedTemplate=function(g,Z,M){Z=this._parseTemplate(g,Z);(Z.content=g.content.ownerDocument.createDocumentFragment()).appendChild(g.content);M.templateInfo=Z;return!0};
E._parseTemplateNodeAttributes=function(g,Z,M){for(var W=!1,z=Array.from(g.attributes),c=z.length-1,I;I=z[c];c--)W=this._parseTemplateNodeAttribute(g,Z,M,I.name,I.value)||W;return W};
E._parseTemplateNodeAttribute=function(g,Z,M,W,z){return W.slice(0,3)==="on-"?(g.removeAttribute(W),M.events=M.events||[],M.events.push({name:W.slice(3),value:z}),!0):W==="id"?(M.id=z,!0):!1};
E._contentForTemplate=function(g){var Z=g._templateInfo;return Z&&Z.content||g.content};
E.prototype._stampTemplate=function(g,Z){g&&!g.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(g);Z=Z||this.constructor._parseTemplate(g);var M=Z.nodeInfoList;g=document.importNode(Z.content||g.content,!0);g.__noInsertionPoint=!Z.hasInsertionPoint;var W=g.nodeList=Array(M.length);g.$={};for(var z=0,c=M.length,I=void 0;z<c&&(I=M[z]);z++){var B=W[z]=Z$M(g,I);I.id&&(g.$[I.id]=B);var U=B,L=I,d=Z;L.templateInfo&&(U._templateInfo=L.templateInfo,U._parentTemplateInfo=
d);if(I.events&&I.events.length)for(U=0,L=I.events,d=void 0;U<L.length&&(d=L[U]);U++)this._addMethodEventListenerToNode(B,d.name,d.value,this)}return g};
E.prototype._addMethodEventListenerToNode=function(g,Z,M,W){M=M6q(W||g,M);this._addEventListenerToNode(g,Z,M);return M};
E.prototype._addEventListenerToNode=function(g,Z,M){g.addEventListener(Z,M)};
E.prototype._removeEventListenerFromNode=function(g,Z,M){g.removeEventListener(Z,M)};
return E});var fg=0,xw=[],wnM={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},DwF=/[A-Z]/,l$F=function(h,E,g,Z,M){var W=M?da(h):h;if(E=E[W])for(W=0;W<E.length;W++){var z=E[W];if(z.info.lastRun!==fg&&(!M||cNu(h,z.trigger))){z.info.lastRun=fg;z=z.info;for(var c=g,I=Z,B=0,U=c.length-1,L=-1;B<=U;){var d=B+U>>1,C=I.get(c[d].methodInfo)-I.get(z.methodInfo);if(C<0)B=d+1;else if(C>0)U=d-1;else{L=d;break}}L<
0&&(L=U+1);c.splice(L,0,z)}}},fta=[],rjk=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"),PC=I1(function(h){var E=xwM(qoM(h));
h=function(){var g=E.call(this)||this;g.__isPropertyEffectsClient=!0;return g};
_.f(h,E);h.prototype._initializeProperties=function(){E.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};
h.prototype._registerHost=function(){if(R1.length){var g=R1[R1.length-1];g._enqueueClient(this);this.__dataHost=g}};
h.prototype._initializeProtoProperties=function(g){this.__data=Object.create(g);this.__dataPending=Object.create(g);this.__dataOld={}};
h.prototype._initializeInstanceProperties=function(g){var Z=this.__readOnly,M;for(M in g)Z&&Z[M]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[M]=this.__dataPending[M]=g[M])};
h.prototype._addPropertyEffect=function(g,Z,M){this._createPropertyAccessor(g,Z=="__readOnly");var W=atd(this,Z,!0)[g];W||(W=this[Z][g]=[]);W.push(M)};
h.prototype._removePropertyEffect=function(g,Z,M){g=atd(this,Z,!0)[g];M=g.indexOf(M);M>=0&&g.splice(M,1)};
h.prototype._hasPropertyEffect=function(g,Z){Z=this[Z];return!(!Z||!Z[g])};
h.prototype._hasReadOnlyEffect=function(g){return this._hasPropertyEffect(g,"__readOnly")};
h.prototype._hasNotifyEffect=function(g){return this._hasPropertyEffect(g,"__notifyEffects")};
h.prototype._hasReflectEffect=function(g){return this._hasPropertyEffect(g,"__reflectEffects")};
h.prototype._hasComputedEffect=function(g){return this._hasPropertyEffect(g,"__computeEffects")};
h.prototype._setPendingPropertyOrPath=function(g,Z,M,W){if(W||da(Array.isArray(g)?g[0]:g)!==g){if(!W&&(W=qC(this,g),g=z1d(this,g,Z),!g||!E.prototype._shouldPropertyChange.call(this,g,Z,W)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(g,Z,M)){if(M=this.__dataLinkedPaths)for(var z in M)W=M[z],Cg(z,g)?(W=Jf(z,W,g),this._setPendingPropertyOrPath(W,Z,!0,!0)):Cg(W,g)&&(W=Jf(W,z,g),this._setPendingPropertyOrPath(W,Z,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[g])return this._setPendingProperty(g,
Z,M);this[g]=Z}return!1};
h.prototype._setUnmanagedPropertyToNode=function(g,Z,M){if(M!==g[Z]||typeof M=="object")Z==="className"&&(g=(0,_.tf)(g)),g[Z]=M};
h.prototype._setPendingProperty=function(g,Z,M){var W=this.__dataHasPaths&&jY(g);if(this._shouldPropertyChange(g,Z,(W?this.__dataTemp:this.__data)[g])){this.__dataPending||(this.__dataPending={},this.__dataOld={});g in this.__dataOld||(this.__dataOld[g]=this.__data[g]);W?this.__dataTemp[g]=Z:this.__data[g]=Z;this.__dataPending[g]=Z;if(W||this.__notifyEffects&&this.__notifyEffects[g])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[g]=M;return!0}return!1};
h.prototype._setProperty=function(g,Z){this._setPendingProperty(g,Z,!0)&&this._invalidateProperties()};
h.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
h.prototype._enqueueClient=function(g){this.__dataPendingClients=this.__dataPendingClients||[];g!==this&&this.__dataPendingClients.push(g)};
h.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
h.prototype.__enableOrFlushClients=function(){var g=this.__dataPendingClients;if(g){this.__dataPendingClients=null;for(var Z=0;Z<g.length;Z++){var M=g[Z];M.__dataEnabled?M.__dataPending&&M._flushProperties():M._enableProperties()}}};
h.prototype._readyClients=function(){this.__enableOrFlushClients()};
h.prototype.setProperties=function(g,Z){for(var M in g)!Z&&this.__readOnly&&this.__readOnly[M]||this._setPendingPropertyOrPath(M,g[M],!0);this._invalidateProperties()};
h.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
h.prototype._propertiesChanged=function(g,Z,M){g=this.__dataHasPaths;this.__dataHasPaths=!1;var W;if(W=this.__computeEffects)if(GyD){fg++;var z=BEu(this),c=[],I;for(I in Z)l$F(I,W,c,z,g);for(;I=c.shift();)LyM(this,"",Z,M,I)&&l$F(I.methodInfo,W,c,z,g);Object.assign(M,this.__dataOld);Object.assign(Z,this.__dataPending);this.__dataPending=null}else for(z=Z;NC(this,W,z,M,g);)Object.assign(M,this.__dataOld),Object.assign(Z,this.__dataPending),z=this.__dataPending,this.__dataPending=null;W=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(Z,M,g);this._flushClients();NC(this,this.__reflectEffects,Z,M,g);NC(this,this.__observeEffects,Z,M,g);if(W){z=this.__notifyEffects;c=fg++;for(var B in W)if(W[B]){if(I=z){var U=z;I=c;var L=B,d=Z,C=M,q=g,w=!1,r=q?da(L):L;if(U=U[r]){r=0;for(var v=U.length,H=void 0;r<v&&(H=U[r]);r++)H.info&&H.info.lastRun===I||q&&!cNu(L,H.trigger)||(H.info&&(H.info.lastRun=I),H.fn(this,L,d,C,H.info,q,void 0),w=!0)}I=w}if(I)var u=!0;else{if(I=g)I=B,L=Z,d=da(I),d!==
I?(d=Lg(d)+"-changed",ou$(this,d,L[I],I),I=!0):I=!1;I&&(u=!0)}}var k;u&&(k=this.__dataHost)&&k._invalidateProperties&&k._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
h.prototype._propagatePropertyChanges=function(g,Z,M){this.__propagateEffects&&NC(this,this.__propagateEffects,g,Z,M);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,g,Z,M)};
h.prototype._runEffectsForTemplate=function(g,Z,M,W){var z=this,c=function(I,B){NC(z,g.propertyEffects,I,M,B,g.nodeList);for(var U=g.firstChild;U;U=U.nextSibling)z._runEffectsForTemplate(U,I,M,B)};
g.runEffects?g.runEffects(c,Z,W):c(Z,W)};
h.prototype.linkPaths=function(g,Z){g=eY(g);Z=eY(Z);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[g]=Z};
h.prototype.unlinkPaths=function(g){g=eY(g);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[g]};
h.prototype.notifySplices=function(g,Z){var M={path:""};g=qC(this,g,M);xhu(this,g,M.path,Z)};
h.prototype.get=function(g,Z){return qC(Z||this,g)};
h.prototype.set=function(g,Z,M){M?z1d(M,g,Z):this.__readOnly&&this.__readOnly[g]||this._setPendingPropertyOrPath(g,Z,!0)&&this._invalidateProperties()};
h.prototype.push=function(g){var Z=_.VF.apply(1,arguments),M={path:""},W=qC(this,g,M),z=W.length,c=W.push.apply(W,_.$E(Z));Z.length&&D_(this,W,M.path,z,Z.length,[]);return c};
h.prototype.pop=function(g){var Z={path:""};g=qC(this,g,Z);var M=!!g.length,W=g.pop();M&&D_(this,g,Z.path,g.length,0,[W]);return W};
h.prototype.splice=function(g,Z,M){var W=_.VF.apply(3,arguments),z={path:""},c=qC(this,g,z);Z<0?Z=c.length-Math.floor(-Z):Z&&(Z=Math.floor(Z));var I=arguments.length===2?c.splice(Z):c.splice.apply(c,[Z,M].concat(_.$E(W)));(W.length||I.length)&&D_(this,c,z.path,Z,W.length,I);return I};
h.prototype.shift=function(g){var Z={path:""};g=qC(this,g,Z);var M=!!g.length,W=g.shift();M&&D_(this,g,Z.path,0,0,[W]);return W};
h.prototype.unshift=function(g){var Z=_.VF.apply(1,arguments),M={path:""},W=qC(this,g,M),z=W.unshift.apply(W,_.$E(Z));Z.length&&D_(this,W,M.path,0,Z.length,[]);return z};
h.prototype.notifyPath=function(g,Z){if(arguments.length==1){var M={path:""};Z=qC(this,g,M);M=M.path}else M=Array.isArray(g)?eY(g):g;this._setPendingPropertyOrPath(M,Z,!0,!0)&&this._invalidateProperties()};
h.prototype._createReadOnlyProperty=function(g,Z){this._addPropertyEffect(g,"__readOnly");Z&&(this["_set"+(g[0].toUpperCase()+g.substring(1))]=function(M){this._setProperty(g,M)})};
h.prototype._createPropertyObserver=function(g,Z,M){var W={property:g,method:Z,dynamicFn:!!M};this._addPropertyEffect(g,"__observeEffects",{fn:i$Z,info:W,trigger:{name:g}});M&&this._addPropertyEffect(Z,"__observeEffects",{fn:i$Z,info:W,trigger:{name:Z}})};
h.prototype._createMethodObserver=function(g,Z){var M=t6W(g);if(!M)throw Error("Ed`"+g);e1W(this,M,"__observeEffects",Uhx,null,Z)};
h.prototype._createNotifyingProperty=function(g){this._addPropertyEffect(g,"__notifyEffects",{fn:ItN,info:{eventName:Lg(g)+"-changed",property:g}})};
h.prototype._createReflectedProperty=function(g){var Z=this.constructor.attributeNameForProperty(g);Z[0]==="-"?console.warn("Property "+g+" cannot be reflected to attribute "+Z+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(g,"__reflectEffects",{fn:R1a,info:{attrName:Z}})};
h.prototype._createComputedProperty=function(g,Z,M){var W=t6W(Z);if(!W)throw Error("Fd`"+Z);Z=e1W(this,W,"__computeEffects",LyM,g,M);atd(this,"__computeInfo")[g]=Z};
h.prototype._marshalArgs=function(g,Z,M){for(var W=this.__data,z=[],c=0,I=g.length;c<I;c++){var B=g[c],U=B.name,L=B.structured,d=B.wildcard,C=B.value;B.literal||(d?(B=Cg(U,Z),L=Scd(W,M,B?Z:U),C={path:B?Z:U,value:L,base:B?qC(W,U):L}):C=L?Scd(W,M,U):W[U]);if(wa&&!this._overrideLegacyUndefined&&C===void 0&&g.length>1)return xw;z[c]=C}return z};
h.addPropertyEffect=function(g,Z,M){this.prototype._addPropertyEffect(g,Z,M)};
h.createPropertyObserver=function(g,Z,M){this.prototype._createPropertyObserver(g,Z,M)};
h.createMethodObserver=function(g,Z){this.prototype._createMethodObserver(g,Z)};
h.createNotifyingProperty=function(g){this.prototype._createNotifyingProperty(g)};
h.createReadOnlyProperty=function(g,Z){this.prototype._createReadOnlyProperty(g,Z)};
h.createReflectedProperty=function(g){this.prototype._createReflectedProperty(g)};
h.createComputedProperty=function(g,Z,M){this.prototype._createComputedProperty(g,Z,M)};
h.bindTemplate=function(g){return this.prototype._bindTemplate(g)};
h.prototype._bindTemplate=function(g,Z){var M=this.constructor._parseTemplate(g),W=this.__preBoundTemplateInfo==M;if(!W)for(var z in M.propertyEffects)this._createPropertyAccessor(z);Z?(M=Object.create(M),M.wasPreBound=W,this.__templateInfo?(g=g._parentTemplateInfo||this.__templateInfo,Z=g.lastChild,M.parent=g,g.lastChild=M,(M.previousSibling=Z)?Z.nextSibling=M:g.firstChild=M):this.__templateInfo=M):this.__preBoundTemplateInfo=M;return M};
h._addTemplatePropertyEffect=function(g,Z,M){(g.hostProps=g.hostProps||{})[Z]=!0;g=g.propertyEffects=g.propertyEffects||{};(g[Z]=g[Z]||[]).push(M)};
h.prototype._stampTemplate=function(g,Z){Z=Z||this._bindTemplate(g,!0);R1.push(this);g=E.prototype._stampTemplate.call(this,g,Z);R1.pop();Z.nodeList=g.nodeList;if(!Z.wasPreBound)for(var M=Z.childNodes=[],W=g.firstChild;W;W=W.nextSibling)M.push(W);g.templateInfo=Z;M=Z.nodeList;W=Z.nodeInfoList;if(W.length)for(var z=0;z<W.length;z++){var c=M[z],I=W[z].bindings;if(I)for(var B=0;B<I.length;B++){var U=I[B],L=c,d=U;if(d.isCompound){for(var C=L.__dataCompoundStorage||(L.__dataCompoundStorage={}),q=d.parts,
w=Array(q.length),r=0;r<q.length;r++)w[r]=q[r].literal;q=d.target;C[q]=w;d.literal&&d.kind=="property"&&(q==="className"&&(L=(0,_.tf)(L)),L[q]=d.literal)}JNO(c,this,U)}c.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(Z,this.__data,null,!1),this._flushClients());return g};
h.prototype._removeBoundDom=function(g){g=g.templateInfo;var Z=g.previousSibling,M=g.nextSibling,W=g.parent;Z?Z.nextSibling=M:W&&(W.firstChild=M);M?M.previousSibling=Z:W&&(W.lastChild=Z);g.nextSibling=g.previousSibling=null;g=g.childNodes;for(Z=0;Z<g.length;Z++)M=g[Z],(0,_.tf)((0,_.tf)(M).parentNode).removeChild(M)};
h._parseTemplateNode=function(g,Z,M){var W=E._parseTemplateNode.call(this,g,Z,M);if(g.nodeType===Node.TEXT_NODE){var z=this._parseBindings(g.textContent,Z);z&&(g.textContent=qcq(z)||" ",Cza(this,Z,M,"text","textContent",z),W=!0)}return W};
h._parseTemplateNodeAttribute=function(g,Z,M,W,z){var c=this._parseBindings(z,Z);if(c){z=W;var I="property";DwF.test(W)?I="attribute":W[W.length-1]=="$"&&(W=W.slice(0,-1),I="attribute");var B=qcq(c);B&&I=="attribute"&&(W=="class"&&g.hasAttribute("class")&&(B+=" "+g.getAttribute(W)),g.setAttribute(W,B));I=="attribute"&&z=="disable-upgrade$"&&g.setAttribute(W,"");g.localName==="input"&&z==="value"&&g.setAttribute(z,"");g.removeAttribute(z);I==="property"&&(W=Uv(W));Cza(this,Z,M,I,W,c,B);return!0}return E._parseTemplateNodeAttribute.call(this,
g,Z,M,W,z)};
h._parseTemplateNestedTemplate=function(g,Z,M){var W=E._parseTemplateNestedTemplate.call(this,g,Z,M),z=g.parentNode,c=M.templateInfo,I=z.localName==="dom-if",B=z.localName==="dom-repeat";zC&&(I||B)&&(z.removeChild(g),M=M.parentInfo,M.templateInfo=c,M.noted=!0,W=!1);g=c.hostProps;if(a1&&I)g&&(Z.hostProps=Object.assign(Z.hostProps||{},g),zC||(M.parentInfo.noted=!0));else for(var U in g)Cza(this,Z,M,"property","_host_"+U,[{mode:"{",source:U,dependencies:[U],hostProp:!0}]);return W};
h._parseBindings=function(g,Z){for(var M=[],W=0,z;(z=rjk.exec(g))!==null;){z.index>W&&M.push({literal:g.slice(W,z.index)});W=z[1][0];var c=!!z[2];z=z[3].trim();var I=!1,B="",U=-1;W=="{"&&(U=z.indexOf("::"))>0&&(B=z.substring(U+2),z=z.substring(0,U),I=!0);U=t6W(z);var L=[];if(U){var d=U,C=d.args;d=d.methodName;for(var q=0;q<C.length;q++){var w=C[q];w.literal||L.push(w)}if((C=Z.dynamicFns)&&C[d]||U.static)L.push(d),U.dynamicFn=!0}else L.push(z);M.push({source:z,mode:W,negate:c,customEvent:I,signature:U,
dependencies:L,event:B});W=rjk.lastIndex}W&&W<g.length&&(g=g.substring(W))&&M.push({literal:g});return M.length?M:null};
h._evaluateBinding=function(g,Z,M,W,z,c){g=Z.signature?Uhx(g,M,W,z,Z.signature):M!=Z.source?qC(g,Z.source):c&&jY(M)?qC(g,M):g.__data[M];Z.negate&&(g=!g);return g};
_.ze.Object.defineProperties(h.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return wnM}}});
return h}),R1=[];var mwB=window.ShadyCSS&&window.ShadyCSS.cssBuild,BC=I1(function(h){function E(Z,M,W,z){if(!mwB){for(var c=M.content.querySelectorAll("style"),I=rNO(M),B=mh4(W),U=M.content.firstElementChild,L=0;L<B.length;L++){var d=B[L];d.textContent=Z._processStyleText(d.textContent,z);M.content.insertBefore(d,U)}for(U=B=0;U<I.length;U++)L=I[U],d=c[B],d!==L?(L=L.cloneNode(!0),d.parentNode.insertBefore(L,d)):B++,L.textContent=Z._processStyleText(L.textContent,z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(M,
W);if(a$A&&mwB&&ZeD&&(M=M.content.querySelectorAll("style"))){var C="";Array.from(M).forEach(function(q){C+=q.textContent;q.parentNode.removeChild(q)});
Z._styleSheet=new CSSStyleSheet;Z._styleSheet.replaceSync(C)}}
var g=LMD(PC(h));h=function(){return g.call(this)||this};
_.f(h,g);h._finalizeClass=function(){g._finalizeClass.call(this);var Z;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(Z=this.__ownObservers)&&this.createObservers(Z,this._properties);this._prepareTemplate()};
h._prepareTemplate=function(){var Z=this.template;Z&&(typeof Z==="string"?(console.error("template getter must return HTMLTemplateElement"),Z=null):F9||(Z=Z.cloneNode(!0)));this.prototype._template=Z};
h.createProperties=function(Z){for(var M in Z){var W=this.prototype,z=M,c=Z[M],I=Z;c.computed&&(c.readOnly=!0);c.computed&&(W._hasReadOnlyEffect(z)?console.warn("Cannot redefine computed property '"+z+"'."):W._createComputedProperty(z,c.computed,I));c.readOnly&&!W._hasReadOnlyEffect(z)?W._createReadOnlyProperty(z,!c.computed):c.readOnly===!1&&W._hasReadOnlyEffect(z)&&console.warn("Cannot make readOnly property '"+z+"' non-readOnly.");c.reflectToAttribute&&!W._hasReflectEffect(z)?W._createReflectedProperty(z):
c.reflectToAttribute===!1&&W._hasReflectEffect(z)&&console.warn("Cannot make reflected property '"+z+"' non-reflected.");c.notify&&!W._hasNotifyEffect(z)?W._createNotifyingProperty(z):c.notify===!1&&W._hasNotifyEffect(z)&&console.warn("Cannot make notify property '"+z+"' non-notify.");c.observer&&W._createPropertyObserver(z,c.observer,I[c.observer]);W._addPropertyToAttributeMap(z)}};
h.createObservers=function(Z,M){for(var W=this.prototype,z=0;z<Z.length;z++)W._createMethodObserver(Z[z],M)};
h.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);g.prototype._initializeProperties.call(this);this.rootPath=MDk;this.importPath=this.constructor.importPath;var Z=this.constructor;if(!Z.hasOwnProperty("__propertyDefaults")){Z.__propertyDefaults=null;var M=Z._properties,W;for(W in M){var z=M[W];"value"in z&&(Z.__propertyDefaults=Z.__propertyDefaults||{},Z.__propertyDefaults[W]=z)}}if(Z=Z.__propertyDefaults)for(var c in Z)M=Z[c],
this._canApplyPropertyDefault(c)&&(M=typeof M.value=="function"?M.value.call(this):M.value,this._hasAccessor(c)?this._setPendingProperty(c,M,!0):this[c]=M)};
h.prototype._canApplyPropertyDefault=function(Z){return!this.hasOwnProperty(Z)};
h._processStyleText=function(Z,M){return yeM(Z,M)};
h._finalizeTemplate=function(Z){var M=this.prototype._template;if(M&&!M.__polymerFinalized){M.__polymerFinalized=!0;var W=this.importPath;W=W?_.P6(W):"";E(this,M,Z,W);this.prototype._bindTemplate(M)}};
h.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);g.prototype.connectedCallback.call(this)};
h.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);g.prototype.ready.call(this)};
h.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));g.prototype._readyClients.call(this)};
h.prototype._attachDom=function(Z){var M=(0,_.tf)(this);if(M.attachShadow)return Z?(M.shadowRoot||(M.attachShadow({mode:"open",shadyUpgradeFragment:Z}),M.shadowRoot.appendChild(Z),this.constructor._styleSheet&&(M.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),pnl&&window.ShadyDOM&&window.ShadyDOM.flushInitial(M.shadowRoot),M.shadowRoot):null;throw Error("Hd");};
h.prototype.updateStyles=function(Z){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,Z)};
h.prototype.resolveUrl=function(Z,M){!M&&this.importPath&&(M=_.P6(this.importPath));return _.P6(Z,M)};
h._parseTemplateContent=function(Z,M,W){M.dynamicFns=M.dynamicFns||this._properties;return g._parseTemplateContent.call(this,Z,M,W)};
h._addTemplatePropertyEffect=function(Z,M,W){!uf||M in this._properties||W.info.part.signature&&W.info.part.signature.static||W.info.part.hostProp||Z.nestedTemplate||console.warn("Property '"+M+"' used in template but not declared in 'properties'; attribute will not be observed.");return g._addTemplatePropertyEffect.call(this,Z,M,W)};
_.ze.Object.defineProperties(h,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var Z=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof Z==="function"&&(Z=Z());if(Z===void 0){if(Z=this.hasOwnProperty("is")){Z=this.is;var M=null;if(Z&&(!Qu||WMM)&&(M=lf.import(Z,"template"),Qu&&!M))throw Error("Gd`"+Z);Z=M}Z=Z||Object.getPrototypeOf(this.prototype).constructor.template}this._template=Z}return this._template},
set:function(Z){this._template=Z}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var Z=this.importMeta;Z?this._importPath=FqV(Z.url):this._importPath=(Z=lf.import(this.is))&&Z.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return h});var v8M=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(h){return h}}),Xwq=function(h,E){HeF(h,E);
this.value=E.reduce(function(g,Z,M){return g+Ycz(Z)+h[M+1]},h[0]).toString()},HeF;
Xwq.prototype.toString=function(){return this.value};
_.$wk=function(h){var E=_.VF.apply(1,arguments);HeF(h,E);var g=document.createElement("template");E=E.reduce(function(Z,M,W){if(M instanceof HTMLTemplateElement)M=M.innerHTML;else if(M instanceof Xwq)M=Ycz(M);else throw Error("Jd`"+M);return Z+M+h[W+1]},h[0]);
v8M&&(E=v8M.createHTML(E));g.innerHTML=E;return g};
HeF=function(h,E){if(!Array.isArray(h)||!Array.isArray(h.raw)||E.length!==h.length-1)throw new TypeError("Kd");};var U1=BC(HTMLElement);var KMD=I1(function(h){var E=BC(h);h=function(){var g=E.call(this)||this;g.__lastItems=null;g.__lastMulti=null;g.__selectedMap=null;return g};
_.f(h,E);h.prototype.__updateSelection=function(g,Z){var M=Z.path;M=="items"?(Z=Z.base||[],M=this.__lastItems,g!==this.__lastMulti&&this.clearSelection(),M&&(M=nuz(Z,M),this.__applySplices(M)),this.__lastItems=Z,this.__lastMulti=g):Z.path=="items.splices"?this.__applySplices(Z.value.indexSplices):(g=M.slice(6),Z=parseInt(g,10),g.indexOf(".")<0&&g==Z&&this.__deselectChangedIdx(Z))};
h.prototype.__applySplices=function(g){for(var Z=this,M=this.__selectedMap,W={},z=0;z<g.length;W={s$jscomp$109:void 0},z++){W.s$jscomp$109=g[z];M.forEach(function(U){return function(L,d){L<U.s$jscomp$109.index||(L>=U.s$jscomp$109.index+U.s$jscomp$109.removed.length?M.set(d,L+U.s$jscomp$109.addedCount-U.s$jscomp$109.removed.length):M.set(d,-1))}}(W));
for(var c=0;c<W.s$jscomp$109.addedCount;c++){var I=W.s$jscomp$109.index+c;M.has(this.items[I])&&M.set(this.items[I],I)}}this.__updateLinks();var B=0;M.forEach(function(U,L){U<0?(Z.multi?Z.splice("selected",B,1):Z.selected=Z.selectedItem=null,M.delete(L)):B++})};
h.prototype.__updateLinks=function(){var g=this;this.__dataLinkedPaths={};if(this.multi){var Z=0;this.__selectedMap.forEach(function(M){M>=0&&g.linkPaths("items."+M,"selected."+Z++)})}else this.__selectedMap.forEach(function(M){g.linkPaths("selected","items."+M);
g.linkPaths("selectedItem","items."+M)})};
h.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
h.prototype.isSelected=function(g){return this.__selectedMap.has(g)};
h.prototype.isIndexSelected=function(g){return this.isSelected(this.items[g])};
h.prototype.__deselectChangedIdx=function(g){var Z=this,M=this.__selectedIndexForItemIndex(g);if(M>=0){var W=0;this.__selectedMap.forEach(function(z,c){M==W++&&Z.deselect(c)})}};
h.prototype.__selectedIndexForItemIndex=function(g){if(g=this.__dataLinkedPaths["items."+g])return parseInt(g.slice(9),10)};
h.prototype.deselect=function(g){var Z=this.__selectedMap.get(g);if(Z>=0){this.__selectedMap.delete(g);var M;this.multi&&(M=this.__selectedIndexForItemIndex(Z));this.__updateLinks();this.multi?this.splice("selected",M,1):this.selected=this.selectedItem=null}};
h.prototype.deselectIndex=function(g){this.deselect(this.items[g])};
h.prototype.select=function(g){this.selectIndex(this.items.indexOf(g))};
h.prototype.selectIndex=function(g){var Z=this.items[g];this.isSelected(Z)?this.toggle&&this.deselectIndex(g):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(Z,g),this.__updateLinks(),this.multi?this.push("selected",Z):this.selected=this.selectedItem=Z)};
_.ze.Object.defineProperties(h,{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 h}),OeA=KMD(U1),L2=function(){return OeA.apply(this,arguments)||this};
_.f(L2,OeA);_.ze.Object.defineProperties(L2,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(L2.is,L2);var n8M=window.Polymer;window.Polymer=function(h){return window.Polymer._polymerFn(h)};
n8M&&Object.assign(Polymer,n8M);Polymer._polymerFn=function(){throw Error("Ld");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:yeM,resolveUrl:_.P6,pathFromUrl:FqV};Polymer.DomModule=lf;Polymer.Async={timeOut:_.o1,animationFrame:_.HK,idlePeriod:ROl,microTask:kw};Polymer.dedupingMixin=I1;Polymer.wrap=_.tf;Polymer.PropertiesChanged=BZC;Polymer.telemetry={instanceCount:Uwf,incrementInstanceCount:function(){Uwf++},
registrations:uDO,register:QdZ,dumpRegistrations:function(){uDO.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=LMD;Polymer.CaseMap={dashToCamelCase:Uv,camelToDashCase:Lg};Polymer.PropertyAccessors=qoM;Polymer.TemplateStamp=xwM;Polymer.Path={isPath:jY,root:da,isAncestor:Wyx,isDescendant:Cg,translate:Jf,matches:pwW,normalize:eY,split:G5z,get:qC,set:z1d,isDeep:jY};Polymer.Settings={useShadow:Af,useNativeCSSProperties:uFM,useNativeCustomElements:Qal,get rootPath(){return MDk},setRootPath:function(h){MDk=h},
get sanitizeDOMValue(){return SY},setSanitizeDOMValue:function(h){SY=h},
get passiveTouchGestures(){return ggz},setPassiveTouchGestures:function(h){ggz=h},
get strictTemplatePolicy(){return Qu},setStrictTemplatePolicy:function(h){Qu=h},
get allowTemplateFromDomModule(){return WMM},setAllowTemplateFromDomModule:function(h){WMM=h},
get legacyOptimizations(){return F9},setLegacyOptimizations:function(h){F9=h},
get syncInitialRender(){return pnl},setSyncInitialRender:function(h){pnl=h},
get legacyUndefined(){return wa},setLegacyUndefined:function(h){wa=h},
get legacyWarnings(){return uf},setLegacyWarnings:function(h){uf=h},
get orderedComputed(){return GyD},setOrderedComputed:function(h){GyD=h},
get fastDomIf(){return a1},setFastDomIf:function(h){a1=h},
get removeNestedTemplates(){return zC},setRemoveNestedTemplates:function(h){zC=h},
get suppressTemplateNotifications(){return cC},setSuppressTemplateNotifications:cC};Polymer.rootPath!==void 0&&(MDk=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(SY=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(ggz=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Qu=Polymer.strictTemplatePolicy);WMM=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(F9=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(pnl=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(wa=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(uf=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(GyD=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(a1=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(zC=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(cC=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return SY},
set:function(h){SY=h}});Polymer.PropertyEffects=PC;Polymer.StyleGather={stylesFromModules:ltu,stylesFromModule:DhO,stylesFromTemplate:rNO,stylesFromModuleImports:mh4,cssFromModules:H$z,cssFromModule:vuV,cssFromTemplate:$hz,cssFromModuleImports:function(h){return(h=lf.import(h))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(h):""}};Polymer.ElementMixin=BC;Polymer.updateStyles=function(h){window.ShadyCSS&&window.ShadyCSS.styleDocument(h)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:nuz};Polymer.html=_.$wk;Polymer.htmlLiteral=function(h){return new Xwq(h,_.VF.apply(1,arguments))};Polymer.Element=U1;Polymer.ArraySelectorMixin=KMD;Polymer.ArraySelector=L2;var Xnm=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Yom=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Joz=/@media\s(.*)/;var yNq=null,k5a=window.HTMLImports&&window.HTMLImports.whenReady||null,Fyz;var sYF=null,ju=null,dg=function(){this.customStyles=[];this.enqueued=!1;ANW(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},VDH=function(h){!h.enqueued&&ju&&(h.enqueued=!0,ANW(ju))};
dg.prototype.addCustomStyle=function(h){h.__seenByShadyCSS||(h.__seenByShadyCSS=!0,this.customStyles.push(h),VDH(this))};
dg.prototype.getStyleForCustomStyle=function(h){if(h.__shadyCSSCachedStyle)return h.__shadyCSSCachedStyle;var E;h.getStyle?E=h.getStyle():E=h;return E};
dg.prototype.processStyles=function(){for(var h=this.customStyles,E=0;E<h.length;E++){var g=h[E];if(!g.__shadyCSSCachedStyle){var Z=this.getStyleForCustomStyle(g);Z&&(Z=Z.__appliedElement||Z,sYF&&sYF(Z),g.__shadyCSSCachedStyle=Z)}}return h};
dg.prototype.addCustomStyle=dg.prototype.addCustomStyle;dg.prototype.getStyleForCustomStyle=dg.prototype.getStyleForCustomStyle;dg.prototype.processStyles=dg.prototype.processStyles;Object.defineProperties(dg.prototype,{transformCallback:{get:function(){return sYF},
set:function(h){sYF=h}},
validateCallback:{get:function(){return ju},
set:function(h){var E=!1;ju||(E=!0);ju=h;E&&VDH(this)}}});var b$W=!(window.ShadyDOM&&window.ShadyDOM.inUse),TE$,Ge;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Ge=window.ShadyCSS.cssBuild);var kyF=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?TE$=window.ShadyCSS.nativeCss:window.ShadyCSS?(umd(window.ShadyCSS),window.ShadyCSS=void 0):umd(window.WebComponents&&window.WebComponents.flags);var jOM=TE$;var yjk=new dg;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(h,E){yjk.processStyles();sez(h,E)},
styleElement:function(){yjk.processStyles()},
styleDocument:function(h){yjk.processStyles();sez(document.body,h)},
getComputedStyleValue:function(h,E){return V6$(h,E)},
flushCustomStyles:function(){},
nativeCss:jOM,nativeShadow:b$W,cssBuild:Ge,disableRuntime:kyF});window.ShadyCSS.CustomStyleInterface=yjk;var FMD=window.ShadyCSS.CustomStyleInterface,C2=function(){var h=HTMLElement.call(this)||this;h._style=null;FMD.addCustomStyle(h);return h};
_.f(C2,HTMLElement);C2.prototype.getStyle=function(){if(this._style)return this._style;var h=this.querySelector("style");if(!h)return null;this._style=h;var E=h.getAttribute("include");E&&(h.removeAttribute("include"),h.textContent=H$z(E)+h.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
C2.prototype.getStyle=C2.prototype.getStyle;window.customElements.define("custom-style",C2);Polymer.CustomStyle=C2;var J9=function(){this._timer=this._callback=this._asyncModule=null},eu,TZk;
J9.prototype.setConfig=function(h,E){var g=this;this._asyncModule=h;this._callback=E;this._timer=this._asyncModule.run(function(){g._timer=null;eu.delete(g);g._callback()})};
J9.prototype.cancel=function(){this.isActive()&&(AjH(this),eu.delete(this))};
var AjH=function(h){h.isActive()&&(h._asyncModule.cancel(h._timer),h._timer=null)};
J9.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
J9.prototype.isActive=function(){return this._timer!=null};
_.qu=function(h,E,g){h instanceof J9?AjH(h):h=new J9;h.setConfig(E,g);return h};
eu=new Set;_.f2=function(h){eu.add(h)};
TZk=function(){var h=!!eu.size;eu.forEach(function(E){try{E.flush()}catch(g){setTimeout(function(){throw g;})}});
return h};var h3x=typeof document.head.style.touchAction==="string",QeN=["mousedown","mousemove","mouseup","click"],aW$=[0,1,4,2],beB;try{beB=(new MouseEvent("test",{buttons:1})).buttons===1}catch(h){beB=!1}var z3d=beB,Egu=!1;(function(){try{var h=Object.defineProperty({},"passive",{get:function(){Egu=!0}});
window.addEventListener("test",null,h);window.removeEventListener("test",null,h)}catch(E){}})();
var MP4=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Wja=[],uMM={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},C3$={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},pWV=function(h){var E=h.sourceCapabilities;if(!E||E.firesTouchEvents)if(h.__polymerGesturesHandled={skip:!0},h.type==="click"){E=!1;for(var g=IWz(h),Z=0;Z<g.length;Z++){if(g[Z].nodeType===Node.ELEMENT_NODE)if(g[Z].localName==="label")Wja.push(g[Z]);
else if(uMM[g[Z].localName]){var M=g[Z];var W=Array.prototype.slice.call(M.labels||[]);if(!W.length){W=[];try{var z=M.getRootNode();if(M.id){var c=z.querySelectorAll("label[for = '"+M.id+"']");for(M=0;M<c.length;M++)W.push(c[M])}}catch(I){}}for(M=0;M<W.length;M++)E=E||Wja.indexOf(W[M])>-1}if(g[Z]===QYH)return}E||(h.preventDefault(),h.stopPropagation())}},QYH=null,Nu=null,P3z=0,Brz=0,R3u=-1,Uv$=!1;
document.addEventListener("touchend",function(h){Nu||GZO(!0);QYH=IWz(h)[0];Nu=_.qu(Nu,_.o1.after(2500),function(){GZO();Nu=QYH=null})},Egu?{passive:!0}:!1);
var IWz=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(h){return h.composedPath&&h.composedPath()||[]},Ov={},$w=[];
Ljq({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){H6(this.info)},
mousedown:function(h){if(v6(h)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h),g=this;iWZ(this.info,function(Z){v6(Z)||(yu("up",E,Z),H6(g.info))},function(Z){v6(Z)&&yu("up",E,Z);
H6(g.info)});
yu("down",E,h)}},
touchstart:function(h){yu("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h),h.changedTouches[0],h)},
touchend:function(h){yu("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h),h.changedTouches[0],h)}});
Ljq({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(h){this.moves.length>2&&this.moves.shift();this.moves.push(h)},
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;H6(this.info)},
mousedown:function(h){if(v6(h)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h),g=this,Z=function(M){var W=M.clientX,z=M.clientY;jVz(g.info,W,z)&&(g.info.state=g.info.started?M.type==="mouseup"?"end":"track":"start",g.info.state==="start"&&Kg("tap"),g.info.addMove({x:W,y:z}),v6(M)||(g.info.state="end",H6(g.info)),E&&dvN(g.info,E,M),g.info.started=!0)};
iWZ(this.info,Z,function(M){g.info.started&&Z(M);H6(g.info)});
this.info.x=h.clientX;this.info.y=h.clientY}},
touchstart:function(h){h=h.changedTouches[0];this.info.x=h.clientX;this.info.y=h.clientY},
touchmove:function(h){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h);h=h.changedTouches[0];var g=h.clientX,Z=h.clientY;jVz(this.info,g,Z)&&(this.info.state==="start"&&Kg("tap"),this.info.addMove({x:g,y:Z}),dvN(this.info,E,h),this.info.state="track",this.info.started=!0)},
touchend:function(h){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h);h=h.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:h.clientX,y:h.clientY}),dvN(this.info,E,h))}});
Ljq({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(h){v6(h)&&(this.info.x=h.clientX,this.info.y=h.clientY)},
click:function(h){v6(h)&&Jsx(this.info,h)},
touchstart:function(h){h=h.changedTouches[0];this.info.x=h.clientX;this.info.y=h.clientY},
touchend:function(h){Jsx(this.info,h.changedTouches[0],h)}});var h9M=I1(function(h){var E=function(){return h.apply(this,arguments)||this};
_.f(E,h);E.prototype._addEventListenerToNode=function(g,Z,M){ng(g,Z,M)||h.prototype._addEventListenerToNode.call(this,g,Z,M)};
E.prototype._removeEventListenerFromNode=function(g,Z,M){X9(g,Z,M)||h.prototype._removeEventListenerFromNode.call(this,g,Z,M)};
return E});var t9=I1(function(h){var E=function(){return h.apply(this,arguments)||this};
_.f(E,h);E.prototype._shouldPropertyChange=function(g,Z,M){return e3$(this,g,Z,M,!0)};
return E}),EYl=I1(function(h){var E=function(){return h.apply(this,arguments)||this};
_.f(E,h);E.prototype._shouldPropertyChange=function(g,Z,M){return e3$(this,g,Z,M,this.mutableData)};
_.ze.Object.defineProperties(E,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return E});
t9._mutablePropertyChange=e3$;var qK4=!1;var gYM=h9M(EYl(PC(HTMLElement))),Su=function(){var h=gYM.call(this)||this;if(Qu)throw Error("Md");h.root=null;h.$=null;h.__children=null;return h};
_.f(Su,gYM);_.p=Su.prototype;_.p.attributeChangedCallback=function(){this.mutableData=!0};
_.p.connectedCallback=function(){fWV()||(this.style.display="none");this.render()};
_.p.disconnectedCallback=function(){this.__removeChildren()};
_.p.__insertChildren=function(){(0,_.tf)((0,_.tf)(this).parentNode).insertBefore(this.root,this)};
_.p.__removeChildren=function(){if(this.__children)for(var h=0;h<this.__children.length;h++)this.root.appendChild(this.__children[h])};
_.p.render=function(){var h=this;if(!this.__children){var E=E||this.querySelector("template");if(!E){var g=new MutationObserver(function(){if(E=h.querySelector("template"))g.disconnect(),h.render();else throw Error("Nd");});
g.observe(this,{childList:!0});return}this.root=this._stampTemplate(E);this.$=this.root.$;this.__children=[];for(var Z=this.root.firstChild;Z;Z=Z.nextSibling)this.__children[this.__children.length]=Z;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ze.Object.defineProperties(Su,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Su);Polymer.Debouncer=J9;Polymer.Gestures={gestures:Ov,recognizers:$w,deepTargetFind:og$,addListener:ng,removeListener:X9,register:Ljq,setTouchAction:_.Vu,prevent:Kg,resetMouseCanceller:function(){Nu&&Nu.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:ng,remove:X9};Polymer.GestureEventListeners=h9M;Polymer.MutableData=t9;Polymer.OptionalMutableData=EYl;Polymer.DomBind=Su;_.xi=function(){do{var h=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var E=TZk()}while(h||E)};var Nrz=null;tPq.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:tPq,writable:!0}});var vg4=PC(tPq),mvx=t9(vg4),ZmC=PC(function(){}),T$=function(h){var E=ZmC.call(this)||this;
E._configureProperties(h);E.root=E._stampTemplate(E.__dataHost);var g=[];E.children=g;for(var Z=E.root.firstChild;Z;Z=Z.nextSibling)g.push(Z),Z.__templatizeInstance=E;E.__templatizeOwner&&E.__templatizeOwner.__hideTemplateChildren__&&E._showHideChildren(!0);g=E.__templatizeOptions;(h&&g.instanceProps||!g.instanceProps)&&E._enableProperties();return E};
_.f(T$,ZmC);_.p=T$.prototype;_.p._configureProperties=function(h){if(this.__templatizeOptions.forwardHostProp)for(var E in this.__hostProps)this._setPendingProperty(E,this.__dataHost["_host_"+E]);for(var g in h)this._setPendingProperty(g,h[g])};
_.p.forwardHostProp=function(h,E){this._setPendingPropertyOrPath(h,E,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.p._addEventListenerToNode=function(h,E,g){var Z=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(h,E,function(W){W.model=Z;g(W)});
else{var M=this.__dataHost.__dataHost;M&&M._addEventListenerToNode(h,E,g)}};
_.p._showHideChildren=function(h){xvq(h,this.children)};
_.p._setUnmanagedPropertyToNode=function(h,E,g){h.__hideTemplateChildren__&&h.nodeType==Node.TEXT_NODE&&E=="textContent"?h.__polymerTextContent__=g:ZmC.prototype._setUnmanagedPropertyToNode.call(this,h,E,g)};
_.p.dispatchEvent=function(){return!0};
_.ze.Object.defineProperties(T$.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var h=this.__parentModel;if(!h){var E;h=this;do h=h.__dataHost.__dataHost;while((E=h.__templatizeOptions)&&!E.parentModel);this.__parentModel=h}return h}}});
var DvM=t9(T$);var wg=function(){var h=U1.call(this)||this;h.__renderDebouncer=null;h._lastIf=!1;h.__hideTemplateChildren__=!1;return h};
_.f(wg,U1);_.p=wg.prototype;_.p.__debounceRender=function(){var h=this;this.__renderDebouncer=_.qu(this.__renderDebouncer,kw,function(){return h.__render()});
_.f2(this.__renderDebouncer)};
_.p.disconnectedCallback=function(){U1.prototype.disconnectedCallback.call(this);var h=(0,_.tf)(this).parentNode;h&&(h.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.tf)(h).host)||this.__teardownInstance()};
_.p.connectedCallback=function(){U1.prototype.connectedCallback.call(this);fWV()||(this.style.display="none");this.if&&this.__debounceRender()};
_.p.__ensureTemplate=function(){var h=this;if(!this.__template){var E=this._templateInfo?this:(0,_.tf)(this).querySelector("template");if(!E){var g=new MutationObserver(function(){if((0,_.tf)(h).querySelector("template"))g.disconnect(),h.__render();else throw Error("Qd");});
g.observe(this,{childList:!0});return!1}this.__template=E}return!0};
_.p.__ensureInstance=function(){var h=(0,_.tf)(this).parentNode;if(this.__hasInstance()){var E=this.__getInstanceNodes();if(E&&E.length&&(0,_.tf)(this).previousSibling!==E[E.length-1])for(var g=0,Z=void 0;g<E.length&&(Z=E[g]);g++)(0,_.tf)(h).insertBefore(Z,this)}else{if(!h||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(h)}return!0};
_.p.render=function(){_.xi()};
_.p.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();cC&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.p.__hasInstance=function(){};
_.p.__getInstanceNodes=function(){};
_.p.__createAndInsertInstance=function(){};
_.p.__teardownInstance=function(){};
_.p._showHideChildren=function(){};
_.ze.Object.defineProperties(wg,{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:wg.prototype.__debounceRender},restamp:{type:Boolean,observer:wg.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var MlC=function(){var h=wg.call(this)||this;h.__instance=null;h.__syncInfo=null;return h};
_.f(MlC,wg);_.p=MlC.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.p.__createAndInsertInstance=function(h){var E=this,g=this.__dataHost||this;if(Qu&&!this.__dataHost)throw Error("Od");var Z=g._bindTemplate(this.__template,!0);Z.runEffects=function(M,W,z){var c=E.__syncInfo;if(E.if)c&&(E.__syncInfo=null,E._showHideChildren(),W=Object.assign(c.changedProps,W)),M(W,z);else if(E.__instance)if(c||(c=E.__syncInfo={runEffects:M,changedProps:{}}),z)for(var I in W)M=da(I),c.changedProps[M]=E.__dataHost[M];else Object.assign(c.changedProps,W)};
this.__instance=g._stampTemplate(this.__template,Z);(0,_.tf)(h).insertBefore(this.__instance,this)};
_.p.__syncHostProperties=function(){var h=this.__syncInfo;h&&(this.__syncInfo=null,h.runEffects(h.changedProps,!1))};
_.p.__teardownInstance=function(){var h=this.__dataHost||this;this.__instance&&(h._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.p._showHideChildren=function(){var h=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==h&&(this.__instance.__hidden=h,xvq(h,this.__instance.templateInfo.childNodes));h||this.__syncHostProperties()};
var WbH=function(){var h=wg.call(this)||this;h.__ctor=null;h.__instance=null;h.__invalidProps=null;return h};
_.f(WbH,wg);_.p=WbH.prototype;_.p.__hasInstance=function(){return!!this.__instance};
_.p.__getInstanceNodes=function(){return this.__instance.children};
_.p.__createAndInsertInstance=function(h){this.__ctor||(this.__ctor=bf(this.__template,this,{mutableData:!0,forwardHostProp:function(E,g){this.__instance&&(this.if?this.__instance.forwardHostProp(E,g):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[da(E)]=!0))}}));
this.__instance=new this.__ctor;(0,_.tf)(h).insertBefore(this.__instance.root,this)};
_.p.__teardownInstance=function(){if(this.__instance){var h=this.__instance.children;if(h&&h.length){var E=(0,_.tf)(h[0]).parentNode;if(E){E=(0,_.tf)(E);for(var g=0,Z=void 0;g<h.length&&(Z=h[g]);g++)E.removeChild(Z)}}this.__instance=this.__invalidProps=null}};
_.p.__syncHostProperties=function(){var h=this.__invalidProps;if(h){this.__invalidProps=null;for(var E in h)this.__instance._setPendingProperty(E,this.__dataHost[E]);this.__instance._flushProperties()}};
_.p._showHideChildren=function(){var h=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==h&&(this.__instance.__hidden=h,this.__instance._showHideChildren(h));h||this.__syncHostProperties()};
_.sB=a1?MlC:WbH;customElements.define(_.sB.is,_.sB);Polymer.enqueueDebouncer=_.f2;Polymer.flush=_.xi;Polymer.Templatize={templatize:bf,modelForElement:XWx};Polymer.TemplateInstanceBase=T$;Polymer.DomIf=_.sB;var ppf=EYl(U1),n3=function(){var h=ppf.call(this)||this;h.__instances=[];h.__renderDebouncer=null;h.__itemsIdxToInstIdx={};h.__chunkCount=null;h.__renderStartTime=null;h.__itemsArrayChanged=!1;h.__shouldMeasureChunk=!1;h.__shouldContinueChunking=!1;h.__chunkingId=0;h.__sortFn=null;h.__filterFn=null;h.__observePaths=null;h.__ctor=null;h.__isDetached=!0;h.template=null;return h};
_.f(n3,ppf);_.p=n3.prototype;_.p.disconnectedCallback=function(){ppf.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var h=0;h<this.__instances.length;h++)this.__detachInstance(h);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.p.connectedCallback=function(){ppf.prototype.connectedCallback.call(this);fWV()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var h=(0,_.tf)((0,_.tf)(this).parentNode),E=0;E<this.__instances.length;E++)this.__attachInstance(E,h);this.__chunkingId&&this.__render()}};
_.p.__ensureTemplatized=function(){var h=this;if(!this.__ctor){var E=this.template=this._templateInfo?this:this.querySelector("template");if(!E){var g=new MutationObserver(function(){if(h.querySelector("template"))g.disconnect(),h.__render();else throw Error("Rd");});
g.observe(this,{childList:!0});return!1}var Z={};Z[this.as]=!0;Z[this.indexAs]=!0;Z[this.itemsIndexAs]=!0;this.__ctor=bf(E,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:Z,forwardHostProp:function(M,W){for(var z=this.__instances,c=0,I=void 0;c<z.length&&(I=z[c]);c++)I.forwardHostProp(M,W)},
notifyInstanceProp:function(M,W,z){pwW(this.as,W)&&(M=M[this.itemsIndexAs],W==this.as&&(this.items[M]=z),W=Jf(this.as,"items."+M,W),this.notifyPath(W,z))}})}return!0};
_.p.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.p.__functionFromPropertyValue=function(h){if(typeof h==="string"){var E=this.__getMethodHost();return function(){return E[h].apply(E,arguments)}}return h};
_.p.__sortChanged=function(h){this.__sortFn=this.__functionFromPropertyValue(h);this.items&&this.__debounceRender(this.__render)};
_.p.__filterChanged=function(h){this.__filterFn=this.__functionFromPropertyValue(h);this.items&&this.__debounceRender(this.__render)};
_.p.__computeFrameTime=function(h){return Math.ceil(1E3/h)};
_.p.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.p.__handleObservedPaths=function(h){if(this.__sortFn||this.__filterFn)if(!h)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var E=this.__observePaths,g=0;g<E.length;g++)h.indexOf(E[g])===0&&this.__debounceRender(this.__render,this.delay)};
_.p.__itemsChanged=function(h){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(h.path,h.value)||(h.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.p.__debounceRender=function(h,E){E=E===void 0?0:E;this.__renderDebouncer=_.qu(this.__renderDebouncer,E>0?_.o1.after(E):kw,h.bind(this));_.f2(this.__renderDebouncer)};
_.p.render=function(){this.__debounceRender(this.__render);_.xi()};
_.p.__render=function(){var h=this;if(this.__ensureTemplatized()){var E=this.items||[],g=this.__sortAndFilterItems(E),Z=this.__calculateLimit(g.length);this.__updateInstances(E,Z,g);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){h.__chunkingId=null;h.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);cC&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.__sortAndFilterItems=function(h){for(var E=this,g=Array(h.length),Z=0;Z<h.length;Z++)g[Z]=Z;this.__filterFn&&(g=g.filter(function(M,W,z){return E.__filterFn(h[M],W,z)}));
this.__sortFn&&g.sort(function(M,W){return E.__sortFn(h[M],h[W])});
return g};
_.p.__calculateLimit=function(h){var E=h,g=this.__instances.length;if(this.initialCount){var Z;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(E=Math.min(h,this.initialCount),this.__chunkCount=(Z=Math.max(E-g,0))||1):(Z=Math.min(Math.max(h-g,0),this.__chunkCount),E=Math.min(g+Z,h));this.__shouldMeasureChunk=Z===this.__chunkCount;this.__shouldContinueChunking=E<h;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return E};
_.p.__continueChunking=function(){if(this.__shouldMeasureChunk){var h=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/h*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.p.__updateInstances=function(h,E,g){var Z=this.__itemsIdxToInstIdx={},M;for(M=0;M<E;M++){var W=this.__instances[M],z=g[M],c=h[z];Z[z]=M;W?(W._setPendingProperty(this.as,c),W._setPendingProperty(this.indexAs,M),W._setPendingProperty(this.itemsIndexAs,z),W._flushProperties()):this.__insertInstance(c,M,z)}for(h=this.__instances.length-1;h>=M;h--)this.__detachAndRemoveInstance(h)};
_.p.__detachInstance=function(h){h=this.__instances[h];for(var E=(0,_.tf)(h.root),g=0;g<h.children.length;g++)E.appendChild(h.children[g]);return h};
_.p.__attachInstance=function(h,E){E.insertBefore(this.__instances[h].root,this)};
_.p.__detachAndRemoveInstance=function(h){this.__detachInstance(h);this.__instances.splice(h,1)};
_.p.__stampInstance=function(h,E,g){var Z={};Z[this.as]=h;Z[this.indexAs]=E;Z[this.itemsIndexAs]=g;return new this.__ctor(Z)};
_.p.__insertInstance=function(h,E,g){h=this.__stampInstance(h,E,g);g=(g=this.__instances[E+1])?g.children[0]:this;(0,_.tf)((0,_.tf)(this).parentNode).insertBefore(h.root,g);return this.__instances[E]=h};
_.p._showHideChildren=function(h){for(var E=0;E<this.__instances.length;E++)this.__instances[E]._showHideChildren(h)};
_.p.__handleItemPath=function(h,E){var g=h.slice(6),Z=g.indexOf(".");h=Z<0?g:g.substring(0,Z);if(h==parseInt(h,10)){g=Z<0?"":g.substring(Z+1);this.__handleObservedPaths(g);if(h=this.__instances[this.__itemsIdxToInstIdx[h]])h._setPendingPropertyOrPath(this.as+(g?"."+g:""),E,!1,!0),h._flushProperties();return!0}};
_.p.itemForElement=function(h){return(h=this.modelForElement(h))&&h[this.as]};
_.p.indexForElement=function(h){return(h=this.modelForElement(h))&&h[this.indexAs]};
_.p.modelForElement=function(h){return XWx(this.template,h)};
_.ze.Object.defineProperties(n3,{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:n3.prototype.__sortChanged},filter:{type:Function,observer:n3.prototype.__filterChanged},observe:{type:String,observer:n3.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!cC,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.*)"]}}});
n3.prototype._setRenderedItemCount=function(){};
customElements.define(n3.is,n3);Polymer.DomRepeat=n3;var GvF=function(h,E){var g=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=h;this.callback=E;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){g._schedule()};
this.connect();this._schedule()},z9C=function(h){var E=(0,_.tf)(h);
if(hQ(h))return E.assignedNodes({flatten:!0});h=[];for(var g=0;g<E.childNodes.length;g++){var Z=E.childNodes[g];hQ(Z)?h.push.apply(h,_.$E((0,_.tf)(Z).assignedNodes({flatten:!0}))):h.push(Z)}return h};
_.p=GvF.prototype;_.p.connect=function(){var h=this;hQ(this._target)?this._listenSlots([this._target]):(0,_.tf)(this._target).children&&(this._listenSlots((0,_.tf)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(E){h._processMutations(E)}):(this._nativeChildrenObserver=new MutationObserver(function(E){h._processMutations(E)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.p.disconnect=function(){hQ(this._target)?this._unlistenSlots([this._target]):(0,_.tf)(this._target).children&&(this._unlistenSlots((0,_.tf)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.p._schedule=function(){var h=this;this._scheduled||(this._scheduled=!0,kw.run(function(){return h.flush()}))};
_.p._processMutations=function(h){this._processSlotMutations(h);this.flush()};
_.p._processSlotMutations=function(h){if(h)for(var E=0;E<h.length;E++){var g=h[E];g.addedNodes&&this._listenSlots(g.addedNodes);g.removedNodes&&this._unlistenSlots(g.removedNodes)}};
_.p.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var h={target:this._target,addedNodes:[],removedNodes:[]},E=z9C(this._target),g=nuz(E,this._effectiveNodes),Z=0,M=void 0;Z<g.length&&(M=g[Z]);Z++)for(var W=0,z=void 0;W<M.removed.length&&(z=M.removed[W]);W++)h.removedNodes.push(z);
Z=0;for(M=void 0;Z<g.length&&(M=g[Z]);Z++)for(W=M.index;W<M.index+M.addedCount;W++)h.addedNodes.push(E[W]);this._effectiveNodes=E;E=!1;if(h.addedNodes.length||h.removedNodes.length)E=!0,this.callback.call(this._target,h);return E};
_.p._listenSlots=function(h){for(var E=0;E<h.length;E++){var g=h[E];hQ(g)&&g.addEventListener("slotchange",this._boundSchedule)}};
_.p._unlistenSlots=function(h){for(var E=0;E<h.length;E++){var g=h[E];hQ(g)&&g.removeEventListener("slotchange",this._boundSchedule)}};var Dv=Element.prototype,a9B=Dv.matches||Dv.matchesSelector||Dv.mozMatchesSelector||Dv.msMatchesSelector||Dv.oMatchesSelector||Dv.webkitMatchesSelector,ckk=function(h,E){return a9B.call(h,E)},EH=function(h){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(h);
this.node=h},R9D;
_.p=EH.prototype;_.p.observeNodes=function(h){return new GvF(this.node,h)};
_.p.unobserveNodes=function(h){h.disconnect()};
_.p.notifyObserver=function(){};
_.p.deepContains=function(h){if((0,_.tf)(this.node).contains(h))return!0;var E=h;for(h=h.ownerDocument;E&&E!==h&&E!==this.node;)E=(0,_.tf)(E).parentNode||(0,_.tf)(E).host;return E===this.node};
_.p.getOwnerRoot=function(){return(0,_.tf)(this.node).getRootNode()};
_.p.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.tf)(this.node).assignedNodes({flatten:!0}):[]};
_.p.getDestinationInsertionPoints=function(){for(var h=[],E=(0,_.tf)(this.node).assignedSlot;E;)h.push(E),E=(0,_.tf)(E).assignedSlot;return h};
_.p.importNode=function(h,E){return(0,_.tf)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(h,E)};
_.p.getEffectiveChildNodes=function(){return z9C(this.node)};
_.p.queryDistributedElements=function(h){for(var E=this.getEffectiveChildNodes(),g=[],Z=0,M=E.length,W=void 0;Z<M&&(W=E[Z]);Z++)W.nodeType===Node.ELEMENT_NODE&&ckk(W,h)&&g.push(W);return g};
_.ze.Object.defineProperties(EH.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var h=this.node;return h._activeElement!==void 0?h._activeElement:h.activeElement}}});
var lo=function(h){this.event=h};
_.ze.Object.defineProperties(lo.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 imB=EH;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var oYH=window.ShadyDOM.Wrapper,I9M=function(){return oYH.apply(this,arguments)||this};
_.f(I9M,oYH);Object.getOwnPropertyNames(EH.prototype).forEach(function(h){h!="activeElement"&&h!="constructor"&&(I9M.prototype[h]=EH.prototype[h])});
sVa(I9M.prototype,["classList"]);imB=I9M;Object.defineProperties(lo.prototype,{localTarget:{get:function(){var h=this.event.currentTarget;h=h&&_.vl(h).getOwnerRoot();for(var E=this.path,g=0;g<E.length;g++){var Z=E[g];if(_.vl(Z).getOwnerRoot()===h)return Z}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else YKx(),sVa(EH.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),VPq();R9D=imB;_.vl=function(h){h=h||document;if(h instanceof imB)return h;if(h instanceof lo)return h;var E=h.__domApi;E||(h instanceof Event?E=new lo(h):E=new imB(h),h.__domApi=E);return E};var PUn=/:host\(:dir\((ltr|rtl)\)\)/g,BNf=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,URM=/:dir\((?:ltr|rtl)\)/,LbD=!(!window.ShadyDOM||!window.ShadyDOM.inUse),ZN=[],rg=null,gA="",jtA=I1(function(h){LbD||rg||(gA=document.documentElement.getAttribute("dir"),rg=new MutationObserver(kZx),rg.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var E=qoM(h);h=function(){var g=E.call(this)||this;g.__autoDirOptOut=!1;return g};
_.f(h,E);h._processStyleText=function(g,Z){g=E._processStyleText.call(this,g,Z);!LbD&&URM.test(g)&&(g=this._replaceDirInCssText(g),this.__activateDir=!0);return g};
h._replaceDirInCssText=function(g){g=g.replace(PUn,':host([dir="$1"])');return g=g.replace(BNf,':host([dir="$2"]) $1')};
h.prototype.ready=function(){E.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
h.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(rg&&rg.takeRecords().length&&kZx(),ZN.push(this),this.__autoDirOptOut||this.setAttribute("dir",gA))};
h.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var g=ZN.indexOf(this);g>-1&&ZN.splice(g,1)}};
h.__activateDir=!1;return h});var dRk=function(h){for(;h;){var E=Object.getOwnPropertyDescriptor(h,"observedAttributes");if(E)return E.get;h=Object.getPrototypeOf(h.prototype).constructor}return function(){return[]}};
I1(function(h){var E=BC(h),g=dRk(E);h=function(){return E.call(this)||this};
_.f(h,E);h.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:E.prototype._initializeProperties.call(this)};
h.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
h.prototype._canApplyPropertyDefault=function(Z){return E.prototype._canApplyPropertyDefault.call(this,Z)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(Z))};
h.prototype.attributeChangedCallback=function(Z,M,W,z){Z=="disable-upgrade"?this.__isUpgradeDisabled&&W==null&&(E.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.tf)(this).isConnected&&E.prototype.connectedCallback.call(this)):E.prototype.attributeChangedCallback.call(this,Z,M,W,z)};
h.prototype.connectedCallback=function(){this.__isUpgradeDisabled||E.prototype.connectedCallback.call(this)};
h.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||E.prototype.disconnectedCallback.call(this)};
_.ze.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return g.call(this).concat("disable-upgrade")}}});
return h});var M_=!1,Fjx=[],Wl=[];var uW$=window.ShadyDOM,QVz=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ESx):document.readyState==="interactive"||document.readyState==="complete"?ESx():window.addEventListener("DOMContentLoaded",ESx);var MIO=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=""},gS4=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ZzN=/@import[^;]*;/gim,coa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,izZ=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,oSz=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,IEV=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,z7q=/^@[^\s]*keyframes/,
GbM=/\s+/g;var R7q={};var UGW=Promise.resolve();var CUM=new Set;var Jkm=/;\s*/m,e9D=/^\s*(initial)|(inherit)\s*$/,q8m=/\s*!important/,f9n=function(){this._map={}};
f9n.prototype.set=function(h,E){h=h.trim();this._map[h]={properties:E,dependants:{}}};
f9n.prototype.get=function(h){h=h.trim();return this._map[h]||null};
var NND=null,mC=function(){this._measureElement=this._currentElement=null;this._map=new f9n};
_.p=mC.prototype;_.p.detectMixin=function(h){h=Yom.test(h)||Xnm.test(h);Yom.lastIndex=0;Xnm.lastIndex=0;return h};
_.p.transformTemplate=function(h,E){if(h._gatheredStyle===void 0){var g=[];for(var Z=h.content.querySelectorAll("style"),M=0;M<Z.length;M++){var W=Z[M];if(W.hasAttribute("shady-unscoped")){if(!b$W){var z=W.textContent;if(!CUM.has(z)){CUM.add(z);var c=document.createElement("style");c.setAttribute("shady-unscoped","");c.textContent=z;document.head.appendChild(c)}W.parentNode.removeChild(W)}}else g.push(W.textContent),W.parentNode.removeChild(W)}(g=g.join("").trim())?(Z=document.createElement("style"),
Z.textContent=g,h.content.insertBefore(Z,h.content.firstChild),g=Z):g=null;h._gatheredStyle=g}return(h=h._gatheredStyle)?this.JSC$11274_transformStyle(h,E):null};
_.p.JSC$11274_transformStyle=function(h,E){E=E===void 0?"":E;var g=CYM(h);this.transformRules(g,E);h.textContent=dGd(g);return g};
_.p.transformCustomStyle=function(h){var E=this,g=CYM(h);e7u(g,function(Z){Z.selector===":root"&&(Z.selector="html");E.transformRule(Z)});
h.textContent=dGd(g);return g};
_.p.transformRules=function(h,E){var g=this;this._currentElement=E;e7u(h,function(Z){g.transformRule(Z)});
this._currentElement=null};
_.p.transformRule=function(h){h.cssText=tll(this,h.parsedCssText,h);h.selector===":root"&&(h.selector=":host > *")};
var tll=function(h,E,g){E=E.replace(Xnm,function(Z,M,W,z){return h._produceCssProperties(Z,M,W,z,g)});
return h._consumeCssProperties(E,g)};
_.p=mC.prototype;_.p._getInitialValueForProperty=function(h){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(h)};
_.p._fallbacksFromPreviousRules=function(h){for(var E=this,g=h;g.parent;)g=g.parent;var Z={},M=!1;e7u(g,function(W){(M=M||W===h)||W.selector===h.selector&&Object.assign(Z,E._cssTextToMap(W.parsedCssText))});
return Z};
_.p._consumeCssProperties=function(h,E){for(var g;g=Yom.exec(h);){var Z=g[0],M=g[1];g=g.index;var W=g+Z.indexOf("@apply"),z=g+Z.length;Z=h.slice(0,W);h=h.slice(z);W=E?this._fallbacksFromPreviousRules(E):{};Object.assign(W,this._cssTextToMap(Z));M=this._atApplyToCssProperties(M,W);h=Z+M+h;Yom.lastIndex=g+M.length}return h};
_.p._atApplyToCssProperties=function(h,E){h=h.replace(Jkm,"");var g=[],Z=this._map.get(h);Z||(this._map.set(h,{}),Z=this._map.get(h));if(Z){this._currentElement&&(Z.dependants[this._currentElement]=!0);var M,W=Z.properties;for(M in W){var z=E&&E[M];Z=[M,": var(",h,"_-_",M];z&&Z.push(",",z.replace(q8m,""));Z.push(")");q8m.test(W[M])&&Z.push(" !important");g.push(Z.join(""))}}return g.join("; ")};
_.p._replaceInitialOrInherit=function(h,E){var g=e9D.exec(E);g&&(E=g[1]?this._getInitialValueForProperty(h):"apply-shim-inherit");return E};
_.p._cssTextToMap=function(h,E){E=E===void 0?!1:E;h=h.split(";");for(var g,Z,M={},W=0;W<h.length;W++)if(g=h[W])Z=g.split(":"),Z.length>1&&(g=Z[0].trim(),Z=Z.slice(1).join(":"),E&&(Z=this._replaceInitialOrInherit(g,Z)),M[g]=Z);return M};
_.p._invalidateMixinEntry=function(h){if(NND)for(var E in h.dependants)E!==this._currentElement&&NND(E)};
_.p._produceCssProperties=function(h,E,g,Z,M){var W=this;g&&qpW(g,function(q,w){w&&W._map.get(w)&&(Z="@apply "+w+";")});
if(!Z)return h;var z=this._consumeCssProperties(""+Z,M);M=h.slice(0,h.indexOf("--"));var c=z=this._cssTextToMap(z,!0),I=this._map.get(E),B=I&&I.properties;B?c=Object.assign(Object.create(B),z):this._map.set(E,c);var U=[],L,d=!1;for(L in c){var C=z[L];C===void 0&&(C="initial");!B||L in B||(d=!0);U.push(E+"_-_"+L+": "+C)}d&&this._invalidateMixinEntry(I);I&&(I.properties=c);g&&(M=h+";"+M);return M+U.join("; ")+";"};
mC.prototype.detectMixin=mC.prototype.detectMixin;mC.prototype.transformStyle=mC.prototype.JSC$11274_transformStyle;mC.prototype.transformCustomStyle=mC.prototype.transformCustomStyle;mC.prototype.transformRules=mC.prototype.transformRules;mC.prototype.transformRule=mC.prototype.transformRule;mC.prototype.transformTemplate=mC.prototype.transformTemplate;mC.prototype._separator="_-_";Object.defineProperty(mC.prototype,"invalidCallback",{get:function(){return NND},
set:function(h){NND=h}});var vC=new mC,S8A=function(){this.customStyleInterface=null;vC.invalidCallback=PYq},HC=function(h){!h.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(h.customStyleInterface=window.ShadyCSS.CustomStyleInterface,h.customStyleInterface.transformCallback=function(E){vC.transformCustomStyle(E)},h.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){h.customStyleInterface.enqueued&&h.flushCustomStyles()})})};
_.p=S8A.prototype;_.p.prepareTemplate=function(h,E){HC(this);fEZ(h)===""&&(R7q[E]=h,E=vC.transformTemplate(h,E),h._styleAst=E)};
_.p.flushCustomStyles=function(){HC(this);if(this.customStyleInterface){var h=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var E=0;E<h.length;E++){var g=this.customStyleInterface.getStyleForCustomStyle(h[E]);g&&vC.transformCustomStyle(g)}this.customStyleInterface.enqueued=!1}}};
_.p.styleSubtree=function(h,E){HC(this);E&&sez(h,E);if(h.shadowRoot)for(this.styleElement(h),h=h.shadowRoot.children||h.shadowRoot.childNodes,E=0;E<h.length;E++)this.styleSubtree(h[E]);else for(h=h.children||h.childNodes,E=0;E<h.length;E++)this.styleSubtree(h[E])};
_.p.styleElement=function(h){HC(this);var E=h.localName,g;E?E.indexOf("-")>-1?g=E:g=h.getAttribute&&h.getAttribute("is")||"":g=h.is;E=R7q[g];if(!(E&&fEZ(E)!==""||!E||Bk4(E))){if(Bk4(E)||E._applyShimValidatingVersion!==E._applyShimNextVersion)this.prepareTemplate(E,g),LIW(E);if(h=h.shadowRoot)if(h=h.querySelector("style"))h.__cssRules=E._styleAst,h.textContent=dGd(E._styleAst)}};
_.p.styleDocument=function(h){HC(this);this.styleSubtree(document.body,h)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var $i=new S8A,xRf=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(h,E){$i.flushCustomStyles();$i.prepareTemplate(h,E)},
prepareTemplateStyles:function(h,E,g){window.ShadyCSS.prepareTemplate(h,E,g)},
prepareTemplateDom:function(){},
styleSubtree:function(h,E){$i.flushCustomStyles();$i.styleSubtree(h,E)},
styleElement:function(h){$i.flushCustomStyles();$i.styleElement(h)},
styleDocument:function(h){$i.flushCustomStyles();$i.styleDocument(h)},
getComputedStyleValue:function(h,E){return V6$(h,E)},
flushCustomStyles:function(){$i.flushCustomStyles()},
nativeCss:jOM,nativeShadow:b$W,cssBuild:Ge,disableRuntime:kyF};xRf&&(window.ShadyCSS.CustomStyleInterface=xRf)}window.ShadyCSS.ApplyShim=vC;var wpl;wpl=window.ShadyCSS;_.K2=I1(function(h){h=h9M(BC(h));var E=mwB?h:jtA(h),g=dRk(E),Z={x:"pan-x",y:"pan-y",none:"none",all:"auto"};h=function(){return E.call(this)||this};
_.f(h,E);h.prototype.created=function(){};
h.prototype.__attributeReaction=function(M,W,z){(this.__dataAttributes&&this.__dataAttributes[M]||M==="disable-upgrade")&&this.attributeChangedCallback(M,W,z,null)};
h.prototype.setAttribute=function(M,W){if(zOD&&!this._legacyForceObservedAttributes){var z=this.getAttribute(M);E.prototype.setAttribute.call(this,M,W);this.__attributeReaction(M,z,String(W))}else E.prototype.setAttribute.call(this,M,W)};
h.prototype.removeAttribute=function(M){if(zOD&&!this._legacyForceObservedAttributes){var W=this.getAttribute(M);E.prototype.removeAttribute.call(this,M);this.__attributeReaction(M,W,null)}else E.prototype.removeAttribute.call(this,M)};
h.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
h.prototype._canApplyPropertyDefault=function(M){return E.prototype._canApplyPropertyDefault.call(this,M)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(M))};
h.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(E.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
h.prototype.attached=function(){};
h.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(E.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
h.prototype.detached=function(){};
h.prototype.attributeChangedCallback=function(M,W,z,c){W!==z&&(M=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.tf)(this).isConnected&&this.connectedCallback()):(E.prototype.attributeChangedCallback.call(this,M,W,z,c),this.attributeChanged(M,W,z)))};
h.prototype.attributeChanged=function(){};
h.prototype._initializeProperties=function(){if(F9&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var M=Object.getPrototypeOf(this);M.hasOwnProperty("__hasRegisterFinished")||(this._registered(),M.__hasRegisterFinished=!0);E.prototype._initializeProperties.call(this);this.root=this;this.created();zOD&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
h.prototype._takeAttributes=function(){for(var M=this.attributes,W=0,z=M.length;W<z;W++){var c=M[W];this.__attributeReaction(c.name,null,c.value)}};
h.prototype._registered=function(){};
h.prototype.ready=function(){this._ensureAttributes();E.prototype.ready.call(this)};
h.prototype._ensureAttributes=function(){};
h.prototype._applyListeners=function(){};
h.prototype.serialize=function(M){return this._serializeValue(M)};
h.prototype.deserialize=function(M,W){return this._deserializeValue(M,W)};
h.prototype.reflectPropertyToAttribute=function(M,W,z){this._propertyToAttribute(M,W,z)};
h.prototype.serializeValueToAttribute=function(M,W,z){this._valueToNodeAttribute(z||this,M,W)};
h.prototype.extend=function(M,W){if(!M||!W)return M||W;for(var z=Object.getOwnPropertyNames(W),c=0,I=void 0;c<z.length&&(I=z[c]);c++){var B=Object.getOwnPropertyDescriptor(W,I);B&&Object.defineProperty(M,I,B)}return M};
h.prototype.mixin=function(M,W){for(var z in W)M[z]=W[z];return M};
h.prototype.chainObject=function(M,W){M&&W&&M!==W&&(M.__proto__=W);return M};
h.prototype.instanceTemplate=function(M){M=this.constructor._contentForTemplate(M);return document.importNode(M,!0)};
h.prototype.fire=function(M,W,z){z=z||{};W=W===null||W===void 0?{}:W;M=new Event(M,{bubbles:z.bubbles===void 0?!0:z.bubbles,cancelable:!!z.cancelable,composed:z.composed===void 0?!0:z.composed});M.detail=W;(0,_.tf)(z.node||this).dispatchEvent(M);return M};
h.prototype.listen=function(M,W,z){M=M||this;var c=this.__boundListeners||(this.__boundListeners=new WeakMap),I=c.get(M);I||(I={},c.set(M,I));c=W+z;I[c]||(I[c]=this._addMethodEventListenerToNode(M,W,z,this))};
h.prototype.unlisten=function(M,W,z){M=M||this;var c=this.__boundListeners&&this.__boundListeners.get(M);z=W+z;var I=c&&c[z];I&&(this._removeEventListenerFromNode(M,W,I),c[z]=null)};
h.prototype.setScrollDirection=function(M,W){_.Vu(W||this,Z[M]||"auto")};
h.prototype.$$=function(M){return this.root.querySelector(M)};
h.prototype.distributeContent=function(){var M=_.vl(this);window.ShadyDOM&&M.shadowRoot&&ShadyDOM.flush()};
h.prototype.getEffectiveChildNodes=function(){return _.vl(this).getEffectiveChildNodes()};
h.prototype.queryDistributedElements=function(M){return _.vl(this).queryDistributedElements(M)};
h.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(M){return M.nodeType===Node.ELEMENT_NODE})};
h.prototype.getEffectiveTextContent=function(){for(var M=this.getEffectiveChildNodes(),W=[],z=0,c;c=M[z];z++)c.nodeType!==Node.COMMENT_NODE&&W.push(c.textContent);return W.join("")};
h.prototype.queryEffectiveChildren=function(M){return(M=this.queryDistributedElements(M))&&M[0]};
h.prototype.queryAllEffectiveChildren=function(M){return this.queryDistributedElements(M)};
h.prototype.getContentChildNodes=function(M){return(M=this.root.querySelector(M||"slot"))?_.vl(M).getDistributedNodes():[]};
h.prototype.getContentChildren=function(M){return this.getContentChildNodes(M).filter(function(W){return W.nodeType===Node.ELEMENT_NODE})};
h.prototype.isLightDescendant=function(M){return this!==M&&(0,_.tf)(this).contains(M)&&(0,_.tf)(this).getRootNode()===(0,_.tf)(M).getRootNode()};
h.prototype.isLocalDescendant=function(M){return this.root===(0,_.tf)(M).getRootNode()};
h.prototype.scopeSubtree=function(M,W){return h7$(M,W===void 0?!1:W)};
h.prototype.getComputedStyleValue=function(M){return wpl.getComputedStyleValue(this,M)};
h.prototype.debounce=function(M,W,z){this._debouncers=this._debouncers||{};return this._debouncers[M]=_.qu(this._debouncers[M],z>0?_.o1.after(z):kw,W.bind(this))};
h.prototype.isDebouncerActive=function(M){this._debouncers=this._debouncers||{};M=this._debouncers[M];return!(!M||!M.isActive())};
h.prototype.flushDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.flush()};
h.prototype.cancelDebouncer=function(M){this._debouncers=this._debouncers||{};(M=this._debouncers[M])&&M.cancel()};
h.prototype.async=function(M,W){return W>0?_.o1.run(M.bind(this),W):~kw.run(M.bind(this))};
h.prototype.cancelAsync=function(M){M<0?kw.cancel(~M):_.o1.cancel(M)};
h.prototype.create=function(M,W){M=document.createElement(M);if(W)if(M.setProperties)M.setProperties(W);else for(var z in W)M[z]=W[z];return M};
h.prototype.elementMatches=function(M,W){return ckk(W||this,M)};
h.prototype.toggleAttribute=function(M,W){var z=this;arguments.length===3&&(z=arguments[2]);arguments.length==1&&(W=!z.hasAttribute(M));if(W)return(0,_.tf)(z).setAttribute(M,""),!0;(0,_.tf)(z).removeAttribute(M);return!1};
h.prototype.toggleClass=function(M,W,z){z=z||this;arguments.length==1&&(W=!z.classList.contains(M));W?z.classList.add(M):z.classList.remove(M)};
h.prototype.transform=function(M,W){W=W||this;W.style.webkitTransform=M;W.style.transform=M};
h.prototype.translate3d=function(M,W,z,c){this.transform("translate3d("+M+","+W+","+z+")",c||this)};
h.prototype.arrayDelete=function(M,W){if(Array.isArray(M)){if(W=M.indexOf(W),W>=0)return M.splice(W,1)}else if(W=qC(this,M).indexOf(W),W>=0)return this.splice(M,W,1);return null};
h.prototype._logger=function(M,W){Array.isArray(W)&&W.length===1&&Array.isArray(W[0])&&(W=W[0]);switch(M){case "log":case "warn":case "error":console[M].apply(console,_.$E(W))}};
h.prototype._log=function(){this._logger("log",_.VF.apply(0,arguments))};
h.prototype._warn=function(){this._logger("warn",_.VF.apply(0,arguments))};
h.prototype._error=function(){this._logger("error",_.VF.apply(0,arguments))};
h.prototype._logf=function(M){return["[%s::%s]",this.is,M].concat(_.$E(_.VF.apply(1,arguments)))};
_.ze.Object.defineProperties(h.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var M=(0,_.tf)(this).getRootNode();return M instanceof DocumentFragment?M.host:M}}});
_.ze.Object.defineProperties(h,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return zOD&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],QdZ(this.prototype)),this.__observedAttributes):g.call(this).concat("disable-upgrade")}}});
h.prototype.is="";return h});Polymer.FlattenedNodesObserver=GvF;Polymer.DomApi=R9D;Polymer.EventApi=lo;Polymer.dom=_.vl;Polymer.dom.matchesSelector=ckk;Polymer.dom.flush=_.xi;Polymer.dom.addDebouncer=_.f2;Polymer.DirMixin=jtA;Polymer.RenderStatus={beforeNextRender:_.bWa,afterNextRender:_.pQ,flush:function(){for(;Fjx.length||Wl.length;)ysO(Fjx),ysO(Wl);M_=!1}};Polymer.LegacyElementMixin=_.K2;var DRM;DRM=t9._mutablePropertyChange;var l9A={properties:{mutableData:Boolean},_shouldPropertyChange:function(h,E,g){return DRM(this,h,E,g,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(h,E,g){return DRM(this,h,E,g,!0)}};
Polymer.OptionalMutableDataBehavior=l9A;var NkZ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},DGZ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},wFa=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},DGZ),rkk=(0,_.K2)(HTMLElement),fk4=function(h,E){h||console.warn("Polymer.Class requires `info` argument");E=E?E(rkk):rkk;E=lEu(h,E,h.behaviors);E.is=E.prototype.is=
h.is;return E};Polymer.Class=fk4;Polymer.mixinBehaviors=function(h,E){return lEu({},(0,_.K2)(E),h)};
Polymer.GenerateClassFromInfo=lEu;_.OB=function(h){var E=typeof h==="function"?h:_.OB.Class(h);h._legacyForceObservedAttributes&&(E.prototype._legacyForceObservedAttributes=h._legacyForceObservedAttributes);customElements.define(E.is,E);return E};
_.OB.Class=fk4;Polymer._polymerFn=_.OB;var mRB=window.onLegacyPolymerFunctionDefinedCallback;mRB&&mRB();var tB$={templatize:function(h,E){this._templatizerTemplate=h;this.ctor=bf(h,this,{mutableData:!!E,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(h){return new this.ctor(h)},
modelForElement:function(h){return XWx(this._templatizerTemplate,h)}};Polymer.Templatizer=tB$;_.O1=(0,_.K2)(HTMLElement).prototype;Polymer.Base=_.O1;var mGa=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.a5=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(_.a5,PolymerFakeBaseClass);var cl=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.f(cl,PolymerFakeBaseClass);var vSd=Symbol("Sd"),sOV=[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 vYk=vYk||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Hmf;(function(h){function E(k,y,A){var E4=u.get(k);if(!E4){if(!A)return;E4=new v;u.set(k,E4)}k=E4.get(y);if(!k){if(!A)return;k=new v;E4.set(y,k)}return k}
function g(k,y,A){if(Z(k,y,A))return!0;y=d(y);return y!==null?g(k,y,A):!1}
function Z(k,y,A){y=E(y,A,!1);return y===void 0?!1:!!y.has(k)}
function M(k,y,A){if(Z(k,y,A))return W(k,y,A);y=d(y);if(y!==null)return M(k,y,A)}
function W(k,y,A){y=E(y,A,!1);if(y!==void 0)return y.get(k)}
function z(k,y){var A=c(k,y);k=d(k);if(k===null)return A;var E4=z(k,y);if(E4.length<=0)return A;if(A.length<=0)return E4;y=new H;k=[];A=_.G(A);for(var iO=A.next();!iO.done;iO=A.next())iO=iO.value,y.has(iO)||(y.add(iO),k.push(iO));A=_.G(E4);for(E4=A.next();!E4.done;E4=A.next())E4=E4.value,y.has(E4)||(y.add(E4),k.push(E4));return k}
function c(k,y){k=E(k,y,!1);var A=[];k&&k.forEach(function(E4,iO){return A.push(iO)});
return A}
function I(k){return k===void 0}
function B(k){return typeof k==="object"?k!==null:typeof k==="function"}
function U(k){return typeof k==="function"}
function L(k){return typeof k==="symbol"?k:String(k)}
function d(k){var y=Object.getPrototypeOf(k);if(typeof k!=="function"||k===r||y!==r)return y;var A=Object.getPrototypeOf(k.prototype);if(A==null||A===Object.prototype)return y;A=A.constructor;return typeof A!=="function"||A===k?y:A}
function C(){function k(){this._keys=[];this._values=[];this._cache=y}
var y={};k.prototype={get size(){return this._keys.length},has:function(A){return A===this._cache?!0:this._find(A)>=0?(this._cache=A,!0):!1},
get:function(A){var E4=this._find(A);if(E4>=0)return this._cache=A,this._values[E4]},
set:function(A,E4){this.delete(A);this._keys.push(A);this._values.push(E4);this._cache=A;return this},
delete:function(A){A=this._find(A);return A>=0?(this._keys.splice(A,1),this._values.splice(A,1),this._cache=y,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=y},
forEach:function(A){for(var E4=this.size,iO=0;iO<E4;++iO){var RW=this._keys[iO],NN=this._values[iO];this._cache=RW;A.call(this,NN,RW,this)}},
_find:function(A){for(var E4=this._keys,iO=E4.length,RW=0;RW<iO;++RW)if(E4[RW]===A)return RW;return-1}};
return k}
function q(){function k(){this._map=new v}
k.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,A){this._map.forEach(y,A)}};
return k}
function w(){function k(){this._key=A()}
function y(Ba,$$){for(var Ha=0;Ha<$$;++Ha)Ba[Ha]=Math.random()*255|0}
function A(){do{if(iO)var Ba=iO.randomBytes(16);else typeof Uint8Array==="function"?(Ba=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(Ba):y(Ba,16)):(Ba=Array(16),y(Ba,16));Ba[6]=Ba[6]&79|64;Ba[8]=Ba[8]&191|128;for(var $$="",Ha=0;Ha<16;++Ha){var zf=Ba[Ha];if(Ha===4||Ha===6||Ha===8)$$+="-";zf<16&&($$+="0");$$+=zf.toString(16).toLowerCase()}Ba="@@WeakMap@@"+$$}while(RW.call(NN,Ba));NN[Ba]=!0;return Ba}
function E4(Ba,$$){if(!RW.call(Ba,Cd)){if(!$$)return;Object.defineProperty(Ba,Cd,{value:Object.create(null)})}return Ba[Cd]}
var iO=typeof global!=="undefined"&&typeof vYk==="object"&&typeof require==="function"&&require("crypto"),RW=Object.prototype.hasOwnProperty,NN={},Cd=A();k.prototype={has:function(Ba){return(Ba=E4(Ba,!1))?this._key in Ba:!1},
get:function(Ba){if(Ba=E4(Ba,!1))return Ba[this._key]},
set:function(Ba,$$){E4(Ba,!0)[this._key]=$$;return this},
delete:function(Ba){return(Ba=E4(Ba,!1))&&this._key in Ba?delete Ba[this._key]:!1},
clear:function(){this._key=A()}};
return k}
var r=Object.getPrototypeOf(Function),v=typeof Map==="function"?Map:C(),H=typeof Set==="function"?Set:q(),u=new (typeof WeakMap==="function"?WeakMap:w());h.decorate=function(k,y,A,E4){if(I(E4)){if(I(A)){if(!Array.isArray(k))throw new TypeError;if(!U(y))throw new TypeError;for(A=k.length-1;A>=0;--A)if(E4=(0,k[A])(y),!I(E4)){if(!U(E4))throw new TypeError;y=E4}return y}if(!Array.isArray(k))throw new TypeError;if(!B(y))throw new TypeError;A=L(A);for(E4=k.length-1;E4>=0;--E4)(0,k[E4])(y,A)}else{if(Array.isArray(k))if(B(y)){if(I(A))throw new TypeError;
if(!B(E4))throw new TypeError;}else throw new TypeError;else throw new TypeError;A=L(A);for(var iO=k.length-1;iO>=0;--iO){var RW=(0,k[iO])(y,A,E4);if(!I(RW)){if(!B(RW))throw new TypeError;E4=RW}}return E4}};
h.metadata=function(k,y){return function(A,E4){if(I(E4)){if(!U(A))throw new TypeError;E(A,void 0,!0).set(k,y)}else{if(!B(A))throw new TypeError;E4=L(E4);E(A,E4,!0).set(k,y)}}};
h.defineMetadata=function(k,y){var A;if(B(y))I(A)||(A=L(A));else throw new TypeError;E(y,A,!0).set("parameters",k)};
h.hasMetadata=function(k,y,A){if(B(y))I(A)||(A=L(A));else throw new TypeError;return g(k,y,A)};
h.hasOwnMetadata=function(k,y,A){if(B(y))I(A)||(A=L(A));else throw new TypeError;return Z(k,y,A)};
h.getMetadata=function(k,y,A){if(B(y))I(A)||(A=L(A));else throw new TypeError;return M(k,y,A)};
h.getOwnMetadata=function(k,y,A){if(B(y))I(A)||(A=L(A));else throw new TypeError;return W(k,y,A)};
h.getMetadataKeys=function(k,y){if(B(k))I(y)||(y=L(y));else throw new TypeError;return z(k,y)};
h.getOwnMetadataKeys=function(k,y){if(B(k))I(y)||(y=L(y));else throw new TypeError;return c(k,y)};
h.deleteMetadata=function(k,y,A){if(B(y))I(A)||(A=L(A));else throw new TypeError;var E4=E(y,A,!1);if(!I(E4)){if(!E4.delete(k))return!1;if(E4.size>0)return!0;k=u.get(y);k.delete(A);if(k.size>0)return!0;u.delete(y);return!0}};
(function(k){if(typeof k.Reflect!=="undefined"){if(k.Reflect!==h)for(var y in h)k.Reflect[y]=h[y]}else k.Reflect=h})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Hmf||(Hmf={}));var iHM=self;var $Rn=[0,_.Qj,_.gk,_.Qj];var KbD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(KbD,_.GN);var OmM=_.LM(KbD,[0,_.L4a,_.WF,$Rn,_.gk,_.Gb]);_.aV(_.iC,_.wO);_.p=_.iC.prototype;_.p.start=function(){this.stop();this.usingListeners_=!1;var h=nYm(this),E=XpC(this);h&&!E&&this.JSC$11317_win_.mozRequestAnimationFrame?(this.JSC$11317_id_=_.vK(this.JSC$11317_win_,"MozBeforePaint",this.callback_),this.JSC$11317_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11317_id_=h&&E?h.call(this.JSC$11317_win_,this.callback_):this.JSC$11317_win_.setTimeout(DAl(this.callback_),20)};
_.p.stop=function(){if(this.isActive()){var h=nYm(this),E=XpC(this);h&&!E&&this.JSC$11317_win_.mozRequestAnimationFrame?ls(this.JSC$11317_id_):h&&E?E.call(this.JSC$11317_win_,this.JSC$11317_id_):this.JSC$11317_win_.clearTimeout(this.JSC$11317_id_)}this.JSC$11317_id_=null};
_.p.fire=function(){this.stop();this.JSC$11319_doAction_()};
_.p.isActive=function(){return this.JSC$11317_id_!=null};
_.p.JSC$11319_doAction_=function(){this.usingListeners_&&this.JSC$11317_id_&&ls(this.JSC$11317_id_);this.JSC$11317_id_=null;this.JSC$11317_listener_.call(this.handler_,_.zZ())};
_.p.disposeInternal=function(){this.stop();_.iC.superClass_.disposeInternal.call(this)};
var nYm=function(h){h=h.JSC$11317_win_;return h.requestAnimationFrame||h.webkitRequestAnimationFrame||h.mozRequestAnimationFrame||h.oRequestAnimationFrame||h.msRequestAnimationFrame||null},XpC=function(h){h=h.JSC$11317_win_;
return h.cancelAnimationFrame||h.cancelRequestAnimationFrame||h.webkitCancelRequestAnimationFrame||h.mozCancelRequestAnimationFrame||h.oCancelRequestAnimationFrame||h.msCancelRequestAnimationFrame||null};_.TD=function(h,E,g){_.wO.call(this);this.JSC$11320_listener_=g!=null?h.bind(g):h;this.JSC$11320_interval_=E;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11320_timer_=null};
_.f(_.TD,_.wO);_.p=_.TD.prototype;_.p.fire=function(h){this.args_=arguments;this.JSC$11320_timer_||this.pauseCount_?this.shouldFire_=!0:Y8M(this)};
_.p.stop=function(){this.JSC$11320_timer_&&(_.MN.clearTimeout(this.JSC$11320_timer_),this.JSC$11320_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.p.pause=function(){this.pauseCount_++};
_.p.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11320_timer_||(this.shouldFire_=!1,Y8M(this))};
_.p.disposeInternal=function(){_.wO.prototype.disposeInternal.call(this);this.stop()};
var Y8M=function(h){h.JSC$11320_timer_=Oj(function(){h.JSC$11320_timer_=null;h.shouldFire_&&!h.pauseCount_&&(h.shouldFire_=!1,Y8M(h))},h.JSC$11320_interval_);
var E=h.args_;h.args_=null;h.JSC$11320_listener_.apply(null,E)};var stl=function(h,E){this.childIterator_=h[_.MN.Symbol.iterator]();this.mapFn_=E};
stl.prototype[Symbol.iterator]=function(){return this};
stl.prototype.next=function(){var h=this.childIterator_.next();return{value:h.done?void 0:this.mapFn_.call(void 0,h.value),done:h.done}};
var VlF=function(h,E){return new stl(h,E)};var kvH={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 X1N=function(h){var E=ykB(h);if(!E)throw Error("Wd`"+h);return E},ykB=function(h){var E={};
h=String(h);var g=h.charAt(0)=="#"?h:"#"+h;if(Fbf.test(g))return E.hex=vj4(g),E.type="hex",E;g=kON(h);return g.length?(E.hex=SuO(g[0],g[1],g[2]),E.type="rgb",E):kvH&&(h=kvH[h.toLowerCase()])?(E.hex=h,E.type="named",E):null},AkH=/#(.)(.)(.)/,vj4=function(h){if(!Fbf.test(h))throw Error("Yd`"+h);
h.length==4&&(h=h.replace(AkH,"#$1$1$2$2$3$3"));return h.toLowerCase()},Yix=function(h){h=vj4(h);
h=parseInt(h.slice(1),16);return[h>>16,h>>8&255,h&255]},SuO=function(h,E,g){h=Number(h);
E=Number(E);g=Number(g);if(h!=(h&255)||E!=(E&255)||g!=(g&255))throw Error("Zd`"+h+"`"+E+"`"+g);E=h<<16|E<<8|g;return h<16?"#"+(16777216|E).toString(16).slice(1):"#"+E.toString(16)},Fbf=/^#(?:[0-9a-f]{3}){1,2}$/i,TNm=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,kON=function(h){var E=h.match(TNm);
if(E){h=Number(E[1]);var g=Number(E[2]);E=Number(E[3]);if(h>=0&&h<=255&&g>=0&&g<=255&&E>=0&&E<=255)return[h,g,E]}return[]};var bmC={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},dH=bmC;dH=bmC;var fu$,utM,Qtf;fu$=function(h,E){switch(E){case 1:return h%4!=0||h%100==0&&h%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
utM=function(h,E,g,Z,M){h=new Date(h,E,g);M=M||0;return h.valueOf()+(((Z!==void 0?Z:3)-M+7)%7-((h.getDay()+6)%7-M+7)%7)*864E5};
_.n2=function(h,E,g){typeof h==="number"?(this.date=Qtf(h,E||0,g||1),hbk(this,g||1)):_.yx(h)?(this.date=Qtf(h.getFullYear(),h.getMonth(),h.getDate()),hbk(this,h.getDate())):(this.date=new Date(_.zZ()),h=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),hbk(this,h))};
Qtf=function(h,E,g){E=new Date(h,E,g);h>=0&&h<100&&E.setFullYear(E.getFullYear()-1900);return E};
_.p=_.n2.prototype;_.p.firstDayOfWeek_=dH.FIRSTDAYOFWEEK;_.p.firstWeekCutOffDay_=dH.FIRSTWEEKCUTOFFDAY;_.p.clone=function(){var h=new _.n2(this.date);h.firstDayOfWeek_=this.firstDayOfWeek_;h.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return h};
_.p.getFullYear=function(){return this.date.getFullYear()};
_.p.getYear=function(){return this.getFullYear()};
_.p.getMonth=function(){return this.date.getMonth()};
_.p.getDate=function(){return this.date.getDate()};
_.p.getTime=function(){return this.date.getTime()};
_.p.getDay=function(){return this.date.getDay()};
_.p.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.p.getUTCMonth=function(){return this.date.getUTCMonth()};
_.p.getUTCDate=function(){return this.date.getUTCDate()};
_.p.getUTCDay=function(){return this.date.getDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.p.set=function(h){this.date=new Date(h.getFullYear(),h.getMonth(),h.getDate())};
_.p.setFullYear=function(h){this.date.setFullYear(h)};
_.p.setYear=function(h){this.setFullYear(h)};
_.p.setMonth=function(h){this.date.setMonth(h)};
_.p.setDate=function(h){this.date.setDate(h)};
_.p.setTime=function(h){this.date.setTime(h)};
_.p.setUTCFullYear=function(h){this.date.setUTCFullYear(h)};
_.p.setUTCMonth=function(h){this.date.setUTCMonth(h)};
_.p.setUTCDate=function(h){this.date.setUTCDate(h)};
_.p.add=function(h){if(h.years||h.months){var E=this.getMonth()+h.months+h.years*12,g=this.getYear()+Math.floor(E/12);E%=12;E<0&&(E+=12);var Z=Math.min(fu$(g,E),this.getDate());this.setDate(1);this.setFullYear(g);this.setMonth(E);this.setDate(Z)}h.days&&(g=this.getYear(),E=g>=0&&g<=99?-1900:0,h=new Date((new Date(g,this.getMonth(),this.getDate(),12)).getTime()+h.days*864E5),this.setDate(1),this.setFullYear(h.getFullYear()+E),this.setMonth(h.getMonth()),this.setDate(h.getDate()),hbk(this,h.getDate()))};
_.p.JSC$11333_toIsoString=function(h){var E=this.getFullYear(),g=E<0?"-":E>=1E4?"+":"";return[g+_.RO(Math.abs(E),g?6:4),_.RO(this.getMonth()+1,2),_.RO(this.getDate(),2)].join(h?"-":"")};
_.p.equals=function(h){return!(!h||this.getYear()!=h.getYear()||this.getMonth()!=h.getMonth()||this.getDate()!=h.getDate())};
_.p.toString=function(){return this.JSC$11333_toIsoString()};
var hbk=function(h,E){h.getDate()!=E&&h.date.setUTCHours(h.date.getUTCHours()+(h.getDate()<E?1:-1))};
_.n2.prototype.valueOf=function(){return this.date.valueOf()};var Yi=function(h,E,g,Z,M){this.reversed=!!E;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!g;h&&Xf(this,h,Z);this.depth=M!=void 0?M:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.aV(Yi,Cb);var Xf=function(h,E,g,Z){if(h.node=E)h.tagType=typeof g==="number"?g:h.node.nodeType!=1?0:h.reversed?-1:1;typeof Z==="number"&&(h.depth=Z)};
_.p=Yi.prototype;_.p.JSC$11348_copyFrom=function(h){this.node=h.node;this.tagType=h.tagType;this.depth=h.depth;this.reversed=h.reversed;this.constrained=h.constrained};
_.p.clone=function(){return new Yi(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.p.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return JB;var h=this.node;var E=this.reversed?-1:1;if(this.tagType==E){var g=this.reversed?h.lastChild:h.firstChild;g?Xf(this,g):Xf(this,h,E*-1)}else(g=this.reversed?h.previousSibling:h.nextSibling)?Xf(this,g):Xf(this,h.parentNode,E*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(h=this.node)?eb(h):JB};
_.p.equals=function(h){return h.node==this.node&&(!this.node||h.tagType==this.tagType)};
_.p.splice=function(h){var E=this.node,g=this.reversed?1:-1;this.tagType==g&&(this.tagType=g*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;Yi.prototype.next.call(this);this.reversed=!this.reversed;g=_.s4(arguments[0])?arguments[0]:arguments;for(var Z=g.length-1;Z>=0;Z--)_.sp(g[Z],E);_.f8(E)};var EAm=function(){},s1=function(h){for(var E=[],g=h.getTextRangeCount(),Z=0;Z<g;Z++)E.push(h.getTextRange(Z));
return E};
EAm.prototype.isReversed=function(){return!1};
EAm.prototype.getWindow=function(){return XK(_.Yp(this.JSC$11350_getStartNode()))};
var gAA=function(h,E){Yi.call(this,h,E,!0)};
_.aV(gAA,Yi);var VI=function(h,E,g,Z,M){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!M;if(h){this.startNode_=h;this.startOffset_=E;this.endNode_=g;this.endOffset_=Z;if(h.nodeType==1&&h.tagName!="BR")if(h=h.childNodes,E=h[E])this.startNode_=E,this.startOffset_=0;else{h.length&&(this.startNode_=_.r$(h));var W=!0}g.nodeType==1&&((this.endNode_=g.childNodes[Z])?this.endOffset_=0:this.endNode_=g)}Yi.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);W&&this.next()};
_.aV(VI,gAA);_.p=VI.prototype;_.p.JSC$11356_getStartNode=function(){return this.startNode_};
_.p.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.p.next=function(){return this.isLast()?JB:VI.superClass_.next.call(this)};
_.p.JSC$11348_copyFrom=function(h){this.startNode_=h.startNode_;this.endNode_=h.endNode_;this.startOffset_=h.startOffset_;this.endOffset_=h.endOffset_;this.isReversed_=h.isReversed_;VI.superClass_.JSC$11348_copyFrom.call(this,h)};
_.p.clone=function(){var h=new VI(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);h.JSC$11348_copyFrom(this);return h};var Z3n=function(){};
Z3n.prototype.__iterator__=function(){return new VI(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ki=function(h){this.range_=h};
_.aV(ki,Z3n);var MgH=function(h){var E=_.Yp(h).createRange();if(h.nodeType==3)E.setStart(h,0),E.setEnd(h,h.length);else if(nz(h)||h.nodeType==3){for(var g,Z=h;(g=Z.firstChild)&&(nz(g)||g.nodeType==3);)Z=g;E.setStart(Z,0);for(Z=h;(g=Z.lastChild)&&(nz(g)||g.nodeType==3);)Z=g;E.setEnd(Z,Z.nodeType==1?Z.childNodes.length:Z.length)}else g=h.parentNode,h=Array.prototype.indexOf.call(g.childNodes,h),E.setStart(g,h),E.setEnd(g,h+1);return E},WhM=function(h,E,g,Z){var M=_.Yp(h).createRange();
M.setStart(h,E);M.setEnd(g,Z);return M};
_.p=ki.prototype;_.p.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.p.getContainer=function(){return this.range_.commonAncestorContainer};
_.p.compareBrowserRangeEndpoints=function(h,E,g){return this.range_.compareBoundaryPoints(g==1?E==1?_.MN.Range.START_TO_START:_.MN.Range.START_TO_END:E==1?_.MN.Range.END_TO_START:_.MN.Range.END_TO_END,h)};
_.p.isCollapsed=function(){return this.range_.collapsed};
_.p.select=function(h){this.selectInternal(XK(_.Yp(this.range_.startContainer)).getSelection(),h)};
_.p.selectInternal=function(h){h.removeAllRanges();h.addRange(this.range_)};
_.p.insertNode=function(h,E){var g=this.range_.cloneRange();g.collapse(E);g.insertNode(h);g.detach();return h};
_.p.collapse=function(h){this.range_.collapse(h)};_.aV(o5,ki);o5.prototype.selectInternal=function(h,E){!E||this.isCollapsed()?o5.superClass_.selectInternal.call(this,h,E):(h.collapse(this.range_.endContainer,this.range_.endOffset),h.extend(this.range_.startContainer,this.range_.startOffset))};_.aV(I5,ki);I5.prototype.compareBrowserRangeEndpoints=function(h,E,g){return I5.superClass_.compareBrowserRangeEndpoints.call(this,h,E,g)};
I5.prototype.selectInternal=function(h,E){E?h.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):h.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var pbH=function(h){return _.PW?new I5(h):_.RV?new o5(h):new ki(h)};var yI=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},GwF;
_.aV(yI,EAm);GwF=function(h,E){var g=new yI;g.browserRangeWrapper_=h;g.isReversed_=!!E;return g};
_.zbB=function(h){h=_.PW?new I5(MgH(h)):_.RV?new o5(MgH(h)):new ki(MgH(h));return GwF(h)};
_.Ff=function(h,E,g,Z){var M=new yI;M.isReversed_=aMF(h,E,g,Z);if(_.gQ(h)&&!nz(h)){var W=h.parentNode;E=Array.prototype.indexOf.call(W.childNodes,h);h=W}_.gQ(g)&&!nz(g)&&(W=g.parentNode,Z=Array.prototype.indexOf.call(W.childNodes,g),g=W);M.isReversed_?(M.startNode_=g,M.startOffset_=Z,M.endNode_=h,M.endOffset_=E):(M.startNode_=h,M.startOffset_=E,M.endNode_=g,M.endOffset_=Z);return M};
_.p=yI.prototype;_.p.clone=function(){var h=new yI;h.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();h.startNode_=this.startNode_;h.startOffset_=this.startOffset_;h.endNode_=this.endNode_;h.endOffset_=this.endOffset_;h.isReversed_=this.isReversed_;return h};
_.p.JSC$11350_getType=function(){return"text"};
_.p.getBrowserRangeObject=function(){return A9(this).range_};
_.p.getTextRangeCount=function(){return 1};
_.p.getTextRange=function(){return this};
var A9=function(h){var E;if(!(E=h.browserRangeWrapper_)){E=h.JSC$11350_getStartNode();var g=h.JSC$11350_getStartOffset(),Z=h.JSC$11350_getEndNode(),M=h.JSC$11350_getEndOffset();E=_.PW?new I5(WhM(E,g,Z,M)):_.RV?new o5(WhM(E,g,Z,M)):new ki(WhM(E,g,Z,M));E=h.browserRangeWrapper_=E}return E};
_.p=yI.prototype;_.p.getContainer=function(){return A9(this).getContainer()};
_.p.JSC$11350_getStartNode=function(){return this.startNode_||(this.startNode_=A9(this).range_.startContainer)};
_.p.JSC$11350_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=A9(this).range_.startOffset};
_.p.JSC$11350_getEndNode=function(){return this.endNode_||(this.endNode_=A9(this).range_.endContainer)};
_.p.JSC$11350_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=A9(this).range_.endOffset};
_.p.isReversed=function(){return this.isReversed_};
_.p.JSC$11350_containsRange=function(h,E){if(h.JSC$11350_getType()=="text"){var g=A9(this);h=A9(h);E=E&&!h.isCollapsed();h=h.range_;g=E?g.compareBrowserRangeEndpoints(h,0,1)>=0&&g.compareBrowserRangeEndpoints(h,1,0)<=0:g.compareBrowserRangeEndpoints(h,0,0)>=0&&g.compareBrowserRangeEndpoints(h,1,1)<=0}else g=!1;return g};
_.p.isCollapsed=function(){return A9(this).isCollapsed()};
_.p.JSC$11350_getText=function(){return A9(this).range_.toString()};
_.p.__iterator__=function(){return new VI(this.JSC$11350_getStartNode(),this.JSC$11350_getStartOffset(),this.JSC$11350_getEndNode(),this.JSC$11350_getEndOffset())};
_.p.select=function(){A9(this).select(this.isReversed_)};
_.p.JSC$11350_removeContents=function(){var h=A9(this).range_;h.extractContents();if(h.startContainer.hasChildNodes()&&(h=h.startContainer.childNodes[h.startOffset])){var E=h.previousSibling;wcm(h)==""&&_.f8(h);E&&wcm(E)==""&&_.f8(E)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.p.insertNode=function(h,E){h=A9(this).insertNode(h,E);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return h};
_.p.collapse=function(h){h=this.isReversed()?!h:h;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(h);h?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var caD=function(){};
_.aV(caD,EAm);caD.prototype.JSC$11350_containsRange=function(h,E){var g=s1(this);h=s1(h);return(E?Qa:_.xbx)(h,function(Z){return Qa(g,function(M){return M.JSC$11350_containsRange(Z,E)})})};
caD.prototype.insertNode=function(h,E){E?_.YS(h,this.JSC$11350_getStartNode()):_.sp(h,this.JSC$11350_getEndNode());return h};var i3M,oAD=w2().JSC$9327_document_.documentElement;i3M=oAD.requestFullscreen?"fullscreenchange":oAD.webkitRequestFullscreen?"webkitfullscreenchange":oAD.mozRequestFullScreen?"mozfullscreenchange":oAD.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var IMM=function(){var h=w2().JSC$9327_document_;return!!(h.webkitIsFullScreen||h.mozFullScreen||h.msFullscreenElement||h.fullscreenElement)};var TC=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.aV(TC,caD);_.p=TC.prototype;_.p.clone=function(){var h=new TC;h.browserRanges_=_.Y$(this.browserRanges_);return h};
_.p.JSC$11350_getType=function(){return"mutli"};
_.p.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.p.getTextRangeCount=function(){return this.browserRanges_.length};
_.p.getTextRange=function(h){this.ranges_[h]||(this.ranges_[h]=GwF(pbH(this.browserRanges_[h])));return this.ranges_[h]};
_.p.getContainer=function(){if(!this.container_){for(var h=[],E=this.getTextRangeCount(),g=0;g<E;g++)h.push(this.getTextRange(g).getContainer());this.container_=eCF.apply(null,h)}return this.container_};
var bo=function(h){h.sortedRanges_||(h.sortedRanges_=s1(h),h.sortedRanges_.sort(function(E,g){var Z=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();var M=g.JSC$11350_getStartNode();g=g.JSC$11350_getStartOffset();return Z==M&&E==g?0:aMF(Z,E,M,g)?1:-1}));
return h.sortedRanges_};
_.p=TC.prototype;_.p.JSC$11350_getStartNode=function(){return bo(this)[0].JSC$11350_getStartNode()};
_.p.JSC$11350_getStartOffset=function(){return bo(this)[0].JSC$11350_getStartOffset()};
_.p.JSC$11350_getEndNode=function(){return _.r$(bo(this)).JSC$11350_getEndNode()};
_.p.JSC$11350_getEndOffset=function(){return _.r$(bo(this)).JSC$11350_getEndOffset()};
_.p.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.p.JSC$11350_getText=function(){return s1(this).map(function(h){return h.JSC$11350_getText()}).join("")};
_.p.__iterator__=function(){return new uo(this)};
_.p.select=function(){var h=this.getWindow().getSelection();h.removeAllRanges();for(var E=this.getTextRangeCount(),g=0;g<E;g++)h.addRange(this.getTextRange(g).getBrowserRangeObject())};
_.p.JSC$11350_removeContents=function(){s1(this).forEach(function(h){h.JSC$11350_removeContents()})};
_.p.collapse=function(h){if(!this.isCollapsed()){var E=h?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;E.collapse(h);this.ranges_=[E];this.sortedRanges_=[E];this.browserRanges_=[E.getBrowserRangeObject()]}};
var uo=function(h){this.iterators_=null;this.currentIdx_=0;h&&(this.iterators_=bo(h).map(function(E){return _.f_l(E)}));
Yi.call(this,h?this.JSC$11356_getStartNode():null,!1,!0)};
_.aV(uo,gAA);_.p=uo.prototype;_.p.JSC$11356_getStartNode=function(){return this.iterators_[0].JSC$11356_getStartNode()};
_.p.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.p.next=function(){for(;this.currentIdx_<this.iterators_.length;){var h=this.iterators_[this.currentIdx_],E=h.next();if(E.done)this.currentIdx_++;else return Xf(this,h.node,h.tagType,h.depth),E}return JB};
_.p.JSC$11348_copyFrom=function(h){this.iterators_=_.Y$(h.iterators_);uo.superClass_.JSC$11348_copyFrom.call(this,h)};
_.p.clone=function(){var h=new uo(null);h.JSC$11348_copyFrom(this);return h};var Rbl,aMF;_.Pg=function(){var h=window.getSelection();return h&&Rbl(h)};
Rbl=function(h){var E=!1;if(h.createRange)try{var g=h.createRange()}catch(M){return null}else if(h.rangeCount){if(h.rangeCount>1){g=new TC;E=h.rangeCount;for(var Z=0;Z<E;Z++)g.browserRanges_.push(h.getRangeAt(Z));return g}g=h.getRangeAt(0);E=aMF(h.anchorNode,h.anchorOffset,h.focusNode,h.focusOffset)}else return null;return GwF(pbH(g),E)};
_.QI=function(h,E){return _.Ff(h,E,h,E)};
_.hX=function(h,E,g,Z){return _.Ff(h,E,g,Z)};
aMF=function(h,E,g,Z){if(h==g)return Z<E;var M;if(h.nodeType==1&&E)if(M=h.childNodes[E])h=M,E=0;else if(_.y_(h,g))return!0;if(g.nodeType==1&&Z)if(M=g.childNodes[Z])g=M,Z=0;else if(_.y_(g,h))return!1;return(JCC(h,g)||E-Z)>0};var EJ=function(){_.ms.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.DJ)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.DJ)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.DJ)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.DJ)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.DJ)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.DJ)(this.dispatchProgressEvent_,this)};
_.aV(EJ,_.ms);EJ.prototype.abort=function(){try{this.reader_.abort()}catch(h){throw new wTl(h,"aborting read");}};
EJ.prototype.getError=function(){return this.reader_.error&&new wTl(this.reader_.error,"reading file")};
EJ.prototype.dispatchProgressEvent_=function(h){this.dispatchEvent(new DKk(h,this))};
EJ.prototype.disposeInternal=function(){EJ.superClass_.disposeInternal.call(this);delete this.reader_};
var BDk=function(h){var E=new EJ,g=PqC(E);E.reader_.readAsArrayBuffer(h);return g},Uml=function(h){var E=new EJ,g=PqC(E);
E.reader_.readAsDataURL(h);return g},PqC=function(h){var E=new W5;
h.listen("loadend",_.Sj(function(g,Z){var M=Z.reader_.result,W=Z.getError();M==null||W?g.errback(W):g.callback(M);Z.dispose()},E,h));
return E};var gt=function(){_.ms.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11390_eventHandler_=new _.Pl(this);this.JSC$11390_isInitialized_=!1};
_.aV(gt,_.ms);var LhD=new _.SJ("d"),jNk=new _.SJ("beforedragstart"),dmC=new _.SJ("dragstart"),CqC=new _.SJ("beforedragmove"),Jan=new _.SJ("dragmove"),ebB=new _.SJ("beforedragend"),qBn=new _.SJ("dragend"),fMl=new _.SJ("e");gt.prototype.isDragging=function(){return!!this.JSC$11390_dragger_};
var NDf=function(h,E){E.dlgGrowthDirection_=0;E.dlgDragHoverClass_=void 0;E.dlgDragPermission=0;h.dragLists_.push(E)},tgC=function(h,E){h.getHandleForDragItem_=E};
gt.prototype.init=function(){if(!this.JSC$11390_isInitialized_){for(var h=this.dragLists_.length,E=0;E<h;E++)for(var g=_.Vm(this.dragLists_[E]),Z=g.length,M=0;M<Z;++M){var W=g[M],z=this.getHandleForDragItem_(W),c=_.AM(z);this.dragItemForHandle_[c]=W;this.dragItemHoverClasses_&&(this.JSC$11390_eventHandler_.listen(W,"mouseover",this.handleDragItemMouseover_),this.JSC$11390_eventHandler_.listen(W,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11390_eventHandler_.listen(z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11390_eventHandler_.listen(z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(W);this.JSC$11390_eventHandler_.listen(z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11390_isInitialized_=!0}};
gt.prototype.disposeInternal=function(){this.JSC$11390_eventHandler_.dispose();for(var h=this.dragLists_.length,E=0;E<h;E++){var g=this.dragLists_[E];g.dlgGrowthDirection_=void 0;g.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;SBM(this);gt.superClass_.disposeInternal.call(this)};
var xmM=function(h,E){for(var g=h.dragLists_.length,Z=0;Z<g;Z++){var M=h.dragLists_[Z];M.dlgBounds_=Tk4(M)}g=h.dragItems_.length;for(Z=0;Z<g;Z++)M=h.dragItems_[Z],M!=E&&(M.dlgBounds_=Tk4(M))};
_.p=gt.prototype;
_.p.handlePotentialDragStart_=function(h){var E=_.AM(h.currentTarget);E=this.dragItemForHandle_[E];if(E.parentElement.dlgDragPermission!=2){this.currDragItem_=E;a:{E=this.currDragItem_;for(var g=E.cloneNode(!0),Z=N3("TEXTAREA",E),M=N3("TEXTAREA",g),W=0;W<Z.length;W++)M[W].value=Z[W].value;switch(E.tagName){case "TR":E=_.Kz("TABLE",null,_.Kz("TBODY",null,g));break a;case "TD":case "TH":E=_.Kz("TABLE",null,_.Kz("TBODY",null,_.Kz("TR",null,g)));break a;case "TEXTAREA":g.value=E.value;default:E=g;break a}E=
void 0}this.draggerEl_=E;this.draggerElClasses_&&ZY(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Yp(this.currDragItem_).body.appendChild(this.draggerEl_);g=_.s6(this.currDragItem_);E=this.draggerEl_;Z=_.s6(E);if(g instanceof _.nt){var z=g.y;g=g.x}Tb(E,E.offsetLeft+(g-Z.x),E.offsetTop+(Number(z)-Z.y));this.JSC$11390_dragger_=new _.bG(this.draggerEl_);_.x2D(this.JSC$11390_dragger_,this.hysteresisDistance_);
_.vK(this.JSC$11390_dragger_,"start",this.handleDragStart_,!1,this);_.vK(this.JSC$11390_dragger_,"end",this.handleDragEnd_,!1,this);_.vK(this.JSC$11390_dragger_,"earlycancel",this.JSC$11392_cleanup_,!1,this);this.dispatchEvent(new ZU(LhD,this,h,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11390_dragger_.startDrag(h)}};
_.p.handleDragStart_=function(h){if(this.dispatchEvent(new ZU(jNk,this,h.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.jGM(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ZY(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var E=HUn(this.draggerEl_);this.draggerEl_.halfWidth=E.width/2;this.draggerEl_.halfHeight=E.height/2;E=this.draggerEl_.getBoundingClientRect();
var g=h.clientY,Z=wul(this.JSC$11390_dragger_,h.clientX);if(Z>E.right){var M=this.currDragItem_.getBoundingClientRect();this.JSC$11390_dragger_.deltaX=Z-(Z-M.left)/M.width*E.width}g=D2M(this.JSC$11390_dragger_,g);g>E.bottom&&(this.JSC$11390_dragger_.deltaY+=g-E.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";xmM(this,this.currDragItem_);this.currDragItem_.style.display="";_.vK(this.JSC$11390_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new ZU(dmC,
this,h.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_))}else h.preventDefault(),this.JSC$11392_cleanup_()};
_.p.handleDragMove_=function(h){var E=_.s6(this.draggerEl_);E=new _.nt(E.x+this.draggerEl_.halfWidth,E.y+this.draggerEl_.halfHeight);a:{var g=null;if(this.currDragItem_.style.display!="none"){g=this.currDragItem_.parentNode;var Z=Tk4(g);if(wbf(E,Z))break a}Z=this.dragLists_.length;for(var M=0;M<Z;M++){var W=this.dragLists_[M];if(W!=g&&wbf(E,W.dlgBounds_)){g=W;break a}}g=null}if(g){if(g==null)throw Error("$d");Z=0;M=!1;W=void 0;switch(g.dlgGrowthDirection_){case 0:Z=E.y;var z=Dmm;var c=lMF;break;case 4:M=
!0;case 2:Z=E.x;z=raF;c=lMF;break;case 5:M=!0;case 3:Z=E.x,z=mmF,c=vAk}for(var I=null,B,U=_.Vm(g),L=U.length,d=0;d<L;d++){var C=U[d];if(C!=this.currDragItem_){var q=z(C.dlgBounds_);if(M){var w=H3m(C,E);W===void 0&&(W=w);c(Z,q)&&(B==void 0||w<W||w==W&&(c(q,B)||q==B))&&(I=C,B=q);w<W&&(W=w)}else c(Z,q)&&(B==void 0||c(q,B))&&(I=C,B=q)}}z=I!==null&&H3m(I,E)>W?null:I}else z=null;if(!this.dispatchEvent(new ZU(CqC,this,h,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,E,g,z)))return!1;if(g&&g.dlgDragPermission!=
1)this.currDragItem_.parentNode==g&&_.jGM(this.currDragItem_)==z||g.insertBefore(this.currDragItem_,z),this.currDragItem_.style.display="",g.dlgDragHoverClass_&&_.GT(g,g.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",c=this.dragLists_.length,B=0;B<c;B++)Z=this.dragLists_[B],Z.dlgDragHoverClass_&&_.W$(Z,Z.dlgDragHoverClass_);g!=this.currHoverList_&&(this.currHoverList_=g,xmM(this,this.currDragItem_));this.dispatchEvent(new ZU(Jan,this,h,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_,
E,g,z));return!1};
_.p.JSC$11392_cleanup_=function(){SBM(this);this.JSC$11390_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var h=this.dragLists_.length,E=0;E<h;E++)this.dragLists_[E].dlgBounds_=null;h=this.dragItems_.length;for(E=0;E<h;E++)this.dragItems_[E].dlgBounds_=null};
_.p.handleDragEnd_=function(h){if(!this.dispatchEvent(new ZU(ebB,this,h,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_)))return!1;SBM(this);this.dispatchEvent(new ZU(qBn,this,h,this.currDragItem_,this.draggerEl_,this.JSC$11390_dragger_));this.JSC$11392_cleanup_();return!0};
var SBM=function(h){_.p8(h.JSC$11390_dragger_);var E=h.draggerEl_&&h.draggerEl_.parentElement;h.draggerEl_&&_.f8(h.draggerEl_);h.currDragItem_&&h.currDragItem_.style.display=="none"&&(h.origList_.insertBefore(h.currDragItem_,h.origNextItem_),h.currDragItem_.style.display="");h.currDragItemClasses_&&h.currDragItem_?tAm(h.currDragItem_,h.currDragItemClasses_||[]):h.currDragItem_&&(h.currDragItem_.style.visibility="");for(var g=h.dragLists_.length,Z=0;Z<g;Z++){var M=h.dragLists_[Z];M.dlgDragHoverClass_&&
_.W$(M,M.dlgDragHoverClass_)}E&&h.dispatchEvent(new ZU(fMl,h,null,h.currDragItem_,h.draggerEl_,h.JSC$11390_dragger_))};
_.p=gt.prototype;_.p.getHandleForDragItem_=function(h){return h};
_.p.handleDragItemMouseover_=function(h){ZY(h.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemMouseout_=function(h){tAm(h.currentTarget,this.dragItemHoverClasses_||[])};
_.p.handleDragItemHandleMouseover_=function(h){ZY(h.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.p.handleDragItemHandleMouseout_=function(h){tAm(h.currentTarget,this.dragItemHandleHoverClasses_||[])};
var wbf=function(h,E){return h.x>E.left&&h.x<E.left+E.width&&h.y>E.top&&h.y<E.top+E.height},H3m=function(h,E){h=h.dlgBounds_;
return Math.abs(E.y-(h.top+(h.height-1)/2))},Dmm=function(h){return h.top+h.height-1},raF=function(h){return h.left+h.width-1},mmF=function(h){return h.left||0},lMF=function(h,E){return h<E},vAk=function(h,E){return h>E},ZU=function(h,E,g,Z,M,W){_.xD.call(this,h);
this.event=g;this.currDragItem=Z;this.draggerEl=M;this.JSC$11394_dragger=W};
_.aV(ZU,_.xD);_.aV(Bl,_.wO);var $ml=new _.nt(0,0);Bl.prototype.JSC$11398_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
Bl.prototype.JSC$11398_onMouseMove=function(h){var E=this.containerIsActuallyContent_?$ml:xp(w2(this.containerNode_)),g=this.horizontalScrolling_?this.calculateScrollDelta(h.clientX+E.x,this.scrollBounds_.left,this.scrollBounds_.width):0,Z=this.calculateScrollDelta(h.clientY+E.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=g;this.scrollDelta_.y=Z;!(g=!g&&!Z)&&(g=this.constrainScroll_)&&(g=h.clientX+E.x,h=h.clientY+E.y,E=this.containerBounds_,g=!(E.left<=g&&E.left+E.width>=
g&&E.top<=h&&E.top+E.height>=h));g?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
Bl.prototype.calculateScrollDelta=function(h,E,g){var Z=0;h<E?Z=-8:h>E+g&&(Z=8);return Z};
Bl.prototype.disposeInternal=function(){Bl.superClass_.disposeInternal.call(this);this.JSC$11396_eventHandler_.dispose();this.scrollTimer_.dispose()};var KhM={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"}}},MO=KhM;MO=KhM;var WU={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 O3H=function(){},gN=function(h){if(typeof h=="number"){var E=new O3H;
E.standardOffset_=h;var g=h;if(g==0)g="Etc/GMT";else{var Z=["Etc/GMT",g<0?"-":"+"];g=Math.abs(g);Z.push(Math.floor(g/60)%100);g%=60;g!=0&&Z.push(":",_.RO(g,2));g=Z.join("")}E.timeZoneId_=g;g=h;g==0?g="UTC":(Z=["UTC",g<0?"+":"-"],g=Math.abs(g),Z.push(Math.floor(g/60)%100),g%=60,g!=0&&Z.push(":",g),g=Z.join(""));h=nAl(h);E.tzNames_=[g,g];E.tzNamesExt_={STD_LONG_NAME_GMT:h,STD_GENERIC_LOCATION:h};E.transitions_=[];return E}E=new O3H;E.timeZoneId_=h.id;E.standardOffset_=-h.std_offset;E.tzNames_=h.names;
E.tzNamesExt_=h.names_ext;E.transitions_=h.transitions;return E},nAl=function(h){var E=["GMT"];
E.push(h<=0?"+":"-");h=Math.abs(h);E.push(_.RO(Math.floor(h/60)%100,2),":",_.RO(h%60,2));return E.join("")},XbC=function(h,E){E=Date.UTC(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate(),E.getUTCHours(),E.getUTCMinutes())/36E5;
for(var g=0;g<h.transitions_.length&&E>=h.transitions_[g];)g+=2;return g==0?0:h.transitions_[g-1]},YBA=function(h,E){h=h.standardOffset_-XbC(h,E);
return h===-1440?0:h};var Z9=function(h,E){this.patternParts_=[];this.JSC$11409_dateTimeSymbols_=E||dH;typeof h=="number"?sNM(this,h):VgA(this,h)},kwD=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],pf=function(h){return h.getHours?h.getHours():0},VgA=function(h,E){for(Aca&&(E=E.replace(/\u200f/g,""));E;){for(var g=E,Z=0;Z<kwD.length;++Z){var M=E.match(kwD[Z]);
if(M){var W=M[0];E=E.substring(W.length);Z==0&&(W=="''"?W="'":(W=W.substring(1,M[1]=="'"?W.length-1:W.length),W=W.replace(/''/g,"'")));h.patternParts_.push({text:W,type:Z});break}}if(g===E)throw Error("ae`"+E);}};
Z9.prototype.format=function(h,E){if(!h)throw Error("be");var g=E?(h.getTimezoneOffset()-YBA(E,h))*6E4:0,Z=g?new Date(h.getTime()+g):h,M=Z;E&&Z.getTimezoneOffset()!=h.getTimezoneOffset()&&(Z=new Date(Z.getTime()+(Z.getTimezoneOffset()-h.getTimezoneOffset())*6E4),M=new Date(h.getTime()+(g+(g>0?-864E5:864E5))));g=[];for(var W=0;W<this.patternParts_.length;++W){var z=this.patternParts_[W].text;1==this.patternParts_[W].type?g.push(yak(this,z,h,Z,M,E)):g.push(z)}return g.join("")};
var sNM=function(h,E){if(E<4)var g=h.JSC$11409_dateTimeSymbols_.DATEFORMATS[E];else if(E<8)g=h.JSC$11409_dateTimeSymbols_.TIMEFORMATS[E-4];else if(E<12)g=h.JSC$11409_dateTimeSymbols_.DATETIMEFORMATS[E-8],g=g.replace("{1}",h.JSC$11409_dateTimeSymbols_.DATEFORMATS[E-8]),g=g.replace("{0}",h.JSC$11409_dateTimeSymbols_.TIMEFORMATS[E-8]);else if(E===12)g=h.JSC$11409_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(E===13)g=h.JSC$11409_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{sNM(h,10);return}VgA(h,g)},Gd=function(h,E){E=String(E);
h=h.JSC$11409_dateTimeSymbols_||dH;if(h.ZERODIGIT!==void 0&&!FuV){for(var g=[],Z=0;Z<E.length;Z++){var M=E.charCodeAt(Z);g.push(48<=M&&M<=57?String.fromCharCode(h.ZERODIGIT+M-48):E.charAt(Z))}E=g.join("")}return E},FuV=!1,Aca=!1,AaM=function(h,E,g,Z){g=g.getFullYear();
g<=0&&Z&&(g=1-g);return Gd(h,FhA(g,E))},FhA=function(h,E){E==2&&(h%=100);
h<0&&E++;return _.RO(h,E)},zd=function(h){if(!(h.getHours&&h.getSeconds&&h.getMinutes))throw Error("ce");
},TDl=function(h,E){zd(E);
E=pf(E);return h.JSC$11409_dateTimeSymbols_.AMPMS[E>=12&&E<24?1:0]},yak=function(h,E,g,Z,M,W){var z=E.length;
switch(E.charAt(0)){case "G":return g=Z.getFullYear()>0?1:0,z>=4?h.JSC$11409_dateTimeSymbols_.ERANAMES[g]:h.JSC$11409_dateTimeSymbols_.ERAS[g];case "y":return AaM(h,z,Z,!0);case "Y":return g=(new Date(utM(Z.getFullYear(),Z.getMonth(),Z.getDate(),h.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,h.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),z==2&&(g%=100),Gd(h,FhA(g,z));case "u":return AaM(h,z,Z,!1);case "M":a:switch(g=Z.getMonth(),z){case 5:z=h.JSC$11409_dateTimeSymbols_.NARROWMONTHS[g];
break a;case 4:z=h.JSC$11409_dateTimeSymbols_.MONTHS[g];break a;case 3:z=h.JSC$11409_dateTimeSymbols_.SHORTMONTHS[g];break a;default:z=Gd(h,_.RO(g+1,z))}return z;case "k":return zd(M),Gd(h,_.RO(pf(M)||24,z));case "S":return Gd(h,(M.getMilliseconds()/1E3).toFixed(Math.min(3,z)).slice(2)+(z>3?_.RO(0,z-3):""));case "E":return g=Z.getDay(),z>=4?h.JSC$11409_dateTimeSymbols_.WEEKDAYS[g]:h.JSC$11409_dateTimeSymbols_.SHORTWEEKDAYS[g];case "a":return TDl(h,M);case "b":return TDl(h,M);case "B":return TDl(h,
M);case "h":return zd(M),Gd(h,_.RO(pf(M)%12||12,z));case "K":return zd(M),Gd(h,_.RO(pf(M)%12,z));case "H":return zd(M),Gd(h,_.RO(pf(M),z));case "c":a:switch(g=Z.getDay(),z){case 5:z=h.JSC$11409_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[g];break a;case 4:z=h.JSC$11409_dateTimeSymbols_.STANDALONEWEEKDAYS[g];break a;case 3:z=h.JSC$11409_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[g];break a;default:z=Gd(h,_.RO(g,1))}return z;case "L":a:switch(g=Z.getMonth(),z){case 5:z=h.JSC$11409_dateTimeSymbols_.STANDALONENARROWMONTHS[g];
break a;case 4:z=h.JSC$11409_dateTimeSymbols_.STANDALONEMONTHS[g];break a;case 3:z=h.JSC$11409_dateTimeSymbols_.STANDALONESHORTMONTHS[g];break a;default:z=Gd(h,_.RO(g+1,z))}return z;case "Q":return g=Math.floor(Z.getMonth()/3),z<4?h.JSC$11409_dateTimeSymbols_.SHORTQUARTERS[g]:h.JSC$11409_dateTimeSymbols_.QUARTERS[g];case "d":return Gd(h,_.RO(Z.getDate(),z));case "m":return zd(M),Gd(h,_.RO(M.getMinutes?M.getMinutes():0,z));case "s":return zd(M),Gd(h,_.RO(M.getSeconds(),z));case "v":return(W||gN(g.getTimezoneOffset())).timeZoneId_;
case "V":return h=W||gN(g.getTimezoneOffset()),z<=2?h.timeZoneId_:XbC(h,g)>0?h.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?h.tzNamesExt_.DST_GENERIC_LOCATION:h.tzNamesExt_.DST_GENERIC_LOCATION:h.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?h.tzNamesExt_.STD_GENERIC_LOCATION:h.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return g=utM(M.getFullYear(),M.getMonth(),M.getDate(),h.JSC$11409_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,h.JSC$11409_dateTimeSymbols_.FIRSTDAYOFWEEK),Gd(h,_.RO(Math.floor(Math.round((g-(new Date((new Date(g)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,z));case "z":return h=W||gN(g.getTimezoneOffset()),z<4?h.tzNames_[XbC(h,g)>0?2:0]:h.tzNames_[XbC(h,g)>0?3:1];case "Z":return E=W||gN(g.getTimezoneOffset()),z<4?(z=-YBA(E,g),h=[z<0?"-":"+"],z=Math.abs(z),h.push(_.RO(Math.floor(z/60)%100,2),_.RO(z%60,2)),z=h.join("")):z=Gd(h,nAl(YBA(E,g))),z;default:return""}};var b3H=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,uTn=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,bEz=function(h){this.patternParts_=[];this.JSC$11418_dateTimeSymbols_=dH;if(typeof h=="number"){h>11&&(h=10);if(h<4)var E=this.JSC$11418_dateTimeSymbols_.DATEFORMATS[h];else h<8?E=this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[h-4]:(E=this.JSC$11418_dateTimeSymbols_.DATETIMEFORMATS[h-8],E=E.replace("{1}",this.JSC$11418_dateTimeSymbols_.DATEFORMATS[h-8]),E=E.replace("{0}",this.JSC$11418_dateTimeSymbols_.TIMEFORMATS[h-
8]));QNm(this,E)}else QNm(this,h)},QNm=function(h,E){for(var g=!1,Z="",M=0;M<E.length;M++){var W=E.charAt(M);
if(b3H.test(W))for(Z.length>0&&(h.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z=""),h.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});M<E.length-1&&E.charAt(M+1)==" ";)M++;else if(g)W=="'"?M+1<E.length&&E.charAt(M+1)=="'"?(Z+="'",M++):g=!1:Z+=W;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(W)>=0){Z.length>0&&(h.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1}),Z="");for(var z=E.charAt(M),c=M+1;c<E.length&&E.charAt(c)==z;)c++;z=c-M;z<=0?c=!1:(c="MydhHmsSDkK".indexOf(W),
c=c>0||c==0&&z<3);h.patternParts_.push({text:W,count:z,abutStart:!1,numeric:c});M+=z-1}else W=="'"?M+1<E.length&&E.charAt(M+1)=="'"?(Z+="'",M++):g=!0:Z+=W}Z.length>0&&h.patternParts_.push({text:Z,count:0,abutStart:!1,numeric:!1});E=!1;for(g=0;g<h.patternParts_.length;g++)h.patternParts_[g].numeric?!E&&g+1<h.patternParts_.length&&h.patternParts_[g+1].numeric&&(E=!0,h.patternParts_[g].abutStart=!0):E=!1};
bEz.prototype.parse=function(h,E,g){var Z=!1,M=!1;g&&(Z=g.predictive||!1,M=g.validate||!1);if(Z)for(g=0;g<this.patternParts_.length;g++){var W=this.patternParts_[g];if(W.count>0&&("abBhHkKm".indexOf(W.text.charAt(0))<0||W.count>2||W.abutStart))throw Error("de`"+W.text.charAt(0));}W=new hqC;g=[0];W.dayPeriodIndex=-1;for(var z=0;z<this.patternParts_.length&&!(Z&&g[0]>=h.length);z++){if(this.patternParts_[z].count==0){a:{var c=h;var I=g,B=this.patternParts_[z],U=Z;if(B.text.match(b3H)!=null){if(B=I[0],
EBm(c,I),I[0]>B){c=!0;break a}}else{if(c.indexOf(B.text,I[0])==I[0]){I[0]+=B.text.length;c=!0;break a}if(U&&B.text.indexOf(c.substring(I[0]))==0){I[0]+=c.length-I[0];c=!0;break a}}c=!1}if(c)continue;return 0}if(this.patternParts_[z].abutStart){a:{I=h;B=g;U=z;var L=B[0],d=0;for(c=U;c<this.patternParts_.length;c++){var C=this.patternParts_[c],q=C.count;if(q===0)break;if(c==U&&(q-=d,d++,q==0)){c=0;break a}var w=c>U&&C.numeric,r=B[0];if(!gBB(this,I,B,C,q,W,!1)||w&&B[0]-r<q)c=U-1,B[0]=L}c-=U}if(c<=0)return 0;
z+=c-1}else if(!gBB(this,h,g,this.patternParts_[z],0,W,Z))return 0}a:{h=M;if(E==null)throw Error("ee");W.era!=void 0&&W.year!=void 0&&W.era==0&&W.year>0&&(W.year=-(W.year-1));W.year!=void 0&&E.setFullYear(W.year);Z=E.getDate();E.setDate(1);W.month!=void 0&&E.setMonth(W.month);W.day!=void 0?E.setDate(W.day):(M=fu$(E.getFullYear(),E.getMonth()),E.setDate(Z>M?M:Z));typeof E.setHours==="function"&&(W.hours==void 0&&(W.hours=E.getHours()),W.hours<12&&(W.ampm!=void 0&&W.ampm>0?W.hours+=12:W.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(W.dayPeriodName)||["night1","night2"].includes(W.dayPeriodName)&&W.hours>=6)&&(W.hours+=12)),E.setHours(W.hours));typeof E.setMinutes==="function"&&W.minutes!=void 0&&E.setMinutes(W.minutes);typeof E.setSeconds==="function"&&W.seconds!=void 0&&E.setSeconds(W.seconds);typeof E.setMilliseconds==="function"&&W.milliseconds!=void 0&&E.setMilliseconds(W.milliseconds);if(h&&(W.year&&W.year!=E.getFullYear()||W.month&&W.month!=
E.getMonth()||W.day&&W.day!=E.getDate()||W.hours&&W.hours>=24||W.minutes&&W.minutes>=60||W.seconds&&W.seconds>=60||W.milliseconds&&W.milliseconds>=1E3))E=!1;else{W.tzOffset!=void 0&&E.setTime(E.getTime()+(W.tzOffset-E.getTimezoneOffset())*60*1E3);W.ambiguousYear&&(h=new Date,h.setFullYear(h.getFullYear()-80),E.getTime()<h.getTime()&&E.setFullYear(h.getFullYear()+100));if(W.dayOfWeek!=void 0)if(W.day==void 0)W=(7+W.dayOfWeek-E.getDay())%7,W>3&&(W-=7),h=E.getMonth(),E.setDate(E.getDate()+W),E.getMonth()!=
h&&E.setDate(E.getDate()+(W>0?-7:7));else if(W.dayOfWeek!=E.getDay()){E=!1;break a}E=!0}}return E?g[0]:0};
var gBB=function(h,E,g,Z,M,W,z){EBm(E,g);if(Z.numeric&&M>0&&g[0]+M>E.length)return!1;switch(Z.text.charAt(0)){case "G":return aM(E,g,[h.JSC$11418_dateTimeSymbols_.ERAS],function(c){return W.era=c}),!0;
case "M":case "L":return ZLB(h,E,g,M,Z,W);case "E":return aM(E,g,[h.JSC$11418_dateTimeSymbols_.WEEKDAYS,h.JSC$11418_dateTimeSymbols_.SHORTWEEKDAYS],function(c){return W.dayOfWeek=c});
case "B":case "b":return M=[],h=[[].concat(h.JSC$11418_dateTimeSymbols_.AMPMS)],M.push("isAm"),M.push("isPm"),E=aM(E,g,h,function(c){return W.dayPeriodIndex=c},z),W.dayPeriodName=M[W.dayPeriodIndex],z?E:!0;
case "a":return E=aM(E,g,[h.JSC$11418_dateTimeSymbols_.AMPMS],function(c){return W.ampm=c},z),z?E:!0;
case "y":return MQD(h,E,g,Z,M,W);case "Q":return aM(E,g,[h.JSC$11418_dateTimeSymbols_.QUARTERS,h.JSC$11418_dateTimeSymbols_.SHORTQUARTERS],function(c){W.month=c*3;W.day=1});
case "d":return cU(h,E,g,Z,M,function(c){W.day=c}),!0;
case "S":return WTC(h,E,g,M,W);case "h":case "K":case "H":case "k":return E=cU(h,E,g,Z,M,function(c){W.hours=Z.text.charAt(0)==="h"&&c===12?0:c},z),z?E:!0;
case "m":return E=cU(h,E,g,Z,M,function(c){W.minutes=c},z),z?E:!0;
case "s":return cU(h,E,g,Z,M,function(c){W.seconds=c}),!0;
case "z":case "Z":case "v":return pKB(h,E,g,W);default:return!1}},MQD=function(h,E,g,Z,M,W){var z=g[0];
M=iP(h,E,g,M);M===null&&(M=iP(h,E,g,0,!0));if(M===null)return!1;M>=0&&g[0]-z==2&&Z.count==2?(h=M,E=(new Date).getFullYear()-80,g=E%100,W.ambiguousYear=h==g,h+=Math.floor(E/100)*100+(h<g?100:0),W.year=h):W.year=M;return!0},ZLB=function(h,E,g,Z,M,W){return M.numeric&&cU(h,E,g,M,Z,function(z){W.month=z-1})?!0:aM(E,g,[h.JSC$11418_dateTimeSymbols_.MONTHS,
h.JSC$11418_dateTimeSymbols_.STANDALONEMONTHS,h.JSC$11418_dateTimeSymbols_.SHORTMONTHS,h.JSC$11418_dateTimeSymbols_.STANDALONESHORTMONTHS],function(z){W.month=z})},WTC=function(h,E,g,Z,M){var W=g[0];
h=iP(h,E,g,Z);if(h===null)return!1;g=g[0]-W;M.milliseconds=g<3?h*Math.pow(10,3-g):Math.round(h/Math.pow(10,g-3));return!0},pKB=function(h,E,g,Z){E.indexOf("GMT",g[0])==g[0]&&(g[0]+=3);
if(g[0]>=E.length)return Z.tzOffset=0,!0;var M=g[0],W=iP(h,E,g,0,!0);if(W===null)return!1;if(g[0]<E.length&&E.charAt(g[0])==":"){var z=W*60;g[0]++;W=iP(h,E,g,0);if(W===null)return!1;z+=W}else z=W,z=z<24&&g[0]-M<=3?z*60:z%100+z/100*60;Z.tzOffset=-z;return!0},cU=function(h,E,g,Z,M,W,z){z=z||!1;
var c=g[0];h=iP(h,E,g,M);if(h===null)return!1;if(z&&g[0]-c<Z.count){if(g[0]<E.length)return!1;h*=Math.pow(10,Z.count-(g[0]-c))}W(h);return!0},aM=function(h,E,g,Z,M){M=M||!1;
for(var W,z=0;z<g.length;z++){W=E;for(var c=g[z],I=M,B=0,U=null,L=h.substring(W[0]).toLowerCase(),d=0;d<c.length;d++){var C=c[d].toLowerCase();if(I&&C.indexOf(L)==0){B=L.length;U=d;break}c[d].length>B&&L.indexOf(C)==0&&(B=c[d].length,U=d)}U!==null&&(W[0]+=B);W=U;if(W!==null)return Z(W),!0}return!1},EBm=function(h,E){(h=h.substring(E[0]).match(uTn))&&(E[0]+=h[0].length)},iP=function(h,E,g,Z,M){E=Z>0?E.substring(0,g[0]+Z):E;
M=M||!1;if(h.JSC$11418_dateTimeSymbols_.ZERODIGIT){Z=[];for(var W=g[0];W<E.length;W++){var z=E.charCodeAt(W)-h.JSC$11418_dateTimeSymbols_.ZERODIGIT;Z.push(0<=z&&z<=9?String.fromCharCode(z+48):E.charAt(W))}E=Z.join("")}else E=E.substring(g[0]);h=E.match(new RegExp("^"+(M?"[+-]?":"")+"\\d+"));if(!h)return null;g[0]+=h[0].length;return parseInt(h[0],10)},hqC=function(){};
hqC.prototype.ambiguousYear=!1;var GlD;
GlD={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 zqD={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}"]};
zqD={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 a6D=function(){var h={type:"unit",style:"narrow"};this.listType_=h&&h.type?h.type:"conjunction";this.listStyle_=h&&h.style?h.style:"long";this.listSymbols_=zqD;h=0;switch(this.listStyle_){case "short":h=1;break;case "narrow":h=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[h];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[h];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[h];this.listEndPattern_=
this.listSymbols_.AND_END[h];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[h];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[h];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[h];this.listEndPattern_=this.listSymbols_.OR_END[h];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[h],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[h],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[h],this.listEndPattern_=this.listSymbols_.UNIT_END[h]}};
a6D.prototype.format=function(h){return cWk(this,h)};
var cWk=function(h,E){var g=E.length;switch(g){case 0:return"";case 1:return String(E[0]);case 2:return h.listTwoPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1]))}for(var Z=h.listStartPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1])),M=2;M<g-1;++M)Z=h.listMiddlePattern_.replace("{0}",Z).replace("{1}",String(E[M]));return h.listEndPattern_.replace("{0}",Z).replace("{1}",String(E[g-1]))};var iLl={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"},oBB=iLl,I6M=iLl;I6M=oBB=iLl;var PsH,oM,RM,dU$,IM,RqM;
_.Q7=function(h,E,g,Z){var M;if(M=E){a:if(E&&E.length===3){for(M=0;M<3;M++){var W=E[M];if(W<"A"||W>"Z"&&W<"a"||W>"z"){M=!1;break a}}M=!0}else M=!1;M=!M}if(M)throw new TypeError("fe");this.intlCurrencyCode_=E?E.toUpperCase():null;this.currencyStyle_=g||0;this.overrideNumberFormatSymbols_=Z||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_=oM(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof h==="number")switch(h){case 1:IM(this,oM(this).DECIMAL_PATTERN);break;case 2:IM(this,oM(this).SCIENTIFIC_PATTERN);break;case 3:IM(this,oM(this).PERCENT_PATTERN);break;case 4:h=oM(this).CURRENCY_PATTERN;E=["0"];if(g=
WU[RM(this)]){g=g[0]&7;if(g>0)for(E.push("."),Z=0;Z<g;Z++)E.push("0");h=h.replace(/0.00/g,E.join(""))}IM(this,h);break;case 5:RqM(this,1);break;case 6:RqM(this,2);break;default:throw Error("ie");}else IM(this,h)};
PsH=!1;oM=function(h){return h.overrideNumberFormatSymbols_||(PsH?I6M:oBB)};
RM=function(h){return h.intlCurrencyCode_||oM(h).DEF_CURRENCY_CODE};
dU$=function(h,E){if(E>308)throw Error("he`"+E);h.maximumFractionDigits_=E;return h};
IM=function(h,E){var g=[0];h.positivePrefix_=BpD(h,E,g);for(var Z=g[0],M=-1,W=0,z=0,c=0,I=-1,B=E.length,U=!0;g[0]<B&&U;g[0]++)switch(E.charAt(g[0])){case "#":z>0?c++:W++;I>=0&&M<0&&I++;break;case "0":if(c>0)throw Error("oe`"+E);z++;I>=0&&M<0&&I++;break;case ",":I>0&&h.groupingArray_.push(I);I=0;break;case ".":if(M>=0)throw Error("pe`"+E);M=W+z+c;break;case "E":if(h.useExponentialNotation_)throw Error("qe`"+E);h.useExponentialNotation_=!0;h.minExponentDigits_=0;g[0]+1<B&&E.charAt(g[0]+1)=="+"&&(g[0]++,
h.useSignForPositiveExponent_=!0);for(;g[0]+1<B&&E.charAt(g[0]+1)=="0";)g[0]++,h.minExponentDigits_++;if(W+z<1||h.minExponentDigits_<1)throw Error("re`"+E);U=!1;break;default:g[0]--,U=!1}z==0&&W>0&&M>=0&&(z=M,z==0&&z++,c=W-z,W=z-1,z=1);if(M<0&&c>0||M>=0&&(M<W||M>W+z)||I==0)throw Error("se`"+E);c=W+z+c;h.maximumFractionDigits_=M>=0?c-M:0;M>=0&&(h.minimumFractionDigits_=W+z-M,h.minimumFractionDigits_<0&&(h.minimumFractionDigits_=0));h.minimumIntegerDigits_=(M>=0?M:c)-W;h.useExponentialNotation_&&(h.maximumIntegerDigits_=
W+h.minimumIntegerDigits_,h.maximumFractionDigits_==0&&h.minimumIntegerDigits_==0&&(h.minimumIntegerDigits_=1));h.groupingArray_.push(Math.max(0,I));h.decimalSeparatorAlwaysShown_=M==0||M==c;Z=g[0]-Z;h.positiveSuffix_=BpD(h,E,g);g[0]<E.length&&E.charAt(g[0])==";"?(g[0]++,h.multiplier_!=1&&(h.negativePercentSignExpected_=!0),h.negativePrefix_=BpD(h,E,g),g[0]+=Z,h.negativeSuffix_=BpD(h,E,g)):(h.negativePrefix_+=h.positivePrefix_,h.negativeSuffix_+=h.positiveSuffix_)};
RqM=function(h,E){h.compactStyle_=E;IM(h,oM(h).DECIMAL_PATTERN);h.minimumFractionDigits_=0;dU$(h,2);if(h.minimumFractionDigits_>0)throw Error("ge");h.significantDigits_=2};
_.Q7.prototype.parse=function(h,E){E=E||[0];if(this.compactStyle_!==0)throw Error("je");h=h.replace(/ |\u202f/g,"\u00a0");var g=h.indexOf(this.positivePrefix_,E[0])==E[0],Z=h.indexOf(this.negativePrefix_,E[0])==E[0];g&&Z&&(this.positivePrefix_.length>this.negativePrefix_.length?Z=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(g=!1));g?E[0]+=this.positivePrefix_.length:Z&&(E[0]+=this.negativePrefix_.length);if(h.indexOf(oM(this).INFINITY,E[0])==E[0]){E[0]+=oM(this).INFINITY.length;var M=
Infinity}else{M=h;var W=!1,z=!1,c=!1,I=-1,B=1,U=oM(this).DECIMAL_SEP,L=oM(this).GROUP_SEP,d=oM(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");L=L.replace(/\u202f/g,"\u00a0");for(var C="";E[0]<M.length;E[0]++){var q=M.charAt(E[0]),w=UBf(this,q);if(w>=0&&w<=9)C+=w,c=!0;else if(q==U.charAt(0)){if(W||z)break;C+=".";W=!0}else if(q==L.charAt(0)&&("\u00a0"!=L.charAt(0)||E[0]+1<M.length&&UBf(this,M.charAt(E[0]+1))>=0)){if(W||z)break}else if(q==d.charAt(0)){if(z)break;C+="E";z=!0;I=E[0]}else if(q==
"+"||q=="-"){if(c&&I!=E[0]-1)break;C+=q}else if(this.multiplier_==1&&q==oM(this).PERCENT.charAt(0)){if(B!=1)break;B=100;if(c){E[0]++;break}}else if(this.multiplier_==1&&q==oM(this).PERMILL.charAt(0)){if(B!=1)break;B=1E3;if(c){E[0]++;break}}else break}this.multiplier_!=1&&(B=this.multiplier_);M=parseFloat(C)/B}if(g){if(h.indexOf(this.positiveSuffix_,E[0])!=E[0])return NaN;E[0]+=this.positiveSuffix_.length}else if(Z){if(h.indexOf(this.negativeSuffix_,E[0])!=E[0])return NaN;E[0]+=this.negativeSuffix_.length}return Z?
-M:M};
_.Q7.prototype.format=function(h){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(h))return oM(this).NAN;var E=[];var g=h;if(this.compactStyle_==0)g=PU;else{g=Math.abs(g);var Z=LTf(this,g<=1?0:juf(g)).divisorBase;g=LTf(this,Z+juf(dBC(this,BU(g,-Z)).intValue))}h=BU(h,-g.divisorBase);(Z=h<0||h==0&&1/h<0)?g.negative_prefix?E.push(g.negative_prefix):(E.push(g.prefix),E.push(this.negativePrefix_)):(E.push(g.prefix),E.push(this.positivePrefix_));if(isFinite(h))if(h*=
Z?-1:1,h*=this.multiplier_,this.useExponentialNotation_){var M=h;if(M==0)Csm(this,M,this.minimumIntegerDigits_,E),JWA(this,0,E);else{var W=Math.floor(Math.log(M)/Math.log(10)+2E-15);M=BU(M,-W);var z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(z=W%this.maximumIntegerDigits_,z<0&&(z=this.maximumIntegerDigits_+z),M=BU(M,z),W-=z,z=1):this.minimumIntegerDigits_<1?(W++,M=BU(M,-1)):(W-=this.minimumIntegerDigits_-1,M=BU(M,this.minimumIntegerDigits_-
1));Csm(this,M,z,E);JWA(this,W,E)}}else Csm(this,h,this.minimumIntegerDigits_,E);else E.push(oM(this).INFINITY);Z?g.negative_suffix?E.push(g.negative_suffix):(isFinite(h)&&E.push(g.suffix),E.push(this.negativeSuffix_)):(isFinite(h)&&E.push(g.suffix),E.push(this.positiveSuffix_));return E.join("")};
var dBC=function(h,E){var g=BU(E,h.maximumFractionDigits_);h.significantDigits_>0&&(g=eql(g,h.significantDigits_,h.maximumFractionDigits_));g=Math.round(g);if(isFinite(g)){var Z=Math.floor(BU(g,-h.maximumFractionDigits_));g=Math.floor(g-BU(Z,h.maximumFractionDigits_));if(g<0||g>=BU(1,h.maximumFractionDigits_))Z=Math.round(E),g=0}else Z=E,g=0;return{intValue:Z,fracValue:g}},Csm=function(h,E,g,Z){if(h.minimumFractionDigits_>h.maximumFractionDigits_)throw Error("le");
Z||(Z=[]);E=dBC(h,E);var M=E.intValue,W=E.fracValue,z=h.minimumFractionDigits_>0||W>0||!1;E=h.minimumFractionDigits_;z&&(E=h.minimumFractionDigits_);for(var c="",I=M;I>1E20;)c="0"+c,I=Math.round(BU(I,-1));c=I+c;var B=oM(h).DECIMAL_SEP;I=oM(h).ZERO_DIGIT.codePointAt(0);var U=c.length,L=0;if(M>0||g>0){for(M=U;M<g;M++)Z.push(String.fromCodePoint(I));if(h.groupingArray_.length>=2)for(g=1;g<h.groupingArray_.length;g++)L+=h.groupingArray_[g];g=U-L;if(g>0){M=h.groupingArray_;L=U=0;for(var d,C=oM(h).GROUP_SEP,
q=c.length,w=0;w<q;w++)if(Z.push(String.fromCodePoint(I+Number(c.charAt(w)))),q-w>1)if(d=M[L],w<g){var r=g-w;(d===1||d>0&&r%d===1)&&Z.push(C)}else L<M.length&&(w===g?L+=1:d===w-g-U+1&&(Z.push(C),U+=d,L+=1))}else{g=c;c=h.groupingArray_;M=oM(h).GROUP_SEP;d=g.length;C=[];for(U=c.length-1;U>=0&&d>0;U--){L=c[U];for(q=0;q<L&&d-q-1>=0;q++)C.push(String.fromCodePoint(I+Number(g.charAt(d-q-1))));d-=L;d>0&&C.push(M)}Z.push.apply(Z,C.reverse())}}else z||Z.push(String.fromCodePoint(I));(h.decimalSeparatorAlwaysShown_||
z)&&Z.push(B);W=String(W);z=W.split("e+");z.length==2&&(W=String(eql(parseFloat(z[0]),h.significantDigits_,1)),W=W.replace(".",""),W+=(0,_.EMH)("0",parseInt(z[1],10)-W.length+1));h.maximumFractionDigits_+1>W.length&&(W="1"+(0,_.EMH)("0",h.maximumFractionDigits_-W.length)+W);for(h=W.length;W.charAt(h-1)=="0"&&h>E+1;)h--;for(E=1;E<h;E++)Z.push(String.fromCodePoint(I+Number(W.charAt(E))))},JWA=function(h,E,g){g.push(oM(h).EXP_SYMBOL);
E<0?(E=-E,g.push(oM(h).MINUS_SIGN)):h.useSignForPositiveExponent_&&g.push(oM(h).PLUS_SIGN);E=""+E;for(var Z=oM(h).ZERO_DIGIT,M=E.length;M<h.minExponentDigits_;M++)g.push(Z);h=Z.codePointAt(0)-qQk;for(Z=0;Z<E.length;Z++)g.push(String.fromCodePoint(h+E.codePointAt(Z)))},UBf=function(h,E){E=E.codePointAt(0);
if(48<=E&&E<58)return E-48;h=oM(h).ZERO_DIGIT.codePointAt(0);return h<=E&&E<h+10?E-h:-1},qQk="0".codePointAt(0),BpD=function(h,E,g){for(var Z="",M=!1,W=E.length;g[0]<W;g[0]++){var z=E.charAt(g[0]);
if(z=="'")g[0]+1<W&&E.charAt(g[0]+1)=="'"?(g[0]++,Z+="'"):M=!M;else if(M)Z+=z;else switch(z){case "#":case "0":case ",":case ".":case ";":return Z;case "\u00a4":if(g[0]+1<W&&E.charAt(g[0]+1)=="\u00a4")g[0]++,Z+=RM(h);else switch(h.currencyStyle_){case 0:z=RM(h);Z+=z in WU?WU[z][1]:z;break;case 2:z=RM(h);var c=WU[z];Z+=c?z==c[1]?z:z+" "+c[1]:z;break;case 1:z=RM(h),Z+=z in WU?WU[z][2]:z}break;case "%":if(!h.negativePercentSignExpected_&&h.multiplier_!=1)throw Error("me");if(h.negativePercentSignExpected_&&
h.multiplier_!=100)throw Error("ne");h.multiplier_=100;h.negativePercentSignExpected_=!1;Z+=oM(h).PERCENT;break;case "\u2030":if(!h.negativePercentSignExpected_&&h.multiplier_!=1)throw Error("me");if(h.negativePercentSignExpected_&&h.multiplier_!=1E3)throw Error("ne");h.multiplier_=1E3;h.negativePercentSignExpected_=!1;Z+=oM(h).PERMILL;break;default:Z+=z}}return Z},PU={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},LTf=function(h,E){h=h.compactStyle_==1?MO.COMPACT_DECIMAL_SHORT_PATTERN:MO.COMPACT_DECIMAL_LONG_PATTERN;h==null&&(h=MO.COMPACT_DECIMAL_SHORT_PATTERN);if(E<3)return PU;E=Math.min(14,E);var g=h[BU(1,E)];for(--E;!g&&E>=3;)g=h[BU(1,E)],E--;if(!g)return PU;g=g.other;var Z=h="",M=g.indexOf(";");M>=0&&(g=g.substring(0,M),M=g.substring(M+1))&&(Z=/([^0]*)(0+)(.*)/.exec(M),h=Z[1],Z=Z[3]);return g&&g!="0"?(g=/([^0]*)(0+)(.*)/.exec(g))?{divisorBase:E+
1-(g[2].length-1),negative_prefix:h,negative_suffix:Z,prefix:g[1],suffix:g[3]}:PU:PU},juf=function(h){if(!isFinite(h))return h>0?h:0;
for(var E=0;(h/=10)>=1;)E++;return E},BU=function(h,E){if(!h||!isFinite(h)||E==0)return h;
h=String(h).split("e");return parseFloat(h[0]+"e"+(parseInt(h[1]||0,10)+E))},f6C=function(h,E){return h&&isFinite(h)?BU(Math.round(BU(h,E)),-E):h},eql=function(h,E,g){if(!h)return h;
E=E-juf(h)-1;return E<-g?f6C(h,-g):f6C(h,E)};var Npk=function(h){return h%10==1&&h%100!=11?"one":h%10==2&&h%100!=12?"two":h%10==3&&h%100!=13?"few":"other"},tQn=Npk;
tQn=Npk;var SQH=function(h,E){var g=h|0;if(void 0===E){E=Math;var Z=E.min,M=h+"",W=M.indexOf(".");E=Z.call(E,W===-1?0:M.length-W-1,3)}Z=Math.pow(10,E);h={v:E,f:(h*Z|0)%Z};return g==1&&h.v==0?"one":"other"},uV=SQH;
uV=SQH;var l6m=function(h){this.JSC$11461_pattern_=h;this.parsedPattern_=this.literals_=this.initialLiterals_=null;h=oBB;var E=MO;if(xBC!==h||wKk!==E)xBC=h,wKk=E,DBA=new _.Q7(1);this.numberFormatter_=DBA},xBC=null,wKk=null,DBA=null,rWf=RegExp("'([{}#].*?)'","g"),mBf=RegExp("''","g");
l6m.prototype.format=function(h){if(this.JSC$11461_pattern_){this.initialLiterals_=[];var E=vBM(this,this.JSC$11461_pattern_);this.parsedPattern_=HLD(this,E);this.JSC$11461_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Y$(this.initialLiterals_),E=[],$Bn(this,this.parsedPattern_,h,!1,E),h=E.join("");this.literals_.length>0;)h=h.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else h="";return h};
var $Bn=function(h,E,g,Z,M){for(var W=0;W<E.length;W++)switch(E[W].type){case 4:M.push(E[W].value);break;case 3:var z=E[W].value;var c=h,I=M,B=g[z];B===void 0?I.push("Undefined parameter - "+z):(c.literals_.push(B),I.push(c.buildPlaceholder_(c.literals_)));break;case 2:z=E[W].value;c=h;I=g;B=Z;var U=M,L=z.argumentIndex;I[L]===void 0?U.push("Undefined parameter - "+L):(L=z[I[L]],L===void 0&&(L=z.other),$Bn(c,L,I,B,U));break;case 0:z=E[W].value;KTA(h,z,g,uV,Z,M);break;case 1:z=E[W].value,KTA(h,z,g,
tQn,Z,M)}},KTA=function(h,E,g,Z,M,W){var z=E.argumentIndex,c=E.argumentOffset,I=+g[z];
isNaN(I)?W.push("Undefined or invalid parameter - "+z):(c=I-c,z=E[g[z]],z===void 0&&(Z=Z(Math.abs(c)),z=E[Z],z===void 0&&(z=E.other)),E=[],$Bn(h,z,g,M,E),g=E.join(""),M?W.push(g):(h=h.numberFormatter_.format(c),W.push(g.replace(/#/g,h))))},vBM=function(h,E){var g=h.initialLiterals_,Z=h.buildPlaceholder_.bind(h);
E=E.replace(mBf,function(){g.push("'");return Z(g)});
return E=E.replace(rWf,function(M,W){g.push(W);return Z(g)})},OLD=function(h){var E=0,g=[],Z=[],M=/[{}]/g;
M.lastIndex=0;for(var W;W=M.exec(h);){var z=W.index;W[0]=="}"?(g.pop(),g.length==0&&(W={type:1},W.value=h.substring(E,z),Z.push(W),E=z+1)):(g.length==0&&(E=h.substring(E,z),E!=""&&Z.push({type:0,value:E}),E=z+1),g.push("{"))}h=h.substring(E);h!=""&&Z.push({type:0,value:h});return Z},nBm=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,XKM=/^\s*(\w+)\s*,\s*selectordinal\s*,/,YQk=/^\s*(\w+)\s*,\s*select\s*,/,HLD=function(h,E){var g=[];
E=OLD(E);for(var Z=0;Z<E.length;Z++){var M={};if(0==E[Z].type)M.type=4,M.value=E[Z].value;else if(1==E[Z].type){var W=E[Z].value;switch(nBm.test(W)?0:XKM.test(W)?1:YQk.test(W)?2:/^\s*\w+\s*/.test(W)?3:5){case 2:M.type=2;M.value=sum(h,E[Z].value);break;case 0:M.type=0;M.value=VQM(h,E[Z].value);break;case 1:M.type=1;M.value=klf(h,E[Z].value);break;case 3:M.type=3,M.value=E[Z].value}}g.push(M)}return g},sum=function(h,E){var g="";
E=E.replace(YQk,function(c,I){g=I;return""});
var Z={};Z.argumentIndex=g;E=OLD(E);for(var M=0;M<E.length;){var W=E[M].value;M++;var z=void 0;1==E[M].type&&(z=HLD(h,E[M].value));Z[W.replace(/\s/g,"")]=z;M++}return Z},VQM=function(h,E){var g="",Z=0;
E=E.replace(nBm,function(I,B,U){g=B;U&&(Z=parseInt(U,10));return""});
var M={};M.argumentIndex=g;M.argumentOffset=Z;E=OLD(E);for(var W=0;W<E.length;){var z=E[W].value;W++;var c=void 0;1==E[W].type&&(c=HLD(h,E[W].value));M[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;W++}return M},klf=function(h,E){var g="";
E=E.replace(XKM,function(c,I){g=I;return""});
var Z={};Z.argumentIndex=g;Z.argumentOffset=0;E=OLD(E);for(var M=0;M<E.length;){var W=E[M].value;M++;var z=void 0;1==E[M].type&&(z=HLD(h,E[M].value));Z[W.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=z;M++}return Z};
l6m.prototype.buildPlaceholder_=function(h){return"\ufddf_"+(h.length-1).toString(10)+"_"};var mP$=function(){var h={style:1},E=yWH;this.style_=(h==null?void 0:h.style)||0;this.durationSymbols_=E||GlD},FTD=function(h,E){switch(E){default:case "years":return h.durationSymbols_.YEAR;
case "months":return h.durationSymbols_.MONTH;case "weeks":return h.durationSymbols_.WEEK;case "days":return h.durationSymbols_.DAY;case "hours":return h.durationSymbols_.HOUR;case "minutes":return h.durationSymbols_.MINUTE;case "seconds":return h.durationSymbols_.SECOND}},UJ=function(h,E,g){a:{g=FTD(h,g);
switch(h.style_){case 1:if(g.LONG!=void 0){h=g.LONG;break a}case 2:if(g.NARROW!=void 0){h=g.NARROW;break a}default:h=g.SHORT;break a}h=void 0}return h?(new l6m("{DURATION_VALUE,plural,"+h+"}")).format({DURATION_VALUE:E}):""};
mP$.prototype.format=function(h){var E=[],g=h.years,Z=h.months,M=h.weeks,W=h.days,z=h.hours,c=h.minutes;h=h.seconds;g!=null&&E.push(UJ(this,g,"years"));Z!=null&&E.push(UJ(this,Z,"months"));M!=null&&E.push(UJ(this,M,"weeks"));W!=null&&E.push(UJ(this,W,"days"));z!=null&&E.push(UJ(this,z,"hours"));c!=null&&E.push(UJ(this,c,"minutes"));h!=null&&E.push(UJ(this,h,"seconds"));return(new a6D).format(E)};var AWC;
AWC={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 bSZ=function(){this.rdtfSymbols_=Tpf||AWC;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
bSZ.prototype.format=function(h,E){a:{E=bLf(this,E);switch(this.style_){case 2:if(E.NARROW!=void 0){E=E.NARROW;break a}case 1:if(E.SHORT!=void 0){E=E.SHORT;break a}default:E=E.LONG;break a}E=void 0}if(!this.alwaysNumeric_&&E&&E.R&&E.R[""+h])h=E.R[""+h];else if(E){var g=Math.abs(h);h=(new l6m("{N,plural,"+(h>0||h==0&&1/h==Infinity?E.F:E.P)+"}")).format({N:g})}else h="";return h};
var bLf=function(h,E){switch(E){default:case 0:return h.rdtfSymbols_.YEAR;case 1:return h.rdtfSymbols_.QUARTER;case 2:return h.rdtfSymbols_.MONTH;case 3:return h.rdtfSymbols_.WEEK;case 4:return h.rdtfSymbols_.DAY;case 5:return h.rdtfSymbols_.HOUR;case 6:return h.rdtfSymbols_.MINUTE;case 7:return h.rdtfSymbols_.SECOND}};var u8f=function(h,E,g,Z,M,W,z,c){this.x0=h;this.y0=E;this.x1=g;this.y1=Z;this.x2=M;this.y2=W;this.x3=z;this.y3=c};
u8f.prototype.clone=function(){return new u8f(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
u8f.prototype.equals=function(h){return this.x0==h.x0&&this.y0==h.y0&&this.x1==h.x1&&this.y1==h.y1&&this.x2==h.x2&&this.y2==h.y2&&this.x3==h.x3&&this.y3==h.y3};
var Quk=function(h,E){if(E==0)return h.x0;if(E==1)return h.x3;var g=mI(h.x0,h.x1,E),Z=mI(h.x1,h.x2,E);h=mI(h.x2,h.x3,E);g=mI(g,Z,E);Z=mI(Z,h,E);return mI(g,Z,E)},hzk=function(h,E){var g=(E-h.x0)/(h.x3-h.x0);
if(g<=0)return 0;if(g>=1)return 1;for(var Z=0,M=1,W=0,z=0;z<8;z++){W=Quk(h,g);var c=(Quk(h,g+1E-6)-W)/1E-6;if(Math.abs(W-E)<1E-6)return g;if(Math.abs(c)<1E-6)break;else W<E?Z=g:M=g,g-=(W-E)/c}for(z=0;Math.abs(W-E)>1E-6&&z<8;z++)W<E?(Z=g,g=(g+M)/2):(M=g,g=(g+Z)/2),W=Quk(h,g);return g};var Lf=function(){_.ms.call(this);this.JSC$11482_name_="closure_frame"+EPm++;this.iframesForDisposal_=[];gPl[this.JSC$11482_name_]=this},jz;
_.aV(Lf,_.ms);var gPl={},EPm=0,ZOl=function(h,E){var g=w2(h);zJf(E,function(Z,M){Array.isArray(Z)||(Z=[Z]);_.Tt(Z,function(W){W=g.JSC$9329_createDom("INPUT",{type:"hidden",name:M,value:W});h.appendChild(W)})})};
_.p=Lf.prototype;_.p.JSC$11484_form_=null;_.p.JSC$11484_iframe_=null;_.p.iframeName_=null;_.p.nextIframeId_=0;_.p.JSC$11484_active_=!1;_.p.complete_=!1;_.p.success_=!1;_.p.lastContent_=null;_.p.JSC$11484_lastErrorCode_=0;_.p.iframeDisposalTimer_=null;
_.p.send=function(h,E,g,Z){if(this.JSC$11484_active_)throw Error("te");h=new _.WX(h);E=E?E.toUpperCase():"GET";g&&_.Cr(h);jz||(jz=_.Kz("FORM"),jz.acceptCharset="utf-8",g=jz.style,g.position="absolute",g.visibility="hidden",g.top=g.left="-10px",g.width=g.height="10px",g.overflow="hidden",document.body.appendChild(jz));this.JSC$11484_form_=jz;E=="GET"&&ZOl(this.JSC$11484_form_,h.JSC$10033_queryData_);Z&&ZOl(this.JSC$11484_form_,Z);g=h.toString();g=SqV(g);Z=this.JSC$11484_form_;g=_.kr(vi(g));g!==void 0&&
(Z.action=g);this.JSC$11484_form_.method=E;Mdk(this);Wmf(this)};
_.p.abort=function(h){if(this.JSC$11484_active_){var E=dt(this);if(E)if(DD(E))E.removeAllListeners(void 0);else if(E=l0(E)){var g=0,Z;for(Z in E.listeners)for(var M=E.listeners[Z].concat(),W=0;W<M.length;++W)ls(M[W])&&++g}this.success_=this.JSC$11484_active_=this.complete_=!1;this.JSC$11484_lastErrorCode_=h||7;this.dispatchEvent("abort");p$F(this)}};
_.p.disposeInternal=function(){this.JSC$11484_active_&&this.abort();Lf.superClass_.disposeInternal.call(this);this.JSC$11484_iframe_&&GTf(this);Wmf(this);this.JSC$11484_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11484_form_=null;this.JSC$11484_lastErrorCode_=0;delete gPl[this.JSC$11482_name_]};
_.p.isComplete=function(){return this.complete_};
_.p.isSuccess=function(){return this.success_};
_.p.isActive=function(){return this.JSC$11484_active_};
_.p.getResponseText=function(){return this.lastContent_};
_.p.getLastError=function(){return _.K8D(this.JSC$11484_lastErrorCode_)};
var Mdk=function(h){h.JSC$11484_active_=!0;h.complete_=!1;h.JSC$11484_lastErrorCode_=0;h.iframeName_=h.JSC$11482_name_+"_"+(h.nextIframeId_++).toString(36);h.JSC$11484_iframe_=w2(h.JSC$11484_form_).JSC$9329_createDom("IFRAME",{name:h.iframeName_,id:h.iframeName_});var E=h.JSC$11484_iframe_.style;E.visibility="hidden";E.width=E.height="10px";E.display="none";_.PW?E.marginTop=E.marginLeft="-10px":(E.position="absolute",E.top=E.left="-10px");w2(h.JSC$11484_form_).JSC$9327_document_.body.appendChild(h.JSC$11484_iframe_);
E=h.iframeName_+"_inner";var g=q0f(h.JSC$11484_iframe_);if(document.baseURI){var Z=B3(E);Z='<head><base href="'+B3(document.baseURI)+'"></head><body><iframe id="'+Z+'" name="'+Z+'"></iframe>';Z=AL(Z)}else Z=B3(E),Z=AL('<body><iframe id="'+Z+'" name="'+Z+'"></iframe>');g.write(ux(Z));_.vK(g.getElementById(E),"load",h.onIframeLoaded_,!1,h);Z=N3("TEXTAREA",h.JSC$11484_form_);for(var M=0,W=Z.length;M<W;M++){var z=Z[M].value;wcm(Z[M])!=z&&(_.kS(Z[M],z),Z[M].value=z)}Z=g.importNode(h.JSC$11484_form_,!0);
Z.target=E;Z.action=h.JSC$11484_form_.action;g.body.appendChild(Z);M=N3("SELECT",h.JSC$11484_form_);W=N3("SELECT",Z);z=0;for(var c=M.length;z<c;z++)for(var I=N3("OPTION",M[z]),B=N3("OPTION",W[z]),U=0,L=I.length;U<L;U++)B[U].selected=I[U].selected;M=N3("INPUT",h.JSC$11484_form_);W=N3("INPUT",Z);z=0;for(c=M.length;z<c;z++)if(M[z].type=="file"&&M[z].value!=W[z].value){h.JSC$11484_form_.target=E;Z=h.JSC$11484_form_;break}try{h.errorHandled_=!1,Z.submit(),g.close(),_.RV&&setTimeout(h.testForFirefoxSilentError_.bind(h),
250)}catch(d){_.r6(g.getElementById(E),"load",h.onIframeLoaded_,!1,h),g.close(),Cf(h,2)}};
Lf.prototype.onIframeLoaded_=function(){_.r6(dt(this),"load",this.onIframeLoaded_,!1,this);try{var h=this.JSC$11484_iframe_?q0f(dt(this)):null;this.complete_=!0;this.JSC$11484_active_=!1;try{var E=h.body;this.lastContent_=E.textContent||E.innerText}catch(M){var g=1}var Z;g||typeof this.errorChecker_!="function"||(Z=this.errorChecker_(h))&&(g=4);g?Cf(this,g):(this.success_=!0,this.JSC$11484_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),p$F(this))}catch(M){Cf(this,1)}};
var Cf=function(h,E){h.errorHandled_||(h.success_=!1,h.JSC$11484_active_=!1,h.complete_=!0,h.JSC$11484_lastErrorCode_=E,h.dispatchEvent("complete"),h.dispatchEvent("error"),p$F(h),h.errorHandled_=!0)},p$F=function(h){GTf(h);
Wmf(h);h.JSC$11484_form_=null;h.dispatchEvent("ready")},GTf=function(h){var E=h.JSC$11484_iframe_;
E&&(E.onreadystatechange=null,E.onload=null,E.onerror=null,h.iframesForDisposal_.push(E));h.iframeDisposalTimer_&&(clearTimeout(h.iframeDisposalTimer_),h.iframeDisposalTimer_=null);_.RV?h.iframeDisposalTimer_=setTimeout(h.disposeIframes_.bind(h),2E3):h.disposeIframes_();h.JSC$11484_iframe_=null;h.iframeName_=null};
Lf.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var h=this.iframesForDisposal_.pop();_.f8(h)}};
var Wmf=function(h){h.JSC$11484_form_&&h.JSC$11484_form_==jz&&_.XV(h.JSC$11484_form_)},dt=function(h){return h.JSC$11484_iframe_?q0f(h.JSC$11484_iframe_).getElementById(h.iframeName_+"_inner"):null};
Lf.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11484_active_){var h=this.JSC$11484_iframe_?q0f(dt(this)):null;h&&!eu$(h,"documentUri")?(_.r6(dt(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Cf(this,3):Cf(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.JX=function(h){return h=="\r"||h=="\n"||h==" "||h=="\t"};var zzn;_.ez=function(h){this.errorMessage_=null;this.result_=[];this.JSC$11486_buffer_="";this.stack_=[];this.JSC$11486_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!h||!h.deliverMessageAsRawString)};
zzn={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};_.ez.prototype.isInputValid=function(){return this.streamState_!=3};
_.ez.prototype.done=function(){return this.streamState_===2};
var qO=function(h,E,g){h.streamState_=3;h.errorMessage_="The stream is broken @"+h.JSC$11486_pos_+"/"+g+". With input:\n"+E;throw Error(h.errorMessage_);};
_.ez.prototype.acceptsBinaryInput=function(){return!1};
_.ez.prototype.parse=function(h){function E(){for(;d<h.length;)if(_.JX(h[d]))d++,W.JSC$11486_pos_++;else break;return d<B}
function g(){for(var q;;){q=h[d++];if(!q)break;W.JSC$11486_pos_++;switch(W.state_){case I.INIT:q==="{"?W.state_=I.OBJECT_OPEN:q==="["?W.state_=I.ARRAY_OPEN:_.JX(q)||qO(W,h,d);continue;case I.KEY_START:case I.OBJECT_OPEN:if(_.JX(q))continue;if(W.state_===I.KEY_START)z.push(I.KEY_END);else if(q==="}"){M("{}");W.state_=Z();continue}else z.push(I.OBJECT_END);q==='"'?W.state_=I.STRING:qO(W,h,d);continue;case I.KEY_END:case I.OBJECT_END:if(_.JX(q))continue;q===":"?(W.state_===I.OBJECT_END&&(z.push(I.OBJECT_END),
W.depth_++),W.state_=I.VALUE):q==="}"?(W.depth_--,M(),W.state_=Z()):q===","?(W.state_===I.OBJECT_END&&z.push(I.OBJECT_END),W.state_=I.KEY_START):qO(W,h,d);continue;case I.ARRAY_OPEN:case I.VALUE:if(_.JX(q))continue;if(W.state_===I.ARRAY_OPEN)if(W.depth_++,W.state_=I.VALUE,q==="]"){W.depth_--;if(W.depth_===0){W.state_=I.ARRAY_END;return}M("[]");W.state_=Z();continue}else z.push(I.ARRAY_END);q==='"'?W.state_=I.STRING:q==="{"?W.state_=I.OBJECT_OPEN:q==="["?W.state_=I.ARRAY_OPEN:q==="t"?W.state_=I.TRUE1:
q==="f"?W.state_=I.FALSE1:q==="n"?W.state_=I.NULL1:q!=="-"&&("0123456789".indexOf(q)!==-1?W.state_=I.NUM_DIGIT:qO(W,h,d));continue;case I.ARRAY_END:if(q===",")z.push(I.ARRAY_END),W.state_=I.VALUE,W.depth_===1&&(L=d);else if(q==="]"){W.depth_--;if(W.depth_===0)return;M();W.state_=Z()}else if(_.JX(q))continue;else qO(W,h,d);continue;case I.STRING:var w=d;a:for(;;){for(;W.unicodeCount_>0;)if(q=h[d++],W.unicodeCount_===4?W.unicodeCount_=0:W.unicodeCount_++,!q)break a;if(q==='"'&&!W.slashed_){W.state_=
Z();break}if(q==="\\"&&!W.slashed_&&(W.slashed_=!0,q=h[d++],!q))break;if(W.slashed_)if(W.slashed_=!1,q==="u"&&(W.unicodeCount_=1),q=h[d++])continue;else break;c.lastIndex=d;q=c.exec(h);if(!q){d=h.length+1;break}d=q.index+1;q=h[q.index];if(!q)break}W.JSC$11486_pos_+=d-w;continue;case I.TRUE1:if(!q)continue;q==="r"?W.state_=I.TRUE2:qO(W,h,d);continue;case I.TRUE2:if(!q)continue;q==="u"?W.state_=I.TRUE3:qO(W,h,d);continue;case I.TRUE3:if(!q)continue;q==="e"?W.state_=Z():qO(W,h,d);continue;case I.FALSE1:if(!q)continue;
q==="a"?W.state_=I.FALSE2:qO(W,h,d);continue;case I.FALSE2:if(!q)continue;q==="l"?W.state_=I.FALSE3:qO(W,h,d);continue;case I.FALSE3:if(!q)continue;q==="s"?W.state_=I.FALSE4:qO(W,h,d);continue;case I.FALSE4:if(!q)continue;q==="e"?W.state_=Z():qO(W,h,d);continue;case I.NULL1:if(!q)continue;q==="u"?W.state_=I.NULL2:qO(W,h,d);continue;case I.NULL2:if(!q)continue;q==="l"?W.state_=I.NULL3:qO(W,h,d);continue;case I.NULL3:if(!q)continue;q==="l"?W.state_=Z():qO(W,h,d);continue;case I.NUM_DECIMAL_POINT:q===
"."?W.state_=I.NUM_DIGIT:qO(W,h,d);continue;case I.NUM_DIGIT:if("0123456789.eE+-".indexOf(q)!==-1)continue;else d--,W.JSC$11486_pos_--,W.state_=Z();continue;default:qO(W,h,d)}}}
function Z(){var q=z.pop();return q!=null?q:I.VALUE}
function M(q){W.depth_>1||(q||(q=L===-1?W.JSC$11486_buffer_+h.substring(U,d):h.substring(L,d)),W.deliverMessageAsRawString_?W.result_.push(q):W.result_.push(JSON.parse(q)),L=d)}
for(var W=this,z=W.stack_,c=W.stringInputPattern_,I=zzn,B=h.length,U=0,L=-1,d=0;d<B;)switch(W.streamState_){case 3:return qO(W,h,d),null;case 2:return E()&&qO(W,h,d),null;case 0:if(E()){var C=h[d++];W.JSC$11486_pos_++;if(C==="["){W.streamState_=1;U=d;W.state_=I.ARRAY_OPEN;continue}else qO(W,h,d)}return null;case 1:return g(),W.depth_===0&&W.state_==I.ARRAY_END?(W.streamState_=2,W.JSC$11486_buffer_=h.substring(d)):W.JSC$11486_buffer_=L===-1?W.JSC$11486_buffer_+h.substring(U):h.substring(L),W.result_.length>
0?(C=W.result_,W.result_=[],C):null}return null};_.aV(_.UH,DV);LQ.prototype.getValue=function(){return this.JSC$11494_value_};
LQ.prototype.clone=function(){return new LQ(this.JSC$11494_key_,this.JSC$11494_value_)};var ff=function(h){this.nodes_=[];if(h)a:{if(h instanceof ff){var E=h.getKeys();h=h.getValues();if(this.getCount()<=0){for(var g=this.nodes_,Z=0;Z<E.length;Z++)g.push(new LQ(E[Z],h[Z]));break a}}else E=_.Kt.getKeys(h),h=_.Kt.getValues(h);for(g=0;g<E.length;g++)this.insert(E[g],h[g])}};
_.p=ff.prototype;_.p.insert=function(h,E){var g=this.nodes_;g.push(new LQ(h,E));h=g.length-1;E=this.nodes_;for(g=E[h];h>0;){var Z=h-1>>1;if(E[Z].JSC$11494_key_>g.JSC$11494_key_)E[h]=E[Z],h=Z;else break}E[h]=g};
_.p.remove=function(){var h=this.nodes_,E=h.length,g=h[0];if(!(E<=0)){if(E==1)h.length=0;else{h[0]=h.pop();h=0;E=this.nodes_;for(var Z=E.length,M=E[h];h<Z>>1;){var W=h*2+1,z=h*2+2;W=z<Z&&E[z].JSC$11494_key_<E[W].JSC$11494_key_?z:W;if(E[W].JSC$11494_key_>M.JSC$11494_key_)break;E[h]=E[W];h=W}E[h]=M}return g.getValue()}};
_.p.peek=function(){var h=this.nodes_;if(h.length!=0)return h[0].getValue()};
_.p.getValues=function(){for(var h=this.nodes_,E=[],g=h.length,Z=0;Z<g;Z++)E.push(h[Z].getValue());return E};
_.p.getKeys=function(){for(var h=this.nodes_,E=[],g=h.length,Z=0;Z<g;Z++)E.push(h[Z].JSC$11494_key_);return E};
_.p.containsValue=function(h){return this.nodes_.some(function(E){return E.getValue()==h})};
_.p.containsKey=function(h){return this.nodes_.some(function(E){return E.JSC$11494_key_==h})};
_.p.clone=function(){return new ff(this)};
_.p.getCount=function(){return this.nodes_.length};
_.p.isEmpty=function(){return this.nodes_.length===0};
_.p.clear=function(){this.nodes_.length=0};_.NO=function(h,E){this.JSC$11500_map_={};this.JSC$11500_keys_=[];this.version_=this.size=0;var g=arguments.length;if(g>1){if(g%2)throw Error("ka");for(var Z=0;Z<g;Z+=2)this.set(arguments[Z],arguments[Z+1])}else h&&this.addAll(h)};
_.p=_.NO.prototype;_.p.getCount=function(){return this.size};
_.p.getValues=function(){tX(this);for(var h=[],E=0;E<this.JSC$11500_keys_.length;E++)h.push(this.JSC$11500_map_[this.JSC$11500_keys_[E]]);return h};
_.p.getKeys=function(){tX(this);return this.JSC$11500_keys_.concat()};
_.p.containsKey=function(h){return this.has(h)};
_.p.has=function(h){return Sz(this.JSC$11500_map_,h)};
_.p.containsValue=function(h){for(var E=0;E<this.JSC$11500_keys_.length;E++){var g=this.JSC$11500_keys_[E];if(Sz(this.JSC$11500_map_,g)&&this.JSC$11500_map_[g]==h)return!0}return!1};
_.p.equals=function(h,E){if(this===h)return!0;if(this.size!=h.getCount())return!1;E=E||aCk;tX(this);for(var g,Z=0;g=this.JSC$11500_keys_[Z];Z++)if(!E(this.get(g),h.get(g)))return!1;return!0};
var aCk=function(h,E){return h===E};
_.NO.prototype.isEmpty=function(){return this.size==0};
_.NO.prototype.clear=function(){this.JSC$11500_map_={};this.version_=this.size=this.JSC$11500_keys_.length=0};
_.NO.prototype.remove=function(h){return this.delete(h)};
_.NO.prototype.delete=function(h){return Sz(this.JSC$11500_map_,h)?(delete this.JSC$11500_map_[h],--this.size,this.version_++,this.JSC$11500_keys_.length>2*this.size&&tX(this),!0):!1};
var tX=function(h){if(h.size!=h.JSC$11500_keys_.length){for(var E=0,g=0;E<h.JSC$11500_keys_.length;){var Z=h.JSC$11500_keys_[E];Sz(h.JSC$11500_map_,Z)&&(h.JSC$11500_keys_[g++]=Z);E++}h.JSC$11500_keys_.length=g}if(h.size!=h.JSC$11500_keys_.length){E={};for(Z=g=0;g<h.JSC$11500_keys_.length;){var M=h.JSC$11500_keys_[g];Sz(E,M)||(h.JSC$11500_keys_[Z++]=M,E[M]=1);g++}h.JSC$11500_keys_.length=Z}};
_.p=_.NO.prototype;_.p.get=function(h,E){return Sz(this.JSC$11500_map_,h)?this.JSC$11500_map_[h]:E};
_.p.set=function(h,E){Sz(this.JSC$11500_map_,h)||(this.size+=1,this.JSC$11500_keys_.push(h),this.version_++);this.JSC$11500_map_[h]=E};
_.p.addAll=function(h){if(h instanceof _.NO)for(var E=h.getKeys(),g=0;g<E.length;g++)this.set(E[g],h.get(E[g]));else for(E in h)this.set(E,h[E])};
_.p.forEach=function(h,E){for(var g=this.getKeys(),Z=0;Z<g.length;Z++){var M=g[Z],W=this.get(M);h.call(E,W,M,this)}};
_.p.clone=function(){return new _.NO(this)};
_.p.transpose=function(){for(var h=new _.NO,E=0;E<this.JSC$11500_keys_.length;E++){var g=this.JSC$11500_keys_[E];h.set(this.JSC$11500_map_[g],g)}return h};
_.p.keys=function(){return Naf(this.__iterator__(!0)).toEs6()};
_.p.values=function(){return Naf(this.__iterator__(!1)).toEs6()};
_.p.entries=function(){var h=this;return VlF(this.keys(),function(E){return[E,h.get(E)]})};
_.p.__iterator__=function(h){tX(this);var E=0,g=this.version_,Z=this,M=new Cb;M.next=function(){if(g!=Z.version_)throw Error("ue");if(E>=Z.JSC$11500_keys_.length)return JB;var W=Z.JSC$11500_keys_[E++];return eb(h?W:Z.JSC$11500_map_[W])};
return M};
var Sz=function(h,E){return Object.prototype.hasOwnProperty.call(h,E)};var iOl=function(){this.JSC$11503_map_=new _.NO;this.JSC$11503_head_=new c7B("");this.JSC$11503_head_.next=this.JSC$11503_head_.prev=this.JSC$11503_head_},oPk=function(h,E){if(E=h.JSC$11503_map_.get(E))E.remove(),h.insert_(E);
return E};
_.p=iOl.prototype;_.p.get=function(h,E){return(h=oPk(this,h))?h.value:E};
_.p.set=function(h,E){var g=oPk(this,h);g?g.value=E:(g=new c7B(h,E),this.JSC$11503_map_.set(h,g),this.insert_(g))};
_.p.peek=function(){return this.JSC$11503_head_.next.value};
_.p.shift=function(){return ICC(this,this.JSC$11503_head_.next)};
_.p.pop=function(){return ICC(this,this.JSC$11503_head_.prev)};
_.p.remove=function(h){return(h=this.JSC$11503_map_.get(h))?(this.removeNode(h),!0):!1};
_.p.removeNode=function(h){h.remove();this.JSC$11503_map_.remove(h.key)};
_.p.getCount=function(){return this.JSC$11503_map_.getCount()};
_.p.isEmpty=function(){return this.JSC$11503_map_.isEmpty()};
_.p.getKeys=function(){return this.map(function(h,E){return E})};
_.p.getValues=function(){return this.map(function(h){return h})};
_.p.contains=function(h){return this.some(function(E){return E==h})};
_.p.containsKey=function(h){return this.JSC$11503_map_.containsKey(h)};
_.p.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11503_head_.prev)};
_.p.forEach=function(h,E){for(var g=this.JSC$11503_head_.next;g!=this.JSC$11503_head_;g=g.next)h.call(E,g.value,g.key,this)};
_.p.map=function(h,E){for(var g=[],Z=this.JSC$11503_head_.next;Z!=this.JSC$11503_head_;Z=Z.next)g.push(h.call(E,Z.value,Z.key,this));return g};
_.p.some=function(h,E){for(var g=this.JSC$11503_head_.next;g!=this.JSC$11503_head_;g=g.next)if(h.call(E,g.value,g.key,this))return!0;return!1};
_.p.every=function(h,E){for(var g=this.JSC$11503_head_.next;g!=this.JSC$11503_head_;g=g.next)if(!h.call(E,g.value,g.key,this))return!1;return!0};
_.p.insert_=function(h){h.next=this.JSC$11503_head_.next;h.prev=this.JSC$11503_head_;this.JSC$11503_head_.next=h;for(h.next.prev=h;this.getCount()>100;)this.removeNode(this.JSC$11503_head_.prev)};
var ICC=function(h,E){h.JSC$11503_head_!=E&&h.removeNode(E);return E.value},c7B=function(h,E){this.key=h;
this.value=E};
c7B.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var RzD=function(){ff.apply(this,arguments)};
_.f(RzD,ff);RzD.prototype.enqueue=function(h,E){this.insert(h,E)};var PFC=function(){var h=Error();h.name="SecurityError";throw h;},QE4=function(){return{get opener(){return null},
get closed(){return!0},get location(){PFC()},get document(){PFC()},postMessage:function(){},
close:function(){},
focus:function(){}}};var bzd={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 hPx={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 Buk={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(hPx).join("|");var UiD=function(){function h(c){c.substr(-1)!==";"&&(c+=";");return z(c)}
for(var E=Object.keys(Buk).sort(QOO),g=Object.keys(hPx).sort(QOO),Z=0,M=0;Z<g.length;Z++)E[M]===g[Z]?(g[Z]+=";?",M++):g[Z]+=";";var W=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),z=EDx();return function(c){return String(c).replace(W,h)}}();/*

 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 LmH={};var j9m=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"),diF=/[\\&]/,CFM=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),J7A=RegExp('[&<>"]',"g"),ezD=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),qLD=function(h){return h.charCodeAt(0)===92?h.charAt(1):UiD(h)},fCD=function(h){return diF.test(h)?h.replace(CFM,qLD):h},Num=function(h){try{var E,g="";
if(typeof M!=="string"){var Z=M;var M=";/?:@&=+$,-_.!~*'()#"}typeof Z==="undefined"&&(Z=!0);var W,z=LmH[M];if(z)var c=z;else{z=LmH[M]=[];for(W=0;W<128;W++){var I=String.fromCharCode(W);/^[0-9a-z]$/i.test(I)?z.push(I):z.push("%"+("0"+W.toString(16).toUpperCase()).slice(-2))}for(W=0;W<M.length;W++)z[M.charCodeAt(W)]=M[W];c=z}var B=0;for(E=h.length;B<E;B++){var U=h.charCodeAt(B);if(Z&&U===37&&B+2<E&&/^[0-9a-f]{2}$/i.test(h.slice(B+1,B+3)))g+=h.slice(B,B+3),B+=2;else if(U<128)g+=c[U];else if(U>=55296&&
U<=57343){if(U>=55296&&U<=56319&&B+1<E){var L=h.charCodeAt(B+1);if(L>=56320&&L<=57343){g+=encodeURIComponent(h[B]+h[B+1]);B++;continue}}g+="%EF%BF%BD"}else g+=encodeURIComponent(h[B])}return g}catch(d){return h}},tdk=function(h){switch(h){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return h}},xJ=function(h,E){return J7A.test(h)?E?h.replace(ezD,tdk):h.replace(J7A,tdk):h};/*

 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 wt;if(String.fromCodePoint)wt=function(h){try{return String.fromCodePoint(h)}catch(E){if(E instanceof RangeError)return String.fromCharCode(65533);throw E;}};
else{var SLk=String.fromCharCode,xiH=Math.floor;wt=function(){var h=[],E=-1,g=arguments.length;if(!g)return"";for(var Z="";++E<g;){var M=Number(arguments[E]);if(!isFinite(M)||M<0||M>1114111||xiH(M)!==M)return String.fromCharCode(65533);if(M<=65535)h.push(M);else{M-=65536;var W=(M>>10)+55296;M=M%1024+56320;h.push(W,M)}if(E+1===g||h.length>16384)Z+=SLk.apply(null,h),h.length=0}return Z}};var w$f=function(h){this.root=this.current=h;this.entering=!0};
w$f.prototype.next=function(){var h=this.current,E=this.entering;if(h===null)return null;a:switch(h._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 g=!0;break a;default:g=!1}E&&g?h._firstChild?(this.current=h._firstChild,this.entering=!0):this.entering=!1:h===this.root?this.current=null:h._next===null?(this.current=
h._parent,this.entering=!1):(this.current=h._next,this.entering=!0);return{entering:E,node:h}};
var JQ=function(h,E){this._type=h;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=E;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};
JQ.prototype.appendChild=function(h){h.unlink();h._parent=this;this._lastChild?(this._lastChild._next=h,h._prev=this._lastChild):this._firstChild=h;this._lastChild=h};
JQ.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var Dil=function(h,E){E.unlink();E._next=h._next;E._next&&(E._next._prev=E);E._prev=h;h._next=E;E._parent=h._parent;E._next||(E._parent._lastChild=E)};
JQ.prototype.insertBefore=function(h){h.unlink();h._prev=this._prev;h._prev&&(h._prev._next=h);h._next=this;this._prev=h;h._parent=this._parent;h._prev||(h._parent._firstChild=h)};
_.ze.Object.defineProperties(JQ.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(h){this._literal=h}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(h){this._destination=h}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(h){this._title=h}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(h){this._info=h}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(h){this._level=h}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(h){this._listData.type=h}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(h){this._listData.tight=h}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(h){this._listData.start=h}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(h){this._onEnter=h}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(h){this._onExit=h}}});var gDO=/[ \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,
ZAz={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 lCF=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]/),
r7C=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),mil=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),vPk=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),HOB=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),$il=/`+/,Kml=/^`+/,OOD=/\.\.\./g,nPF=/--+/g,X$M=/^<([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])?)*)>/,
YLk=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,s9m=/^ *(?:\n *)?/,VdD=/^[ \t\n\x0b\x0c\x0d]/,kTf=/[ \t\n\x0b\x0c\x0d]+/g,y7n=/^\s/,Fmf=/ *$/,A7l=/^ */,Tul=/^ *(?:\n|$)/,bOm=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),uNf=/^[^\n`\[\]\\!<&*_'"]+/m,DU=function(h){var E=new JQ("text");E._literal=h;return E},lP=function(h){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=h||{}};
lP.prototype.match=function(h){h=h.exec(this.subject.slice(this.pos));if(h===null)return null;this.pos+=h.index+h[0].length;return h[0]};
lP.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var rt=function(h){h.match(s9m);return!0},Q9f=function(h,E,g){var Z=0;
var M=h.pos;if(E===39||E===34)Z++,h.pos++;else for(;h.peek()===E;)Z++,h.pos++;if(Z===0)Z=null;else{var W=M===0?"\n":h.subject.charAt(M-1);var z=h.peek();z=z===-1?"\n":wt(z);var c=y7n.test(z);z=lCF.test(z);var I=y7n.test(W);var B=lCF.test(W);W=!c&&!(z&&!I&&!B);c=!I&&!(B&&!c&&!z);E===95?(I=W&&(!c||B),z=c&&(!W||z)):(I=E===39||E===34?W&&!c:W,z=c);h.pos=M;Z={numdelims:Z,can_open:I,can_close:z}}if(!Z)return!1;M=Z.numdelims;z=h.pos;h.pos+=M;z=E===39?"\u2019":E===34?"\u201c":h.subject.slice(z,h.pos);z=DU(z);
g.appendChild(z);h.delimiters={cc:E,numdelims:M,origdelims:M,node:z,previous:h.delimiters,next:null,can_open:Z.can_open,can_close:Z.can_close};h.delimiters.previous!==null&&(h.delimiters.previous.next=h.delimiters);return!0},hnF=function(h,E){E.previous!==null&&(E.previous.next=E.next);
E.next===null?h.delimiters=E.previous:E.next.previous=E.previous},Exn=function(h,E){var g,Z,M=[],W=!1;
M[95]=E;M[42]=E;M[39]=E;M[34]=E;for(g=h.delimiters;g!==null&&g.previous!==E;)g=g.previous;for(;g!==null;){var z=g.cc;if(g.can_close){var c=g.previous;for(Z=!1;c!==null&&c!==E&&c!==M[z];){W=(g.can_open||c.can_close)&&(c.origdelims+g.origdelims)%3===0;if(c.cc===g.cc&&c.can_open&&!W){Z=!0;break}c=c.previous}var I=g;if(z===42||z===95)if(Z){var B=g.numdelims>=2&&c.numdelims>=2?2:1;var U=c.node;var L=g.node;c.numdelims-=B;g.numdelims-=B;U._literal=U._literal.slice(0,U._literal.length-B);L._literal=L._literal.slice(0,
L._literal.length-B);var d=new JQ(B===1?"emph":"strong");for(B=U._next;B&&B!==L;){var C=B._next;B.unlink();d.appendChild(B);B=C}Dil(U,d);B=c;C=g;B.next!==C&&(B.next=C,C.previous=B);c.numdelims===0&&(U.unlink(),hnF(h,c));g.numdelims===0&&(L.unlink(),c=g.next,hnF(h,g),g=c)}else g=g.next;else z===39?(g.node._literal="\u2019",Z&&(c.node._literal="\u2018"),g=g.next):z===34&&(g.node._literal="\u201d",Z&&(c.node.literal="\u201c"),g=g.next);Z||W||(M[z]=I.previous,I.can_open||hnF(h,I))}else g=g.next}for(;h.delimiters!==
null&&h.delimiters!==E;)hnF(h,h.delimiters)},gxD=function(h){h=h.match(r7C);
return h===null?null:fCD(h.substr(1,h.length-2))},Z4l=function(h){var E=h.match(mil);
if(E===null){E=h.pos;for(var g=0,Z;(Z=h.peek())!==-1;)if(Z===92)h.pos+=1,h.peek()!==-1&&(h.pos+=1);else if(Z===40)h.pos+=1,g+=1;else if(Z===41)if(g<1)break;else h.pos+=1,--g;else if(VdD.exec(wt(Z))!==null)break;else h.pos+=1;E=h.subject.substr(E,h.pos-E);return Num(fCD(E))}return Num(fCD(E.substr(1,E.length-2)))},Mvf=function(h){h=h.match(bOm);
return h===null||h.length>1001?0:h.length},Wzf=function(h,E,g,Z){h.brackets!==null&&(h.brackets.bracketAfter=!0);
h.brackets={node:E,previous:h.brackets,previousDelimiter:h.delimiters,index:g,image:Z,active:!0}},p3H=function(h,E){var g;
return(g=h.match(uNf))?(h.options.smart?E.appendChild(DU(g.replace(OOD,"\u2026").replace(nPF,function(Z){var M=0,W=0;Z.length%3===0?W=Z.length/3:Z.length%2===0?M=Z.length/2:Z.length%3===2?(M=1,W=(Z.length-2)/3):(M=2,W=(Z.length-4)/3);Z="";var z;for(z=0;z<W;z++)Z+="\u2014";for(z=0;z<M;z++)Z+="\u2013";return Z}))):E.appendChild(DU(g)),!0):!1},GDf=function(h,E,g){h.subject=E;
h.pos=0;E=h.pos;var Z=Mvf(h);if(Z===0)return 0;var M=h.subject.substr(0,Z);if(h.peek()===58)h.pos++;else return h.pos=E,0;rt(h);Z=Z4l(h);if(Z===null||Z.length===0)return h.pos=E,0;var W=h.pos;rt(h);var z=gxD(h);z===null&&(z="",h.pos=W);var c=!0;h.match(Tul)===null&&(z===""?c=!1:(z="",h.pos=W,c=h.match(Tul)!==null));if(!c)return h.pos=E,0;M=MJN(M);if(M==="")return h.pos=E,0;g[M]||(g[M]={destination:Z,title:z});return h.pos-E},znD=function(h,E){var g,Z=h.peek();
if(Z===-1)return!1;switch(Z){case 10:h.pos+=1;if((g=E._lastChild)&&g.type==="text"&&g._literal[g._literal.length-1]===" "){var M=g._literal[g._literal.length-2]===" ";g._literal=g._literal.replace(Fmf,"");E.appendChild(new JQ(M?"linebreak":"softbreak"))}else E.appendChild(new JQ("softbreak"));h.match(A7l);g=!0;break;case 92:g=h.subject;h.pos+=1;h.peek()===10?(h.pos+=1,g=new JQ("linebreak"),E.appendChild(g)):vPk.test(g.charAt(h.pos))?(E.appendChild(DU(g.charAt(h.pos))),h.pos+=1):E.appendChild(DU("\\"));
g=!0;break;case 96:a:if(g=h.match(Kml),g===null)g=!1;else{M=h.pos;for(var W;(W=h.match($il))!==null;)if(W===g){W=new JQ("code");W._literal=h.subject.slice(M,h.pos-g.length).trim().replace(kTf," ");E.appendChild(W);g=!0;break a}h.pos=M;E.appendChild(DU(g));g=!0}break;case 42:case 95:g=Q9f(h,Z,E);break;case 39:case 34:g=h.options.smart&&Q9f(h,Z,E);break;case 91:g=h.pos;h.pos+=1;M=DU("[");E.appendChild(M);Wzf(h,M,g,!1);g=!0;break;case 33:g=h.pos;h.pos+=1;h.peek()===91?(h.pos+=1,M=DU("!["),E.appendChild(M),
Wzf(h,M,g+1,!0)):E.appendChild(DU("!"));g=!0;break;case 93:var z,c=!1,I;h.pos+=1;var B=h.pos;M=h.brackets;if(M===null)E.appendChild(DU("]"));else if(M.active){g=M.image;var U=h.pos;h.peek()===40&&(h.pos++,rt(h)&&(W=Z4l(h))!==null&&rt(h)&&(VdD.test(h.subject.charAt(h.pos-1))&&(z=gxD(h)),1)&&rt(h)&&h.peek()===41?(h.pos+=1,c=!0):h.pos=U);if(!c){var L=h.pos,d=Mvf(h);d>2?I=h.subject.slice(L,L+d):M.bracketAfter||(I=h.subject.slice(M.index,B));d===0&&(h.pos=U);I&&(I=h.refmap[MJN(I)])&&(W=I.destination,z=
I.title,c=!0)}if(c){B=new JQ(g?"image":"link");B._destination=W;B._title=z||"";for(W=M.node._next;W;)z=W._next,W.unlink(),B.appendChild(W),W=z;E.appendChild(B);Exn(h,M.previousDelimiter);h.brackets=h.brackets.previous;M.node.unlink();if(!g)for(M=h.brackets;M!==null;)M.image||(M.active=!1),M=M.previous}else h.brackets=h.brackets.previous,h.pos=B,E.appendChild(DU("]"))}else E.appendChild(DU("]")),h.brackets=h.brackets.previous;g=!0;break;case 60:(g=h.match(X$M))?(g=g.slice(1,g.length-1),M=new JQ("link"),
M._destination=Num("mailto:"+g),M._title="",M.appendChild(DU(g)),E.appendChild(M),g=!0):(g=h.match(YLk))?(g=g.slice(1,g.length-1),M=new JQ("link"),M._destination=Num(g),M._title="",M.appendChild(DU(g)),E.appendChild(M),g=!0):g=!1;g||(g=h.match(j9m),g===null?g=!1:(M=new JQ("html_inline"),M._literal=g,E.appendChild(M),g=!0));break;case 38:(g=h.match(HOB))?(E.appendChild(DU(UiD(g))),g=!0):g=!1;break;default:g=p3H(h,E)}g||(h.pos+=1,E.appendChild(DU(wt(Z))));return!0};
lP.prototype.parseInlines=function(h){this.subject=h._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;znD(this,h););h._string_content=null;Exn(this,null)};
lP.prototype.parse=lP.prototype.parseInlines;var adl=[/./,/^<(?: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")],cUf=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],i4F=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,oxC=/^[#`~*+_=<>0-9-\|]|\|/,IdM=/[^ \t\f\v\r\n]/,Rnn=/^[*+-]/,PvH=/^(\d{1,9})([.)])/,B5f=/^#{1,6}(?:[ \t]+|$)/,UIM=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,LzA=/^(?:`{3,}|~{3,})(?= *$)/,jJM=/^(?:=+|-+)[ \t]*$/,dIl=/\r\n|\n|\r/,pQx=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,GcW=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Cvl={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(h){return h!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(h,E){for(h=E._firstChild;h;){if(WsZ(h)&&h._next){E._listData.tight=!1;break}for(var g=h._firstChild;g;){if(WsZ(g)&&(h._next||g._next)){E._listData.tight=!1;break}g=g._next}h=h._next}},
canContain:function(h){return h==="item"},
acceptsLines:!1},block_quote:{continue:function(h){var E=h.currentLine;if(h.indented||dA(E,h.nextNonspace)!==62)return 1;md(h);vU(h,1,!1);jN(dA(E,h.offset))&&vU(h,1,!0);return 0},
finalize:function(){},
canContain:function(h){return h!=="item"},
acceptsLines:!1},item:{continue:function(h,E){if(h.blank){if(E._firstChild==null)return 1;md(h)}else if(h.indent>=E._listData.markerOffset+E._listData.padding)vU(h,E._listData.markerOffset+E._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(h){return h!=="item"&&!zPq(h)},
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(h,E){var g=h.currentLine,Z=h.indent;if(E._isFenced){if((Z=Z<=3&&g.charAt(h.nextNonspace)===E._fenceChar&&g.slice(h.nextNonspace).match(LzA))&&Z[0].length>=E._fenceLength)return h.finalize(E,h.lineNumber),2;for(E=E._fenceOffset;E>0&&jN(dA(g,h.offset));)vU(h,1,!0),E--}else if(Z>=4)vU(h,4,!0);else if(h.blank)md(h);else return 1;return 0},
finalize:function(h,E){if(E._isFenced){var g=E._string_content,Z=g.indexOf("\n");h=g.slice(0,Z);g=g.slice(Z+1);E.info=fCD(h.trim());E._literal=g}else E._literal=E._string_content.replace(/(\n *)+$/,"\n");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(h,E){return!h.blank||E._htmlBlockType!==6&&E._htmlBlockType!==7?0:1},
finalize:function(h,E){E._literal=E._string_content.replace(/(\n *)+$/,"");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(h){return h.blank?1:0},
finalize:function(h,E){for(var g,Z=!1;dA(E._string_content,0)===91&&(g=GDf(h.inlineParser,E._string_content,h.refmap));)E._string_content=E._string_content.slice(g),Z=!0;Z&&!IdM.test(E._string_content)&&E.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(h){return CQ(h.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(h){return h=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(h,E){if(!E._rowIsDelimiter){h=E._isHeader?"th":"td";for(var g=E._parent._tableColumns,Z=E._string_content,M=0,W="",z,c=E._sourcepos[0][0];M<Z.length;){switch(Z[M]){case "|":z&&(z._string_content=W.trim(),W="",z=null,g--,g<=0&&(M=Z.length));break;default:if(!z){z=new JQ(h,[[c,M],[c,M]]);var I=E._parent._columnAlignment,B=E._parent._tableColumns-g;I&&B<=I.length&&B>=0&&(z._alignment=I[B]);E.appendChild(z)}W+=Z[M];z._sourcepos[1][1]=M}M++}z&&(z._string_content=W.trim());E._string_content=
""}},
canContain:function(h){return h!=="row"},
acceptsLines:!1}},JUH=[function(h){if(h.indented||dA(h.currentLine,h.nextNonspace)!==62)return 0;md(h);vU(h,1,!1);jN(dA(h.currentLine,h.offset))&&vU(h,1,!0);HU(h);h.addChild("block_quote",h.nextNonspace);return 1},
function(h){var E;if(!h.indented&&(E=h.currentLine.slice(h.nextNonspace).match(B5f))){md(h);vU(h,E[0].length,!1);HU(h);var g=h.addChild("heading",h.nextNonspace);g.level=E[0].trim().length;g._string_content=h.currentLine.slice(h.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");vU(h,h.currentLine.length-h.offset);return 2}return 0},
function(h){var E;if(!h.indented&&(E=h.currentLine.slice(h.nextNonspace).match(UIM))){var g=E[0].length;HU(h);var Z=h.addChild("code_block",h.nextNonspace);Z._isFenced=!0;Z._fenceLength=g;Z._fenceChar=E[0][0];Z._fenceOffset=h.indent;md(h);vU(h,g,!1);return 2}return 0},
function(h,E){if(!h.indented&&dA(h.currentLine,h.nextNonspace)===60){var g=h.currentLine.slice(h.nextNonspace),Z;for(Z=1;Z<=7;Z++)if(adl[Z].test(g)&&(Z<7||E.type!=="paragraph"))return HU(h),h.addChild("html_block",h.offset)._htmlBlockType=Z,2}return 0},
function(h,E){var g;if(!h.indented&&E.type==="paragraph"&&(g=h.currentLine.slice(h.nextNonspace).match(jJM))){HU(h);var Z=new JQ("heading",E.sourcepos);Z.level=g[0][0]==="="?1:2;Z._string_content=E._string_content;Dil(E,Z);E.unlink();h.tip=Z;vU(h,h.currentLine.length-h.offset,!1);return 2}return 0},
function(h){return!h.indented&&i4F.test(h.currentLine.slice(h.nextNonspace))?(HU(h),h.addChild("thematic_break",h.nextNonspace),vU(h,h.currentLine.length-h.offset,!1),2):0},
function(h,E){var g,Z;if(!(Z=h.indented&&E.type!=="list")){a:{var M=E,W=h.currentLine.slice(h.nextNonspace);Z={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:h.indent};if(g=W.match(Rnn))Z.type="bullet",Z.bulletChar=g[0][0];else{if(!(g=W.match(PvH))||M.type==="paragraph"&&g[1]!=="1"){g=null;break a}Z.type="ordered";Z.start=parseInt(g[1],10);Z.delimiter=g[2]}var z=dA(h.currentLine,h.nextNonspace+g[0].length);if(z!==-1&&z!==9&&z!==32||M.type==="paragraph"&&!h.currentLine.slice(h.nextNonspace+
g[0].length).match(IdM))g=null;else{md(h);vU(h,g[0].length,!0);M=h.column;W=h.offset;do vU(h,1,!0),z=dA(h.currentLine,h.offset);while(h.column-M<5&&jN(z));z=dA(h.currentLine,h.offset)===-1;var c=h.column-M;c>=5||c<1||z?(Z.padding=g[0].length+1,h.column=M,h.offset=W,jN(dA(h.currentLine,h.offset))&&vU(h,1,!0)):Z.padding=g[0].length+c;g=Z}}Z=!g}if(Z)return 0;HU(h);(Z=h.tip.type!=="list")||(E=E._listData,Z=!(E.type===g.type&&E.delimiter===g.delimiter&&E.bulletChar===g.bulletChar));Z&&(E=h.addChild("list",
h.nextNonspace),E._listData=g);E=h.addChild("item",h.nextNonspace);E._listData=g;return 1},
function(h){var E;return((E=h.options.shouldParseIndentAsCodeBlock)!=null?E:1)&&h.indented&&h.tip.type!=="paragraph"&&!h.blank?(vU(h,4,!0),HU(h),h.addChild("code_block",h.offset),2):0},
function(h,E){var g=CQ(h.currentLine),Z=CQ(h.lookahead);if(g!==0&&Z<0&&Math.abs(g)==Math.abs(Z)&&!zPq(E.type)){HU(h);E=h.addChild("table",h.nextNonspace);E._tableRows=1;E._tableColumns=Math.abs(g);g=h.lookahead;if(GcW.test(g)){Z=[];for(var M=0,W=!1,z=0,c=void 0;M<g.length;){var I=z>=3;switch(g[M]){case "-":z++;break;case "|":W&&(Z.push(c),c=void 0,z=0);W=!0;break;case ":":c||I||(c="left"),!c&&I&&(c="right"),c==="left"&&I&&(c="center")}M++}g=Z}else g=void 0;E._columnAlignment=g;E=h.addChild("row",
h.nextNonspace);E._isHeader=!0;vU(h,h.currentLine.length-h.offset,!1);E._string_content=h.currentLine;return 1}return 0},
function(h,E){if(E.type=="table"&&CQ(h.currentLine)!==0){HU(h);var g=E;E=h.addChild("row",h.nextNonspace);CQ(h.currentLine)<0?E._rowIsDelimiter=!0:g._tableRows+=1;vU(h,h.currentLine.length-h.offset,!1);E._string_content=h.currentLine;return 2}return 0}],HR$=function(){var h={shouldParseIndentAsCodeBlock:!1};
h=h===void 0?{}:h;this.lastMatchedContainer=this.doc=cO4();this.refmap={};this.lastLineLength=0;this.inlineParser=new lP(h);this.options=h;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=Cvl;this.blockStarts=JUH},enn=function(h){h.partiallyConsumedTab&&(h.offset+=1,h.tip._string_content+=" ".repeat(4-h.column%
4));
h.tip._string_content+=h.currentLine.slice(h.offset)+"\n"};
HR$.prototype.addChild=function(h,E){for(;!this.blocks[this.tip.type].canContain(h);)this.finalize(this.tip,this.lineNumber-1);h=new JQ(h,[[this.lineNumber,E+1],[0,0]]);h._string_content="";this.tip.appendChild(h);return this.tip=h};
var HU=function(h){if(!h.allClosed){for(;h.oldtip!==h.lastMatchedContainer;){var E=h.oldtip._parent;h.finalize(h.oldtip,h.lineNumber-1);h.oldtip=E}h.allClosed=!0}},vU=function(h,E,g){for(var Z=h.currentLine,M,W;E>0&&(W=Z[h.offset]);)W==="\t"?(M=4-h.column%4,g?(h.partiallyConsumedTab=M>E,M=M>E?E:M,h.column+=M,h.offset+=h.partiallyConsumedTab?0:1,E-=M):(h.partiallyConsumedTab=!1,h.column+=M,h.offset+=1,--E)):(h.partiallyConsumedTab=!1,h.offset+=1,h.column+=1,--E)},md=function(h){h.offset=h.nextNonspace;
h.column=h.nextNonspaceColumn;h.partiallyConsumedTab=!1},qzC=function(h){for(var E=h.currentLine,g=h.offset,Z=h.column,M;(M=E.charAt(g))!=="";)if(M===" ")g++,Z++;
else if(M==="\t")g++,Z+=4-Z%4;else break;h.blank=M==="\n"||M==="\r"||M==="";h.nextNonspace=g;h.nextNonspaceColumn=Z;h.indent=h.nextNonspaceColumn-h.column;h.indented=h.indent>=4};
HR$.prototype.finalize=function(h,E){var g=h._parent;h._open=!1;h.sourcepos[1]=[E,this.lastLineLength];this.blocks[h.type].finalize(this,h);this.tip=g};
HR$.prototype.parse=function(h){this.tip=this.doc=cO4();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!h)return this.doc;this.options.time&&console.time("preparing input");var E=h.split(dIl),g=E.length;h.charCodeAt(h.length-1)===10&&--g;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(h=0;h<g;h++)a:{var Z=void 0,M=E[h],W=E[h+1],z=!0,c=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;M.indexOf("\x00")!==-1&&(M=M.replace(/\0/g,"\ufffd"));this.currentLine=M;for(this.lookahead=W;(Z=c._lastChild)&&Z._open;){c=Z;qzC(this);switch(this.blocks[c.type].continue(this,c)){case 0:break;case 1:z=!1;break;case 2:this.lastLineLength=M.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!z){c=c._parent;break}}this.allClosed=c===this.oldtip;this.lastMatchedContainer=
c;Z=c.type!=="paragraph"&&Cvl[c.type].acceptsLines;W=this.blockStarts;for(z=W.length;!Z;){qzC(this);if(!this.indented&&!oxC.test(M.slice(this.nextNonspace))){md(this);break}for(var I=0;I<z;){var B=W[I](this,c);if(B===1){c=this.tip;break}else if(B===2){c=this.tip;Z=!0;break}else I++}if(I===z){md(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){HU(this);this.blank&&c.lastChild&&(c.lastChild._lastLineBlank=!0);Z=c.type;W=this.blank&&!(Z==="block_quote"||Z==="code_block"&&c._isFenced||
Z==="item"&&!c._firstChild&&c.sourcepos[0][0]===this.lineNumber);for(z=c;z;)z._lastLineBlank=W,z=z._parent;this.blocks[Z].acceptsLines?(enn(this),Z==="html_block"&&c._htmlBlockType>=1&&c._htmlBlockType<=5&&cUf[c._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(c,this.lineNumber)):this.offset<M.length&&!this.blank&&(this.addChild("paragraph",this.offset),md(this),enn(this))}else enn(this);this.lastLineLength=M.length}for(;this.tip;)this.finalize(this.tip,g);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");M=new w$f(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;g=M.next();)E=g.node,h=E.type,g.entering||h!=="paragraph"&&h!=="heading"&&h!=="th"&&h!="td"||this.inlineParser.parse(E);this.options.time&&console.timeEnd("inline parsing");return this.doc};iA4.prototype.render=function(h){h=new w$f(h);var E;this.buffer="";for(this.lastOut="\n";E=h.next();){var g=E.node.type;if(this[g])this[g](E.node,E.entering)}return this.buffer};
iA4.prototype.out=function(h){$J(this,h)};
var $J=function(h,E){h.buffer+=E;h.lastOut=E};
iA4.prototype.cr=function(){this.lastOut!=="\n"&&$J(this,"\n")};var fdf=/^javascript:|vbscript:|file:|data:/i,N5m=/^data:image\/(?:png|gif|jpeg|webp)/i,tvn=function(h){return fdf.test(h)&&!N5m.test(h)};
eN.prototype=Object.create(iA4.prototype);_.p=eN.prototype;_.p.text=function(h){this.out(h.literal)};
_.p.html_inline=function(h){this.options.safe?$J(this,"\x3c!-- raw HTML omitted --\x3e"):$J(this,h.literal)};
_.p.html_block=function(h){this.cr();this.options.safe?$J(this,"\x3c!-- raw HTML omitted --\x3e"):$J(this,h.literal);this.cr()};
_.p.softbreak=function(){$J(this,this.options.softbreak)};
_.p.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.p.link=function(h,E){var g=this.attrs(h);E?(this.options.safe&&tvn(h.destination)||g.push(["href",xJ(h.destination,!0)]),h.title&&g.push(["title",xJ(h.title,!0)]),this.tag("a",g)):this.tag("/a")};
_.p.image=function(h,E){E?(this.disableTags===0&&(this.options.safe&&tvn(h.destination)?$J(this,'<img src="" alt="'):$J(this,'<img src="'+xJ(h.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(h.title&&$J(this,'" title="'+xJ(h.title,!0)),$J(this,'" />')))};
_.p.emph=function(h,E){this.tag(E?"em":"/em")};
_.p.strong=function(h,E){this.tag(E?"strong":"/strong")};
_.p.paragraph=function(h,E){var g=h.parent.parent;h=this.attrs(h);g!==null&&g.type==="list"&&g.listTight||(E?(this.cr(),this.tag("p",h)):(this.tag("/p"),this.cr()))};
_.p.heading=function(h,E){var g="h"+h.level;h=this.attrs(h);E?(this.cr(),this.tag(g,h)):(this.tag("/"+g),this.cr())};
_.p.code=function(h){this.tag("code");this.out(h.literal);this.tag("/code")};
_.p.code_block=function(h){var E=h.info?h.info.split(/\s+/):[],g=this.attrs(h);E.length>0&&E[0].length>0&&g.push(["class","language-"+xJ(E[0],!0)]);this.cr();this.tag("pre");this.tag("code",g);this.out(h.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.p.thematic_break=function(h){h=this.attrs(h);this.cr();this.tag("hr",h,!0);this.cr()};
_.p.block_quote=function(h,E){h=this.attrs(h);E?(this.cr(),this.tag("blockquote",h)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.p.list=function(h,E){var g=h.listType==="bullet"?"ul":"ol",Z=this.attrs(h);E?(h=h.listStart,h!==null&&h!==1&&Z.push(["start",h.toString()]),this.cr(),this.tag(g,Z)):(this.cr(),this.tag("/"+g));this.cr()};
_.p.item=function(h,E){h=this.attrs(h);E?this.tag("li",h):(this.tag("/li"),this.cr())};
_.p.custom_inline=function(h,E){E&&h.onEnter?$J(this,h.onEnter):!E&&h.onExit&&$J(this,h.onExit)};
_.p.custom_block=function(h,E){this.cr();E&&h.onEnter?$J(this,h.onEnter):!E&&h.onExit&&$J(this,h.onExit);this.cr()};
_.p.table=function(h,E){h=this.attrs(h);E?(this.cr(),this.tag("table",h)):(this.tag("/table"),this.cr())};
_.p.row=function(h,E){h._rowIsDelimiter||(h=this.attrs(h),E?this.tag("tr",h):this.tag("/tr"))};
_.p.td=function(h,E){var g=this.attrs(h);h._alignment&&g.push(["align",h._alignment]);E?this.tag("td",g):this.tag("/td")};
_.p.th=function(h,E){var g=this.attrs(h);h._alignment&&g.push(["align",h._alignment]);E?this.tag("th",g):this.tag("/th")};
_.p.out=function(h){$J(this,xJ(h,!1))};
_.p.tag=function(h,E,g){if(!(this.disableTags>0)){this.buffer+="<"+h;if(E&&E.length>0){h=0;for(var Z;(Z=E[h])!==void 0;)this.buffer+=" "+Z[0]+'="'+Z[1]+'"',h++}g&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.p.attrs=function(h){var E=[];this.options.sourcepos&&(h=h.sourcepos)&&E.push(["data-sourcepos",String(h[0][0])+":"+String(h[0][1])+"-"+String(h[1][0])+":"+String(h[1][1])]);return E};
eN.prototype.text=eN.prototype.text;eN.prototype.html_inline=eN.prototype.html_inline;eN.prototype.html_block=eN.prototype.html_block;eN.prototype.softbreak=eN.prototype.softbreak;eN.prototype.linebreak=eN.prototype.linebreak;eN.prototype.link=eN.prototype.link;eN.prototype.image=eN.prototype.image;eN.prototype.emph=eN.prototype.emph;eN.prototype.strong=eN.prototype.strong;eN.prototype.paragraph=eN.prototype.paragraph;eN.prototype.heading=eN.prototype.heading;eN.prototype.code=eN.prototype.code;
eN.prototype.code_block=eN.prototype.code_block;eN.prototype.thematic_break=eN.prototype.thematic_break;eN.prototype.block_quote=eN.prototype.block_quote;eN.prototype.list=eN.prototype.list;eN.prototype.item=eN.prototype.item;eN.prototype.custom_inline=eN.prototype.custom_inline;eN.prototype.custom_block=eN.prototype.custom_block;eN.prototype.table=eN.prototype.table;eN.prototype.row=eN.prototype.row;eN.prototype.td=eN.prototype.td;eN.prototype.th=eN.prototype.th;eN.prototype.out=eN.prototype.out;
eN.prototype.tag=eN.prototype.tag;eN.prototype.attrs=eN.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 SzH,xIM,Vmd;(function(){function h(m,l){return m<l?-1:m>l?1:m>=l?0:NaN}
function E(m){return function(l,n){return h(m(l),n)}}
function g(){for(var m=0,l=arguments.length,n={},hM;m<l;++m){if(!(hM=arguments[m]+"")||hM in n)throw Error("we`"+hM);n[hM]=[]}return new Z(n)}
function Z(m){this._=m}
function M(m,l){return m.trim().split(/^|\s+/).map(function(n){var hM="",aW=n.indexOf(".");aW>=0&&(hM=n.slice(aW+1),n=n.slice(0,aW));if(n&&!l.hasOwnProperty(n))throw Error("xe`"+n);return{type:n,name:hM}})}
function W(m,l,n){for(var hM=0,aW=m.length;hM<aW;++hM)if(m[hM].name===l){m[hM]=H1G;m=m.slice(0,hM).concat(m.slice(hM+1));break}n!=null&&m.push({name:l,value:n});return m}
function z(m){var l=m,n=l.indexOf(":");n>=0&&(l=m.slice(0,n))!=="xmlns"&&(m=m.slice(n+1));return Hw.hasOwnProperty(l)?{space:Hw[l],local:m}:m}
function c(m){return function(){var l=this.ownerDocument,n=this.namespaceURI;return n==="http://www.w3.org/1999/xhtml"&&l.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?l.createElement(m):l.createElementNS(n,m)}}
function I(m){return function(){return this.ownerDocument.createElementNS(m.space,m.local)}}
function B(m){m=z(m);return(m.local?I:c)(m)}
function U(){}
function L(m){return m==null?U:function(){return this.querySelector(m)}}
function d(m){return Array(m.length)}
function C(m,l){this.ownerDocument=m.ownerDocument;this.namespaceURI=m.namespaceURI;this._next=null;this._parent=m;this.__data__=l}
function q(m){return function(){return m}}
function w(m,l,n,hM,aW,Ld){for(var eq=0,lO,ED=l.length,uO=Ld.length;eq<uO;++eq)(lO=l[eq])?(lO.__data__=Ld[eq],hM[eq]=lO):n[eq]=new C(m,Ld[eq]);for(;eq<ED;++eq)if(lO=l[eq])aW[eq]=lO}
function r(m,l,n,hM,aW,Ld,eq){var lO,ED,uO={},Zl=l.length,BM=Ld.length,An=Array(Zl),NZ;for(lO=0;lO<Zl;++lO)if(ED=l[lO])An[lO]=NZ="$"+eq.call(ED,ED.__data__,lO,l),NZ in uO?aW[lO]=ED:uO[NZ]=ED;for(lO=0;lO<BM;++lO)NZ="$"+eq.call(m,Ld[lO],lO,Ld),(ED=uO[NZ])?(hM[lO]=ED,ED.__data__=Ld[lO],uO[NZ]=null):n[lO]=new C(m,Ld[lO]);for(lO=0;lO<Zl;++lO)(ED=l[lO])&&uO[An[lO]]===ED&&(aW[lO]=ED)}
function v(m,l){return m<l?-1:m>l?1:m>=l?0:NaN}
function H(m){return function(){this.removeAttribute(m)}}
function u(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function k(m,l){return function(){this.setAttribute(m,l)}}
function y(m,l){return function(){this.setAttributeNS(m.space,m.local,l)}}
function A(m,l){return function(){var n=l.apply(this,arguments);n==null?this.removeAttribute(m):this.setAttribute(m,n)}}
function E4(m,l){return function(){var n=l.apply(this,arguments);n==null?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,n)}}
function iO(m){return function(){this.style.removeProperty(m)}}
function RW(m,l,n){return function(){this.style.setProperty(m,l,n)}}
function NN(m,l,n){return function(){var hM=l.apply(this,arguments);hM==null?this.style.removeProperty(m):this.style.setProperty(m,hM,n)}}
function Cd(m,l){return m.style.getPropertyValue(l)||(m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView).getComputedStyle(m,null).getPropertyValue(l)}
function Ba(m){return function(){delete this[m]}}
function $$(m,l){return function(){this[m]=l}}
function Ha(m,l){return function(){var n=l.apply(this,arguments);n==null?delete this[m]:this[m]=n}}
function zf(){this.textContent=""}
function eF(m){return function(){this.textContent=m}}
function Rm(m){return function(){var l=m.apply(this,arguments);this.textContent=l==null?"":l}}
function bO(){this.innerHTML=""}
function jF(m){return function(){this.innerHTML=m}}
function PM(m){return function(){var l=m.apply(this,arguments);this.innerHTML=l==null?"":l}}
function ll(){return null}
function xU(){var m=this.parentNode;m&&m.removeChild(this)}
function pU(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function pd(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function gB(m,l,n){m=CD(m,l,n);return function(hM){var aW=hM.relatedTarget;aW&&(aW===this||aW.compareDocumentPosition(this)&8)||m.call(this,hM)}}
function CD(m,l,n){return function(){m.call(this,this.__data__,l,n)}}
function E0(m){return m.trim().split(/^|\s+/).map(function(l){var n="",hM=l.indexOf(".");hM>=0&&(n=l.slice(hM+1),l=l.slice(0,hM));return{type:l,name:n}})}
function Im(m){return function(){var l=this.__on;if(l){for(var n=0,hM=-1,aW=l.length,Ld;n<aW;++n)(Ld=l[n],m.type&&Ld.type!==m.type||Ld.name!==m.name)?l[++hM]=Ld:this.removeEventListener(Ld.type,Ld.listener,Ld.capture);++hM?l.length=hM:delete this.__on}}}
function Qk(m,l,n){var hM=Lul.hasOwnProperty(m.type)?gB:CD;return function(aW,Ld,eq){aW=this.__on;var lO;Ld=hM(l,Ld,eq);if(aW){eq=0;for(var ED=aW.length;eq<ED;++eq)if((lO=aW[eq]).type===m.type&&lO.name===m.name){this.removeEventListener(lO.type,lO.listener,lO.capture);this.addEventListener(lO.type,lO.listener=Ld,lO.capture=n);lO.value=l;return}}this.addEventListener(m.type,Ld,n);lO={type:m.type,name:m.name,value:l,listener:Ld,capture:n};aW?aW.push(lO):this.__on=[lO]}}
function TN(m,l,n){var hM=m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView,aW=hM.CustomEvent;typeof aW==="function"?aW=new aW(l,n):(aW=hM.document.createEvent("Event"),n?(aW.initEvent(l,n.bubbles,n.cancelable),aW.detail=n.detail):aW.initEvent(l,!1,!1));m.dispatchEvent(aW)}
function hC(m,l){return function(){return TN(this,m,l)}}
function cM(m,l){return function(){return TN(this,m,l.apply(this,arguments))}}
function FC(m,l){this._groups=m;this._parents=l}
function jx(){return new FC([[document.documentElement]],$Mp)}
function wB(){this._="@"+(++KHi).toString(36)}
function fD(m,l,n){m.prototype=l.prototype=n;n.constructor=m}
function U0(m,l){m=Object.create(m.prototype);for(var n in l)m[n]=l[n];return m}
function QF(){}
function RG(m){var l;m=(m+"").trim().toLowerCase();return(l=O1C.exec(m))?(l=parseInt(l[1],16),new kU(l>>8&15|l>>4&240,l>>4&15|l&240,(l&15)<<4|l&15,1)):(l=ncG.exec(m))?Db(parseInt(l[1],16)):(l=Xkp.exec(m))?new kU(l[1],l[2],l[3],1):(l=YrI.exec(m))?new kU(l[1]*255/100,l[2]*255/100,l[3]*255/100,1):(l=sRx.exec(m))?mO(l[1],l[2],l[3],l[4]):(l=VcR.exec(m))?mO(l[1]*255/100,l[2]*255/100,l[3]*255/100,l[4]):(l=kgp.exec(m))?IC(l[1],l[2]/100,l[3]/100,1):(l=y0X.exec(m))?IC(l[1],l[2]/100,l[3]/100,l[4]):jSM.hasOwnProperty(m)?
Db(jSM[m]):m==="transparent"?new kU(NaN,NaN,NaN,0):null}
function Db(m){return new kU(m>>16&255,m>>8&255,m&255,1)}
function mO(m,l,n,hM){hM<=0&&(m=l=n=NaN);return new kU(m,l,n,hM)}
function XC(m){m instanceof QF||(m=RG(m));if(!m)return new kU;m=m.rgb();return new kU(m.r,m.g,m.b,m.opacity)}
function $U(m,l,n,hM){return arguments.length===1?XC(m):new kU(m,l,n,hM==null?1:hM)}
function kU(m,l,n,hM){this.r=+m;this.g=+l;this.b=+n;this.opacity=+hM}
function zN(m){m=Math.max(0,Math.min(255,Math.round(m)||0));return(m<16?"0":"")+m.toString(16)}
function IC(m,l,n,hM){hM<=0?m=l=n=NaN:n<=0||n>=1?m=l=NaN:l<=0&&(m=NaN);return new Ro(m,l,n,hM)}
function QL(m){if(m instanceof Ro)return new Ro(m.h,m.s,m.l,m.opacity);m instanceof QF||(m=RG(m));if(!m)return new Ro;if(m instanceof Ro)return m;m=m.rgb();var l=m.r/255,n=m.g/255,hM=m.b/255,aW=Math.min(l,n,hM),Ld=Math.max(l,n,hM),eq=NaN,lO=Ld-aW,ED=(Ld+aW)/2;lO?(eq=l===Ld?(n-hM)/lO+(n<hM)*6:n===Ld?(hM-l)/lO+2:(l-n)/lO+4,lO/=ED<.5?Ld+aW:2-Ld-aW,eq*=60):lO=ED>0&&ED<1?0:eq;return new Ro(eq,lO,ED,m.opacity)}
function Fi(m,l,n,hM){return arguments.length===1?QL(m):new Ro(m,l,n,hM==null?1:hM)}
function Ro(m,l,n,hM){this.h=+m;this.s=+l;this.l=+n;this.opacity=+hM}
function HA(m,l,n){return(m<60?l+(n-l)*m/60:m<180?n:m<240?l+(n-l)*(240-m)/60:l)*255}
function xL(m){if(m instanceof tM)return new tM(m.l,m.a,m.b,m.opacity);if(m instanceof qA){if(isNaN(m.h))return new tM(m.l,0,0,m.opacity);var l=m.h*dPl;return new tM(m.l,Math.cos(l)*m.c,Math.sin(l)*m.c,m.opacity)}m instanceof kU||(m=XC(m));var n=Pc(m.r),hM=Pc(m.g),aW=Pc(m.b);l=Kd(.2225045*n+.7168786*hM+.0606169*aW);if(n===hM&&hM===aW)var Ld=n=l;else Ld=Kd((.4360747*n+.3850649*hM+.1430804*aW)/.96422),n=Kd((.0139322*n+.0971045*hM+.7141733*aW)/.82521);return new tM(116*l-16,500*(Ld-l),200*(l-n),m.opacity)}
function tM(m,l,n,hM){this.l=+m;this.a=+l;this.b=+n;this.opacity=+hM}
function Kd(m){return m>FH0?Math.pow(m,1/3):m/CcC+Jcf}
function k$(m){return m>L_?m*m*m:CcC*(m-Jcf)}
function LD(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}
function Pc(m){return(m/=255)<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}
function D0(m){if(m instanceof qA)return new qA(m.h,m.c,m.l,m.opacity);m instanceof tM||(m=xL(m));if(m.a===0&&m.b===0)return new qA(NaN,0,m.l,m.opacity);var l=Math.atan2(m.b,m.a)*eFF;return new qA(l<0?l+360:l,Math.sqrt(m.a*m.a+m.b*m.b),m.l,m.opacity)}
function ex(m,l,n,hM){return arguments.length===1?D0(m):new qA(m,l,n,hM==null?1:hM)}
function qA(m,l,n,hM){this.h=+m;this.c=+l;this.l=+n;this.opacity=+hM}
function Jn(m,l,n,hM){if(arguments.length===1){var aW=m;if(aW instanceof rI)aW=new rI(aW.h,aW.s,aW.l,aW.opacity);else{aW instanceof kU||(aW=XC(aW));var Ld=aW.g/255,eq=aW.b/255,lO=(qkB*eq+aW.r/255*-1.7884503806-3.5172982438*Ld)/(qkB+-1.7884503806-3.5172982438);eq-=lO;var ED=(1.97294*(Ld-lO)- -.29227*eq)/-.90649;eq=(Ld=Math.sqrt(ED*ED+eq*eq)/(1.97294*lO*(1-lO)))?Math.atan2(ED,eq)*eFF-120:NaN;aW=new rI(eq<0?eq+360:eq,Ld,lO,aW.opacity)}}else aW=new rI(m,l,n,hM==null?1:hM);return aW}
function rI(m,l,n,hM){this.h=+m;this.s=+l;this.l=+n;this.opacity=+hM}
function dU(m,l,n,hM,aW){var Ld=m*m,eq=Ld*m;return((1-3*m+3*Ld-eq)*l+(4-6*Ld+3*eq)*n+(1+3*m+3*Ld-3*eq)*hM+eq*aW)/6}
function UD(m){return function(){return m}}
function tb(m,l){return function(n){return m+n*l}}
function Oq(m,l,n){return m=Math.pow(m,n),l=Math.pow(l,n)-m,n=1/n,function(hM){return Math.pow(m+hM*l,n)}}
function KM(m,l){var n=l-m;return n?tb(m,n>180||n<-180?n-360*Math.round(n/360):n):UD(isNaN(m)?l:m)}
function s9(m){return(m=+m)===1?A1:function(l,n){return n-l?Oq(l,n,m):UD(isNaN(l)?n:l)}}
function A1(m,l){var n=l-m;return n?tb(m,n):UD(isNaN(m)?l:m)}
function j6(m){return function(l){var n=l.length,hM=Array(n),aW=Array(n),Ld=Array(n),eq;for(eq=0;eq<n;++eq){var lO=$U(l[eq]);hM[eq]=lO.r||0;aW[eq]=lO.g||0;Ld[eq]=lO.b||0}hM=m(hM);aW=m(aW);Ld=m(Ld);lO.opacity=1;return function(ED){lO.r=hM(ED);lO.g=aW(ED);lO.b=Ld(ED);return lO+""}}}
function j8(m,l){return m=+m,l-=m,function(n){return m+l*n}}
function gG(m){return function(){return m}}
function JI(m){return function(l){return m(l)+""}}
function Fz(m,l){var n=dJq.lastIndex=CkO.lastIndex=0,hM,aW,Ld,eq=-1,lO=[],ED=[];m+="";for(l+="";(hM=dJq.exec(m))&&(aW=CkO.exec(l));)(Ld=aW.index)>n&&(Ld=l.slice(n,Ld),lO[eq]?lO[eq]+=Ld:lO[++eq]=Ld),(hM=hM[0])===(aW=aW[0])?lO[eq]?lO[eq]+=aW:lO[++eq]=aW:(lO[++eq]=null,ED.push({i:eq,x:j8(hM,aW)})),n=CkO.lastIndex;n<l.length&&(Ld=l.slice(n),lO[eq]?lO[eq]+=Ld:lO[++eq]=Ld);return lO.length<2?ED[0]?JI(ED[0].x):gG(l):(l=ED.length,function(uO){for(var Zl=0,BM;Zl<l;++Zl)lO[(BM=ED[Zl]).i]=BM.x(uO);return lO.join("")})}
function dI(m,l,n,hM,aW,Ld){var eq,lO,ED;if(eq=Math.sqrt(m*m+l*l))m/=eq,l/=eq;if(ED=m*n+l*hM)n-=m*ED,hM-=l*ED;if(lO=Math.sqrt(n*n+hM*hM))n/=lO,hM/=lO,ED/=lO;m*hM<l*n&&(m=-m,l=-l,ED=-ED,eq=-eq);return{translateX:aW,translateY:Ld,rotate:Math.atan2(l,m)*fID,skewX:Math.atan(ED)*fID,scaleX:eq,scaleY:lO}}
function nU(m,l,n,hM){function aW(uO){return uO.length?uO.pop()+" ":""}
function Ld(uO,Zl,BM,An,NZ,eL){uO!==BM||Zl!==An?(NZ=NZ.push("translate(",null,l,null,n),eL.push({i:NZ-4,x:j8(uO,BM)},{i:NZ-2,x:j8(Zl,An)})):(BM||An)&&NZ.push("translate("+BM+l+An+n)}
function eq(uO,Zl,BM,An){uO!==Zl?(uO-Zl>180?Zl+=360:Zl-uO>180&&(uO+=360),An.push({i:BM.push(aW(BM)+"rotate(",null,hM)-2,x:j8(uO,Zl)})):Zl&&BM.push(aW(BM)+"rotate("+Zl+hM)}
function lO(uO,Zl,BM,An){uO!==Zl?An.push({i:BM.push(aW(BM)+"skewX(",null,hM)-2,x:j8(uO,Zl)}):Zl&&BM.push(aW(BM)+"skewX("+Zl+hM)}
function ED(uO,Zl,BM,An,NZ,eL){uO!==BM||Zl!==An?(NZ=NZ.push(aW(NZ)+"scale(",null,",",null,")"),eL.push({i:NZ-4,x:j8(uO,BM)},{i:NZ-2,x:j8(Zl,An)})):BM===1&&An===1||NZ.push(aW(NZ)+"scale("+BM+","+An+")")}
return function(uO,Zl){var BM=[],An=[];uO=m(uO);Zl=m(Zl);Ld(uO.translateX,uO.translateY,Zl.translateX,Zl.translateY,BM,An);eq(uO.rotate,Zl.rotate,BM,An);lO(uO.skewX,Zl.skewX,BM,An);ED(uO.scaleX,uO.scaleY,Zl.scaleX,Zl.scaleY,BM,An);uO=Zl=null;return function(NZ){for(var eL=-1,sZ=An.length,Nc;++eL<sZ;)BM[(Nc=An[eL]).i]=Nc.x(NZ);return BM.join("")}}}
function zp(m){return function(l,n){var hM=m((l=Fi(l)).h,(n=Fi(n)).h),aW=A1(l.s,n.s),Ld=A1(l.l,n.l),eq=A1(l.opacity,n.opacity);return function(lO){l.h=hM(lO);l.s=aW(lO);l.l=Ld(lO);l.opacity=eq(lO);return l+""}}}
function If(m){return function(l,n){var hM=m((l=ex(l)).h,(n=ex(n)).h),aW=A1(l.c,n.c),Ld=A1(l.l,n.l),eq=A1(l.opacity,n.opacity);return function(lO){l.h=hM(lO);l.c=aW(lO);l.l=Ld(lO);l.opacity=eq(lO);return l+""}}}
function Ab(m){return function hM(n){function aW(Ld,eq){var lO=m((Ld=Jn(Ld)).h,(eq=Jn(eq)).h),ED=A1(Ld.s,eq.s),uO=A1(Ld.l,eq.l),Zl=A1(Ld.opacity,eq.opacity);return function(BM){Ld.h=lO(BM);Ld.s=ED(BM);Ld.l=uO(Math.pow(BM,n));Ld.opacity=Zl(BM);return Ld+""}}
n=+n;aW.gamma=hM;return aW}(1)}
function Yd(){return u5||(NWC(bs),u5=nh.now()+Ala)}
function bs(){u5=0}
function f4(){this._call=this._time=this._next=null}
function Dh(m,l,n){var hM=new f4;hM.restart(m,l,n);return hM}
function la(){u5=(TfW=nh.now())+Ala;jW=Xx=0;try{Yd();++jW;for(var m=bla,l;m;)(l=u5-m._time)>=0&&m._call.call(null,l),m=m._next;--jW}finally{jW=0;m=bla;for(var n=Infinity;m;)if(m._call){n>m._time&&(n=m._time);var hM=m;m=m._next}else l=m._next,m._next=null,m=hM?hM._next=l:bla=l;YQ=hM;rz(n);u5=0}}
function aDq(){var m=nh.now(),l=m-TfW;l>1E3&&(Ala-=l,TfW=m)}
function rz(m){jW||(Xx&&(Xx=clearTimeout(Xx)),m-u5>24?(m<Infinity&&(Xx=setTimeout(la,m-nh.now()-Ala)),sn&&(sn=clearInterval(sn))):(sn||(TfW=nh.now(),sn=setInterval(aDq,1E3)),jW=1,NWC(la)))}
function tnB(m,l,n){var hM=new f4;l=l==null?0:+l;hM.restart(function(aW){hM.stop();m(aW+l)},l,n);
return hM}
function J6$(m,l,n,hM,aW,Ld){var eq=m.__transition;if(!eq)m.__transition={};else if(n in eq)return;A0G(m,n,{name:l,index:hM,group:aW,on:Ty0,tween:b1p,time:Ld.time,delay:Ld.delay,duration:Ld.duration,ease:Ld.ease,timer:null,state:0})}
function egz(m,l){m=wG(m,l);if(m.state>0)throw Error("ye");return m}
function Qh(m,l){m=wG(m,l);if(m.state>2)throw Error("ze");return m}
function wG(m,l){m=m.__transition;if(!m||!(m=m[l]))throw Error("Ae");return m}
function A0G(m,l,n){function hM(ED){var uO,Zl;if(n.state!==1)return Ld();for(An in eq){var BM=eq[An];if(BM.name===n.name){if(BM.state===3)return tnB(hM);BM.state===4?(BM.state=6,BM.timer.stop(),BM.on.call("interrupt",m,m.__data__,BM.index,BM.group),delete eq[An]):+An<l&&(BM.state=6,BM.timer.stop(),delete eq[An])}}tnB(function(){n.state===3&&(n.state=4,n.timer.restart(aW,n.delay,n.time),aW(ED))});
n.state=2;n.on.call("start",m,m.__data__,n.index,n.group);if(n.state===2){n.state=3;lO=Array(Zl=n.tween.length);var An=0;for(uO=-1;An<Zl;++An)if(BM=n.tween[An].value.call(m,m.__data__,n.index,n.group))lO[++uO]=BM;lO.length=uO+1}}
function aW(ED){ED=ED<n.duration?n.ease.call(null,ED/n.duration):(n.timer.restart(Ld),n.state=5,1);for(var uO=-1,Zl=lO.length;++uO<Zl;)lO[uO].call(null,ED);n.state===5&&(n.on.call("end",m,m.__data__,n.index,n.group),Ld())}
function Ld(){n.state=6;n.timer.stop();delete eq[l];for(var ED in eq)return;delete m.__transition}
var eq=m.__transition,lO;eq[l]=n;n.timer=Dh(function(ED){n.state=1;n.timer.restart(hM,n.delay,n.time);n.delay<=ED&&hM(ED-n.delay)},0,n.time)}
function uAU(m,l){var n,hM;return function(){var aW=Qh(this,m),Ld=aW.tween;if(Ld!==n){hM=n=Ld;Ld=0;for(var eq=hM.length;Ld<eq;++Ld)if(hM[Ld].name===l){hM=hM.slice();hM.splice(Ld,1);break}}aW.tween=hM}}
function QRC(m,l,n){var hM,aW;if(typeof n!=="function")throw Error();return function(){var Ld=Qh(this,m),eq=Ld.tween;if(eq!==hM){aW=(hM=eq).slice();eq={name:l,value:n};for(var lO=0,ED=aW.length;lO<ED;++lO)if(aW[lO].name===l){aW[lO]=eq;break}lO===ED&&aW.push(eq)}Ld.tween=aW}}
function qhZ(m,l,n){var hM=m._id;m.each(function(){var aW=Qh(this,hM);(aW.value||(aW.value={}))[l]=n.apply(this,arguments)});
return function(aW){return wG(aW,hM).value[l]}}
function SkD(m,l){var n;return(typeof l==="number"?j8:l instanceof RG?xPM:(n=RG(l))?(l=n,xPM):Fz)(m,l)}
function htC(m){return function(){this.removeAttribute(m)}}
function ETG(m){return function(){this.removeAttributeNS(m.space,m.local)}}
function gTG(m,l,n){var hM,aW;return function(){var Ld=this.getAttribute(m);return Ld===n?null:Ld===hM?aW:aW=l(hM=Ld,n)}}
function ZC0(m,l,n){var hM,aW;return function(){var Ld=this.getAttributeNS(m.space,m.local);return Ld===n?null:Ld===hM?aW:aW=l(hM=Ld,n)}}
function MiZ(m,l,n){var hM,aW,Ld;return function(){var eq=n(this);if(eq==null)return void this.removeAttribute(m);var lO=this.getAttribute(m);return lO===eq?null:lO===hM&&eq===aW?Ld:Ld=l(hM=lO,aW=eq)}}
function WwR(m,l,n){var hM,aW,Ld;return function(){var eq=n(this);if(eq==null)return void this.removeAttributeNS(m.space,m.local);var lO=this.getAttributeNS(m.space,m.local);return lO===eq?null:lO===hM&&eq===aW?Ld:Ld=l(hM=lO,aW=eq)}}
function ptU(m,l){function n(){var hM=this,aW=l.apply(hM,arguments);return aW&&function(Ld){hM.setAttributeNS(m.space,m.local,aW(Ld))}}
n._value=l;return n}
function GhZ(m,l){function n(){var hM=this,aW=l.apply(hM,arguments);return aW&&function(Ld){hM.setAttribute(m,aW(Ld))}}
n._value=l;return n}
function ztJ(m,l){return function(){egz(this,m).delay=+l.apply(this,arguments)}}
function asc(m,l){return l=+l,function(){egz(this,m).delay=l}}
function cmp(m,l){return function(){Qh(this,m).duration=+l.apply(this,arguments)}}
function iCI(m,l){return l=+l,function(){Qh(this,m).duration=l}}
function oTG(m,l){if(typeof l!=="function")throw Error();return function(){Qh(this,m).ease=l}}
function IsI(m){return(m+"").trim().split(/^|\s+/).every(function(l){var n=l.indexOf(".");n>=0&&(l=l.slice(0,n));return!l||l==="start"})}
function RtX(m,l,n){var hM,aW,Ld=IsI(l)?egz:Qh;return function(){var eq=Ld(this,m),lO=eq.on;if(lO!==hM)(aW=(hM=lO).copy()).on(l,n);eq.on=aW}}
function P_C(m){return function(){var l=this.parentNode,n;for(n in this.__transition)if(+n!==m)return;l&&l.removeChild(this)}}
function BcR(m,l){var n,hM,aW;return function(){var Ld=Cd(this,m),eq=(this.style.removeProperty(m),Cd(this,m));return Ld===eq?null:Ld===n&&eq===hM?aW:aW=l(n=Ld,hM=eq)}}
function U8c(m){return function(){this.style.removeProperty(m)}}
function Lwc(m,l,n){var hM,aW;return function(){var Ld=Cd(this,m);return Ld===n?null:Ld===hM?aW:aW=l(hM=Ld,n)}}
function jxi(m,l,n){var hM,aW,Ld;return function(){var eq=Cd(this,m),lO=n(this);lO==null&&(lO=(this.style.removeProperty(m),Cd(this,m)));return eq===lO?null:eq===hM&&lO===aW?Ld:Ld=l(hM=eq,aW=lO)}}
function d8C(m,l,n){function hM(){var aW=this,Ld=l.apply(aW,arguments);return Ld&&function(eq){aW.style.setProperty(m,Ld(eq),n)}}
hM._value=l;return hM}
function C_R(m){return function(){this.textContent=m}}
function JmJ(m){return function(){var l=m(this);this.textContent=l==null?"":l}}
function A6(m,l,n,hM){this._groups=m;this._parents=l;this._name=n;this._id=hM}
function fX$(m){return{type:m}}
function NKO(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function uyN(){}
function wZm(m,l){var n=new uyN;if(m instanceof uyN)m.each(function(eq,lO){n.set(lO,eq)});
else if(Array.isArray(m)){var hM=-1,aW=m.length,Ld;if(l==null)for(;++hM<aW;)n.set(hM,m[hM]);else for(;++hM<aW;)n.set(l(Ld=m[hM],hM,m),Ld)}else if(m)for(hM in m)n.set(hM,m[hM]);return n}
function QCN(){}
function DPl(m){return function(l){for(var n={},hM=0;hM<m.length;hM++)n[m[hM]]=l[hM]||"";return n}}
function etU(m,l){var n=DPl(m);return function(hM,aW){return l(n(hM),aW,m)}}
function qUJ(m){var l=Object.create(null),n=[];m.forEach(function(hM){for(var aW in hM)aW in l||n.push(l[aW]=aW)});
return n}
function lIf(m){function l(eq,lO){function ED(){if(eL)return t1q;if(sZ)return sZ=!1,rcM;var Ev,y6=BM,dZ;if(eq.charCodeAt(y6)===34){for(;BM++<Zl&&eq.charCodeAt(BM)!==34||eq.charCodeAt(++BM)===34;);(Ev=BM)>=Zl?eL=!0:(dZ=eq.charCodeAt(BM++))===10?sZ=!0:dZ===13&&(sZ=!0,eq.charCodeAt(BM)===10&&++BM);return eq.slice(y6+1,Ev-1).replace(/""/g,'"')}for(;BM<Zl;){if((dZ=eq.charCodeAt(Ev=BM++))===10)sZ=!0;else if(dZ===13)sZ=!0,eq.charCodeAt(BM)===10&&++BM;else if(dZ!==Ld)continue;return eq.slice(y6,Ev)}return eL=
!0,eq.slice(y6,Zl)}
var uO=[],Zl=eq.length,BM=0,An=0,NZ,eL=Zl<=0,sZ=!1;eq.charCodeAt(Zl-1)===10&&--Zl;for(eq.charCodeAt(Zl-1)===13&&--Zl;(NZ=ED())!==t1q;){for(var Nc=[];NZ!==rcM&&NZ!==t1q;)Nc.push(NZ),NZ=ED();lO&&(Nc=lO(Nc,An++))==null||uO.push(Nc)}return uO}
function n(eq){return eq.map(hM).join(m)}
function hM(eq){return eq==null?"":aW.test(eq)?'"'+eq.replace(/"/g,'""')+'"':eq}
var aW=new RegExp('["'+m+"\n\r]"),Ld=m.charCodeAt(0);return{parse:function(eq,lO){var ED,uO;eq=l(eq,function(Zl,BM){if(ED)return ED(Zl,BM-1);uO=Zl;ED=lO?etU(Zl,lO):DPl(Zl)});
eq.columns=uO||[];return eq},
parseRows:l,format:function(eq,lO){lO==null&&(lO=qUJ(eq));return[lO.map(hM).join(m)].concat(eq.map(function(ED){return lO.map(function(uO){return hM(ED[uO])}).join(m)})).join("\n")},
formatRows:function(eq){return eq.map(n).join("\n")}}}
function fs0(m){if(!m.ok)throw Error("Be`"+m.status+"`"+m.statusText);return m.text()}
function mPM(m){return function(l,n,hM){arguments.length===2&&typeof n==="function"&&(hM=n,n=void 0);return fetch(l,n).then(fs0).then(function(aW){return m(aW,hM)})}}
function vmn(m,l,n,hM){if(isNaN(l)||isNaN(n))return m;var aW,Ld=m._root;hM={data:hM};var eq=m._x0,lO=m._y0,ED=m._x1,uO=m._y1,Zl,BM,An,NZ,eL;if(!Ld)return m._root=hM,m;for(;Ld.length;)if((An=l>=(Zl=(eq+ED)/2))?eq=Zl:ED=Zl,(NZ=n>=(BM=(lO+uO)/2))?lO=BM:uO=BM,aW=Ld,!(Ld=Ld[eL=NZ<<1|An]))return aW[eL]=hM,m;var sZ=+m._x.call(null,Ld.data);var Nc=+m._y.call(null,Ld.data);if(l===sZ&&n===Nc)return hM.next=Ld,aW?aW[eL]=hM:m._root=hM,m;do aW=aW?aW[eL]=Array(4):m._root=Array(4),(An=l>=(Zl=(eq+ED)/2))?eq=Zl:ED=
Zl,(NZ=n>=(BM=(lO+uO)/2))?lO=BM:uO=BM;while((eL=NZ<<1|An)===(An=(Nc>=BM)<<1|sZ>=Zl));return aW[An]=Ld,aW[eL]=hM,m}
function XT(m,l,n,hM,aW){this.node=m;this.x0=l;this.y0=n;this.x1=hM;this.y1=aW}
function NcC(m){return m[0]}
function tii(m){return m[1]}
function Shq(m,l,n,hM,aW,Ld){this._x=m;this._y=l;this._x0=n;this._y0=hM;this._x1=aW;this._y1=Ld;this._root=void 0}
function HSm(m){for(var l={data:m.data},n=l;m=m.next;)n=n.next={data:m.data};return l}
function hTZ(m,l){if((l=(m=l?m.toExponential(l-1):m.toExponential()).indexOf("e"))<0)return null;var n=m.slice(0,l);return[n.length>1?n[0]+n.slice(2):n,+m.slice(l+1)]}
function SUG(m){return m=hTZ(Math.abs(m)),m?m[1]:NaN}
function x8G(m,l){return function(n,hM){for(var aW=n.length,Ld=[],eq=0,lO=m[0],ED=0;aW>0&&lO>0;){ED+lO+1>hM&&(lO=Math.max(1,hM-ED));Ld.push(n.substring(aW-=lO,aW+lO));if((ED+=lO+1)>hM)break;lO=m[eq=(eq+1)%m.length]}return Ld.reverse().join(l)}}
function wtp(m){return function(l){return l.replace(/[0-9]/g,function(n){return m[+n]})}}
function xJu(m){return new w4$(m)}
function w4$(m){if(!(l=D8U.exec(m)))throw Error("Ce`"+m);var l;this.fill=l[1]||" ";this.align=l[2]||">";this.sign=l[3]||"-";this.symbol=l[4]||"";this.zero=!!l[5];this.width=l[6]&&+l[6];this.comma=!!l[7];this.precision=l[8]&&+l[8].slice(1);this.trim=!!l[9];this.type=l[10]||""}
function $PB(m,l){l=hTZ(m,l);if(!l)return m+"";m=l[0];l=l[1];return l<0?"0."+Array(-l).join("0")+m:m.length>l+1?m.slice(0,l+1)+"."+m.slice(l+1):m+Array(l-m.length+2).join("0")}
function Kuk(m){return m}
function lsU(m){function l(lO){function ED(bx){var a8=dZ,YU=F5,JL,ci;if(y6==="c")YU=Fh(bx)+YU,bx="";else{bx=+bx;var DR=bx<0;bx=Fh(Math.abs(bx),Nc);if(Ev){var Y3=bx.length,Yw=1,Z_=-1;a:for(;Yw<Y3;++Yw)switch(bx[Yw]){case ".":Z_=JL=Yw;break;case "0":Z_===0&&(Z_=Yw);JL=Yw;break;default:if(!+bx[Yw])break a;Z_>0&&(Z_=0)}bx=Z_>0?bx.slice(0,Z_)+bx.slice(JL+1):bx}DR&&+bx===0&&(DR=!1);a8=(DR?BM==="("?BM:"-":BM==="-"||BM==="("?"":BM)+a8;YU=(y6==="s"?OSD[8+nmC/3]:"")+YU+(DR&&BM==="("?")":"");if(dO)for(DR=-1,
JL=bx.length;++DR<JL;)if(ci=bx.charCodeAt(DR),48>ci||ci>57){YU=(ci===46?aW+bx.slice(DR+1):bx.slice(DR))+YU;bx=bx.slice(0,DR);break}}sZ&&!NZ&&(bx=n(bx,Infinity));ci=a8.length+bx.length+YU.length;DR=ci<eL?Array(eL-ci+1).join(uO):"";sZ&&NZ&&(bx=n(DR+bx,DR.length?eL-YU.length:Infinity),DR="");switch(Zl){case "<":bx=a8+bx+YU+DR;break;case "=":bx=a8+DR+bx+YU;break;case "^":bx=DR.slice(0,ci=DR.length>>1)+a8+bx+YU+DR.slice(ci);break;default:bx=DR+a8+bx+YU}return Ld(bx)}
lO=xJu(lO);var uO=lO.fill,Zl=lO.align,BM=lO.sign,An=lO.symbol,NZ=lO.zero,eL=lO.width,sZ=lO.comma,Nc=lO.precision,Ev=lO.trim,y6=lO.type;y6==="n"?(sZ=!0,y6="g"):XZl[y6]||(Nc==null&&(Nc=12),Ev=!0,y6="g");if(NZ||uO==="0"&&Zl==="=")NZ=!0,uO="0",Zl="=";var dZ=An==="$"?hM[0]:An==="#"&&/[boxX]/.test(y6)?"0"+y6.toLowerCase():"",F5=An==="$"?hM[1]:/[%p]/.test(y6)?eq:"",Fh=XZl[y6],dO=/[defgprs%]/.test(y6);Nc=Nc==null?6:/[gprs]/.test(y6)?Math.max(1,Math.min(21,Nc)):Math.max(0,Math.min(20,Nc));ED.toString=function(){return lO+
""};
return ED}
var n=m.grouping&&m.thousands?x8G(m.grouping,m.thousands):Kuk,hM=m.currency,aW=m.decimal,Ld=m.numerals?wtp(m.numerals):Kuk,eq=m.percent||"%";return{format:l,formatPrefix:function(lO,ED){var uO=l((lO=xJu(lO),lO.type="f",lO));lO=Math.max(-8,Math.min(8,Math.floor(SUG(ED)/3)))*3;var Zl=Math.pow(10,-lO),BM=OSD[8+lO/3];return function(An){return uO(Zl*An)+BM}}}}
function fz(){this.reset()}
function Ykf(m,l,n){var hM=m.s=l+n,aW=hM-l;m.t=l-(hM-aW)+(n-aW)}
function ELz(m){return m>1?$u:m<-1?-$u:Math.asin(m)}
function rmC(){}
function sSD(m){var l=m[0];m=m[1];var n=K$(m);return[n*K$(l),n*NR(l),NR(m)]}
function VnA(m,l){return[m[1]*l[2]-m[2]*l[1],m[2]*l[0]-m[0]*l[2],m[0]*l[1]-m[1]*l[0]]}
function kVC(m){var l=gLa(m[0]*m[0]+m[1]*m[1]+m[2]*m[2]);m[0]/=l;m[1]/=l;m[2]/=l}
function m8U(){var m=[],l;return{point:function(n,hM){l.push([n,hM])},
lineStart:function(){m.push(l=[])},
lineEnd:rmC,rejoin:function(){m.length>1&&m.push(m.pop().concat(m.shift()))},
result:function(){var n=m;m=[];l=null;return n}}}
function ZPx(m,l,n,hM){this.x=m;this.z=l;this.o=n;this.e=hM;this.v=!1;this.n=this.p=null}
function vTc(m,l,n,hM,aW){var Ld=[],eq=[];m.forEach(function(BM){if(!((An=BM.length-1)<=0)){var An,NZ=BM[0],eL=BM[An],sZ=NZ;if(Tr(sZ[0]-eL[0])<1E-6&&Tr(sZ[1]-eL[1])<1E-6){aW.lineStart();for(lO=0;lO<An;++lO)aW.point((NZ=BM[lO])[0],NZ[1]);aW.lineEnd()}else Ld.push(An=new ZPx(NZ,BM,null,!0)),eq.push(An.o=new ZPx(NZ,null,An,!1)),Ld.push(An=new ZPx(eL,BM,null,!1)),eq.push(An.o=new ZPx(eL,null,An,!0))}});
if(Ld.length){eq.sort(l);ycM(Ld);ycM(eq);var lO=0;for(m=eq.length;lO<m;++lO)eq[lO].e=n=!n;n=Ld[0];for(var ED;;){for(var uO=n,Zl=!0;uO.v;)if((uO=uO.n)===n)return;l=uO.z;aW.lineStart();do{uO.v=uO.o.v=!0;if(uO.e){if(Zl)for(lO=0,m=l.length;lO<m;++lO)aW.point((ED=l[lO])[0],ED[1]);else hM(uO.x,uO.n.x,1,aW);uO=uO.n}else{if(Zl)for(l=uO.p.z,lO=l.length-1;lO>=0;--lO)aW.point((ED=l[lO])[0],ED[1]);else hM(uO.x,uO.p.x,-1,aW);uO=uO.p}uO=uO.o;l=uO.z;Zl=!Zl}while(!uO.v);aW.lineEnd()}}}
function ycM(m){if(l=m.length){for(var l,n=0,hM=m[0],aW;++n<l;)hM.n=aW=m[n],aW.p=hM,hM=aW;hM.n=aW=m[0];aW.p=hM}}
function HCU(m){return m.length>1}
function $8J(m,l){return((m=m.x)[0]<0?m[1]-$u-1E-6:$u-m[1])-((l=l.x)[0]<0?l[1]-$u-1E-6:$u-l[1])}
function DJ4(){}
function FuH(m){return function(l,n){var hM=K$(l),aW=K$(n);hM=m(hM*aW);return[hM*aW*NR(l),hM*NR(n)]}}
function V3(m){return function(l,n){var hM=gLa(l*l+n*n),aW=m(hM),Ld=NR(aW);aW=K$(aW);return[AcM(l*Ld,hM*aW),ELz(hM&&n*Ld/hM)]}}
function Kw0(m){var l=0,n=m.children,hM=n&&n.length;if(hM)for(;--hM>=0;)l+=n[hM].value;else l=1;m.value=l}
function TWM(m,l){var n=new kQ(m);m=+m.value&&(n.value=m.value);var hM,aW=[n],Ld,eq,lO,ED;for(l==null&&(l=OCC);hM=aW.pop();)if(m&&(hM.value=+hM.data.value),(eq=l(hM.data))&&(ED=eq.length))for(hM.children=Array(ED),lO=ED-1;lO>=0;--lO)aW.push(Ld=hM.children[lO]=new kQ(eq[lO])),Ld.parent=hM,Ld.depth=hM.depth+1;return n.eachBefore(nT0)}
function OCC(m){return m.children}
function Xtx(m){m.data=m.data.data}
function nT0(m){var l=0;do m.height=l;while((m=m.parent)&&m.height<++l)}
function kQ(m){this.data=m;this.depth=this.height=0;this.parent=null}
function PX(m,l,n,hM){function aW(Ld){return m(Ld=new Date(+Ld)),Ld}
aW.floor=aW;aW.ceil=function(Ld){return m(Ld=new Date(Ld-1)),l(Ld,1),m(Ld),Ld};
aW.round=function(Ld){var eq=aW(Ld),lO=aW.ceil(Ld);return Ld-eq<lO-Ld?eq:lO};
aW.offset=function(Ld,eq){return l(Ld=new Date(+Ld),eq==null?1:Math.floor(eq)),Ld};
aW.range=function(Ld,eq,lO){var ED=[],uO;Ld=aW.ceil(Ld);lO=lO==null?1:Math.floor(lO);if(!(Ld<eq&&lO>0))return ED;do ED.push(uO=new Date(+Ld)),l(Ld,lO),m(Ld);while(uO<Ld&&Ld<eq);return ED};
aW.filter=function(Ld){return PX(function(eq){if(eq>=eq)for(;m(eq),!Ld(eq);)eq.setTime(eq-1)},function(eq,lO){if(eq>=eq)if(lO<0)for(;++lO<=0;)for(;l(eq,-1),!Ld(eq););
else for(;--lO>=0;)for(;l(eq,1),!Ld(eq););})};
n&&(aW.count=function(Ld,eq){lX$.setTime(+Ld);r64.setTime(+eq);m(lX$);m(r64);return Math.floor(n(lX$,r64))},aW.every=function(Ld){Ld=Math.floor(Ld);
return isFinite(Ld)&&Ld>0?Ld>1?aW.filter(hM?function(eq){return hM(eq)%Ld===0}:function(eq){return aW.count(0,eq)%Ld===0}):aW:null});
return aW}
function hu(m){return PX(function(l){l.setDate(l.getDate()-(l.getDay()+7-m)%7);l.setHours(0,0,0,0)},function(l,n){l.setDate(l.getDate()+n*7)},function(l,n){return(n-l-(n.getTimezoneOffset()-l.getTimezoneOffset())*6E4)/6048E5})}
function Ey(m){return PX(function(l){l.setUTCDate(l.getUTCDate()-(l.getUTCDay()+7-m)%7);l.setUTCHours(0,0,0,0)},function(l,n){l.setUTCDate(l.getUTCDate()+n*7)},function(l,n){return(n-l)/6048E5})}
function YUG(m){if(0<=m.y&&m.y<100){var l=new Date(-1,m.m,m.d,m.H,m.M,m.S,m.L);l.setFullYear(m.y);return l}return new Date(m.y,m.m,m.d,m.H,m.M,m.S,m.L)}
function MsW(m){if(0<=m.y&&m.y<100){var l=new Date(Date.UTC(-1,m.m,m.d,m.H,m.M,m.S,m.L));l.setUTCFullYear(m.y);return l}return new Date(Date.UTC(m.y,m.m,m.d,m.H,m.M,m.S,m.L))}
function y3(m){return{y:m,m:0,d:1,H:0,M:0,S:0,L:0}}
function sxI(m){function l(YU,JL){return function(ci){var DR=[],Y3=-1,Yw=0,Z_=YU.length,RC,MM;for(ci instanceof Date||(ci=new Date(+ci));++Y3<Z_;)if(YU.charCodeAt(Y3)===37){DR.push(YU.slice(Yw,Y3));(Yw=bSf[RC=YU.charAt(++Y3)])!=null?RC=YU.charAt(++Y3):Yw=RC==="e"?" ":"0";if(MM=JL[RC])RC=MM(ci,Yw);DR.push(RC);Yw=Y3+1}DR.push(YU.slice(Yw,Y3));return DR.join("")}}
function n(YU,JL){return function(ci){var DR=y3(1900);if(hM(DR,YU,ci,0)!=ci.length)return null;if("Q"in DR)return new Date(DR.Q);"p"in DR&&(DR.H=DR.H%12+DR.p*12);if("V"in DR){if(DR.V<1||DR.V>53)return null;"w"in DR||(DR.w=1);if("Z"in DR){ci=MsW(y3(DR.y));var Y3=ci.getUTCDay();ci=Y3>4||Y3===0?mJu.ceil(ci):mJu(ci);ci=upM.offset(ci,(DR.V-1)*7);DR.y=ci.getUTCFullYear();DR.m=ci.getUTCMonth();DR.d=ci.getUTCDate()+(DR.w+6)%7}else ci=JL(y3(DR.y)),Y3=ci.getDay(),ci=Y3>4||Y3===0?vl$.ceil(ci):vl$(ci),ci=QSl.offset(ci,
(DR.V-1)*7),DR.y=ci.getFullYear(),DR.m=ci.getMonth(),DR.d=ci.getDate()+(DR.w+6)%7}else if("W"in DR||"U"in DR)"w"in DR||(DR.w="u"in DR?DR.u%7:"W"in DR?1:0),Y3="Z"in DR?MsW(y3(DR.y)).getUTCDay():JL(y3(DR.y)).getDay(),DR.m=0,DR.d="W"in DR?(DR.w+6)%7+DR.W*7-(Y3+5)%7:DR.w+DR.U*7-(Y3+6)%7;return"Z"in DR?(DR.H+=DR.Z/100|0,DR.M+=DR.Z%100,MsW(DR)):JL(DR)}}
function hM(YU,JL,ci,DR){for(var Y3=0,Yw=JL.length,Z_=ci.length,RC;Y3<Yw;){if(DR>=Z_)return-1;RC=JL.charCodeAt(Y3++);if(RC===37){if(RC=JL.charAt(Y3++),RC=a8[RC in bSf?JL.charAt(Y3++):RC],!RC||(DR=RC(YU,ci,DR))<0)return-1}else if(RC!=ci.charCodeAt(DR++))return-1}return DR}
var aW=m.dateTime,Ld=m.date,eq=m.time,lO=m.periods,ED=m.days,uO=m.shortDays,Zl=m.months,BM=m.shortMonths,An=Fx(lO),NZ=AF(lO),eL=Fx(ED),sZ=AF(ED),Nc=Fx(uO),Ev=AF(uO),y6=Fx(Zl),dZ=AF(Zl),F5=Fx(BM),Fh=AF(BM),dO={a:function(YU){return uO[YU.getDay()]},
A:function(YU){return ED[YU.getDay()]},
b:function(YU){return BM[YU.getMonth()]},
B:function(YU){return Zl[YU.getMonth()]},
c:null,d:hgf,e:hgf,f:Vip,H:khi,I:ymZ,j:Fwx,L:Eln,m:AmU,M:TcC,p:function(YU){return lO[+(YU.getHours()>=12)]},
Q:glC,s:Z6k,S:bCZ,u:u2c,U:QxC,V:hFG,w:EmJ,W:gmU,x:null,X:null,y:ZSp,Y:MnX,Z:Wuc,"%":M1f},bx={a:function(YU){return uO[YU.getUTCDay()]},
A:function(YU){return ED[YU.getUTCDay()]},
b:function(YU){return BM[YU.getUTCMonth()]},
B:function(YU){return Zl[YU.getUTCMonth()]},
c:null,d:WaD,e:WaD,f:pZ0,H:GVZ,I:zFC,j:aIc,L:p4n,m:ccc,M:iSC,p:function(YU){return lO[+(YU.getUTCHours()>=12)]},
Q:glC,s:Z6k,S:omC,u:IIp,U:RFC,V:PcI,w:BWG,W:UPc,x:null,X:null,y:LuR,Y:jSc,Z:dPJ,"%":M1f},a8={a:function(YU,JL,ci){return(JL=Nc.exec(JL.slice(ci)))?(YU.w=Ev[JL[0].toLowerCase()],ci+JL[0].length):-1},
A:function(YU,JL,ci){return(JL=eL.exec(JL.slice(ci)))?(YU.w=sZ[JL[0].toLowerCase()],ci+JL[0].length):-1},
b:function(YU,JL,ci){return(JL=F5.exec(JL.slice(ci)))?(YU.m=Fh[JL[0].toLowerCase()],ci+JL[0].length):-1},
B:function(YU,JL,ci){return(JL=y6.exec(JL.slice(ci)))?(YU.m=dZ[JL[0].toLowerCase()],ci+JL[0].length):-1},
c:function(YU,JL,ci){return hM(YU,aW,JL,ci)},
d:Grl,e:Grl,f:CcX,H:zgM,I:zgM,j:Jcp,L:eFx,m:qkI,M:fIU,p:function(YU,JL,ci){return(JL=An.exec(JL.slice(ci)))?(YU.p=NZ[JL[0].toLowerCase()],ci+JL[0].length):-1},
Q:NWX,s:tnI,S:SkU,u:xPU,U:wZG,V:DPR,w:lIp,W:rcU,x:function(YU,JL,ci){return hM(YU,Ld,JL,ci)},
X:function(YU,JL,ci){return hM(YU,eq,JL,ci)},
y:mPU,Y:vmC,Z:HSG,"%":$PI};dO.x=l(Ld,dO);dO.X=l(eq,dO);dO.c=l(aW,dO);bx.x=l(Ld,bx);bx.X=l(eq,bx);bx.c=l(aW,bx);return{format:function(YU){var JL=l(YU,dO);JL.toString=function(){return YU};
return JL},
parse:function(YU){var JL=n(YU,YUG);JL.toString=function(){return YU};
return JL},
utcFormat:function(YU){var JL=l(YU,bx);JL.toString=function(){return YU};
return JL},
utcParse:function(YU){var JL=n(YU,MsW);JL.toString=function(){return YU};
return JL}}}
function jX(m,l,n){var hM=m<0?"-":"";m=(hM?-m:m)+"";var aW=m.length;return hM+(aW<n?Array(n-aW+1).join(l)+m:m)}
function KuG(m){return m.replace(OS0,"\\$&")}
function Fx(m){return new RegExp("^(?:"+m.map(KuG).join("|")+")","i")}
function AF(m){for(var l={},n=-1,hM=m.length;++n<hM;)l[m[n].toLowerCase()]=n;return l}
function lIp(m,l,n){return(l=Ce.exec(l.slice(n,n+1)))?(m.w=+l[0],n+l[0].length):-1}
function xPU(m,l,n){return(l=Ce.exec(l.slice(n,n+1)))?(m.u=+l[0],n+l[0].length):-1}
function wZG(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.U=+l[0],n+l[0].length):-1}
function DPR(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.V=+l[0],n+l[0].length):-1}
function rcU(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.W=+l[0],n+l[0].length):-1}
function vmC(m,l,n){return(l=Ce.exec(l.slice(n,n+4)))?(m.y=+l[0],n+l[0].length):-1}
function mPU(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.y=+l[0]+(+l[0]>68?1900:2E3),n+l[0].length):-1}
function HSG(m,l,n){return(l=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(l.slice(n,n+6)))?(m.Z=l[1]?0:-(l[2]+(l[3]||"00")),n+l[0].length):-1}
function qkI(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.m=l[0]-1,n+l[0].length):-1}
function Grl(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.d=+l[0],n+l[0].length):-1}
function Jcp(m,l,n){return(l=Ce.exec(l.slice(n,n+3)))?(m.m=0,m.d=+l[0],n+l[0].length):-1}
function zgM(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.H=+l[0],n+l[0].length):-1}
function fIU(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.M=+l[0],n+l[0].length):-1}
function SkU(m,l,n){return(l=Ce.exec(l.slice(n,n+2)))?(m.S=+l[0],n+l[0].length):-1}
function eFx(m,l,n){return(l=Ce.exec(l.slice(n,n+3)))?(m.L=+l[0],n+l[0].length):-1}
function CcX(m,l,n){return(l=Ce.exec(l.slice(n,n+6)))?(m.L=Math.floor(l[0]/1E3),n+l[0].length):-1}
function $PI(m,l,n){return(m=nmX.exec(l.slice(n,n+1)))?n+m[0].length:-1}
function NWX(m,l,n){return(l=Ce.exec(l.slice(n)))?(m.Q=+l[0],n+l[0].length):-1}
function tnI(m,l,n){return(l=Ce.exec(l.slice(n)))?(m.Q=+l[0]*1E3,n+l[0].length):-1}
function hgf(m,l){return jX(m.getDate(),l,2)}
function khi(m,l){return jX(m.getHours(),l,2)}
function ymZ(m,l){return jX(m.getHours()%12||12,l,2)}
function Fwx(m,l){return jX(1+QSl.count(db(m),m),l,3)}
function Eln(m,l){return jX(m.getMilliseconds(),l,3)}
function Vip(m,l){return Eln(m,l)+"000"}
function AmU(m,l){return jX(m.getMonth()+1,l,2)}
function TcC(m,l){return jX(m.getMinutes(),l,2)}
function bCZ(m,l){return jX(m.getSeconds(),l,2)}
function u2c(m){m=m.getDay();return m===0?7:m}
function QxC(m,l){return jX(XZJ.count(db(m),m),l,2)}
function hFG(m,l){var n=m.getDay();m=n>=4||n===0?H6d(m):H6d.ceil(m);return jX(H6d.count(db(m),m)+(db(m).getDay()===4),l,2)}
function EmJ(m){return m.getDay()}
function gmU(m,l){return jX(vl$.count(db(m),m),l,2)}
function ZSp(m,l){return jX(m.getFullYear()%100,l,2)}
function MnX(m,l){return jX(m.getFullYear()%1E4,l,4)}
function Wuc(m){m=m.getTimezoneOffset();return(m>0?"-":(m*=-1,"+"))+jX(m/60|0,"0",2)+jX(m%60,"0",2)}
function WaD(m,l){return jX(m.getUTCDate(),l,2)}
function GVZ(m,l){return jX(m.getUTCHours(),l,2)}
function zFC(m,l){return jX(m.getUTCHours()%12||12,l,2)}
function aIc(m,l){return jX(1+upM.count(C_(m),m),l,3)}
function p4n(m,l){return jX(m.getUTCMilliseconds(),l,3)}
function pZ0(m,l){return p4n(m,l)+"000"}
function ccc(m,l){return jX(m.getUTCMonth()+1,l,2)}
function iSC(m,l){return jX(m.getUTCMinutes(),l,2)}
function omC(m,l){return jX(m.getUTCSeconds(),l,2)}
function IIp(m){m=m.getUTCDay();return m===0?7:m}
function RFC(m,l){return jX(Yki.count(C_(m),m),l,2)}
function PcI(m,l){var n=m.getUTCDay();m=n>=4||n===0?$JM(m):$JM.ceil(m);return jX($JM.count(C_(m),m)+(C_(m).getUTCDay()===4),l,2)}
function BWG(m){return m.getUTCDay()}
function UPc(m,l){return jX(mJu.count(C_(m),m),l,2)}
function LuR(m,l){return jX(m.getUTCFullYear()%100,l,2)}
function jSc(m,l){return jX(m.getUTCFullYear()%1E4,l,4)}
function dPJ(){return"+0000"}
function M1f(){return"%"}
function glC(m){return+m}
function Z6k(m){return Math.floor(+m/1E3)}
function PR(m){for(var l=m.length/6|0,n=Array(l),hM=0;hM<l;)n[hM]="#"+m.slice(hM*6,++hM*6);return n}
function sW(m){return sS0(m[m.length-1])}
function Wg$(m){var l=m.length;return function(n){return m[Math.max(0,Math.min(l-1,Math.floor(n*l)))]}}
function aXm(m){this._context=m}
function c6M(m){this._curve=m}
function i6C(m,l,n){var hM=m._x1-m._x0;l-=m._x1;var aW=(m._y1-m._y0)/(hM||l<0&&-0);m=(n-m._y1)/(l||hM<0&&-0);return((aW<0?-1:1)+(m<0?-1:1))*Math.min(Math.abs(aW),Math.abs(m),.5*Math.abs((aW*l+m*hM)/(hM+l)))||0}
function olD(m,l){var n=m._x1-m._x0;return n?(3*(m._y1-m._y0)/n-l)/2:l}
function Ka$(m,l,n){var hM=m._x0,aW=m._x1,Ld=m._y1,eq=(aW-hM)/3;m._context.bezierCurveTo(hM+eq,m._y0+eq*l,aW-eq,Ld-eq*n,aW,Ld)}
function O6O(m){this._context=m}
function IXl(m){this._context=m}
function TX(m,l,n){this.k=m;this.x=l;this.y=n}
(function(m){m.length===1&&(m=E(m));return{left:function(l,n,hM,aW){hM==null&&(hM=0);aW==null&&(aW=l.length);for(;hM<aW;){var Ld=hM+aW>>>1;m(l[Ld],n)<0?hM=Ld+1:aW=Ld}return hM},
right:function(l,n,hM,aW){hM==null&&(hM=0);aW==null&&(aW=l.length);for(;hM<aW;){var Ld=hM+aW>>>1;m(l[Ld],n)>0?aW=Ld:hM=Ld+1}return hM}}})(h);
var H1G={value:function(){}};
Z.prototype=g.prototype={constructor:Z,on:function(m,l){var n=this._,hM=M(m+"",n),aW,Ld=-1,eq=hM.length;if(arguments.length<2)for(;++Ld<eq;){var lO;if(lO=aW=(m=hM[Ld]).type){a:{lO=n[aW];for(var ED=0,uO=lO.length;ED<uO;++ED)if((aW=lO[ED]).name===m.name){aW=aW.value;break a}aW=void 0}lO=aW}if(lO)return aW}else{if(l!=null&&typeof l!=="function")throw Error("De`"+l);for(;++Ld<eq;)if(aW=(m=hM[Ld]).type)n[aW]=W(n[aW],m.name,l);else if(l==null)for(aW in n)n[aW]=W(n[aW],m.name,null);return this}},
copy:function(){var m={},l=this._,n;for(n in l)m[n]=l[n].slice();return new Z(m)},
call:function(m,l){if((aW=arguments.length-2)>0)for(var n=Array(aW),hM=0,aW,Ld;hM<aW;++hM)n[hM]=arguments[hM+2];if(!this._.hasOwnProperty(m))throw Error("xe`"+m);Ld=this._[m];hM=0;for(aW=Ld.length;hM<aW;++hM)Ld[hM].value.apply(l,n)},
apply:function(m,l,n){if(!this._.hasOwnProperty(m))throw Error("xe`"+m);m=this._[m];for(var hM=0,aW=m.length;hM<aW;++hM)m[hM].value.apply(l,n)}};
var Hw={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/"},RgF=function(m){return function(){return this.matches(m)}};
if(typeof document!=="undefined"){var bR=document.documentElement;if(!bR.matches){var VnZ=bR.webkitMatchesSelector||bR.msMatchesSelector||bR.mozMatchesSelector||bR.oMatchesSelector;RgF=function(m){return function(){return VnZ.call(this,m)}}}}var Pkm=RgF;
C.prototype={constructor:C,appendChild:function(m){return this._parent.insertBefore(m,this._next)},
insertBefore:function(m,l){return this._parent.insertBefore(m,l)},
querySelector:function(m){return this._parent.querySelector(m)},
querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};
var Lul={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(Lul={mouseenter:"mouseover",mouseleave:"mouseout"}));var $Mp=[null];FC.prototype=jx.prototype={constructor:FC,select:function(m){typeof m!=="function"&&(m=L(m));for(var l=this._groups,n=l.length,hM=Array(n),aW=0;aW<n;++aW)for(var Ld=l[aW],eq=Ld.length,lO=hM[aW]=Array(eq),ED,uO,Zl=0;Zl<eq;++Zl)(ED=Ld[Zl])&&(uO=m.call(ED,ED.__data__,Zl,Ld))&&("__data__"in ED&&(uO.__data__=ED.__data__),lO[Zl]=uO);return new FC(hM,
this._parents)},
filter:function(m){typeof m!=="function"&&(m=Pkm(m));for(var l=this._groups,n=l.length,hM=Array(n),aW=0;aW<n;++aW)for(var Ld=l[aW],eq=Ld.length,lO=hM[aW]=[],ED,uO=0;uO<eq;++uO)(ED=Ld[uO])&&m.call(ED,ED.__data__,uO,Ld)&&lO.push(ED);return new FC(hM,this._parents)},
data:function(m,l){if(!m)return NZ=Array(this.size()),uO=-1,this.each(function(y6){NZ[++uO]=y6}),NZ;
var n=l?r:w,hM=this._parents,aW=this._groups;typeof m!=="function"&&(m=q(m));for(var Ld=aW.length,eq=Array(Ld),lO=Array(Ld),ED=Array(Ld),uO=0;uO<Ld;++uO){var Zl=hM[uO],BM=aW[uO],An=BM.length,NZ=m.call(Zl,Zl&&Zl.__data__,uO,hM),eL=NZ.length,sZ=lO[uO]=Array(eL),Nc=eq[uO]=Array(eL);An=ED[uO]=Array(An);n(Zl,BM,sZ,Nc,An,NZ,l);BM=Zl=0;for(var Ev;Zl<eL;++Zl)if(An=sZ[Zl]){for(Zl>=BM&&(BM=Zl+1);!(Ev=Nc[BM])&&++BM<eL;);An._next=Ev||null}}eq=new FC(eq,hM);eq._enter=lO;eq._exit=ED;return eq},
enter:function(){return new FC(this._enter||this._groups.map(d),this._parents)},
exit:function(){return new FC(this._exit||this._groups.map(d),this._parents)},
merge:function(m){var l=this._groups;m=m._groups;for(var n=l.length,hM=Math.min(n,m.length),aW=Array(n),Ld=0;Ld<hM;++Ld)for(var eq=l[Ld],lO=m[Ld],ED=eq.length,uO=aW[Ld]=Array(ED),Zl,BM=0;BM<ED;++BM)if(Zl=eq[BM]||lO[BM])uO[BM]=Zl;for(;Ld<n;++Ld)aW[Ld]=l[Ld];return new FC(aW,this._parents)},
order:function(){for(var m=this._groups,l=-1,n=m.length;++l<n;)for(var hM=m[l],aW=hM.length-1,Ld=hM[aW],eq;--aW>=0;)if(eq=hM[aW])Ld&&Ld!==eq.nextSibling&&Ld.parentNode.insertBefore(eq,Ld),Ld=eq;return this},
sort:function(m){function l(BM,An){return BM&&An?m(BM.__data__,An.__data__):!BM-!An}
m||(m=v);for(var n=this._groups,hM=n.length,aW=Array(hM),Ld=0;Ld<hM;++Ld){for(var eq=n[Ld],lO=eq.length,ED=aW[Ld]=Array(lO),uO,Zl=0;Zl<lO;++Zl)if(uO=eq[Zl])ED[Zl]=uO;ED.sort(l)}return(new FC(aW,this._parents)).order()},
call:function(){var m=arguments[0];arguments[0]=this;m.apply(null,arguments);return this},
nodes:function(){var m=Array(this.size()),l=-1;this.each(function(){m[++l]=this});
return m},
node:function(){for(var m=this._groups,l=0,n=m.length;l<n;++l)for(var hM=m[l],aW=0,Ld=hM.length;aW<Ld;++aW){var eq=hM[aW];if(eq)return eq}return null},
size:function(){var m=0;this.each(function(){++m});
return m},
empty:function(){return!this.node()},
each:function(m){for(var l=this._groups,n=0,hM=l.length;n<hM;++n)for(var aW=l[n],Ld=0,eq=aW.length,lO;Ld<eq;++Ld)(lO=aW[Ld])&&m.call(lO,lO.__data__,Ld,aW);return this},
attr:function(m,l){var n=z(m);if(arguments.length<2){var hM=this.node();return n.local?hM.getAttributeNS(n.space,n.local):hM.getAttribute(n)}return this.each((l==null?n.local?u:H:typeof l==="function"?n.local?E4:A:n.local?y:k)(n,l))},
style:function(m,l,n){return arguments.length>1?this.each((l==null?iO:typeof l==="function"?NN:RW)(m,l,n==null?"":n)):Cd(this.node(),m)},
property:function(m,l){return arguments.length>1?this.each((l==null?Ba:typeof l==="function"?Ha:$$)(m,l)):this.node()[m]},
text:function(m){return arguments.length?this.each(m==null?zf:(typeof m==="function"?Rm:eF)(m)):this.node().textContent},
html:function(m){return arguments.length?this.each(m==null?bO:(typeof m==="function"?PM:jF)(m)):this.node().innerHTML},
append:function(m){var l=typeof m==="function"?m:B(m);return this.select(function(){return this.appendChild(l.apply(this,arguments))})},
insert:function(m,l){var n=typeof m==="function"?m:B(m),hM=l==null?ll:typeof l==="function"?l:L(l);return this.select(function(){return this.insertBefore(n.apply(this,arguments),hM.apply(this,arguments)||null)})},
remove:function(){return this.each(xU)},
clone:function(m){return this.select(m?pd:pU)},
datum:function(m){return arguments.length?this.property("__data__",m):this.node().__data__},
on:function(m,l,n){var hM=E0(m+""),aW=hM.length,Ld;if(arguments.length<2){var eq=this.node().__on;if(eq)for(var lO=0,ED=eq.length,uO;lO<ED;++lO){var Zl=0;for(uO=eq[lO];Zl<aW;++Zl)if((Ld=hM[Zl]).type===uO.type&&Ld.name===uO.name)return uO.value}}else{eq=l?Qk:Im;n==null&&(n=!1);for(Zl=0;Zl<aW;++Zl)this.each(eq(hM[Zl],l,n));return this}},
dispatch:function(m,l){return this.each((typeof l==="function"?cM:hC)(m,l))}};
var KHi=0;wB.prototype=function(){return new wB}.prototype={constructor:wB,
get:function(m){for(var l=this._;!(l in m);)if(!(m=m.parentNode))return;return m[l]},
set:function(m,l){return m[this._]=l},
remove:function(m){return this._ in m&&delete m[this._]},
toString:function(){return this._}};
var JD=1/.7,O1C=/^#([0-9a-f]{3})$/,ncG=/^#([0-9a-f]{6})$/,Xkp=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),YrI=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),sRx=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),VcR=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*\\)$"),
kgp=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),y0X=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*\\)$"),jSM={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};
fD(QF,RG,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
fD(kU,$U,U0(QF,{brighter:function(m){m=m==null?JD:Math.pow(JD,m);return new kU(this.r*m,this.g*m,this.b*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new kU(this.r*m,this.g*m,this.b*m,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+zN(this.r)+zN(this.g)+zN(this.b)},
toString:function(){var m=this.opacity;m=isNaN(m)?1:Math.max(0,Math.min(1,m));return(m===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(m===1?")":", "+m+")")}}));
fD(Ro,Fi,U0(QF,{brighter:function(m){m=m==null?JD:Math.pow(JD,m);return new Ro(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new Ro(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=this.h%360+(this.h<0)*360,l=this.l,n=l+(l<.5?l:1-l)*(isNaN(m)||isNaN(this.s)?0:this.s);l=2*l-n;return new kU(HA(m>=240?m-240:m+120,l,n),HA(m,l,n),HA(m<120?m+240:m-120,l,n),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 dPl=Math.PI/180,eFF=180/Math.PI,Jcf=4/29,L_=6/29,CcC=3*L_*L_,FH0=L_*L_*L_;fD(tM,function(m,l,n,hM){return arguments.length===1?xL(m):new tM(m,l,n,hM==null?1:hM)},U0(QF,{brighter:function(m){return new tM(this.l+18*(m==null?1:m),this.a,this.b,this.opacity)},
darker:function(m){return new tM(this.l-18*(m==null?1:m),this.a,this.b,this.opacity)},
rgb:function(){var m=(this.l+16)/116,l=isNaN(this.a)?m:m+this.a/500,n=isNaN(this.b)?m:m-this.b/200;l=.96422*k$(l);m=1*k$(m);n=.82521*k$(n);return new kU(LD(3.1338561*l-1.6168667*m-.4906146*n),LD(-.9787684*l+1.9161415*m+.033454*n),LD(.0719453*l-.2289914*m+1.4052427*n),this.opacity)}}));
fD(qA,ex,U0(QF,{brighter:function(m){return new qA(this.h,this.c,this.l+18*(m==null?1:m),this.opacity)},
darker:function(m){return new qA(this.h,this.c,this.l-18*(m==null?1:m),this.opacity)},
rgb:function(){return xL(this).rgb()}}));
var qkB=1.78277*-.29227-.1347134789;fD(rI,Jn,U0(QF,{brighter:function(m){m=m==null?JD:Math.pow(JD,m);return new rI(this.h,this.s,this.l*m,this.opacity)},
darker:function(m){m=m==null?.7:Math.pow(.7,m);return new rI(this.h,this.s,this.l*m,this.opacity)},
rgb:function(){var m=isNaN(this.h)?0:(this.h+120)*dPl,l=+this.l,n=isNaN(this.s)?0:this.s*l*(1-l),hM=Math.cos(m);m=Math.sin(m);return new kU(255*(l+n*(-.14861*hM+1.78277*m)),255*(l+n*(-.29227*hM+-.90649*m)),255*(l+1.97294*hM*n),this.opacity)}}));
var xPM=function n(l){function hM(Ld,eq){var lO=aW((Ld=$U(Ld)).r,(eq=$U(eq)).r),ED=aW(Ld.g,eq.g),uO=aW(Ld.b,eq.b),Zl=A1(Ld.opacity,eq.opacity);return function(BM){Ld.r=lO(BM);Ld.g=ED(BM);Ld.b=uO(BM);Ld.opacity=Zl(BM);return Ld+""}}
var aW=s9(l);hM.gamma=n;return hM}(1),sS0=j6(function(l){var n=l.length-1;
return function(hM){var aW=hM<=0?hM=0:hM>=1?(hM=1,n-1):Math.floor(hM*n),Ld=l[aW],eq=l[aW+1];return dU((hM-aW/n)*n,aW>0?l[aW-1]:2*Ld-eq,Ld,eq,aW<n-1?l[aW+2]:2*eq-Ld)}});
j6(function(l){var n=l.length;return function(hM){var aW=Math.floor(((hM%=1)<0?++hM:hM)*n);return dU((hM-aW/n)*n,l[(aW+n-1)%n],l[aW%n],l[(aW+1)%n],l[(aW+2)%n])}});
var dJq=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,CkO=new RegExp(dJq.source,"g"),fID=180/Math.PI,nlz={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},uR,X4a,BKm,pux,kVX=nU(function(l){if(l==="none")return nlz;uR||(uR=document.createElement("DIV"),X4a=document.documentElement,BKm=document.defaultView);uR.style.transform=l;l=BKm.getComputedStyle(X4a.appendChild(uR),null).getPropertyValue("transform");X4a.removeChild(uR);l=l.slice(7,-1).split(",");return dI(+l[0],+l[1],+l[2],+l[3],
+l[4],+l[5])},"px, ","px)","deg)"),ycU=nU(function(l){if(l==null)return nlz;
pux||(pux=document.createElementNS("http://www.w3.org/2000/svg","g"));pux.setAttribute("transform",l);if(!(l=pux.transform.baseVal.consolidate()))return nlz;l=l.matrix;return dI(l.a,l.b,l.c,l.d,l.e,l.f)},", ",")",")");
zp(KM);zp(A1);If(KM);If(A1);Ab(KM);var YhN=Ab(A1),jW=0,Xx=0,sn=0,bla,YQ,TfW=0,u5=0,Ala=0,nh=typeof performance==="object"&&performance.now?performance:Date,NWC=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};
f4.prototype=Dh.prototype={constructor:f4,restart:function(l,n,hM){if(typeof l!=="function")throw new TypeError("Ee");hM=(hM==null?Yd():+hM)+(n==null?0:+n);this._next||YQ===this||(YQ?YQ._next=this:bla=this,YQ=this);this._call=l;this._time=hM;rz()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,rz())}};
var Ty0=g("start","end","interrupt"),b1p=[],FuC=jx.prototype.constructor,UJA=0,eW=jx.prototype;A6.prototype=function(l){return jx().transition(l)}.prototype={constructor:A6,
select:function(l){var n=this._name,hM=this._id;typeof l!=="function"&&(l=L(l));for(var aW=this._groups,Ld=aW.length,eq=Array(Ld),lO=0;lO<Ld;++lO)for(var ED=aW[lO],uO=ED.length,Zl=eq[lO]=Array(uO),BM,An,NZ=0;NZ<uO;++NZ)(BM=ED[NZ])&&(An=l.call(BM,BM.__data__,NZ,ED))&&("__data__"in BM&&(An.__data__=BM.__data__),Zl[NZ]=An,J6$(Zl[NZ],n,hM,NZ,Zl,wG(BM,hM)));return new A6(eq,this._parents,n,hM)},
filter:function(l){typeof l!=="function"&&(l=Pkm(l));for(var n=this._groups,hM=n.length,aW=Array(hM),Ld=0;Ld<hM;++Ld)for(var eq=n[Ld],lO=eq.length,ED=aW[Ld]=[],uO,Zl=0;Zl<lO;++Zl)(uO=eq[Zl])&&l.call(uO,uO.__data__,Zl,eq)&&ED.push(uO);return new A6(aW,this._parents,this._name,this._id)},
merge:function(l){if(l._id!==this._id)throw Error();var n=this._groups;l=l._groups;for(var hM=n.length,aW=Math.min(hM,l.length),Ld=Array(hM),eq=0;eq<aW;++eq)for(var lO=n[eq],ED=l[eq],uO=lO.length,Zl=Ld[eq]=Array(uO),BM,An=0;An<uO;++An)if(BM=lO[An]||ED[An])Zl[An]=BM;for(;eq<hM;++eq)Ld[eq]=n[eq];return new A6(Ld,this._parents,this._name,this._id)},
selection:function(){return new FuC(this._groups,this._parents)},
transition:function(){for(var l=this._name,n=this._id,hM=++UJA,aW=this._groups,Ld=aW.length,eq=0;eq<Ld;++eq)for(var lO=aW[eq],ED=lO.length,uO,Zl=0;Zl<ED;++Zl)if(uO=lO[Zl]){var BM=wG(uO,n);J6$(uO,l,hM,Zl,lO,{time:BM.time+BM.delay+BM.duration,delay:0,duration:BM.duration,ease:BM.ease})}return new A6(aW,this._parents,l,hM)},
call:eW.call,nodes:eW.nodes,node:eW.node,size:eW.size,empty:eW.empty,each:eW.each,on:function(l,n){var hM=this._id;return arguments.length<2?wG(this.node(),hM).on.on(l):this.each(RtX(hM,l,n))},
attr:function(l,n){var hM=z(l),aW=hM==="transform"?ycU:SkD;return this.attrTween(l,typeof n==="function"?(hM.local?WwR:MiZ)(hM,aW,qhZ(this,"attr."+l,n)):n==null?(hM.local?ETG:htC)(hM):(hM.local?ZC0:gTG)(hM,aW,n+""))},
attrTween:function(l,n){var hM="attr."+l;if(arguments.length<2)return(hM=this.tween(hM))&&hM._value;if(n==null)return this.tween(hM,null);if(typeof n!=="function")throw Error();var aW=z(l);return this.tween(hM,(aW.local?ptU:GhZ)(aW,n))},
style:function(l,n,hM){var aW=l==="transform"?kVX:SkD;return n==null?this.styleTween(l,BcR(l,aW)).on("end.style."+l,U8c(l)):this.styleTween(l,typeof n==="function"?jxi(l,aW,qhZ(this,"style."+l,n)):Lwc(l,aW,n+""),hM)},
styleTween:function(l,n,hM){var aW="style."+l;if(arguments.length<2)return(aW=this.tween(aW))&&aW._value;if(n==null)return this.tween(aW,null);if(typeof n!=="function")throw Error();return this.tween(aW,d8C(l,n,hM==null?"":hM))},
text:function(l){return this.tween("text",typeof l==="function"?JmJ(qhZ(this,"text",l)):C_R(l==null?"":l+""))},
remove:function(){return this.on("end.remove",P_C(this._id))},
tween:function(l,n){var hM=this._id;if(arguments.length<2){hM=wG(this.node(),hM).tween;for(var aW=0,Ld=hM.length,eq;aW<Ld;++aW)if((eq=hM[aW]).name===l)return eq.value;return null}return this.each((n==null?uAU:QRC)(hM,l,n))},
delay:function(l){var n=this._id;return arguments.length?this.each((typeof l==="function"?ztJ:asc)(n,l)):wG(this.node(),n).delay},
duration:function(l){var n=this._id;return arguments.length?this.each((typeof l==="function"?cmp:iCI)(n,l)):wG(this.node(),n).duration},
ease:function(l){var n=this._id;return arguments.length?this.each(oTG(n,l)):wG(this.node(),n).ease}};
var sUZ={time:null,delay:0,duration:250,ease:function(l){return((l*=2)<=1?l*l*l:(l-=2)*l*l+2)/2}};
jx.prototype.transition=function(l){var n;if(l instanceof A6){var hM=l._id;l=l._name}else hM=++UJA,(n=sUZ).time=Yd(),l=l==null?null:l+"";for(var aW=this._groups,Ld=aW.length,eq=0;eq<Ld;++eq)for(var lO=aW[eq],ED=lO.length,uO,Zl=0;Zl<ED;++Zl)if(uO=lO[Zl]){var BM=uO,An=l,NZ=hM,eL=Zl,sZ=lO,Nc;if(!(Nc=n))a:{Nc=void 0;for(var Ev=hM;!(Nc=uO.__transition)||!(Nc=Nc[Ev]);)if(!(uO=uO.parentNode)){Nc=(sUZ.time=Yd(),sUZ);break a}}J6$(BM,An,NZ,eL,sZ,Nc)}return new A6(aW,this._parents,l,hM)};
["e","w"].map(fX$);["n","s"].map(fX$);"n e s w nw ne se sw".split(" ").map(fX$);NKO.prototype=function(){return new NKO}.prototype={constructor:NKO,
moveTo:function(l,n){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+n)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(l,n){this._+="L"+(this._x1=+l)+","+(this._y1=+n)},
bezierCurveTo:function(l,n,hM,aW,Ld,eq){this._+="C"+ +l+","+ +n+","+ +hM+","+ +aW+","+(this._x1=+Ld)+","+(this._y1=+eq)},
rect:function(l,n,hM,aW){this._+="M"+(this._x0=this._x1=+l)+","+(this._y0=this._y1=+n)+"h"+ +hM+"v"+ +aW+"h"+-hM+"Z"},
toString:function(){return this._}};
uyN.prototype=wZm.prototype={constructor:uyN,has:function(l){return" "+l in this},
get:function(l){return this[" "+l]},
set:function(l,n){this[" "+l]=n;return this},
remove:function(l){l=" "+l;return l in this&&delete this[l]},
clear:function(){for(var l in this)l[0]===" "&&delete this[l]},
keys:function(){var l=[],n;for(n in this)n[0]===" "&&l.push(n.slice(1));return l},
values:function(){var l=[],n;for(n in this)n[0]===" "&&l.push(this[n]);return l},
entries:function(){var l=[],n;for(n in this)n[0]===" "&&l.push({key:n.slice(1),value:this[n]});return l},
size:function(){var l=0,n;for(n in this)n[0]===" "&&++l;return l},
empty:function(){for(var l in this)if(l[0]===" ")return!1;return!0},
each:function(l){for(var n in this)n[0]===" "&&l(this[n],n.slice(1),this)}};
var gw=wZm.prototype;QCN.prototype=function(l,n){var hM=new QCN;if(l instanceof QCN)l.each(function(eq){hM.add(eq)});
else if(l){var aW=-1,Ld=l.length;if(n==null)for(;++aW<Ld;)hM.add(l[aW]);else for(;++aW<Ld;)hM.add(n(l[aW],aW,l))}return hM}.prototype={constructor:QCN,
has:gw.has,add:function(l){this[" "+l]=l;return this},
remove:gw.remove,clear:gw.clear,values:gw.keys,size:gw.size,empty:gw.empty,each:gw.each};var rcM={},t1q={},Acc=lIf(",").parse,TWU=lIf("\t").parse;mPM(Acc);mPM(TWU);var YA=function(l,n,hM){n=new Shq(n==null?NcC:n,hM==null?tii:hM,NaN,NaN,NaN,NaN);return l==null?n:n.addAll(l)}.prototype=Shq.prototype;
YA.copy=function(){var l=new Shq(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,hM,aW;if(!n)return l;if(!n.length)return l._root=HSm(n),l;for(hM=[{source:n,target:l._root=Array(4)}];n=hM.pop();)for(var Ld=0;Ld<4;++Ld)if(aW=n.source[Ld])aW.length?hM.push({source:aW,target:n.target[Ld]=Array(4)}):n.target[Ld]=HSm(aW);return l};
YA.add=function(l){var n=+this._x.call(null,l),hM=+this._y.call(null,l);return vmn(this.cover(n,hM),n,hM,l)};
YA.addAll=function(l){var n,hM,aW=l.length,Ld,eq,lO=Array(aW),ED=Array(aW),uO=Infinity,Zl=Infinity,BM=-Infinity,An=-Infinity;for(hM=0;hM<aW;++hM)isNaN(Ld=+this._x.call(null,n=l[hM]))||isNaN(eq=+this._y.call(null,n))||(lO[hM]=Ld,ED[hM]=eq,Ld<uO&&(uO=Ld),Ld>BM&&(BM=Ld),eq<Zl&&(Zl=eq),eq>An&&(An=eq));BM<uO&&(uO=this._x0,BM=this._x1);An<Zl&&(Zl=this._y0,An=this._y1);this.cover(uO,Zl).cover(BM,An);for(hM=0;hM<aW;++hM)vmn(this,lO[hM],ED[hM],l[hM]);return this};
YA.cover=function(l,n){if(isNaN(l=+l)||isNaN(n=+n))return this;var hM=this._x0,aW=this._y0,Ld=this._x1,eq=this._y1;if(isNaN(hM))Ld=(hM=Math.floor(l))+1,eq=(aW=Math.floor(n))+1;else if(hM>l||l>Ld||aW>n||n>eq){var lO=Ld-hM,ED=this._root,uO;switch(uO=(n<(aW+eq)/2)<<1|l<(hM+Ld)/2){case 0:do{var Zl=Array(4);Zl[uO]=ED;ED=Zl}while(lO*=2,Ld=hM+lO,eq=aW+lO,l>Ld||n>eq);break;case 1:do Zl=Array(4),Zl[uO]=ED,ED=Zl;while(lO*=2,hM=Ld-lO,eq=aW+lO,hM>l||n>eq);break;case 2:do Zl=Array(4),Zl[uO]=ED,ED=Zl;while(lO*=
2,Ld=hM+lO,aW=eq-lO,l>Ld||aW>n);break;case 3:do Zl=Array(4),Zl[uO]=ED,ED=Zl;while(lO*=2,hM=Ld-lO,aW=eq-lO,hM>l||aW>n)}this._root&&this._root.length&&(this._root=ED)}else return this;this._x0=hM;this._y0=aW;this._x1=Ld;this._y1=eq;return this};
YA.data=function(){var l=[];this.visit(function(n){if(!n.length){do l.push(n.data);while(n=n.next)}});
return l};
YA.extent=function(l){return arguments.length?this.cover(+l[0][0],+l[0][1]).cover(+l[1][0],+l[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
YA.find=function(l,n,hM){var aW=this._x0,Ld=this._y0,eq,lO,ED,uO,Zl=this._x1,BM=this._y1,An=[],NZ=this._root,eL;NZ&&An.push(new XT(NZ,aW,Ld,Zl,BM));hM==null?hM=Infinity:(aW=l-hM,Ld=n-hM,Zl=l+hM,BM=n+hM,hM*=hM);for(;eL=An.pop();)if(!(!(NZ=eL.node)||(eq=eL.x0)>Zl||(lO=eL.y0)>BM||(ED=eL.x1)<aW||(uO=eL.y1)<Ld))if(NZ.length){eL=(eq+ED)/2;var sZ=(lO+uO)/2;An.push(new XT(NZ[3],eL,sZ,ED,uO),new XT(NZ[2],eq,sZ,eL,uO),new XT(NZ[1],eL,lO,ED,sZ),new XT(NZ[0],eq,lO,eL,sZ));if(NZ=(n>=sZ)<<1|l>=eL)eL=An[An.length-
1],An[An.length-1]=An[An.length-1-NZ],An[An.length-1-NZ]=eL}else if(eL=l-+this._x.call(null,NZ.data),sZ=n-+this._y.call(null,NZ.data),eL=eL*eL+sZ*sZ,eL<hM){var Nc=Math.sqrt(hM=eL);aW=l-Nc;Ld=n-Nc;Zl=l+Nc;BM=n+Nc;Nc=NZ.data}return Nc};
YA.remove=function(l){if(isNaN(uO=+this._x.call(null,l))||isNaN(Zl=+this._y.call(null,l)))return this;var n,hM=this._root,aW,Ld=this._x0,eq=this._y0,lO=this._x1,ED=this._y1,uO,Zl,BM,An,NZ,eL,sZ;if(!hM)return this;if(hM.length)for(;;){(NZ=uO>=(BM=(Ld+lO)/2))?Ld=BM:lO=BM;(eL=Zl>=(An=(eq+ED)/2))?eq=An:ED=An;if(!(n=hM,hM=hM[sZ=eL<<1|NZ]))return this;if(!hM.length)break;if(n[sZ+1&3]||n[sZ+2&3]||n[sZ+3&3]){var Nc=n;var Ev=sZ}}for(;hM.data!==l;)if(!(aW=hM,hM=hM.next))return this;(l=hM.next)&&delete hM.next;
if(aW)return l?aW.next=l:delete aW.next,this;if(!n)return this._root=l,this;l?n[sZ]=l:delete n[sZ];(hM=n[0]||n[1]||n[2]||n[3])&&hM===(n[3]||n[2]||n[1]||n[0])&&!hM.length&&(Nc?Nc[Ev]=hM:this._root=hM);return this};
YA.removeAll=function(l){for(var n=0,hM=l.length;n<hM;++n)this.remove(l[n]);return this};
YA.root=function(){return this._root};
YA.size=function(){var l=0;this.visit(function(n){if(!n.length){do++l;while(n=n.next)}});
return l};
YA.visit=function(l){var n=[],hM,aW=this._root,Ld,eq,lO,ED,uO;for(aW&&n.push(new XT(aW,this._x0,this._y0,this._x1,this._y1));hM=n.pop();)if(!l(aW=hM.node,eq=hM.x0,lO=hM.y0,ED=hM.x1,uO=hM.y1)&&aW.length){hM=(eq+ED)/2;var Zl=(lO+uO)/2;(Ld=aW[3])&&n.push(new XT(Ld,hM,Zl,ED,uO));(Ld=aW[2])&&n.push(new XT(Ld,eq,Zl,hM,uO));(Ld=aW[1])&&n.push(new XT(Ld,hM,lO,ED,Zl));(Ld=aW[0])&&n.push(new XT(Ld,eq,lO,hM,Zl))}};
YA.visitAfter=function(l){var n=[],hM=[],aW;for(this._root&&n.push(new XT(this._root,this._x0,this._y0,this._x1,this._y1));aW=n.pop();){var Ld=aW.node;if(Ld.length){var eq,lO=aW.x0,ED=aW.y0,uO=aW.x1,Zl=aW.y1,BM=(lO+uO)/2,An=(ED+Zl)/2;(eq=Ld[0])&&n.push(new XT(eq,lO,ED,BM,An));(eq=Ld[1])&&n.push(new XT(eq,BM,ED,uO,An));(eq=Ld[2])&&n.push(new XT(eq,lO,An,BM,Zl));(eq=Ld[3])&&n.push(new XT(eq,BM,An,uO,Zl))}hM.push(aW)}for(;aW=hM.pop();)l(aW.node,aW.x0,aW.y0,aW.x1,aW.y1);return this};
YA.x=function(l){return arguments.length?(this._x=l,this):this._x};
YA.y=function(l){return arguments.length?(this._y=l,this):this._y};
var D8U=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;xJu.prototype=w4$.prototype;w4$.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 nmC,XZl={"%":function(l,n){return(l*100).toFixed(n)},
b:function(l){return Math.round(l).toString(2)},
c:function(l){return l+""},
d:function(l){return Math.round(l).toString(10)},
e:function(l,n){return l.toExponential(n)},
f:function(l,n){return l.toFixed(n)},
g:function(l,n){return l.toPrecision(n)},
o:function(l){return Math.round(l).toString(8)},
p:function(l,n){return $PB(l*100,n)},
r:$PB,s:function(l,n){var hM=hTZ(l,n);if(!hM)return l+"";var aW=hM[0];hM=hM[1];hM=hM-(nmC=Math.max(-8,Math.min(8,Math.floor(hM/3)))*3)+1;var Ld=aW.length;return hM===Ld?aW:hM>Ld?aW+Array(hM-Ld+1).join("0"):hM>0?aW.slice(0,hM)+"."+aW.slice(hM):"0."+Array(1-hM).join("0")+hTZ(l,Math.max(0,n+hM-1))[0]},
X:function(l){return Math.round(l).toString(16).toUpperCase()},
x:function(l){return Math.round(l).toString(16)}},OSD="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),bSi;
(function(l){return bSi=lsU(l)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});fz.prototype={constructor:fz,reset:function(){this.s=this.t=0},
add:function(l){Ykf(Gn4,l,this.t);Ykf(this,Gn4.s,this.s);this.s?this.t+=Gn4.t:this.s=Gn4.t},
valueOf:function(){return this.s}};
var Gn4=new fz,sv=Math.PI,$u=sv/2,Lal=sv/4,upU=sv*2,V1q=sv/180,Tr=Math.abs,kra=Math.atan,AcM=Math.atan2,K$=Math.cos,NR=Math.sin,gLa=Math.sqrt;new fz;new fz;new fz;var y6a=new fz;(function(l,n,hM,aW){return function(Ld){function eq(Fh,dO){l(Fh,dO)&&Ld.point(Fh,dO)}
function lO(Fh,dO){NZ.point(Fh,dO)}
function ED(){F5.point=lO;NZ.lineStart()}
function uO(){F5.point=eq;NZ.lineEnd()}
function Zl(Fh,dO){dZ.push([Fh,dO]);sZ.point(Fh,dO)}
function BM(){sZ.lineStart();dZ=[]}
function An(){Zl(dZ[0][0],dZ[0][1]);sZ.lineEnd();var Fh=sZ.clean(),dO=eL.result(),bx=dO.length,a8;dZ.pop();Ev.push(dZ);dZ=null;if(bx)if(Fh&1){if(bx=dO[0],(dO=bx.length-1)>0){Nc||(Ld.polygonStart(),Nc=!0);Ld.lineStart();for(Fh=0;Fh<dO;++Fh)Ld.point((a8=bx[Fh])[0],a8[1]);Ld.lineEnd()}}else bx>1&&Fh&2&&dO.push(dO.pop().concat(dO.shift())),y6.push(dO.filter(HCU))}
var NZ=n(Ld),eL=m8U(),sZ=n(eL),Nc=!1,Ev,y6,dZ,F5={point:eq,lineStart:ED,lineEnd:uO,polygonStart:function(){F5.point=Zl;F5.lineStart=BM;F5.lineEnd=An;y6=[];Ev=[]},
polygonEnd:function(){F5.point=eq;F5.lineStart=ED;F5.lineEnd=uO;var Fh=y6,dO=Fh.length;var bx=-1;for(var a8=0,YU,JL;++bx<dO;)a8+=Fh[bx].length;for(YU=Array(a8);--dO>=0;)for(JL=Fh[dO],bx=JL.length;--bx>=0;)YU[--a8]=JL[bx];y6=YU;Fh=Ev;dO=aW[0];a8=aW[1];var ci=NR(a8);bx=[NR(dO),-K$(dO),0];JL=YU=0;y6a.reset();ci===1?a8=$u+1E-6:ci===-1&&(a8=-$u-1E-6);ci=0;for(var DR=Fh.length;ci<DR;++ci)if(Yw=(Y3=Fh[ci]).length){var Y3,Yw,Z_=Y3[Yw-1],RC=Z_[0],MM=Z_[1]/2+Lal,zTx=NR(MM),jUF=K$(MM);for(MM=0;MM<Yw;++MM,RC=
FaV,zTx=dJF,jUF=Q3,Z_=apO){var apO=Y3[MM],FaV=apO[0];Q3=apO[1]/2+Lal;var dJF=NR(Q3),Q3=K$(Q3),qp=FaV-RC,A6x=qp>=0?1:-1,TK4=A6x*qp,cta=TK4>sv;zTx*=dJF;y6a.add(AcM(zTx*A6x*NR(TK4),jUF*Q3+zTx*K$(TK4)));YU+=cta?qp+A6x*upU:qp;cta^RC>=dO^FaV>=dO&&(Z_=VnA(sSD(Z_),sSD(apO)),kVC(Z_),RC=VnA(bx,Z_),kVC(RC),RC=(cta^qp>=0?-1:1)*ELz(RC[2]),a8>RC||a8===RC&&(Z_[0]||Z_[1]))&&(JL+=cta^qp>=0?1:-1)}}Fh=(YU<-1E-6||YU<1E-6&&y6a<-1E-6)^JL&1;y6.length?(Nc||(Ld.polygonStart(),Nc=!0),vTc(y6,$8J,Fh,hM,Ld)):Fh&&(Nc||(Ld.polygonStart(),
Nc=!0),Ld.lineStart(),hM(null,null,1,Ld),Ld.lineEnd());Nc&&(Ld.polygonEnd(),Nc=!1);y6=Ev=null},
sphere:function(){Ld.polygonStart();Ld.lineStart();hM(null,null,1,Ld);Ld.lineEnd();Ld.polygonEnd()}};
return F5}})(function(){return!0},function(l){var n=NaN,hM=NaN,aW=NaN,Ld;
return{lineStart:function(){l.lineStart();Ld=1},
point:function(eq,lO){var ED=eq>0?sv:-sv,uO=Tr(eq-n);if(Tr(uO-sv)<1E-6)l.point(n,hM=(hM+lO)/2>0?$u:-$u),l.point(aW,hM),l.lineEnd(),l.lineStart(),l.point(ED,hM),l.point(eq,hM),Ld=0;else if(aW!==ED&&uO>=sv){Tr(n-aW)<1E-6&&(n-=aW*1E-6);Tr(eq-ED)<1E-6&&(eq-=ED*1E-6);uO=n;var Zl=hM,BM=eq,An,NZ,eL=NR(uO-BM);hM=Tr(eL)>1E-6?kra((NR(Zl)*(NZ=K$(lO))*NR(BM)-NR(lO)*(An=K$(Zl))*NR(uO))/(An*NZ*eL)):(Zl+lO)/2;l.point(aW,hM);l.lineEnd();l.lineStart();l.point(ED,hM);Ld=0}l.point(n=eq,hM=lO);aW=ED},
lineEnd:function(){l.lineEnd();n=hM=NaN},
clean:function(){return 2-Ld}}},function(l,n,hM,aW){l==null?(hM*=$u,aW.point(-sv,hM),aW.point(0,hM),aW.point(sv,hM),aW.point(sv,0),aW.point(sv,-hM),aW.point(0,-hM),aW.point(-sv,-hM),aW.point(-sv,0),aW.point(-sv,hM)):Tr(l[0]-n[0])>1E-6?(l=l[0]<n[0]?sv:-sv,hM=hM*l/2,aW.point(-l,hM),aW.point(0,hM),aW.point(l,hM)):aW.point(n[0],n[1])},[-sv,
-$u]);new fz;new fz;new fz;new fz;DJ4.prototype={constructor:DJ4,point:function(l,n){this.stream.point(l,n)},
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()}};
K$(30*V1q);(function(l){return function(n){var hM=new DJ4,aW;for(aW in l)hM[aW]=l[aW];hM.stream=n;return hM}})({point:function(l,n){this.stream.point(l*V1q,n*V1q)}});
FuH(function(l){return gLa(2/(1+l))}).invert=V3(function(l){return 2*ELz(l/2)});
FuH(function(l){return(l=l>1?0:l<-1?sv:Math.acos(l))&&l/NR(l)}).invert=V3(function(l){return l});
gLa(3);V3(kra);V3(ELz);V3(function(l){return 2*kra(l)});
kQ.prototype=TWM.prototype={constructor:kQ,count:function(){return this.eachAfter(Kw0)},
each:function(l){var n,hM=[this],aW;do{var Ld=hM.reverse();for(hM=[];n=Ld.pop();)if(l(n),n=n.children){var eq=0;for(aW=n.length;eq<aW;++eq)hM.push(n[eq])}}while(hM.length);return this},
eachAfter:function(l){for(var n,hM=[this],aW=[],Ld,eq;n=hM.pop();)if(aW.push(n),n=n.children)for(Ld=0,eq=n.length;Ld<eq;++Ld)hM.push(n[Ld]);for(;n=aW.pop();)l(n);return this},
eachBefore:function(l){for(var n,hM=[this],aW;n=hM.pop();)if(l(n),n=n.children)for(aW=n.length-1;aW>=0;--aW)hM.push(n[aW]);return this},
sum:function(l){return this.eachAfter(function(n){for(var hM=+l(n.data)||0,aW=n.children,Ld=aW&&aW.length;--Ld>=0;)hM+=aW[Ld].value;n.value=hM})},
sort:function(l){return this.eachBefore(function(n){n.children&&n.children.sort(l)})},
path:function(l){var n=this;var hM=n;var aW=l;if(hM!==aW){var Ld=hM.ancestors(),eq=aW.ancestors(),lO=null;hM=Ld.pop();for(aW=eq.pop();hM===aW;)lO=hM,hM=Ld.pop(),aW=eq.pop();hM=lO}for(aW=[n];n!==hM;)n=n.parent,aW.push(n);for(n=aW.length;l!==hM;)aW.splice(n,0,l),l=l.parent;return aW},
ancestors:function(){for(var l=this,n=[l];l=l.parent;)n.push(l);return n},
links:function(){var l=this,n=[];l.each(function(hM){hM!==l&&n.push({source:hM.parent,target:hM})});
return n},
copy:function(){return TWM(this).eachBefore(Xtx)}};
(function(l,n){this._=l;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=n}).prototype=Object.create(kQ.prototype);
var lX$=new Date,r64=new Date,Ckl=PX(function(){},function(l,n){l.setTime(+l+n)},function(l,n){return n-l});
Ckl.every=function(l){l=Math.floor(l);return isFinite(l)&&l>0?l>1?PX(function(n){n.setTime(Math.floor(n/l)*l)},function(n,hM){n.setTime(+n+hM*l)},function(n,hM){return(hM-n)/l}):Ckl:null};
PX(function(l){l.setTime(Math.floor(l/1E3)*1E3)},function(l,n){l.setTime(+l+n*1E3)},function(l,n){return(n-l)/1E3},function(l){return l.getUTCSeconds()});
PX(function(l){l.setTime(Math.floor(l/6E4)*6E4)},function(l,n){l.setTime(+l+n*6E4)},function(l,n){return(n-l)/6E4},function(l){return l.getMinutes()});
PX(function(l){var n=l.getTimezoneOffset()*6E4%36E5;n<0&&(n+=36E5);l.setTime(Math.floor((+l-n)/36E5)*36E5+n)},function(l,n){l.setTime(+l+n*36E5)},function(l,n){return(n-l)/36E5},function(l){return l.getHours()});
var QSl=PX(function(l){l.setHours(0,0,0,0)},function(l,n){l.setDate(l.getDate()+n)},function(l,n){return(n-l-(n.getTimezoneOffset()-l.getTimezoneOffset())*6E4)/864E5},function(l){return l.getDate()-1}),XZJ=hu(0),vl$=hu(1);
hu(2);hu(3);var H6d=hu(4);hu(5);hu(6);PX(function(l){l.setDate(1);l.setHours(0,0,0,0)},function(l,n){l.setMonth(l.getMonth()+n)},function(l,n){return n.getMonth()-l.getMonth()+(n.getFullYear()-l.getFullYear())*12},function(l){return l.getMonth()});
var db=PX(function(l){l.setMonth(0,1);l.setHours(0,0,0,0)},function(l,n){l.setFullYear(l.getFullYear()+n)},function(l,n){return n.getFullYear()-l.getFullYear()},function(l){return l.getFullYear()});
db.every=function(l){return isFinite(l=Math.floor(l))&&l>0?PX(function(n){n.setFullYear(Math.floor(n.getFullYear()/l)*l);n.setMonth(0,1);n.setHours(0,0,0,0)},function(n,hM){n.setFullYear(n.getFullYear()+hM*l)}):null};
PX(function(l){l.setUTCSeconds(0,0)},function(l,n){l.setTime(+l+n*6E4)},function(l,n){return(n-l)/6E4},function(l){return l.getUTCMinutes()});
PX(function(l){l.setUTCMinutes(0,0,0)},function(l,n){l.setTime(+l+n*36E5)},function(l,n){return(n-l)/36E5},function(l){return l.getUTCHours()});
var upM=PX(function(l){l.setUTCHours(0,0,0,0)},function(l,n){l.setUTCDate(l.getUTCDate()+n)},function(l,n){return(n-l)/864E5},function(l){return l.getUTCDate()-1}),Yki=Ey(0),mJu=Ey(1);
Ey(2);Ey(3);var $JM=Ey(4);Ey(5);Ey(6);PX(function(l){l.setUTCDate(1);l.setUTCHours(0,0,0,0)},function(l,n){l.setUTCMonth(l.getUTCMonth()+n)},function(l,n){return n.getUTCMonth()-l.getUTCMonth()+(n.getUTCFullYear()-l.getUTCFullYear())*12},function(l){return l.getUTCMonth()});
var C_=PX(function(l){l.setUTCMonth(0,1);l.setUTCHours(0,0,0,0)},function(l,n){l.setUTCFullYear(l.getUTCFullYear()+n)},function(l,n){return n.getUTCFullYear()-l.getUTCFullYear()},function(l){return l.getUTCFullYear()});
C_.every=function(l){return isFinite(l=Math.floor(l))&&l>0?PX(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/l)*l);n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)},function(n,hM){n.setUTCFullYear(n.getUTCFullYear()+hM*l)}):null};
var bSf={"-":"",_:" ",0:"0"},Ce=/^\s*\d+/,nmX=/^%/,OS0=/[\\^$*+?|[\]().{}]/g,iPZ;(function(l){iPZ=sxI(l);SzH=iPZ.utcFormat;xIM=iPZ.utcParse;return iPZ})({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||SzH("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||xIM("%Y-%m-%dT%H:%M:%S.%LZ");PR("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
PR("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");PR("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");PR("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");PR("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");PR("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");PR("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
PR("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");PR("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");PR("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");PR("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");PR("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var QSJ=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(PR);sW(QSJ);var hgi=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(PR);sW(hgi);var ElC=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(PR);sW(ElC);var glX=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(PR);
sW(glX);var Z6G=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(PR);sW(Z6G);var M1p=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(PR);sW(M1p);var Wa0=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(PR);sW(Wa0);var p4C=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(PR);sW(p4C);var GrR=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(PR);sW(GrR);var zgU=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(PR);sW(zgU);var aXG=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(PR);sW(aXG);var c6c=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(PR);sW(c6c);var i6X=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(PR);sW(i6X);var ol0=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(PR);sW(ol0);var IXR=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(PR);sW(IXR);var Rgx=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(PR);sW(Rgx);var PkG=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(PR);sW(PkG);var BKG=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(PR);sW(BKG);var UJZ=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(PR);sW(UJZ);var LaJ=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(PR);sW(LaJ);var jUx=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(PR);sW(jUx);var dJx=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(PR);sW(dJx);var CkJ=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(PR);sW(CkJ);var J6I=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(PR);sW(J6I);var egR=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(PR);sW(egR);var qhi=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(PR);sW(qhi);var fXU=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(PR);sW(fXU);YhN(Jn(300,.5,0),Jn(-240,.5,1));YhN(Jn(-100,.75,.35),Jn(80,1.5,.8));YhN(Jn(260,.75,.35),Jn(80,1.5,.8));Jn();$U();Wg$(PR("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Wg$(PR("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Wg$(PR("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Wg$(PR("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
aXm.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(l,n){l=+l;n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(l,n):this._context.moveTo(l,n);break;case 1:this._point=2;default:this._context.lineTo(l,n)}}};
(function(l){function n(hM){return new c6M(l(hM))}
n._curve=l;return n})(function(l){return new aXm(l)});
c6M.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(l,n){this._curve.point(n*Math.sin(l),n*-Math.cos(l))}};
O6O.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:Ka$(this,this._t0,olD(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(l,n){var hM=NaN;l=+l;n=+n;if(l!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(l,n):this._context.moveTo(l,n);break;case 1:this._point=2;break;case 2:this._point=3;Ka$(this,olD(this,hM=i6C(this,l,n)),hM);break;default:Ka$(this,this._t0,hM=i6C(this,l,n))}this._x0=this._x1;this._x1=l;this._y0=this._y1;this._y1=n;this._t0=hM}}};
(function(l){this._context=new IXl(l)}.prototype=Object.create(O6O.prototype)).point=function(l,n){O6O.prototype.point.call(this,n,l)};
IXl.prototype={moveTo:function(l,n){this._context.moveTo(n,l)},
closePath:function(){this._context.closePath()},
lineTo:function(l,n){this._context.lineTo(n,l)},
bezierCurveTo:function(l,n,hM,aW,Ld,eq){this._context.bezierCurveTo(n,l,aW,hM,eq,Ld)}};
TX.prototype={constructor:TX,scale:function(l){return l===1?this:new TX(this.k*l,this.x,this.y)},
translate:function(l,n){return l===0&n===0?this:new TX(this.k,this.x+this.k*l,this.y+this.k*n)},
apply:function(l){return[l[0]*this.k+this.x,l[1]*this.k+this.y]},
invert:function(l){return[(l[0]-this.x)/this.k,(l[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new TX(1,0,0);Vmd=RG;Hw.svg=Hw.svg;Hw.xhtml=Hw.xhtml;Hw.xlink=Hw.xlink;Hw.xml=Hw.xml;Hw.xmlns=Hw.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 w3A="hammer_"+(Math.random()*1E6|0),DIl=function(){var h=document||document;if(!h[w3A]){var E=function(){(function(g,Z,M,W){function z(tM,Kd,k$){return setTimeout(d(tM,k$),Kd)}
function c(tM,Kd,k$){return Array.isArray(tM)?(I(tM,k$[Kd],k$),!0):!1}
function I(tM,Kd,k$){var LD;if(tM)if(tM.forEach)tM.forEach(Kd,k$);else if(tM.length!==W){var Pc=0;for(LD=tM.length;Pc<LD;Pc++)Kd.call(k$,tM[Pc],Pc,tM)}else for(Pc in tM)tM.hasOwnProperty(Pc)&&Kd.call(k$,tM[Pc],Pc,tM)}
function B(tM,Kd,k$){for(var LD=Object.keys(Kd),Pc=0,D0=LD.length;Pc<D0;Pc++)if(!k$||k$&&tM[LD[Pc]]===W)tM[LD[Pc]]=Kd[LD[Pc]];return tM}
function U(tM,Kd){return B(tM,Kd,!0)}
function L(tM,Kd,k$){Kd=Kd.prototype;var LD=tM.prototype=Object.create(Kd);LD.constructor=tM;LD._super=Kd;k$&&B(LD,k$)}
function d(tM,Kd){return function(){return tM.apply(Kd,arguments)}}
function C(tM,Kd){return typeof tM=="function"?tM.apply(Kd?Kd[0]||W:W,Kd):tM}
function q(tM,Kd,k$){I(r(Kd),function(LD){tM.addEventListener(LD,k$,!1)})}
function w(tM,Kd,k$){I(r(Kd),function(LD){tM.removeEventListener(LD,k$,!1)})}
function r(tM){return tM.trim().split(/\s+/g)}
function v(tM,Kd,k$){if(tM.indexOf&&!k$)return tM.indexOf(Kd);for(var LD=0,Pc=tM.length;LD<Pc;LD++)if(k$&&tM[LD][k$]==Kd||!k$&&tM[LD]===Kd)return LD;return-1}
function H(tM,Kd,k$){for(var LD=[],Pc=[],D0=0,ex=tM.length;D0<ex;D0++){var qA=Kd?tM[D0][Kd]:tM[D0];v(Pc,qA)<0&&LD.push(tM[D0]);Pc[D0]=qA}k$&&(LD=Kd?LD.sort(function(Jn,rI){return Jn[Kd]>rI[Kd]}):LD.sort());
return LD}
function u(tM,Kd){for(var k$,LD=Kd[0].toUpperCase()+Kd.slice(1),Pc=0,D0=cM.length;Pc<D0;Pc++)if(k$=(k$=cM[Pc])?k$+LD:Kd,k$ in tM)return k$;return W}
function k(tM,Kd){var k$=this;this.manager=tM;this.callback=Kd;this.element=tM.element;this.target=tM.options.inputTarget;this.domHandler=function(LD){C(tM.options.enable,[tM])&&k$.handler(LD)};
this.evEl&&q(this.element,this.evEl,this.domHandler);this.evTarget&&q(this.target,this.evTarget,this.domHandler);this.evWin&&q(g,this.evWin,this.domHandler)}
function y(tM){var Kd;Db?Kd=$$:mO?Kd=Ha:RG?Kd=zf:Kd=Ba;return new Kd(tM,A)}
function A(tM,Kd,k$){var LD=k$.pointers.length,Pc=k$.changedPointers.length,D0=Kd&1&&LD-Pc===0;k$.isFirst=!!D0;k$.isFinal=!!(Kd&12&&LD-Pc===0);D0&&(tM.session={});k$.eventType=Kd;Kd=tM.session;LD=k$.pointers;Pc=LD.length;Kd.firstInput||(Kd.firstInput=E4(k$));Pc>1&&!Kd.firstMultiple?Kd.firstMultiple=E4(k$):Pc===1&&(Kd.firstMultiple=!1);D0=Kd.firstInput;var ex=(Pc=Kd.firstMultiple)?Pc.center:D0.center,qA=k$.center=iO(LD);k$.timeStamp=fD();k$.deltaTime=k$.timeStamp-D0.timeStamp;k$.angle=Cd(ex,qA);k$.distance=
NN(ex,qA);D0=k$.center;ex=Kd.offsetDelta||{};qA=Kd.prevDelta||{};var Jn=Kd.prevInput||{};if(k$.eventType===1||Jn.eventType===4)qA=Kd.prevDelta={x:Jn.deltaX||0,y:Jn.deltaY||0},ex=Kd.offsetDelta={x:D0.x,y:D0.y};k$.deltaX=qA.x+(D0.x-ex.x);k$.deltaY=qA.y+(D0.y-ex.y);k$.offsetDirection=RW(k$.deltaX,k$.deltaY);Pc?(D0=Pc.pointers,D0=NN(LD[0],LD[1],$U)/NN(D0[0],D0[1],$U)):D0=1;k$.scale=D0;Pc?(Pc=Pc.pointers,LD=Cd(LD[1],LD[0],$U)-Cd(Pc[1],Pc[0],$U)):LD=0;k$.rotation=LD;ex=Kd.lastInterval||k$;LD=k$.timeStamp-
ex.timeStamp;k$.eventType!=8&&(LD>25||ex.velocity===W)?(D0=ex.deltaX-k$.deltaX,ex=ex.deltaY-k$.deltaY,qA=D0/LD||0,Jn=ex/LD||0,LD=qA,Pc=Jn,qA=wB(qA)>wB(Jn)?qA:Jn,D0=RW(D0,ex),Kd.lastInterval=k$):(qA=ex.velocity,LD=ex.velocityX,Pc=ex.velocityY,D0=ex.direction);k$.velocity=qA;k$.velocityX=LD;k$.velocityY=Pc;k$.direction=D0;Kd=tM.element;a:{for(LD=k$.srcEvent.target;LD;){if(LD==Kd){LD=!0;break a}LD=LD.parentNode}LD=!1}LD&&(Kd=k$.srcEvent.target);k$.target=Kd;tM.emit("hammer.input",k$);tM.recognize(k$);
tM.session.prevInput=k$}
function E4(tM){for(var Kd=[],k$=0;k$<tM.pointers.length;k$++)Kd[k$]={clientX:jx(tM.pointers[k$].clientX),clientY:jx(tM.pointers[k$].clientY)};return{timeStamp:fD(),pointers:Kd,center:iO(Kd),deltaX:tM.deltaX,deltaY:tM.deltaY}}
function iO(tM){var Kd=tM.length;if(Kd===1)return{x:jx(tM[0].clientX),y:jx(tM[0].clientY)};for(var k$=0,LD=0,Pc=0;Pc<Kd;Pc++)k$+=tM[Pc].clientX,LD+=tM[Pc].clientY;return{x:jx(k$/Kd),y:jx(LD/Kd)}}
function RW(tM,Kd){return tM===Kd?1:wB(tM)>=wB(Kd)?tM>0?2:4:Kd>0?8:16}
function NN(tM,Kd,k$){k$||(k$=XC);var LD=Kd[k$[0]]-tM[k$[0]];tM=Kd[k$[1]]-tM[k$[1]];return Math.sqrt(LD*LD+tM*tM)}
function Cd(tM,Kd,k$){k$||(k$=XC);return Math.atan2(Kd[k$[1]]-tM[k$[1]],Kd[k$[0]]-tM[k$[0]])*180/Math.PI}
function Ba(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;k.apply(this,arguments)}
function $$(){this.evEl=QL;this.evWin=Fi;k.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ha(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};k.apply(this,arguments)}
function zf(){k.apply(this,arguments);var tM=d(this.handler,this);this.touch=new Ha(this.manager,tM);this.mouse=new Ba(this.manager,tM)}
function eF(tM,Kd){this.manager=tM;this.set(Kd)}
function Rm(tM){if(tM.indexOf("none")>-1)return"none";var Kd=tM.indexOf("pan-x")>-1,k$=tM.indexOf("pan-y")>-1;return Kd&&k$?"pan-x pan-y":Kd||k$?Kd?"pan-x":"pan-y":tM.indexOf("manipulation")>-1?"manipulation":"auto"}
function bO(tM){this.id=U0++;this.manager=null;this.options=U(tM||{},this.defaults);tM=this.options.enable;this.options.enable=tM===W?!0:tM;this.state=1;this.simultaneous={};this.requireFail=[]}
function jF(tM){return tM==16?"down":tM==8?"up":tM==2?"left":tM==4?"right":""}
function PM(tM,Kd){return(Kd=Kd.manager)?Kd.get(tM):tM}
function ll(){bO.apply(this,arguments)}
function xU(){ll.apply(this,arguments);this.pY=this.pX=null}
function pU(){ll.apply(this,arguments)}
function pd(){bO.apply(this,arguments);this._input=this._timer=null}
function gB(){ll.apply(this,arguments)}
function CD(){ll.apply(this,arguments)}
function E0(){bO.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Im(tM,Kd){Kd=Kd||{};var k$=Kd.recognizers;Kd.recognizers=k$===W?Im.defaults.preset:k$;return new Qk(tM,Kd)}
function Qk(tM,Kd){Kd=Kd||{};this.options=U(Kd,Im.defaults);this.options.inputTarget=this.options.inputTarget||tM;this.handlers={};this.session={};this.recognizers=[];this.element=tM;this.input=y(this);this.touchAction=new eF(this,this.options.touchAction);TN(this,!0);I(Kd.recognizers,function(k$){var LD=this.add(new k$[0](k$[1]));k$[2]&&LD.recognizeWith(k$[2]);k$[3]&&LD.requireFailure(k$[2])},this)}
function TN(tM,Kd){var k$=tM.element;I(tM.options.cssProps,function(LD,Pc){k$.style[u(k$.style,Pc)]=Kd?LD:""})}
function hC(tM,Kd){var k$=Z.createEvent("Event");k$.initEvent(tM,!0,!0);k$.gesture=Kd;Kd.target.dispatchEvent(k$)}
var cM=" webkit moz MS ms o".split(" "),FC=Z.createElement("div"),jx=Math.round,wB=Math.abs,fD=Date.now,U0=1,QF=/mobile|tablet|ip(ad|hone|od)|android/i,RG="ontouchstart"in g,Db=u(g,"PointerEvent")!==W,mO=RG&&QF.test(navigator.userAgent),XC=["x","y"],$U=["clientX","clientY"];k.prototype={handler:function(){},
destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler);this.evTarget&&w(this.target,this.evTarget,this.domHandler);this.evWin&&w(g,this.evWin,this.domHandler)}};
var kU={mousedown:1,mousemove:2,mouseup:4};L(Ba,k,{handler:function(tM){var Kd=kU[tM.type];Kd&1&&tM.button===0&&(this.pressed=!0);Kd&2&&tM.which!==1&&(Kd=4);this.pressed&&this.allow&&(Kd&4&&(this.pressed=!1),this.callback(this.manager,Kd,{pointers:[tM],changedPointers:[tM],pointerType:"mouse",srcEvent:tM}))}});
var zN={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},IC={2:"touch",3:"pen",4:"mouse",5:"kinect"},QL="pointerdown",Fi="pointermove pointerup pointercancel";g.MSPointerEvent&&(QL="MSPointerDown",Fi="MSPointerMove MSPointerUp MSPointerCancel");L($$,k,{handler:function(tM){var Kd=this.store,k$=!1,LD=tM.type.toLowerCase().replace("ms","");LD=zN[LD];var Pc=IC[tM.pointerType]||tM.pointerType;LD&1&&(tM.button===0||Pc=="touch")?Kd.push(tM):LD&12&&(k$=!0);var D0=v(Kd,tM.pointerId,"pointerId");
D0<0||(Kd[D0]=tM,this.callback(this.manager,LD,{pointers:Kd,changedPointers:[tM],pointerType:Pc,srcEvent:tM}),k$&&Kd.splice(D0,1))}});
var Ro={touchstart:1,touchmove:2,touchend:4,touchcancel:8};L(Ha,k,{handler:function(tM){var Kd=Ro[tM.type];var k$=Array.prototype.slice.call(tM.touches,0);var LD=this.targetIds;if(Kd&3&&k$.length===1)LD[k$[0].identifier]=!0,LD=[k$,k$];else{var Pc,D0=Array.prototype.slice.call(tM.targetTouches,0),ex=Array.prototype.slice.call(tM.changedTouches,0),qA=[];if(Kd===1)for(k$=0,Pc=D0.length;k$<Pc;k$++)LD[D0[k$].identifier]=!0;k$=0;for(Pc=ex.length;k$<Pc;k$++)LD[ex[k$].identifier]&&qA.push(ex[k$]),Kd&12&&
delete LD[ex[k$].identifier];LD=qA.length?[H(D0.concat(qA),"identifier",!0),qA]:void 0}LD&&this.callback(this.manager,Kd,{pointers:LD[0],changedPointers:LD[1],pointerType:"touch",srcEvent:tM})}});
L(zf,k,{handler:function(tM,Kd,k$){var LD=k$.pointerType=="mouse";if(k$.pointerType=="touch")this.mouse.allow=!1;else if(LD&&!this.mouse.allow)return;Kd&12&&(this.mouse.allow=!0);this.callback(tM,Kd,k$)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var HA=u(FC.style,"touchAction"),xL=HA!==W;eF.prototype={set:function(tM){tM=="compute"&&(tM=this.compute());xL&&(this.manager.element.style[HA]=tM);this.actions=tM.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var tM=[];I(this.manager.recognizers,function(Kd){C(Kd.options.enable,[Kd])&&(tM=tM.concat(Kd.getTouchAction()))});
return Rm(tM.join(" "))},
preventDefaults:function(tM){if(!xL){var Kd=tM.srcEvent;tM=tM.offsetDirection;if(this.manager.session.prevented)Kd.preventDefault();else{var k$=this.actions,LD=k$.indexOf("none")>-1,Pc=k$.indexOf("pan-y")>-1;k$=k$.indexOf("pan-x")>-1;if(LD||Pc&&k$||Pc&&tM&6||k$&&tM&24)return this.preventSrc(Kd)}}},
preventSrc:function(tM){this.manager.session.prevented=!0;tM.preventDefault()}};
bO.prototype={defaults:{},set:function(tM){B(this.options,tM);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(tM){if(c(tM,"recognizeWith",this))return this;var Kd=this.simultaneous;tM=PM(tM,this);Kd[tM.id]||(Kd[tM.id]=tM,tM.recognizeWith(this));return this},
dropRecognizeWith:function(tM){if(c(tM,"dropRecognizeWith",this))return this;tM=PM(tM,this);delete this.simultaneous[tM.id];return this},
requireFailure:function(tM){if(c(tM,"requireFailure",this))return this;var Kd=this.requireFail;tM=PM(tM,this);v(Kd,tM)===-1&&(Kd.push(tM),tM.requireFailure(this));return this},
dropRequireFailure:function(tM){if(c(tM,"dropRequireFailure",this))return this;tM=PM(tM,this);tM=v(this.requireFail,tM);tM>-1&&this.requireFail.splice(tM,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(tM){return!!this.simultaneous[tM.id]},
emit:function(tM){function Kd(Pc){k$.manager.emit(k$.options.event+(Pc?LD&16?"cancel":LD&8?"end":LD&4?"move":LD&2?"start":"":""),tM)}
var k$=this,LD=this.state;LD<8&&Kd(!0);Kd();LD>=8&&Kd(!0)},
tryEmit:function(tM){if(this.canEmit())return this.emit(tM);this.state=32},
canEmit:function(){for(var tM=0;tM<this.requireFail.length;tM++)if(!(this.requireFail[tM].state&33))return!1;return!0},
recognize:function(tM){tM=B({},tM);C(this.options.enable,[this,tM])?(this.state&56&&(this.state=1),this.state=this.process(tM),this.state&30&&this.tryEmit(tM)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
L(ll,bO,{defaults:{pointers:1},attrTest:function(tM){var Kd=this.options.pointers;return Kd===0||tM.pointers.length===Kd},
process:function(tM){var Kd=this.state,k$=tM.eventType,LD=Kd&6;tM=this.attrTest(tM);return LD&&(k$&8||!tM)?Kd|16:LD||tM?k$&4?Kd|8:Kd&2?Kd|4:2:32}});
L(xU,ll,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var tM=this.options.direction;if(tM===30)return["none"];var Kd=[];tM&6&&Kd.push("pan-y");tM&24&&Kd.push("pan-x");return Kd},
directionTest:function(tM){var Kd=this.options,k$=!0,LD=tM.distance,Pc=tM.direction,D0=tM.deltaX,ex=tM.deltaY;Pc&Kd.direction||(Kd.direction&6?(Pc=D0===0?1:D0<0?2:4,k$=D0!=this.pX,LD=Math.abs(tM.deltaX)):(Pc=ex===0?1:ex<0?8:16,k$=ex!=this.pY,LD=Math.abs(tM.deltaY)));tM.direction=Pc;return k$&&LD>Kd.threshold&&Pc&Kd.direction},
attrTest:function(tM){return ll.prototype.attrTest.call(this,tM)&&(this.state&2||!(this.state&2)&&this.directionTest(tM))},
emit:function(tM){this.pX=tM.deltaX;this.pY=tM.deltaY;var Kd=jF(tM.direction);Kd&&this.manager.emit(this.options.event+Kd,tM);this._super.emit.call(this,tM)}});
L(pU,ll,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tM){return this._super.attrTest.call(this,tM)&&(Math.abs(tM.scale-1)>this.options.threshold||this.state&2)},
emit:function(tM){this._super.emit.call(this,tM);tM.scale!==1&&this.manager.emit(this.options.event+(tM.scale<1?"in":"out"),tM)}});
L(pd,bO,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(tM){var Kd=this.options,k$=tM.pointers.length===Kd.pointers,LD=tM.distance<Kd.threshold,Pc=tM.deltaTime>Kd.time;this._input=tM;if(!LD||!k$||tM.eventType&12&&!Pc)this.reset();else if(tM.eventType&1)this.reset(),this._timer=z(function(){this.state=8;this.tryEmit()},Kd.time,this);
else if(tM.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(tM){this.state===8&&(tM&&tM.eventType&4?this.manager.emit(this.options.event+"up",tM):(this._input.timeStamp=fD(),this.manager.emit(this.options.event,this._input)))}});
L(gB,ll,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(tM){return this._super.attrTest.call(this,tM)&&(Math.abs(tM.rotation)>this.options.threshold||this.state&2)}});
L(CD,ll,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return xU.prototype.getTouchAction.call(this)},
attrTest:function(tM){var Kd=this.options.direction;if(Kd&30)var k$=tM.velocity;else Kd&6?k$=tM.velocityX:Kd&24&&(k$=tM.velocityY);return this._super.attrTest.call(this,tM)&&Kd&tM.direction&&wB(k$)>this.options.velocity&&tM.eventType&4},
emit:function(tM){var Kd=jF(tM.direction);Kd&&this.manager.emit(this.options.event+Kd,tM);this.manager.emit(this.options.event,tM)}});
L(E0,bO,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(tM){var Kd=this.options,k$=tM.pointers.length===Kd.pointers,LD=tM.distance<Kd.threshold,Pc=tM.deltaTime<Kd.time;this.reset();if(tM.eventType&1&&this.count===0)return this.failTimeout();if(LD&&Pc&&k$){if(tM.eventType!=4)return this.failTimeout();k$=this.pTime?tM.timeStamp-this.pTime<Kd.interval:!0;LD=!this.pCenter||NN(this.pCenter,tM.center)<Kd.posThreshold;this.pTime=tM.timeStamp;this.pCenter=tM.center;LD&&k$?this.count+=1:this.count=1;this._input=tM;if(this.count%Kd.taps===0)return this.hasRequireFailures()?
(this._timer=z(function(){this.state=8;this.tryEmit()},Kd.interval,this),2):8}return 32},
failTimeout:function(){this._timer=z(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))}});
Im.VERSION="2.0.2";Im.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[gB,{enable:!1}],[pU,{enable:!1},["rotate"]],[CD,{direction:6}],[xU,{direction:6},["swipe"]],[E0],[E0,{event:"doubletap",taps:2},["tap"]],[pd]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Qk.prototype={set:function(tM){B(this.options,tM);return this},
stop:function(tM){this.session.stopped=tM?2:1},
recognize:function(tM){var Kd=this.session;if(!Kd.stopped){this.touchAction.preventDefaults(tM);var k$=this.recognizers,LD=Kd.curRecognizer;if(!LD||LD&&LD.state&8)LD=Kd.curRecognizer=null;for(var Pc=0,D0=k$.length;Pc<D0;Pc++){var ex=k$[Pc];Kd.stopped===2||LD&&ex!=LD&&!ex.canRecognizeWith(LD)?ex.reset():ex.recognize(tM);!LD&&ex.state&14&&(LD=Kd.curRecognizer=ex)}}},
get:function(tM){if(tM instanceof bO)return tM;for(var Kd=this.recognizers,k$=0;k$<Kd.length;k$++)if(Kd[k$].options.event==tM)return Kd[k$];return null},
add:function(tM){if(c(tM,"add",this))return this;var Kd=this.get(tM.options.event);Kd&&this.remove(Kd);this.recognizers.push(tM);tM.manager=this;this.touchAction.update();return tM},
remove:function(tM){if(c(tM,"remove",this))return this;var Kd=this.recognizers;tM=this.get(tM);Kd.splice(v(Kd,tM),1);this.touchAction.update();return this},
on:function(tM,Kd){var k$=this.handlers;I(r(tM),function(LD){k$[LD]=k$[LD]||[];k$[LD].push(Kd)});
return this},
off:function(tM,Kd){var k$=this.handlers;I(r(tM),function(LD){Kd?k$[LD].splice(v(k$[LD],Kd),1):delete k$[LD]});
return this},
emit:function(tM,Kd){this.options.domEvents&&hC(tM,Kd);var k$=this.handlers[tM]&&this.handlers[tM].slice();if(k$&&k$.length){Kd.type=tM;Kd.preventDefault=function(){Kd.srcEvent.preventDefault()};
tM=0;for(var LD=k$.length;tM<LD;tM++)k$[tM](Kd)}},
destroy:function(){this.element&&TN(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
B(Im,{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:Qk,Input:k,TouchAction:eF,Recognizer:bO,AttrRecognizer:ll,Tap:E0,Pan:xU,Swipe:CD,Pinch:pU,Rotate:gB,Press:pd,on:q,off:w,each:I,merge:U,extend:B,inherit:L,bindFn:d,prefixed:u});
g[M]=Im})(window,document,"Hammer");
return window.Hammer}.call({});
E.DOCUMENT=h;h[w3A]=E}return h[w3A]};/*

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

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 g7l;_.E7m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");g7l=function(){var h=[],E;var g=g||_.E7m.length;for(E=0;E<8;E++)h[E]=_.E7m[0|Math.random()*g];return h.join("")};var Sjq=function(){return Math.random().toString(36).substring(7).split("").join(".")},tJZ="@@redux/INIT"+Sjq(),DgW="@@redux/REPLACE"+Sjq();var lDO=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ZuD=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Mpm="top right bottom left width height size weight".split(" "),Wql=typeof MutationObserver!=="undefined",pgm=ZuD&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,GKD=function(){this.mutationEventsAdded_=this.JSC$11759_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=rOz(this.refresh.bind(this))},zAM=function(h,
E){var g=h.observers_;
E=g.indexOf(E);~E&&g.splice(E,1);!g.length&&h.JSC$11759_connected_&&ZuD&&h.JSC$11759_connected_&&(document.removeEventListener("transitionend",h.onTransitionEnd_),window.removeEventListener("resize",h.refresh),h.mutationsObserver_&&(h.mutationsObserver_.disconnect(),pgm&&(HTMLElement.prototype.attachShadow=pgm)),h.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",h.refresh),h.mutationsObserver_=null,h.mutationEventsAdded_=!1,h.JSC$11759_connected_=!1)};
GKD.prototype.refresh=function(){aqM(this)&&this.refresh()};
var aqM=function(h){h=h.observers_.filter(function(E){return cef(E),E.activeObservations_.length>0});
h.forEach(function(E){return iuf(E)});
return h.length>0},o7C=function(h){if(ZuD&&!h.JSC$11759_connected_){document.addEventListener("transitionend",h.onTransitionEnd_);
window.addEventListener("resize",h.refresh);if(Wql){h.mutationsObserver_=new MutationObserver(h.refresh);var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};h.mutationsObserver_.observe(document,E);pgm&&(function M(Z){var W=Z.shadowRoot;W&&(h.mutationsObserver_.observe(W,E),M(W));for(Z=Z.firstElementChild;Z;)M(Z),Z=Z.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var Z=pgm.apply(this,_.VF.apply(0,arguments));
h.mutationsObserver_.observe(Z,E);return Z})}else document.addEventListener("DOMSubtreeModified",h.refresh),h.mutationEventsAdded_=!0;
h.JSC$11759_connected_=!0}};
GKD.prototype.onTransitionEnd_=function(h){var E=h.propertyName===void 0?"":h.propertyName;Mpm.some(function(g){return!!~E.indexOf(g)})&&this.refresh()};
var Iqk=null;var RAf=function(h,E){for(var g=_.G(Object.keys(E)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,Object.defineProperty(h,Z,{value:E[Z],enumerable:!1,writable:!1,configurable:!0})};var bP=function(h){var E;return(h==null?void 0:(E=h.ownerDocument)==null?void 0:E.defaultView)||globalThis};var P1l={x:0,y:0,width:0,height:0},BHC=typeof SVGGraphicsElement!=="undefined"?function(h){return h instanceof bP(h).SVGGraphicsElement}:function(h){return h instanceof bP(h).SVGElement&&typeof h.getBBox==="function"};var UTD=function(h){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=h};
UTD.prototype.isActive=function(){var h=this.target;if(ZuD)if(BHC(h)){var E=h.getBBox();E={x:0,y:0,width:E.width,height:E.height}}else{var g=h.clientWidth,Z=h.clientHeight;if(g||Z){var M=bP(h).getComputedStyle(h);E=N_(M["padding-top"]);var W=N_(M["padding-left"]),z=W+N_(M["padding-right"]),c=E+N_(M["padding-bottom"]),I=N_(M.width),B=N_(M.height);M.boxSizing==="border-box"&&(Math.round(I+z)!==g&&(I-=mgz(M,"left","right")+z),Math.round(B+c)!==Z&&(B-=mgz(M,"top","bottom")+c));h!==bP(h).document.documentElement&&
(h=Math.round(I+z)-g,Z=Math.round(B+c)-Z,Math.abs(h)!==1&&(I-=h),Math.abs(Z)!==1&&(B-=Z));E={x:W,y:E,width:I,height:B}}else E=P1l}else E=P1l;this.contentRect_=E;return E.width!==this.broadcastWidth||E.height!==this.broadcastHeight};var Lqm=function(h,E){var g=E.x;var Z=E.y;var M=E.width;E=E.height;var W=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);RAf(W,{x:g,y:Z,width:M,height:E,top:Z,right:g+M,bottom:E+Z,left:g});RAf(this,{target:h,contentRect:W})};var jdl=function(h,E){var g=Iqk;this.activeObservations_=[];this.observations_=new Map;if(typeof h!=="function")throw new TypeError("Ve");this.callback_=h;this.controller_=g;this.callbackCtx_=E};
jdl.prototype.observe=function(h){if(h===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(h instanceof bP(h).Element))throw new TypeError("Xe");var E=this.observations_;E.has(h)||(E.set(h,new UTD(h)),h=this.controller_,~h.observers_.indexOf(this)||h.observers_.push(this),h.JSC$11759_connected_||o7C(h),this.controller_.refresh())}};
jdl.prototype.unobserve=function(h){if(h===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(h instanceof bP(h).Element))throw new TypeError("Xe");var E=this.observations_;E.has(h)&&(E.delete(h),E.size||zAM(this.controller_,this))}};
jdl.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();zAM(this.controller_,this)};
var cef=function(h){h.activeObservations_.splice(0);h.observations_.forEach(function(E){E.isActive()&&h.activeObservations_.push(E)})},iuf=function(h){if(h.activeObservations_.length>0){var E=h.callbackCtx_,g=h.activeObservations_.map(function(Z){var M=Z.target,W=Z.contentRect_;
Z.broadcastWidth=W.width;Z.broadcastHeight=W.height;return new Lqm(M,W)});
h.callback_.call(E,g,E);h.activeObservations_.splice(0)}};var uP=function(h){if(!(this instanceof uP))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");Iqk||(Iqk=new GKD);this.observer_=new jdl(h,this)};
uP.prototype.observe=function(h){this.observer_.observe(h)};
uP.prototype.unobserve=function(h){this.observer_.unobserve(h)};
uP.prototype.disconnect=function(){this.observer_.disconnect()};var TvO=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:uP;var Yja="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(" "),XQO={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},nDx=null,vDz=null;var sjZ={},VJN=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 uYO={text:1},Fsz={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var dTl=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,C1M={CONSTANT:{isUnwrappable:function(h){return h instanceof Xi},
unwrap:pcB},JAVASCRIPT:{isUnwrappable:function(h){return h instanceof _.ZT},
unwrap:Wn4},HTML:{isUnwrappable:function(h){return h instanceof Fj},
unwrap:function(h){return ux(h)}},
RESOURCE_URL:{isUnwrappable:function(h){return h instanceof xr},
unwrap:_.lx},STRING:{isUnwrappable:function(h){return h instanceof Object},
unwrap:function(h){return String(h)}},
STYLE:{isUnwrappable:function(h){return typeof h==="string"},
unwrap:function(h){return h}},
URL:{isUnwrappable:function(h){return Hi(h)},
unwrap:_.$r}},Jel={CONSTANT:Qja,JAVASCRIPT:Qja,HTML:function(h){h=h instanceof Fj?h:AL(String(h).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return ux(h)},
RESOURCE_URL:Qja,STRING:String,STYLE:Qja,URL:function(h,E){h=dTl.test(h)?h:void 0;return h===void 0?E:h}};var c2q=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,hpZ=/[\t\n\f\r ]+/,gsZ=/[\t\n\f\r ,]+/g,M_4=function(h,E,g){return g},wA={},eAM=function(){var h=function(){var Z={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",Z):Z}(),E=h.createHTML(""),g=h.createScript("");
h=h.createScriptURL("");return{INNOCUOUS_STRING:E,INNOCUOUS_SCRIPT:g,INNOCUOUS_URL:h}}(),xN=eAM.INNOCUOUS_STRING,aYO=eAM.INNOCUOUS_SCRIPT,zpM=eAM.INNOCUOUS_URL;var qaF=function(h){var E=irq(h);return function(g,Z,M,W){return W?E(W,Z,M,g):xN}}({reportHandler:function(h,E){if(h)try{throw Error(E);
}catch(g){_.$W(g)}},
safeTypesBridge:function(h,E,g){var Z=C1M[E];return Z.isUnwrappable(h)&&(Z=Z.unwrap(h,g),Z!==g)?Z:(0,Jel[E])(String(h),g)},
allowedIdentifierPrefixes:[""]});if(SY!==void 0)throw Error("Ze");SY=qaF;if(SY!==qaF)throw Error("$e");DN("Injectable",[]);var $$$=DN("Inject",[["token",void 0]]),OrO=DN("Optional",[]);DN("Injectable",[]);var nsu=DN("Self",[]),X5z=DN("SkipSelf",[]);DN("Host",[]);var fqD={},NHm=function(){};
NHm.prototype.resolve=function(){throw Error("bf");};
NHm.prototype.addProvider=function(){throw Error("bf");};var vsx=Function;var tpf=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,SaH=function(){this._reflect=window.Reflect};
_.p=SaH.prototype;_.p.factory=function(h){return function(){return new (Function.prototype.bind.apply(h,[null].concat(_.$E(_.VF.apply(0,arguments)))))}};
_.p._zipTypesAndAnnotations=function(h,E){var g=typeof h==="undefined"?Array(E.length):Array(h.length);for(var Z=0;Z<g.length;Z++)g[Z]=typeof h==="undefined"?[]:h[Z]!=Object?[h[Z]]:[],E&&IYM(E[Z])&&(g[Z]=g[Z].concat(E[Z]));return g};
_.p._ownParameters=function(h,E){if(tpf.exec(h.toString()))return null;if(h.parameters&&h.parameters!==E.parameters)return h.parameters;var g=h.ctorParameters;return g&&g!==E.ctorParameters?(E=typeof g==="function"?g():g,h=E.map(function(Z){return Z&&Z.type}),E=E.map(function(Z){return Z&&PGO(Z.decorators)}),this._zipTypesAndAnnotations(h,E)):IYM(this._reflect)&&IYM(this._reflect.getOwnMetadata)&&(E=this._reflect.getOwnMetadata("parameters",h),(g=this._reflect.getOwnMetadata("design:paramtypes",h))||
E)?this._zipTypesAndAnnotations(g,E):Array(h.length).fill(void 0)};
_.p.parameters=function(h){if(!h.prototype)return[];var E=Object.getPrototypeOf(h.prototype).constructor;(h=this._ownParameters(h,E))||E===Object||(h=this.parameters(E));return h||[]};
_.p._ownAnnotations=function(h,E){if(h.annotations&&h.annotations!==E.annotations)return h=h.annotations,typeof h==="function"&&h.annotations&&(h=h.annotations),h;if(h.decorators&&h.decorators!==E.decorators)return PGO(h.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",h)};
_.p.annotations=function(h){var E=Object.getPrototypeOf(h.prototype).constructor;h=this._ownAnnotations(h,E)||[];return(E!==Object?this.annotations(E):[]).concat(h)};
_.p._ownPropMetadata=function(h,E){if(h.propMetadata&&h.propMetadata!==E.propMetadata)return h=h.propMetadata,typeof h==="function"&&h.propMetadata&&(h=h.propMetadata),h;if(h.propDecorators&&h.propDecorators!==E.propDecorators){var g=h.propDecorators,Z={};Object.keys(g).forEach(function(M){Z[M]=PGO(g[M])});
return Z}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",h)};
_.p.propMetadata=function(h){var E=Object.getPrototypeOf(h.prototype).constructor,g={};if(E!==Object){var Z=this.propMetadata(E);Object.keys(Z).forEach(function(W){g[W]=Z[W]})}var M=this._ownPropMetadata(h,E);
M&&Object.keys(M).forEach(function(W){var z=[];g.hasOwnProperty(W)&&z.push.apply(z,_.$E(g[W]));z.push.apply(z,_.$E(M[W]));g[W]=z});
return g};
_.p.getter=function(h){return function(E){return E[h]}};
_.p.setter=function(h){return function(E,g){return E[h]=g}};
_.p.method=function(h){return function(E,g){if(!E[h])throw Error("cf`"+h);return E[h].apply(E,g)}};var xTB=function(){};var wgH=function(h){this.reflectionCapabilities=h};
_.f(wgH,xTB);_.p=wgH.prototype;_.p.factory=function(h){return this.reflectionCapabilities.factory(h)};
_.p.parameters=function(h){return this.reflectionCapabilities.parameters(h)};
_.p.annotations=function(h){return this.reflectionCapabilities.annotations(h)};
_.p.propMetadata=function(h){return this.reflectionCapabilities.propMetadata(h)};
_.p.getter=function(h){return this.reflectionCapabilities.getter(h)};
_.p.setter=function(h){return this.reflectionCapabilities.setter(h)};
_.p.method=function(h){return this.reflectionCapabilities.method(h)};var qfZ=new wgH(new SaH);var QJ=function(h,E){this.token=h;this.id=E;if(h===void 0||h===null)throw Error("hf");};
_.ze.Object.defineProperties(QJ.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return lC(this.token)}}});
_.ze.Object.defineProperties(QJ,{JSC$11801_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return mr.JSC$11805_numberOfKeys}}});
var DTM=function(){this._allKeys=new Map};
DTM.prototype.get=function(h){if(h instanceof QJ)return h;if(this._allKeys.has(h))return this._allKeys.get(h);var E=new QJ(h,QJ.JSC$11801_numberOfKeys);this._allKeys.set(h,E);return E};
_.ze.Object.defineProperties(DTM.prototype,{JSC$11805_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var mr=new DTM;var YfM=function(h,E,g){this.key=h;this.optional=E;this.visibility=g},NG4=function(h){return new YfM(h,!1,null)},Sfx=[],D$$=function(h,E,g){this.key=h;
this.resolvedFactories=E;this.multiProvider=g},x$a=function(h,E,g,Z){this.factory=h;
this.dependencies=E;this.providerClass=g;this.providerValue=Z};var h0={},Er=function(h,E){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=E===void 0?null:E;h=_.G(h);for(E=h.next();!E.done;E=h.next())this.addProvider(E.value)};
_.p=Er.prototype;_.p.addProvider=function(h){this.keyIdToIndex.set(h.key.id,this.keyIds.length);this.providers.push(h);this.keyIds.push(h.key.id);this.objs.push(h0)};
_.p.resolve=function(h,E){E=E===void 0?fqD:E;return this._getByKey(mr.get(rA(h)),null,E)};
_.p._new=function(h){if(this.constructedKeyIds[h.key.id])throw CGu(this,h.key);this.constructedKeyIds[h.key.id]=!0;return this._instantiateProvider(h)};
_.p._instantiateProvider=function(h){if(h.multiProvider){for(var E=Array(h.resolvedFactories.length),g=0;g<h.resolvedFactories.length;++g)E[g]=this._instantiate(h,h.resolvedFactories[g]);return E}return this._instantiate(h,h.resolvedFactories[0])};
_.p._instantiate=function(h,E){var g=this,Z=E.factory;try{var M=E.dependencies.map(function(z){return g._getByReflectiveDependency(z)})}catch(z){throw z.addKey&&z.addKey(this,h.key),z;
}try{var W=Z.apply(null,_.$E(M))}catch(z){throw J24(this,z,h.key);}return W};
_.p._getByReflectiveDependency=function(h){return this._getByKey(h.key,h.visibility,h.optional?null:fqD)};
_.p._getByKey=function(h,E,g){return h===lqD?this:E instanceof nsu?this._getByKeySelf(h,g):this._getByKeyDefault(h,g,E)};
_.p._getObjByKeyId=function(h){for(var E=0;E<this.keyIds.length;E++)if(this.keyIds[E]===h)return this.objs[E]===h0&&(this.objs[E]=this._new(this.providers[E])),this.objs[E];return h0};
_.p._throwOrNull=function(h,E){if(E!==fqD)return E;throw d$Z(this,h);};
_.p._getByKeySelf=function(h,E){var g=this._getObjByKeyId(h.id);return g!==h0?g:this._throwOrNull(h,E)};
_.p._getByKeyDefault=function(h,E,g){for(var Z=g=g instanceof X5z?this.parent:this;g instanceof Er;){var M=g._getObjByKeyId(h.id);if(M!==h0)return M;g=g.parent}M=void 0;if(g!==null)try{var W=g.resolve(h.token,E);if(W!==h0)return W}catch(z){M=z}if(!(Z instanceof Er&&V_$(h.token))){if(M)throw M;return this._throwOrNull(h,E)}for(W=Z;W.parent instanceof Er;)W=W.parent;W.addProvider(lYz({provide:h.token,useClass:h.token}));return W.resolve(h.token,E)};
_.p.toString=function(){return this.displayName};
_.ze.Object.defineProperties(Er.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+sb$(this,function(h){return' "'+h.key.displayName+'" '}).join(", ")+"])"}}});
var lqD=mr.get(rA(NHm));(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 ref=window.XRegExp;var mTm=-1,v7F=function(h){addEventListener("pageshow",function(E){E.persisted&&(mTm=E.timeStamp,h(E))},!0)};var $Tf=function(h,E,g){var Z=Huf,M,W;return function(z){if(E.value>=0&&(z||g)){var c;if((W=E.value-((c=M)!=null?c:0))||M===void 0)M=E.value,E.delta=W,z=E.value,E.rating=z>Z[1]?"poor":z>Z[0]?"needs-improvement":"good",h(E)}}};var KqB=function(h){requestAnimationFrame(function(){return requestAnimationFrame(function(){return h()})})};var OuB=function(){var h=performance.getEntriesByType("navigation")[0];if(h&&h.responseStart>0&&h.responseStart<performance.now())return h};var n7f=function(){var h,E;return(E=(h=OuB())==null?void 0:h.activationStart)!=null?E:0};var gy=-1,XgC=new Set,YaF=function(h){if(document.visibilityState==="hidden"){if(h.type==="visibilitychange")for(var E=_.G(XgC),g=E.next();!g.done;g=E.next())g=g.value,g();isFinite(gy)||(gy=h.type==="visibilitychange"?h.timeStamp:0,removeEventListener("prerenderingchange",YaF,!0))}},sdn=function(){if(gy<0){var h=n7f(),E,g;
gy=(g=document.prerendering?void 0:(E=globalThis.performance.getEntriesByType("visibility-state").filter(function(Z){return Z.name==="hidden"&&Z.startTime>h})[0])==null?void 0:E.startTime)!=null?g:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",YaF,!0);addEventListener("prerenderingchange",YaF,!0);v7F(function(){setTimeout(function(){gy=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return gy},
onHidden:function(Z){XgC.add(Z)}}};var Vpm=function(){var h=h===void 0?-1:h;var E=OuB(),g="navigate";mTm>=0?g="back-forward-cache":E&&(document.prerendering||n7f()>0?g="prerender":document.wasDiscarded?g="restore":E.type&&(g=E.type.replace(/_/g,"-")));return{name:"LCP",value:h,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:g}};var y2u=new WeakMap;var kKl=function(h){var E=E===void 0?{}:E;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var g=new PerformanceObserver(function(Z){Promise.resolve().then(function(){h(Z.getEntries())})});
g.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},E));return g}}catch(Z){}};var yen=function(h){var E=!1;return function(){E||(h(),E=!0)}};var FqH=function(h){document.prerendering?addEventListener("prerenderingchange",function(){return h()},!0):h()};var AeD=function(h){var E=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?h():(h=yen(h),addEventListener("visibilitychange",h,{once:!0,capture:!0}),E(function(){h();removeEventListener("visibilitychange",h,{capture:!0})}))};var k7$=function(){};
k7$.prototype._processEntry=function(h){var E;(E=this._onBeforeProcessingEntry)==null||E.call(this,h)};var Huf=[2500,4E3],aZO=function(h){var E=E===void 0?{}:E;FqH(function(){var g=sdn(),Z=Vpm(),M=F9q(E),W=function(d){E.reportAllChanges||(d=d.slice(-1));d=_.G(d);for(var C=d.next();!C.done;C=d.next())C=C.value,M._processEntry(C),C.startTime<g.firstHiddenTime&&(Z.value=Math.max(C.startTime-n7f(),0),Z.entries=[C],c())},z=kKl(W);
if(z){var c=$Tf(h,Z,E.reportAllChanges);for(var I=yen(function(){W(z.takeRecords());z.disconnect();c(!0)}),B=function(d){d.isTrusted&&(AeD(I),removeEventListener(d.type,B,{capture:!0}))},U=_.G(["keydown",
"click","visibilitychange"]),L=U.next();!L.done;L=U.next())addEventListener(L.value,B,{capture:!0});v7F(function(d){Z=Vpm();c=$Tf(h,Z,E.reportAllChanges);KqB(function(){Z.value=performance.now()-d.timeStamp;c(!0)})})}})};var THl;var buk;_.F=function(){return buk!==void 0?buk:buk=document.createElement("template")};
document.head.appendChild(_.F().content);var uDl;_.OB({_template:function(){if(uDl!==void 0)return uDl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;THl===void 0&&(THl=document.createElement("template"));var Z=THl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return uDl=h},
is:"tp-yt-app-toolbar"});var Qdf;var h1l;_.ZL=function(){};
_.ZL=_.OB({_template:function(){if(h1l!==void 0)return h1l;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Qdf===void 0&&(Qdf=document.createElement("template"));var Z=Qdf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return h1l=h},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.ZL.instance||(_.ZL.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(h){this._text===h&&(h+="\u00a0");this._text="";this.async(function(){this._text=h},this.timeout)},
_onIronAnnounce:function(h){h.detail&&h.detail.text&&this.announce(h.detail.text)}});
_.ZL.instance=null;_.ZL.requestAvailability=function(){_.ZL.instance||(_.ZL.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.ZL.instance):document.addEventListener("load",function(){document.body.appendChild(_.ZL.instance)})};var EuD;var gum;/*

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
*/
_.OB({_template:function(){if(gum!==void 0)return gum;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;EuD===void 0&&(EuD=document.createElement("template"));var Z=EuD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return gum=h},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.kJ,_.OJ],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(h){this.$.textarea.selectionStart=h},set selectionEnd(h){this.$.textarea.selectionEnd=h},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var h=this.$.textarea.validity.valid;h&&(this.required&&this.value===""?h=!1:this.hasValidator()&&(h=_.kJ.validate.call(this,this.value)));this.invalid=!h;this.fire("iron-input-validate");return h},
_bindValueChanged:function(h){this.value=h},
_valueChanged:function(h){var E=this.textarea;E&&(E.value!==h&&(E.value=h||h===0?h:""),this.bindValue=h,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(h){var E=_.vl(h).path;this.value=E?E[0].value:h.target.value},
_constrain:function(h){var E;h=h||[""];for(E=this.maxRows>0&&h.length>this.maxRows?h.slice(0,this.maxRows):h.slice(0);this.rows>0&&E.length<this.rows;)E.push("");return E.join("\n")+"\u00a0"},
_valueForMirror:function(){var h=this.textarea;if(h)return this.tokens=h&&h.value?h.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Z$n;var M6F;_.OB({_template:function(){if(M6F!==void 0)return M6F;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;Z$n===void 0&&(Z$n=document.createElement("template"));var Z=Z$n;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return M6F=h},
is:"tp-yt-iron-collapse",behaviors:[_.F3],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(h,E){h=h==="auto"?"":h;E=E&&!this.noAnimation&&this.isAttached&&this._desiredSize!==h;this._desiredSize=h;this._updateTransition(!1);E&&(E=this._calcSize(),h===""&&(this.style[this._dimensionMax]="",h=this._calcSize()),this.style[this._dimensionMax]=E,this.scrollTop=this.scrollTop,this._updateTransition(!0),E=h!==E);this.style[this._dimensionMax]=h;E||this._transitionEnd()},
enableTransition:function(h){_.O1._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!h},
_updateTransition:function(h){this.style.transitionDuration=h&&!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(h){_.vl(h).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Wyk;var pwm;var G5C=void 0,z1D={properties:{sizingTarget:{type:Object,value:function(){var h;return(h=this.hostElement)!=null?h: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 h,E=_.vl((h=this.hostElement)!=null?h:
this).parentNode;E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(E=E.host);return E},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 h;this._memoizedIsRTL=window.getComputedStyle((h=this.hostElement)!=null?h:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var h;window.getComputedStyle((h=this.hostElement)!=null?h: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 h,E=window.getComputedStyle((h=this.hostElement)!=null?h:this);h=window.getComputedStyle(this.sizingTarget);var g,Z,M;this._fitInfo={inlineStyle:{top:((g=this.hostElement)!=null?g:this).style.top||"",left:((Z=this.hostElement)!=null?Z:this).style.left||"",position:((M=this.hostElement)!=null?M:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:E.top!=="auto"?"top":E.bottom!=="auto"?"bottom":null,horizontally:E.left!=="auto"?"left":E.right!=="auto"?"right":null},sizedBy:{height:h.maxHeight!=="none",width:h.maxWidth!=="none",minWidth:parseInt(h.minWidth,10)||0,minHeight:parseInt(h.minHeight,10)||0},margin:{top:parseInt(E.marginTop,10)||0,right:parseInt(E.marginRight,10)||0,bottom:parseInt(E.marginBottom,10)||0,left:parseInt(E.marginLeft,10)||0}}}},
resetFit:function(){var h=this._fitInfo||{},E;for(E in h.sizerInlineStyle)this.sizingTarget.style[E]=h.sizerInlineStyle[E];for(E in h.inlineStyle){var g=void 0;((g=this.hostElement)!=null?g:this).style[E]=h.inlineStyle[E]}this._fitInfo=null},
refit:function(){var h=this.sizingTarget.scrollLeft,E=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=h;this.sizingTarget.scrollTop=E},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var h;((h=this.hostElement)!=null?h:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var E;((E=this.hostElement)!=null?E:this).style.left="0px";var g;((g=this.hostElement)!=null?g:this).style.top="0px";var Z,M=((Z=this.hostElement)!=null?Z:this).getBoundingClientRect();E=this.__getNormalizedRect(this.positionTarget);Z=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(Z={left:Z.left+24,right:Z.right-24,top:Z.top+24,bottom:Z.bottom-24});if(this.expandSizingTargetForScrollbars){var W=this.sizingTarget.offsetWidth;var z=this.sizingTarget.offsetHeight;var c=this.sizingTarget.clientWidth;var I=this.sizingTarget.clientHeight}h=this._fitInfo.margin;E=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:M.width+h.left+h.right,height:M.height+h.top+h.bottom},M,E,Z);var B=E.left+h.left,U=E.top+h.top;g=Math.min(Z.right-h.right,B+M.width);var L=Math.min(Z.bottom-
h.bottom,U+M.height);B=Math.max(Z.left+h.left,Math.min(B,g-this._fitInfo.sizedBy.minWidth));U=Math.max(Z.top+h.top,Math.min(U,L-this._fitInfo.sizedBy.minHeight));g=Math.max(g-B,this._fitInfo.sizedBy.minWidth);L=Math.max(L-U,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=g+"px";this.sizingTarget.style.maxHeight=L+"px";B-=M.left;M=U-M.top;var d;((d=this.hostElement)!=null?d:this).style.left=B+"px";var C;((C=this.hostElement)!=null?C:this).style.top=M+"px";if(this.expandSizingTargetForScrollbars){d=
this.sizingTarget.offsetHeight;z=d-this.sizingTarget.clientHeight-(z-I);if(z>0){this.sizingTarget.style.maxHeight=Math.min(Z.height-h.top-h.bottom,L+z)+"px";z=this.sizingTarget.offsetHeight;I=z-d;var q;E.verticalAlign==="top"?q=M:E.verticalAlign==="middle"?q=M-I/2:E.verticalAlign==="bottom"&&(q=M-I);q=Math.max(Z.top+h.top,Math.min(q,Z.bottom-h.bottom-z));var w;((w=this.hostElement)!=null?w:this).style.top=q+"px"}q=this.sizingTarget.offsetWidth;W=q-this.sizingTarget.clientWidth-(W-c);if(W>0){G5C!==
void 0?c=G5C:(c=document.createElement("div"),Object.assign(c.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),w=document.createElement("div"),w.style.width="200px",w.style.height="200px",c.appendChild(w),document.body.appendChild(c),G5C=Math.abs(c.offsetWidth-100)>1?c.offsetWidth-c.clientWidth:0,document.body.removeChild(c),c=G5C);this.sizingTarget.style.maxWidth=Math.min(Z.width-h.left-h.right,g+W-c)+"px";W=this.sizingTarget.offsetWidth+c;c=W-q;var r;
E.horizontalAlign==="left"?r=B:E.horizontalAlign==="center"?r=B-c/2:E.horizontalAlign==="right"&&(r=B-c);r=Math.max(Z.left+h.left,Math.min(r,Z.right-h.right-W));var v;((v=this.hostElement)!=null?v:this).style.left=r+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var h=this._fitInfo;if(!h.positionedBy.vertically){var E;((E=this.hostElement)!=null?E:this).style.position="fixed";var g;((g=this.hostElement)!=null?g:this).style.top="0px"}if(!h.positionedBy.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.position="fixed";var M;((M=this.hostElement)!=null?M:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var W;E=((W=this.hostElement)!=null?W:this).getBoundingClientRect();
h.sizedBy.height||this.__sizeDimension(E,h.positionedBy.vertically,"top","bottom","Height");h.sizedBy.width||this.__sizeDimension(E,h.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(h,E,g,Z,M){this.__sizeDimension(h,E,g,Z,M)},
__sizeDimension:function(h,E,g,Z,M){var W=this._fitInfo,z=this.__getNormalizedRect(this.fitInto);z=M==="Width"?z.width:z.height;h=(E=E===Z)?z-h[Z]:h[g];g=W.margin[E?g:Z];Z="offset"+M;var c;W=((c=this.hostElement)!=null?c:this)[Z]-this.sizingTarget[Z];this.sizingTarget.style["max"+M]=z-g-h-W+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var h=this._fitInfo.positionedBy;if(!h.vertically||!h.horizontally){var E;((E=this.hostElement)!=null?E:this).style.position="fixed";if(!h.vertically){var g;((g=this.hostElement)!=null?g:this).style.top="0px"}if(!h.horizontally){var Z;((Z=this.hostElement)!=null?Z:this).style.left="0px"}var M;E=((M=this.hostElement)!=null?M:this).getBoundingClientRect();M=this.__getNormalizedRect(this.fitInto);if(!h.vertically){g=M.top-E.top+(M.height-
E.height)/2;var W;((W=this.hostElement)!=null?W:this).style.top=g+"px"}if(!h.horizontally){h=M.left-E.left+(M.width-E.width)/2;var z;((z=this.hostElement)!=null?z:this).style.left=h+"px"}}}},
__getNormalizedRect:function(h){return h===document.documentElement||h===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:h.getBoundingClientRect()},
__getOffscreenArea:function(h,E,g){return Math.abs(Math.min(0,h.top)+Math.min(0,g.bottom-(h.top+E.height)))*E.width+Math.abs(Math.min(0,h.left)+Math.min(0,g.right-(h.left+E.width)))*E.height},
__getPosition:function(h,E,g,Z,M,W){var z=[{verticalAlign:"top",horizontalAlign:"left",top:M.top+this.verticalOffset,left:M.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:M.top+this.verticalOffset,left:M.right-g.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:M.bottom-g.height-this.verticalOffset,left:M.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:M.bottom-g.height-this.verticalOffset,left:M.right-g.width-
this.horizontalOffset}];if(this.noOverlap){for(var c=0,I=z.length;c<I;c++){var B={},U;for(U in z[c])B[U]=z[c][U];z.push(B)}z[0].top=z[1].top+=M.height;z[2].top=z[3].top-=M.height;z[4].left=z[6].left+=M.width;z[5].left=z[7].left-=M.width}E=E==="auto"?null:E;h=h==="auto"?null:h;h&&h!=="center"||(z.push({verticalAlign:"top",horizontalAlign:"center",top:M.top+this.verticalOffset+(this.noOverlap?M.height:0),left:M.left-Z.width/2+M.width/2+this.horizontalOffset}),z.push({verticalAlign:"bottom",horizontalAlign:"center",
top:M.bottom-g.height-this.verticalOffset-(this.noOverlap?M.height:0),left:M.left-Z.width/2+M.width/2+this.horizontalOffset}));E&&E!=="middle"||(z.push({verticalAlign:"middle",horizontalAlign:"left",top:M.top-Z.height/2+M.height/2+this.verticalOffset,left:M.left+this.horizontalOffset+(this.noOverlap?M.width:0)}),z.push({verticalAlign:"middle",horizontalAlign:"right",top:M.top-Z.height/2+M.height/2+this.verticalOffset,left:M.right-g.width-this.horizontalOffset-(this.noOverlap?M.width:0)}));E==="middle"&&
h==="center"&&z.push({verticalAlign:"middle",horizontalAlign:"center",top:M.top-Z.height/2+M.height/2+this.verticalOffset,left:M.left-Z.width/2+M.width/2+this.horizontalOffset});for(c=0;c<z.length;c++){Z=z[c];M=Z.verticalAlign===E;I=Z.horizontalAlign===h;if(!this.dynamicAlign&&!this.noOverlap&&M&&I){var L=Z;break}B=(!E||M)&&(!h||I);if(this.dynamicAlign||B){Z.offscreenArea=this.__getOffscreenArea(Z,g,W);if(Z.offscreenArea===0&&B){L=Z;break}Z.alignsOk=M+I;L=L||Z;M=Z.offscreenArea-L.offscreenArea;if(M<
0||M===0&&Z.alignsOk>L.alignsOk)L=Z}}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 Wk,atD,cNf;Wk=Element.prototype;atD=Wk.matches||Wk.matchesSelector||Wk.mozMatchesSelector||Wk.msMatchesSelector||Wk.oMatchesSelector||Wk.webkitMatchesSelector;cNf=function(){};
_.ouM=function(h){var E=i$f,g=[];return E._collectTabbableNodes(h,g)?E._sortByTabIndex(g):g};
_.p=cNf.prototype;_.p.isFocusable=function(h){return atD.call(h,"input, select, textarea, button, object")?atD.call(h,":not([disabled])"):atD.call(h,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.p._normalizedTabIndex=function(h){return this.isFocusable(h)?(h=h.getAttribute("tabindex")||0,Number(h)):-1};
_.p._collectTabbableNodes=function(h,E){if(h.nodeType!==Node.ELEMENT_NODE||!this._isVisible(h))return!1;var g=this._normalizedTabIndex(h),Z=g>0;g>=0&&E.push(h);if(h.localName==="content"||h.localName==="slot")g=_.vl(h).getDistributedNodes();else{var M;g=((M=_.vl(h).shadowRoot)!=null?M:_.vl(h.root||h)).children}for(h=0;h<g.length;h++)Z=this._collectTabbableNodes(g[h],E)||Z;return Z};
_.p._isVisible=function(h){var E=h.style;return E.visibility!=="hidden"&&E.display!=="none"?(E=window.getComputedStyle(h),E.visibility!=="hidden"&&E.display!=="none"):!1};
_.p._sortByTabIndex=function(h){var E=h.length;if(E<2)return h;var g=Math.ceil(E/2);E=this._sortByTabIndex(h.slice(0,g));h=this._sortByTabIndex(h.slice(g));return this._mergeSortByTabIndex(E,h)};
_.p._mergeSortByTabIndex=function(h,E){for(var g=[];h.length>0&&E.length>0;)this._hasLowerTabOrder(h[0],E[0])?g.push(E.shift()):g.push(h.shift());return g.concat(h,E)};
_.p._hasLowerTabOrder=function(h,E){h=Math.max(h.tabIndex,0);E=Math.max(E.tabIndex,0);return h===0||E===0?E>h:h>E};
var i$f=new cNf;var ItA;var R1M;_.OB({_template:function(){if(R1M!==void 0)return R1M;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;ItA===void 0&&(ItA=document.createElement("template"));var Z=ItA;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return R1M=h},
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&&_.vl(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.vl(this.parentNode).removeChild(this)},
_onTransitionend:function(h){h&&h.target===this&&this.complete()},
_openedChanged:function(h){h?this.prepare():(h=window.getComputedStyle(this),h.transitionDuration!=="0s"&&h.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 p1=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;ng(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)};
p1.prototype._bringOverlayAtIndexToFront=function(h){var E=this._overlays[h];if(E){var g=this._overlays.length-1,Z=this._overlays[g];Z&&this._shouldBeBehindOverlay(E,Z)&&g--;if(!(h>=g)){Z=Math.max(this._getZ(_.Pzf(this)),this._minimumZ);for(this._getZ(E)<=Z&&this._applyOverlayZ(E,Z);h<g;)this._overlays[h]=this._overlays[h+1],h++;this._overlays[g]=E}}};
p1.prototype.addOverlay=function(h){var E=this._overlays.indexOf(h);if(E>=0)this._bringOverlayAtIndexToFront(E);else{E=this._overlays.length;var g=this._overlays[E-1],Z=Math.max(this._getZ(g),this._minimumZ),M=this._getZ(h);g&&this._shouldBeBehindOverlay(h,g)&&(this._applyOverlayZ(g,Z),E--,Z=Math.max(this._getZ(this._overlays[E-1]),this._minimumZ));M<=Z&&this._applyOverlayZ(h,Z);this._overlays.splice(E,0,h)}this.trackBackdrop()};
p1.prototype.removeOverlay=function(h){h=this._overlays.indexOf(h);h!==-1&&(this._overlays.splice(h,1),this.trackBackdrop())};
_.Pzf=function(h){return h._overlays[h._overlays.length-1]};
_.p=p1.prototype;_.p.trackBackdrop=function(){var h=this._overlayWithBackdrop();if(h||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(h)-1,this.backdropElement.opened=!!h,this.backdropElement.prepare()};
_.p._overlayWithBackdrop=function(){for(var h=this._overlays.length-1;h>=0;h--)if(this._overlays[h].withBackdrop)return this._overlays[h]};
_.p._getZ=function(h){var E=this._minimumZ;if(h){var g,Z,M=Number(((g=h.hostElement)!=null?g:h).style.zIndex||window.getComputedStyle((Z=h.hostElement)!=null?Z:h).zIndex);M===M&&(E=M)}return E};
_.p._setZ=function(h,E){var g;((g=h.hostElement)!=null?g:h).style.zIndex=E};
_.p._applyOverlayZ=function(h,E){this._setZ(h,E+2)};
_.p._overlayInPath=function(h){h=h||[];for(var E=0;E<h.length;E++){var g=void 0;if(((g=h[E].polymerController)!=null?g:h[E])._manager===this)return h[E]}};
_.p._onCaptureClick=function(h){var E=this._overlays.length-1;if(E!==-1)for(var g=_.vl(h).path,Z,M;(Z=this._overlays[E])&&this._overlayInPath(g)!==((M=Z.hostElement)!=null?M:Z);)if(Z._onCaptureClick(h),Z.allowClickThrough)E--;else break};
_.p._onCaptureFocus=function(h){var E=_.Pzf(this);E&&E._onCaptureFocus(h)};
_.p._onCaptureKeyDown=function(h){var E=_.Pzf(this);E&&(_.Kf.keyboardEventMatchesKeys(h,"esc")?E._onCaptureEsc(h):_.Kf.keyboardEventMatchesKeys(h,"tab")&&E._onCaptureTab(h))};
_.p._shouldBeBehindOverlay=function(h,E){return!h.alwaysOnTop&&E.alwaysOnTop&&!E.contains(h)};
_.ze.Object.defineProperties(p1.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 h=document.activeElement;h&&h instanceof Element!==!1||(h=document.body);for(;h.root&&_.vl(h.root).activeElement;)h=_.vl(h.root).activeElement;return h}}});
_.Gg=new p1;var A2$=0,TGz=0,brV=null,uE4=[],Hl=["wheel","mousewheel","DOMMouseScroll"],Qb4;_.J("web_no_lock_on_touchstart_killswitch")&&(Hl.push("touchstart"),Hl.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;_.zg={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:_.Gg},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var h;return this._focusedChild||_.vl((h=this.hostElement)!=null?h:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var h;return _.ouM((h=this.hostElement)!=null?h: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 h;this._observer=_.vl((h=this.hostElement)!=null?h:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var h;_.vl((h=this.hostElement)!=null?h:this).unobserveNodes(this._observer)}this._observer=null;for(var E in this.__rafs)this.__rafs[E]!==null&&cancelAnimationFrame(this.__rafs[E]);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(h){this.fire("iron-overlay-canceled",h,{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 h;((h=this.hostElement)!=null?h:this).style.outline="none";var E;((E=this.hostElement)!=null?E:this).style.display="none"}},
_openedChanged:function(h){if(h){var E;((E=this.hostElement)!=null?E:this).removeAttribute("aria-hidden")}else{var g;((g=this.hostElement)!=null?g: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 h;if(this.withBackdrop&&!((h=this.hostElement)!=null?h:this).hasAttribute("tabindex")){var E;((E=this.hostElement)!=null?E:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var g;((g=this.hostElement)!=null?g: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 h;((h=this.hostElement)!=null?h:this).style.display="none";var E;((E=this.hostElement)!=null?E:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var h,E;((h=this.hostElement)!=null?h:this).style.transition=((E=this.hostElement)!=null?E:this).style.webkitTransition="none";var g,Z;((g=this.hostElement)!=null?g:this).style.transform=((Z=this.hostElement)!=null?Z:this).style.webkitTransform="none";var M;((M=this.hostElement)!=null?M:this).style.display=""},
_finishPositioning:function(){var h;((h=this.hostElement)!=null?h:this).style.display="none";this.scrollTop=this.scrollTop;var E,g;((E=this.hostElement)!=null?E:this).style.transition=((g=this.hostElement)!=null?g:this).style.webkitTransition="";var Z,M;((Z=this.hostElement)!=null?Z:this).style.transform=((M=this.hostElement)!=null?M:this).style.webkitTransform="";var W;((W=this.hostElement)!=null?W:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var h=this._manager.deepActiveElement,E;if(!(E=h===document.body))a:{for(;h;h=h.assignedSlot||h.parentNode||h.host)if(h===this){E=!0;break a}E=!1}E&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(h){this.noCancelOnOutsideClick||this.cancel(h)},
_onCaptureFocus:function(h){if(this.withBackdrop){var E=_.vl(h).path;E.indexOf(this)===-1?(h.stopPropagation(),this._applyFocus()):this._focusedChild=E[0]}},
_onCaptureEsc:function(h){this.noCancelOnEscKey||this.cancel(h)},
_onCaptureTab:function(h){if(this.withBackdrop){this.__ensureFirstLastFocusables();var E=h.shiftKey,g=E?this.__firstFocusableNode:this.__lastFocusableNode;E=E?this.__lastFocusableNode:this.__firstFocusableNode;if(g===E)g=!0;else{var Z=this._manager.deepActiveElement;g=Z===g||Z===this}g&&(h.preventDefault(),this._focusedChild=E,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 h=this._focusableNodes;this.__firstFocusableNode=h[0];this.__lastFocusableNode=h[h.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(h,E){var g=this.__rafs;g[h]!==null&&cancelAnimationFrame(g[h]);g[h]=requestAnimationFrame(function(){g[h]=null;E.call(this)}.bind(this))},
__updateScrollObservers:function(h,E,g){h&&E&&this.__isValidScrollAction(g)?(g==="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),Qb4=_._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()):(h=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),h!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(h,1),Qb4=_._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(Af)for(var h=this;h;)h.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&h.host&&this.__rootNodes.push(h),h=h.host||h.assignedSlot||h.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(E){E.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(h){h.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(h){return h==="lock"||h==="refit"||h==="cancel"},
__onCaptureScroll:function(h){if(!(this.__isAnimating||_.vl(h).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(h)}},
__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)}};
_.aR=[z1D,_.F3,_.zg];_.OB({_template:function(){if(pwm!==void 0)return pwm;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Wyk===void 0&&(Wyk=document.createElement("template"));var Z=Wyk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return pwm=h},
is:"tp-yt-iron-dropdown",behaviors:[_.OJ,_.Kf,_.aR,T5k],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 h=_.vl(this.$.content).getDistributedNodes(),E=0,g=h.length;E<g;E++)if(h[E].nodeType===Node.ELEMENT_NODE)return h[E]},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(),_.zg._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.zg._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.zg._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var h=this.containedElement,E=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),g=0;g<E.length;g++)E[g].node=h;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(h){this._readied&&(h?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var h=this.focusTarget||this.containedElement;h&&this.opened&&!this.noAutoFocus?h.focus():_.zg._applyFocus.apply(this,arguments)}});var BEf;var Uhk;/*

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 Lyn=new _.sJ({type:"iconset"});
_.OB({_template:function(){if(Uhk!==void 0)return Uhk;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;BEf===void 0&&(BEf=document.createElement("template"));
var Z=BEf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return Uhk=h},
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(h){h=(h||"").split(":");this._iconName=h.pop();this._iconsetName=h.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&&_.vl(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Lyn.byKey(this._iconsetName)){var h=this._iconset.applyIcon(this,this._iconName,this.theme);h&&h.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,_.vl(this.root).appendChild(this._img)}});var jel;var dhM;_.OB({_template:function(){if(dhM!==void 0)return dhM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;jel===void 0&&(jel=document.createElement("template"));var Z=jel;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return dhM=h},
is:"tp-yt-iron-input",behaviors:[_.kJ],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(){_.ZL.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.vl(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.vl(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 h=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":h=/[0-9.,e-]/}return h},_bindValueChanged:function(h,E){E&&(h===void 0?E.value=null:h!==E.value&&(this.inputElement.value=h),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:h}))},
_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(h){var E=h.keyCode==19||h.keyCode==20||h.keyCode==45||h.keyCode==46||h.keyCode==144||h.keyCode==145||h.keyCode>32&&h.keyCode<41||h.keyCode>111&&h.keyCode<124;return!(h.keyCode==8||h.keyCode==9||h.keyCode==13||h.keyCode==27)&&!(h.charCode==0&&E)},
_onKeypress:function(h){if(this.allowedPattern||this.inputElement.type==="number"){var E=this._patternRegExp;if(E&&!(h.metaKey||h.ctrlKey||h.altKey)){this._patternAlreadyChecked=!0;var g=String.fromCharCode(h.charCode);this._isPrintable(h)&&!E.test(g)&&(h.preventDefault(),this._announceInvalidCharacter("Invalid character "+g+" not entered."))}}},
_checkPatternValidity:function(){var h=this._patternRegExp;if(!h)return!0;for(var E=0;E<this.inputElement.value.length;E++)if(!h.test(this.inputElement.value[E]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var h=this.inputElement.checkValidity();h&&(this.required&&this.bindValue===""?h=!1:this.hasValidator()&&(h=_.kJ.validate.call(this,this.bindValue)));this.invalid=!h;this.fire("iron-input-validate");return h},
_announceInvalidCharacter:function(h){this.fire("iron-announce",{text:h})},
_computeValue:function(h){return h}});var CzM;var JNl;var e1m=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),qcF=e1m&&e1m[1]>=8;
_.OB({_template:function(){if(JNl!==void 0)return JNl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;CzM===void 0&&(CzM=document.createElement("template"));var Z=CzM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return JNl=h},
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:[tB$,_.F3,_.AUM,l9A],_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 _.vl(_.vl(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var h=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,h-this._physicalCount)},set _virtualStart(h){h=this._clamp(h,0,this._maxVirtualStart);this.grid&&(h-=h%this._itemsPerRow);this._virtualStartVal=h},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(h){h%=this._physicalCount;h<0&&(h=this._physicalCount+h);this.grid&&(h-=h%this._itemsPerRow);this._physicalStartVal=h},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(h){this._physicalCountVal=h},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 h=this._firstVisibleIndexVal;if(h==null){var E=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
h=this._iterateItems(function(g,Z){E+=this._getPhysicalSizeIncrement(g);if(E>this._scrollPosition)return this.grid?Z-Z%this._itemsPerRow:Z;if(this.grid&&this._virtualCount-1===Z)return Z-Z%this._itemsPerRow})||0}return h},
get lastVisibleIndex(){var h=this._lastVisibleIndexVal;if(h==null){if(this.grid)h=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var E=this._physicalTop+this._scrollOffset;this._iterateItems(function(g,Z){E<this._scrollBottom&&(h=Z);E+=this._getPhysicalSizeIncrement(g)})}this._lastVisibleIndexVal=h}return h},
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,_.HK);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(h){this.style.webkitOverflowScrolling=h===this?"touch":"";this.style.overflowY=h===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.HK)},
updateViewportBoundaries:function(){var h=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(h["padding-top"],10);this._isRTL=h.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var h=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),E=h-this._scrollPosition,g=E>=0;this._scrollPosition=h;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(E)>this._physicalSize&&this._physicalSize>0?(E-=this._scrollOffset,g=Math.round(E/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=g,this._physicalStart+=g,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(h=this._getReusables(g),g?(this._physicalTop=h.physicalTop,this._virtualStart+=h.indexes.length,this._physicalStart+=h.indexes.length):(this._virtualStart=this._virtualStart-h.indexes.length,this._physicalStart=this._physicalStart-h.indexes.length),this._update(h.indexes,g?null:h.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),kw))},
_getReusables:function(h){var E=[],g=this._hiddenContentSize*this._ratio,Z=this._virtualStart,M=this._virtualEnd,W=this._physicalCount,z=this._physicalTop+this._scrollOffset;var c=this._physicalBottom+this._scrollOffset;var I=this._scrollPosition,B=this._scrollBottom;if(h){var U=this._physicalStart;c=I-z}else U=this._physicalEnd,c-=B;for(;;){var L=this._getPhysicalSizeIncrement(U);c-=L;if(E.length>=W||c<=g)break;if(h){if(M+E.length+1>=this._virtualCount)break;if(z+L>=I-this._scrollOffset)break;E.push(U);
z+=L;U=(U+1)%W}else{if(Z-E.length<=0)break;if(z+this._physicalSize-L<=B)break;E.push(U);z-=L;U=U===0?W-1:U-1}}return{indexes:E,physicalTop:z-this._scrollOffset}},
_update:function(h,E){if(!(h&&h.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(h);this._updateMetrics(h);if(E)for(;E.length;)h=E.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(h);this._positionItems();this._updateScrollerSize()}},
_createPool:function(h){this._ensureTemplatized();var E,g=Array(h);for(E=0;E<h;E++){var Z=this.stamp(null);g[E]=Z.root.querySelector("*");this._itemsParent.appendChild(Z.root)}return g},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(h){h=this._clamp(this._physicalCount+h,3,this._virtualCount-this._virtualStart);h=this._convertIndexToCompleteRow(h);if(this.grid){var E=h%this._itemsPerRow;E&&h-E<=this._physicalCount&&(h+=this._itemsPerRow);h-=E}h-=this._physicalCount;E=Math.round(this._physicalCount*.5);if(!(h<0)){if(h>0){E=window.performance.now();[].push.apply(this._physicalItems,this._createPool(h));for(var g=0;g<h;g++)this._physicalSizes.push(0);this._physicalCount+=h;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=h);this._update();this._templateCost=(window.performance.now()-E)/h;E=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||E===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,E)),ROl):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,E),kw))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var h=this._getReusables(!0);this._physicalTop=h.physicalTop;this._virtualStart+=h.indexes.length;this._physicalStart+=h.indexes.length;this._update(h.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 h={__key__:!0};h[this.as]=!0;h[this.indexAs]=!0;h[this.selectedAs]=!0;h.tabIndex=!0;this._instanceProps=h;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(h,E){typeof E!=="undefined"&&(this.notifyResize(),_.xi(),h&&this._updateGridMetrics())},
_itemsChanged:function(h){if(h.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,
_.HK);else if(h.path==="items.splices"){this._adjustVirtualIndex(h.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(h.value.indexSplices.some(function(g){return g.addedCount>0||g.removed.length>0})){var E=this._getActiveElement();
this.contains(E)&&E.blur()}h=h.value.indexSplices.some(function(g){return g.index+g.addedCount>=this._virtualStart&&g.index<=this._virtualEnd},this);
this._isClientFull()&&!h||this._debounce("_render",this._render,_.HK)}else h.path!=="items.length"&&this._forwardItemPath(h.path,h.value)},
_forwardItemPath:function(h,E){h=h.slice(6);var g=h.indexOf(".");g===-1&&(g=h.length);var Z,M=this.modelForElement(this._offscreenFocusedItem),W=parseInt(h.substring(0,g),10);if(Z=this._isIndexRendered(W)){var z=this._getPhysicalIndex(W);var c=this.modelForElement(this._physicalItems[z])}else M&&(c=M);c&&c[this.indexAs]===W&&(h=h.substring(g+1),h=this.as+(h?"."+h:""),c._setPendingPropertyOrPath(h,E,!1,!0),c._flushProperties&&c._flushProperties(),Z&&(this._updateMetrics([z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(h){h.forEach(function(E){E.removed.forEach(this._removeItem,this);E.index<this._virtualStart&&(E=Math.max(E.addedCount-E.removed.length,E.index-this._virtualStart),this._virtualStart+=E,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=E))},this)},
_removeItem:function(h){this.$.selector.deselect(h);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===h&&this._removeFocusedItem()},
_iterateItems:function(h,E){var g,Z;if(arguments.length===2&&E)for(Z=0;Z<E.length;Z++){var M=E[Z];var W=this._computeVidx(M);if((g=h.call(this,M,W))!=null)return g}else{M=this._physicalStart;for(W=this._virtualStart;M<this._physicalCount;M++,W++)if((g=h.call(this,M,W))!=null)return g;for(M=0;M<this._physicalStart;M++,W++)if((g=h.call(this,M,W))!=null)return g}},
_computeVidx:function(h){return h>=this._physicalStart?this._virtualStart+(h-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+h},
_assignModels:function(h){this._iterateItems(function(E,g){var Z=this._physicalItems[E],M=this.items&&this.items[g];if(M!=null){var W=this.modelForElement(Z);W.__key__=null;this._forwardProperty(W,this.as,M);this._forwardProperty(W,this.selectedAs,this.$.selector.isSelected(M));this._forwardProperty(W,this.indexAs,g);this._forwardProperty(W,"tabIndex",this._focusedVirtualIndex===g?0:-1);this._physicalIndexForKey[W.__key__]=E;W._flushProperties&&W._flushProperties(!0);Z.removeAttribute("hidden")}else Z.setAttribute("hidden",
"")},h)},
_updateMetrics:function(h){_.xi();var E=0,g=0,Z=this._physicalAverageCount,M=this._physicalAverage;this._iterateItems(function(W){g+=this._physicalSizes[W];this._physicalSizes[W]=this._physicalItems[W].offsetHeight;E+=this._physicalSizes[W];this._physicalAverageCount+=this._physicalSizes[W]?1:0},h);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(g=this._itemsPerRow===1?g:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+E-g,this._itemsPerRow=1);this._physicalAverageCount!==Z&&(this._physicalAverage=Math.round((M*Z+E)/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 h=this._physicalTop;if(this.grid){var E=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(g,Z){var M=Math.floor(Z%this._itemsPerRow*this._itemWidth+E);this._isRTL&&(M*=-1);this.translate3d(M+"px",h+"px",0,this._physicalItems[g]);this._shouldRenderNextRow(Z)&&(h+=this._rowHeight)})}else this._iterateItems(function(g){this.translate3d(0,h+"px",0,this._physicalItems[g]);
h+=this._physicalSizes[g]})},
_getPhysicalSizeIncrement:function(h){return this.grid?this._computeVidx(h)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[h]},
_shouldRenderNextRow:function(h){return h%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var h=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(h!==0){this._physicalTop=this._physicalTop-h;var E=this._scrollPosition;!qcF&&E>0&&this._resetScrollPosition(E-h)}},
_resetScrollPosition:function(h){this.scrollTarget&&h>=0&&(this._scrollPosition=this._scrollTop=h)},
_updateScrollerSize:function(h){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((h=(h=(h=h||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(h){return this.scrollToIndex(this.items.indexOf(h))},
scrollToIndex:function(h){if(!(typeof h!=="number"||h<0||h>this.items.length-1)&&(_.xi(),this._physicalCount!==0)){h=this._clamp(h,0,this._virtualCount-1);if(!this._isIndexRendered(h)||h>=this._maxVirtualStart)this._virtualStart=this.grid?h-this._itemsPerRow*2:h-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var E=this._physicalStart,g=this._virtualStart,Z=0,M=this._hiddenContentSize;g<h&&
Z<=M;)Z+=this._getPhysicalSizeIncrement(E),E=(E+1)%this._physicalCount,g++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+Z);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)},_.HK)},
selectItem:function(h){return this.selectIndex(this.items.indexOf(h))},
selectIndex:function(h){if(!(h<0||h>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(h)){var E=this.modelForElement(this._physicalItems[this._getPhysicalIndex(h)]);E&&(E[this.selectedAs]=!0);this.updateSizeForIndex(h)}this.$.selector.selectIndex(h)}},
deselectItem:function(h){return this.deselectIndex(this.items.indexOf(h))},
deselectIndex:function(h){h<0||h>=this._virtualCount||(this._isIndexRendered(h)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(h)])[this.selectedAs]=!1,this.updateSizeForIndex(h)),this.$.selector.deselectIndex(h))},
toggleSelectionForItem:function(h){return this.toggleSelectionForIndex(this.items.indexOf(h))},
toggleSelectionForIndex:function(h){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(h):this.$.selector.isSelected(this.items[h]))?this.deselectIndex(h):this.selectIndex(h)},
clearSelection:function(){this._iterateItems(function(h){this.modelForElement(this._physicalItems[h])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(h){(h?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(h){var E=this.modelForElement(h.target);if(E){var g=_.vl(h).path[0];h=this._getActiveElement();var Z=this._physicalItems[this._getPhysicalIndex(E[this.indexAs])];if(g.localName!=="input"&&g.localName!=="button"&&g.localName!=="select"){g=E.tabIndex;E.tabIndex=-100;var M=h?h.tabIndex:-1;E.tabIndex=g;h&&Z!==h&&Z.contains(h)&&M!==-100||this.toggleSelectionForItem(E[this.as])}}},
_multiSelectionChanged:function(h){this.clearSelection();this.$.selector.multi=h},
updateSizeForItem:function(h){return this.updateSizeForIndex(this.items.indexOf(h))},
updateSizeForIndex:function(h){if(!this._isIndexRendered(h))return null;this._updateMetrics([this._getPhysicalIndex(h)]);this._positionItems();return null},
_manageFocus:function(){var h=this._focusedVirtualIndex;h>=0&&h<this._virtualCount?this._isIndexRendered(h)?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(h){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(h/this._itemsPerRow)*this._itemsPerRow:h},
_isIndexRendered:function(h){return h>=this._virtualStart&&h<=this._virtualEnd},
_isIndexVisible:function(h){return h>=this.firstVisibleIndex&&h<=this.lastVisibleIndex},
_getPhysicalIndex:function(h){return(this._physicalStart+(h-this._virtualStart))%this._physicalCount},
focusItem:function(h){this._focusPhysicalItem(h)},
_focusPhysicalItem:function(h){if(!(h<0||h>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(h)||this.scrollToIndex(h);var E=this._physicalItems[this._getPhysicalIndex(h)],g=this.modelForElement(E),Z;g.tabIndex=-100;E.tabIndex===-100&&(Z=E);Z||(Z=_.vl(E).querySelector('[tabindex="-100"]'));g.tabIndex=0;this._focusedVirtualIndex=h;Z&&Z.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 h=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var E=this.stamp(null);this._focusBackfillItem=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}this._offscreenFocusedItem=this._physicalItems[h];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[h]=this._focusBackfillItem;this._focusedPhysicalIndex=h;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var h=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),E=this._physicalItems[h];if(E){var g=this.modelForElement(E),Z=this.modelForElement(this._offscreenFocusedItem);g[this.as]===Z[this.as]?(this._focusBackfillItem=E,g.tabIndex=-1,this._physicalItems[h]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(h){h=this.modelForElement(h.target);var E=this.modelForElement(this._focusedItem),g=this._offscreenFocusedItem!==null,Z=this._focusedVirtualIndex;h&&(E===h?this._isIndexVisible(Z)||this.scrollToIndex(Z):(this._restoreFocusedItem(),E&&(E.tabIndex=-1),h.tabIndex=0,this._focusedVirtualIndex=Z=h[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(Z),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],g&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(h){switch(h.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&h.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&&h.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(h)}},
_clamp:function(h,E,g){return Math.min(g,Math.max(E,h))},
_debounce:function(h,E,g){this._debouncers=this._debouncers||{};this._debouncers[h]=_.qu(this._debouncers[h],g,E.bind(this));_.f2(this._debouncers[h])},
_forwardProperty:function(h,E,g){h._setPendingProperty(E,g)},
_forwardHostPropV2:function(h,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(g){g&&this.modelForElement(g).forwardHostProp(h,E)},this)},
_notifyInstancePropV2:function(h,E,g){pwW(this.as,E)&&(h=h[this.indexAs],E==this.as&&(this.items[h]=g),this.notifyPath(Jf(this.as,"items."+h,E),g))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(h,E,g){E.indexOf(this.as+".")===0&&this.notifyPath("items."+h.__key__+"."+E.slice(this.as.length+1),g)},
_forwardParentPath:function(h,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(g){g&&this.modelForElement(g).notifyPath(h,E)},this)},
_forwardParentProp:function(h,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(g){g&&(this.modelForElement(g)[h]=E)},this)},
_getActiveElement:function(){var h=this._itemsParent.node.domHost;return _.vl(h?h.root:document).activeElement},
_scrollTargetChanged:function(h,E){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(E)if(h==="document")this.scrollTarget=this._doc;else if(typeof h==="string"){var g,Z;this.scrollTarget=(E=(Z=(g=this.domHost)==null?void 0:g.polymerController)!=null?Z:this.domHost)&&E.$?E.$[h]:_.vl(this.ownerDocument).querySelector("#"+h)}else this._isValidScrollTarget()&&(this._oldScrollTarget=h,this._toggleScrollListener(this._shouldHaveListener,h))}});var ftM;var NEB;var t6m=function(h,E,g,Z){h-=g;E-=Z;return Math.sqrt(h*h+E*E)},ScD=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
heW.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var EFu=function(h){h.maxRadius=0;h.mouseDownStart=0;h.mouseUpStart=0;h.xStart=0;h.yStart=0;h.xEnd=0;h.yEnd=0;h.containerMetrics=new heW(h.element)};
gFz.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var h=ScD()-this.mouseDownStart;this.mouseUpStart&&(h-=this.mouseUpElapsed);return h},get mouseUpElapsed(){return this.mouseUpStart?ScD()-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 h=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(h*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-h/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===0&&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 h=this.radius/(this.containerMetrics.size/2);var E=this.xNow-this.containerMetrics.width/2;var g=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+E+"px, "+g+"px)";this.waveContainer.style.transform="translate3d("+E+"px, "+g+"px, 0)";this.wave.style.webkitTransform="scale("+h+","+h+")";this.wave.style.transform="scale3d("+h+","+h+",1)"},
downAction:function(h){var E=this.containerMetrics.width/2,g=this.containerMetrics.height/2;EFu(this);this.mouseDownStart=ScD();this.center?(this.xStart=E,this.yStart=g):(this.xStart=h?h.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=h?h.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=E,this.yEnd=g);h=this.containerMetrics;E=this.xStart;g=this.yStart;this.maxRadius=Math.max(t6m(E,g,0,0),t6m(E,g,
h.width,0),t6m(E,g,0,h.height),t6m(E,g,h.width,h.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=ScD())},
remove:function(){_.vl(_.vl(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.OB({_template:function(){if(NEB!==void 0)return NEB;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;ftM===void 0&&(ftM=document.createElement("template"));var Z=ftM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return NEB=h},
is:"tp-yt-paper-ripple",behaviors:[_.Kf],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(){_.vl(this).parentNode.nodeType==11?this.keyEventTarget=_.vl(this).getOwnerRoot().host:this.keyEventTarget=_.vl(this).parentNode;var h=this.keyEventTarget;this.listen(h,"up","uiUpAction");this.listen(h,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(h){h.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var h=0;h<this.ripples.length;++h)if(!this.ripples[h].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(h){this.noink||this.downAction(h)},
downAction:function(h){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(h),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(h){this.noink||this.upAction(h)},
upAction:function(h){this.holdDown||(this.ripples.forEach(function(E){E.upAction(h)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var h=0;h<this.ripples.length;++h){var E=this.ripples[h];E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var h=new gFz(this);_.vl(this.$.waves).appendChild(h.waveContainer);this.$.background.style.backgroundColor=h.color;this.ripples.push(h);this._setAnimating(!0);return h},
removeRipple:function(h){var E=this.ripples.indexOf(h);E<0||(this.ripples.splice(E,1),h.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var h;for(h=0;h<this.ripples.length;++h){var E=this.ripples[h];E.draw();this.$.background.style.opacity=E.outerOpacity;E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}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(h,E){E!==void 0&&(h?this.downAction():this.upAction())}});var ck={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(h){nf._downHandler.call(this,h);this.pressed&&this.ensureRipple(h)},
ensureRipple:function(h){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var E=this._rippleContainer||this.root;E&&_.vl(E).appendChild(this._ripple);if(h){E=_.vl(this._rippleContainer||this);var g=_.vl(h).rootTarget;E.deepContains(g)&&this._ripple.uiDownAction(h)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(h){this.hasRipple()&&(this._ripple.noink=h)}};var xhf={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 h=1;this.disabled?h=0:this.active||this.pressed?h=4:this.receivedFocusFromKeyboard&&(h=3);this._setElevation(h)},
_computeKeyboardClass:function(h){this.toggleClass("keyboard-focus",h)},
_spaceKeyDownHandler:function(h){nf._spaceKeyDownHandler.call(this,h);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(h){nf._spaceKeyUpHandler.call(this,h);this.hasRipple()&&this._ripple.uiUpAction()}},wwf=[$IH,
_.OJ,ck,xhf];_.Dhl={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(h){h&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=h)},
_createRipple:function(){var h=ck._createRipple();h.id="ink";h.setAttribute("center","");h.classList.add("circle");return h}};
_.ltf=[$IH,_.OJ,ck,_.Dhl];_.rNl=[_.ltf,nxA,{_checkedChanged:function(){O4m._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){ck._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var mhD;var vuH;var H$C=function(){};
_.p=H$C.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._createRipple=function(){};
_.p._noinkChanged=function(){};
_.p._computeKeyboardClass=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setElevation=function(){};
H$C=_.OB({_template:function(){if(vuH!==void 0)return vuH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;mhD===void 0&&(mhD=document.createElement("template"));var Z=mhD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return vuH=h},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[wwf],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?xhf._calculateElevation.apply(this):this._setElevation(0)}});var $hC;var KyB;var O$A={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(h){_.J("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(h)},
_onDialogClickWrapped:function(h){_.J("dialog_behavior_no_tap_killswitch")||this._onDialogClick(h)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(h,E){E&&(h?(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(h){if(h){var E;((E=this.hostElement)!=null?E:this).setAttribute("aria-modal","true")}else{var g;((g=this.hostElement)!=null?g:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(h){this.closingReason=this.closingReason||{};this.closingReason.confirmed=h},
_onDialogClick:function(h){for(var E=_.vl(h).path,g=0,Z,M=E.indexOf((Z=this.hostElement)!=null?Z:this);g<M;g++)if(Z=E[g],Z.hasAttribute&&(Z.hasAttribute("dialog-dismiss")||Z.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(Z.hasAttribute("dialog-confirm"));this.close();h.stopPropagation();break}}},nul=[_.aR,
O$A];var XwF=document.createElement("template");_.N(XwF,'<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(XwF.content);var Ycl=document.createElement("template");_.N(Ycl,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Ycl.content);_.OB({_template:function(){if(KyB!==void 0)return KyB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;$hC===void 0&&($hC=document.createElement("template"));var Z=$hC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return KyB=h},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[nul,T5k],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 sel;var V6B;_.OB({_template:function(){if(V6B!==void 0)return V6B;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;sel===void 0&&(sel=document.createElement("template"));var Z=sel;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return V6B=h},
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 h,E,g;if(((h=window.ShadyDOM)==null?void 0:h.noPatch)!==!0&&((E=window.ShadyDOM)==null?void 0:E.noPatch)!=="on-demand"||((g=this.__shady_parentNode)==null?void 0:g.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(O$A)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var k5M=_.uz(['<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>']),yNF=_.$wk(k5M);yNF.setAttribute("style","display: none;");document.head.appendChild(yNF.content);var FyC;var ANm;var TEM;var b$m;_.OB({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[AX],configure:function(h){var E=h.node,g=E.getBoundingClientRect().height;return this._effect=new KeyframeEffect(E,[{height:g/2+"px"},{height:g+"px"}],this.timingFromConfig(h))}});
_.OB({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[AX],configure:function(h){var E=h.node,g=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:g/2+"px"},{width:g+"px"}],this.timingFromConfig(h))}});
_.OB({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[AX],configure:function(h){var E=h.node,g=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:g+"px"},{width:g-g/20+"px"}],this.timingFromConfig(h))}});
_.OB({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[AX],configure:function(h){var E=h.node,g=E.getBoundingClientRect().height;this.setPrefixedProperty(E,"transformOrigin","0 0");return this._effect=new KeyframeEffect(E,[{height:g+"px",transform:"translateY(0)"},{height:g/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(h))}});var iM={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},umD=function(){};
_.p=umD.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._focusBlurHandler=function(){};
_.p._changedControlState=function(){};
_.p._setFocused=function(){};
umD=_.OB({_template:function(){if(b$m!==void 0)return b$m;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;TEM===void 0&&(TEM=document.createElement("template"));var Z=TEM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return b$m=h},
is:"tp-yt-paper-menu-button",behaviors:[_.Kf,_.OJ],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:iM.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:iM.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:iM.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 h=_.vl(this.$.content).getDistributedNodes(),E=0,g=h.length;E<g;E++)if(h[E].nodeType===Node.ELEMENT_NODE)return h[E]},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(h,E){h?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):E!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(h){_.OJ._disabledChanged.apply(this,arguments);h&&this.opened&&this.close()},
__onIronOverlayCanceled:function(h){var E=this.$.trigger;_.vl(h.detail).path.indexOf(E)>-1&&h.preventDefault()}});
Object.keys(iM).forEach(function(h){umD[h]=iM[h]});var QeA=_.X3.IronButtonState,h3k=(0,_.K2)(HTMLElement);
_.OB({_template:function(){if(ANm!==void 0)return ANm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;FyC===void 0&&(FyC=document.createElement("template"));var Z=FyC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return ANm=h},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[QeA,_.OJ,ck,_.YJ,_.kJ],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(h){var E=(0,_.tf)(this);E.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:h});E.shadowRoot.appendChild(h);return h3k.prototype._attachDom.call(this,h)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var h=this.contentElement;h&&h.selectedItem&&this._setSelectedItem(h.selectedItem)},
get contentElement(){for(var h=_.vl(this.$.content).getDistributedNodes(),E=0,g=h.length;E<g;E++)if(h[E].nodeType===Node.ELEMENT_NODE)return h[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(h){this._setSelectedItem(h.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(h){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h)===this&&this.open()},
_selectedItemChanged:function(h){var E="";h?E=h.label||h.getAttribute("label")||h.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(h,E){return E?E:h?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var h=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",h)},
_computeLabelClass:function(h,E,g){var Z="label";if(h)g&&(Z+=" label-is-hidden");else if(g||E)Z+=" label-is-floating";return Z},
_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 Egf;var ggl;_.OB({is:"tp-yt-paper-icon-button",_template:function(){if(ggl!==void 0)return ggl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Egf===void 0&&(Egf=document.createElement("template"));var Z=Egf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return ggl=h},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.ltf],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(h,E){var g=this.getAttribute("aria-label");g&&E!=g||this.setAttribute("aria-label",h)}});var ZWf;var MPD;_.oR=[$IH,_.OJ,{hostAttributes:{role:"option",tabindex:"0"}}];_.OB({_template:function(){if(MPD!==void 0)return MPD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;ZWf===void 0&&(ZWf=document.createElement("template"));var Z=ZWf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return MPD=h},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.oR]});var WjM;var pWH;var GZl={attached:function(){this.fire("addon-attached")},
update:function(){}};var z3D=1,aWB=1,csB=1,iWf=[_.OJ,_.Kf,{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();!U1&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(h,E){h?h=h+" "+E:h=E;return h},
_onAddonAttached:function(h){h=_.vl(h).rootTarget;if(h.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,h.id);else{var E="paper-input-add-on-"+aWB++;h.id=E;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,E)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(h){_.OJ._focusBlurHandler.call(this,h);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var h=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",h);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(h){try{var E=this.inputElement.selectionStart;this.value=h;this.inputElement.selectionStart=E;this.inputElement.selectionEnd=E}catch(g){this.value=h}},
_computeAlwaysFloatLabel:function(h,E){return E||h},
_updateAriaLabelledBy:function(){var h=_.vl(this.root).querySelector("label");if(h){if(h.id)var E=h.id;else E="paper-input-label-"+z3D++,h.id=E;this._ariaLabelledBy=E}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+csB++)},
_onChange:function(h){this.shadowRoot&&this.fire(h.type,{sourceEvent:h},{node:this,bubbles:h.bubbles,cancelable:h.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var h=document.activeElement;h instanceof HTMLElement&&h!==document.body&&h!==document.documentElement||this._focusableElement.focus()}}}];var ogM;var IWl;_.OB({_template:function(){if(IWl!==void 0)return IWl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;ogM===void 0&&(ogM=document.createElement("template"));var Z=ogM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return IWl=h},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[GZl],properties:{_charCounterStr:{type:String,value:"0"}},update:function(h){if(h.inputElement){h.value=h.value||"";var E=h.value.toString().length.toString();h.inputElement.hasAttribute("maxlength")&&(E+="/"+h.inputElement.getAttribute("maxlength"));this._charCounterStr=E}}});var R3f;var P3l;_.OB({_template:function(){if(P3l!==void 0)return P3l;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;R3f===void 0&&(R3f=document.createElement("template"));var Z=R3f;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return P3l=h},
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 Uv(this.attrForValue)},get _inputElement(){return _.vl(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(h){this._addons||(this._addons=[]);h=h.target;this._addons.indexOf(h)===-1&&(this._addons.push(h),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(h){this._handleValueAndAutoValidate(h.target)},
_onValueChanged:function(h){var E=h.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,E.value===void 0||E.value===""))return;this._handleValueAndAutoValidate(h.target)},
_handleValue:function(h){var E=this._inputElementValue;E||E===0||h.type==="number"&&!h.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:h,value:E,invalid:this.invalid})},
_handleValueAndAutoValidate:function(h){this.autoValidate&&h&&(this.invalid=!(h.validate?h.validate(this._inputElementValue):h.checkValidity()));this._handleValue(h)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(h){if(this._addons)for(var E,g=0;E=this._addons[g];g++)E.update(h)},
_computeInputContentClass:function(h,E,g,Z,M){var W="input-content";h?(M&&(W+=" label-is-hidden"),Z&&!this.noUnfloatedLabelError&&(W+=" is-invalid")):(h=this.querySelector("label"),E||M?(W+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",Z?W+=" is-invalid":g&&(W+=" label-is-highlighted")):(h&&(this.$.labelAndInputContainer.style.position="relative"),Z&&!this.noUnfloatedLabelError&&(W+=" is-invalid")));g&&(W+=" focused");return W},
_computeUnderlineClass:function(h,E){var g="underline";E?g+=" is-invalid":h&&(g+=" is-highlighted");return g},
_computeAddOnContentClass:function(h,E){var g="add-on-content";E?g+=" is-invalid":h&&(g+=" is-highlighted");return g}});var BrC;var UvM;_.OB({_template:function(){if(UvM!==void 0)return UvM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;BrC===void 0&&(BrC=document.createElement("template"));var Z=BrC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return UvM=h},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[GZl],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(h){this._setInvalid(h.invalid)}});_.OB({is:"tp-yt-paper-input",_template:function(){if(pWH!==void 0)return pWH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;WjM===void 0&&(WjM=document.createElement("template"));var Z=WjM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return pWH=h},
behaviors:[iWf,_.YJ],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 LjF;var jVl;_.OB({_template:function(){if(jVl!==void 0)return jVl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=
h.content,g=E.insertBefore;LjF===void 0&&(LjF=document.createElement("template"));var Z=LjF;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return jVl=h},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.oR]});var dvA;var C3B;_.OB({_template:function(){if(C3B!==void 0)return C3B;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;dvA===void 0&&(dvA=document.createElement("template"));var Z=dvA;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return C3B=h},
is:"tp-yt-paper-item-body"});var Jsk;var e3B;var qKD=function(){};
_.p=qKD.prototype;_.p.indexOf=function(){};
_.p.selectPrevious=function(){};
_.p.selectNext=function(){};
_.p.selectIndex=function(){};
_.p.forceSynchronousItemUpdate=function(){};
_.p._checkFallback=function(){};
_.p._addListener=function(){};
_.p._removeListener=function(){};
_.p._activateEventChanged=function(){};
_.p._updateItems=function(){};
_.p._selectSelected=function(){};
_.p._filterItem=function(){};
_.p._valueToItem=function(){};
_.p._valueToIndex=function(){};
_.p._indexToValue=function(){};
_.p._valueForItem=function(){};
_.p._observeItems=function(){};
_.p._itemActivate=function(){};
_.p.multiChanged=function(){};
_.p._updateAttrForSelected=function(){};
_.p._updateSelected=function(){};
_.p._selectMulti=function(){};
_.p._selectionChange=function(){};
_.p._toggleSelected=function(){};
_.p._valuesToItems=function(){};
_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p.select=function(){};
_.p._resetTabindices=function(){};
_.p._updateMultiselectable=function(){};
_.p._focusWithKeyboardEvent=function(){};
_.p._clearSearchText=function(){};
_.p._focusPrevious=function(){};
_.p._focusNext=function(){};
_.p._applySelection=function(){};
_.p._focusedItemChanged=function(){};
_.p._onIronItemsChanged=function(){};
_.p._onShiftTabDown=function(){};
_.p._onFocus=function(){};
_.p._onUpKey=function(){};
_.p._onDownKey=function(){};
_.p._onEscKey=function(){};
_.p._onKeydown=function(){};
_.p._activateHandler=function(){};
_.p._disabledChanged=function(){};
_.p._setSelectedItem=function(){};
_.p._setItems=function(){};
_.p._setSelectedItems=function(){};
_.p._setFocusedItem=function(){};
qKD=_.OB({_template:function(){if(e3B!==void 0)return e3B;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;Jsk===void 0&&(Jsk=document.createElement("template"));var Z=Jsk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return e3B=h},
is:"tp-yt-paper-listbox",behaviors:[VvD],hostAttributes:{role:"listbox"}});var fWH;var NrC;var tPF={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(h,E){return[h||E?"active":"",E?"cooldown":""].join(" ")},
__activeChanged:function(h,E){this.__setAriaHidden(!h);this.__coolingDown=!h&&E},
__altChanged:function(h){this.setAttribute("aria-label",h||"loading")},
__setAriaHidden:function(h){h?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.OB({_template:function(){if(NrC!==void 0)return NrC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;fWH===void 0&&(fWH=document.createElement("template"));var Z=fWH;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return NrC=h},
is:"tp-yt-paper-spinner",behaviors:[tPF]});var SKm;var xvF;_.OB({_template:function(){if(xvF!==void 0)return xvF;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;SKm===void 0&&(SKm=document.createElement("template"));var Z=SKm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return xvF=h},
is:"tp-yt-paper-spinner-lite",behaviors:[tPF]});var wWk;var Dvn;_.OB({_template:function(){if(Dvn!==void 0)return Dvn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;wWk===void 0&&(wWk=document.createElement("template"));var Z=wWk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return Dvn=h},
is:"tp-yt-paper-tab",behaviors:[_.OJ,_.X3.IronButtonState,ck],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 h=_.vl(this).parentNode;return!!h&&!!h.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(h){if(this.link){var E=this.queryEffectiveChildren("a");E&&h.target!==E&&E.click()}}});var lWD;var rsD;var mvk=_.uz(['<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>']),vgD=_.$wk(mvk);document.head.appendChild(vgD.content);_.OB({_template:function(){if(rsD!==void 0)return rsD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;lWD===void 0&&(lWD=document.createElement("template"));var Z=lWD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return rsD=h},
is:"tp-yt-paper-tabs",behaviors:[_.F3,_.yUf],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(h){_.vl(this).querySelectorAll("tp-yt-paper-tab").forEach(h?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(h){h.setAttribute("noink","")},
_removeNoinkAttribute:function(h){h.removeAttribute("noink")},
_computeScrollButtonClass:function(h,E,g,Z){return!E||g?"hidden":h?Z?"hidden":"not-visible":""},
_computeTabsContentClass:function(h,E){var g="tabs-content";h&&(g+=" scrollable");if(!h||E)g+=" fit-container";return g},
_computeSelectionBarClass:function(h,E){var g="selection-bar";h?g+=" hidden":E&&(g+=" align-bottom");return g},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(h){return""+h},
_onIronSelect:function(h){this._tabChanged(h.detail.item,this._previousTab);this._previousTab=h.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();_.yJ._activateHandler.apply(this,arguments)},
_scheduleActivation:function(h,E){this._pendingActivationItem=h;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,E)},
_delayedActivationHandler:function(){var h=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;h.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(h){h.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(h,E){this.scrollable&&this._affectScroll(E&&-E.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(h){this.$.tabsContainer.scrollLeft+=h;h=this.$.tabsContainer.scrollLeft;this._leftHidden=h===0||this.hideScrollButtons;this._rightHidden=h===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(h,E){if(h){var g=this.$.tabsContent.getBoundingClientRect(),Z=g.width,M=h.getBoundingClientRect();g=M.left-g.left;this._pos={width:this._calcPercent(M.width,Z),left:this._calcPercent(g,Z)};if(this.noSlide||E==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var W=E.getBoundingClientRect();E=this.items.indexOf(E);h=this.items.indexOf(h);this.$.selectionBar.classList.add("expand");
h=E<h;this._isRTL&&(h=!h);h?this._positionBar(this._calcPercent(M.left+M.width-W.left,Z)-5,this._left):this._positionBar(this._calcPercent(W.left+W.width-M.left,Z)-5,this._calcPercent(g,Z)+5);this.scrollable&&this._scrollToSelectedIfNeeded(M.width,g)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(h,E){E-=this.$.tabsContainer.scrollLeft;E<0?this.$.tabsContainer.scrollLeft+=E:(E+=h-this.$.tabsContainer.offsetWidth,E>0&&(this.$.tabsContainer.scrollLeft+=E))},
_calcPercent:function(h,E){return 100*h/E},
_positionBar:function(h,E){h=h||0;E=E||0;this._width=h;this._left=E;this.transform("translateX("+E+"%) scaleX("+h/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var h=this.$.selectionBar.classList;h.contains("expand")?(h.remove("expand"),h.add("contract"),this._positionBar(this._pos.width,this._pos.left)):h.contains("contract")&&h.remove("contract")}});var HWD;var $vl;_.OB({_template:function(){if($vl!==void 0)return $vl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;HWD===void 0&&(HWD=document.createElement("template"));var Z=HWD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return $vl=h},
is:"tp-yt-paper-textarea",behaviors:[iWf,_.YJ],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(h){this.$.input.textarea.selectionStart=h},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(h){this.$.input.textarea.selectionEnd=h},_ariaLabelledByChanged:function(h){this._focusableElement.setAttribute("aria-labelledby",h)},
_ariaDescribedByChanged:function(h){this._focusableElement.setAttribute("aria-describedby",h)},
get _focusableElement(){return this.inputElement.textarea}});var KjA;var OWD;/*

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 ngC=function(){};
_.p=ngC.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
ngC=_.OB({is:"tp-yt-paper-toggle-button",_template:function(){if(OWD!==void 0)return OWD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;KjA===void 0&&(KjA=document.createElement("template"));var Z=KjA;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return OWD=h},
behaviors:[_.rNl],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");_.pQ(this,function(){_.Vu(this,"pan-y")})},
_ontrack:function(h){h=h.detail;h.state==="start"?this._trackStart(h):h.state==="track"?this._trackMove(h):h.state==="end"&&this._trackEnd(h)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(h){h=h.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+h:h)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+h:h));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 h=ck._createRipple();h.id="ink";h.setAttribute("recenters","");h.classList.add("circle","toggle-ink");return h}});var XWk;var YKk;_.OB({_template:function(){if(YKk!==void 0)return YKk;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;XWk===void 0&&(XWk=document.createElement("template"));var Z=XWk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return YKk=h},
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 h=_.vl(this).parentNode,E=_.vl(this).getOwnerRoot(),g;this.for?g=_.vl(E).querySelector("#"+this.for):g=h.nodeType==Node.DOCUMENT_FRAGMENT_NODE?E.host:h;return g},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(h){h==="entry"?this.show():h==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.vl(this).textContent.trim()===""){for(var h=!0,E=_.vl(this).getEffectiveChildNodes(),g=0;g<E.length;g++)if(E[g].textContent.trim()!==""){h=!1;break}if(h)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 h=this.offset;this.marginTop!=14&&this.offset==14&&(h=this.marginTop);var E=this.offsetParent.getBoundingClientRect(),g=this._target.getBoundingClientRect(),Z=this.getBoundingClientRect(),M=(g.width-Z.width)/2,W=(g.height-Z.height)/2,z=g.left-E.left,c=g.top-E.top;switch(this.position){case "top":var I=z+M;var B=c-Z.height-h;break;case "bottom":I=z+M;B=c+g.height+h;break;case "left":I=z-Z.width-h;B=c+W;break;case "right":I=z+g.width+
h,B=c+W}this.fitToVisibleBounds?(E.left+I+Z.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,I)+"px",this.style.right="auto"),E.top+B+Z.height>window.innerHeight?(this.style.bottom=E.height+"px",this.style.top="auto"):(this.style.top=Math.max(-E.top,B)+"px",this.style.bottom="auto")):(this.style.left=I+"px",this.style.top=B+"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(h){h!==500&&this.updateStyles({"--paper-tooltip-delay-in":h+"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(h){if(h==="entry"&&this.animationEntry!=="")return this.animationEntry;if(h==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[h]&&typeof this.animationConfig[h][0].name==="string"){if(this.animationConfig[h][0].timing&&this.animationConfig[h][0].timing.delay&&this.animationConfig[h][0].timing.delay!==0){var E=this.animationConfig[h][0].timing.delay;h==="entry"?this.updateStyles({"--paper-tooltip-delay-in":E+"ms"}):h==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":E+
"ms"})}return this.animationConfig[h][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 sVM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(sVM,_.GN);var VPF=_.LM(sVM,[0,_.Gb]);var IR=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(IR,_.GN);var kZk=[3,4],ysl=[5,6];var Fjk=[0,kZk,ysl,_.i0,-1,_.pz,_.oj,-1,jza,CSx];var AsF=_.LM(IR,Fjk),TrD=_.jL(Fjk);var bWM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(bWM,_.GN);var uWB=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(uWB,_.GN);var QVC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(QVC,_.GN);var h7M=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(h7M,_.GN);var ESk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ESk,_.GN);var RR=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(RR,_.GN);RR.prototype.getSource=function(){return _.vW(this,1)};
RR.prototype.getMessage=function(){return _.mj(this,4)};
RR.prototype.getData=function(){return _.iK(this,ESk,8)};var gSD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(gSD,_.GN);var Pk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Pk,_.GN);var Bk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Bk,_.GN);var Ur=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Ur,_.GN);Ur.prototype.getUrl=function(){return _.mj(this,1)};
Ur.prototype.setUrl=function(h){return _.ln(this,1,h)};
Ur.prototype.hasUrl=function(){return _.JC(_.Js(this,1))!=null};var ZzA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ZzA,_.GN);var MIl=[3];var WIH=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(WIH,_.GN);var L1=function(h){var E=new WIH;return _.oI(E,2,h)};
WIH.prototype.getLanguage=function(){return $g(this,4,jc)};
var pFn=function(h){var E=L1(1);return _.No(E,6,jc,h)},jc=[3,
4,5,6];var Gbn=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Gbn,_.GN);var dy=function(h){var E=new Gbn;return _.oI(E,1,h)},C1=function(h,E){return _.No(h,2,z7F,E)},z7F=[2,
3,4,5];var aED=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(aED,_.GN);var J0=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(J0,_.GN);var coM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(coM,_.GN);var izf=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(izf,_.GN);var oSC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(oSC,_.GN);var IEH=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(IEH,_.GN);var R7F=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(R7F,_.GN);var ec=function(h){return _.iK(h,Bk,5)};var PYF=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(PYF,_.GN);PYF.prototype.getValue=function(){return l3(this,1)};var BkD=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(BkD,_.GN);var qM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qM,_.GN);qM.prototype.getMetadata=function(){return _.KW(this,oSC,7,f1)};
qM.prototype.hasMetadata=function(){return _.qv(this,oSC,7,f1)};
var UGm=_.$od(qM),f1=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var NM=function(h){this.JSC$12026_name_=h;this.files_=[];this.directories_=[];this.directoryMap_={}};
NM.prototype.getName=function(){return this.JSC$12026_name_};var Sc=function(h,E){this.callback_=E;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new NM("");LIm(this,h,this.rootDirectory_);t0(this)},LIm=function(h,E,g){for(var Z=0;Z<E.length;Z++){var M=E[Z];
M.isFile?(h.fileOps_++,M.file((0,_.DJ)(h.handleFileSuccess_,h,g),(0,_.DJ)(h.handleFileError_,h))):h.unscannedDirectories_.push(new jOn(M,g))}},t0=function(h){if(h.unscannedDirectories_.length>0&&h.directoryOps_<5&&!h.hasError_){h.directoryOps_++;
var E=h.unscannedDirectories_.shift(),g=E.entry,Z=new NM(g.name);E=E.parent;E.directoryMap_[Z.getName()]=Z;E.directories_.push(Z);g=g.createReader();g.readEntries((0,_.DJ)(h.handleDirectorySuccess_,h,g,Z),(0,_.DJ)(h.handleDirectoryError_,h))}h.directoryOps_!=0||h.fileOps_!=0||h.unscannedDirectories_.length!=0&&!h.hasError_||h.callback_(h.rootDirectory_.files_,h.rootDirectory_.directories_,h.hasError_)};
Sc.prototype.handleDirectorySuccess_=function(h,E,g){LIm(this,g,E);g.length==0?(this.directoryOps_--,t0(this)):h.readEntries((0,_.DJ)(this.handleDirectorySuccess_,this,h,E),(0,_.DJ)(this.handleDirectoryError_,this))};
Sc.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;t0(this)};
Sc.prototype.handleFileSuccess_=function(h,E){h.files_.push(E);this.fileOps_--;t0(this)};
Sc.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;t0(this)};
var jOn=function(h,E){this.entry=h;this.parent=E};var xc=function(h){_.ms.call(this);_.vK(h,"drop",this.onObjectsDropped_,!1,this);_.vK(h,"dragenter",this.onFilesDragged_,!1,this);_.vK(h,"dragover",this.onFilesDragged_,!1,this);_.vK(h,"dragleave",this.onDragLeave_,!1,this);_.vK(h,"dragend",this.onDragLeave_,!1,this)};
_.aV(xc,_.ms);var dGD=function(h,E){_.xD.call(this,"f");this.files=h;this.directories=E};
_.aV(dGD,_.xD);var CYn=function(){_.xD.call(this,"h")};
_.aV(CYn,_.xD);var Jol=function(){_.xD.call(this,"i")};
_.aV(Jol,_.xD);var e7f=function(){_.xD.call(this,"g")};
_.aV(e7f,_.xD);xc.prototype.onObjectsDropped_=function(h){var E=this;h.preventDefault();var g=h.event_.dataTransfer;if((h=g&&g.items)&&h.length>0&&h[0].webkitGetAsEntry){g=[];for(var Z=[],M=0;M<h.length;M++){var W=h[M].webkitGetAsEntry();W?g.push(W):Z.push(h[M])}new Sc(g,function(z,c,I){I?E.dispatchEvent(new e7f("Error occurred while reading from the file system.")):E.dispatchEvent(new dGD(z,c,Z))})}else(h=g&&g.files)&&this.dispatchEvent(new dGD(Array.from(h),[]))};
xc.prototype.onFilesDragged_=function(h){h.type==="dragenter"&&this.dispatchEvent(new CYn);h.preventDefault()};
xc.prototype.onDragLeave_=function(){this.dispatchEvent(new Jol)};var qpm=function(h,E){this.JSC$12049_name_=h;this.inputElement_=E};
qpm.prototype.getName=function(){return this.JSC$12049_name_};
qpm.prototype.getInputElement=function(){return this.inputElement_};var wy=function(h,E,g){E=E===void 0?"single_file":E;g=g===void 0?[]:g;_.ms.call(this);this.overlayTarget_=h;this.parentOverlay_=h!=null?h.parentNode:_.q3("scotty-overlay-parent");this.selectorType_=E;this.acceptTypes_=g;this.overlay_=fEf(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.f(wy,_.ms);
var fEf=function(h,E,g,Z){var M=document.createElement("input");M.setAttribute("type","file");M.setAttribute("name","Filedata");_.vK(M,"change",h.onFilesSelected_,!1,h);g==="multiple_file"&&(M.multiple="true");g==="single_directory"&&(M.webkitdirectory="true");Z.length>0&&M.setAttribute("accept",Z.join(","));M.style.position="absolute";M.style.overflow="hidden";M.style.height="0px";M.style.width="0px";M.style.opacity="0";M.setAttribute("aria-hidden","true");M.setAttribute("tabIndex",-1);if(h.overlayTarget_!=
null)return M.style.height=E.offsetHeight+"px",M.style.width=E.offsetWidth+"px",h.parentOverlay_&&(h.parentOverlay_.style.position="relative"),_.sp(M,E),Tb(M,new _.nt(E.offsetLeft,E.offsetTop)),M;h.parentOverlay_.appendChild(M);return M};
wy.prototype.click=function(){this.overlay_.click()};
wy.prototype.onFilesSelected_=function(h){a:{try{var E=(new XMLHttpRequest).upload!==void 0;break a}catch(B){}E=!1}if(E){var g;h=Array.from((g=h.target.files)!=null?g:[]);g=[];if(this.selectorType_==="single_directory"&&(_.PW||Zp||_.RV)){g=new NM("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(E=0;E<h.length;E++)for(var Z=h[E],M=Z.webkitRelativePath.split("/"),W=g,z=0;z<M.length;z++){var c=M[z];if(z==M.length-1){c!="."&&W.files_.push(Z);break}var I=W.directoryMap_[c];I==void 0&&(c=
I=new NM(c),W.directoryMap_[c.getName()]=c,W.directories_.push(c));W=I}g=g.directories_}this.dispatchEvent(new Nkf(h,g,null))}else h=h.target.value,h.match(/^c:\\fakepath\\/i)&&(h=h.substring(12)),this.dispatchEvent(new Nkf([],[],new qpm(h,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=fEf(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Nkf=function(h,E){_.xD.call(this,"j");this.files=h;this.directories=E};
_.f(Nkf,_.xD);var tID=function(h){this.uploadUrl_=h};var Spk=function(){_.ms.call(this)};
_.aV(Spk,_.ms);var DL=function(h){_.xD.call(this,h)};
_.aV(DL,_.xD);var lM=function(h){_.xD.call(this,h)};
_.aV(lM,_.xD);var xGk=function(h,E,g,Z,M){_.ms.call(this);g=document.createElement("form");g.setAttribute("method",E);g.setAttribute("enctype","multipart/form-data");g.setAttribute("encoding","multipart/form-data");E=document.createElement("input");E.setAttribute("type","hidden");E.setAttribute("name","metadata");E.setAttribute("value",M);g.appendChild(E);g.appendChild(Z);this.JSC$12066_form_=g;h=new _.WX(h);_.u4(h,"upload_protocol","multipart");this.JSC$12066_url_=h.toString();this.JSC$12066_request_=new Lf;this.state_=
"Ready";this.JSC$12066_errorDescription_=null;this.JSC$12066_eventHandler_=new _.Pl(this);_.jf(this,this.JSC$12066_eventHandler_);this.JSC$12066_eventHandler_.listen(this.JSC$12066_request_,"success",this.onTransferSuccess_);this.JSC$12066_eventHandler_.listen(this.JSC$12066_request_,"error",this.onTransferError_)};
_.f(xGk,Spk);_.p=xGk.prototype;_.p.run=function(){this.state_="Transferring";var h=this.JSC$12066_request_,E=this.JSC$12066_form_;if(h.JSC$11484_active_)throw Error("te");var g=new _.WX(this.JSC$12066_url_||E.action);h.JSC$11484_form_=E;E=h.JSC$11484_form_;g=_.kr(g.toString());g!==void 0&&(E.action=g);Mdk(h)};
_.p.getResponseCode=function(){return null};
_.p.getResponseText=function(){return this.JSC$12066_request_&&this.JSC$12066_request_.getResponseText()||null};
_.p.JSC$29478_getErrorDescription=function(){return this.JSC$12066_errorDescription_};
_.p.cancel=function(){this.JSC$12066_request_&&this.JSC$12066_request_.abort();this.state_="Cancelled";this.dispatchEvent(new DL("o"))};
_.p.pause=function(){};
_.p.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new DL("l"))};
_.p.onTransferError_=function(){this.JSC$12066_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new DL("n"))};var ry=function(){_.YD.call(this)};
_.f(ry,_.YD);ry.prototype.createXhr=function(){var h=_.YD.prototype.createXhr.call(this);h.upload&&(h.upload.onprogress=(0,_.DJ)(this.onProgress_,this));return h};
ry.prototype.onProgress_=function(h){this.dispatchEvent(h)};var wFM=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},lEf=function(h,E){var g=h.attempt_+1;
if(h.maxAttempts_>0&&g>h.maxAttempts_)return!1;g==0?E():h.delayCallId_=Oj(function(){h.delayCallId_=null;E()},DGf(h),h);
h.attempt_=g;return!0};
wFM.prototype.reset=function(){this.delayCallId_&&_.MN.clearTimeout(this.delayCallId_);this.attempt_=-1};
var DGf=function(h){var E=250*Math.pow(2,h.attempt_);h.maxDelayMs_>=0&&(E=Math.min(E,h.maxDelayMs_));return E};var Mbq=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var mH=function(){_.ms.call(this);this.JSC$12076_request_=this.state_=null;this.JSC$12076_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12076_bytesTransferred_=0;this.retryIterator_=new wFM;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12076_errorDescription_=null;this.JSC$12076_eventHandler_=new _.Pl(this);_.jf(this,this.JSC$12076_eventHandler_);this.JSC$12076_url_=this.blob_=null;this.JSC$12076_method_=void 0;this.chunkSize_=this.JSC$12076_metadata_=
this.JSC$12076_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12076_responseText_=this.JSC$12076_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.aV(mH,Spk);_.p=mH.prototype;_.p.run=function(){vk(this)};
_.p.getResponseCode=function(){return this.JSC$12076_responseCode_};
_.p.getResponseText=function(){return this.JSC$12076_responseText_};
_.p.JSC$29478_getErrorDescription=function(){return this.JSC$12076_errorDescription_};
_.p.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12076_eventHandler_.removeAll();this.JSC$12076_request_&&this.JSC$12076_request_.abort();this.retryIterator_.reset();var h=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(h==="Upload"||h==="Query")h=new ry,h.JSC$9797_withCredentials_=this.JSC$12076_withCredentials_,h.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12076_bytesTransferred_=
0;this.dispatchEvent(new DL("o"))}};
_.p.pause=function(){this.pauseRequested_=!0};
var vk=function(h){var E=h.state_;h.pauseRequested_?(h.pauseRequested_=!1,h.stateAfterUnpausing_=E,h.state_="Paused"):lEf(h.retryIterator_,function(){switch(h.state_){case "Start":h.JSC$12076_request_=new ry;var g=_.Kt.clone(h.JSC$12076_headers_);h.blob_.size!=null&&(g["Content-Length"]=h.blob_.size);g=Woz(g);g["X-Goog-Upload-Protocol"]="resumable";g["X-Goog-Upload-Command"]="start";h.JSC$12076_eventHandler_.removeAll();h.JSC$12076_eventHandler_.listen(h.JSC$12076_request_,"complete",h.onStartComplete_);
h.JSC$12076_request_.JSC$9797_withCredentials_=h.JSC$12076_withCredentials_;h.JSC$12076_request_.send(h.JSC$12076_url_,h.JSC$12076_method_,h.JSC$12076_metadata_,g);h.lastCommandResponseCode_=null;h.dispatchEvent(new lM("q"));break;case "Upload":g=h.transferHandle_.uploadUrl_;var Z=h.blob_.size;if(r1B()){var M=h.chunkSize_;var W=h.offset_+M>=Z;Z=lPm(h.blob_,h.offset_,W?Z:h.offset_+M)}else h.offset_=0,Z=h.blob_,W=!0;h.JSC$12076_request_=new ry;h.JSC$12076_request_.JSC$9797_withCredentials_=h.JSC$12076_withCredentials_;
h.JSC$12076_eventHandler_.removeAll();h.JSC$12076_eventHandler_.listen(h.JSC$12076_request_,"progress",h.onUploadProgress_);M=(0,_.DJ)(h.JSC$12078_onUploadComplete_,h,h.offset_+Z.size,W);h.JSC$12076_eventHandler_.listen(h.JSC$12076_request_,"complete",M);h.lastCommandResponseCode_=null;h.dispatchEvent(new lM("q"));W=Object.assign({},h.JSC$12076_headers_||{},{"X-Goog-Upload-Command":"upload"+(W?", finalize":""),"X-Goog-Upload-Offset":h.offset_});h.JSC$12076_request_.send(g,"POST",Z,W);break;case "Query":h.JSC$12076_request_=
new ry;h.JSC$12076_eventHandler_.removeAll();h.JSC$12076_eventHandler_.listen(h.JSC$12076_request_,"complete",h.onQueryComplete_);g=Object.assign({},h.JSC$12076_headers_||{},{"X-Goog-Upload-Command":"query"});h.JSC$12076_request_.send(h.transferHandle_.uploadUrl_,"POST","",g);h.lastCommandResponseCode_=null;h.dispatchEvent(new lM("q"));break;default:throw Error("jf");}})||Hk(h,"Transfer encountered too many consecutive failures.")},Hk=function(h,E){h.state_="Error";
h.JSC$12076_errorDescription_=E;h.dispatchEvent(new DL("n"))};
mH.prototype.onStartComplete_=function(h){var E=h.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new lM("r"));if(roB(E))mGM(this,E);else if(vSD(E)){h=g9(h.target.getAllResponseHeaders());for(var g in h)_.Gu(g.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new DL("m"));g=$N(h,"X-Goog-Upload-URL");h=(h=$N(h,"X-Goog-Upload-Chunk-Granularity"))?parseInt(h,10):1;g===void 0||isNaN(h)||h<=0?Hk(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
h)*h,this.transferHandle_=new tID(g),this.dispatchEvent(new DL("p")),this.state_="Upload",this.retryIterator_.reset(),vk(this))}else vk(this)};
mH.prototype.onUploadProgress_=function(h){this.JSC$12076_bytesTransferred_=this.offset_+h.loaded;this.dispatchEvent(new DL("k"))};
mH.prototype.JSC$12078_onUploadComplete_=function(h,E,g){var Z=this,M,W;return _.a(function(z){switch(z.nextAddress){case 1:M=g.target;Z.lastCommandResponseCode_=M.getStatus();Z.dispatchEvent(new lM("r"));if(Hzn(M)||M.getStatus()==404)return Z.JSC$12076_bytesTransferred_=h,mGM(Z,M),z.return();if(vSD(M)){z.jumpTo(2);break}if(!(W=Z.detectCorruptedBlobEnabled_)){z.jumpTo(3);break}return z.yield($Gl(Z),4);case 4:W=z.yieldResult;case 3:if(W)return Hk(Z,"Blob has been modified or corrupted."),z.return();
Z.requireUploadRequestModification_=M.getStatus()==400;Z.state_="Query";vk(Z);return z.return();case 2:if(E)return Hk(Z,"Got a non-final success response after issuing a finalize command."),z.return();Z.JSC$12076_bytesTransferred_=h;Z.offset_=h;Z.retryIterator_.reset();vk(Z);return z.return()}})};
mH.prototype.onQueryComplete_=function(h){var E=h.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new lM("r"));roB(E)?(E.getStatus()===200&&(this.JSC$12076_bytesTransferred_=this.blob_.size),mGM(this,E)):vSD(E)?(h=g9(h.target.getAllResponseHeaders()),h=parseInt($N(h,"X-Goog-Upload-Size-Received"),10),isNaN(h)?Hk(this,"Server did not respond with current offset."):h<this.offset_?Hk(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
h+"."):this.requireUploadRequestModification_&&this.offset_===h?Hk(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<h&&this.retryIterator_.reset(),this.offset_=this.JSC$12076_bytesTransferred_=h,this.state_="Upload",vk(this))):vk(this)};
var mGM=function(h,E){h.JSC$12076_responseCode_=E.getStatus();var g=g9(E.getAllResponseHeaders());ps$(g);h.JSC$12076_responseText_=E.getResponseText();h.state_="Response received";h.dispatchEvent(new DL("l"))},vSD=function(h){var E=h.getStatus();
h=g9(h.getAllResponseHeaders());h=$N(h,"X-Goog-Upload-Status");return E===200&&h==="active"},Hzn=function(h){h=g9(h.getAllResponseHeaders());
return $N(h,"X-Goog-Upload-Status")==="final"},roB=function(h){if(Hzn(h))return!0;
h=h.getStatus();return h>=400&&h<500},$Gl=function(h){var E;
return _.a(function(g){if(g.nextAddress==1){if(!h.blob_||h.originalBlobSize_<=0)return g.return(!1);if(h.blob_.size!==h.originalBlobSize_)return g.return(!0);_.CX(g,2);if(E=lPm(h.blob_,0,1)){var Z=g.yield,M=new EJ,W=PqC(M);M.reader_.readAsBinaryString(E);g=Z.call(g,W,4)}else g=g.return(!0);return g}if(g.nextAddress!=2)return g.return(h.blob_.size!==h.originalBlobSize_);_.th(g);return g.return(!0)})};var KIl=function(h,E,g,Z,M,W){_.ms.call(this);this.payload_=Z;this.JSC$12079_url_=h;this.JSC$12079_method_=E;this.JSC$12079_headers_=g;this.JSC$12079_metadata_=M;this.encoding_=W||"binary";h=new _.n2;this.boundary_="uploader-"+AA()+"-"+h.JSC$11333_toIsoString();this.JSC$12079_responseText_=this.JSC$12079_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12079_errorDescription_=null;this.JSC$12079_eventHandler_=new _.Pl(this);_.jf(this,this.JSC$12079_eventHandler_)};
_.f(KIl,Spk);_.p=KIl.prototype;
_.p.run=function(){var h=_.Kt.clone(this.JSC$12079_headers_);this.payload_.length!=null&&(h["Content-Length"]=this.payload_.length);h=Woz(h);h["X-Goog-Upload-Protocol"]="multipart";h["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ry;this.JSC$12079_eventHandler_.removeAll();this.JSC$12079_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12079_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12079_url_,this.JSC$12079_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12079_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",h)};
_.p.getResponseCode=function(){return this.JSC$12079_responseCode_};
_.p.getResponseText=function(){return this.JSC$12079_responseText_};
_.p.JSC$29478_getErrorDescription=function(){return this.JSC$12079_errorDescription_};
_.p.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12079_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new DL("o")))};
_.p.pause=function(){};
_.p.onTransferProgress_=function(){this.dispatchEvent(new DL("k"))};
_.p.onTransferComplete_=function(h){var E=h.target.getStatus();E===void 0||E===-1?(this.JSC$12079_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new DL("n"))):(this.JSC$12079_responseCode_=E,h=h.target,E=g9(h.getAllResponseHeaders()),ps$(E),this.JSC$12079_responseText_=h.getResponseText(),this.state_="Complete",this.dispatchEvent(new DL("l")))};_.Ozn=function(h,E,g,Z){Z=Z===void 0?!1:Z;if(g instanceof qpm)return new xGk(h,"POST",E,g.getInputElement(),"");if(typeof g==="string"||g instanceof String)return new KIl(h,"POST",E,g,"");var M=new mH(void 0);M.JSC$12076_url_=h;M.JSC$12076_method_="POST";M.JSC$12076_headers_=E;M.blob_=g;M.originalBlobSize_=g.size;M.JSC$12076_metadata_="";Z&&(M.JSC$12076_withCredentials_=Z);M.state_="Start";return M};var $c=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f($c,_.GN);_.p=$c.prototype;_.p.getEnableSsEngine=function(){return _.DW(this,2)};
_.p.getEnableAwr=function(){return _.DW(this,3)};
_.p.getAlohaAutoGaRollout=function(){return _.DW(this,5)};
_.p.getEnableConfigurator=function(){return _.DW(this,6)};
_.p.getEnableMweb=function(){return _.DW(this,7)};
var XFD=function(){var h=nSB();return _.OH(h,7,!0)};
$c.prototype.getEnableCtlConsentCheckbox=function(){return _.DW(this,8)};
$c.prototype.getEnableIframe=function(){return _.DW(this,9)};
var nSB=function(){var h=new $c;h=_.OH(h,5,!0);h=_.OH(h,2,!0);h=_.OH(h,4,!1);h=_.OH(h,8,!0);return _.OH(h,9,!0)};
$c.prototype.getEnableScreenshotNudge=function(){return _.DW(this,10)};
var YpD=function(){var h=XFD();return _.OH(h,10,!0)};
$c.prototype.getEnableWebStartupConfigEndpoint=function(){return _.DW(this,11)};
$c.prototype.getEnableJunkNudge=function(){return _.DW(this,12)};
var f4$=function(){var h=YpD();return _.OH(h,12,!0)};
_.p=$c.prototype;_.p.getEnableConfiguratorLocale=function(){return _.DW(this,13)};
_.p.getEnableTinyNoPointer=function(){return _.DW(this,14)};
_.p.getEnableSupportSessionLogging=function(){return _.DW(this,15)};
_.p.getEnableFileUploadForScreenshot=function(){return _.DW(this,16)};
_.p.getEnableDirectDeflectionForSingleCategory=function(){return _.DW(this,17)};
_.p.getEnableImageSanitization=function(){return _.DW(this,18)};
_.p.getEnableAlohaBinarySplit=function(){return _.DW(this,19)};
_.p.getEnableDbFeedbackIntents=function(){return _.DW(this,20)};
_.p.getEnableMarkMandatoryFieldsWithRequired=function(){return _.DW(this,21)};
_.p.getEnableFeedbackCategoryCustomUi=function(){return _.DW(this,22)};
_.p.getEnableRealtimeCtl=function(){return _.DW(this,23)};var qR$=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qR$,_.GN);var G1Z=[/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 a4x="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 cBN=_.uz(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),ibq=_.uz(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var I4Z,Bhz,Rez,UlW;var sOH,VIk;
sOH=function(h,E,g){h.timeOfStartCall=(new Date).getTime();var Z=g||_.MN,M=Z.document,W=h.nonce||_.gx(Z.document);W&&!h.nonce&&(h.nonce=W);if(h.flow=="help"){var z=_.yy("document.location.href",Z);!h.helpCenterContext&&z&&(h.helpCenterContext=z.substring(0,1200));z=!0;if(E&&JSON&&JSON.stringify){var c=JSON.stringify(E);(z=c.length<=1200)&&(h.psdJson=c)}z||(E={invalidPsd:!0})}E=[h,E,g];Z.GOOGLE_FEEDBACK_START_ARGUMENTS=E;g=h.feedbackServerUri||"//www.google.com/tools/feedback";if(z=Z.GOOGLE_FEEDBACK_START)z.apply(Z,E);
else{Z=g+"/load.js?";for(var I in h)E=h[I],E==null||_.yx(E)||(Z+=encodeURIComponent(I)+"="+encodeURIComponent(E)+"&");h=w2(M).createElement("SCRIPT");W&&h.setAttribute("nonce",W);_.pX(h,_.wU(Z));M.body.appendChild(h)}};
VIk=function(h,E,g,Z){var M,W;_.a(function(z){M=g||_.MN;var c=h.serverEnvironment==="DEV",I=g||_.MN;I=h.nonce||_.gx(I.document);c={integrationKeys:{productId:h.productId,feedbackBucket:h.bucket,triggerId:h.triggerId},callbacks:{onClose:h.callback,onLoad:h.onLoadCallback},formContent:{locale:h.locale,disableScreenshot:h.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:h.abuseLink,additionalDataConsent:h.additionalDataConsent},initializationData:{isLocalServer:c,nonce:I,useNightlyRelease:c,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:h.feedbackServerUri,colorScheme:h.colorScheme},extraData:{productVersion:h.productVersion,authUser:h.authuser,configuratorId:h.configuratorId,customZIndex:h.customZIndex,tinyNoPointer:h.tinyNoPointer,
allowNonLoggedInFeedback:h.allowNonLoggedInFeedback,enableAnonymousFeedback:h.enableAnonymousFeedback}};E&&(I=new Map(Object.entries(E)),c.extraData.productSpecificData=I);W=c;return z.yield(CQW(W,Z,M),0)})};
_.kbD=function(h,E,g){try{if(h.flow==="help"){var Z=h.helpCenterPath.replace(/^\//,"");_.EZ(g||window,"https://support.google.com/"+Z)}else h.flow==="submit"?sOH(h,E,g):Nhz(h.productId,h.feedbackServerUri).then(function(M){M=_.iK(M,$c,1);var W=!HoZ||(M==null?void 0:M.getEnableMweb()),z=!h.tinyNoPointer||(M==null?void 0:M.getEnableTinyNoPointer());!M||M.getAlohaAutoGaRollout()&&W&&z?VIk(h,E,g,M):sOH(h,E,g)},function(M){M&&M.name!=="DuplicateFormError"&&sOH(h,E,g)})}catch(M){VIk(h,E,g,null)}};
_.Wu("userfeedback.api.startFeedback",_.kbD);var tba=/https?:\/\/\S+\.\S+/,SRd=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],xlV=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var bya=function(h){var E=h.split(""),g=[-263237435,15,E,function(Z,M,W){var z=M.length;W.forEach(function(c,I,B){this.push(B[I]=M[(M.indexOf(c)-M.indexOf(this[I])+I+z--)%M.length])},Z.split(""))},
function(Z,M){Z=(Z%M.length+M.length)%M.length;M.splice(-Z).reverse().forEach(function(W){M.unshift(W)})},
"response",function(){for(var Z=64,M=[];++Z-M.length-32;){switch(Z){case 58:Z-=14;case 91:case 92:case 93:continue;case 123:Z=47;case 94:case 95:case 96:continue;case 46:Z=95}M.push(String.fromCharCode(Z))}return M},
null,12,1540023973,65941107,null,E,function(Z,M){for(Z=(Z%M.length+M.length)%M.length;Z--;)M.unshift(M.pop())},
695603893,function(Z){for(var M=Z.length;M;)Z.push(Z.splice(--M,1)[0])},
"'[;'[(",function(Z,M){Z.push(M)},
null,function(Z,M,W,z,c){return M(W,z,c)},
"continuation",E,function(Z,M){if(Z.length!=0){M=(M%Z.length+Z.length)%Z.length;var W=Z[0];Z[0]=Z[M];Z[M]=W}},
function(){for(var Z=64,M=[];++Z-M.length-32;){switch(Z){case 91:Z=44;continue;case 123:Z=65;break;case 65:Z-=18;continue;case 58:Z=96;continue;case 46:Z=95}M.push(String.fromCharCode(Z))}return M},
'"),/]];'];g[7]=g;g[11]=g;g[18]=g;try{(((0,g[15])(g[21]),g[22])(g[11],g[9]),g[22])(g[new Date("1970-01-01T04:30:12.000+04:30")/1E3],g[1]),((0,g[22])(g[11],g[23]),g[4])(g[10],g[18]),(0,g[20])(g[21],g[14])<<(0,g[17])(g[18],g[1]),(0,g[4])(g[8],g[21]),(0,g[19])((0,g[19])((0,g[17])(g[7],g[9]),g[3],g[20],(0,g[6])(),g[2]),g[3],g[5],(0,g[15])(),g[2])}catch(Z){return"aTlOUOubTO4AP____8P_"+h}return E.join("")};_.yoD=new _.I2("runAttestationCommand");var FIl=new _.I2("verifyCommand");_.te=new _.I2("accessibilityContext");var AoD=new _.I2("accessibilityData");var TkD=new _.I2("profileCardCommand");var Zs$=new _.I2("signInEndpoint");var g0z=new _.I2("signOutEndpoint");var uVB;_.bzD=new _.I2("accountItemSectionRenderer");uVB=new _.I2("accountItemRenderer");_.QOl=new _.I2("saveCommandToSessionStorageAction");var hPk=new _.I2("crossAccountChannelTransferEndpoint");var urx=new _.I2("getAccountMenuEndpoint");_.Q$$=new _.I2("getAccountSwitcherEndpoint");var b_W=new _.I2("getAccountsListEndpoint");var EDk=new _.I2("getAccountsListInnertubeEndpoint");_.K1=new _.I2("addToToastAction");var gDl=new _.I2("hideEnclosingAction");_.Or=new _.I2("replaceEnclosingAction");var ZAC=new _.I2("buttonRefreshAction");var MJA=new _.I2("adsControlFlowOpportunityReceivedCommand");var Wsf=new _.I2("openAdAllowlistInstructionCommand");var pQk=new _.I2("videoMastheadAdPrimaryVideoRenderer");var Gcm=new _.I2("displayAdRenderer");_.zPF=new _.I2("inFeedAdLayoutRenderer");var aDF=new _.I2("sequenceItemInPlayerAdLayoutRenderer");_.cOD=new _.I2("adSlotRenderer");var iAD=new _.I2("adAvatarViewModel");var oDf=new _.I2("adBadgeViewModel");var IDC=new _.I2("adButtonViewModel");var RPn=new _.I2("adImageViewModel");var UE4=new _.I2("reelsAdCardButtonedViewModel");var P0D=new _.I2("reelsPlayerOverlayLayoutViewModel");var B6C=new _.I2("showSchedulingPanelCommand");var UgM=new _.I2("backstageCommentsRenderer");var LsC=new _.I2("backstageImageRenderer");var jjl=new _.I2("backstagePostRenderer");var dgD=new _.I2("backstageZeroStateRenderer");var C0l=new _.I2("postRenderer");var JOD=new _.I2("sharedPostRenderer");var ePA=new _.I2("createBackstagePostEndpoint");var qjC=new _.I2("getPostVideoPreviewEndpoint");var fDD=new _.I2("updateBackstagePostEndpoint");var N6D=new _.I2("filterChipTransformCommand");var tJf=new _.I2("insertRichSectionCommand");var IZu=new _.I2("talkToRecsDeselectCommand");var SjF=new _.I2("talkToRecsNextCommand");var o1x=new _.I2("talkToRecsSelectCommand");var xgM=new _.I2("talkToRecsUpdateTextCommand");_.tk=new _.I2("browseEndpoint");_.wQB=new _.I2("confirmDialogEndpoint");var Dgm=new _.I2("expandOnHoverCardRenderer");var lDl=new _.I2("lumiereShelfDetailsRenderer");var rOC=new _.I2("revealBusinessEmailCommand");var mgC=new _.I2("validateChannelHandleCommand");var vDl=new _.I2("channelCreationFormEndpoint");var HAD=new _.I2("aboutChannelViewModel");var $gm=new _.I2("channelThumbnailWithLinkRenderer");var Ksf=new _.I2("channelCreationServiceEndpoint");var OAk=new _.I2("updateChannelPageSettingsEndpoint");var n1=function(h){this.delegate=h},XA=function(){n1.apply(this,arguments)};
_.f(XA,n1);_.ze.Object.defineProperties(XA.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(h){this.delegate.entityMetadata=h}}});var nDk=function(){XA.apply(this,arguments)};
_.f(nDk,XA);nDk.prototype.getAssociations=function(){return[]};
nDk.prototype.getTypeName=function(){return"channelHandle"};var Z5W=new _.I2("webThumbnailDetailsExtensionData");var dnZ=new _.I2("commandContext");var XQl=new _.I2("addVideoLinkAction");var YjM=new _.I2("banAuthorAction");var sjf=new _.I2("createCommentAction");var VJA=new _.I2("createCommentReplyAction");var kcC=new _.I2("createPollAction");var yOM=new _.I2("hideIdentityChipAction");var FsC=new _.I2("openUpdateCommentDialogAction");var AOH=new _.I2("pinCommentAction");var T6l=new _.I2("removeCommentAction");var bAm=new _.I2("unpinCommentAction");var Yc=new _.I2("updateBackstagePollAction");var uYl=new _.I2("updateCommentVoteAction");var QjM=new _.I2("commentThreadRenderer");var hpf=function(){XA.apply(this,arguments)};
_.f(hpf,XA);hpf.prototype.getAssociations=function(){return[]};
hpf.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var EsM=function(){XA.apply(this,arguments)};
_.f(EsM,XA);EsM.prototype.getAssociations=function(){return[]};
EsM.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.gsf=new _.I2("commentDialogRenderer");var Zrf=new _.I2("reloadCommentsCommand");var M_D=new _.I2("updateCommentsSettingsEndpoint");var W9M=new _.I2("commentViewModel");var p5D=new _.I2("triStateButtonViewModel");var G7F=new _.I2("voiceReplyContainerViewModel");_.CZ=new _.I2("commandExecutorCommand");var YB=new _.I2("emoji");var zpn=new _.I2("updateCreatorChannelInnertubeCommand");_.aYl=new _.I2("appendContinuationItemsAction");_.c2F=new _.I2("changeEngagementPanelVisibilityAction");_.yQ=new _.I2("continuationCommand");var irF=new _.I2("hideReportedCommentAction");var osn=new _.I2("listMutationCommand");_.sr=new _.I2("openPopupAction");var IYn=new _.I2("persistSubscriptionsDisplayPreferencesCommand");var CGf;_.RpF=new _.I2("playlistRemoveVideosAction");_.PGl=new _.I2("updatePlaylistAction");_.BGH=new _.I2("addToPlaylistCommand");_.U$F=new _.I2("endPlaylistCommand");_.L9l=new _.I2("recoverPlaylistCommand");_.jbM=new _.I2("refreshPlaylistCommand");_.d$f=new _.I2("refreshFormCommand");CGf=new _.I2("openOnePickAddVideoModalCommand");_.WNq=new _.I2("reloadContinuationItemsCommand");_.J2D=new _.I2("scrollToEngagementPanelCommand");var epM=new _.I2("selectCountryCommand");var qff=new _.I2("showReloadUiCommand");var fYC=new _.I2("undoFeedbackAction");var NGD=new _.I2("updateButtonAction");var t_C=new _.I2("updateSubscribeButtonAction");var Sfk=new _.I2("updateToggleAction");var x$M=new _.I2("webNativeShareCommand");_.qH=new _.I2("webCommandMetadata");_.Vi=new _.I2("webHandleServiceEndpointExtension");var Qh4=new _.I2("webNavigationEndpointData");var w5f=new _.I2("backgroundAudioPlaybackCommand");var D$B=new _.I2("copyLinkCommand");var lYC=new _.I2("playlistVotingRefreshPopupCommand");var r2l=new _.I2("selectChipCommand");var m$f=new _.I2("setCookieCommand");var vsk=new _.I2("setLocalStorageCommand");var Hrk=new _.I2("setPrefStorageEntryCommand");var nsf;_.$$M=new _.I2("settingsUpdateCheckboxCommand");_.K9B=new _.I2("settingsUpdateTextCommand");_.Orl=new _.I2("settingsUpdateOptionsCommand");nsf=new _.I2("settingsUpdateSwitchCommand");_.X5C=new _.I2("settingsUpdateConnectedAppRendererCommand");var Yfn=new _.I2("showCreatorChatbotEngagementPanelCommand");var sbB=new _.I2("updateTextInputFormFieldRendererCommand");var V_M=new _.I2("updateToggleButtonStateCommand");var k7B=new _.I2("updateUrlParamCommand");var y2f=new _.I2("webSubmitFormCommand");var F9F=new _.I2("channelSwitcherPageRenderer"),A2B=new _.I2("updateChannelSwitcherPageAction");_.Ec=new _.I2("continuationItemRenderer");_.kc=new _.I2("richItemRenderer");var TGC=new _.I2("richSectionRenderer");_.brH=new _.I2("richShelfRenderer");_.uED=new _.I2("metadataBadgeRenderer");_.QbD=new _.I2("multiPageMenuNotificationSectionRenderer");_.hem=new _.I2("playlistLoopButtonStateRenderer");var EFf=new _.I2("claimLegacyYoutubeChannelEndpoint");var gFl=new _.I2("getNotificationMenuEndpoint");var ZbC=new _.I2("getSearchInVideoCommand");_.MbF=new _.I2("getTranscriptEndpoint");_.ej=new _.I2("signalServiceEndpoint");var WoC=new _.I2("verifyAgeEndpoint");var h0a=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(h0a,_.GN);h0a.prototype.getPath=function(){return _.mj(this,1)};
h0a.prototype.getValue=function(){return _.mj(this,2)};var psB=[0,_.gk,-1];var G1f=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(G1f,_.GN);var Qcu=_.LM(G1f,[0,_.WF,psB]);var zel=new _.I2("dismissalEndpoint");var a4k=new _.I2("elementsCommand");_.V1=new _.I2("innertubeCommand");var cBA=new _.I2("multipleInlinePlaybackCommand");var HNa=new _.I2("loggingDirectives");var ibF=new _.I2("acknowledgeChannelTouStrikeCommand");var oFM=function(){XA.apply(this,arguments)};
_.f(oFM,XA);oFM.prototype.getAssociations=function(){return[]};
oFM.prototype.getTypeName=function(){return"booleanEntity"};var I4f=function(){XA.apply(this,arguments)};
_.f(I4f,XA);I4f.prototype.getAssociations=function(){return[]};
I4f.prototype.getTypeName=function(){return"stringEntity"};var g5=new _.I2("entityBatchUpdate");_.ReC=new _.I2("entityUpdateCommand");var PQB=function(){XA.apply(this,arguments)};
_.f(PQB,XA);PQB.prototype.getAssociations=function(){var h=[];this.delegate.alternateChannel&&h.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&h.push.apply(h,_.$E(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&h.push(this.delegate.oneofChannelEntity);return[].concat(_.$E(new Set(h)))};
PQB.prototype.getTypeName=function(){return"fakeChannel"};var BhC=function(){XA.apply(this,arguments)};
_.f(BhC,XA);BhC.prototype.getAssociations=function(){var h=[];this.delegate.entryCollection&&h.push(this.delegate.entryCollection);return[].concat(_.$E(new Set(h)))};
BhC.prototype.getTypeName=function(){return"fakePlaylist"};
var Ulm=function(){XA.apply(this,arguments)};
_.f(Ulm,XA);Ulm.prototype.getAssociations=function(){var h=[];this.delegate.parentPlaylist&&h.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var E=_.G(this.delegate.entries),g=E.next();!g.done;g=E.next())h.push.apply(h,_.$E((new Lof(g.value)).getAssociations()));return[].concat(_.$E(new Set(h)))};
Ulm.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var Lof=function(){n1.apply(this,arguments)};
_.f(Lof,n1);Lof.prototype.getAssociations=function(){var h=[];this.delegate.video&&h.push(this.delegate.video);return[].concat(_.$E(new Set(h)))};var j2M=function(){XA.apply(this,arguments)};
_.f(j2M,XA);j2M.prototype.getAssociations=function(){var h=[];this.delegate.descriptionEntity&&h.push(this.delegate.descriptionEntity);this.delegate.creators&&h.push.apply(h,_.$E(this.delegate.creators));this.delegate.theBiggestFan&&h.push(this.delegate.theBiggestFan);return[].concat(_.$E(new Set(h)))};
j2M.prototype.getTypeName=function(){return"fakeVideo"};
var dlM=function(){XA.apply(this,arguments)};
_.f(dlM,XA);dlM.prototype.getAssociations=function(){return[]};
dlM.prototype.getTypeName=function(){return"fakeVideoDescription"};var CQm=new _.I2("fantasyRosterViewModel");var JBD=new _.I2("addFollowUpSurveyCommand");var eem=new _.I2("getSurveyCommand");var qRB=new _.I2("ratingSurveyOptionRenderer");_.rE=new _.I2("feedbackEndpoint");var f4M=new _.I2("reportHistoryTableCellRenderer"),Nhl=new _.I2("reportHistoryTableTextCellRenderer"),tbM=new _.I2("reportHistoryTableReasonCellRenderer");_.SRD=new _.I2("flagEndpoint");var xlH=new _.I2("getFlowCommand");var wsn=new _.I2("submitFormWithValidationFlowCommand");var DlF=function(){XA.apply(this,arguments)};
_.f(DlF,XA);DlF.prototype.getAssociations=function(){return[]};
DlF.prototype.getTypeName=function(){return"flowStateEntity"};var l4k=new _.I2("flowFormState");var rBB=new _.I2("gameCardRenderer");var mlA=new _.I2("accountLinkingStateChangedCommand");var vFH=function(){XA.apply(this,arguments)};
_.f(vFH,XA);vFH.prototype.getAssociations=function(){return[]};
vFH.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Hbf=new _.I2("changeMiniAppPlayStateCommand");var $lk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f($lk,_.GN);var yi=[1,2,3];var KoF=[0,yi,PS$,_.MG,aHq];var Obl=_.LM($lk,KoF),nFf=_.jL(KoF);var XsA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(XsA,_.GN);var YRD=[0,_.TZ,_.gk];var s2D=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(s2D,_.GN);var VbC=[0,_.gk,_.TZ,-1];var FA=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(FA,_.GN);var k1n=_.jL([0,1,YRD,_.Gb,VbC]);var yBk=new _.I2("miniAppScoreChallengeViewModel");var Fol=new _.I2("miniGameCardViewModel");var ABf=new _.I2("teaserCardViewModel");var Thn=function(){XA.apply(this,arguments)};
_.f(Thn,XA);Thn.prototype.getAssociations=function(){return[]};
Thn.prototype.getTypeName=function(){return"logoEntity"};var bbM=new _.I2("feedbackItemRenderer");var ucm=function(){XA.apply(this,arguments)};
_.f(ucm,XA);ucm.prototype.getAssociations=function(){return[]};
ucm.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Q2n=new _.I2("playerInterstitialRenderer");var h$f=new _.I2("getKidsBlocklistPickerCommand");_.EiM=new _.I2("updateKidsBlacklistEndpoint");_.XD=new _.I2("likeEndpoint");var giD,Z2D,Mum;giD=new _.I2("addChatItemAction");Z2D=new _.I2("removeChatItemAction");Mum=new _.I2("markChatItemAsDeletedAction");_.WCl=new _.I2("setLiveChatCollapsedStateAction");var pCf=function(){XA.apply(this,arguments)};
_.f(pCf,XA);pCf.prototype.getAssociations=function(){return[]};
pCf.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var GCM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(GCM,_.GN);var z$f=[0,_.WF,[0,[1,2],_.MG,_.pz,[0,_.ZE,1,_.ZE]]];var avM=[0,_.gk,-1];var c9H=[0,[1],_.MG];var A0=[0,[1,2],_.MG,_.pz,[0,_.Gb]];var Tg=[0,_.gk];var i2C=[0,[0,_.ho,_.Qj,[0,_.ZE,_.zb,_.ZE]],1,[0,_.ho]];var oil=[0,b3];var IvC=[0,b3];var R$m=[0,IvC,oil];var PoC=[0,_.WF,[0,[1,2],_.MG,-1],_.ho];var BgB=[0,[2],1,_.pz,[0,_.ZE,-1,PoC]];var UuC=[0,[1],_.pz,[0,_.ZE,_.gk,_.zb,1,PoC]];var LCD=[0,_.Qj,-1,zv$,_.Gb];var j1n=[0,[0,As,-3],-4];var bM=[0,_.ho,-3,_.gk,_.ho,_.i0,_.ho,z$f,_.ho,-2];var uM=[0,_.WF,[0,[1,2],_.MG,-1],_.ho,_.gk];var dul=[0,[3],A0,[0,[2,3,4],JyN,_.MG,-2],_.pz,[0,_.gk],_.TZ];var Con=[0,[3,5],_.gk,u3,_.pz,[0,1,_.TZ,_.Gb],_.Gb,_.pz,[0,_.Gb,_.TZ]];var J9f=[0,2,u3,_.gk,-1];var e$l=[0,IHM];var q1F=[0,[3,4],2,cya,_.MG,_.gk];var fvn=[0,_.Gb,-2,1,_.gk];var NgD=[0,_.gk,-1,_.Gb];var tul=[0,Tg,function(){return Qi},
Tg,_.gk],S1H=[0,_.Gb,Tg,A0,function(){return Qi},
_.gk],Qi=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Tg,u3,[0,_.ho,1,_.ho,1,_.ho,1,_.Gb,-1,Tg],[0,1,_.ho,2,_.ho,_.Gb,_.ho],1,u3,-1,_.gk,u3,2,As,[0,As,u3],_.gk,1,i2C,1,A0,_.i0,1,[0,[0,_.WF,[0,_.gk,_.ho,_.Gb]]],[0,_.ho,[0,_.TZ,[0,_.zb]],_.TZ,1,[0,iKq,-1]],_.gk,[0,1,_.gk],76,_.pz,[0,A0,uM,i2C,1,[0,_.WF,uM]],1,_.pz,[0,A0,_.gk,_.ho],_.pz,
[0,A0,c9H],_.pz,[0,A0,c9H,u3],_.pz,[0,A0,c9H],_.pz,[0,A0,_.WF,Tg,A0,Bjq],_.pz,[0,A0,Tg,_.gk],_.pz,[0,A0,_.ho,bM,-1,_.ho],4,_.pz,[0,A0,_.ho,u3,bM,_.ho],_.pz,[0,[4,9],A0,_.Gb,u3,_.MG,uM,1,i2C,_.gk,_.MG,fvn],_.pz,[0,A0,Tg,A0,_.Gb,_.gk],_.pz,[0,_.ho,A0,bM,_.ho,_.gk],_.pz,[0,A0,Tg,A0,_.Gb,_.gk],1,_.pz,[0,A0,_.Gb,_.gk,bM],_.pz,[0,A0,_.Gb,[0,_.gk,u3],_.gk,u3,_.gk,dQa,-2,3,NgD,_.WF,NgD,NgD,fvn],_.pz,[0,A0,_.Gb,UuC,_.WF,[0,IvC,BgB],Tg,_.WF,R$m,_.gk,1,_.Gb,LCD,j1n,G6$,-1],_.pz,[0,A0,[0,_.zb,-1,UuC,_.WF,[0,
IvC,BgB,oil],[0,_.oj],1,_.ZE],Tg,_.gk],_.pz,[0,A0,uM,_.gk,[0,_.Qj]],_.pz,function(){return S1H},
_.pz,[0,A0,u3,_.gk,-1,_.ho],_.pz,[0,[6,7],A0,_.WF,J9f,_.Gb,uM,1,_.pz,q1F,_.pz,e$l],_.pz,[0,_.WF,J9f,_.Gb,_.ho],_.pz,[0,_.gk,d6B,-1],_.pz,[0,Tg,_.WF,R$m,_.gk],_.pz,[0,A0,Tg,_.gk],_.pz,[0,dQa,_.gk],_.pz,[0,avM],_.pz,[0,avM],_.pz,[0,uM],_.pz,[0,Tg,uM],_.pz,function(){return tul},
_.pz,[0,Tg,_.gk],_.pz,[0,Tg,_.gk],1,_.pz,[0,_.ho,A0,bM,_.ho,bM],_.pz,[0,_.oj],1,_.pz,[0],1,_.pz,[0,Tg,_.Gb,A0,_.Gb],_.pz,[0,[1,2],_.pz,q1F,_.pz,e$l,u3],_.pz,[0,_.oj,uM,Con,_.gk,u3],_.pz,[0,Con,_.gk,u3],_.pz,[0,LCD,uM,_.ho,j1n],_.pz,dul,_.pz,[0],_.pz,[0,_.gk,-1,_.TZ],_.pz,[0,Tg,_.gk],_.pz,[0,dul,_.TZ,_.gk],_.pz,[0,A0,bM,_.ho],_.pz,[0,A0,bM,_.ho],_.pz,[0,LCD,j1n,uM,_.i0,_.ho,G6$,-1],_.pz,[0,A0,bM,_.ho]];var xuA=[0,_.WF,Qi];var wCn=_.LM(GCM,[0,1,_.TZ,[0,[18,22,24],xuA,3,[0,xuA],1,_.TZ,[0,_.WF,[0,u3,As],u3],1,Qi,-1,[0,_.Ep,-2,_.i0,_.Ep,-1,_.i0,_.Ep,z$f,_.Ep,-2],W4q,[!0,_.gk,[0,c9H,2,_.gk,u3,_.ho,2,_.gk,dQa]],[0,[1,2,3],[5,6],_.pz,[0,_.ZE],_.pz,[0,_.ZE,-1],_.pz,[0,_.ZE],1,_.pz,avM,_.pz,[0,_.gk]],[0,Qi,-1],_.oj,Qi,_.pz,Qi,[0,xuA],_.TZ,Qi,_.pz,Qi,_.gk,_.pz,Qi]]);var DuC=new _.I2("liveChatEndpoint");var lvD=new _.I2("liveChatItemContextMenuEndpoint");var r9f=new _.I2("liveChatReplayEndpoint");_.mum=new _.I2("emojiPickerRenderer");var viB=new _.I2("liveChatAuthorBadgeViewModel");var H2B=new _.I2("deleteLiveChatMessageCommand");var $uC=new _.I2("liveChatActionEndpoint");var KCl=new _.I2("createLiveChatPollEndpoint");var O2D=new _.I2("manageLiveChatUserEndpoint");var niD=new _.I2("moderateLiveChatEndpoint");_.XCf=new _.I2("sendLiveChatMessageEndpoint");var Y1F=new _.I2("sendLiveChatVoteEndpoint");var s1B=new _.I2("clearLocationCommand");var Vuf=new _.I2("resolveLocationCommand");var kCl=new _.I2("interactionLoggingCommandMetadata");var y9D=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(y9D,_.GN);var FCA=function(h,E){return _.Ph(h,1,E)};var A9f=[0,_.ho];var Tgn=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Tgn,_.GN);var b2n=function(h,E){return eM(h,1,y9D,E)};Tgn.prototype.JSC$12173_serializeBinary=HMd([0,_.WF,A9f]);var ucW={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 ufH={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"},
Q1D={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 FZz={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",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.eZd=new _.I2("logFlowLoggingEventCommand");_.xB=new _.I2("loggingContext");var hrM=new _.I2("audioTrackSelectActionCommand");var EJH=new _.I2("captionLanguageSelectActionCommand");var gJl=new _.I2("showAudioTrackPickerActionCommand");var ZfD=new _.I2("showCaptionLanguageSelectActionCommand");var Mzn=new _.I2("dismissDialogEndpoint");var Wdn=new _.I2("dismissPlayerOverlayCommand");var pUk=new _.I2("hideItemSectionVideosByIdCommand");var GdM=new _.I2("showMiniplayerCommand");var zrC=function(){XA.apply(this,arguments)};
_.f(zrC,XA);zrC.prototype.getAssociations=function(){return[]};
zrC.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var aUH=function(){XA.apply(this,arguments)};
_.f(aUH,XA);aUH.prototype.getAssociations=function(){return[]};
aUH.prototype.getTypeName=function(){return"downloadStatusEntity"};var cXm=function(){XA.apply(this,arguments)};
_.f(cXm,XA);cXm.prototype.getAssociations=function(){return[]};
cXm.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var ifm=function(){XA.apply(this,arguments)};
_.f(ifm,XA);ifm.prototype.getAssociations=function(){var h=[];this.delegate.downloadsList&&h.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&h.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&h.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&h.push(this.delegate.refresh);return[].concat(_.$E(new Set(h)))};
ifm.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var oJF=function(){XA.apply(this,arguments)};
_.f(oJF,XA);oJF.prototype.getAssociations=function(){var h=[];this.delegate.refresh&&h.push(this.delegate.refresh);if(this.delegate.downloads)for(var E=_.G(this.delegate.downloads),g=E.next();!g.done;g=E.next())h.push.apply(h,_.$E((new IUD(g.value)).getAssociations()));return[].concat(_.$E(new Set(h)))};
oJF.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var IUD=function(){n1.apply(this,arguments)};
_.f(IUD,n1);IUD.prototype.getAssociations=function(){var h=[];this.delegate.video&&h.push(this.delegate.video);this.delegate.playlist&&h.push(this.delegate.playlist);this.delegate.videoItem&&h.push(this.delegate.videoItem);this.delegate.playlistItem&&h.push(this.delegate.playlistItem);return[].concat(_.$E(new Set(h)))};var Rrn=function(){XA.apply(this,arguments)};
_.f(Rrn,XA);Rrn.prototype.getAssociations=function(){var h=[];this.delegate.localImageEntities&&h.push.apply(h,_.$E(this.delegate.localImageEntities));return[].concat(_.$E(new Set(h)))};
Rrn.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var PPl=function(){XA.apply(this,arguments)};
_.f(PPl,XA);PPl.prototype.getAssociations=function(){var h=[];this.delegate.playbackData&&h.push(this.delegate.playbackData);this.delegate.localImageEntities&&h.push.apply(h,_.$E(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&h.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$E(new Set(h)))};
PPl.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var BtA=function(){XA.apply(this,arguments)};
_.f(BtA,XA);BtA.prototype.getAssociations=function(){return[]};
BtA.prototype.getTypeName=function(){return"offlineabilityEntity"};var UOn=function(){XA.apply(this,arguments)};
_.f(UOn,XA);UOn.prototype.getAssociations=function(){var h=[];this.delegate.fakeChildren&&h.push.apply(h,_.$E(this.delegate.fakeChildren));return[].concat(_.$E(new Set(h)))};
UOn.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var Ldl=function(){XA.apply(this,arguments)};
_.f(Ldl,XA);Ldl.prototype.getAssociations=function(){var h=[];this.delegate.video&&h.push(this.delegate.video);this.delegate.playbackData&&h.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&h.push(this.delegate.offlineVideoPolicy);return[].concat(_.$E(new Set(h)))};
Ldl.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var jMC=function(){XA.apply(this,arguments)};
_.f(jMC,XA);jMC.prototype.getAssociations=function(){return[]};
jMC.prototype.getTypeName=function(){return"continuationTokenEntity"};var dOk=function(){XA.apply(this,arguments)};
_.f(dOk,XA);dOk.prototype.getAssociations=function(){var h=[];this.delegate.channelOwner&&h.push(this.delegate.channelOwner);this.delegate.videos&&h.push.apply(h,_.$E(this.delegate.videos));this.delegate.collaboratorChannels&&h.push.apply(h,_.$E(this.delegate.collaboratorChannels));this.delegate.downloadState&&h.push(this.delegate.downloadState);this.delegate.refresh&&h.push(this.delegate.refresh);return[].concat(_.$E(new Set(h)))};
dOk.prototype.getTypeName=function(){return"mainPlaylistEntity"};var CPD=function(){XA.apply(this,arguments)};
_.f(CPD,XA);CPD.prototype.getAssociations=function(){var h=[];this.delegate.video&&h.push(this.delegate.video);this.delegate.channelContributor&&h.push(this.delegate.channelContributor);return[].concat(_.$E(new Set(h)))};
CPD.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var JXf=function(){n1.apply(this,arguments)};
_.f(JXf,n1);JXf.prototype.getAssociations=function(){var h=[];this.delegate.recommendedVideoMetadata&&h.push.apply(h,_.$E((new erl(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.$E(new Set(h)))};
var erl=function(){n1.apply(this,arguments)};
_.f(erl,n1);erl.prototype.getAssociations=function(){var h=[];this.delegate.localImageEntities&&h.push.apply(h,_.$E(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&h.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$E(new Set(h)))};var qJM=function(){n1.apply(this,arguments)};
_.f(qJM,n1);qJM.prototype.getAssociations=function(){var h=[];this.delegate.playbackPosition&&h.push(this.delegate.playbackPosition);return[].concat(_.$E(new Set(h)))};var fUf=function(){XA.apply(this,arguments)};
_.f(fUf,XA);fUf.prototype.getAssociations=function(){var h=[];this.delegate.owner&&h.push(this.delegate.owner);this.delegate.downloadState&&h.push(this.delegate.downloadState);this.delegate.userState&&h.push.apply(h,_.$E((new qJM(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&h.push.apply(h,_.$E((new JXf(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.$E(new Set(h)))};
fUf.prototype.getTypeName=function(){return"mainVideoEntity"};var NtH=function(){XA.apply(this,arguments)};
_.f(NtH,XA);NtH.prototype.getAssociations=function(){var h=[];this.delegate.userChannelDetails&&h.push(this.delegate.userChannelDetails);return[].concat(_.$E(new Set(h)))};
NtH.prototype.getTypeName=function(){return"ytMainChannelEntity"};var tzD=function(){XA.apply(this,arguments)};
_.f(tzD,XA);tzD.prototype.getAssociations=function(){var h=[];this.delegate.channelOwner&&h.push(this.delegate.channelOwner);this.delegate.playbackPosition&&h.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&h.push.apply(h,_.$E(this.delegate.localImageEntities));this.delegate.downloadStatus&&h.push(this.delegate.downloadStatus);return[].concat(_.$E(new Set(h)))};
tzD.prototype.getTypeName=function(){return"ytMainVideoEntity"};var Viu=new _.I2("downloadsPageSmartDownloadsOptInBannerParams");var Amd=new _.I2("downloadsPageUpsellBannerParams");var SJM=function(){XA.apply(this,arguments)};
_.f(SJM,XA);SJM.prototype.getAssociations=function(){return[]};
SJM.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var xOn=function(){XA.apply(this,arguments)};
_.f(xOn,XA);xOn.prototype.getAssociations=function(){return[]};
xOn.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var wUH=function(){XA.apply(this,arguments)};
_.f(wUH,XA);wUH.prototype.getAssociations=function(){return[]};
wUH.prototype.getTypeName=function(){return"macroMarkerEntity"};var DOA=function(){XA.apply(this,arguments)};
_.f(DOA,XA);DOA.prototype.getAssociations=function(){return[]};
DOA.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var lUB=function(){XA.apply(this,arguments)};
_.f(lUB,XA);lUB.prototype.getAssociations=function(){return[]};
lUB.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var rXm=function(){XA.apply(this,arguments)};
_.f(rXm,XA);rXm.prototype.getAssociations=function(){return[]};
rXm.prototype.getTypeName=function(){return"playerStateEntity"};var mOD=function(){XA.apply(this,arguments)};
_.f(mOD,XA);mOD.prototype.getAssociations=function(){return[]};
mOD.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var vJm=function(){XA.apply(this,arguments)};
_.f(vJm,XA);vJm.prototype.getAssociations=function(){return[]};
vJm.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var Hfl=function(){XA.apply(this,arguments)};
_.f(Hfl,XA);Hfl.prototype.getAssociations=function(){return[]};
Hfl.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.hm=new _.I2("dislikeButtonViewModel");_.EU=new _.I2("likeButtonViewModel");var $OM=new _.I2("videoSummaryContentViewModel");var KdM=new _.I2("videoSummaryParagraphViewModel");var OfD=new _.I2("changeTimelyActionVisibilityCommand");var nJn=new _.I2("hideEngagementPanelEndpoint");var XUf=new _.I2("refreshPanelEndpoint");var YJf=new _.I2("scrollToSectionEndpoint");var sMM=new _.I2("seekToVideoTimestampCommand");_.lz=new _.I2("showEngagementPanelEndpoint");var Vzf=new _.I2("showTransientPlayerScrimOverlayCommand");var kdF=new _.I2("toggleEngagementPanelCommand");_.yXH=new _.I2("createBroadcastCommand");var FdM=new _.I2("metadataUpdateCommand");var AXl=function(){XA.apply(this,arguments)};
_.f(AXl,XA);AXl.prototype.getAssociations=function(){return[]};
AXl.prototype.getTypeName=function(){return"featuredProductsEntity"};var Ttn=function(){XA.apply(this,arguments)};
_.f(Ttn,XA);Ttn.prototype.getAssociations=function(){return[]};
Ttn.prototype.getTypeName=function(){return"pinnedProductEntity"};var bfl=function(){XA.apply(this,arguments)};
_.f(bfl,XA);bfl.prototype.getAssociations=function(){return[]};
bfl.prototype.getTypeName=function(){return"trendingOfferEntity"};_.u3l=new _.I2("merchandiseShelfRenderer");var QMF=new _.I2("gridMovieRenderer");_.hRk=new _.I2("movieRenderer");var EcH=function(){XA.apply(this,arguments)};
_.f(EcH,XA);EcH.prototype.getAssociations=function(){var h=[];this.delegate.trackDownloadMetadatas&&h.push.apply(h,_.$E(this.delegate.trackDownloadMetadatas));return[].concat(_.$E(new Set(h)))};
EcH.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var gcD=function(){XA.apply(this,arguments)};
_.f(gcD,XA);
gcD.prototype.getAssociations=function(){var h=[];this.delegate.downloadedTracks&&h.push.apply(h,_.$E(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&h.push.apply(h,_.$E(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&h.push.apply(h,_.$E(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&h.push.apply(h,_.$E(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&h.push.apply(h,_.$E(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
h.push.apply(h,_.$E(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&h.push.apply(h,_.$E(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&h.push.apply(h,_.$E(this.delegate.metadataOnlyTracks));return[].concat(_.$E(new Set(h)))};
gcD.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Z1k=function(){XA.apply(this,arguments)};
_.f(Z1k,XA);Z1k.prototype.getAssociations=function(){var h=[];this.delegate.trackDownloadMetadatas&&h.push.apply(h,_.$E(this.delegate.trackDownloadMetadatas));return[].concat(_.$E(new Set(h)))};
Z1k.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Mcm=function(){XA.apply(this,arguments)};
_.f(Mcm,XA);Mcm.prototype.getAssociations=function(){var h=[];this.delegate.playbackData&&h.push(this.delegate.playbackData);this.delegate.localImageEntities&&h.push.apply(h,_.$E(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&h.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$E(new Set(h)))};
Mcm.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var WHf=function(){XA.apply(this,arguments)};
_.f(WHf,XA);
WHf.prototype.getAssociations=function(){var h=[];this.delegate.musicLibraryStatusEntity&&h.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&h.push.apply(h,_.$E(this.delegate.primaryArtists));this.delegate.details&&h.push(this.delegate.details);this.delegate.userDetails&&h.push(this.delegate.userDetails);this.delegate.tracks&&h.push.apply(h,_.$E(this.delegate.tracks));this.delegate.share&&h.push(this.delegate.share);this.delegate.downloadMetadata&&h.push(this.delegate.downloadMetadata);this.delegate.refresh&&
h.push(this.delegate.refresh);return[].concat(_.$E(new Set(h)))};
WHf.prototype.getTypeName=function(){return"musicAlbumRelease"};
var pkC=function(){XA.apply(this,arguments)};
_.f(pkC,XA);pkC.prototype.getAssociations=function(){var h=[];this.delegate.albumRelease&&h.push(this.delegate.albumRelease);this.delegate.tracks&&h.push.apply(h,_.$E(this.delegate.tracks));return[].concat(_.$E(new Set(h)))};
pkC.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var GgH=function(){XA.apply(this,arguments)};
_.f(GgH,XA);GgH.prototype.getAssociations=function(){var h=[];this.delegate.albumRelease&&h.push(this.delegate.albumRelease);return[].concat(_.$E(new Set(h)))};
GgH.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var zRM=function(){XA.apply(this,arguments)};
_.f(zRM,XA);zRM.prototype.getAssociations=function(){var h=[];this.delegate.details&&h.push(this.delegate.details);this.delegate.userDetails&&h.push(this.delegate.userDetails);return[].concat(_.$E(new Set(h)))};
zRM.prototype.getTypeName=function(){return"musicArtist"};
var aLf=function(){XA.apply(this,arguments)};
_.f(aLf,XA);aLf.prototype.getAssociations=function(){var h=[];this.delegate.parentArtist&&h.push(this.delegate.parentArtist);return[].concat(_.$E(new Set(h)))};
aLf.prototype.getTypeName=function(){return"musicArtistDetail"};
var c0f=function(){XA.apply(this,arguments)};
_.f(c0f,XA);c0f.prototype.getAssociations=function(){var h=[];this.delegate.parentArtist&&h.push(this.delegate.parentArtist);return[].concat(_.$E(new Set(h)))};
c0f.prototype.getTypeName=function(){return"musicArtistUserDetail"};var i1n=function(){XA.apply(this,arguments)};
_.f(i1n,XA);i1n.prototype.getAssociations=function(){return[]};
i1n.prototype.getTypeName=function(){return"musicLibraryEdit"};var ocF=function(){XA.apply(this,arguments)};
_.f(ocF,XA);ocF.prototype.getAssociations=function(){return[]};
ocF.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var ILA=function(){XA.apply(this,arguments)};
_.f(ILA,XA);
ILA.prototype.getAssociations=function(){var h=[];this.delegate.tracks&&h.push.apply(h,_.$E(this.delegate.tracks));this.delegate.refresh&&h.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&h.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&h.push(this.delegate.details);this.delegate.downloadMetadata&&h.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&h.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&h.push(this.delegate.userDetails);this.delegate.entryCollection&&
h.push(this.delegate.entryCollection);this.delegate.share&&h.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&h.push.apply(h,_.$E((new RRB(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.$E(new Set(h)))};
ILA.prototype.getTypeName=function(){return"musicPlaylist"};
var RRB=function(){n1.apply(this,arguments)};
_.f(RRB,n1);RRB.prototype.getAssociations=function(){var h=[];this.delegate.creatorEntity&&h.push(this.delegate.creatorEntity);return[].concat(_.$E(new Set(h)))};var PMk=function(){XA.apply(this,arguments)};
_.f(PMk,XA);PMk.prototype.getAssociations=function(){return[]};
PMk.prototype.getTypeName=function(){return"musicShare"};var Byn=function(){XA.apply(this,arguments)};
_.f(Byn,XA);
Byn.prototype.getAssociations=function(){var h=[];this.delegate.musicLibraryStatusEntity&&h.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&h.push.apply(h,_.$E(this.delegate.artists));this.delegate.audioModeVersion&&h.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&h.push(this.delegate.videoModeVersion);this.delegate.userDetails&&h.push(this.delegate.userDetails);this.delegate.details&&h.push(this.delegate.details);this.delegate.albumRelease&&h.push(this.delegate.albumRelease);this.delegate.share&&
h.push(this.delegate.share);this.delegate.libraryEdit&&h.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&h.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&h.push(this.delegate.playbackPosition);this.delegate.lyrics&&h.push(this.delegate.lyrics);return[].concat(_.$E(new Set(h)))};
Byn.prototype.getTypeName=function(){return"musicTrack"};
var UMD=function(){XA.apply(this,arguments)};
_.f(UMD,XA);UMD.prototype.getAssociations=function(){var h=[];this.delegate.parentTrack&&h.push(this.delegate.parentTrack);return[].concat(_.$E(new Set(h)))};
UMD.prototype.getTypeName=function(){return"musicTrackDetail"};
var LHB=function(){XA.apply(this,arguments)};
_.f(LHB,XA);LHB.prototype.getAssociations=function(){var h=[];this.delegate.parentTrack&&h.push(this.delegate.parentTrack);return[].concat(_.$E(new Set(h)))};
LHB.prototype.getTypeName=function(){return"musicTrackUserDetail"};var u1=new _.I2("musicResponsiveListItemRenderer");var aez=new _.I2("addToPlaylistEndpoint");var jRM=new _.I2("captionPickerEndpoint");var dMD=new _.I2("suggestStats");var CMl=new _.I2("backstageImageUploadEndpoint");var J0m=new _.I2("createBackstagePostDialogEndpoint");_.eRM=new _.I2("createCommentReplyDialogEndpoint");_.qrD=new _.I2("updateCommentDialogEndpoint");_.fLH=new _.I2("updateCommentReplyDialogEndpoint");var Nyl=new _.I2("menuEndpoint");var ToM=new _.I2("modalEndpoint");var tcn=new _.I2("playlistEditorEndpoint");var Srf=new _.I2("copyTextEndpoint");var xMF,wkD;xMF=new _.I2("shareEndpoint");wkD=new _.I2("shareEntityEndpoint");_.DMB=new _.I2("shareEntityServiceEndpoint");_.A_$=new _.I2("userFeedbackEndpoint");_.MH=new _.I2("watchEndpoint");var m9O=new _.I2("watchPlaylistEndpoint");var lLC=new _.I2("addUpcomingEventReminderEndpoint");_.Zs=new _.I2("getCommentsFromInboxCommand");var r0M=new _.I2("notificationOptOutEndpoint");var mMn=new _.I2("recordNotificationInteractionsEndpoint");var vcf=new _.I2("removeUpcomingEventReminderEndpoint");var G2z=new _.I2("getDownloadActionCommand");_.H1m=new _.I2("offlineOrchestrationActionCommand");var $Mf=function(){XA.apply(this,arguments)};
_.f($Mf,XA);$Mf.prototype.getAssociations=function(){return[]};
$Mf.prototype.getTypeName=function(){return"captionTrack"};var KHf=function(){XA.apply(this,arguments)};
_.f(KHf,XA);KHf.prototype.getAssociations=function(){return[]};
KHf.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var O1n=function(){XA.apply(this,arguments)};
_.f(O1n,XA);O1n.prototype.getAssociations=function(){return[]};
O1n.prototype.getTypeName=function(){return"offlineVideoPolicy"};var nck=function(){XA.apply(this,arguments)};
_.f(nck,XA);nck.prototype.getAssociations=function(){return[]};
nck.prototype.getTypeName=function(){return"offlineVideoStreams"};var Xkf=function(){XA.apply(this,arguments)};
_.f(Xkf,XA);Xkf.prototype.getAssociations=function(){var h=[];this.delegate.transfer&&h.push(this.delegate.transfer);this.delegate.adsPlaybackData&&h.push.apply(h,_.$E(this.delegate.adsPlaybackData));this.delegate.drmLicense&&h.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&h.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&h.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$E(new Set(h)))};
Xkf.prototype.getTypeName=function(){return"playbackData"};var YrB=function(){XA.apply(this,arguments)};
_.f(YrB,XA);YrB.prototype.getAssociations=function(){return[]};
YrB.prototype.getTypeName=function(){return"refresh"};var sRF=function(){XA.apply(this,arguments)};
_.f(sRF,XA);sRF.prototype.getAssociations=function(){var h=[];this.delegate.offlineVideoStreams&&h.push.apply(h,_.$E(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&h.push.apply(h,_.$E(this.delegate.captionTrack));return[].concat(_.$E(new Set(h)))};
sRF.prototype.getTypeName=function(){return"transfer"};var Vcl=function(){XA.apply(this,arguments)};
_.f(Vcl,XA);Vcl.prototype.getAssociations=function(){return[]};
Vcl.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var kgf=new _.I2("showMoreDrawerCommand");var y0C=new _.I2("updateEngagementPanelContentCommand");var FHD=new _.I2("getPdgBuyFlowCommand");var A0k=new _.I2("liveChatPurchaseMessageEndpoint");var TyD=new _.I2("openSuperStickerBuyFlowCommand");var b1f=new _.I2("updatePdgFeatureEnablementCommand");var uAD=function(){XA.apply(this,arguments)};
_.f(uAD,XA);uAD.prototype.getAssociations=function(){return[]};
uAD.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var QRH=function(){XA.apply(this,arguments)};
_.f(QRH,XA);QRH.prototype.getAssociations=function(){return[]};
QRH.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.htn=new _.I2("pdgCommentChipRenderer");_.ETk=new _.I2("permissionRoleBottomBarRenderer");_.gTm=new _.I2("updatePermissionRoleCommand");var ZCD=new _.I2("prefetchWatchCommand");var MiA=new _.I2("updatePlayerErrorMessageCommand");var h6O=new _.I2("toggleCaptionsVisibilityCommand");_.Wwl=new _.I2("quickActionsViewModel");var ptM=new _.I2("playerResponse");var GhA=new _.I2("playlistRenderer");_.ztl=new _.I2("playlistVideoListRenderer");_.M8=new _.I2("playlistEditEndpoint");var asM=new _.I2("createImagePollCommand");var cmf=new _.I2("createQuizCommand");var iCB=new _.I2("quizRenderer");var oTk=new _.I2("uploadedVideoRenderer");var IsB=new _.I2("decorateMessageEndpoint");var RtC=new _.I2("lpOfferCardOptionViewModel");var P_n=new _.I2("sfvAudioItemPlaybackCommand");var Bcl=function(){XA.apply(this,arguments)};
_.f(Bcl,XA);Bcl.prototype.getAssociations=function(){return[]};
Bcl.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Wt=new _.I2("reelNonVideoContentEndpoint");_.D9=new _.I2("reelWatchEndpoint");_.pC=new _.I2("reelItemRenderer");_.U8M=new _.I2("reelMetapanelViewModel");_.LwM=new _.I2("reelNonVideoContentRenderer");_.jxf=new _.I2("reelPlayerOverlayRenderer");var d8n=new _.I2("shortsLockupViewModel");var C_l=new _.I2("sponsorButtonViewModel");var Jml=new _.I2("reelItemWatchResponse");var etM=new _.I2("textBadgeRenderer");_.Gh=new _.I2("buttonRenderer");_.zh=new _.I2("toggleButtonRenderer");var G4Z=new _.I2("switchButtonViewModel");_.qUl=new _.I2("confirmDialogRenderer");var fsD;fsD=new _.I2("menuRenderer");_.NcH=new _.I2("menuFlexibleItemRenderer");var tif=new _.I2("pollRenderer");_.SUm=new _.I2("backgroundPromoRenderer");var wtf;_.x8k=new _.I2("chipCloudRenderer");wtf=new _.I2("chipCloudChipRenderer");var D8M=new _.I2("dropdownRenderer");var lsD=new _.I2("gridVideoRenderer");_.rmH=new _.I2("itemSectionRenderer");_.m8D=new _.I2("messageRenderer");var vTM=new _.I2("sortFilterHeaderRenderer");_.ax=new _.I2("videoRenderer");var HCM=new _.I2("resolveUrlCommandMetadata");var $8l=function(){XA.apply(this,arguments)};
_.f($8l,XA);$8l.prototype.getAssociations=function(){return[]};
$8l.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.KwD=new _.I2("getAnswerCommand");_.Sl=new _.I2("searchEndpoint");var OCH=new _.I2("genAiRichTextViewModel");var p9O=new _.I2("overviewAnswerViewModel");var nTD=new _.I2("videoOverviewViewModel");var XtF=new _.I2("addToPlaylistServiceEndpoint");var YUk=new _.I2("clearSearchHistoryEndpoint");var sxB=new _.I2("clearWatchHistoryEndpoint");var Vif=new _.I2("webSerializedServiceEndpointExtension");_.khf=new _.I2("createCommentEndpoint");var ymA=new _.I2("createCommentReplyEndpoint");var FwF=new _.I2("performCommentActionEndpoint");var AmD=new _.I2("updateCommentEndpoint");var Tcn=new _.I2("updateCommentReplyEndpoint");_.ct=new _.I2("createPlaylistServiceEndpoint");var bCA=new _.I2("deletePlaylistEndpoint");var u2M=new _.I2("deleteVideoEndpoint");var z64=new _.I2("getReportFormEndpoint");var QxH=new _.I2("modifyChannelNotificationPreferenceEndpoint");var qI4;_.ev=new _.I2("offlinePlaylistEndpoint");qI4={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 fmO;_.JU=new _.I2("offlineVideoEndpoint");fmO={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 hFk=new _.I2("pingingEndpoint");_.Eml=new _.I2("selectActiveIdentityEndpoint");var gmM=new _.I2("setSettingEndpoint");var RSW=new _.I2("undoFeedbackEndpoint");var ZSf=new _.I2("unsubscribeEndpoint");_.MnC=new _.I2("updatedMetadataEndpoint");var WuM=function(){XA.apply(this,arguments)};
_.f(WuM,XA);WuM.prototype.getAssociations=function(){return[]};
WuM.prototype.getTypeName=function(){return"settingEntity"};_.pZD=new _.I2("updateLocalAppSettingCommand");var GVA=new _.I2("saveImageToDeviceEndpoint");var zFn=new _.I2("shareImageCommand");var aIM=new _.I2("sharingProviderDataCommand");var ccM=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ccM,_.GN);var iSn=[0,_.gk,-1];ccM.prototype.JSC$12374_serializeBinary=HMd(iSn);var omH=_.jL(iSn);var IIf=new _.I2("userMentionSuggestionRenderer");var RFH=new _.I2("liveChatTunnelCommand");var PcB=new _.I2("showSponsorshipsGiftOfferDialogCommand");var BWk=new _.I2("sponsorshipsScrollableShelfViewModel");var UPM=new _.I2("updateUpcomingEventReminderButtonStateCommand");var J6B=new _.I2("upcomingEventReminderButtonStateRenderer");var egl=new _.I2("subscribeEndpoint");var qhf=new _.I2("registerTasksCommand");var fXM=new _.I2("hideSheetCommand");var NKl=new _.I2("hideSnackbarCommand");var t1F=new _.I2("showDialogCommand");_.w5=new _.I2("showSheetCommand");var ShF=new _.I2("showSnackbarCommand");var xJf=function(){XA.apply(this,arguments)};
_.f(xJf,XA);xJf.prototype.getAssociations=function(){return[]};
xJf.prototype.getTypeName=function(){return"chipEntity"};var w4B=function(){XA.apply(this,arguments)};
_.f(w4B,XA);w4B.prototype.getAssociations=function(){return[]};
w4B.prototype.getTypeName=function(){return"dismissState"};_.X5=new _.I2("avatarViewModel");var DJD=new _.I2("badgeViewModel");_.i_=new _.I2("buttonViewModel");_.ox=new _.I2("chipViewModel");var Caq=new _.I2("collectionThumbnailViewModel");var lXB=new _.I2("contentPreviewImageViewModel");var r6D=new _.I2("decoratedAvatarViewModel");_.PDN=new _.I2("engagementBarViewModel");_.mJf=new _.I2("imageBannerViewModel");var vlB=new _.I2("lockupContentMetadataRowExtension");_.H6D=new _.I2("lockupMetadataViewModel");_.$Jn=new _.I2("lockupViewModel");var KaM=new _.I2("avatarStackViewModel");_.O6l=new _.I2("contentMetadataViewModel");var nll=function(){XA.apply(this,arguments)};
_.f(nll,XA);nll.prototype.getAssociations=function(){return[]};
nll.prototype.getTypeName=function(){return"pageHeaderEntity"};_.X4M=new _.I2("pageHeaderViewModel");var YhA=new _.I2("snackbarViewModel");var sUf=new _.I2("thumbnailHoverOverlayToggleActionsViewModel");_.Ix=new _.I2("toggleButtonViewModel");var V1F=function(){XA.apply(this,arguments)};
_.f(V1F,XA);V1F.prototype.getAssociations=function(){return[]};
V1F.prototype.getTypeName=function(){return"votingEntity"};_.B0x=new _.I2("votingViewModel");var krM=new _.I2("sectionHeaderViewModel");var y6M=new _.I2("notifyDropdownOptionSelectedCommand");var vtW=new _.I2("listViewModel");_.Dd=new _.I2("listItemViewModel");var deO=new _.I2("toggleableListItemViewModel");var FaH=new _.I2("dialogHeaderViewModel");var A6k=function(){XA.apply(this,arguments)};
_.f(A6k,XA);A6k.prototype.getAssociations=function(){return[]};
A6k.prototype.getTypeName=function(){return"dataFreshnessEntity"};var kEM=new _.I2("suspenseViewModel");var TKD=function(){XA.apply(this,arguments)};
_.f(TKD,XA);TKD.prototype.getAssociations=function(){return[]};
TKD.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var b6M=function(){XA.apply(this,arguments)};
_.f(b6M,XA);b6M.prototype.getAssociations=function(){return[]};
b6M.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var udM=function(){XA.apply(this,arguments)};
_.f(udM,XA);udM.prototype.getAssociations=function(){return[]};
udM.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.QUM=new _.I2("transcriptSubmitCaptionCorrectionCommand");var h_l=function(){XA.apply(this,arguments)};
_.f(h_l,XA);h_l.prototype.getAssociations=function(){return[]};
h_l.prototype.getTypeName=function(){return"buttonEntity"};var $tV=new _.I2("unpluggedStringRunImage");var EKm=new _.I2("tabViewModel");var gKD=new _.I2("tabbedViewModel");var ZJA=function(){XA.apply(this,arguments)};
_.f(ZJA,XA);ZJA.prototype.getAssociations=function(){return[]};
ZJA.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.MRD=new _.I2("updateDescriptionAction");var WlD=new _.I2("updateToggleButtonTextAction");_.pBl=new _.I2("autoplaySwitchButtonRenderer");var Oc;_.GAf=new _.I2("multiMarkersPlayerBarRenderer");Oc=new _.I2("chapterRenderer");var z_D=new _.I2("heatMarkerRenderer");var fZu=new _.I2("heatmapRenderer");var a7D=new _.I2("smartSkipPlayerScrimOverlayRenderer");var cgC=new _.I2("timedMarkerDecorationRenderer");var EhV=new _.I2("postWebToNativeMessageCommand");var $7=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f($7,_.GN);$7.prototype.getMethodName=function(){return _.mj(this,1)};var iJm=[0,_.gk,-2];$7.prototype.JSC$12396_serializeBinary=HMd(iJm);var oKA=_.LM($7,iJm);var I7M=new _.I2("whitelistEditEndpoint");var R_H=new _.I2("clearUrlParamCommand");var PeH=new _.I2("commerceActionCommand");_.BPf=new _.I2("getPaymentInstrumentsParamsCommand");var Uyf=new _.I2("getPaymentsClientTokenCommand");var LlM=new _.I2("googlePaymentBillingCommand");var jqM=new _.I2("googlePaymentPurchaseManagerCommand");_.dyA=new _.I2("logGtmCommand");var CeF=new _.I2("updateCardItemOnClickCommand");_.JgD=new _.I2("ypcPauseSubscriptionCommand");_.e_D=new _.I2("ypcResumeSubscriptionCommand");var qEl=function(){XA.apply(this,arguments)};
_.f(qEl,XA);qEl.prototype.getAssociations=function(){return[]};
qEl.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var f7l=function(){XA.apply(this,arguments)};
_.f(f7l,XA);f7l.prototype.getAssociations=function(){return[]};
f7l.prototype.getTypeName=function(){return"commerceCartListEntity"};var NPM=function(){XA.apply(this,arguments)};
_.f(NPM,XA);NPM.prototype.getAssociations=function(){return[]};
NPM.prototype.getTypeName=function(){return"iconBadgeEntity"};var tRf=function(){XA.apply(this,arguments)};
_.f(tRf,XA);tRf.prototype.getAssociations=function(){return[]};
tRf.prototype.getTypeName=function(){return"pdpStateEntity"};var SED=function(){XA.apply(this,arguments)};
_.f(SED,XA);SED.prototype.getAssociations=function(){return[]};
SED.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var sBO=new _.I2("ypcOffersEndpoint");var xym=new _.I2("cardItemRenderer"),wBl=new _.I2("cardItemTextRenderer");var Dyn=new _.I2("commerceCartItemQuantityPickerRenderer");var l7B=new _.I2("linkCardRenderer");var F$O=new _.I2("quantityIncrementerButtonViewModel");var rgF=new _.I2("quantityIncrementerViewModel");var myH=new _.I2("themedImageViewModel");_.vKf=new _.I2("ypcCancelRecurrenceEndpoint");var HJM=new _.I2("ypcCompleteTransactionEndpoint");_.$yf=new _.I2("ypcGetCartEndpoint");_.Ea=new _.I2("ypcGetOffersEndpoint");_.Rx=new _.I2("ypcHandleTransactionEndpoint");var Kln=new _.I2("ypcLogWalletAnalyticDataEndpoint");_.OJM=new _.I2("ypcRedeemCodeEndpoint");var nKA=new _.I2("ypcUpdateFopEndpoint");C1(dy(1),L1(4));bKa((new MessageChannel).port2);var XBD=function(){this.register=new Map},h$Z=function(h,E,g){h=h+"_"+E;
Pt.register.has(h)?g=Pt.register.get(h):(g=g(),Pt.register.set(h,g));return g},YEk=function(h){h=_.G(h.register.values());
for(var E=h.next();!E.done;E=h.next())_.Ie(E.value,"ABORTED")};
XBD.prototype.clear=function(){YEk(this);this.register.clear()};
var Pt=new XBD;var rB$=Date.now().toString();var HbZ=vFV();var Vbz={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 sqF,Xa;sqF=1;Xa=function(h){this.veData=h};
_.rp=function(h){return new Xa({trackingParams:h})};
_.Uz=function(h,E,g,Z,M,W){var z=sqF++;return new Xa({veType:h,veCounter:z,elementIndex:g,dataElement:E,youtubeData:Z,jspbYoutubeData:M,loggingDirectives:W})};
_.p=Xa.prototype;
_.p.getAsJson=function(){var h={};this.veData.trackingParams!==void 0?h.trackingParams=this.veData.trackingParams:(h.veType=this.veData.veType,this.veData.veCounter!==void 0&&(h.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(h.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(h.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(h.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(h.isCounterfactual=!0);
return h};
_.p.getAsJspb=function(){var h=new BaA;this.veData.trackingParams!==void 0?h.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.OK(h,2,this.veData.veType),this.veData.veCounter!==void 0&&_.OK(h,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.OK(h,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Ph(h,5,!0));if(this.veData.dataElement!==void 0){var E=this.veData.dataElement.getAsJspb();_.fM(h,7,E)}this.veData.youtubeData!==void 0&&_.fM(h,8,this.veData.jspbYoutubeData);
return h};
_.p.toString=function(){return JSON.stringify(this.getAsJson())};
_.p.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.p.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Wu("yt_logging_screen.getRootVeType",XsN);_.Wu("yt_logging_screen.getCurrentCsn",_.sH);_.Wu("yt_logging_screen.getCttAuthInfo",VE);_.Wu("yt_logging_screen.setCurrentScreen",_.kN);var VRk=function(){this.events=new Map},kAB=function(h){var E=[];
h=_.G(h.events.values());for(var g=h.next();!g.done;g=h.next())E.push(g.value);return E};
VRk.prototype.clear=function(){this.events.clear()};var Fll=function(){this.logTransport=new ygD;this.loggedEventRegister=new VRk;this.unloggedEventRegister=new VRk;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12433_flushTimer=new _.R5(this.flushInterval);this.JSC$12433_flushTimer.listen("tick",this.flush,!1,this)};
Fll.prototype.flush=function(){if(this.eventsCount){var h={loggedEvents:kAB(this.loggedEventRegister),unloggedEvents:kAB(this.unloggedEventRegister)};if(_.J("export_player_version_to_ytconfig")){var E;(E=_.nF("PLAYER_CLIENT_VERSION"))?(E=E.split("-")[0].replace(/\./g,""),E=isNaN(Number(E))?"0":E):E="";var g=_.nF("PLAYER_CLIENT_VERSION");if(g){g=g.split("-");var Z="";g.length>1&&(Z=g[g.length-1]);g=l4x(Z.startsWith("canary_experiment")?"canary":Z.startsWith("canary_control")?"control":"none")}else g=
"CLIENT_CANARY_STATE_UNKNOWN";h.dimensions={playerClientVersion:E,playerCanaryState:g}}this.logTransport.flush(h);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12433_flushTimer.enabled&&this.JSC$12433_flushTimer.stop()}};
var Agm=function(h){Bt==null&&(Bt=new Fll);var E=Bt;var g=E.loggedEventRegister;h.dimensions=h.dimensions||{};h.dimensions.csn=_.sH()||"";var Z=FoO(h.dimensions).join(";");if(h.records!=null)if(g.events.has(Z)){var M;(M=g.events.get(Z).records)==null||M.push.apply(M,_.$E(h.records))}else g.events.set(Z,h);E.JSC$12433_flushTimer.enabled||E.JSC$12433_flushTimer.start();E.eventsCount++;E.eventsCount>=100&&E.flush()};var ygD=function(){};
ygD.prototype.flush=function(h,E){_.J("enable_client_sli_logging")&&_.vT("sliEventBatch",h,{sendIsolatedPayload:!!E})};var Bt;var bJk;bJk=function(h){var E=TPF;h=h===void 0?{}:h;E=E.name;var g=Q2M("SUCCESS");Agm({dimensions:h,records:[{name:E,state:"SLI_STATE_END",status:g}]})};
_.Eia=function(h,E,g,Z){this.name=h;this.sliId=E;this.timeoutMs=g;this.statusOnTimeout=Z;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Eia.prototype.getId=function(){return this.sliId};
_.oe=function(h,E){E=E===void 0?{}:E;h.ongoing||(h.ongoing=!0,h.dimensions=E,h.logSliId=g7l(),Agm({dimensions:h.dimensions,records:[{name:h.name,state:"SLI_STATE_START",sliId:h.logSliId}]}),h.timeoutMs>0&&(h.timeoutHandle=setTimeout(function(){_.Ie(h,h.statusOnTimeout)},h.timeoutMs)))};
_.Ie=function(h,E){h.ongoing&&(h.timeoutMs>0&&clearTimeout(h.timeoutHandle),h.ongoing=!1,E={dimensions:h.dimensions,records:[{name:h.name,status:Q2M(E),state:"SLI_STATE_END",sliId:h.logSliId}]},Pt.register.delete(h.name+"_"+h.sliId),Agm(E))};var TPF=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var ugH=function(){XA.apply(this,arguments)};
_.f(ugH,XA);ugH.prototype.getAssociations=function(){return[]};
ugH.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var dYV=new _.I2("highlightTextDecoratorColorMapExtension");var Lpx=new _.I2("styleRunColorMapExtension");var z$Z=_.uz(["data-"]),i2z={};var Ivz={};var UU=function(h){this.wrappedPromise_=h===void 0?null:h;this.state_=0;this.JSC$12465_value_=null};
UU.prototype.then=function(h,E,g){return this.wrappedPromise_?this.wrappedPromise_.then(h,E,g):this.state_===1&&h?(h=h.call(g,this.JSC$12465_value_))&&typeof h.then==="function"?h:_.LC(h):this.state_===2&&E?(h=E.call(g,this.JSC$12465_value_))&&typeof h.then==="function"?h:_.QqH(h):this};
UU.prototype.getValue=function(){return this.JSC$12465_value_};
UU.prototype.isRejected=function(){return this.state_==2};
IbD(UU);_.QqH=function(h){var E=new UU;h=h===void 0?null:h;E.state_=2;E.JSC$12465_value_=h===void 0?null:h;return E};
_.LC=function(h){var E=new UU;h=h===void 0?null:h;E.state_=1;E.JSC$12465_value_=h===void 0?null:h;return E};var S1V="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var hsD=["load","abort","error"],ji=function(h,E,g){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12485_maxAspectRatio_=h;this.disableAnimation_=E===void 0?!1:E;this.disableExifRotation_=g===void 0?!1:g;this.JSC$12485_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12485_reject_=this.resolve_=null};
ji.prototype.transform=function(h){var E=this;this.mime_=h.type;G7(Uml(h),this.dataUrlRead_,this.readError_,this);G7(BDk(h.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(g,Z){E.resolve_=g;E.JSC$12485_reject_=Z})};
ji.prototype.dataUrlRead_=function(h){this.dataUrl_=h;this.angle_!=null&&EaD(this)};
ji.prototype.exifRead_=function(h){if(this.disableExifRotation_)this.angle_=0;else{a:if(h=new DataView(h),h.byteLength<2||h.getUint16(0)!==65496)h=-2;else{for(var E=2,g=h.byteLength;E<g;){var Z=h.getUint16(E),M=h.getUint16(E+2);if(Z===65505){E+=4;Z=h.getUint32(E);M=h.getUint16(E+4);if(Z!==1165519206||M!==0)break;E+=6;Z=h.getUint16(E)===18761;E+=h.getUint32(E+4,Z);M=h.getUint16(E,Z);E+=2;for(var W=0;W<M;W++){if(h.getUint16(E,Z)===274){E+=8;h=h.getUint16(E,Z);break a}E+=12}}else if(Z>>8!==255)break;
else E+=M+2}h=-1}switch(h){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&&EaD(this)};
ji.prototype.readError_=function(){this.JSC$12485_reject_()};
var EaD=function(h){D6(h.JSC$12485_image_,hsD,h.completeTransform_,!1,h);h.JSC$12485_image_.src=_.Yr(h.dataUrl_).toString();h.JSC$12485_image_.src!=Xj.toString()&&h.JSC$12485_image_.src.substr(0,11)==="data:image/"||h.JSC$12485_reject_()};
ji.prototype.completeTransform_=function(){if(this.JSC$12485_image_.src!=Xj.toString()){var h=_.Yr(this.dataUrl_),E=this.JSC$12485_image_.naturalHeight?this.JSC$12485_image_.naturalWidth/this.JSC$12485_image_.naturalHeight:null;this.invalidAspectRatio=E>this.JSC$12485_maxAspectRatio_||E<1/this.JSC$12485_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var g=this.JSC$12485_image_.naturalWidth,Z=this.JSC$12485_image_.naturalHeight,M=E=0,W=this.JSC$12485_image_.naturalHeight?this.JSC$12485_image_.naturalWidth/
this.JSC$12485_image_.naturalHeight:null;W>this.JSC$12485_maxAspectRatio_?(g=this.JSC$12485_maxAspectRatio_*Z,E=(g-this.JSC$12485_image_.naturalWidth)/2,this.cropped=!0):W<1/this.JSC$12485_maxAspectRatio_?(Z=this.JSC$12485_maxAspectRatio_*g,M=(Z-this.JSC$12485_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)W=g,g=Z,Z=W,W=E,E=M,M=W;switch(this.angle_){case 90:M-=g;break;case 180:E-=g;M-=Z;break;case 270:E-=
Z}this.cropped||this.angle_%360!==0?(h=document.createElement("canvas"),h.width=g||1,h.height=Z||1,this.JSC$12485_image_.naturalWidth&&this.JSC$12485_image_.naturalHeight&&(g=h.getContext("2d"),g.rotate(Math.PI/180*this.angle_),g.drawImage(this.JSC$12485_image_,E,M,this.JSC$12485_image_.naturalWidth,this.JSC$12485_image_.naturalHeight)),this.transformedData=_.Yr(h.toDataURL(this.mime_))):this.transformedData=h}else this.transformedData=h;this.resolve_(this)}};var dc=function(h,E){_.xD.call(this,h);this.value=E};
_.f(dc,_.xD);
var CC=function(h,E,g,Z,M,W,z){z=z===void 0?!1:z;_.ms.call(this);var c=this;this.JSC$12490_url_=h;this.channelId_=E;this.maxFileSizeMb_=g;this.JSC$12490_maxAspectRatio_=Z;this.dropZoneEl_=M;this.rejectInvalidAspectRatio_=z;this.selectButtonEl_=W;this.JSC$12490_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new xc(this.dropZoneEl_);this.selectOverlay_=new wy(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12490_image_=this.transfer_=null;this.handler_=new _.Pl(this);_.jf(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(W,"click",function(){c.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.f(CC,_.ms);CC.prototype.disposeInternal=function(){for(var h=this.selectButtonEl_.nextSibling;h&&h.parentNode&&h.tagName=="INPUT";)h.parentNode.removeChild(h),h=this.selectButtonEl_.nextSibling;this.cancel();_.ms.prototype.disposeInternal.call(this)};
CC.prototype.uploadPromise=function(){if(this.JSC$12490_image_==null)return null;this.uploadPromise_||gaM(this);return this.uploadPromise_};
CC.prototype.cancel=function(){ZVn(this);this.JSC$12490_image_=null};
var ZVn=function(h){h.transfer_&&h.transfer_.cancel();h.transfer_=null;h.uploadPromise_=null;h.resolve_=null;h.JSC$12490_reject_=null},gaM=function(h){ZVn(h);
h.transfer_=_.Ozn(h.JSC$12490_url_,{"X-YouTube-ChannelId":h.channelId_},h.JSC$12490_image_);h.handler_.listenOnce(h.transfer_,"l",h.JSC$12492_onUploadComplete_);h.handler_.listenOnce(h.transfer_,"n",h.onUploadError_);h.transfer_.run();h.uploadPromise_=new Promise(function(E,g){h.resolve_=E;h.JSC$12490_reject_=g})};
_.p=CC.prototype;_.p.onChange_=function(h){h.files.length&&(this.JSC$12490_image_=h.files[0],this.JSC$12490_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12490_image_=null,this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(gaM(this),(new ji(this.JSC$12490_maxAspectRatio_)).transform(this.JSC$12490_image_).then((0,_.DJ)(this.onPreview_,this),(0,_.DJ)(this.onPreviewError_,this))))};
_.p.onPreview_=function(h){if(h.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12490_image_=null),this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;h.cropped&&this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.CHANGE_EVENT",h.transformedData))};
_.p.onPreviewError_=function(){this.JSC$12490_image_=null;this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.p.onHover_=function(h){h.stopPropagation();h.preventDefault();if(h.type==="dragover")h=!0;else if(h.type==="dragleave")h=!1;else return;this.dispatchEvent(new dc("yt.comments.ImageUploadOverlay.HOVER_EVENT",h))};
_.p.JSC$12492_onUploadComplete_=function(){var h=(0,_.$sm)(this.transfer_.getResponseText());this.resolve_(h.encryptedBlobId)};
_.p.onUploadError_=function(){this.JSC$12490_reject_();ZVn(this)};var M3l=function(h){h=h||{};var E={},g={};this.url=h.url||"";this.args=h.args||_.Kt.clone(E);this.assets=h.assets||{};this.attrs=h.attrs||_.Kt.clone(g);this.fallback=h.fallback||null;this.fallbackMessage=h.fallbackMessage||null;this.html5=!!h.html5;this.disable=h.disable||{};this.loaded=!!h.loaded;this.messages=h.messages||{}};
M3l.prototype.clone=function(){var h=new M3l,E;for(E in this)if(this.hasOwnProperty(E)){var g=this[E];_.Tf(g)=="object"?h[E]=_.Kt.clone(g):h[E]=g}return h};var WPm,p_B,G3m,b1,awf,cSM,iVM,oaD,Iwl,Rsl,PLB,BMM,U9f,LPM,jFH,d9D,CLA,JSB,esk,q3M,fwk,NMF,t3m,S3l,x9k,w_H,D9D,lwM,rSC,iBZ,m9l,vaM,HVl,$9k,KPD,OVl,nak,X_f,Y3m,sFH,cqO,V3k,k3B,ySC,FPM,ASl,TMm,bVA,uJB,QFD,hYM,E9f,g9n,ZHf,MED,WDm,Jm,pPk,Gjl,zYn,aiH,czl,iHn,o9k,Iif,RYD,PmF,B_m,Ubf,LDM,jnB,dbf,CmA,Jzm,eYA,quk,z0N,fil,N_C,tEl,Sul,xbk,wPl,Dbk,liM,rzD,mbH,v9M,HHf,$bM,KDl,OHD,n9D,XPn,YuC,snm,VEM,kjH,yzf,FDf,Azf,T_m;WPm=["account/accounts_list"];p_B=["acknowledge_channel_tou_strike"];G3m=["notification/add_upcoming_event_reminder"];
_.zsl=["att/get"];b1=["browse","music/browse","unplugged/browse"];awf=["channel/claim_legacy_youtube_channel"];cSM=["history/clear_search_history"];iVM=["history/clear_watch_history"];oaD=["comment/perform_comment_action"];Iwl=["comment/get_comment_replies"];Rsl=["ypc/commerce_action"];PLB=["backstage/create_post"];BMM=["live/create_broadcast"];U9f=["channel/create_channel"];LPM=["comment/create_comment_reply"];jFH=["comment/create_comment"];d9D=["live_chat/create_poll"];CLA=["playlist/create"];
JSB=["decorate_message"];esk=["live_chat/delete_message"];q3M=["playlist/delete"];fwk=["video/delete"];NMF=["like/dislike"];t3m=["dismissal/dismiss"];S3l=["flag/flag"];x9k=["flow"];w_H=["account/account_menu"];D9D=["playlist/get_add_to_playlist"];lwM=["get_answer"];rSC=["channel/get_channel_creation_form"];iBZ=["offline/get_download_action"];m9l=["kids/get_kids_blocklist_picker"];vaM=["live_chat/get_item_context_menu"];HVl=["live_chat/get_live_chat_message_buy_flow"];$9k=["live_chat/get_live_chat_replay"];
KPD=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];OVl=["live_chat/get_live_chat_super_sticker_buy_flow"];nak=["notification/get_notification_menu"];X_f=["playlist/get_settings_editor"];Y3m=["backstage/get_post_video_preview"];sFH=["account/get_profile_card"];cqO=["share/get_share_panel"];V3k=["share/get_sharing_provider_data"];k3B=["get_survey"];ySC=["notification/get_unseen_count"];FPM=["get_user_mention_suggestions"];ASl=["get_watch"];TMm=["guide"];
bVA=["feedback"];uJB=["kids/update_blacklist"];QFD=["like/like"];hYM=["live_chat/live_chat_action"];E9f=["live_chat/manage_user"];g9n=["video_manager/metadata_update"];ZHf=["live_chat/moderate"];MED=["notification/modify_channel_preference"];WDm=["notification/opt_out"];Jm=["get_panel","get_posts_by_host_panel"];pPk=["player"];Gjl=["browse/edit_playlist"];zYn=["notification/record_interactions"];aiH=["reel/reel_item_watch"];czl=["reel/reel_watch_sequence"];iHn=["like/removelike"];o9k=["notification/remove_upcoming_event_reminder"];
Iif=["flag/get_form"];RYD=["miniapp/report_value"];PmF=["navigation/resolve_url"];B_m=["channel/reveal_business_email"];Ubf=["in_video/search"];LDM=["search","sfv/search","unplugged/search"];jnB=["live_chat/send_message"];dbf=["live_chat/send_live_chat_vote"];CmA=["account/set_setting"];Jzm=["submit_caption_correction"];eYA=["submit_form"];quk=["subscription/subscribe"];z0N=["get_transcript"];fil=["resolve_location","unplugged/resolve_location"];N_C=["subscription/unsubscribe"];tEl=["backstage/update_post"];
Sul=["channel_edit/update_channel_page_settings"];xbk=["comment/update_comment_reply"];wPl=["comment/update_comment"];Dbk=["comment/update_comments_settings"];liM=["creator/update_creator_channel"];rzD=["pdg/update_enablement"];mbH=["updated_metadata"];v9M=["channel_edit/validate_channel_handle"];HHf=["verify_age"];$bM=["next","unplugged/watch_next"];KDl=["whitelist/edit"];OHD=["ypc/cancel_recurrence"];n9D=["ypc/complete_transaction"];XPn=["ypc/get_cart"];YuC=["ypc/get_fix_instrument_params"];
snm=["ypc/get_offers"];VEM=["ypc/get_payment_instruments_params"];kjH=["ypc/handle_transaction"];yzf=["ypc/log_payment_server_analytics"];FDf=["ypc/pause_subscription"];Azf=["ypc/redeem_code"];T_m=["ypc/resume_subscription"];var bHn=[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,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,274188,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,
27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,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,273905,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,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,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,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,
95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,
130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,
10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,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,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,
209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var fZ=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Wu("yt.msgs_",fZ);var ei=new _.Ps("ACTION_ROUTER_TOKEN");_.q8=function(){this.autonavState_=_.J("kevlar_is_pupi_enabled")?2:nid()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.q8.prototype.getState=function(){return this.autonavState_};
_.q8.prototype.pause=function(h){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=h):this.autonavState_==1&&(this.disabledAutonavPauseReason_=h)};
_.q8.prototype.setState=function(h,E,g){E&&(this.autoplayChangedByUser=!0);E=this.autonavState_===3||h===3;this.autonavState_!=h&&(this.autonavState_=h,h!=3&&_.XCZ(h==2),h=_.J("kevlar_is_pupi_enabled")?g||E:!0,_.Tq.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,h,g))};
_.q8.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.GZ(_.q8);var fC=function(){this.hasRun=!1};var N8={},Q14=(N8.auto_search="LATENCY_ACTION_AUTO_SEARCH",N8.ad_to_ad="LATENCY_ACTION_AD_TO_AD",N8.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",N8.app_startup="LATENCY_ACTION_APP_STARTUP",N8.browse="LATENCY_ACTION_BROWSE",N8.cast_splash="LATENCY_ACTION_CAST_SPLASH",N8.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",N8.channels="LATENCY_ACTION_CHANNELS",N8.chips="LATENCY_ACTION_CHIPS",N8.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",N8.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
N8.editor="LATENCY_ACTION_EDITOR",N8.embed="LATENCY_ACTION_EMBED",N8.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",N8.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",N8.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",N8.explore="LATENCY_ACTION_EXPLORE",N8.favorites="LATENCY_ACTION_FAVORITES",N8.home="LATENCY_ACTION_HOME",N8.inboarding="LATENCY_ACTION_INBOARDING",N8.landing="LATENCY_ACTION_LANDING",N8.learning="LATENCY_ACTION_LEARNING",
N8.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",N8.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",N8.library="LATENCY_ACTION_LIBRARY",N8.live="LATENCY_ACTION_LIVE",N8.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",N8.management="LATENCY_ACTION_MANAGEMENT",N8.mini_app="LATENCY_ACTION_MINI_APP_PLAY",N8.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",N8.onboarding="LATENCY_ACTION_ONBOARDING",N8.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
N8.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",N8.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",N8.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",N8.prebuffer="LATENCY_ACTION_PREBUFFER",N8.prefetch="LATENCY_ACTION_PREFETCH",N8.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",N8.profile_switcher="LATENCY_ACTION_LOGIN",N8.projects="LATENCY_ACTION_PROJECTS",N8.reel_watch="LATENCY_ACTION_REEL_WATCH",N8.results="LATENCY_ACTION_RESULTS",N8.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
N8.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",N8.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",N8.review="LATENCY_ACTION_REVIEW",N8.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",N8.search_ui="LATENCY_ACTION_SEARCH_UI",N8.search_suggest="LATENCY_ACTION_SUGGEST",N8.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",N8.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",N8.seek="LATENCY_ACTION_PLAYER_SEEK",N8.settings="LATENCY_ACTION_SETTINGS",N8.store="LATENCY_ACTION_STORE",
N8.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",N8.tenx="LATENCY_ACTION_TENX",N8.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",N8.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",N8.watch="LATENCY_ACTION_WATCH",N8.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",N8["watch,watch7"]="LATENCY_ACTION_WATCH",N8["watch,watch7_html5"]="LATENCY_ACTION_WATCH",N8["watch,watch7ad"]="LATENCY_ACTION_WATCH",N8["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",N8.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
N8.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",N8.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",N8.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",N8.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",N8.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",N8.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",N8.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",N8),RrM=0;var dOx=function(h,E){nb.call(this,1,arguments);this.timer=E};
_.f(dOx,nb);var jMz=new Cqz("aft-recorded",dOx);var Zf4=_.MN.ytLoggingGelSequenceIdObj_||{};_.Wu("ytLoggingGelSequenceIdObj_",Zf4);var tm=_.MN.ytLoggingLatencyUsageStats_||{};_.Wu("ytLoggingLatencyUsageStats_",tm);var Si=function(){this.cleanupJob=0},pUx=function(){Si.instance||(Si.instance=new Si);
return Si.instance};
_.p=Si.prototype;_.p.baseline=function(h,E,g){xT(this,"baseline_"+h)||_.vT("latencyActionBaselined",{clientActionNonce:h},{timestamp:E,cttAuthInfo:g})};
_.p.tick=function(h,E,g,Z){xT(this,"tick_"+h+"_"+E)||_.vT("latencyActionTicked",{tickName:h,clientActionNonce:E},{timestamp:g,cttAuthInfo:Z})};
_.p.info=function(h,E,g){var Z=Object.keys(h).join("");xT(this,"info_"+Z+"_"+E)||(h=Object.assign({},h),h.clientActionNonce=E,_.vT("latencyActionInfo",h,{cttAuthInfo:g}))};
_.p.jspbInfo=function(h,E,g){for(var Z="",M=0;M<vc(h).length;M++)vc(h)[M]!==void 0&&(Z=M===0?Z.concat(""+M):Z.concat("_"+M));xT(this,"info_"+Z+"_"+E)||(_.ln(h,2,E),E={cttAuthInfo:g},g=_.J("jspb_sparse_encoded_pivot")?new SM([{}]):new SM,_.No(g,7,D_D,h),MzM("latencyActionInfo",g,E))};
_.p.span=function(h,E,g){var Z=Object.keys(h).join("");xT(this,"span_"+Z+"_"+E)||(h.clientActionNonce=E,_.vT("latencyActionSpan",h,{cttAuthInfo:g}))};
var xT=function(h,E){tm[E]=tm[E]||{count:0};var g=tm[E];g.count++;g.time=(0,_.zn)();h.cleanupJob||(h.cleanupJob=_.xW(_.KP,function(){var Z=(0,_.zn)(),M;for(M in tm)tm[M]&&Z-tm[M].time>6E4&&delete tm[M];h&&(h.cleanupJob=0)},5E3));
return g.count>5?(g.count===6&&Math.random()*1E5<1&&(g=new _.xX("CSI data exceeded logging limit with key",E.split("_")),E.indexOf("plev")>=0||_.O$(g)),!0):!1};var uZf,QnC;uZf=window;QnC=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.mc=uZf.performance||uZf.mozPerformance||uZf.msPerformance||uZf.webkitPerformance||new QnC;var LdO=!1,zrz=!1,CP4=(0,_.DJ)(_.mc.clearResourceTimings||_.mc.webkitClearResourceTimings||_.mc.mozClearResourceTimings||_.mc.msClearResourceTimings||_.mc.oClearResourceTimings||_.wk,_.mc);var hjD=window;hjD.ytcsi&&(hjD.ytcsi.infoGel=_.nZ,hjD.ytcsi.tick=_.s7);var lU$=function(h){nb.call(this,1,arguments);this.csn=h};
_.f(lU$,nb);var NDZ=new Cqz("screen-created",lU$),AXO=[],DON=Fda,TtM=0,AT=new Map,rXW=new Map,mOd=new Map;var kYx=Symbol("Bf"),pe=new WeakMap;var wc=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},wp=function(){wc.instance||(wc.instance=new wc);
return wc.instance};
_.p=wc.prototype;_.p.setClient=function(h){this.client=h};
_.p.JSC$12571_newScreen=function(){this.clear();this.csn=_.sH()};
_.p.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.p.reportShown=function(h,E,g){var Z=this.JSC$12571_getTrackingParams(h),M=h.visualElement?h.visualElement:Z;E=this.shownElements.has(M);var W=this.visibleState.get(M);this.shownElements.add(M);this.visibleState.set(M,!0);h.impressionLog&&!E&&h.impressionLog();if(Z||h.visualElement)if(g=Ezn(this,h,g))if(M=gzH(this,h),Ds(this,h)||M){Z=h.visualElement?h.visualElement:_.rp(Z);var z=h.interactionLoggingClientData;M||E?Ds(this,h)&4?W||YJu(this.client,g,Z,z):Ds(this,h)&1&&!E&&Ofd(this.client,g,Z,z):Ofd(this.client,
g,Z,z)}};
_.p.reportHidden=function(h,E,g){var Z=this.JSC$12571_getTrackingParams(h),M=h.visualElement?h.visualElement:Z;E=this.hiddenElements.has(M);var W=this.visibleState.get(M);this.hiddenElements.add(M);this.visibleState.set(M,!1);if(W===!1)return!0;if(!Z&&!h.visualElement)return!1;g=Ezn(this,h,g);if(!g||!Ds(this,h)&&gzH(this,h))return!1;Z=h.visualElement?h.visualElement:_.rp(Z);Ds(this,h)&8?sM$(this.client,g,Z):Ds(this,h)&2&&!E&&(h=this.client,E=FF({cttAuthInfo:VE(g)||void 0},g),Z={csn:g,ve:Z.getAsJson(),
eventType:2},g==="UNDEFINED_CSN"?bw("visualElementHidden",E,Z):h?rQ("visualElementHidden",Z,h,E):_.vT("visualElementHidden",Z,E));return!0};
_.p.JSC$12571_getTrackingParams=function(h){var E=this.getData(h),g,Z;if(_.J("il_use_view_model_logging_context")&&(E==null?0:(g=E.context)==null?0:(Z=g.loggingContext)==null?0:Z.loggingDirectives))return E.context.loggingContext.loggingDirectives.trackingParams||"";var M,W;if(E==null?0:(M=E.rendererContext)==null?0:(W=M.loggingContext)==null?0:W.loggingDirectives)return E.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams||
"";var z;return((z=h.veContainer)==null?0:z.trackingParams)?h.veContainer.trackingParams:(E==null?void 0:E.trackingParams)||""};
_.p.JSC$12571_elementShouldLogGesture=function(h,E){h=this.getData(h);return!!((Math.floor(Number(h&&h.loggingDirectives&&h.loggingDirectives.gestures&&h.loggingDirectives.gestures.types||""))||0)&E)};
_.p.JSC$12571_getNearestParentVe=function(h){var E=this.JSC$12571_getTrackingParams(h);return h.visualElement?h.visualElement:E?_.rp(E):h.parentElement?this.JSC$12571_getNearestParentVe(h.parentElement):null};
var Ezn=function(h,E,g){var Z=_.sH(g);return h.csn===null||Z===h.csn||g?Z:(h=new _.xX("VisibilityLogger called before newScreen",{caller:E.tagName,previous_csn:h.csn,current_csn:Z}),_.O$(h),null)};
wc.prototype.getData=function(h){var E,g=h.data||((E=h.props)==null?void 0:E.data);if(!g||h.isWebComponentWrapper){var Z;g=(Z=pe.get(h))==null?void 0:Z[kYx]}return g};
var gzH=function(h,E){var g;return!((g=h.getData(E))==null||!g.loggingDirectives)},Ds=function(h,E){h=h.getData(E);
return Math.floor(Number(h&&h.loggingDirectives&&h.loggingDirectives.visibility&&h.loggingDirectives.visibility.types||""))||1};var l_;l_=function(){};
_.NB=function(){l_.instance||(l_.instance=new l_);return l_.instance};
l_.prototype.setClient=function(h){_.k3(wp().setClient).bind(wp())(h)};
_.Z0D=function(){_.NB();_.k3(wp().JSC$12571_newScreen).bind(wp())()};
l_.prototype.clear=function(){_.k3(wp().clear).bind(wp())()};
l_.prototype.reportShown=function(h,E,g){_.k3(wp().reportShown).bind(wp())(h,E,g)};
l_.prototype.reportHidden=function(h,E,g){return _.k3(wp().reportHidden).bind(wp())(h,E,g)};
var jhV=function(h,E){return _.k3(wp().JSC$12571_getTrackingParams).bind(wp())(E)},y5d=function(h,E){return _.k3(wp().JSC$12571_getNearestParentVe).bind(wp())(E)};var rc,MVC;rc=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};
_.SQ=function(){rc.instance||(rc.instance=new rc);return rc.instance};
rc.prototype.setClient=function(h){this.client=h};
MVC=function(h,E,g){g=g===void 0?{}:g;_.k3(function(){var Z,M,W,z=((Z=_.e(E==null?void 0:E.commandMetadata,_.qH))==null?void 0:Z.rootVe)||((M=_.e(E==null?void 0:E.commandMetadata,kCl))==null?void 0:(W=M.screenVisualElement)==null?void 0:W.uiType);if(z){Z=_.e(E==null?void 0:E.commandMetadata,HCM);if(Z==null?0:Z.parentTrackingParams){var c=_.rp(Z.parentTrackingParams);if(Z.parentCsn)var I=Z.parentCsn}else g.clickedVisualElement?c=g.clickedVisualElement:E.clickTrackingParams&&(c=_.rp(E.clickTrackingParams));
a:{Z=_.e(E,_.MH);M=_.e(E,m9O);if(Z){if(M=Y1q(Z,"VIDEO")){Z={token:M,videoId:Z.videoId};break a}}else if(M&&(Z=Y1q(M,"PLAYLIST"))){Z={token:Z,playlistId:M.playlistId};break a}Z=void 0}g=Object.assign({},{cttAuthInfo:Z,parentCsn:I},g);if(_.J("expectation_logging")){var B;g.loggingExpectations=((B=_.e(E==null?void 0:E.commandMetadata,kCl))==null?void 0:B.loggingExpectations)||void 0}_.mw(h,z,c,g)}else _.O$(new _.xX("Error: Trying to create a new screen without a rootVeType",E))})()};
_.mw=function(h,E,g,Z){Z=Z===void 0?{}:Z;_.k3(function(){bHn.includes(E)||(_.O$(new _.xX("createClientScreen() called with a non-page VE",E)),E=83769);Z.isHistoryNavigation||(h.forwardHistoryStack=[],h.backHistoryStack.push({rootVe:E,key:Z.key||""}));h.graftQueue=[];h.stateChangedQueue=[];Z.dataPromises?WtB(h,E,g,Z):p0f(h,E,g,Z)})()};
_.GiH=function(h,E,g){g=g===void 0?0:g;_.k3(function(){E.then(function(Z){h.pendingScreenCreation.has(g)&&h.pendingScreenFn&&h.pendingScreenFn();var M=_.sH(g),W=_.YN(g);if(M&&W){var z={automatedLogEventSource:3},c;(Z==null?0:(c=Z.response)==null?0:c.trackingParams)&&TG(h.client,M,W,_.rp(Z.response.trackingParams),!1,z);var I;(Z==null?0:(I=Z.playerResponse)==null?0:I.trackingParams)&&TG(h.client,M,W,_.rp(Z.playerResponse.trackingParams),!1,z)}})})()};
rc.prototype.graftServerVe=function(h,E,g){var Z=this;return _.k3(function(){var M=_.rp(h);_.vt(Z,M,E,g);return M})()};
_.FLq=function(h,E,g,Z){return _.J("enable_client_ve_spec")&&E.clientVeSpec?(E=_.Uz(E.clientVeSpec.uiType,void 0,E.clientVeSpec.elementIndex,E.clientVeSpec.clientYoutubeData,void 0,E),_.vt(h,E,g,Z)?E:null):E.trackingParams?h.graftServerVe(E.trackingParams,g,Z):null};
_.tW=function(h,E,g,Z){return _.k3(function(){if(!E.veType)return _.KI(new _.xX("Error: Trying to graft a client VE without a veType.")),null;if(E.visibilityTypes){var M=E.visibilityTypes.reduce(function(W,z){return W|z});
M={visibility:{types:String(M)}}}M=_.Uz(E.veType,E.visualElement,E.elementIndex,E.clientYouTubeData,void 0,M);return _.vt(h,M,g,Z)?M:null})()};
_.vt=function(h,E,g,Z){Z=Z===void 0?0:Z;return _.k3(function(){if(h.pendingScreenCreation.has(Z))return h.graftQueue.push([E,g]),!0;var M=_.sH(Z),W=g||_.YN(Z);if(M&&W){if(_.J("combine_ve_grafts")){var z=h.cachedVisualElements.get(W.toString());z?z.push(E):(h.cachedRootVisualElements.set(W.toString(),W),h.cachedVisualElements.set(W.toString(),[E]));h.attachTimeout||(h.attachTimeout=_.xW(_.KP,function(){zjl(h,M)},1200))}else TG(h.client,M,W,E);
return!0}return!1})()};
_.Ht=function(h,E,g){g=g===void 0?0:g;var Z=h.recurringGrafts.get(g)||new Map;if(_.J("smarter_ve_dedupping"))for(var M=Array.from(Z.keys()),W=0;W<M.length;W++){var z=void 0,c=void 0;var I=E;var B=M[W];B.isClientVe()&&I.isClientVe()?(z=I.getAsJson(),c=B.getAsJson(),I=z.veType!==c.veType||z.elementIndex!==c.elementIndex||z.dataElement!==c.dataElement||I.getLoggingDirectives()!==B.getLoggingDirectives()?!1:!0):I=B.veData.trackingParams!==void 0&&I.veData.trackingParams!==void 0?((c=I.veData)==null?void 0:
c.trackingParams)===((z=B.veData)==null?void 0:z.trackingParams):!1;if(I)return}else if(Z.has(E))return;Z.set(E,void 0);h.recurringGrafts.set(g,Z);_.sH(g)==="UNDEFINED_CSN"||h.pendingScreenCreation.has(g)||_.vt(h,E,void 0,g)};
_.$T=function(h,E,g,Z){Z=_.sH(Z===void 0?0:Z);if(!Z)return!1;kdq(h.client,Z,E,g);return!0};
_.KC=function(h,E,g,Z){if(!E)return!1;Z=_.sH(Z===void 0?0:Z);if(!Z)return!1;kdq(h.client,Z,_.rp(E),g);return!0};
_.TT=function(h,E){var g=E.getScreenLayer&&E.getScreenLayer();if(E.visualElement)return _.$T(h,E.visualElement,void 0,g);E=jhV(_.NB(),E);return _.KC(h,E,void 0,g)};
rc.prototype.clickCommand=function(h,E,g){return _.KC(this,h.clickTrackingParams,E,g===void 0?0:g)};
rc.prototype.stateChanged=function(h,E,g){this.visualElementStateChanged(_.rp(h),E,g===void 0?0:g)};
rc.prototype.visualElementStateChanged=function(h,E,g){g=g===void 0?0:g;g===0&&this.pendingScreenCreation.has(g)?this.stateChangedQueue.push([h,E]):this.logStateChanged(h,E,g)};
rc.prototype.logStateChanged=function(h,E,g){g=g===void 0?0:g;var Z=_.sH(g);h=h||_.YN(g);return Z&&h?(yXV(this.client,Z,h,E),!0):!1};
var WtB=function(h,E,g,Z){Z=Z===void 0?{}:Z;h.pendingScreenCreation.add(Z.layer||0);h.pendingScreenFn=function(){p0f(h,E,g,Z);var z=_.YN(Z.layer);if(z){for(var c=_.G(h.graftQueue),I=c.next();!I.done;I=c.next())I=I.value,_.vt(h,I[0],I[1]||z,Z.layer);z=_.G(h.stateChangedQueue);for(c=z.next();!c.done;c=z.next())c=c.value,h.logStateChanged(c[0],c[1])}};
g||_.sH(Z.layer)||h.pendingScreenFn();if(Z.dataPromises)for(var M=_.G(Z.dataPromises),W=M.next();!W.done;W=M.next())_.GiH(h,W.value,Z.layer);else _.$W(Error("Cf"))},p0f=function(h,E,g,Z){Z=Z===void 0?{}:Z;
var M=void 0;Z.layer||(Z.layer=0);M=Z.parentLayer!==void 0?Z.parentLayer:Z.layer;var W=_.sH(M);M=_.YN(M);var z=g||M,c;z&&(Z.parentCsn!==void 0?c={clientScreenNonce:Z.parentCsn,visualElement:z}:W&&W!=="UNDEFINED_CSN"&&(c={clientScreenNonce:W,visualElement:z}));var I,B=_.nF("EVENT_ID");W==="UNDEFINED_CSN"&&B&&(I={servletData:{serializedServletEventId:B}});_.J("combine_ve_grafts")&&W&&zjl(h,W);_.J("no_client_ve_attach_unless_shown")&&z&&W&&Kd$(z,W);try{var U=_.vJW(h.client,E,c,Z.csnToClone,Z.cttAuthInfo,
I,Z.implicitGestureType,void 0,Z.loggingExpectations)}catch(C){_.nI(C,{rootVeType:E,rootVe:M,parentVisualElement:g,currentCsn:W,parentEl:c,csnToClone:Z.csnToClone});_.$W(C);return}_.kN(U,E,Z.layer,Z.cttAuthInfo);W&&W!=="UNDEFINED_CSN"&&M&&!k1M(W)&&sM$(h.client,W,M,!0);h.backHistoryStack[h.backHistoryStack.length-1]&&!h.backHistoryStack[h.backHistoryStack.length-1].csn&&(h.backHistoryStack[h.backHistoryStack.length-1].csn=U||"");_.nZ({clientScreenNonce:U});_.Z0D();var L=_.YN(Z.layer);W&&W!=="UNDEFINED_CSN"&&
L&&(_.J("web_mark_root_visible")||_.J("music_web_mark_root_visible"))&&_.hj(U,L);h.pendingScreenCreation.delete(Z.layer||0);h.pendingScreenFn=void 0;var d;(d=h.recurringGrafts.get(Z.layer))==null||d.forEach(function(C,q){C?_.vt(h,q,C,Z.layer):L&&_.vt(h,q,L,Z.layer)});
afD(h)},afD=function(h){for(var E=0;E<h.afterNewScreenOneOffJobs.length;E++){var g=h.afterNewScreenOneOffJobs[E];
try{g()}catch(Z){_.$W(Z)}}for(E=h.afterNewScreenOneOffJobs.length=0;E<h.afterNewScreenRecurringJobs.length;E++){g=h.afterNewScreenRecurringJobs[E];try{g()}catch(Z){_.$W(Z)}}},zjl=function(h,E){if(E===void 0)for(var g=s24(),Z=0;Z<g.length;Z++)g[Z]!==void 0&&zjl(h,g[Z]);
else h.cachedVisualElements.forEach(function(M,W){(W=h.cachedRootVisualElements.get(W))&&HfO(h.client,E,W,M)}),h.cachedVisualElements.clear(),h.cachedRootVisualElements.clear(),h.attachTimeout=void 0};var OU=function(h){h=h===void 0?{layer:0}:h;this.hasRun=!1;this.createScreenConfig=h;h={};this.cCS=(h.response=!1,h.playerResponse=!1,h)};
_.f(OU,fC);OU.prototype.validate=function(h){return!(!h.data||!h.data.response&&!h.data.playerResponse)};
OU.prototype.handle=function(h){var E=_.SQ(),g=this.createScreenConfig.layer;h.data.response&&h.data.response.trackingParams&&!this.cCS.response&&(E.graftServerVe(h.data.response.trackingParams,void 0,g),this.cCS.response=!0);h.data.playerResponse&&h.data.playerResponse.trackingParams&&!this.cCS.playerResponse&&(E.graftServerVe(h.data.playerResponse.trackingParams,void 0,g),this.cCS.playerResponse=!0)};var nC=function(){this.fG=_.hU();this.xN=[];this.lL7=0};
nC.prototype.processChunk=function(h){if(h){for(var E=_.G(this.xN),g=E.next();!g.done;g=E.next())g=g.value,g.validate(h)&&(g.handle(h),g.hasRun=!0);_.s7("np"+this.lL7);this.lL7++}};var Gy={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var i0f=function(){var h=cYA;this.observers=[];this.value=h};
_.p=i0f.prototype;_.p.subscribe=function(h){var E=this;if(h.idx!=null)throw Error("Ef");h.idx=this.observers.length;this.observers.push(h);return function(){var g=E.observers[E.observers.length-1];E.observers[h.idx]=g;g.idx=h.idx;E.observers.pop()}};
_.p.update=function(h){this.value=h(this.value);this.notify()};
_.p.mutate=function(h){h(this.value);this.notify()};
_.p.set=function(h){this.value=h;this.notify()};
_.p.notify=function(){for(var h=_.G(this.observers),E=h.next();!E.done;E=h.next()){E=E.value;try{E(this.value)}catch(g){}}};var P$W,ozH,PBf;_.eQ=function(h,E,g,Z,M,W,z){z=z===void 0?[]:z;this.buildCommandPayload=h;this.navigate=E;this.handleServiceRequest=g;this.sendAction=Z;this.JSC$12617_screenManager=M;this.commandResolverMap=W;this.autoLogResolverAllowlist=z;this.pendingCommands=new Set;this.isTracingEnabled=!1;ozH(this)};
P$W=function(h,E,g){var Z=E1x,M=g1z,W=_.SQ(),z=IfF;g=g===void 0?[]:g;_.eQ.instance=new _.eQ(h,E,Z,M,W,z,g)};
ozH=function(h){if(!h.isTracingEnabled&&u3O("command")){var E=h.resolveCommand;h.resolveCommand=function(g,Z){a:{for(M in g)if(Object.prototype.hasOwnProperty.call(g,M)){var M={commandType:M};break a}M={}}return hRx("command",M,E.bind(this,g,Z))};
h.isTracingEnabled=!0}};
PBf=function(h,E,g){if(!h.commandResolverMap)return!1;var Z=WHZ(E,h.commandResolverMap);return Z?((h.autoLogResolverAllowlist.some(function(M){return!!_.e(E,M)})||(g==null?0:g.forceClickLogging))&&RjF(h,E,g),Z instanceof Promise?Z.then(function(M){M.resolve(E,g)}):Z.resolve(E,g),!0):!1};
_.eQ.prototype.resolveCommand=function(h,E){var g=this,Z=BSl(h);if(PBf(this,h,E))return!0;if(Z)return Uqn(this,h,E);if(!this.buildCommandPayload)return gcd(h,"Unhandled command by buildCommandPayload"),!1;var M=this.buildCommandPayload(h,E);if(E==null?0:E.commandController)M.commandController=E.commandController;if(M.type===0){if(!this.navigate)return Z1x(h,"navigate"),!1;if(!LtD(M.command))return gcd(h,"Page requests need to specify a url"),!1;_.J("logging_avoid_blocking_during_navigation")&&_.adz().transition("application_navigating");
h=this.navigate(M)||[];dsk(h).then(function(){g.pendingCommands.delete(M.command)});
return!0}if(M.type===1){if(!this.handleServiceRequest)return Z1x(h,"handleServiceRequest"),!1;(E==null?0:E.forceClickLogging)&&RjF(this,M.command,E);h=this.handleServiceRequest(M);dsk(h).then(function(){g.pendingCommands.delete(M.command)});
return!0}if(M.type===2){if(!this.sendAction)return Z1x(h,"sendAction"),!1;RjF(this,M.command,E);this.sendAction(M);return!0}return!1};
var RjF=function(h,E,g){if((g==null||!g.disableClickTracking)&&h.JSC$12617_screenManager)if(E.clickTrackingParams&&_.J("log_click_with_layer_from_element_in_command_handler")){var Z;g=g==null?void 0:(Z=g.form)==null?void 0:Z.element;h.JSC$12617_screenManager.clickCommand(E,null,g&&g.getScreenLayer&&g.getScreenLayer())}else E.clickTrackingParams?h.JSC$12617_screenManager.clickCommand(E):!_.J("disable_clicked_visual_element_in_command_handler")&&(g==null?0:g.clickedVisualElement)&&_.$T(h.JSC$12617_screenManager,
g.clickedVisualElement)},BSl=function(h){var E=!!_.e(h,_.CZ),g;
h=((g=_.e(h,_.ej))==null?void 0:g.signal)==="CLIENT_SIGNAL";return E||h},Uqn=function(h,E,g){var Z=_.e(E,_.CZ);
if(Z)var M=(Z==null?void 0:Z.commands)||[];else{var W;if(((W=_.e(E,_.ej))==null?void 0:W.signal)==="CLIENT_SIGNAL"){var z;M=((z=_.e(E,_.ej))==null?void 0:z.actions)||[]}}if(M){E=_.G(M);for(M=E.next();!M.done;M=E.next()){M=M.value;try{h.resolveCommand(M,g)}catch(c){c instanceof Error&&_.$W(c)}}return!0}gcd(E,"Could not handle the meta command");return!1},LtD=function(h){var E;
return!((E=_.e(h==null?void 0:h.commandMetadata,_.qH))==null||!E.url)};var X2=function(){fC.apply(this,arguments)};
_.f(X2,fC);X2.prototype.validate=function(h){var E,g;return!this.hasRun&&!!((E=h.data.response)==null?0:(g=E.onResponseReceivedEndpoints)==null?0:g.length)};
X2.prototype.handle=function(h){var E=_.eQ.instance;h=_.G(h.data.response.onResponseReceivedEndpoints);for(var g=h.next();!g.done;g=h.next())E.resolveCommand(g.value)};var j_F,dqD,CBf;
j_F=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=_.dC();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.sU=function(){dqD||(dqD=new j_F);return dqD};
CBf=function(){var h=_.sU();h.miniplayerButtonActivation=!1;h.userActivation=!1;h.playlistWatchPageActivation=!1;h.productDetailsPageActivation=!1;h.miniAppPageActivation=!1;h.playablesDestPageActivation=!1;h.lockupActivation=!1;h.showMiniplayerCommandActivation=!1;h.playlistSuggestionsShelfActivation=!1;h.mediaSessionPipActivation=!1;h.watchPipActivation=!1;h.watchWhileActivation=!1;h.shortsPipActivation=!1};
_.JYf=function(){var h=_.sU(),E=h.mediaSessionPipActivation,g=h.watchPipActivation,Z=h.watchWhileActivation,M=h.playlistWatchPageActivation,W=h.lockupActivation,z=h.showMiniplayerCommandActivation,c=h.navigatingAwayFromWatchDeletedVideo,I=h.shortsPipActivation,B=h.playlistSuggestionsShelfActivation,U=h.productDetailsPageActivation,L=h.miniAppPageActivation,d=h.playablesDestPageActivation;return!h.miniplayerButtonActivation&&!M&&!B&&!U&&!L&&!d&&!W&&!z&&!E&&!g&&!Z&&!I||c};var o54;_.VU=_.aY("FEwhat_to_watch","/",3854);_.Ix$=_.aY("FEdownloads","/feed/downloads",42352);o54=_.aY("FEmusic_offline","browse/FEmusic_offline",42352);var pm=function(h,E){E=E===void 0?[]:E;var g=g===void 0?[]:g;E=fD4.apply(null,[N64.apply(null,_.$E(E))].concat(_.$E(g)));this.store=wQ$(h,void 0,E)};
pm.prototype.getState=function(){return this.store.getState()};
pm.prototype.dispatch=function(h){return this.store.dispatch(h)};
pm.prototype.subscribe=function(h){return this.store.subscribe(h)};
pm.prototype.replaceReducer=function(h){return this.store.replaceReducer(h)};
pm.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.kT=function(h,E,g){var Z=E(h.getState());return h.subscribe(function(){var M=E(h.getState());if(M!==Z){var W=Z;Z=M;g(M,W)}})};var Ty4;_.xx=function(h,E,g){return _.RY({type:"REPLACE_ENTITY",payload:{entityPayload:g,entityType:h,key:E}})};
Ty4=function(h){return _.RY({type:"REPLACE_ENTITIES",payload:h})};
_.vg=function(h,E,g,Z){return _.RY({type:"UPDATE_ENTITY",payload:{entityPayload:g,entityType:h,key:E,mergeOption:Z}})};var LH$=function(h){var E=this;h=h===void 0?[]:h;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;h.forEach(function(g){E.append(g)})};
_.p=LH$.prototype;_.p.getLength=function(){return this.totalLength};
_.p.append=function(h){var E=this.arrays.length===0?!1:(E=this.arrays[this.arrays.length-1])&&E.buffer===h.buffer&&E.byteOffset+E.length===h.byteOffset;E?(E=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(E.buffer,E.byteOffset,E.length+h.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(h);this.totalLength+=h.length};
_.p.split=function(h){for(var E=new LH$,g=new LH$,Z=_.G(this.arrays),M=Z.next();!M.done;M=Z.next())M=M.value,h>=M.length?(E.append(M),h-=M.length):h?(E.append(new Uint8Array(M.buffer,M.byteOffset,h)),g.append(new Uint8Array(M.buffer,M.byteOffset+h,M.length-h)),h=0):g.append(M);return{headView:E,tailView:g}};
_.p.extract=function(h,E){return this.split(h).tailView.split(E).headView};
_.p.isFocused=function(h){return h>=this.arrayPos&&h<this.arrayPos+this.arrays[this.arrayIdx].length};
_.p.focus=function(h){if(!this.isFocused(h))for(h<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=h&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var ejD=function(h,E){h.focus(E);return h.arrays[h.arrayIdx][E-h.arrayPos]};(function(){var h=function(Z){return new Uint8Array(Z)},E=function(Z){for(var M=new Uint8Array(Z.length),W=0;W<Z.length;W++)M[W]=Z[W];
return M},g=new Uint8Array([1]);
return g.length===1&&g[0]===1?h:E})();
var ocq=Array(1024),i1M=window.TextDecoder?new TextDecoder:void 0,RR$=window.TextEncoder?new TextEncoder:void 0;var UM4=function(h){this.arrayView=h;this.pos=0;this.pendingTagAndType=-1},Pn=function(h){var E=ejD(h.arrayView,h.pos);
++h.pos;if(E<128)return E;for(var g=E&127,Z=1;E>=128;)E=ejD(h.arrayView,h.pos),++h.pos,Z*=128,g+=(E&127)*Z;return g},jRa=function(h,E){var g=h.pendingTagAndType;
for(h.pendingTagAndType=-1;h.pos+1<=h.arrayView.totalLength;){g<0&&(g=Pn(h));var Z=g>>3,M=g&7;if(Z===E)return!0;if(Z>E){h.pendingTagAndType=g;break}g=-1;switch(M){case 0:Pn(h);break;case 1:h.pos+=8;break;case 2:Z=Pn(h);h.pos+=Z;break;case 5:h.pos+=4}}return!1};var CMO=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=ByM(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Le=function(h,E){E=h.pos+E;
if(!(h.buf.length>=E)){for(var g=h.buf.length*2;g<E;)g*=2;h.buf=ByM(g,h.wasm,h.buf.subarray(0,h.pos));h.view=new DataView(h.buf.buffer,h.buf.byteOffset,h.buf.byteLength)}},Uo=function(h,E){if(E>268435455){Le(h,4);
for(var g=E&1073741823,Z=0;Z<4;Z++)h.view.setUint8(h.pos,g&127|128),g>>=7,h.pos+=1;E=Math.floor(E/268435456)}for(Le(h,4);E>127;)h.view.setUint8(h.pos,E&127|128),E>>=7,h.pos+=1;h.view.setUint8(h.pos,E);h.pos+=1};for(var J0W={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},dMd={},qVM=_.G(Object.entries(J0W)),ffF=qVM.next();!ffF.done;ffF=qVM.next()){var NSH=_.G(ffF.value),tVH=NSH.next().value,SVl=NSH.next().value,xqn=tVH,w0f=SVl;w0f&&(dMd[w0f]=xqn)};var qr4=function(h,E){h=h===void 0?{}:h;switch(E.type){case "ENTITY_LOADED":return E.payload.reduce(function(Z,M){var W,z=(W=M.options)==null?void 0:W.persistenceOption;if(z&&z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!M.entityKey)return _.$W(Error("Gf")),Z;if(M.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!M.payload)return M=new _.xX("REPLACE entity mutation is missing a payload",{entityKey:M.entityKey}),_.$W(M),Z;var c=(0,_.Kt.getAnyKey)(M.payload);
return Nyz(Z,c,M.entityKey,M.payload[c])}if(M.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{M=M.entityKey;try{var I=_.Bn(M).entityType;c=Nyz(Z,I,M);break a}catch(L){if(L instanceof Error){M=new _.xX("Failed to deserialize entity key",{entityKey:M,originalMessage:L.message});_.$W(M);c=Z;break a}throw L;}c=void 0}return c}if(M.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!M.payload)return M=new _.xX("UPDATE entity mutation is missing a payload",{entityKey:M.entityKey}),_.$W(M),Z;c=(0,_.Kt.getAnyKey)(M.payload);
var B,U;return tcM(Z,c,M.entityKey,M.payload[c],(B=M.fieldMask)==null?void 0:(U=B.mergeOptions)==null?void 0:U.repeatedFieldsMergeOption)}return Z},h);
case "REPLACE_ENTITY":var g=E.payload;return Nyz(h,g.entityType,g.key,g.entityPayload);case "REPLACE_ENTITIES":return Object.keys(E.payload).reduce(function(Z,M){var W=E.payload[M];return Object.keys(W).reduce(function(z,c){return Nyz(z,M,c,W[c])},Z)},h);
case "UPDATE_ENTITY":return g=E.payload,tcM(h,g.entityType,g.key,g.entityPayload,g.mergeOption);default:return h}};var SrZ;var Dqm=!1,yU,F2,Am,Th,b_,lfM=function(h){_.wO.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Dqm){var E,g=new Uint8Array(256),Z=new Uint8Array(256);var M=1;for(E=0;E<256;E++)g[M]=E,Z[E]=M,M^=M<<1^(M>>7&&283);yU=new Uint8Array(256);F2=eD(256);Am=eD(256);Th=eD(256);b_=eD(256);for(var W=0;W<256;W++){M=W?Z[255^g[W]]:0;M^=M<<1^M<<2^M<<3^M<<4;M=M&255^M>>>8^99;yU[W]=M;E=M<<1^(M>>7&&283);var z=E^M;F2[W]=E<<24|M<<16|M<<8|z;Am[W]=z<<24|F2[W]>>>8;Th[W]=M<<24|Am[W]>>>
8;b_[W]=M<<24|Th[W]>>>8}Dqm=!0}M=eD(44);for(g=0;g<4;g++)M[g]=h[4*g]<<24|h[4*g+1]<<16|h[4*g+2]<<8|h[4*g+3];for(Z=1;g<44;g++)h=M[g-1],g%4||(h=(yU[h>>16&255]^Z)<<24|yU[h>>8&255]<<16|yU[h&255]<<8|yU[h>>>24],Z=Z<<1^(Z>>7&&283)),M[g]=M[g-4]^h;this.key=M};
_.f(lfM,_.wO);
lfM.prototype.encrypt=function(h){var E=h.length;h=new Uint8Array(h.buffer.slice(h.byteOffset,h.byteOffset+E));for(var g=this.cipherBlock,Z=0;Z<E&&this.blockOffset<16;)h[Z++]^=g[this.blockOffset++];for(var M=E-(E-Z)%16;Z<M;)rYB(this),h[Z++]^=g[0],h[Z++]^=g[1],h[Z++]^=g[2],h[Z++]^=g[3],h[Z++]^=g[4],h[Z++]^=g[5],h[Z++]^=g[6],h[Z++]^=g[7],h[Z++]^=g[8],h[Z++]^=g[9],h[Z++]^=g[10],h[Z++]^=g[11],h[Z++]^=g[12],h[Z++]^=g[13],h[Z++]^=g[14],h[Z++]^=g[15];if(Z<E)for(rYB(this),this.blockOffset=0;Z<E;)h[Z++]^=
g[this.blockOffset++];return h};
var rYB=function(h){for(var E=h.key,g=h.counter[0]^E[0],Z=h.counter[1]^E[1],M=h.counter[2]^E[2],W=h.counter[3]^E[3],z=3;z>=0&&!(h.counter[z]=-~h.counter[z]);z--);for(var c,I,B=4;B<40;)z=F2[g>>>24]^Am[Z>>16&255]^Th[M>>8&255]^b_[W&255]^E[B++],c=F2[Z>>>24]^Am[M>>16&255]^Th[W>>8&255]^b_[g&255]^E[B++],I=F2[M>>>24]^Am[W>>16&255]^Th[g>>8&255]^b_[Z&255]^E[B++],W=F2[W>>>24]^Am[g>>16&255]^Th[Z>>8&255]^b_[M&255]^E[B++],g=z,Z=c,M=I;h=h.cipherBlock;z=E[40];h[0]=yU[g>>>24]^z>>>24;h[1]=yU[Z>>16&255]^z>>16&255;h[2]=
yU[M>>8&255]^z>>8&255;h[3]=yU[W&255]^z&255;z=E[41];h[4]=yU[Z>>>24]^z>>>24;h[5]=yU[M>>16&255]^z>>16&255;h[6]=yU[W>>8&255]^z>>8&255;h[7]=yU[g&255]^z&255;z=E[42];h[8]=yU[M>>>24]^z>>>24;h[9]=yU[W>>16&255]^z>>16&255;h[10]=yU[g>>8&255]^z>>8&255;h[11]=yU[Z&255]^z&255;z=E[43];h[12]=yU[W>>>24]^z>>>24;h[13]=yU[g>>16&255]^z>>16&255;h[14]=yU[Z>>8&255]^z>>8&255;h[15]=yU[M&255]^z&255};var mqM=!1;(function(){var h=function(Z){return new Uint8Array(Z)},E=function(Z){for(var M=new Uint8Array(Z.length),W=0;W<Z.length;W++)M[W]=Z[W];
return M},g=new Uint8Array([1]);
return g.length===1&&g[0]===1?h:E})();
var u_;var $qF=function(h){a:{if(!mqM&&!Zp){if(u_){var E=u_;break a}u_=(E=window.crypto)==null?void 0:E.subtle;var g,Z,M;if(((g=u_)==null?0:g.importKey)&&((Z=u_)==null?0:Z.sign)&&((M=u_)==null?0:M.encrypt)){E=u_;break a}u_=void 0}E=void 0}E&&(this.nativeEncryptor=new vzl(h,E));this.encryptorPolyfill=new H0n(h)};
$qF.prototype.encrypt=function(h,E){var g=this,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!g.nativeEncryptor){M.jumpTo(2);break}_.CX(M,3);return M.yield(g.nativeEncryptor.encrypt(h,E),5);case 5:return M.return(M.yieldResult);case 3:Z=_.th(M),_.O$(Z),mqM=!0,g.nativeEncryptor=void 0;case 2:return M.return(g.encryptorPolyfill.encrypt(h,E))}})};
$qF.prototype.decrypt=function(h,E){return this.encrypt(h,E)};
var vzl=function(h,E){this.JSC$12690_aesKey=h;this.subtleCrypto=E};
vzl.prototype.encrypt=function(h,E){var g=this,Z;return _.a(function(M){if(M.nextAddress==1)return _.CX(M,2),M.yield(Ktl(g,h,E),4);if(M.nextAddress!=2)return M.return(M.yieldResult);Z=_.th(M);_.O$(Z);mqM=!0;throw Z;})};
var Ktl=function(h,E,g){var Z,M;return _.a(function(W){switch(W.nextAddress){case 1:if(h.cryptoKey){W.jumpTo(2);break}return W.yield(h.subtleCrypto.importKey("raw",h.JSC$12690_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:h.cryptoKey=W.yieldResult;case 2:return Z={name:"AES-CTR",counter:g,length:128},W.yield(h.subtleCrypto.encrypt(Z,h.cryptoKey,E),4);case 4:return M=W.yieldResult,W.return(new Uint8Array(M))}})},H0n=function(h){this.JSC$12693_aesKey=h};
H0n.prototype.encrypt=function(h,E){this.encryptor||(this.encryptor=new lfM(this.JSC$12693_aesKey));for(var g=this.encryptor,Z=0;Z<4;Z++)g.counter[Z]=E[Z*4]<<24|E[Z*4+1]<<16|E[Z*4+2]<<8|E[Z*4+3];g.blockOffset=16;return this.encryptor.encrypt(h)};
H0n.prototype.decrypt=function(h,E){return this.encrypt(h,E)};var O0n={},DM$=Gn("yt-idb-pref-storage",{objectStores:(O0n.prefs={addedAtVersion:1},O0n),shared:!1,upgrade:function(h,E){E(1)&&ya(kL(h,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.QU=function(h){this.token=h};
_.QU.getInstance=function(){return _.a(function(h){return h.return(new Promise(function(E){_.pP().then(function(g){g?(_.QU.instance||(_.QU.instance=new _.QU(g)),E(_.QU.instance)):E(void 0)})}))})};
_.QU.prototype.get=function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return W.yield(lLz(E.token),2);if(W.nextAddress!=3)return g=W.yieldResult,W.yield(g.get("prefs",h),3);Z=W.yieldResult;if(!Z)return W.return();M=(0,_.zn)();return Z.expirationTimestampMs<=M?W.return():W.return(Z.value)})};
_.QU.prototype.set=function(h,E,g){g=g===void 0?31536E3:g;var Z=this,M,W,z;return _.a(function(c){if(c.nextAddress==1)return M=(0,_.zn)(),W={key:h,value:E,expirationTimestampMs:M+g*1E3},c.yield(lLz(Z.token),2);z=c.yieldResult;return c.yield(z.put("prefs",W),0)})};
_.QU.prototype.remove=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(lLz(E.token),2);g=Z.yieldResult;return Z.yield(g.delete("prefs",h),0)})};var hc={},nzf=(hc.INVALID_ENCODER_VERSION="Invalid encoder version",hc.KEY_CREATION_FAILED="Failed to create encoder key",hc.UNKNOWN_DECODE_ERROR="Failed to decode PES data",hc.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",hc.WRONG_DATA_TYPE="Encoder cannot process the data type",hc),qw=function(h,E){E=E===void 0?{}:E;_.xX.call(this,nzf[h],Object.assign({},{name:"PESEncoderError",type:h},E));this.type=h;this.level="WARNING";Object.setPrototypeOf(this,qw.prototype)};
_.f(qw,_.xX);var Ek=function(){};
Ek.prototype.encode=function(h,E){try{return this.encodeImpl(h,E)}catch(g){H1W(g,mMM)}};
Ek.prototype.decode=function(h,E){try{return this.decodeImpl(h,E)}catch(g){H1W(g,vcZ)}};
var X0D=function(h,E,g){var Z;return _.a(function(M){if(M.nextAddress==1)return _.CX(M,2),M.yield(h.decodeAsyncImpl(E,g),4);if(M.nextAddress!=2)return M.return(M.yieldResult);Z=_.th(M);H1W(Z,vcZ);_.SK(M)})};
Ek.prototype.decodeAsyncImpl=function(h,E){return Promise.resolve(this.decodeImpl(h,E))};var gW=function(h,E){this.aesEncryptor=h;this.aesEncryptorAsync=E};
_.f(gW,Ek);gW.prototype.encodeImpl=function(h,E){E=$Mu(E);h=(new TextEncoder).encode(JSON.stringify(h));return this.aesEncryptor.encrypt(h,E)};
gW.prototype.decodeImpl=function(h,E){if(!(h instanceof Uint8Array))throw r0$(1);var g=new TextDecoder;E=$Mu(E);h=this.aesEncryptor.decrypt(h,E);return JSON.parse(g.decode(h))};
gW.prototype.decodeAsyncImpl=function(h,E){var g=this,Z,M,W;return _.a(function(z){if(z.nextAddress==1){if(!(h instanceof Uint8Array))throw r0$(1);Z=new TextDecoder;M=$Mu(E);return z.yield(g.aesEncryptorAsync.decrypt(h,M),2)}W=z.yieldResult;return z.return(JSON.parse(Z.decode(W)))})};var KHZ={accountLinkStatusEntity:vFH,booleanEntity:oFM,buttonEntity:h_l,captionTrack:$Mf,channelHandle:nDk,chipEntity:xJf,commerceAcquisitionClientPayloadEntity:qEl,commerceCartListEntity:f7l,contextNoteFeedEntityPayload:hpf,contextNoteUserRatingEntityPayload:EsM,continuationTokenEntity:jMC,downloadQualityPickerEntity:zrC,downloadsPageRefreshTokenEntity:cXm,downloadsPageViewConfigurationEntity:SJM,downloadStatusEntity:aUH,dismissState:w4B,sfvAudioItemCurrentlyPlayingEntity:Bcl,emojiFountainDataEntity:b6M,
emojiCustomizationSetEntity:TKD,fakeChannel:PQB,fakePlaylist:BhC,fakePlaylistEntryCollection:Ulm,fakeVideo:j2M,fakeVideoDescription:dlM,featuredProductsEntity:AXl,flowStateEntity:DlF,iconBadgeEntity:NPM,interstitialInteractionStateEntity:ucm,likeButtonAnimationEntity:xOn,liveChatPollStateEntity:pCf,dataFreshnessEntity:A6k,liveViewerLeaderboardChatEntryPointStateEntity:uAD,liveViewerLeaderboardPointsEntity:QRH,liveReactionsDataEntity:udM,logoEntity:Thn,macroMarkerEntity:wUH,mainDownloadsLibraryEntity:ifm,
mainDownloadsListEntity:oJF,mainPlaylistDownloadStateEntity:Rrn,mainPlaylistEntity:dOk,mainPlaylistVideoEntity:CPD,mainVideoDownloadStateEntity:PPl,mainVideoEntity:fUf,markersEngagementPanelSyncEntity:DOA,markersVisibilityOverrideEntity:lUB,musicAlbumReleaseDetail:pkC,musicAlbumReleaseDownloadMetadataEntity:EcH,musicAlbumRelease:WHf,musicAlbumReleaseUserDetail:GgH,musicArtistDetail:aLf,musicArtist:zRM,musicArtistUserDetail:c0f,musicDownloadsLibraryEntity:gcD,musicLibraryEdit:i1n,musicLibraryStatusEntity:ocF,
musicPlaylist:ILA,musicPlaylistDownloadMetadataEntity:Z1k,musicShare:PMk,musicTrackDetail:UMD,musicTrackDownloadMetadataEntity:Mcm,musicTrack:Byn,musicTrackUserDetail:LHB,offlineOrchestrationActionWrapperEntity:KHf,offlineVideoPolicy:O1n,offlineVideoStreams:nck,offlineabilityEntity:BtA,orchestrationWebSamplingEntity:UOn,pageHeaderEntity:nll,pdpStateEntity:tRf,pinnedProductEntity:Ttn,playbackData:Xkf,playerStateEntity:rXm,quantityIncrementerEntity:SED,refresh:YrB,saveToPlaylistListEntity:$8l,selectedChipIndexEntityPayload:mOD,
settingEntity:WuM,stringEntity:I4f,suggestedFeedbackChipStateEntity:vJm,transfer:sRF,trendingOfferEntity:bfl,videoDownloadContextEntity:Vcl,videoOverviewAsyncDataEntity:ugH,videoPlaybackPositionEntity:ZJA,votingEntity:V1F,ytMainChannelEntity:NtH,youchatPendingResponseEntity:Hfl,ytMainDownloadedVideoEntity:Ldl,ytMainVideoEntity:tzD};var YVf,VVC,x8,y0z,FH4,FtC,TSD,AYl,yYl;YVf=function(h,E){this.JSC$12712_wrapped=h;this.JSC$12712_encoderRegistry=E;this.changedKeys={}};
VVC=function(h,E){return s_M(h.JSC$12712_encoderRegistry,E.version).decode(E.data,E.key)};
_.kiD=function(h,E,g){return h.JSC$12712_wrapped.objectStore("EntityStore").get(E).then(function(Z){if(Z){if(g&&Z.entityType!==g)throw Error("Hf");return VVC(h,Z)}})};
x8=function(h,E,g){return g?(g=g.map(function(Z){return _.kiD(h,Z,E)}),kX.all(g)):h.JSC$12712_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(E)).then(function(Z){return Z.map(function(M){return VVC(h,M)})})};
_.kgu=function(h,E,g){var Z=eRa(E),M=s_M(h.JSC$12712_encoderRegistry,1),W=Object.assign({},E);return h.JSC$12712_wrapped.objectStore("EntityStore").get(Z).then(function(z){if(z){if(z.entityType!==g)throw Error("Hf");W.entityMetadata||(z=VVC(h,z),W.entityMetadata=z.entityMetadata)}}).then(function(){var z={key:Z,
entityType:g,data:M.encode(W,Z),version:1};return kX.all([h.JSC$12712_wrapped.objectStore("EntityStore").put(z),yYl(h,W,g)])}).then(function(){FtC(h,Z,g);
return Z})};
y0z=function(h,E){var g=_.Bn(E).entityType;return kX.all([h.JSC$12712_wrapped.objectStore("EntityStore").delete(E),AYl(h,E)]).then(function(){FtC(h,E,g)})};
FH4=function(h,E,g,Z){var M=s_M(h.JSC$12712_encoderRegistry,1);return _.kiD(h,E,Z).then(function(W){if(W){W=c0u(W,g);var z={key:E,entityType:Z,data:M.encode(W,E),version:1};return kX.all([h.JSC$12712_wrapped.objectStore("EntityStore").put(z),yYl(h,W,Z)])}}).then(function(){FtC(h,E,Z);
return E})};
FtC=function(h,E,g){var Z=h.changedKeys[g];Z||(Z=new Set,h.changedKeys[g]=Z);Z.add(E)};
TSD=function(h,E,g){var Z=eRa(E);g=O1M(g);if(!g)return kX.resolve([]);g=new g(E);h=h.JSC$12712_wrapped.objectStore("EntityAssociationStore");E=[];g=_.G(g.getAssociations());for(var M=g.next();!M.done;M=g.next())E.push(h.put({parentEntityKey:Z,childEntityKey:M.value}));return kX.all(E).then(function(W){return W.map(function(z){return z[1]})})};
AYl=function(h,E){return h.JSC$12712_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(E))};
yYl=function(h,E,g){var Z=eRa(E);return AYl(h,Z).then(function(){return TSD(h,E,g)})};var b0l=function(){};
_.f(b0l,Ek);b0l.prototype.encodeImpl=function(h){return h};
b0l.prototype.decodeImpl=function(h){if(h instanceof Uint8Array)throw r0$(0);return h};var Yr$=function(){this.cacheMap={};this.cacheMap[0]=new b0l;if(!_.J("aes_pes_encoder_killswitch")){var h=this.cacheMap;try{var E=_.tl();var g=$Mu(E);var Z=new gW(new H0n(g),new $qF(g))}catch(M){throw h=M instanceof Error?new qw("KEY_CREATION_FAILED",{originalMessage:M.message}):new qw("KEY_CREATION_FAILED"),_.$W(h),h;}h[1]=Z}},s_M=function(h,E){E=E===void 0?0:E;
h=h.cacheMap[E];if(!h)throw E=new qw("INVALID_ENCODER_VERSION",{encoderVersion:E}),_.$W(E),E;return h};var Nw=function(h,E){_.wO.call(this);this.token=h;this.JSC$12726_encoderRegistry=E;this.observers=[];h=new _.MN.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.tl());h.onmessage=this.handleMessage.bind(this);this.channel=h};
_.f(Nw,_.wO);_.SD=function(h,E,g){var Z,M,W,z;return _.a(function(c){if(c.nextAddress==1)return c.yield(wkd(h.token),2);if(c.nextAddress!=3)return Z=c.yieldResult,c.yield(_.ht(Z,["EntityStore","EntityAssociationStore"],E,function(I){M=new YVf(I,h.JSC$12726_encoderRegistry);return g(M)}),3);
W=c.yieldResult;M&&(z=M.changedKeys,Object.keys(z).length>0&&(h.channel.postMessage(z),u_D(h,z)));return c.return(W)})};
Nw.prototype.observe=function(h){var E=this;this.observers.push(h);return function(){var g=E.observers.indexOf(h);g>=0&&E.observers.splice(g,1)}};
var qnM=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(_.SD(h,{mode:"readonly",enableRetries:!0},function(Z){return Z.JSC$12712_wrapped.objectStore("EntityStore").getAll()}),2);
E=g.yieldResult;return g.return(Promise.all(E.filter(function(Z){return!!Z}).map(function(Z){var M,W;
return _.a(function(z){if(z.nextAddress==1){M=Z.key;W=Z.entityType;var c=z.yield;var I=X0D(s_M(h.JSC$12726_encoderRegistry,Z.version),Z.data,Z.key);return c.call(z,I,2)}return z.return({key:M,entityType:W,data:z.yieldResult})})})))})};
Nw.prototype.handleMessage=function(h){u_D(this,h.data)};
var u_D=function(h,E){h=_.G(h.observers);for(var g=h.next();!g.done;g=h.next())g=g.value,g(E)};
Nw.prototype.disposeInternal=function(){this.channel.close()};
var ncx;var ZI,hWf,Is$;ZI={};_.Q_l=(ZI.mainVideoEntity="mainVideoEntityActionMetadata",ZI.mainPlaylistEntity="mainPlaylistEntityActionMetadata",ZI.musicTrack="musicTrackEntityActionMetadata",ZI.musicPlaylist="musicPlaylistEntityActionMetadata",ZI);hWf=new _.Ps("DOWNLOADS_ENTITY_TYPE_MAP");_.$8=_.jD("","downloadsPageViewConfigurationEntity");Is$=_.jD("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.ymN=_.jD("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.jD("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.jD("SMART_DOWNLOADS_ENABLED","settingEntity");_.jD("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var QRV=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var pt$=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.E_F={isLeaderTab:!0};var m8d={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var MP=window,bV=MP.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",rc$=MP.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||uV,OS4=MP.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||dH,Tpf=MP.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||AWC,yWH=MP.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||GlD,CWM=MP.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||I6M;var lIu;gN({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 QSO=nmz(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(h){return h}}}),hQO=nmz(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(h){return h}}}),VnN=new Map;var ElM=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],TW$;var g_C=function(h){return _.RY({type:"SET_EPHEMERAL_ACTION",payload:h})};_.Z7F={ephemeralAction:null};var MBD=function(h){return _.RY({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:h})};_.WRl={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var ZJN={sharedUi:function(h,E){h=h===void 0?_.WRl:h;switch(E.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},h,{animatedThumbnailEnabled:E.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},h,{inlinePreviewEnabled:E.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},h,{currentPageType:E.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},h,{currentPageSubType:E.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
h,{persistentPanelVisible:E.payload});default:return h}},
a11y:fQ({ephemeralAction:function(h,E){h=h===void 0?_.Z7F.ephemeralAction:h;switch(E.type){case "SET_EPHEMERAL_ACTION":return E.payload;default:return h}}}),
entities:fLV};_.Grz={playlistId:"",inviteLinkURL:""};_.pvA={continuationCommand:{}};var LaO=fQ({continuationCommand:function(h,E){h=h===void 0?_.pvA.continuationCommand:h;switch(E.type){case "SET_CONTINUATION_COMMAND":return E.payload.continuationCommand;default:return h}}});_.aXW={currentFormId:"",commandsMap:{}};var jUq=fQ({isLeaderTab:function(h,E){h=h===void 0?_.E_F.isLeaderTab:h;switch(E.type){case "SET_IS_LEADER_TAB":var g,Z;return(Z=E==null?void 0:(g=E.payload)==null?void 0:g.isLeaderTab)!=null?Z:h;default:return h}}});var zWl;_.GUl=function(h){return _.RY({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:h}})};
zWl=function(h){return _.RY({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:h}})};_.WZ={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var gKd=fQ({isDesktopSmallWidth:function(h,E){h=h===void 0?_.WZ.isDesktopSmallWidth:h;switch(E.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return E.payload.isDesktopSmallWidth;default:return h}},
isShortsActive:function(h,E){h=h===void 0?_.WZ.isShortsActive:h;switch(E.type){case "SET_IS_SHORTS_ACTIVE":return E.payload.isShortsActive;default:return h}},
isWatchWhileMode:function(h,E){h=h===void 0?_.WZ.isWatchWhileMode:h;switch(E.type){case "SET_IS_WATCH_WHILE_MODE":return E.payload.isWatchWhileMode;default:return h}},
playerState:function(h,E){h=h===void 0?_.WZ.playerState:h;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return h}},
isFullscreen:function(h,E){h=h===void 0?_.WZ.isFullscreen:h;switch(E.type){case "SET_IS_FULLSCREEN":return E.payload.isFullscreen;default:return h}},
isSmallScreenSqueezeback:function(h,E){h=h===void 0?_.WZ.isSmallScreenSqueezeback:h;switch(E.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return E.payload.isSmallScreenSqueezeback;default:return h}},
isShortsPipActive:function(h,E){h=h===void 0?_.WZ.isShortsPipActive:h;switch(E.type){case "SET_IS_SHORTS_PIP_ACTIVE":return E.payload.isShortsPipActive;default:return h}},
isPlaybackStarted:function(h,E){h=h===void 0?_.WZ.isPlaybackStarted:h;switch(E.type){case "SET_IS_PLAYBACK_STARTED":return E.payload.isPlaybackStarted;default:return h}}});_.i6z={currentMode:"canvas-hidden"};var Wld=function(){return function(h){return function(E){var g=h(E);_.BX(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[E],!0);return g}}};var akB,Bmx;akB=new _.dN;_.IJ=new _.Ps("WATCH_PLAYER_PROMISE_TOKEN");_.c$D=new _.dN;_.i7m=new _.Ps("SHORTS_PLAYER_PROMISE_TOKEN");Bmx=new _.Ps("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var pBO=function(){return function(h){return function(E){E.type==="ENTITY_LOADED"&&_.GF().resolve(_.IJ).then(function(g){var Z;(Z=g.dispatchReduxAction)==null||Z.call(g,E)});
return h(E)}}};_.o_C={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var b6a=fQ({additionalContext:function(h,E){h=h===void 0?_.o_C.additionalContext:h;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var g;return(g=E.payload)!=null?g:"";default:return h}},
impersonatedChannelUrl:function(h,E){h=h===void 0?_.o_C.impersonatedChannelUrl:h;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var g;return(g=E.payload)!=null?g:"";default:return h}},
selectedVideoIds:function(h,E){h=h===void 0?_.o_C.selectedVideoIds:h;switch(E.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var g={};return Object.assign({},h,(g[E.payload]=!0,g));case "VIDEO_UNSELECTED":return E=E.payload,h=Object.assign({},h),delete h[E],h;default:return h}}});_.IkM={parentClickTrackingParams:""};var uda=fQ({parentClickTrackingParams:function(h,E){h=h===void 0?_.IkM.parentClickTrackingParams:h;switch(E.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return E.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return h}}});var RWB=function(h){return _.RY({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:h})};_.P5l={stepStates:{}};var QUa=fQ({stepStates:function(h,E){h=h===void 0?_.P5l.stepStates:h;switch(E.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var g=h,Z=E.payload,M,W,z;h={};E={selectionStates:Object.assign({},(z=(M=g[Z.stepId])==null?void 0:M.selectionStates)!=null?z:{},(h[Z.token]={isSelected:Z.isSelected},h)),userQuery:(W=g[Z.stepId])==null?void 0:W.userQuery};M={};return Object.assign({},g,(M[Z.stepId]=E,M));case "TALK_TO_RECS_UPDATE_USER_QUERY":return M=h,W=E.payload,
z={selectionStates:Object.assign({},(Z=(g=M[W.stepId])==null?void 0:g.selectionStates)!=null?Z:{}),userQuery:{userQuery:W.userQuery,token:W.userQueryToken}},g={},Object.assign({},M,(g[W.stepId]=z,g));default:return h}}});var BsD,Uxk,j0l;BsD=function(h){return _.RY({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:h})};
Uxk=function(h){return _.RY({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:h})};
_.wE=function(h){return _.RY({type:"SET_CURRENT_PAGE_TYPE",payload:h})};
_.LRM=function(h){return _.RY({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:h})};
j0l=function(h){return _.RY({type:"SET_CHIP_BAR_IS_STICKY",payload:h})};_.IXz={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"};_.dxA=function(h){return _.RY({type:"SET_PLAYER_STATE",payload:{playerState:h}})};_.pS={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:PkW(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var h_O=fQ({isTheaterMode:function(h,E){h=h===void 0?PkW():h;switch(E.type){case "SET_IS_THEATER_MODE":return E.payload.isTheaterMode;default:return h}},
isWatchActive:function(h,E){h=h===void 0?_.pS.isWatchActive:h;switch(E.type){case "SET_IS_WATCH_ACTIVE":return E.payload.isWatchActive;default:return h}},
isLearningJourneyActive:function(h,E){h=h===void 0?_.pS.isLearningJourneyActive:h;switch(E.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return E.payload.isLearningJourneyActive;default:return h}},
isWatchFullscreen:function(h,E){h=h===void 0?_.pS.isWatchFullscreen:h;switch(E.type){case "SET_IS_WATCH_FULLSCREEN":return E.payload.isWatchFullscreen;default:return h}},
isWatchNarrowWidth:function(h,E){h=h===void 0?_.pS.isWatchNarrowWidth:h;switch(E.type){case "SET_IS_WATCH_NARROW_WIDTH":return E.payload.isWatchNarrowWidth;default:return h}},
isWatchRetroMode:function(h,E){h=h===void 0?_.pS.isWatchRetroMode:h;switch(E.type){case "SET_IS_WATCH_RETRO_MODE":return E.payload.isWatchRetroMode;default:return h}},
isLiveChatCollapsed:function(h,E){h=h===void 0?_.pS.isLiveChatCollapsed:h;switch(E.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return E.payload.isLiveChatCollapsed;default:return h}},
openEngagementPanels:function(h,E){h=h===void 0?_.pS.openEngagementPanels:h;var g=[].concat(_.$E(h));switch(E.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return g.push(E.payload.panelToAdd),g;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return g.splice(g.indexOf(E.payload.panelToRemove),1),g;default:return h}},
playerState:function(h,E){h=h===void 0?_.pS.playerState:h;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return h}},
watchScrollTop:function(h,E){h=h===void 0?_.pS.watchScrollTop:h;switch(E.type){case "SET_WATCH_SCROLL_TOP":return E.payload.watchScrollTop;default:return h}},
watchWindowSize:function(h,E){h=h===void 0?_.pS.watchWindowSize:h;switch(E.type){case "SET_WATCH_WINDOW_SIZE":return E.payload.watchWindowSize;default:return h}}});_.C5B={surveyFeedbackData:{feedbackTokens:[]}};var EKW=fQ({surveyFeedbackData:function(h,E){h=h===void 0?_.C5B.surveyFeedbackData:h;switch(E.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return E.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},h,E.payload);default:return h}}});_.BKW={};var z_d=void 0;_.J("web_enable_redux_store_on_demand")||(z_d=GAZ());var J$F=function(h,E,g){var Z=this;this.listId=h;this.JSC$12869_updateCallback=E;this.isOfflineVideoCallback=g;_.Gv().subscribe(function(){Z.handleUpdate()})};
J$F.prototype.getPlaylistData=function(){var h=_.Gv().getState().entities;if(this.listId&&this.listId!=="PPSV"){var E=et$(h,this.listId,!0),g=_.jD(this.listId,"mainPlaylistEntity"),Z,M;h=h==null?void 0:(Z=h.mainPlaylistEntity)==null?void 0:(M=Z[g])==null?void 0:M.title;return a7d(E,h,this.listId)}E=_.GhN(QxV(h));h=_.GhN(_.Ke(h));h=E.concat(h);return a7d(h)};
J$F.prototype.getPlaylistId=function(){return this.listId};
J$F.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12869_updateCallback(this.listId,this.getPlaylistData(),{})};var GV=function(h,E,g,Z){Z=Z===void 0?[]:Z;this.JSC$12872_playlistNetworkManager=h;this.listId=E;this.JSC$12872_updateCallback=g;this.videoIds=Z;this.pendingUpdates=[];this.currentIndex=0};
GV.prototype.JSC$12872_setCurrentIndex=function(h){this.currentIndex=h};
GV.prototype.setListId=function(h){this.listId=h};
var eWD=function(h,E){h.currentCreateRequest&&h.currentCreateRequest.cancel(E);h.currentUpdateRequest&&h.currentUpdateRequest.cancel(E);h.currentRefreshRequest&&h.currentRefreshRequest.cancel(E)};
GV.prototype.delete=function(){eWD(this,"PROXY DELETED")};
GV.prototype.addVideos=function(h,E,g){var Z=this;g!==void 0?this.videoIds.splice.apply(this.videoIds,[g,0].concat(_.$E(h))):this.videoIds.push.apply(this.videoIds,_.$E(h));this.listId||this.currentCreateRequest?(h.forEach(function(M,W){M={addedVideoId:M,action:"ACTION_ADD_VIDEO"};g&&(M.addedVideoPosition=g+W);Z.pendingUpdates.push(M)}),zV(this)):qbm(this,E.onCreateListCommand)};
var fkD=function(h,E,g,Z,M){waZ(h.videoIds,E,g);E>h.currentIndex&&g<=h.currentIndex?h.JSC$12872_setCurrentIndex(h.currentIndex+1):E===h.currentIndex?h.JSC$12872_setCurrentIndex(g):E<h.currentIndex&&g>=h.currentIndex&&h.JSC$12872_setCurrentIndex(h.currentIndex-1);h.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:Z,movedSetVideoIdPredecessor:M});zV(h)},qbm=function(h,E){eWD(h,"OBSOLETE");
h.currentCreateRequest=Nsf(h.JSC$12872_playlistNetworkManager,E,h.videoIds);_.KA(h.currentCreateRequest,function(){h.currentCreateRequest=void 0}).then(function(g){h.setListId(g.playlistId);
h.pendingUpdates.length>0?zV(h):tBB(h)})},zV=function(h){if(h.pendingUpdates.length!==0&&(h.currentRefreshRequest&&h.currentRefreshRequest.cancel("OBSOLETE"),!h.currentUpdateRequest&&!h.currentCreateRequest)){var E=h.pendingUpdates.splice(0,h.pendingUpdates.length);
h.currentUpdateRequest=h.JSC$12872_playlistNetworkManager.updatePlaylist(h.listId,E);_.KA(h.currentUpdateRequest,function(){h.currentUpdateRequest=void 0}).then(function(){h.pendingUpdates.length>0?zV(h):tBB(h)}).thenCatch(function(){h.pendingUpdates.unshift.apply(h.pendingUpdates,_.$E(E))})}},tBB=function(h){h.currentRefreshRequest=_.Sbl(h.JSC$12872_playlistNetworkManager,h.listId,h.currentIndex,h.videoIds[h.currentIndex]);
_.KA(h.currentRefreshRequest,function(){h.currentRefreshRequest=void 0}).then(function(E){h.JSC$12872_updateCallback(E.playlistId,E.playlistPanelRenderer,E.autoplayRenderer)})};
GV.prototype.size=function(){return this.videoIds.length};var xxk=function(h,E,g,Z){Z=Z===void 0?[]:Z;GV.call(this,h,E,g,Z);this.JSC$12872_playlistNetworkManager=h;this.listId=E;this.JSC$12872_updateCallback=g;this.videoIds=Z};
_.f(xxk,GV);_.aS=function(h,E,g,Z,M,W,z){M=M===void 0?[]:M;z=z===void 0?LA:z;GV.call(this,h,E,g,M);this.JSC$12872_playlistNetworkManager=h;this.listId=E;this.JSC$12872_updateCallback=g;this.onAuthChange=Z;this.videoIds=M;this.storage=W;this.cookieReader=z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.LO(_.KP,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f(_.aS,GV);_.p=_.aS.prototype;_.p.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.LO(_.KP,this.checkLoggedInStatusChange.bind(this),1E3)};
_.p.JSC$12872_setCurrentIndex=function(h){GV.prototype.JSC$12872_setCurrentIndex.call(this,h);this.store()};
_.p.delete=function(){_.KP.cancelJob(this.queueSapisIdJob);GV.prototype.delete.call(this)};
_.p.setListId=function(h){GV.prototype.setListId.call(this,h);this.store()};
_.p.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var wvC=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Dxf=["playerResponse","videoDetails"],lkM=["response","currentVideoEndpoint","watchEndpoint","videoId"],r$l=["response","currentVideoEndpoint","watchEndpoint","playlistId"],mxk=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],v_l=["response","contents","twoColumnWatchNextResults","playlist","playlist"],H7k=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
$xC=["response","contents","twoColumnWatchNextResults"];var cZ={},R_V=(cZ.WEB_UNPLUGGED="^unplugged/",cZ.WEB_UNPLUGGED_ONBOARDING="^unplugged/",cZ.WEB_UNPLUGGED_OPS="^unplugged/",cZ.WEB_UNPLUGGED_PUBLIC="^unplugged/",cZ.WEB_CREATOR="^creator/",cZ.WEB_KIDS="^kids/",cZ.WEB_EXPERIMENTS="^experiments/",cZ.WEB_MUSIC="^music/",cZ.WEB_REMIX="^music/",cZ.WEB_MUSIC_EMBEDDED_PLAYER="^music/",cZ.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",cZ);var QF4,Nsf;QF4=function(h,E){this.networkManager=h;this.innertubeTransportService=E};
Nsf=function(h,E,g){if(!_.e(E,_.ct))return _.$B(Error("Lf"));_.e(E,_.ct).videoIds=g;g={create_playlist_title:_.NH("QUEUE",void 0,"Queue")};return oKN(_.QQ(h.innertubeTransportService,E,g),cgz)};
_.Sbl=function(h,E,g,Z){E={videoId:Z,playlistId:E,playlistIndex:g};g=_.zv($bM);return oKN(_.ic(h.innertubeTransportService,E,g),I7$)};
QF4.prototype.updatePlaylist=function(h,E){return oKN(_.QQ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:h,actions:E}}),iJW)};var KRm=function(h){this.storage=h},O7l;
KRm.prototype.store=function(h,E){E=E===void 0?0:E;if(this.storage&&h.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",h),this.storage.set("TLPQindex",String(E)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(g){}};
KRm.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
KRm.prototype.getPlaylistId=function(){if(!this.storage)return null;var h=null;try{h=this.storage.get("TLPQplaylist")}catch(E){}return h};var Ll$=["navigationEndpoint","watchEndpoint","videoId"],Uyu=["nextButtonVideo","watchEndpoint","videoId"];_.kY=new _.Ps("NETWORK_TOKEN");_.p4=new _.Ps("PAGE_TOKEN");_.oS=new _.Ps("PLAYLIST_TOKEN");var n_k;n_k=new _.Ps("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.yV=new _.Ps("INNERTUBE_TRANSPORT_TOKEN");var XvH,IS,s0B,VBk,y$k,FRA;XvH=new Set(["ci","cr","carml"]);IS=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12919_parkedJobs=new Map;this.parkedProcessors=new Map};
_.RS=function(){IS.instance||(IS.instance=new IS);return IS.instance};
IS.prototype.onAny=function(h){return _.YbM(this,h,2)};
IS.prototype.parkOrScheduleJob=function(h,E,g,Z,M){_.PZ(this,g)?_.xu().addJob(h,E,Z):(M&&(h=s0B(h),VBk(this,h,E,g,M)),M=this.JSC$12919_parkedJobs.get(g),M||(this.JSC$12919_parkedJobs.set(g,[]),M=this.JSC$12919_parkedJobs.get(g)),M.push({job:h,priority:E,delay:Z}))};
IS.prototype.addListener=function(h,E,g){g&&(E=s0B(E),VBk(this,E,0,h,g));g=this.parkedProcessors.get(h);g||(this.parkedProcessors.set(h,[]),g=this.parkedProcessors.get(h));g.push(E)};
IS.prototype.processSignal=function(h){if(!_.PZ(this,h)){this.inProgressSignals.add(h);var E=this.JSC$12919_parkedJobs.get(h);if(E){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,_.xu().addJob(g.job,g.priority,g.delay);this.JSC$12919_parkedJobs.delete(h)}if(E=this.parkedProcessors.get(h)){E=_.G(E);for(g=E.next();!g.done;g=E.next())g=g.value,g();this.parkedProcessors.delete(h)}this.signals.push(h);this.inProgressSignals.delete(h)}};
_.PZ=function(h,E){return XvH.has(E)||_.Xn("IS_HOMEPAGE_COLD")||_.Xn("IS_RESULTS_PAGE_COLD")||_.Xn("IS_WATCH_PAGE_COLD")?h.signals.indexOf(E)>=0:!0};
s0B=function(h){var E=!1;return function(){E||(E=!0,h())}};
VBk=function(h,E,g,Z,M){if(kUn.has(Z))_.xu().addJob(E,g,M);else{var W=h.compoundSignals.get(Z);W&&_.xu().addJob(function(){_.PZ(h,Z)||(W.isTimeoutConditionSatisfied?_.xu().addJob(E,g):W.timeoutConditionObservers.push(function(){_.xu().addJob(E,g)}))},g,M)}};
_.YbM=function(h,E,g){if(E.length>1){var Z=[],M=Object.create(null);E=_.G(E);for(var W=E.next();!W.done;W=E.next())W=W.value,M[W]||(Z.push(W),M[W]=!0);E=Z}if(E.length===1)return E[0];W=E;Z="";M=g===2?"|":"&";W.sort();W=_.G(W);for(var z=W.next();!z.done;z=W.next())Z+=z.value+M;if(!h.compoundSignals.get(Z)){M=0;W=[];z=_.G(E);for(var c=z.next();!c.done;c=z.next())c=c.value,M++,_.PZ(h,c)||W.push(c);(g=g===2)&&M>W.length||!g&&!W.length?h.signals.push(Z):y$k(h,Z,g,E,W)}return Z};
y$k=function(h,E,g,Z,M){var W=M.length,z=function(){g||--W===0?h.processSignal(E):FRA(h,E)};
M=_.G(M);for(var c=M.next();!c.done;c=M.next())h.addListener(c.value,z);h.compoundSignals.set(E,{signals:Z,isOnAny:g,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});FRA(h,E)};
FRA=function(h,E){if(!_.PZ(h,E)){var g=h.compoundSignals.get(E);if(g&&!g.isTimeoutConditionSatisfied){for(var Z=!1,M=0,W=0,z=_.G(g.signals),c=z.next();!c.done;c=z.next()){var I=c.value;c=!_.PZ(h,I);kUn.has(I)?Z=!0:(I=h.compoundSignals.get(I))?c&&!I.isTimeoutConditionSatisfied&&(W++,g.isInitialized||I.timeoutConditionObservers.push(function(){FRA(h,E)})):c&&M++}g.isInitialized=!0;
g.isOnAny?Z&&(g.isTimeoutConditionSatisfied=!0):M===0&&W===0&&(g.isTimeoutConditionSatisfied=!0);if(g.isTimeoutConditionSatisfied)for(g=_.G(g.timeoutConditionObservers),Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z()}}};
IS.prototype.processSignal=IS.prototype.processSignal;IS.prototype.parkOrScheduleJob=IS.prototype.parkOrScheduleJob;IS.prototype.onAny=IS.prototype.onAny;_.Wu("ytsignals.getInstance",_.RS);IS.prototype.onAny=IS.prototype.onAny;IS.prototype.parkOrScheduleJob=IS.prototype.parkOrScheduleJob;IS.prototype.processSignal=IS.prototype.processSignal;var kUn=new Set(["eop","eocs","dl","pcl"]);_.Yu=new _.Ps("MINIPLAYER_SERVICE");var BZ,A$A,TsD;BZ=function(h,E,g){var Z=_.Tq.getInstance();if(!O7l){var M=new NZM;var W=void 0,z=_.nF("ID_TOKEN");z&&M.isAvailable()&&(W=new rf(M,"yt-queue"+z));O7l=new KRm(W)}M=O7l;W=_.RS();this.JSC$12926_actionRouter=Z;this.pageManager=h;this.playlistManager=E;this.JSC$12926_playlistNetworkManager=g;this.storage=M;this.signals=W;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Uk=function(){if(!A$A){var h=_.GF(),E=h.resolve(_.pl(_.p4)),g=h.resolve(_.pl(_.kY)),Z=h.resolve(_.pl(_.oS));h=h.resolve(_.yV);A$A=new BZ(E,Z,new QF4(g,h))}return A$A};
TsD=function(h,E,g){if(g){var Z;if(((Z=h.responsePlaylistData)==null?void 0:Z.playlistId)!==g)return}h.responsePlaylistData&&(g=qEO(E,h.responsePlaylistData),h.responsePlaylistData=(0,_.Kt.unsafeClone)(h.responsePlaylistData),NP$(h.responsePlaylistData,g));g=h.temporaryItems.findIndex(function(M){return M.videoId===E});
g>-1&&h.temporaryItems.splice(g,1);_.LS(h,_.jn(h,h.response?h.response.autoplayRenderer:void 0))};
_.b7A=function(h,E){if(h.responsePlaylistData){var g=f7O(E,h.responsePlaylistData);NP$(h.responsePlaylistData,g);if(h.queueProxy){var Z=h.queueProxy;g<0||(Z.videoIds.splice(g,1),g<Z.currentIndex&&Z.JSC$12872_setCurrentIndex(Z.currentIndex-1),Z.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:E}),zV(Z))}}_.LS(h,_.jn(h,h.response?h.response.autoplayRenderer:void 0))};
BZ.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.LS(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
BZ.prototype.setPlaylistData=function(h,E,g){this.temporaryItems=[];this.listId=h;this.responsePlaylistData=E;_.LS(this,_.jn(this,g))};
var uuf=function(h){return(h==null?0:h.playlistId)?h.playlistId:"PPSV"},Q0f=function(h){return h&&h.playlistId?h.playlistId==="PPSV"?!0:C_z(_.Gv().getState().entities,h.playlistId):!1};
BZ.prototype.isPlayingOfflineVideo=function(){return this.response?Q0f(this.response):!1};
BZ.prototype.closeMiniplayer=function(h){var E=this.queueProxy&&this.queueProxy.size()<=1,g=_.GF().resolve(_.Yu);if(!this.queueProxy||E)this.queueProxy&&this.clearQueue(),g.close(!0);else{g.pipController.getWindow()&&window.focus();E=this.responsePlaylistData;var Z=this.temporaryItems.length+(E&&E.contents?E.contents.length:0);E=_.NH("QUEUE_CLEARED_UNPLURALIZED")||_.tT("QUEUE_CLEARED",Z);E=_.cp(E);g=_.NH("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");Z=_.NH("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.tT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",Z);var M=_.NH("MINIPLAYER_CLOSE",void 0,"Close"),W=_.NH("CANCEL",void 0,"Cancel");_.bQ(this.JSC$12926_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.MR(g),dialogMessages:[_.MR(Z)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MR(M),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
E]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.MR(W)}}}}}}],h)}};
_.jn=function(h,E){var g={},Z=h.response;g.autoplayRenderer=E;if(!h.responsePlaylistData&&!h.temporaryItems.length)return!Z||!Z.hasRelatedVideoData&&_.J("kevlar_prefetch_data_augments_network_data")||(g.playerData={rvs:Z.relatedVideoArgs,endScreenRenderer:Z.endScreenRenderer}),g;g.playerData={};if(h.index===void 0)return _.$W(Error("Nf")),g;g.panel=h.responsePlaylistData?(0,_.Kt.unsafeClone)(h.responsePlaylistData):{titleText:_.MR(_.NH("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
E=g.panel;if(E.contents)for(var M=_.G(h.temporaryItems),W=M.next();!W.done;W=M.next())E.contents.push({playlistPanelVideoRenderer:W.value});h.queueProxy&&Z&&Z.playingVideo&&Z.playingVideoId&&!e_4(Z.playingVideoId,g.panel)&&(E=Z.playingVideo,M=g.panel,W=h.index,M.contents&&M.contents.splice(W===void 0?0:W,0,{playlistPanelVideoRenderer:E}));Z&&Z.playingVideoId&&(E=h.index,M=g.panel,E=!M.contents||E>=M.contents.length?void 0:M.contents[E].playlistPanelVideoRenderer,E&&E.videoId===Z.playingVideoId||(E=
qEO(Z.playingVideoId,g.panel),h.index=E!==-1?E:h.index?h.index-1:0));E=Jg4(h.index+1,g.panel);M=void 0;h.index>0&&(M=Jg4(h.index-1,g.panel));if(M||E)g.autoplayRenderer=jqa(E,M,g.autoplayRenderer);!E&&(Z==null?0:Z.relatedVideoArgs)&&(g.playerData.rvs=Z.relatedVideoArgs);Z=Z?Z.playlistIndexOffset:0;h.queueProxy?xyW(g.panel,h.index,Z,Ceq,!0,!0,!0):xyW(g.panel,h.index,Z);g.playerData.playlistPanelRenderer=g.panel;return g};
BZ.prototype.openToast=function(h){_.GF().resolve(_.Yu).openToast(h,_.NH("ADDED_TO_QUEUE",void 0,"Added to queue"))};
BZ.prototype.isMiniplayerActive=function(){return _.GF().resolve(_.Yu).isMiniplayerActive()};
_.LS=function(h,E){h.playlistManager.setAutoplayRenderer(E.autoplayRenderer||null);h.playlistManager.setPlaylistData(E.panel||null);E.playerData&&h.playlistManager.setPlayerPlaybackControlData(E.playerData)};var DyM="#";var hEf={},EnM={},gnM={},ZnA={},MGf={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:(hEf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",hEf),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:(EnM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",EnM),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:(gnM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",gnM),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:(ZnA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ZnA),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 RsO=[{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:MGf},{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:MGf}}];var M3O;_.jl=[[["I3R2OGxzd3QwZHF6a2tpbmQ=","bDU2MXI5bGdodmFsdWUjOGQ4"],"M2IzcGp2MXNiQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjaHF2"]];
M3O=[[["aHByaW1hcnkjNHRxd3NhNDgyZ2I=",null,null],[null,["LXJlc3VsdHMtcmVuZGVyZXIjYmYwbzY2YjB5cHoyeXRkLXR3by1jb2x1bW4tYnJvd3Nl","bW9icHRsdXIyc3R5bGUtc2NvcGUjdnow"],null],["bXVmZnMzaGJ4bWFzdGhlYWQtYWQjYWll",["cmo3OGcxZmdwOW95dGQtcmljaC1ncmlkLXJlbmRlcmVyI2U="],null],[null,["d2U3dTE1eDQ4ODR5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2c=","eW01bXp2dXp3c3R5bGUtc2NvcGUjdXUy"],null],[null,["ZW1kbGh5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI2Q4emw3OGI=","cGV0dXk2cXF3c3R5bGUtc2NvcGUjbDNn"],null],[null,["ZXIjZTM2MjM2dGFlc3VzeXRkLWFkLXNsb3QtcmVuZGVy"],
null]],[["YjZlbTlmbmQ2bTI2cGxheWVyLWFkcyM=",null,null]]];_.Lm=["YmFsQ2FsbGJhY2tzIzRpbW1ranA2NTBvZ2dsbw==","I25tMHp5bmMyc3kxNG9uQWJub3JtYWxpdHlEZXRlY3RlZA==","ZFNraXAjZzZvOXRsb3hpM3lwb25B","b25zZSM0bmVldnFkYXM1YWtyYXdfcGxheWVyX3Jlc3A=","NWFkU2xvdHMjYzA0OXExcmV5MDM="];_.dW="YmFsQ2FsbGJhY2tzIzRpbW1ranA2NTBvZ2dsbw== I25tMHp5bmMyc3kxNG9uQWJub3JtYWxpdHlEZXRlY3RlZA== ZFNraXAjZzZvOXRsb3hpM3lwb25B b25zZSM0bmVldnFkYXM1YWtyYXdfcGxheWVyX3Jlc3A= ZXVlX211bHRpcGxlX3NraXBzX2tzIzJyNGE1OW51dXl4d2ViX3BsYXlsaXN0X3F1 c2FfZWYjOGZyYml6ZHJ1MGQ2YWJf NWFkU2xvdHMjYzA0OXExcmV5MDM=".split(" ");var CS;CS=function(h,E,g){this.nPT=h;this.isAsync=E;this.vlX=g};
_.NMq=[new CS("b.f_",!1,0),new CS("j.s_",!1,2),new CS("r.s_",!1,4),new CS("e.h_",!1,6),new CS("i.s_",!0,8),new CS("s.t_",!1,10),new CS("p.h_",!1,12),new CS("s.i_",!1,14),new CS("f.i_",!1,16),new CS("a.b_",!1,18),new CS("a.o_",!1),new CS("g.o_",!1,22),new CS("p.i_",!1,24),new CS("p.m_",!1),new CS("n.k_",!0,20),new CS("i.f_",!1),new CS("a.s_",!0),new CS("m.c_",!1),new CS("n.h_",!1,26),new CS("o.p_",!1),new CS("m.p_",!0,28),new CS("o.a_",!1),new CS("d.p_",!1),new CS("e.i_",!1)].reduce(function(h,E){h[E.nPT]=
E;return h},{});var WSm=function(){};
WSm.prototype.flush=function(h,E){h=h===void 0?[]:h;E=E===void 0?!1:E;if(_.J("enable_client_streamz_web")){h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=chn(g.value),this.rootSpec&&_.fM(g,2,this.rootSpec),g={serializedIncrementBatch:_.lJ(g.JSC$9608_serializeBinary())},_.vT("streamzIncremented",g,{sendIsolatedPayload:E})}};
var HJa=function(){};
_.f(HJa,WSm);var peF=function(h){var E=new ZXC;var g=new hLM;g=_.ln(g,1,"botguard");h=_.ln(g,2,h);this.rootSpec=_.No(E,1,MKk,h)};
_.f(peF,WSm);var Pp,GxD=new Map;var zsz,KlM,FlO,XB4,VRx,ga$,cS$,hs4;zsz=2;KlM=2;FlO=2;XB4=2;VRx=2;ga$=2;cS$=2;hs4=new MAH;var aFf,cul,inD;aFf=function(){this.ongoingFlowNonces=new Map};
_.el=function(){cul||(cul=new aFf);return cul};
_.Cm=function(h,E,g){return{eventType:{flowEventNamespace:h,flowEventType:E},metadata:g,statusCode:void 0,csn:void 0,can:void 0}};
_.S3z=function(h,E){var g=_.el(),Z=inD(g,E,!0);_.Jk(g,h,E,Z)};
_.Jk=function(h,E,g,Z){h={flowNonce:Z||inD(h,g),flowType:g,flowEventType:E.eventType};E.metadata&&(h.flowMetadata=E.metadata);E.statusCode!==void 0&&(h.flowEventStatus=E.statusCode);E.csn&&(h.csn=E.csn);E.can&&(h.can=E.can);_.vT("flowEvent",h,void 0)};
inD=function(h,E,g){g=g===void 0?!1:g;var Z=h.ongoingFlowNonces.get(E);if(!Z||g)Z=nQ(16),h.ongoingFlowNonces.set(E,Z);return Z};_.onB=new Zwf;var rSz={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",COMPANION_SURFACE:"companion_surface"};var Jc=function(h,E,g,Z,M,W,z){g=g===void 0?!1:g;Z=Z===void 0?!1:Z;W=W===void 0?_.Uk():W;this.hasRun=!1;this.zQS=h;this.p2c=E;this.bQU=g;this.fromHistory=Z;this.previousVideoId=M;this.hve=W;this.tempData=z;this.zvY=new _.WEA};
_.f(Jc,fC);Jc.prototype.validate=function(h){return!(!h.data.playerResponse||h.data.page!=="watch"&&h.data.page!=="learning_journey_watch"&&h.data.page!=="shorts"||this.hasRun)};
Jc.prototype.handle=function(h){var E=this,g=_.e(h.endpoint,_.MH),Z=_.e(h.endpoint,_.D9);if(_.J("kevlar_continue_playback_without_player_response")&&(g==null?0:g.videoId)&&this.previousVideoId&&(g==null?void 0:g.videoId)===this.previousVideoId&&(g==null?0:g.continuePlayback)&&!this.fromHistory)this.zQS.resolve();else{var M={};g?M.watch_endpoint=g:Z&&(M.watch_endpoint=Z,Z.endTimeSeconds&&(M.end=Z.endTimeSeconds));h.data.page==="watch"?(h.data.filler||this.bQU||(_.Vp("cfg"),_.Tq.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(M,IFD(this,h.endpoint)),_.J("enable_masthead_quartile_ping_fix")&&Object.assign(M,REn(this)),Object.assign(M,void 0),h.data.forceExternalPlaylist&&(M.external_list=!0)):h.data.page==="shorts"?_.Tq.getInstance().triggerAction("yt-start-loading-shorts"):h.data.page==="learning_journey_watch"&&_.Tq.getInstance().triggerAction("yt-start-loading-learning-journey");if(g=this.p2c()){try{g.loadVideoWithPlayerResponse(h.data.playerResponse,M),g.getPlayerPromise().then(this.zQS.resolve)}catch(W){_.$W(W),
this.zQS.resolve()}this.hasRun=!0;g.getPlayerPromise().then(function(W){W.addEventListener("onAbnormalityDetected",function(){var z=h.data.playerResponse,c=W.getVideoData().cpn;cS$=0;_.zEf=c;if(c=fwx(z))E.zvY.increment("IN_PLAYER"),_.qR(5),_.J("ab_st_vid_ks")?W.pauseVideo(!0):W.stopVideo(),z.playabilityStatus=Object.assign({},z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:c}}),z.videoDetails=void 0,_.Tq.getInstance().triggerOptionalAction("yt-updated-playability-status",
z.playabilityStatus)})})}else _.O$(Error("Qf"))}};
var IFD=function(h,E){var g=_.e(E,_.MH);if(E&&g&&g.playlistId&&g.videoId&&(h=h.hve,h.queueProxy?(h=h.queueProxy,g=h.listId===g.playlistId?h.attributionData.get(g.videoId):void 0):g=void 0,g))return{queue_info:g}},REn=function(h){var E;
if((E=h.tempData)==null?0:E.adpings)return{adpings:h.tempData.adpings}};var en=function(h,E,g){this.hasRun=!1;this.f50=h;this.iti=E;this.sXa=g};
_.f(en,fC);en.prototype.validate=function(h){return!!_.Kt.getValueByKeys.apply(null,[h.data].concat(_.$E($xC)))};
en.prototype.handle=function(h){var E=this;this.f50.promise.then(function(){var g=h.data;var Z=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(wvC))),M=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(v_l))),W=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(lkM)));var z=(z=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(Dxf))))?{videoId:z.videoId,thumbnail:z.thumbnail,title:z.title?_.MR(z.title):void 0,shortBylineText:z.author?_.MR(z.author):void 0}:void 0;var c=void 0;_.J("web_get_playlist_id_from_current_endpoint_ks")||
(c=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(r$l))));var I=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(H7k))),B=_.Kt.getValueByKeys.apply(null,[g].concat(_.$E(mxk))),U=!!I||!!B&&!!B.results&&B.results.length>0,L=0;M&&M.currentIndex&&M.localCurrentIndex&&(L=M.currentIndex-M.localCurrentIndex);M&&M.playlistId&&(c=M.playlistId);g={rawResponse:g,autoplayRenderer:Z,hasRelatedVideoData:U,playingVideo:z,playingVideoId:W,playlistPanelRenderer:M,playlistId:c,playlistIndex:M&&M.currentIndex,relatedVideoArgs:I,
endScreenRenderer:B,playlistIndexOffset:L};a:{Z=E.sXa;M=E.iti;Z.response=g;if(Q0f(g))Z.downloadPlaylistProxy&&Z.downloadPlaylistProxy.getPlaylistId()===uuf(g)||(Z.downloadPlaylistProxy=new J$F(uuf(g),Z.setPlaylistData.bind(Z),Z.isPlayingOfflineVideo.bind(Z))),Z.responsePlaylistData=Z.downloadPlaylistProxy.getPlaylistData(),Z.listId=uuf(g),Z.index=0;else if(g.playlistPanelRenderer&&g.playlistId&&g.autoplayRenderer)g.playlistId.startsWith("TLPQ")?Z.queueProxy?Z.listId===g.playlistId?(Z.index=g.playlistIndex,
Z.responsePlaylistData=g.playlistPanelRenderer,Z.queueProxy.JSC$12872_setCurrentIndex(Z.index)):g.playingVideoId&&Z.index!==void 0&&M.clientParams.autoSaveToQueue&&(Z.index+=1,Z.queueProxy.JSC$12872_setCurrentIndex(Z.index),Z.queueProxy.addVideos([g.playingVideoId],{},Z.index)):(Z.queueProxy=new _.aS(Z.JSC$12926_playlistNetworkManager,g.playlistId,Z.setPlaylistData.bind(Z),Z.clearQueue.bind(Z),_.tRu(g.playlistPanelRenderer),Z.storage),Z.responsePlaylistData=g.playlistPanelRenderer,Z.listId=g.playlistId,
Z.index=g.playlistIndex):(Z.index=g.playlistIndex,Z.listId!==g.playlistId&&Z.clearQueue(),Z.responsePlaylistData=g.playlistPanelRenderer,Z.listId=g.playlistId,Z.playlistProxy=new xxk(Z.JSC$12926_playlistNetworkManager,g.playlistId,Z.setPlaylistData.bind(Z),_.tRu(g.playlistPanelRenderer)));else if(!Z.queueProxy)Z.responsePlaylistData=void 0;else if(g.playingVideoId&&M.clientParams.autoSaveToQueue){if(Z.index===void 0){_.$W(Error("Mf"));Z.clearQueue();break a}Z.queueProxy.videoIds.includes(g.playingVideoId)||
(Z.index+=1,Z.queueProxy.JSC$12872_setCurrentIndex(Z.index),Z.queueProxy.addVideos([g.playingVideoId],{},Z.index))}_.LS(Z,_.jn(Z,Z.response.autoplayRenderer))}})};var P7D=function(h,E){E=E===void 0?_.Uk():E;nC.call(this);this.xN.push(new en(this.fG,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E));this.xN.push(new Jc(this.fG,h,!1,!1));_.J("web_response_commands_chunk_processor")&&this.xN.push(new X2)};
_.f(P7D,nC);P7D.prototype.processChunk=function(h){h&&h.data.player===void 0&&this.fG.resolve();nC.prototype.processChunk.call(this,h)};var qP=function(h,E){h=h===void 0?{layer:0}:h;this.hasRun=!1;this.createScreenConfig=h;this.qaE=E};
_.f(qP,fC);qP.prototype.validate=function(h){return!(this.hasRun||!h.endpoint)};
qP.prototype.handle=function(h){var E=_.SQ(),g,Z,M=(Z=_.e((g=h.endpoint)==null?void 0:g.commandMetadata,_.qH))==null?void 0:Z.rootVe;this.qaE&&M?_.mw(E,M,this.qaE,this.createScreenConfig):MVC(E,h.endpoint,this.createScreenConfig);this.hasRun=!0};var fS=function(h,E){this.hasRun=!1;this.evw=h;this.previousVideoId=E};
_.f(fS,fC);fS.prototype.validate=function(h){return _.J("kevlar_continue_playback_without_player_response")&&(h=_.e(h.endpoint,_.MH),(h==null?0:h.videoId)&&this.previousVideoId&&(h==null?void 0:h.videoId)===this.previousVideoId&&(h==null?0:h.continuePlayback))?!1:this.evw.lL7===0};
fS.prototype.handle=function(h){_.Tq.getInstance().triggerAction("yt-stop-old-player",h.data,!0)};var Bwm=function(h){h=h===void 0?{layer:0}:h;nC.call(this);this.xN.push(new fS(this));this.xN.push(new qP(h));this.xN.push(new OU(h))};
_.f(Bwm,nC);var NP=function(){fC.apply(this,arguments)};
_.f(NP,fC);NP.prototype.validate=function(h){return!!h.data.preconnect};
NP.prototype.handle=function(h){_.s7("bc");h=_.G(h.data.preconnect);for(var E=h.next();!E.done;E=h.next())E=E.value,(new Image).src=E};var U1A=function(h,E,g,Z,M,W,z){g=g===void 0?{layer:0}:g;W=W===void 0?_.Uk():W;nC.call(this);if(Z)if(M){M=W;this.xN.push(new en(this.fG,E,M));this.xN.push(new NP);var c,I;this.xN.push(new Jc(this.fG,h,!1,!((c=E.clientParams)==null||!c.fromHistory),(I=E.clientParams)==null?void 0:I.previousVideoId,M,E.tempData));var B;this.xN.push(new fS(this,(B=E.clientParams)==null?void 0:B.previousVideoId));var U;(U=E.clientParams)!=null&&U.fromHistory||(g.layer||(g=Object.assign({},g,{layer:0})),this.xN.push(new qP(g,
z)),this.xN.push(new OU(g)))}else this.xN.push(new en(this.fG,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},W)),this.xN.push(new Jc(this.fG,h,!1,!1));else this.xN.push(new fS(this)),this.xN.push(new qP(g)),this.xN.push(new OU(g));_.J("web_response_commands_chunk_processor")&&Z&&this.xN.push(new X2)};
_.f(U1A,nC);U1A.prototype.processChunk=function(h){h&&h.data.player===void 0&&this.fG.resolve();nC.prototype.processChunk.call(this,h)};var LSl=function(){this.hasRun=this.hasRun=!1};
_.f(LSl,fC);LSl.prototype.validate=function(h){return!this.hasRun&&!(!h.data.csn||!h.data.rootVe)};
LSl.prototype.handle=function(h){this.hasRun=!0;_.kN(h.data.csn,h.data.rootVe,3)};var jyf=function(h,E,g){g=g===void 0?{layer:0}:g;nC.call(this);this.xN.push(new Jc(this.fG,h));this.xN.push(new qP(g));this.xN.push(new OU(g))};
_.f(jyf,nC);var d1M=function(h,E,g,Z,M){g=g===void 0?{layer:0}:g;Z=Z===void 0?_.Uk():Z;nC.call(this);var W=!!E&&!!E.clientParams&&!!E.clientParams.miniplayer;W&&this.xN.push(new LSl);this.xN.push(new en(this.fG,E,Z));this.xN.push(new NP);var z,c;this.xN.push(new Jc(this.fG,h,W,!((z=E.clientParams)==null||!z.fromHistory),(c=E.clientParams)==null?void 0:c.previousVideoId,Z,E.tempData));var I;this.xN.push(new fS(this,(I=E.clientParams)==null?void 0:I.previousVideoId));var B;(B=E.clientParams)!=null&&B.fromHistory||
(g.layer||(g=Object.assign({},g,{layer:W?3:0})),this.xN.push(new qP(g,M)),this.xN.push(new OU(g)));_.J("web_response_commands_chunk_processor")&&this.xN.push(new X2)};
_.f(d1M,nC);var tc,eEA;tc={};
_.C7H=(tc["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},tc["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},tc["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},tc["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tc["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tc["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},tc["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},tc);_.Sn=new _.sY("yt-edu");_.Jul=function(){this.JSC$13024_eduDisplayedThisLoad_={}};
eEA=function(h){var E=_.Jul.getInstance();var g=_.cx("kevlar_tooltip_impression_cap");E=g&&parseInt(_.Sn.get(h+"-impression")||0,10)>=g||_.Sn.get(h+"-dismissed")?!1:(g=_.C7H[h])&&!E.JSC$13024_eduDisplayedThisLoad_[g.setKey||h]&&(g.titleText&&_.NH(g.titleText)||g.bodyText&&_.NH(g.bodyText))?!0:!1;if(!E)return null;E=_.C7H[h];if(!E)return null;g=E.bodyText?_.NH(E.bodyText):void 0;var Z=E.titleText?_.NH(E.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:E.position,popup:{bubbleHintRenderer:{text:Z?
_.MR(Z):void 0,detailsText:g?_.MR(g):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.MR(_.NH("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:h}}]}}}}}}}},{eduImpressionAction:{key:h}}]};
_.GZ(_.Jul);var x9x=!1;for(var qyk="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),fFA=[],xm=6;xm>=1;xm--)fFA.push({columnCount:xm,query:xm==1?0:xm*2*107-4+32,className:"grid-"+xm+"-columns",width:xm*2*107+"px"});_.tGD=function(h){this.actionRouter_=h=h===void 0?_.Tq.getInstance():h;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Nwk(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Nwk=function(h){var E=h.miniGuideVisible_?72:0,g=h.documentWidth_-(h.guidePersistentAndVisible_?240:E);return fFA.find(function(Z){return g>Z.query})};
_.GZ(_.tGD);var SyB=function(){var h=this;this.JSC$13036_keyboardInUse=!1;document.addEventListener("keydown",function(){h.onKeydown()});
document.addEventListener("mousedown",function(){h.JSC$13036_keyboardInUse=!1})},x1F;
SyB.prototype.isKeyBoardInUse=function(){return this.JSC$13036_keyboardInUse};
SyB.prototype.onKeydown=function(){this.JSC$13036_keyboardInUse=!0};var weF,lc;_.wW=new _.sY("yt-mentions");_.DI=function(){};
weF=function(h,E){return lc(E,"drag-to-reorder-edu-displayed")};
lc=function(h,E,g,Z,M,W){g=g===void 0?"OPEN_POPUP_POSITION_TOP":g;if(E){if(_.wW.get(E))return;_.wW.set(E,!0,Z)}if(M&&W!==void 0){E=Number(_.wW.get(M)||0);if(E>=W)return;_.wW.set(M,E+1)}return[{openPopupAction:{popupType:"HINT",position:g,popup:{bubbleHintRenderer:{detailsText:h,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.GZ(_.DI);var D1D,lFk,ruA;D1D=function(h,E,g,Z){this.JSC$13046_taskManager_=h;this.onFulfilled_=typeof E==="function"?E:null;this.onRejected_=typeof g==="function"?g:null;this.JSC$13046_context_=Z};
lFk=function(h,E){h.onFulfilled_&&_.lv(h.JSC$13046_taskManager_,function(){h.onFulfilled_.call(h.JSC$13046_context_,E)})};
ruA=function(h,E){h.onRejected_&&_.lv(h.JSC$13046_taskManager_,function(){h.onRejected_.call(h.JSC$13046_context_,E)})};
_.rW=function(h){this.JSC$13049_taskManager_=h;this.callbacks_=[]};
_.rW.prototype.then=function(h,E,g){this.callbacks_.push(new D1D(this.JSC$13049_taskManager_,h,E,g));return this};
_.rW.prototype.onSuccess=function(h){this.callbacks_.forEach(function(E){lFk(E,h)})};
_.rW.prototype.onFailure=function(h){this.callbacks_.forEach(function(E){ruA(E,h)})};
_.rW.prototype.cancel=function(){this.callbacks_.length=0};
IbD(_.rW);_.va$=null;_.DC=new _.Ps("ACTIVITY_TOKEN");var mu=function(h,E){this.serviceId=new IVD(h,E)};
mu.prototype.toString=function(){return this.serviceId.toString()};var m1F=function(){this.internalMap={}};
_.p=m1F.prototype;_.p.contains=function(h){return Object.prototype.hasOwnProperty.call(this.internalMap,h)};
_.p.get=function(h){if(this.contains(h))return this.internalMap[h]};
_.p.set=function(h,E){this.internalMap[h]=E};
_.p.getKeys=function(){return Object.keys(this.internalMap)};
_.p.remove=function(h){delete this.internalMap[h]};var vZ=function(){this.mappings=new m1F;this.errorCallbacks=new Set};
vZ.prototype.getModuleId=function(h){return h.serviceId.getModuleId()};
vZ.prototype.get=function(h){var E=this.mappings.get(h.toString());return vnH(this,E,h)};
vZ.prototype.getMultipleAsync=function(){var h=_.VF.apply(0,arguments),E=this,g=h.map(function(I){return E.getModuleId(I)}),Z=h.map(function(I){return E.mappings.get(I.toString())}).filter(function(I){return I});
if(Z.length===h.length)return _.dC(Z.map(function(I,B){return vnH(E,I,h[B])}));
var M=Hh().loadMultiple(g);Z=_.$D(g.map(function(I){return M[I]}));
var W=document.hidden,z=-1,c=_.cx("get_async_timeout_ms",-1);c>-1&&(z=setTimeout(function(){_.O$(new _.xX("Module timeout.",g,W,document.hidden))},c));
return _.KA(Z.then(function(){return h.map(function(I){return vnH(E,E.mappings.get(I.toString()),I)})}).thenCatch(function(I){for(var B=_.G(E.errorCallbacks),U=B.next();!U.done;U=B.next())U=U.value,U(I);
throw I;}),function(){clearTimeout(z)})};
vZ.prototype.registerService=function(h,E){this.mappings.set(h.toString(),{type:"mapping",value:E});return h};
var vnH=function(h,E,g){switch(E.type){case "mapping":return E.value;case "factory":return E=E.value(),h.mappings.set(g.toString(),{type:"mapping",value:E}),E;default:return _.Vk(E)}};
vZ.prototype.onLoadError=function(h){var E=this;this.errorCallbacks.add(h);return function(){E.errorCallbacks.delete(h)}};
_.HZ=new vZ;var nax=/^[a-zA-Z0-9_\-]{11}$/;var X_Z=_.DE(function(){var h,E;return(E=(h=window).matchMedia)==null?void 0:E.call(h,"(prefers-reduced-motion: reduce)").matches});var HnB=_.DE(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 h=_.yy("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");h||(h=_.q3("VIDEO"),_.Wu("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
h));return!!(h&&h.canPlayType&&h.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var FPa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var $m;$m=function(){this.tokenJars={};if(this.cookiesEnabled=_.Nd()){var h=_.qd.get("CONSISTENCY",void 0);h&&$1m(this,{encryptedTokenJarContents:h})}};
_.TMW=function(){$m.instance||($m.instance=new $m);return $m.instance};
$m.prototype.handleResponse=function(h,E){if(!E)throw Error("Wf");var g,Z;E=((g=E.innerTubeRequest.context)==null?void 0:(Z=g.request)==null?void 0:Z.consistencyTokenJars)||[];var M;(h=(M=h.responseContext)==null?void 0:M.consistencyTokenJar)&&this.replace(E,h)};
$m.prototype.replace=function(h,E){h=_.G(h);for(var g=h.next();!g.done;g=h.next())delete this.tokenJars[g.value.encryptedTokenJarContents];$1m(this,E)};
var $1m=function(h,E){if(E.encryptedTokenJarContents&&(h.tokenJars[E.encryptedTokenJarContents]=E,typeof E.expirationSeconds==="string")){var g=Number(E.expirationSeconds);setTimeout(function(){delete h.tokenJars[E.encryptedTokenJarContents]},g*1E3);
h.cookiesEnabled&&_.fl("CONSISTENCY",E.encryptedTokenJarContents,g,void 0,!0)}};var KSl,KS;KSl=window.location.hostname.split(".").slice(-2).join(".");_.O8=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var h=_.nF("LOCATION_PLAYABILITY_TOKEN");_.nF("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=OnD(this))&&(h=this.localStorage.get("yt-location-playability-token"));h&&(this.locationPlayabilityToken=h,this.mostRecentPosition=void 0)};
_.O8.getInstance=function(){KS=_.yy("yt.clientLocationService.instance");KS||(KS=new _.O8,_.Wu("yt.clientLocationService.instance",KS));return KS};
_.O8.prototype.setLocationOnInnerTubeContext=function(h){h.client||(h.client={});if(this.mostRecentPosition)h.client.locationInfo||(h.client.locationInfo={}),h.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),h.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),h.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),h.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)h.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.O8.prototype.handleResponse=function(h){var E;h=(E=h.responseContext)==null?void 0:E.locationPlayabilityToken;h!==void 0&&(this.locationPlayabilityToken=h,this.mostRecentPosition=void 0,_.nF("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=OnD(this))&&this.localStorage.set("yt-location-playability-token",h,15552E3):_.fl("YT_CL",JSON.stringify({loctok:h}),15552E3,KSl,!0))};
var OnD=function(h){return h.localStorage===void 0?new _.sY("yt-client-location"):h.localStorage};
_.O8.prototype.clearLocationPlayabilityToken=function(h){h==="TVHTML5"?(this.localStorage=OnD(this))&&this.localStorage.remove("yt-location-playability-token"):_.LM4("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.O8.prototype.getCurrentPositionFromGeolocation=function(){var h=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Xf"));var E=!1,g=1E4;_.nF("INNERTUBE_CLIENT_NAME")==="MWEB"&&(E=!0,g=15E3);return new Promise(function(Z,M){navigator.geolocation.getCurrentPosition(function(W){h.mostRecentPosition=W;Z(W)},function(W){M(W)},{enableHighAccuracy:E,
maximumAge:0,timeout:g})})};
_.O8.prototype.createUnpluggedLocationInfo=function(h){var E={};h=h.coords;if(h==null?0:h.latitude)E.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)E.longitudeE7=Math.floor(h.longitude*1E7);if(h==null?0:h.accuracy)E.locationRadiusMeters=Math.round(h.accuracy);return E};
_.O8.prototype.createLocationInfo=function(h){var E={};h=h.coords;if(h==null?0:h.latitude)E.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)E.longitudeE7=Math.floor(h.longitude*1E7);return E};var nnl=function(){};
_.p=nnl.prototype;
_.p.JSC$13116_getRequest=function(h,E,g){E=E===void 0?{}:E;g=g===void 0?UCD:g;var Z=E;if(this.isNavigationCommand()){var M,W=(M=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:M.url;Z=_.bVN(h.clickTrackingParams,!0,!1,W,this.JSC$13116_getClientScreen(Z))}else Z=_.bVN(h.clickTrackingParams,!1,this.includeCsn);Z={context:Z};if(M=this.getExtension(h))return this.JSC$13116_buildRequest(Z,M,E),M=this.getApiUrl(h),W=Object.assign({},{command:h},this.getRequestConfig(h,E)),Z={input:M,requestShell:gC(M),
innerTubeRequest:Z,config:W},Z.config.authStrategy?Z.config.authStrategy.identity=g:Z.config.authStrategy={identity:g},(h=this.JSC$13116_getRequestKey(h,E))&&!Z.config.requestKey&&(Z.config.requestKey=h),Z;h=new _.xX("Error: Failed to create Request from Command.",h);_.$W(h)};
_.p.getApiUrl=function(h){var E=_.zv(this.getApiPaths(h)),g;(h=(g=_.e(h.commandMetadata,_.qH))==null?void 0:g.apiUrl)&&(E=h);return LC4(Uuz(E))};
_.p.isNavigationCommand=function(){return!1};
_.p.JSC$13116_getClientScreen=function(){};
_.p.JSC$13116_getRequestKey=function(){};
_.p.getRequestConfig=function(){};
_.ze.Object.defineProperties(nnl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Ok=function(){};
_.f(Ok,nnl);Ok.prototype.JSC$13123_getStoreKey=function(){};
Ok.prototype.JSC$13116_getRequestKey=function(h,E){E=E===void 0?{}:E;return this.JSC$13123_getStoreKey(h,E)};_.nm={getLocalStorage:_.DE(function(){try{var h=new f$$;var E=h.isAvailable()?h:null}catch(g){return null}return E?new _.UH(E):null}),
getSessionStorage:_.DE(function(){var h=new NZM;return h.isAvailable()?new _.UH(h):null})};var G5=new _.Ps("ENTITY_STATE_TOKEN"),nS=new _.Ps("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Xek=XMLHttpRequest.prototype.fetch,YyA=Xek&&Xek.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!Zp?!0:!1;var Xp=function(h){this.JSC$13129_storeWithEntities=h};
_.f(Xp,Ok);_.p=Xp.prototype;_.p.getApiPaths=function(){return pPk};
_.p.getExtension=function(h){return _.e(h,_.MH)||_.e(h,_.D9)||_.e(h,ZCD)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13123_getStoreKey=function(h){if((_.J("kevlar_cache_on_ttl_player")||_.J("mweb_enable_shorts_innertube_player_prefetch")||_.J("mweb_use_new_history_manager")||_.J("web_shorts_prefetch_service_enabled"))&&(h=this.getExtension(h))&&h.videoId){var E={videoId:h.videoId};h.playlistId&&(E.playlistId=h.playlistId);h.playerParams&&(E.params=h.playerParams);return _.ZA("player",E)}};
_.p.JSC$13116_getClientScreen=function(h){var E;return((E=h.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13116_buildRequest=function(h,E,g){if(_.J("enable_interstitial_entity_check")){var Z=this.JSC$13129_storeWithEntities;if(E.videoId)for(var M=_.G(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),W=M.next();!W.done;W=M.next()){W=W.value;var z;var c=void 0,I=void 0,B=E.videoId,U=W;(z=Z)?(B=_.jD(B+U,"interstitialInteractionStateEntity"),z=(c=(I=_.Jj(z.getState().entities,"interstitialInteractionStateEntity",B))==null?void 0:I.primaryButtonClicked)!=null?c:!1):z=!1;if(z)switch(W){case "CONTENT_CHECK_REQUIRED":E.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":E.racyCheckOk=!0}}}E.videoId&&(h.videoId=E.videoId);E.playlistId&&(h.playlistId=E.playlistId);E.index!==void 0&&(h.playlistIndex=E.index+1);E.playerParams&&(h.params=E.playerParams);"startTimeSeconds"in E&&E.startTimeSeconds&&(_.J("enable_player_request_builder_start_time_floor")?h.startTimeSecs=Math.floor(E.startTimeSeconds):h.startTimeSecs=E.startTimeSeconds);g.contentPlaybackContext&&(h.playbackContext={contentPlaybackContext:g.contentPlaybackContext});g.prefetchPlaybackContext&&
(h.playbackContext=Object.assign({},h.playbackContext,{prefetchPlaybackContext:g.prefetchPlaybackContext}),h.context.request||(h.context.request={}),h.context.request.isPrefetch=!0);h.playbackContext||(h.playbackContext={});Z=HnB();h.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!Z,supportXhr:YyA};g.overrideMutedAtStart&&(h.overrideMutedAtStart=g.overrideMutedAtStart);h.racyCheckOk=!!E.racyCheckOk;h.contentCheckOk=!!E.contentCheckOk;!_.J("captions_prefs_killswitch")&&(g=(g=_.YY("yt-player-caption-language-preferences"))?
g:[],g==null?0:g.length)&&(h.captionParams={viewerSelectedCaptionLangs:g})};
_.p.getRequestConfig=function(h){h=this.JSC$13123_getStoreKey(h);var E;h&&(E={storeStrategy:{storeKey:h}});_.J("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="ps_s",E.responseTick="ps_r");return E};
Xp[R2]=[G5];var Ym=function(){};
_.f(Ym,Ok);_.p=Ym.prototype;_.p.getApiPaths=function(){return $bM};
_.p.getExtension=function(h){return _.e(h,_.MH)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13123_getStoreKey=function(h){if((h=this.getExtension(h))&&h.videoId){var E={videoId:h.videoId};h.playlistId&&(E.playlistId=h.playlistId);h.index&&(E.index=h.index);h.params&&(E.params=h.params);return _.ZA("next",E)}};
_.p.JSC$13116_getClientScreen=function(h){var E;return((E=h.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.p.JSC$13116_buildRequest=function(h,E,g){E.videoId&&(h.videoId=E.videoId);E.playlistId&&(h.playlistId=E.playlistId);E.params&&(h.params=E.params);E.index!==void 0&&(h.playlistIndex=E.index);h.racyCheckOk=!(!g.racyCheckOk&&!E.racyCheckOk);h.contentCheckOk=!!E.contentCheckOk;g.contentPlaybackContext&&(h.autonavState=g.contentPlaybackContext.autonavState,h.playbackContext={vis:g.contentPlaybackContext.vis,lactMilliseconds:g.contentPlaybackContext.lactMilliseconds});g.prefetchPlaybackContext&&(h.context.request||
(h.context.request={}),h.context.request.isPrefetch=!0);_.J("captions_hats_killswitch")||(E=_.xe().getFlag(65),E=E!=null?!E:!1,g=!!_.YY("yt-player-sticky-caption"),h.captionsRequested=E&&g)};
_.p.getRequestConfig=function(h){h=this.JSC$13123_getStoreKey(h);var E;h&&(E={storeStrategy:{storeKey:h}});_.J("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="wn_s",E.responseTick="wn_r");return E};
var sk=function(){};
_.f(sk,Ok);sk.prototype.getApiPaths=function(){return $bM};
sk.prototype.getExtension=function(h){return _.e(h,_.yQ)};
sk.prototype.JSC$13116_buildRequest=function(h,E){E.token&&(h.continuation=E.token)};var VH=function(h,E){this.playerRequestBuilder=h;this.watchNextRequestBuilder=E};
_.f(VH,Ok);VH.prototype.getApiPaths=function(){return ASl};
VH.prototype.getExtension=function(h){return _.e(h,_.MH)};
VH.prototype.isNavigationCommand=function(){return!0};
VH.prototype.JSC$13116_buildRequest=function(h,E,g){h.playerRequest={};this.playerRequestBuilder.JSC$13116_buildRequest(h.playerRequest,E,g);_.J("web_streaming_watch")&&(h.watchNextRequest={},this.watchNextRequestBuilder.JSC$13116_buildRequest(h.watchNextRequest,E,g))};
VH[R2]=[Xp,Ym];var syB;_.km=new _.Ps("SHORTS_CONTROLLER_TOKEN");syB=new _.Ps("SHORTS_STATE_STORE_TOKEN");var yH=function(h,E){var g=_.VF.apply(2,arguments);h=h===void 0?0:h;_.xX.call(this,E,g);this.errorType=h;Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(yH,_.xX);var VGC,kxC,FSM,WV$,ku,eM$,ulm,bnM,M4f,E6n,hcf;VGC=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(h){return h+"="}).join("|"));
kxC=RegExp(".*\\?.*playnext=1.*");_.Fp=function(h,E,g,Z){this.watchEndpointMap=h;this.reelWatchEndpointMap=E;this.innerTubeTransportService=g;this.fetchPbj=Z};
FSM=function(h,E,g){var Z=_.GF().resolve(_.pl(yun));_.Fp.instance=new _.Fp(h,E,g,Z)};
_.Auf=function(h,E){var g=_.cx("web_pbj_log_warning_rate",0);g=g>0&&Math.random()<g;var Z;if((Z=_.e(E.commandMetadata,_.qH))==null||!Z.rootVe)return g&&_.O$(Error("Zf")),!1;var M;Z=(M=_.e(E.commandMetadata,_.qH))==null?void 0:M.url;if(!Z)return g&&_.O$(Error("$f")),!1;if(kxC.test(Z))return!0;if(VGC.test(Z))return g&&_.O$(Error("ag`"+Z)),!1;if(_.e(E,_.MH)){if(!(h.watchEndpointMap.watchNext&&h.watchEndpointMap.player||_.J("kevlar_fetch_initial_data_op_watch_client")))return g&&_.O$(Error("Sf")),!1;
h=_.cx("web_pbj_log_warning_rate",0);h=h>0&&Math.random()<h;_.e(E,_.MH)?KP4(E)?E=!0:(h&&_.O$(Error("Tf")),E=!1):(h&&_.O$(Error("Sf")),E=!1);return E}if(_.e(E,_.D9))return OVO(E);if(_.e(E,_.Wt))return!0;h=_.uF(h.innerTubeTransportService,E);!h&&g&&_.$W(Error("bg"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(E)});return h};
WV$=function(h,E,g,Z,M,W){E={url:E};if(g==null?0:g.itct)E.parentTrackingParams=g.itct;var z=_.zv(PmF);return _.ic(h.innerTubeTransportService,E,z).then(function(c){(c=c.endpoint)||(c=_.VU);(g==null?0:g.itct)&&c&&!c.trackingParams&&(c.trackingParams=g.itct);var I=xY(c);return ku(h,c,g,Z,I,M,W)})};
ku=function(h,E,g,Z,M,W,z,c){c=c===void 0?{}:c;if(h.fetchPbj&&!_.Auf(h,E)&&!_.J("force_one_platform")){c=h.fetchPbj(E);var I=_.dC(c.then(function(k){if(!k)throw Error("cg");z(I)||W(E,k);return k}));
return I}var B,U,L={rootVe:(B=_.e(E.commandMetadata,_.qH))==null?void 0:B.rootVe,url:(U=_.e(E.commandMetadata,_.qH))==null?void 0:U.url,endpoint:E,page:M};if(_.e(E,_.MH)){var d,C={contentPlaybackContext:_.mb(g,(d=_.e(E.commandMetadata,_.qH))==null?void 0:d.url,Z)},q=_.hU();_.J("web_streaming_watch")&&window.TextDecoderStream?(c=TwA(h.innerTubeTransportService,E,C,function(k){!L.response&&k.content&&(L.response=k.content);!L.playerResponse&&k.player&&(L.playerResponse=k.player);W(E,L)}),B=j1M(E),B.length&&
(L.preconnect=B,W(E,L)),bnM(c,q,L).catch(function(k){k instanceof yH&&k.errorType===2&&_.J("web_streaming_watch_fallback")&&ulm(h,E,C,L,W,z,q)})):ulm(h,E,C,L,W,z,q);
return q.promise}if(_.e(E,_.D9)){var w;if(((w=_.e(E,_.D9))==null?void 0:w.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var r=_.hU();_.QyF(_.GF().resolve(_.km),E).then(function(k){hcf(h,g,Z,M,W,r,k)});
return r.promise}c=_.dC();var v;B={contentPlaybackContext:_.mb(g,(v=_.e(E.commandMetadata,_.qH))==null?void 0:v.url,Z)};(v=h.reelWatchEndpointMap.player)&&(v=v().JSC$13116_getRequest(E,B))&&(c=_.ic(h.innerTubeTransportService,v.innerTubeRequest,v.input,E.clickTrackingParams,v.config));v=_.dC();(U=h.reelWatchEndpointMap.reelItemWatch)&&(U=U().JSC$13116_getRequest(E))&&(v=_.ic(h.innerTubeTransportService,U.innerTubeRequest,U.input,E.clickTrackingParams,U.config));U=_.dC();_.J("web_enable_delay_shorts_sequence_call_new")||
(d=h.reelWatchEndpointMap.reelWatchSequence)&&_.e(E,_.D9).sequenceParams&&(B=d().JSC$13116_getRequest(E,B))&&(U=_.ic(h.innerTubeTransportService,B.innerTubeRequest,B.input,E.clickTrackingParams,B.config));B=_.dC(L);d=_.hU();E6n(E,B,c,v,U,W,z,d);return d.promise}var H;if(_.e(E,m9O)&&((H=_.e(E.commandMetadata,_.qH))==null?0:H.url))return c=ASO(_.T8(XK().location.href),_.T8(_.e(E.commandMetadata,_.qH).url)).toString(),WV$(h,c,g,Z,W,function(){return!1});
if(_.e(E,_.Wt))return W(E,L),_.dC(L);if(_.uF(h.innerTubeTransportService,E)){c=Object.assign({},{tempData:g,disableCache:g.disableCache},c);var u=_.QQ(h.innerTubeTransportService,E,c).then(function(k){L.response=k;z(u)||W(E,L);return L});
return u}return _.dC(L)};
_.ZjC=function(h,E,g,Z){if(_.e(E,_.MH)||_.e(E,_.D9)&&(_.J("mweb_enable_shorts_innertube_player_prefetch")||_.J("kevlar_enable_shorts_prefetch_in_sequence"))||_.e(E,ZCD)&&_.J("web_enable_prefetching_videos_on_home")){var M,W={contentPlaybackContext:_.mb(g,(M=_.e(E.commandMetadata,_.qH))==null?void 0:M.url,Z),prefetchPlaybackContext:sFV(g)},z,c,I;if(((z=_.e(E,_.MH))==null?void 0:(c=z.watchEndpointSupportedPrefetchConfig)==null?void 0:(I=c.prefetchHintConfig)==null?void 0:I.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(g=
h.watchEndpointMap.watchNext)if(W=g().JSC$13116_getRequest(E,W))return Promise.resolve(_.ic(h.innerTubeTransportService,W.innerTubeRequest,W.input,void 0,W.config).then(function(L){return L}))}else if(g=h.watchEndpointMap.player)if(W=g().JSC$13116_getRequest(E,W))return Promise.resolve(_.ic(h.innerTubeTransportService,W.innerTubeRequest,W.input,void 0,W.config).then(function(L){return L}))}else if(_.uF(h.innerTubeTransportService,E)){var B={tempData:g},U=g6F(h.innerTubeTransportService,E);
return U?new Promise(function(L,d){var C,q;return _.a(function(w){if(w.nextAddress==1)return w.yield(U,2);if(w.nextAddress!=4)return C=w.yieldResult,C.JSC$13123_getStoreKey(E,B)?w.yield(_.QQ(h.innerTubeTransportService,E,B),4):(d(new _.xX("Prefetching request builder with no store key.",E)),w.jumpTo(0));q=w.yieldResult;L(q);_.SK(w)})}):Promise.reject(new _.xX("Prefetching unregistered request builder.",E))}return Promise.reject(new _.xX("No request builder available to prefetch endpoint.",E))};
eM$=function(h,E){var g,Z,M;if(_.e(E,_.MH)){var W=h.watchEndpointMap.watchNext;W&&(g=W());(h=h.watchEndpointMap.player)&&(Z=h())}else if(_.e(E,_.D9))(W=h.reelWatchEndpointMap.reelItemWatch)&&(g=W()),(W=h.reelWatchEndpointMap.player)&&(Z=W()),(h=h.reelWatchEndpointMap.reelWatchSequence)&&(M=h());else{a:{h=O_$(E,h.innerTubeTransportService.endpointMap);if(h!==void 0)if(typeof h.then==="function")_.$W(new _.xX("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",E));else break a;
h=void 0}h&&(g=h)}var z,c,I;return{content:(z=g)==null?void 0:z.JSC$13123_getStoreKey(E),player:(c=Z)==null?void 0:c.JSC$13123_getStoreKey(E),reelSequence:(I=M)==null?void 0:I.JSC$13123_getStoreKey(E)}};
ulm=function(h,E,g,Z,M,W,z){var c=_.dC(),I=h.watchEndpointMap.player;_.J("web_streaming_player")&&(I=rN(VH));I&&(I=I().JSC$13116_getRequest(E,g))&&(c=_.ic(h.innerTubeTransportService,I.innerTubeRequest,I.input,E.clickTrackingParams,I.config));I=_.dC();var B=h.watchEndpointMap.watchNext;B&&(g=B().JSC$13116_getRequest(E,g))&&(I=_.ic(h.innerTubeTransportService,g.innerTubeRequest,g.input,E.clickTrackingParams,g.config));h=_.dC(Z);M4f(E,h,c,I,M,W,z)};
bnM=function(h,E,g){return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h,2);E.resolve(g);_.SK(Z)})};
M4f=function(h,E,g,Z,M,W,z){var c,I,B,U,L;_.a(function(d){switch(d.nextAddress){case 1:return d.yield(E,2);case 2:c=d.yieldResult;if(W(z.promise))return z.resolve(c),d.return();M(h,c);I=j1M(h);if(!I.length){d.jumpTo(3);break}return d.yield(E,4);case 4:c.preconnect=I,M(h,c);case 3:return _.CX(d,5),d.yield(g,7);case 7:B=d.yieldResult;_.bN(d,6);break;case 5:return U=_.th(d),z.reject(U),d.return();case 6:if(B===void 0)return c.reload=!0,M(h,c),z.resolve(c),d.return();if(W(z.promise))return z.resolve(c),
d.return();c.playerResponse=B;M(h,c);_.CX(d,8);return d.yield(Z,10);case 10:L=d.yieldResult;_.bN(d,9);break;case 8:_.th(d);case 9:if(L===void 0)return c.response={responseContext:{}},z.resolve(c),d.return();if(W(z.promise))return z.resolve(c),d.return();c.response=L;M(h,c);z.resolve(c);_.SK(d)}})};
E6n=function(h,E,g,Z,M,W,z,c){var I,B,U,L,d,C;_.a(function(q){switch(q.nextAddress){case 1:return q.yield(E,2);case 2:I=q.yieldResult;if(z(c.promise))return c.resolve(I),q.return();W(h,I);B=j1M(h);if(!B.length){q.jumpTo(3);break}return q.yield(E,4);case 4:I.preconnect=B,W(h,I);case 3:return _.CX(q,5),q.yield(g,7);case 7:U=q.yieldResult;_.bN(q,6);break;case 5:return L=_.th(q),c.reject(L),q.return();case 6:if(U===void 0)return I.reload=!0,W(h,I),c.resolve(I),q.return();if(z(c.promise))return c.resolve(I),
q.return();I.playerResponse=U;W(h,I);_.CX(q,8);return q.yield(Z,10);case 10:d=q.yieldResult;_.bN(q,9);break;case 8:_.th(q);case 9:if(d===void 0)return I.response={responseContext:{}},c.resolve(I),q.return();if(z(c.promise))return c.resolve(I),q.return();I.response=d;W(h,I);_.CX(q,11);return q.yield(M,13);case 13:C=q.yieldResult;_.bN(q,12);break;case 11:_.th(q);case 12:if(z(c.promise))return c.resolve(I),q.return();C&&(I.reelWatchSequenceResponse=C);W(h,I);c.resolve(I);_.SK(q)}})};
hcf=function(h,E,g,Z,M,W,z){var c,I,B,U,L,d;_.a(function(C){if((c=z)==null||!c.replacementEndpoint)return W.reject(),C.return();I=z.replacementEndpoint;(B=_.e(I,_.D9))?(z.sequenceContinuation&&(B.sequenceParams=z.sequenceContinuation),U=_.GF().resolve(_.km),L=B.sequenceParams,WWB(U,I)&&delete B.sequenceParams,d=ku(h,I,E,g,Z,M,function(){return!1}),d.then(function(q){return _.a(function(w){if(w.nextAddress==1)return pGl(U,{reelWatchEndpoint:{sequenceParams:L}},q),w.yield(0,2);
W.resolve(q);_.SK(w)})})):W.reject();
_.SK(C)})};_.GSD=function(h){if(h.validatedFragments_.length==0)return null;if(!h.mergedPrefetchedData_){for(var E=[],g=_.G(h.validatedFragments_),Z=g.next();!Z.done;Z=g.next()){Z=_.G(h.fragmentConfiguration_[Z.value].graftedKeys);for(var M=Z.next();!M.done;M=Z.next())(M=h.prefetchedData_[M.value].trackingParams)&&E.push(M)}h.mergedPrefetchedData_={};Object.assign(h.mergedPrefetchedData_,h.prefetchedData_,{clientSideGrafts:E})}return h.mergedPrefetchedData_};var zcH;_.Ac=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
zcH=function(h,E,g){if(_.HVO(E))return h.prefetchCache_.get(_.$9x(E,g))};_.TV=new _.Ps("NAVIGATION_TOKEN");var a5B=function(h){var E=this;var g=g===void 0?hYa():g;var Z=Z===void 0?_.GF().resolve(_.TV):Z;this.onePickCommand=h;this.JSC$13227_playlistNetworkManager=g;this.navigationManager=Z;this.videoPickerBuilder=_.uJ$("yt-addtoplaylist");_.rlM(NQn(tMC(fPH(this.videoPickerBuilder.setTitle(h.modalTitle).setSize(1E3).addView(xdC()).addView(SqH())).addView("youtube"),h.selectButtonLabel)),function(M){E.handleAction(M)})};
a5B.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
a5B.prototype.handleAction=function(h){var E=this;if(h&&this.onePickCommand.listId&&h.action==="picked"&&h.docs){var g=[];h.docs.forEach(function(Z){g.push({addedVideoId:Z.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13227_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,g).then(function(){_.J("playlist_add_video_hard_reload_killswitch")?E.navigationManager.reload():cZf(E.navigationManager)})}};var ijm=function(){if(this.constructor===ijm)throw new TypeError("dg");};
_.p=ijm.prototype;_.p.dispose=function(){};
_.p.disconnect=function(){};
_.p.reconnect=function(){};
_.p.observe=function(h,E,g){return{element:h,option:g}};
_.p.unobserveByKey=function(){};var E9u=function(h,E){E=E===void 0?0:E;ijm.call(this);this.viewroot=h;this.defaultPrescanHeight=E;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),h?{root:h,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.f(E9u,ijm);_.p=E9u.prototype;_.p.dispose=function(){this.disconnect();this.handlers.clear()};
_.p.disconnect=function(h){this.isConnected=!1;this.pauseObservingUntilReconnect=h===void 0?!1:h;this.observer.disconnect();h=_.G(this.prescanObservers.values());for(var E=h.next();!E.done;E=h.next())E.value.disconnect()};
_.p.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var h=_.G(this.handlers),E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;var Z=g.next().value;g=!1;Z=_.G(Z.keys());for(var M=Z.next();!M.done;M=Z.next())if((M=M.value)&&M.state==="prescan"){g=!0;break}g&&o6D(this,E).observe(E);this.observer.observe(E)}}};
_.p.handleObserveEvent=function(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=this.handlers.get(E.target);if(g){var Z=E.isIntersecting;g=_.G(g);for(var M=g.next();!M.done;M=g.next()){var W=_.G(M.value);M=W.next().value;W=W.next().value;M&&(M.state==="visible"&&Z||M.state==="hidden"&&!Z)&&(W(E.target,M.state),M.calledOnce&&this.unobserveByKey({element:E.target,option:M}))}}}};
_.p.handlePrescanEvent=function(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=this.handlers.get(E.target);if(g&&E.isIntersecting){g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;Z&&Z.state==="prescan"&&(M(E.target,Z.state),Z.calledOnce&&this.unobserveByKey({element:E.target,option:Z}))}}}};
_.p.observe=function(h,E,g){var Z=(Z=this.handlers.get(h))&&Z.has(g)?{element:h,option:g}:void 0;if(Z)return Z;Z={element:h,option:g};this.handlers.has(h)||this.handlers.set(h,new Map);var M=this.handlers.get(h);M&&!M.has(g)&&M.set(g,E);this.pauseObservingUntilReconnect||(g.state==="prescan"&&o6D(this,h).observe(h),this.observer.observe(h));return Z};
_.p.unobserveByKey=function(h){var E=this.handlers.get(h.element);if(E&&E.has(h.option)){E.delete(h.option);if(h&&h.option.state==="prescan")for(var g=_.G(this.prescanObservers.values()),Z=g.next();!Z.done;Z=g.next())Z.value.unobserve(h.element);E.size===0&&(this.handlers.delete(h.element),this.observer.unobserve(h.element))}};
var o6D=function(h,E){var g=h.defaultPrescanHeight;E.hasAttribute("prescan-height")&&(E=Number(E.getAttribute("prescan-height")),isNaN(E)||(g=E));if(h.prescanObservers.has(g))return h.prescanObservers.get(g);E="-0.1px -0.1px "+g+"px -0.1px";E=new IntersectionObserver(h.handlePrescanEvent.bind(h),h.viewroot?{root:h.viewroot,rootMargin:E}:{rootMargin:E});h.prescanObservers.set(g,E);return E};var I5M=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Rcn=function(){var h,E=this;this.JSC$13244_actionRouter=h=h===void 0?_.Tq.getInstance():h;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return E.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return E.visibilityObservedElementHandlerKeys}}},P6f,Uzl,dzn;
Rcn.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.J("kevlar_use_vimio_behavior")&&_.nF("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=g9M())};
Rcn.prototype.dispose=function(){this.visibilityMonitor&&_.r6(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Rcn.prototype.handleVisibilityRefreshed=function(){for(var h=_.G(this.targetMap.entries()),E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;_.B8A(this,E,g)}};
_.j4M=function(h,E,g){Uzl(h,g);var Z=_.LWM(h,E);Z.element=g;h.targetedElements.set(g,E);_.B8A(h,E,Z)};
Uzl=function(h,E){var g=h.targetedElements.get(E);if(g){var Z=h.targetMap.get(g);Z&&(delete Z.element,h.targetMap.set(g,Z));h.targetedElements.delete(E);h.visibilityObserver&&h.visibilityObservedElementHandlerKeys&&(g=h.visibilityObservedElementHandlerKeys.get(E))&&(h.visibilityObserver.unobserveByKey(g),h.visibilityObservedElementHandlerKeys.delete(E))}};
_.B8A=function(h,E,g){var Z=g.action,M=g.element;M&&Z&&(I5M.includes(E)||_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||h.visibilityMonitor&&h.visibilityMonitor.isNodeVisible(M)?dzn(h,E,g):h.visibilityObserver&&(h.visibilityObservedElementHandlerKeys||(h.visibilityObservedElementHandlerKeys=new WeakMap),Z=h.visibilityObserver.observe(M,function(){dzn(h,E,g);h.visibilityObservedElementHandlerKeys.delete(M)},{calledOnce:!0,
state:"visible"}),h.visibilityObservedElementHandlerKeys.set(M,Z)))};
dzn=function(h,E,g){var Z=g.action;(g=g.element)&&Z&&(_.bQ(h.JSC$13244_actionRouter,[Z],g),h.targetMap.delete(E),h.targetedElements.delete(g),h.triggeredTargets.add(E))};
_.LWM=function(h,E){var g=h.targetMap.get(E);g||(g={},h.targetMap.set(E,g));return g};
_.bc=function(){P6f||(P6f=new Rcn);return P6f};var C6F=document.createElement("div");C6F.style.touchAction="pan-down";var ZHu=C6F.style.touchAction==="pan-down";var JZB,eck;JZB=function(){this.hammerFn=DIl();this.JSC$13252_screenManager=_.SQ();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Uz(83615);_.Ht(this.JSC$13252_screenManager,this.ve);ME4()};
_.uc=function(){eck||(eck=new JZB);return eck};
JZB.prototype.registerTouchEvents=function(h,E,g){var Z=_.VF.apply(3,arguments),M=this.hammerFn(h,{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}]]});g&&M.set({touchAction:g});this.nodeManagerMapping.set(h,M);var W=
WDW(E);Z=_.G(Z);for(var z=Z.next();!z.done;z=Z.next()){z=z.value;if(z.includes("swipe")||z.includes("pinch")||z.includes("pan"))z.includes("swipe")?M.get("swipe").set({enable:!0,direction:W,velocity:.2}):z.includes("pinch")?M.get("pinch").set({enable:!0}):z.includes("pan")&&(M.get("pan").set({enable:!0,direction:W}),M.get("swipe").set({enable:!0,direction:W,velocity:.2}),M.get("swipe").recognizeWith("pan"));qXf(this,h,M,z)}};
var qXf=function(h,E,g,Z){g.on(Z,function(M){if(Z.includes("pinch"))h.lastPinchTime=Date.now();else if(Z.includes("swipe")&&Date.now()-h.lastPinchTime<400)return;M.pointerType!=="mouse"&&(M=Z==="doubletap"?{coordinates:M.center}:Z.includes("pan")?M:Z.includes("swipe")?{target:M.target}:{},E.dispatchEvent(new CustomEvent(Z,{bubbles:!0,composed:!0,detail:M})))})};
JZB.prototype.unregisterTouchEvents=function(h){var E=_.VF.apply(1,arguments),g=this.nodeManagerMapping.get(h);if(g){E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next())g.off(Z.value);this.nodeManagerMapping.delete(h);h.style.touchAction="unset"}};var f5l=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var pPx=null;var N8M=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},qux=function(){N8M.instance||(N8M.instance=new N8M);
return N8M.instance},fiO=function(h){var E=h.networkEvents;
h.networkEvents=[];return _.J("enable_network_monitoring")?E:[]};var t4H;t4H={};_.SXD=Gn("yt-serviceworker-metadata",{objectStores:(t4H.auth={addedAtVersion:1},t4H["resource-manifest-assets"]={addedAtVersion:2},t4H),shared:!0,upgrade:function(h,E){E(1)&&kL(h,"resource-manifest-assets");E(2)&&kL(h,"auth")},
version:2});var o9x=self.location.origin+"/";Iiu([/\.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\//]);Iiu([/purge_shell=1/]);var xzB=void 0;xzB=xzB===void 0?[]:xzB;for(var wGl=[],Dzl=_.G(cfm),l5F=Dzl.next();!l5F.done;l5F=Dzl.next())wGl.push({key:l5F.value});for(var rZC=_.G(xzB),mzf=rZC.next();!mzf.done;mzf=rZC.next())wGl.push(mzf.value);var v6f,Ft=_.MN==null?void 0:(v6f=_.MN.performance)==null?void 0:v6f.memory,B_W=!1,N_z={},jn$={},Ak={},Tv=navigator;var QH=function(h){this.JSC$13296_expiringStorage=new DV(h)};
QH.prototype.set=function(h,E,g){g=g!==void 0?Date.now()+g:void 0;this.JSC$13296_expiringStorage.set(h,E,g)};
QH.prototype.get=function(h){return this.JSC$13296_expiringStorage.get(h)};
QH.prototype.remove=function(h){this.JSC$13296_expiringStorage.remove(h)};var mbV=_.uz(["https://www.youtube.com/",""]),v9$=_.uz(["https://studio.youtube.com/",""]),n94="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",$ba=null,kjV;var Hjn=_.uz(["https://www.youtube.com/iframe_api"]),h6=function(){this.playerResolver_=_.hU();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.wk;this.playbackDurationSeconds_=0},$zM=function(h){var E=function(){return window.YT&&typeof window.YT.ready==="function"};
if(E())return _.dC(window.YT);var g=_.hU(),Z=_.q3("SCRIPT");Z.onload=Z.onreadystatechange=function(){Z.readyState&&Z.readyState!="loaded"&&Z.readyState!="complete"||(Z.onload=_.wk,Z.onreadystatechange=_.wk,Z.onerror=_.wk,E()?g.resolve(window.YT):g.reject(new _.xX("Failed to load the iframe player library","script.onload",Z.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
Z.onerror=function(M){Z.onload=_.wk;Z.onreadystatechange=_.wk;Z.onerror=_.wk;g.reject(new _.xX("Failed to load the iframe player library","script.onerror",M&&M.target&&M.target.src))};
_.pX(Z,_.BR(Hjn));h.insertBefore(Z,h.firstChild);return g.promise},KWF=function(h,E,g){var Z,M;
_.a(function(W){switch(W.nextAddress){case 1:return h.playbackEndedCallback_=g,_.CX(W,2),W.yield($zM(E.parentElement||null),4);case 4:Z=W.yieldResult;_.bN(W,3);break;case 2:return M=_.th(W),M instanceof _.xX&&M.args&&M.args[0]=="script.onerror"?_.O$(M):_.$W(M),W.return();case 3:Z.ready(function(){return new Z.Player(E,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:h.onPlayerReady_.bind(h),onStateChange:h.onPlayerStateChange_.bind(h),
onCueRangeExit:h.onCueRangeExit_.bind(h)}})}),_.SK(W)}})};
_.p=h6.prototype;_.p.getPlayerPromise=function(){return this.playerPromise_};
_.p.onPlayerReady_=function(h){this.playerResolver_.resolve(h.target)};
_.p.onPlayerStateChange_=function(h){if(h.data==YT.PlayerState.PLAYING){h=h.target;var E=h.getCurrentTime();h.addCueRange("playback",E,E+this.playbackDurationSeconds_)}};
_.p.onCueRangeExit_=function(h){h.data=="playback"&&(h.target.stopVideo(),this.playbackEndedCallback_())};
_.p.stopVideo=function(){this.playerPromise_.then(function(h){h.stopVideo()})};
var Ojn=function(h){h.playerVars_&&h.playerPromise_.then(function(E){typeof E.cueVideoByPlayerVars!="function"?_.O$(new _.xX("vmh: player API not ready","cueVideoByPlayerVars",typeof E.cueVideoByPlayerVars)):E.cueVideoByPlayerVars(h.playerVars_)})};
h6.prototype.playVideo=function(){var h=this;this.playerVars_&&this.playerPromise_.then(function(E){typeof E.loadVideoByPlayerVars!="function"?(E=new _.xX("vmh: player API not ready","loadVideoByPlayerVars",typeof E.loadVideoByPlayerVars),_.$W(E)):E.loadVideoByPlayerVars(h.playerVars_)})};
var n6C=function(h,E,g,Z,M){E&&(g===void 0&&(g=0),Z===void 0&&(Z=0),h.playbackDurationSeconds_=Z/1E3,h.playerVars_={adformat:"17_8",videoId:E,suggestedQuality:"hd720",startSeconds:g/1E3,player_params:M})};
h6.prototype.mute=function(){this.playerPromise_.then(function(h){h.mute()})};
h6.prototype.unMute=function(){this.playerPromise_.then(function(h){h.unMute()})};var XGF=function(h,E){var g=Te();h||(h="unknown");E||(E="unknown");h="MAIN_APP_WEB_PAGE_TYPE_"+h.toUpperCase();h in ufH||(h="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");E="MAIN_APP_WEB_REQUEST_TYPE_"+E.toUpperCase();E in Q1D||(E="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.oe(g,{mainAppWeb:{pageType:h,requestType:E,isShellLoad:_.Xn("IS_SHELL_LOAD",!1)}})},YXH={start:function(){_.oe(Z24(),{mainAppWeb:_.ZM()})},
success:function(){_.Ie(Z24(),"SUCCESS")},
failure:function(){_.Ie(Z24(),"FAILURE")},
cancelled:function(){_.Ie(Z24(),"CANCELLED")}};var s4D,V4A,Qnz;s4D=_.uz(["/sw.js"]);V4A=_.uz(["/sw.js?0"]);_.kSk=_.BR(s4D);Qnz=_.BR(V4A);var yZC=function(){var h=Error.apply(this,arguments);this.message=h.message;"stack"in h&&(this.stack=h.stack)};
_.f(yZC,Error);_.p3.prototype.load=function(h){this.megabloxUrl_=_.nF("YPC_MB_URL");_.bC(this.megabloxUrl_,(0,_.DJ)(function(){h&&h()},this))};
_.hx4=function(h,E,g,Z,M,W,z,c,I,B,U){_.EzM(I);h.load((0,_.DJ)(function(){try{var L=W?W:_.nF("HL"),d=_.nF("SESSION_INDEX");_.vi$("client",function(){U6m("59",{helpCenterPath:"/youtube",locale:L,window:window}).JSC$9976_loadChatSupport({authuser:String(d)})})}catch(C){throw Mm(10,U,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),M&&M(C),_.$W(C),C;
}FWM(this,E,g,Z,M,W,z,c,I,B,U)},h))};
_.p3.prototype.openFixFlowDialog=function(h,E,g,Z){this.load((0,_.DJ)(function(){try{AZM(this,_.yy("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(h).withIntegratorCallback(E).load(g,Z)}catch(M){throw _.$W(M),M;}},this))};
var AZM=function(h,E,g,Z){var M=E.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.J("enable_window_constrained_buy_flow_dialog")&&(M=M.usingPopupStyle(_.yy("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));Z&&(M=M.usingCloseCallback(Z));E.bootstrap.fromPaymentsUrl(h.megabloxUrl_);h=E.bootstrap.asMashupMode(M);g=g?g:_.nF("HL");h.usingGaiaIndex(_.nF("SESSION_INDEX")).usingLocale(g).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.J("enable_google_payments_buyflow_material2_style_web")?
h.usingStyle(":m2;pc=#444;ac=#065fd4"):h.usingStyle(":md;pc=#444;ac=#065fd4");return h},FWM=function(h,E,g,Z,M,W,z,c,I,B,U){try{var L=_.yy("payments.business.integration");
if(!L)throw new yZC("payments.business.integration is undefined");var d=L.standaloneContextAuthId.forUserId(),C=AZM(h,L,W,function(){Z04(!1);c&&c()});
z&&C.usingServerAnalyticsEventHandler(z);var q=C.inStandaloneContext(d).buyFlow(function(w){if(w&&(!w.integratorData||w.integratorData===""||w.error))if(w.error!=null)if(String(w.error)==="-1")_.gzV(I);else{var r=String(w.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Mm(10,U,r,w.debugCode);_.Wb(r,I,w.debugCode);r=new _.xX("PAYMENT_ERROR_MESSAGE::"+w.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+w.internalErrorDetails);
_.$W(r)}else Mm(10,U,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Wb("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",I,"EMPTY_INTEGRATOR_DATA"),_.$W(Error("ig"));g&&(Z04(!1),g(w))}).withEncryptedParameters(E);
B&&q.withClientParameters(Rmx(_.uoa(B)));q.load(function(){Mm(24,U);_.ke("ttc",void 0,"commerce_transaction");XF("commerce_transaction");Z&&(Z(),Z04(!0))},function(w){if(w==null?0:w.debugCode)var r=w==null?void 0:w.debugCode;
else if(!w||(w==null?0:w.debugCode))r="EMPTY_LOAD_FAILURE_ERROR",_.$W(Error(r));else{r="EMPTY_LOAD_FAILURE_DEBUG_CODE";var v=new _.xX("LOAD_FAILURE:"+w.message," DEBUG_CODE:"+r);_.$W(v)}Mm(10,U,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",r);_.Wb("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I,r);_.$W(w);M&&M(w)})}catch(w){throw w instanceof yZC&&(Mm(10,U,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),M&&M(w)),_.$W(w),w;
}};var T8C;T8C=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.bBO=function(h,E){E=E===void 0?!1:E;h=T8C.test(h)?_.wU(h):null;!E&&window.payments||!h?(h=_.hU(),E=h.promise,h.resolve()):E=_.Msm(h,{attributes:{"data-payments-main":"",id:"payment-lib"}});return E};var bjB;bjB=_.uz(["//www.googletagmanager.com/gtm.js?id=",""]);_.Eh=function(h,E){_.c3(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:E}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.nF("GL")}),E=_.q3("SCRIPT"),E.async=!0,_.pX(E,_.BR(bjB,h)),E.id="gtm",h=document.getElementsByTagName("script"),h.length==0?document.head.appendChild(E):(h=h[0],h.parentNode.insertBefore(E,h)))};
_.gK=function(h){if(h=JSON.parse(h))window.dataLayer=window.dataLayer||[],window.dataLayer.push(h)};var u4f,Q4B;u4f=_.uz(["https://clients2.google.com/gr/gr_sync.js"]);_.Aqz=function(){};
_.Aqz.prototype.init=function(){if(Q4B()){var h=_.hU();h.resolve();return h.promise}return _.Msm(_.BR(u4f)).then(function(){if(!Q4B())throw Error("jg");},function(){throw Error("kg");
})};
_.T0q=function(){if(!Q4B())return"";var h=window.google.gr;h.init({async:{schedule:"sync"},merchantId:"youtube"});h.start();h=h.finish();return h==null?"":h};
Q4B=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.D=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.D,PolymerFakeBaseClassWithoutHtml);_.wD=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.f(_.wD,PolymerFakeBaseClassWithoutHtml);var MVz=window.ShadyDOM;var KtO,H0M,nzu,X0d,s_$,VVz,ZX,Bb;KtO=_.J("enable_shadydom_free_scoped_query_methods");H0M=_.J("enable_shadydom_free_scoped_node_methods");nzu=_.J("enable_shadydom_free_scoped_readonly_properties_batch_one");X0d=_.J("enable_shadydom_free_parent_node");s_$=_.J("enable_shadydom_free_children");VVz=_.J("enable_shadydom_free_last_child");ZX=window.ShadyDOM;_.C3=ZX&&ZX.noPatch&&ZX.wrap?ZX.wrap:ZX?function(h){return ZX.patch(h)}:function(h){return h};
Bb=function(h){if(h instanceof ShadowRoot)this.host=(0,_.C3)(h.host),this.root=h;else if(h.$$){this.host=(0,_.C3)(h);var E;this.root=(E=h.root)!=null?E:this.host}else if(h.polymerController){this.host=(0,_.C3)(h);var g;this.root=(g=this.host.shadowRoot)!=null?g:this.host}else this.root=this.host=(0,_.C3)(h)};
$qq();O0M();ki4();yYz();YVZ();var hND={querySelector:function(h,E){E=p0u(E,cb(h));h=_.iq(h);return oN(h).prototype.querySelector.call(h,E)},
querySelectorAll:function(h,E){E=p0u(E,cb(h));h=_.iq(h);return oN(h).prototype.querySelectorAll.call(h,E)}},ECl={appendChild:function(h,E){var g=cb(h),Z=_.aN(E);
return _.mq$(_.iq(h),g?_.RN(E,g,Z):E)},
cloneNode:function(h,E){var g=_.aN(h);h=_.iq(h);E=oN(h).prototype.cloneNode.call(h,E);return g?Pb(E,g):E},
contains:function(h,E){var g=cb(h),Z=_.aN(E);return g!==Z?!1:vzO(h,E)},
insertBefore:function(h,E,g){var Z=cb(h),M=_.aN(E);h=_.iq(h);E=Z?_.RN(E,Z,M):E;return oN(h).prototype.insertBefore.call(h,E,g)},
removeChild:function(h,E){var g=cb(h);h=_.iq(h);E=g?Pb(E,g):E;return oN(h).prototype.removeChild.call(h,E)},
replaceChild:function(h,E,g){var Z=cb(h),M=_.aN(E);E=Z?_.RN(E,Z,M):M?Pb(E,M):E;g=Z?Pb(g,Z):g;h=_.iq(h);return oN(h).prototype.replaceChild.call(h,E,g)},
getRootNode:function(h,E){E=E===void 0?{composed:!0}:E;var g;if(((g=E)!=null?g:{}).composed)h=UqM(h);else{E=h;for(h=zjz(h);h;)E=h,h=cYN(h);h=E}return h}},AYO=nzu?{firstChild:SVz,
nextSibling:ffq,previousSibling:tVV,firstElementChild:xqM,lastElementChild:DqW,nextElementSibling:qVa,previousElementSibling:NSV,childNodes:lf$}:{};X0d&&(AYO.parentNode=ej4);s_$&&(AYO.children=rY$);VVz&&(AYO.lastChild=w0u);KtO&&Ftz(hND);H0M&&Ftz(ECl);TS4();var b0O=function(h){this.node=h instanceof ShadowRoot?h.host:h};
u_d();Q_z();var g_z=new WeakMap;var MB4=Symbol("Bd");var ak$=new Set(["tap","track","down","up"]),c$d=_.J("pbcm_fi_query_decorators");var MJ=function(){return _.wD.apply(this,arguments)||this};
_.f(MJ,_.wD);_.p=MJ.prototype;_.p.getState=function(){return this.store.getState()};
_.p.dispatch=function(h){this.store.dispatch(h)};
_.p.beforeRegister=function(){if(this&&typeof this==="object"){var h;var E=!!this.useSignals||!((h=this.polymerController)==null||!h.useSignals)}else E=!1;if(!E&&this.properties)for(E=_.G(Object.keys(this.properties)),h=E.next();!h.done;h=E.next()){var g=h.value;h=this.properties[g];if(h.selector){if(h.computed)throw Error("qg");g=["reduxPropertiesRecomputeTrigger",'"'+g+'"'].concat(_.$E(h.selectorArgs||[])).join(",");h.computed="recomputeReduxSelector("+g+")"}}};
_.p.attached=function(){var h=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){h.reduxPropertiesRecomputeTrigger++}));
_.J("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.p.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.p.recomputeReduxSelector=function(h,E){var g=_.VF.apply(2,arguments),Z=this.properties[E].selector;if(!Z)throw Error("og`"+E);return Z.apply(null,[this.store.getState()].concat(_.$E(g)))};
_.p.select=function(h){var E=_.VF.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return h.apply(null,[this.store.getState()].concat(_.$E(E)))};
_.ze.Object.defineProperties(MJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("pg");}}});
MJ.prototype.recomputeReduxSelector=MJ.prototype.recomputeReduxSelector;_.Y([_.x(),_.V("design:type",Number)],MJ.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.Y([_.DM()],MJ);var W4=[],RW$={},kA=function(){return cl.apply(this,arguments)||this};
_.f(kA,cl);kA.prototype._addPropertyEffect=function(h,E,g){if(E==="__observeEffects"&&g){var Z,M=(Z=g.info.method)!=null?Z:g.info.methodName;if(M){var W=this[M];this[M]=function(){W4.push(M);try{W==null||W.apply(this,arguments)}finally{W4.pop()}}}}_.O1._addPropertyEffect.apply(this,[h,
E,g])};
kA.prototype._setPendingProperty=function(h,E,g){if(W4.length){var Z=W4[W4.length-1],M;(M=RW$[this.is])!=null&&M.has(Z)||(P5O(this.is,Z),_.vT("polymerPropertyChangedInObserver",{componentName:this.is,observerName:Z}))}return _.O1._setPendingProperty.apply(this,[h,E,g])};
_.Y([$Gz()],kA);var Bsd=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),LR$,mh={};_.J("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=mh);var $A=function(){return _.wD.apply(this,arguments)||this};
_.f($A,_.wD);$A.prototype._setUnmanagedPropertyToNode=function(h,E,g){h.loggingStatus&&(h.loggingStatus.isDeclarativeExternal=!0);if(g!==h[E]||typeof g==="object")h[E]=g;h.is&&h.polymerController&&h.polymerController!==h&&vb(h.is,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");h.loggingStatus&&(h.loggingStatus.isDeclarativeExternal=!1)};
_.Y([_.DM()],$A);Uxx()&&(T$.prototype._setUnmanagedPropertyToNode=(new $A)._setUnmanagedPropertyToNode);_.lk$={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(h){},set polymerController(h){}}]};var Vc=function(){var h=cl.apply(this,arguments)||this;h.json=function(){};
return h};
_.f(Vc,cl);Vc.prototype.equals=function(h,E){return h===E};
Vc.prototype.isEmpty=function(h){var E;(E=!h)||(E=_.s4(h)&&h.length===0);return E};
_.Y([$Gz()],Vc);var gCn=function(h){h=m$Z(h);Er.call(this,h)};
_.f(gCn,Er);gCn.prototype.addProvider=function(h){h=h.key?h:m$Z([h])[0];var E=this.keyIdToIndex.get(h.key.id);if(E){if(eW4(h,this.providers[E]))throw Error("rg`"+h.key.displayName);}else Er.prototype.addProvider.call(this,h)};
var ZYm=new gCn([]);var Mmm=!1;var xxx={};Mmm||(Sbz(),Mmm=!0);
xxx.InjectBehavior={initializeInjection:function(){var h=this.provide;try{if((h=h!=null?h:[])&&h.length>0)for(var E=m$Z(h),g=_.G(E),Z=g.next();!Z.done;Z=g.next())ZYm.addProvider(Z.value);var M=new Set;qbW(this.behaviors||[],M);E={};for(var W=_.G(M),z=W.next();!z.done;z=W.next()){var c=z.value;c.inject&&Object.assign(E,c.inject)}this.inject&&Object.assign(E,this.inject);for(var I=_.G(Object.keys(E)),B=I.next();!B.done;B=I.next()){var U=B.value,L=E[U];try{this[U]=ZYm.resolve(L)}catch(d){throw d;}}}catch(d){throw Error(d.message);
}}};var DxZ;var r$O=/\bclass\b/.test(function(){}.toString()),H7x=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var W0l=function(h){this.wasDefined=!0;Array.isArray(h)||h instanceof Array?(this.JSC$13425_getImpl=h[0],this.JSC$13425_setImpl=h[1]):this.JSC$13425_getImpl=h};
_.p=W0l.prototype;_.p.getWithPath=function(h){return O7z(this.JSC$13425_getImpl(),h)};
_.p.setWithPath=function(h,E){var g=this;if(h.length)throw Error("sg");if(!this.JSC$13425_setImpl)throw Error("tg");JV(function(){g.JSC$13425_setImpl(E)})};
_.p.notifyPath=function(){throw Error("ug");};
_.p.notifySplices=function(){throw Error("vg");};
_.p.getChangeRecordSignal=function(h,E){var g=this;if(h.length)throw Error("wg");return function(){var Z=g.getWithPath(h);return{path:E!=null?E:"",base:Z,value:Z}}};
_.p.getSplicesSignal=function(){throw Error("xg");};
_.p.getPathMutationSignal=function(){throw Error("yg");};
_.p.pop=function(){throw Error("zg");};
_.p.push=function(){throw Error("Ag");};
_.p.splice=function(){throw Error("Bg");};
_.p.unshift=function(){throw Error("Cg");};var p6=function(h){var E=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(h)||h instanceof Array?(this.JSC$13430_getImpl=h[0],this.JSC$13430_setImpl=h[1]):this.JSC$13430_getImpl=h;this.wasDefined=!1;Pm(function(){E.wasDefined=E.JSC$13430_getImpl()!==void 0})};
p6.prototype.getWithPath=function(h){return O7z(this.JSC$13430_getImpl(),h)};
p6.prototype.setWithPath=function(h,E){var g=this;if(h[h.length-1]!=="*"&&h[h.length-1]!=="splices"){var Z=Pm(function(){return g.getWithPath([])});
if(h.length===0){if(!this.JSC$13430_setImpl)throw Error("Dg");if(Z===E)return;this.wasDefined||(this.wasDefined=E!==void 0);JV(function(){g.JSC$13430_setImpl(E)})}else{for(var M=0;M<h.length-1;M++){if(!Z)return;
Z=Z[h[M]]}M=h[h.length-1];Z&&(Z[M]=E);this.wasDefined||(this.wasDefined=h.length>1||E!==void 0)}p1A(this,h,{pathComponents:h,value:E})}};
p6.prototype.notifyPath=function(h,E){h.length===0?E&&this.setWithPath(h,E.value):p1A(this,h,{pathComponents:h,value:E==null?void 0:E.value,fallbackWhenUndefined:E==null?void 0:E.value})};
var p1A=function(h,E,g,Z){if(h.setMutationSignal){var M=++h.mutationIndex,W=[h.observedPath],z=h.observedPath,c;E.length===0&&(c=z);for(var I=0;I<E.length;I++){var B=z.subPaths[E[I]];if(!B)break;W.push(B);z=B;I===E.length-1&&(c=B)}for(E=!1;W.length;)z=W.shift(),z.data={index:M,mutation:g,spliceMutationIndex:Z},E||(E=z===c),E&&W.push.apply(W,_.$E(Object.values(z.subPaths)));JV(function(){h.setMutationSignal(M)})}};
p6.prototype.notifySplices=function(h,E){var g=this,Z=Pm(function(){return g.getWithPath(h)}),M=[].concat(_.$E(h),["splices"]);
p1A(this,M,{pathComponents:M,value:{indexSplices:E}});if(Z==null?0:Z.length)E=this.mutationIndex,M=[].concat(_.$E(h),["length"]),p1A(this,M,{pathComponents:M,value:Z.length},E)};
var GOf=function(h,E,g,Z,M,W){h.notifySplices(g,[{index:Z,addedCount:M,removed:W,object:E,type:"splice"}])},zNf=function(h,E){h=h.observedPath;
for(var g=0;g<E.length;g++){var Z=E[g],M=h.subPaths[Z];M||(M={pathComponents:E.slice(0,g+1),subPaths:{}},h.subPaths[Z]=M);h=M}},c3C=function(h,E,g){zNf(h,E);
if(!h.getMutationSignal){var Z=_.G(_.Bm(h.mutationIndex,void 0,"sNBMCd"));h.getMutationSignal=Z.next().value;h.setMutationSignal=Z.next().value}var M=h.getMutationSignal;return _.Cw(function(){M();return g(aSH(h,E))},void 0,"zvsXEd")};
p6.prototype.getChangeRecordSignal=function(h,E){var g=this,Z=this.mutationIndex,M;return c3C(this,h,function(W){if(W&&W.index>Z){var z=W.mutation;Z=W.index;M=void 0}W=Pm(function(){return g.getWithPath(h)});
if(z){var c=z.pathComponents[z.pathComponents.length-1],I=[].concat(_.$E(z.pathComponents));if(c==="splices"||c==="length")return{base:W,path:(E?[E].concat(_.$E(I)):I).join("."),value:z.value};var B=h.length>I.length?h:I,U;return{base:W!=null?W:z.fallbackWhenUndefined,path:(E?[E].concat(_.$E(B)):B).join("."),value:(U=Pm(function(){return g.getWithPath(B)}))!=null?U:z.fallbackWhenUndefined}}M||(M={base:W,
path:(E?[E].concat(_.$E(h)):h).join("."),value:W});return M})};
p6.prototype.getSplicesSignal=function(h){var E=this.mutationIndex,g;return c3C(this,h,function(Z){if(Z&&Z.index>E&&Z.spliceMutationIndex!==E){var M=Z.mutation;E=Z.index;g=void 0}return M&&M.pathComponents[M.pathComponents.length-1]==="splices"?g=Z=M.value:g})};
p6.prototype.getPathMutationSignal=function(h){var E=this;zNf(this,h);if(!this.getMutationSignal){var g=_.G(_.Bm(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=g.next().value;this.setMutationSignal=g.next().value}var Z=this.getMutationSignal,M=this.mutationIndex,W;return _.Cw(function(){Z();var z=aSH(E,h);if(z&&z.index>M&&z.mutation&&n_x(z.mutation.pathComponents,h)){var c=z.mutation;M=z.index}if(!W||M!==W.index){var I,B;z=(B=Pm(function(){return E.getWithPath(h)}))!=null?B:(I=c)==null?
void 0:I.fallbackWhenUndefined;
W={index:M,value:z}}return W},void 0,"RXYC9b")};
var aSH=function(h,E){h=h.observedPath;E=_.G(E);for(var g=E.next();!g.done;g=E.next())h=h.subPaths[g.value];return h.data};
p6.prototype.pop=function(h){var E=this,g=Pm(function(){return E.getWithPath(h)});
if(!(g instanceof Array))throw Error("Eg");var Z=g.length>0,M=g.pop();Z&&GOf(this,g,h,g.length,0,[M]);return M};
p6.prototype.push=function(h){var E=_.VF.apply(1,arguments),g=this,Z=Pm(function(){return g.getWithPath(h)});
if(!(Z instanceof Array))throw Error("Fg");var M=Z.length,W=Z.push.apply(Z,_.$E(E));E.length&&GOf(this,Z,h,M,E.length,[]);return W};
p6.prototype.splice=function(h,E,g){var Z=_.VF.apply(3,arguments),M=this,W=Pm(function(){return M.getWithPath(h)});
if(!(W instanceof Array))throw Error("Gg");E<0?E=W.length-Math.floor(-E):E&&(E=Math.floor(E));var z=W.splice.apply(W,[E,g].concat(_.$E(Z)));(Z.length||z.length)&&GOf(this,W,h,E,Z.length,z);return z};
p6.prototype.unshift=function(h){var E=_.VF.apply(1,arguments),g=this,Z=Pm(function(){return g.getWithPath(h)});
if(!(Z instanceof Array))throw Error("Hg");var M=Z.unshift.apply(Z,_.$E(E));E.length&&GOf(this,Z,h,0,E.length,[]);return M};var Gr=function(h,E,g){this.model=h;this.unknownSignalResolver=E;this.options=g;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];E=_.G(Tsd());h=E.next().value;E=E.next().value;this.owner=h;this.disposeImpl=E};
Gr.prototype.dispose=function(){if(!this.isDisposed){for(var h=_.G(this.childSignalProxies),E=h.next();!E.done;E=h.next())E.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var iYM=function(h,E){h=_.M6(h.owner);try{E()}finally{_.M6(h)}};
Gr.prototype.effect=function(h){iYM(this,function(){_.$Z(h)})};
var oCM=function(h,E){h.options!=null||(h.options={});var g;(g=h.options).immutableProps!=null||(g.immutableProps=new Set);h.options.immutableProps.add(E)},C7V=function(h,E){E=""+E;
ISM(h,E);var g,Z;if((g=h.options)==null?0:(Z=g.immutableProps)==null?0:Z.has(E))return!0;var M;if((M=h.model.__signalCache)==null?0:M.has(E))g=h.model.__signalCache.get(E),Array.isArray(g)&&oCM(h,E);var W,z,c;return(c=(W=h.options)==null?void 0:(z=W.immutableProps)==null?void 0:z.has(E))!=null?c:!1},RNf=function(h,E){var g;
h.unknownSignalResolver&&(g=h.unknownSignalResolver(E));var Z,M;((Z=h.options)==null?0:(M=Z.immutableProps)==null?0:M.has(E))?g!=null||(g=new W0l(_.Bm(h.model[E],void 0,"By5iP"))):g!=null||(g=new p6(_.Bm(h.model[E],void 0,"CXghNc")));var W=h.model.hostElement;Object.defineProperty(h.model,E,{get:function(){dxN(W,E);return g.getWithPath([])},
set:function(z){Hb(W,E);h.setWithPath([E],z)},
configurable:!0});return g},ISM=function(h,E){var g,Z,M;
((g=h.model.__signalCache)==null||!g.has(E))&&((Z=h.options)==null?0:(M=Z.externalSignalProps)==null?0:M.has(E))&&h.model[E]},Tw=function(h,E){E=""+E;
var g=h.signalCache[E];if(g!==void 0)return g;g=!1;ISM(h,E);var Z;if((Z=h.model.__signalCache)==null?0:Z.has(E))if(g=h.model.__signalCache.get(E),Array.isArray(g))g=!0,oCM(h,E);else return h.signalCache[E]=h.model.__signalCache.get(E).signal,h.signalCache[E];var M,W;Z=(W=(M=h.options)==null?void 0:M.reactivityMode)!=null?W:0;var z,c;if(!((z=h.options)==null?0:(c=z.reactiveProps)==null?0:c.has(E))&&!g&&Z===1)throw Error("Ig`"+E);M=g?PHk(h,E):RNf(h,E);return h.signalCache[E]=M},PHk=function(h,E){var g=
Object.getOwnPropertyDescriptor(h.model.constructor.prototype,E),Z=function(){return h.model[E]};
return new W0l(g&&g.get&&!g.set?Z:[Z,function(M){h.model[E]=M}])};
Gr.prototype.getWithPath=function(h){var E=_.G(h);h=E.next().value;E=E9(E);dxN(this.model.hostElement,""+h);return Tw(this,h).getWithPath(E)};
Gr.prototype.setWithPath=function(h,E){if(h.length){Hb(this.model.hostElement,h.join("."));var g=_.G(h);h=g.next().value;g=E9(g);Tw(this,h).setWithPath(g,E)}};
Gr.prototype.getPathMutationSignal=function(h){var E=_.G(h);h=E.next().value;E=E9(E);return Tw(this,h).getPathMutationSignal(E)};
Gr.prototype.notifyPath=function(h,E){var g=_.G(h);h=g.next().value;g=E9(g);Tw(this,h).notifyPath(g,E)};
var BLM=function(h,E){if(E.type==="literal")return function(){return{rootWasDefined:!0,value:E.value}};
var g=FT(E.path),Z=_.G(g),M=Z.next().value;Z=E9(Z);var W,z;if(E.type==="path"&&(g.length===1||((W=h.options)==null?0:(z=W.immutableProps)==null?0:z.has(M))))return function(){var L=h.getWithPath(g.slice(0,1));L=O7z(L,g.slice(1));return{rootWasDefined:Tw(h,g[0]).wasDefined,value:L}};
var c=Tw(h,M);if(E.type==="path"){var I=c.getPathMutationSignal(Z);return function(){var L,d=(L=I())==null?void 0:L.value;return{rootWasDefined:c.wasDefined,value:d}}}if(E.type==="splices"){var B=c.getSplicesSignal(Z);
return function(){var L=B();return{rootWasDefined:c.wasDefined,value:L}}}var U=c.getChangeRecordSignal(Z,""+M);
return function(){var L=U();return{rootWasDefined:c.wasDefined,value:L}}},y$x=function(h,E,g){var Z=g.map(function(c){return BLM(h,c)}),M=g.length===0,W=[],z=g.length!==1||g[0].type!=="path"?!1:!0;
h.effect(function(){for(var c=Z.length,I=[],B=!!W.length,U=0;U<c;U++){var L=Z[U](),d=L.rootWasDefined;L=L.value;M||(M=d);I[U]=L;z&&(I[U+c]=B?W[U]:I[U],W[U]=L)}M&&Kw(h.owner,function(){return void E.apply(null,_.$E(I))})})},XvV=function(h,E,g,Z,M){var W=Tw(h,E);
M!==void 0&&W.setWithPath([],M);y$x(h,function(){var z=_.VF.apply(0,arguments);Hb(h.model.hostElement,E,!0);W.setWithPath([],g.apply(null,_.$E(z)))},Z)};
Gr.prototype.arrayPush=function(h){var E=_.VF.apply(1,arguments),g=_.G(h),Z=g.next().value;g=E9(g);Z=Tw(this,Z);return Z.push.apply(Z,[g].concat(_.$E(E)))};
Gr.prototype.arraySplice=function(h,E,g){var Z=_.VF.apply(3,arguments),M=_.G(h),W=M.next().value;M=E9(M);W=Tw(this,W);return W.splice.apply(W,[M,E,g].concat(_.$E(Z)))};
Gr.prototype.arrayUnshift=function(h){var E=_.VF.apply(1,arguments),g=_.G(h),Z=g.next().value;g=E9(g);Z=Tw(this,Z);return Z.unshift.apply(Z,[g].concat(_.$E(E)))};
Gr.prototype.notifySplices=function(h,E){var g=_.G(h);h=g.next().value;g=E9(g);Tw(this,h).notifySplices(g,E)};var USC=!0,L0n=!1,JZ$=!1,jwk=!1,dSD=0;jwk=!1;dSD=0;USC=!0;L0n=JZ$=!1;var gna=/([^\s]+?)\(([\s\S]*)\)/,Q0Z=/\.([^.]+)$/,MGZ=/\\,/g,b7N=/&comma;/g,uuu=/\\(.)/g,ZnN=[],hEZ={"*":"wildcard",splices:"splices"};var REM=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"),cuO=/[A-Z]/,CHC=["class","hidden","id","on-dom-change"],BwW=new Set([].concat(_.$E(CHC),
["if","notify-dom-change","restamp"])),U1N=new Set([].concat(_.$E(CHC),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),LSz=new Set(["restamp"]);var L0M=new Set(["className","id"]);var eEN=Symbol(),weq=window;var KSz=window;var kxz=0,Xex=0,bq=[],VGz=0,nnz=!1,sy$=document.createTextNode("");(new window.MutationObserver(YyN)).observe(sy$,{characterData:!0});var Qc=new Map,uq=0,J3n=function(h){this.mappedHandleId=h},FS$=function(h,E,g,Z){this.mappedHandleId=h;
var M=this;this.mappedHandleId=h;this.callback=E;this.waitTime=g;this.schedulerPriority=Z;this.handleId=_.KP.addJob(function(){M.callback();Qc.delete(M.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.f(FS$,J3n);FS$.prototype.cancel=function(){_.KP.cancelJob(this.handleId);Qc.delete(this.mappedHandleId)};
var AuZ=function(h,E){this.mappedHandleId=h;var g=this;this.mappedHandleId=h;this.callback=E;this.handleId=yuM(function(){g.callback();Qc.delete(g.mappedHandleId)})};
_.f(AuZ,J3n);AuZ.prototype.cancel=function(){var h=this.handleId-Xex;h<0||bq.length<=h||(bq[h]=null);Qc.delete(this.mappedHandleId)};var Qyq=function(){};
Qyq.prototype.cancel=function(){this.jobHandle!==void 0&&(TwN(this.jobHandle),this.jobHandle=void 0)};
Qyq.prototype.run=function(h,E,g){var Z=this;this.cancel();this.callback=h;this.jobHandle=_.hW(function(){h();Z.callback=void 0},E,g)};
Qyq.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var bn$=new WeakMap;var eND=I1(function(h){for(var E=h,g=0;g<3;g++)E=Object.getPrototypeOf(E);delete E.prototype.connectedCallback;var Z=function(){return h.apply(this,arguments)||this};
_.f(Z,h);Z.prototype._attachDom=function(M){if(!M)return null;var W=(0,_.C3)(this.hostElement);W.attachShadow({mode:"open",shadyUpgradeFragment:M});W.shadowRoot.appendChild(M);return W.shadowRoot};
Z.prototype._takeAttributes=function(){for(var M=this.hostElement.attributes,W=0;W<M.length;W++){var z=M[W],c=void 0,I=void 0;(I=(c=this).__attributeReaction)==null||I.call(c,z.name,null,z.value)}};
Z.prototype._readyClients=function(){h.prototype._readyClients.call(this);this.root=this};
Z.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);h.prototype.connectedCallback.call(this)};
_.ze.Object.defineProperties(Z,{template:{configurable:!0,enumerable:!0,get:function(){return Z.prototype._template}}});
return Z}),qil=I1(function(h){var E=function(){return h.apply(this,arguments)||this};
_.f(E,h);E.prototype.created=function(){if(this.__notifyEffects)for(var g=_.G(Object.values(this.__notifyEffects)),Z=g.next();!Z.done;Z=g.next()){Z=_.G(Z.value);for(var M=Z.next();!M.done;M=Z.next())M.value.fn=Zjz}if(this.__reflectEffects)for(g=_.G(Object.values(this.__reflectEffects)),Z=g.next();!Z.done;Z=g.next())for(Z=_.G(Z.value),M=Z.next();!M.done;M=Z.next())M.value.fn=M4Z};
E.prototype._addEventListenerToNode=function(g,Z,M){g=gp(g);ng(g,Z,M)||h.prototype._addEventListenerToNode.call(this,g,Z,M)};
E.prototype._removeEventListenerFromNode=function(g,Z,M){g=gp(g);X9(g,Z,M)||h.prototype._removeEventListenerFromNode.call(this,g,Z,M)};
E.prototype._propertiesChanged=function(g,Z,M){if(this.__dataToNotify&&this.__notifyEffects)for(var W=_.G(Object.keys(this.__dataToNotify)),z=W.next();!z.done;z=W.next()){z=z.value;var c=g6q(z);this.__notifyEffects[c]||delete this.__dataToNotify[z]}else this.__dataToNotify=null;h.prototype._propertiesChanged.call(this,g,Z,M)};
E.prototype.fire=function(g,Z,M){Z=Z===void 0?{}:Z;var W;return _.Ra(gp((W=M==null?void 0:M.node)!=null?W:this),g,Z,M)};
E.prototype._ensureAttribute=function(g,Z){var M=gp(this);M.hasAttribute(g)||Aa(M,Z,g)};
E.prototype.isLightDescendant=function(g){var Z=gp(this);return gp(Z)!==g&&_.UB(Z).contains(g)&&_.UB(Z).getRootNode()===_.UB(g).getRootNode()};
return E});
_.OJ.ready=function(){var h;((h=this.hostElement)!=null?h:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var E;((E=this.hostElement)!=null?E:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.F3._subscribeIronResize=function(h){var E;((E=h.hostElement)!=null?E:h).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.F3._unsubscribeIronResize=function(h){var E;((E=h.hostElement)!=null?E:h).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var GS4=[Array,Boolean,Date,Number,Object,String],MB=function(h,E,g,Z){this.polySiInfo=h;this.polySiParams=E;this.polySiContext=g;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;Z||this instanceof HTMLElement&&(Z=this);if(!Z)throw Error("Pg");this.allowedProps=E.allowedProps;this.hostElement=Z;this.is=h.is;this.upgradeDisabled=!!E.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");h=new Set(E.reactiveSchemas.filter(function(M){return M.type!==
"observe"}).map(function(M){return M.propertyKey}));
this.signalProxy=new Gr(this,void 0,{reactiveProps:h,reactivityMode:E.reactivityMode});this.__dataHasAccessor={};E=_.G(E.reactiveSchemas);for(h=E.next();!h.done;h=E.next())h=h.value,h.type==="signal"&&(this.__dataHasAccessor[h.propertyKey]=!0);this.upgradeDisabled||fSl(this)};
MB.prototype.getExtraMethodsToForward=function(){return[]};
var fSl=function(h){h.polySiContext.didRegister||(h.registered(),h.polySiContext.didRegister=!0);h.polySiContext.finalizedTemplate||(h.polySiContext.finalizedTemplate={},h.polySiParams.templateGetter&&(h.polySiContext.finalizedTemplate.processedTemplate=Ond(h.polySiParams.templateGetter,h.polySiParams.is)));NLD(h);var E=h.hostElement;E.loggingStatus!=null||(E.loggingStatus={});E.loggingStatus.isInitializing=!0;Pm(function(){return void h.created()});
E.loggingStatus.isInitializing=!1;h.isPolySiElementConnected&&tmH(h)},tmH=function(h){h.didCallReady||(Pm(function(){return void h.ready()}),h.didCallReady=!0);
h.isAttached=!0;h.attached()};
_.p=MB.prototype;_.p.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||tmH(this)};
_.p.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.p.attributeChangedCallback=function(h,E,g){if(this.upgradeDisabled)h==="disable-upgrade"&&g===null&&(this.upgradeDisabled=!1,fSl(this));else if(E!==g){var Z=_.SN(h),M=this.polySiContext.typesForSignals[Z];if(M&&(!this.reflecting||_.J("polysi_attribute_changed_serializing_killswitch"))){switch(M){case Object:try{var W=JSON.parse(g)}catch(c){W=g}break;case Array:try{W=JSON.parse(g)}catch(c){W=null}break;case Date:W=isNaN(g)?String(g):Number(g);W=new Date(W);break;case Boolean:W=g!==null;break;case Number:W=
Number(g);break;default:W=g}this[Z]=W}Z=_.G(this.polySiParams.behaviors);for(M=Z.next();!M.done;M=Z.next())W=void 0,(W=M.value.attributeChanged)==null||W.call(this,h,E,g);var z;(z=this.attributeChanged)==null||z.call(this,h,E,g)}};
_.p.attributeChangedCallbackWrapper=function(h,E,g){this.attributeChangedCallback(h,E,g)};
_.p.setPropertiesFromInitialAttributeValues=function(){for(var h=0;h<this.hostElement.attributes.length;h++){var E=this.hostElement.attributes[h];(E.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(E.name))&&this.attributeChangedCallback(E.name,null,E.value)}};
_.p.created=function(){this.provide=this.polySiParams.provide;var h;(h=this.initializeInjection)==null||h.call(this);h=_.G(this.polySiParams.reactiveSchemas);for(var E=h.next();!E.done;E=h.next())E=E.value,E.type==="signal"&&(this.mutablePropNames.add(E.propertyKey),Tw(this.signalProxy,E.propertyKey));pGz(this,this.polySiInfo,this.polySiParams.behaviors);h=_.G(this.polySiParams.reactiveSchemas);for(E=h.next();!E.done;E=h.next())E=E.value,E.type==="signal"&&E.value!==void 0&&(this.signalProxy.model[E.propertyKey]=
typeof E.value==="function"?E.value.call(this):E.value);if(this.polySiParams.signalProperties)for(h=_.G(this.polySiParams.signalProperties),E=h.next();!E.done;E=h.next()){E=E.value;var g=void 0;((g=this.__signalCache)==null?0:g.has(E))||(this.signalProxy.model[E]=void 0)}jwk||SiC(this);WW$(this);h=_.G(this.polySiParams.behaviors);for(E=h.next();!E.done;E=h.next())g=void 0,(g=E.value.created)==null||g.call(this);var Z;(Z=this.polySiInfo.created)==null||Z.call(this)};
_.p.registered=function(){var h=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var E=Object.getPrototypeOf(this);E.addReactiveSchema=function(c){h.polySiParams.reactiveSchemas.push(c)};
for(var g=_.G(this.polySiParams.behaviors),Z=g.next();!Z.done;Z=g.next()){var M=void 0;(M=Z.value.beforeRegister)==null||M.call(E)}var W;(W=this.polySiInfo.beforeRegister)==null||W.call(E);E.addReactiveSchema=a5$;g=_.G(this.polySiParams.behaviors);for(Z=g.next();!Z.done;Z=g.next())M=void 0,(M=Z.value.registered)==null||M.call(E);var z;(z=this.polySiInfo.registered)==null||z.call(E)};
_.p.ready=function(){var h;(h=this.beforeReady)==null||h.call(this);jwk&&SiC(this);var E;if(h=(E=this.polySiContext.finalizedTemplate)==null?void 0:E.processedTemplate){h=$1W(h.template,h.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:h.hasInsertionPoint,thisCtx:this});E=h.nodesById;h=h.root;var g=this.hostElement;var Z=Z===void 0?!1:Z;g=(0,_.C3)(g);if(!g.attachShadow)throw Error("Hd");if(!g.shadowRoot||Z)g.attachShadow({mode:"open",shadyUpgradeFragment:h}),g.shadowRoot.appendChild(h);
this.root=g.shadowRoot;this.$=E}xSF(this);Z=_.G(this.polySiParams.behaviors);for(E=Z.next();!E.done;E=Z.next())h=void 0,(h=E.value.ready)==null||h.call(this);var M;(M=this.polySiInfo.ready)==null||M.call(this)};
_.p.attached=function(){for(var h=_.G(this.polySiParams.behaviors),E=h.next();!E.done;E=h.next()){var g=void 0;(g=E.value.attached)==null||g.call(this)}var Z;(Z=this.polySiInfo.attached)==null||Z.call(this)};
_.p.detached=function(){for(var h=_.G(this.polySiParams.behaviors),E=h.next();!E.done;E=h.next()){var g=void 0;(g=E.value.detached)==null||g.call(this)}var Z;(Z=this.polySiInfo.detached)==null||Z.call(this)};
var NLD=function(h){for(var E=_.G(h.polySiParams.behaviors),g=E.next();!g.done;g=E.next())if(g=g.value,g.listeners)for(var Z in g.listeners)Hn$(h,h.hostElement,Z,g.listeners[Z]);if(h.polySiInfo.listeners)for(var M in h.polySiInfo.listeners)Hn$(h,h.hostElement,M,h.polySiInfo.listeners[M])},Hn$=function(h,E,g,Z,M){h=KRW(h,Z,M);
ng(E,g,h)||E.addEventListener(g,h);return h},SiC=function(h){for(var E=_.G(h.polySiParams.reactiveSchemas),g=E.next();!g.done;g=E.next())g=g.value,g.type==="compute"||g.type==="computeWithMethod"?Yb$(h.signalProxy,g,h):g.type==="redux"?kUM(h.signalProxy,g,h.store):g.type==="signal"&&g.readOnly&&VBx(h.signalProxy,g)},xSF=function(h){for(var E=_.G(h.polySiParams.reactiveSchemas),g=E.next(),Z={};!g.done;Z={schema$jscomp$12:void 0},g=E.next())Z.schema$jscomp$12=g.value,Z.schema$jscomp$12.type==="notify"?
FRN(h.signalProxy,Z.schema$jscomp$12,h.hostElement):Z.schema$jscomp$12.type==="observe"?A$N(h.signalProxy,Z.schema$jscomp$12,h):Z.schema$jscomp$12.type==="reflect"&&h.signalProxy.effect(function(W){return function(){var z=h.signalProxy.getWithPath([W.schema$jscomp$12.propertyKey]);
h.reflecting=!0;peq(h.hostElement,W.schema$jscomp$12.propertyKey,z,!0);h.reflecting=!1}}(Z));
if(h.reflectedAttributes)for(E=_.G(Object.entries(h.reflectedAttributes)),Z=E.next(),g={};!Z.done;g={key$jscomp$934:void 0,value$jscomp$9821:void 0},Z=E.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;g.key$jscomp$934=Z;g.value$jscomp$9821=M;h.signalProxy.effect(function(W){return function(){h.reflecting=!0;peq(h.hostElement,W.key$jscomp$934,(0,W.value$jscomp$9821)(),!0);h.reflecting=!1}}(g))}};
_.p=MB.prototype;_.p._setPendingProperty=function(h,E){this.set(h,E);return!1};
_.p._enableProperties=function(){};
_.p._setPendingPropertyOrPath=function(h,E){this.notifyPath(h,E);return!1};
_.p._addPropertyEffect=function(){};
_.p._stampTemplate=function(){throw Error("Qg");};
_.p.fire=function(h,E,g){E=E===void 0?{}:E;g=g===void 0?{}:g;var Z,M,W={bubbles:(Z=g.bubbles)!=null?Z:!0,cancelable:!!g.cancelable,composed:(M=g.composed)!=null?M:!0},z;return _.Ra(cZZ((z=g.node)!=null?z:this.hostElement),h,E,W)};
_.p.get=function(h,E){var g=FT(h);return E?O7z(E,g):h==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(g)};
_.p.linkPaths=function(){};
_.p.listen=function(h,E,g){h=cZZ(h);this.boundListeners!=null||(this.boundListeners=new WeakMap);var Z=this.boundListeners.get(h);Z||(Z={},this.boundListeners.set(h,Z));var M=E+g;Z[M]||(Z[M]=Hn$(this,h,E,g))};
_.p.notifyPath=function(h,E){this.signalProxy.notifyPath(FT(h),arguments.length===2?{value:E}:void 0)};
_.p.canNotifyPath=function(h){return this.mutablePropNames.has(h)&&!C7V(this.signalProxy,h)};
_.p.notifySplices=function(h,E){this.signalProxy.notifySplices(FT(h),E)};
_.p.pop=function(h){var E=this.signalProxy;h=FT(h);var g=_.G(h);h=g.next().value;g=E9(g);return Tw(E,h).pop(g)};
_.p.push=function(h){var E=_.VF.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[FT(h)].concat(_.$E(E)))};
_.p.set=function(h,E,g){if(g)throw Error("Rg");h==="hidden"?this.hostElement.hidden=!!E:this.signalProxy.setWithPath(FT(h),E)};
_.p.setProperties=function(h){h=_.G(Object.entries(h));for(var E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;this[E]=g}};
_.p.splice=function(h,E,g){var Z=_.VF.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[FT(h),E,g].concat(_.$E(Z)))};
_.p.unlinkPaths=function(){};
_.p.unlisten=function(h,E,g){h=cZZ(h);if(this.boundListeners){var Z=this.boundListeners.get(h);if(Z){g=E+g;var M=Z[g];M&&(X9(h,E,M)||h.removeEventListener(E,M),delete Z[g])}}};
_.p.unshift=function(h){var E=_.VF.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[FT(h)].concat(_.$E(E)))};
_.ze.Object.defineProperties(MB.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 C6q=[Array,Boolean,Date,Number,Object,String];var qXZ=!1;var zr=function(){var h=HTMLElement.apply(this,arguments)||this;h.restamp=!1;h.notifyDomChange=!1;h.JSC$13538_didCallConnected=!1;h.JSC$13538_renderDebouncer=null;h.disableTemplateUpdateSignalImpl=WK()?void 0:_.Bm(!1,void 0,"Ofhkwb");var E;h.getDisableTemplateUpdate=(E=h.disableTemplateUpdateSignalImpl)==null?void 0:E[0];var g;h.setDisableTemplateUpdate=(g=h.disableTemplateUpdateSignalImpl)==null?void 0:g[1];return h};
_.f(zr,HTMLElement);var w1f=function(h){h.conditionSignalImpl!=null||(h.conditionSignalImpl=new p6(_.Bm(!1,void 0,"gE52Fb")));return h.conditionSignalImpl};
_.p=zr.prototype;_.p.showHideChildren=function(h){DSA(this,h,this.if)};
_.p.attributeChangedCallback=function(h,E,g){if(this.JSC$13538_didCallConnected)throw Error("Vg`"+h);h==="notify-dom-change"?this.notifyDomChange=g!==null:h==="restamp"&&(this.restamp=g!==null)};
_.p.debounceRender=function(){this.JSC$13538_renderDebouncer=_.qu(this.JSC$13538_renderDebouncer,kw,this.JSC$13538_renderImpl.bind(this));_.f2(this.JSC$13538_renderDebouncer)};
_.p.disconnectedCallback=function(){var h=(0,_.C3)(this).parentNode;(!h||h.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in h&&!h.host)&&lSn(this)};
_.p.connectedCallback=function(){var h=this;this.JSC$13538_didCallConnected=!0;USC?f5O():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.J("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){w1f(h).getWithPath([]);h.debounceRender()})};
_.p.render=function(){_.xi()};
_.p.JSC$13538_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var h=this.if,E=!1;if(h){this.hasInstance()||(r3M(this),E=!0);a:{var g=(0,_.C3)(this).parentNode;if(this.hasInstance()){var Z=this.instance.children;if((Z==null?0:Z.length)&&(0,_.C3)(this).previousSibling!==Z[Z.length-1])for(var M=0;M<Z.length;M++)(0,_.C3)(g).insertBefore(Z[M],this)}else{if(!g){g=!1;break a}mSA(this,g)}g=!0}if(!g)return}else this.restamp&&lSn(this);DSA(this,!1,h);h&&!E&&r3M(this);L0n&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.p.hasInstance=function(){return!!this.instance};
var mSA=function(h,E){var g=h.parentSignalProxy;if(WK()){var Z=_.G(_.Bm(!0,void 0,"dkzufd"));var M=Z.next().value;Z=Z.next().value;g=h.parentSignalProxy}else{var W;var z=new Gr((W=vCf(h))!=null?W:{},function(I){var B=Tw(h.parentSignalProxy,I).getChangeRecordSignal([]);I=_.Bm(void 0,void 0,"iG8Uwe");var U=new p6(I);z.effect(function(){if(h.getDisableTemplateUpdate&&!h.getDisableTemplateUpdate()){var L=B();U.notifyPath(FT(L.path),{value:L.value})}});
return U});
h.parentSignalProxy.childSignalProxies.push(z);var c=g=z}g=$1W(h.templateInfo,h.templateInfo.nodeInfoList,g,{eventListenerHost:h.eventListenerHost,hasInsertionPoint:h.templateInfo.hasInsertionPoint,thisCtx:h.eventListenerHost,enabledSignal:WK()?M:void 0,getModel:function(){return vCf(h)}}).root;
h.instance={root:g,children:[],hidden:!1,signalProxy:c,getTemplateUpdatesEnabled:M,setTemplateUpdatesEnabled:Z};c=_.G(g.childNodes);for(M=c.next();!M.done;M=c.next())h.instance.children.push(M.value);(0,_.C3)(E).insertBefore(h.instance.root,h)},vCf=function(h){if((h=h.parentSignalProxy.model)&&!h.hostElement){var E={},g;
for(g in h)h.hasOwnProperty(g)&&(E[g]=h[g]);return E}},lSn=function(h){if(h.instance){var E=h.instance.children;
if(E.length){var g=(0,_.C3)(E[0]).parentNode;if(g){g=(0,_.C3)(g);for(var Z=0;Z<E.length;Z++)g.removeChild(E[Z])}}WK()?h.instance.setTemplateUpdatesEnabled(!1):h.instance.signalProxy.dispose();h.instance=void 0}},DSA=function(h,E,g){E=E||!g;
h.instance&&h.instance.hidden!==E&&(h.instance.hidden=E,ecx(E,h.instance.children))},r3M=function(h){if(WK()){var E=h.instance;
E&&Kw(h.parentSignalProxy.owner,function(){return!E.getTemplateUpdatesEnabled()})&&E.setTemplateUpdatesEnabled(!0)}else h.setDisableTemplateUpdate(!1)};
_.ze.Object.defineProperties(zr.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var h=this;return Kw(this.parentSignalProxy.owner,function(){return w1f(h).getWithPath([])})},
set:function(h){h||(WK()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));w1f(this).setWithPath([],!!h)}}});
_.ze.Object.defineProperties(zr,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",zr);var HYl=[],aU=function(){var h=HTMLElement.apply(this,arguments)||this;h.as="item";h.indexAs="index";h.itemsIndexAs="itemsIndex";h.targetFramerate=20;h.notifyDomChange=!1;h.isDetached=!1;h.JSC$13545_renderDebouncer=null;h.instances=[];h.chunkingId=null;h.chunkCount=null;h.shouldMeasureChunk=!1;h.shouldContinueChunking=!1;h.renderStartTime=null;h.JSC$13545_didCallConnected=!1;return h};
_.f(aU,HTMLElement);var $Sm=function(h){h.itemSignalImpl!=null||(h.itemSignalImpl=new p6(_.Bm(HYl,void 0,"YBrqgf")));return h.itemSignalImpl},K0B=function(h,E){Array.isArray(E)||(E=HYl);
$Sm(h).setWithPath([],E)};
_.p=aU.prototype;_.p.showHideChildren=function(h){for(var E=_.G(this.instances),g=E.next();!g.done;g=E.next())ecx(h,g.value.children)};
_.p.notifyPath=function(h,E){h=FT(h);h[0]==="items"&&(h.length===1?K0B(this,E):$Sm(this).setWithPath(h.slice(1),E))};
_.p.canNotifyPath=function(h){return h==="items"};
_.p.attributeChangedCallback=function(h,E,g){if(this.JSC$13545_didCallConnected)throw Error("Wg`"+h);h==="as"?this.as=g:h==="index-as"?this.indexAs=g:h==="items-index-as"?this.itemsIndexAs=g:h==="initial-count"?this.initialCount=Number(g):h==="notify-dom-change"?this.notifyDomChange=g!==null:h==="target-framerate"&&(this.targetFramerate=Number(g))};
_.p.disconnectedCallback=function(){this.isDetached=!0;for(var h=0;h<this.instances.length;h++)OYk(this,h);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.p.connectedCallback=function(){var h=this,E=$Sm(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var M=E(),W=FT(M.path);if(W[0]===void 0||W[0]==="splices"||W[0]==="length")h.debounceRender();else{var z=W[0];if(z=h.instances[typeof z==="string"?Math.floor(Number(z)):z])W=[h.as].concat(_.$E(W.slice(1))),z.signalProxy.notifyPath(W,M)}});
this.JSC$13545_didCallConnected=!0;USC?f5O():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var g=(0,_.C3)((0,_.C3)(this).parentNode),Z=0;Z<this.instances.length;Z++)g.insertBefore(this.instances[Z].root,this);this.chunkingId&&this.render()}};
_.p.debounceRender=function(){this.JSC$13545_renderDebouncer=_.qu(this.JSC$13545_renderDebouncer,kw,this.JSC$13545_renderImpl.bind(this));_.f2(this.JSC$13545_renderDebouncer)};
_.p.render=function(){this.debounceRender();_.xi()};
_.p.JSC$13545_renderImpl=function(){var h=this;if(!this.parentSignalProxy.isDisposed){var E=this.items,g=nCD(this,E.length);X1A(this,E,g);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){h.chunkingId=null;if(h.shouldMeasureChunk){var Z=performance.now()-h.renderStartTime;h.chunkCount=Math.round(Math.ceil(1E3/h.targetFramerate)/Z*h.chunkCount)||1}h.shouldContinueChunking&&h.debounceRender()}));
L0n&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var nCD=function(h,E){var g=E,Z=h.instances.length;if(h.initialCount){if(h.chunkCount){var M=Math.min(Math.max(E-Z,0),h.chunkCount);g=Math.min(Z+M,E)}else g=Math.min(E,h.initialCount),M=Math.max(g-Z,0),h.chunkCount=M||1;h.shouldMeasureChunk=M===h.chunkCount;h.shouldContinueChunking=g<E;h.renderStartTime=performance.now()}return g},X1A=function(h,E,g){for(var Z=0;Z<g;Z++){var M=h.instances[Z],W=E[Z];
M?(M.signalProxy.setWithPath([h.as],W),M.signalProxy.setWithPath([h.indexAs],Z)):Yik(h,W,Z)}for(E=h.instances.length-1;E>=Z;E--)g=h,M=E,OYk(g,M),_.G(g.instances.splice(M,1)).next().value.signalProxy.dispose()},OYk=function(h,E){h=h.instances[E];
E=(0,_.C3)(h.root);for(var g=0;g<h.children.length;g++)E.appendChild(h.children[g])},Yik=function(h,E,g){var Z={};
E=Object.assign({},swA(h),(Z[h.as]=E,Z[h.indexAs]=g,Z[h.itemsIndexAs]=g,Z));var M=new Gr(E,function(z){if(z!==h.as&&z!==h.indexAs){if(z===h.itemsIndexAs)return Tw(M,h.indexAs);var c=Tw(h.parentSignalProxy,z).getChangeRecordSignal([]);z=_.Bm(void 0,void 0,"T21Pqc");var I=new p6(z);M.effect(function(){var B=c();I.notifyPath(FT(B.path),{value:B.value})});
return I}});
h.parentSignalProxy.childSignalProxies.push(M);Z=$1W(h.templateInfo,h.templateInfo.nodeInfoList,M,{eventListenerHost:h.eventListenerHost,getModel:function(){var z={};return Object.assign({},swA(h),(z[h.as]=M.model[h.as],z[h.indexAs]=M.model[h.indexAs],z[h.itemsIndexAs]=M.model[h.indexAs],z))},
hasInsertionPoint:h.templateInfo.hasInsertionPoint,thisCtx:h.eventListenerHost,methodInvocationRequirement:dSD,enabledSignal:h.stampingEnabled}).root;E={root:Z,children:[],signalProxy:M};Z=_.G(Z.childNodes);for(var W=Z.next();!W.done;W=Z.next())E.children.push(W.value);Z=(Z=h.instances[g+1])?Z.children[0]:h;(0,_.C3)((0,_.C3)(h).parentNode).insertBefore(E.root,Z);h.instances[g]=E},swA=function(h){if((h=h.parentSignalProxy.model)&&!h.hostElement){var E={},g;
for(g in h)h.hasOwnProperty(g)&&(E[g]=h[g]);return E}};
aU.prototype.itemForElement=function(h){var E=this,g=this.instances.find(function(Z){return Z.children.includes(h)});
if(g)return Kw(this.parentSignalProxy.owner,function(){return g.signalProxy.getWithPath([E.as])})};
aU.prototype.indexForElement=function(h){var E=this.instances.findIndex(function(g){return g.children.includes(h)});
return E>=0?E:void 0};
_.ze.Object.defineProperties(aU.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var h=this;return Kw(this.parentSignalProxy.owner,function(){return $Sm(h).getWithPath([])})},
set:function(h){K0B(this,h)}},
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}}});
_.ze.Object.defineProperties(aU,{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",aU);var VmD,kOA;_.c4=new _.Ps("STATE_STORE_TOKEN");VmD=new _.Ps("SELECT_TOKEN");kOA=new _.Ps("DISPATCH_TOKEN");var Dzz={getSelectFn:function(){var h;return(h=_.GF().resolve(_.pl(VmD)))!=null?h:N8a},
getDispatchFn:function(){var h;return(h=_.GF().resolve(_.pl(kOA)))!=null?h:_.pL().dispatch.bind(_.pL())},
getAppStore:function(){return _.GF().resolve(_.c4)}},t4V,wGz=!1;var v6Z,cYA={traceAllComponents:_.J("web_tracing_all_components"),exportToCsi:_.J("web_tracing_export_to_csi"),exportBreadcrumbs:_.J("web_enable_tracing"),bufferSize:_.cx("web_max_tracing_events"),enabledSpansArray:_.oC("web_tracing_enabled_spans"),exportToDevTools:_.J("web_tracing_export_to_devtools")};v6Z=new i0f;var n6z=function(){};var $z$=void 0;var y3B=function(){};
y3B.prototype.hasAttribute=function(h){if(h==="dir")return!1;if(h==="disable-upgrade"){var E,g;return(g=(E=this.hostElement)==null?void 0:E.hasAttribute("disable-upgrade"))!=null?g:!1}throw Error("Xg`"+h);};
y3B.prototype.attributeChangedCallbackWrapper=function(h,E,g){if(h==="disable-upgrade"&&this.__isUpgradeDisabled&&g===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var Z;((Z=this.hostElement)!=null?Z:this).isConnected&&this.connectedCallback()}else E===g||this.__isReflecting||this.attributeChangedCallback(h,E,g)};
y3B.prototype.getExtraMethodsToForward=function(){for(var h=this,E=[],g=_.G(F0H),Z=g.next(),M={};!Z.done;M={tagName$jscomp$54:void 0,name$jscomp$598:void 0},Z=g.next())M.name$jscomp$598=Z.value,Z=void 0,M.name$jscomp$598==="_setPendingProperty"?(M.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),Z=function(W){return function(z,c,I){vb(W.tagName$jscomp$54,z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return h._setPendingProperty(z,c,I)}}(M)):Z=function(W){return function(){return h[W.name$jscomp$598].apply(h,
_.$E(_.VF.apply(0,arguments)))}}(M),E.push([M.name$jscomp$598,
Z]);return E};
for(var s4d=qil(eND((0,_.K2)(y3B))),FWa=["disabled","disable-upgrade"],A3k=(0,_.K2)(function(){}),TLD=new Set(Object.getOwnPropertyNames(A3k.prototype)),Q4$=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.$E(TLD))),T8z=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),F0H=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),bYB=new Set([].concat(_.$E(T8z),_.$E(F0H),_.$E(TLD))),uGf=_.G(bYB),QwA=uGf.next();!QwA.done;QwA=uGf.next())Bsd.add(QwA.value);var u4u={created:function(){WW$(this);this.initializeInjection()}};var zNu=!1,Iu=window.ShadyDOM,BLa=["appendChild","insertBefore","removeChild","replaceChild"],PHx=[Node];Iu&&PHx.push(Iu.Wrapper);var J3M,eNd,NLd={};var Ru,PK=new Set;var mSN=new Set("context didCallReady is info params signalProxy".split(" ")),HYO="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),$SW="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var hZB=fQ({entities:fLV}),EjM=new pm(hZB);var gjl=function(){return _.wD.apply(this,arguments)||this};
_.f(gjl,_.wD);_.ze.Object.defineProperties(gjl.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return EjM}}});
_.Y([_.DM()],gjl);_.ik=[MJ.prototype,gjl.prototype];_.oU={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var h=this,E={};setTimeout(function(){var g;return _.Ra((g=h.hostElement)!=null?g:h,"yt-live-chat-add-tooltip-target",E)},0);
this.handler_=E.handler},
detached:function(){if(this.handler_){var h;this.handler_.removeElementFromSupportingTooltips((h=this.hostElement)!=null?h:this)}this.handler_=null}}};_.JW=new _.Ps("ICON_MANAGER_TOKEN");var ZNF=[48,20,18,16,15,13,12],pEW=new Map,hZ$=new Set,bY$=new Set,QwN=new Set,TL4=new Set,uGu=new Set,gjz=new Promise(function(h){var E=!1,g=!1,Z=!1,M=[],W=function(z){if("detail"in z)if(z=z.detail,z.name==="yt-icons")Eja(z),E=!0;else if(z.name==="yt-sys-icons")Eja(z),g=!0;else{var c;((c=z.name)==null?0:c.includes("yt-sys-icons"))&&z.size!==24&&(Eja(z,!0),M.push(z.size),M.length===ZNF.length&&(Z=!0))}E&&g&&Z&&(window.removeEventListener("iron-iconset-added",W),h())};
window.addEventListener("iron-iconset-added",W)}),MhW=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"]]);_.IU={};_.IU.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Wp,computeHref_:function(h,E){E=E===void 0?!1:E;if(!h||h.commandExecutorCommand)return null;var g=T5x(h,E);return E||g!==null?g?_.J("enable_polymer_resin")?_.Yr(g).toString():g:null:(_.O$(new _.xX("computeHref was null",this.is,h)),null)},
computeOptionalHref_:function(h){return this.computeHref_(h,!0)},
computeNofollow_:function(h){return h?nxN(h)?"nofollow":null:null},
computeIcon_:function(h){return h&&h.iconType?_.CL(h.iconType):""},
resolveCommand:function(h,E,g){E=E===void 0?{}:E;return _.qB(h,this.hostElement,E,g===void 0?!1:g)}};var WFf,RU;_.Mhm={};WFf=null;
RU={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_=g9M(this.viewroot));_.hW(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var h=this;this.unobserve_();if(_.J("kevlar_vimio_use_shared_monitor"))iNO(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 E=[];this.visibilityOptionVisible_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return h.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return h.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return h.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=E}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){GoV(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 h=_.Vw(this.parentNode,function(g){var Z,M=(Z=g.polymerController)!=null?Z:g;return!!M.getVisibilityObserverForChild&&M.getVisibilityObserverForChild()},!0);
if(h){var E;this.localVisibilityObserver_=((E=h.polymerController)!=null?E:h).getVisibilityObserverForChild()}else WFf||(WFf=g9M()),this.localVisibilityObserver_=WFf;return this.localVisibilityObserver_},visibilityCallback:function(h){h?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.J("kevlar_use_vimio_behavior")||(RU={});RU&&!_.J("kevlar_use_vimio_behavior")&&(delete RU.attached,delete RU.detached);_.Mhm.YtVisibilityObserverBehavior=[RU];var pEm={};pEm.YtVisualElementBehavior=[_.Mhm.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.J("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.J("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var h=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportShown(this,void 0,h)}},
onHidden:function(){if(_.J("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.J("kevlar_vimio_use_shared_monitor")){var h=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportHidden(this,void 0,h)}},
getVisibilityLogger:function(){return _.J("kevlar_use_vimio_behavior")?_.NB():null},
shouldSkipLogging:function(){if(_.nF("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var h=this.getParentRenderer&&this.getParentRenderer();if(!h)return!1;var E,g=(E=h.polymerController)!=null?E:h;if(!g.data)return!1;h=this.data.trackingParams;h=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:h;var Z;E=(Z=g.data)==null?void 0:Z.trackingParams;var M,W;E=((M=g.data)==null?0:M.loggingDirectives)?(W=g.data)==null?void 0:W.loggingDirectives.trackingParams:E;return h&&E&&h===
E}}];var RZz=new Map,mT;var V7Z=function(h){this.layer=h},Re=function(h){return h.layer!==void 0?h.layer:h.parent?Re(h.parent):h.layer=0};var dtz;_.T={};dtz=0;_.T.YtRendererBehavior=[_.IU.YtComponentBehavior,pEm.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_:_.J("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var h,E;(E=(h=this.monitorScrollElement)!=null?h:this.hostElement)==null||E.removeEventListener("scroll",_.qm(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();oj4(this.hostElement);Uzl(_.bc(),this.hostElement);pe.delete(this.hostElement)},
registerRenderer:function(h){var E;((E=h.polymerController)!=null?E:h).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(h),this.markDirty())},
unregisterRenderer_:function(h){this.useVimio_||(this.childCache_.delete(h),this.markDirty())},
attached:function(){var h=this,E=this.getParentRenderer();if(E){var g,Z,M;(Z=(g=(M=E.polymerController)!=null?M:E).registerRenderer)==null||Z.call(g,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var W,z;(z=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||z.addEventListener("scroll",_.qm(this,this.onScroll))}_.KP.addJob(function(){PyW(h.hostElement)},8);
g=new V7Z(this.screenLayer||void 0);(E=pe.get(E))&&E.layerNode&&(g.parent=E.layerNode);E={};bfO(this.hostElement,(E.isRenderer=!0,E.layerNode=g,E[kYx]=this.data,E))},
getParentRenderer:function(){for(var h=this.hostElement.parentNode,E,g;h&&((E=pe.get(h))==null||!E.isRenderer)&&!((g=h.polymerController)!=null?g:h).isRenderer_;)h=h.parentNode||h.host;return h},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.J("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Xn("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.J("debug_web_ve_data")&&this.data.trackingParams){var h="";try{h=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(g){_.$W(g)}if(h){var E=ROz(h,1);E!==void 0&&(this.hostElement.dataset.veIndex=String(E));h=ROz(h,2);
h!==void 0&&(this.hostElement.dataset.ve=String(h))}}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,_.J("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.rp(this.data.loggingDirectives.trackingParams)),this.visualElement=_.tW(_.SQ(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var h=this.data.targetId;_.j4M(_.bc(),h,this.hostElement)}else Uzl(_.bc(),this.hostElement)},
onScroll:function(){var h=Date.now();h-this.lastHandledScroll_<50||(this.lastHandledScroll_=h,this.markDirty())},
markDirty:function(){_.J("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():Cya(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var h=this.getParentRenderer();if(h&&(h=pe.get(h))&&h.layerNode)return Re(h.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.$E(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var h=0;h<this.data.impressionEndpoints.length;h++)this.sendImpression(this.data.impressionEndpoints[h]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(h){h.clickTrackingParams&&delete h.clickTrackingParams;var E,g;(h==null?0:(E=h.commandMetadata)==null?0:(g=E.webCommandMetadata)==null?0:g.sendPost)?_.LZ(this.hostElement,[h,{impression:!0}]):_.jj(this.hostElement,[h],this.hostElement)},
logExplicitClick:function(h){var E=_.sH(this.getScreenLayer());if(E){var g,Z=(g=h.polymerController)!=null?g:h;h=Z.visualElement;Z=Z.trackingParams||Z.clickTrackingParams;!h&&Z&&(h=_.rp(Z));h&&_.Z$(E,h)}}}];var GoH={},P4=function(){return _.wD.apply(this,arguments)||this};
_.f(P4,_.wD);P4.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
P4.prototype.onPdgItemBehaviorClick=P4.prototype.onPdgItemBehaviorClick;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],P4.prototype,"data",void 0);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],P4.prototype,"onPdgItemBehaviorClick",null);_.Y([_.DM()],P4);GoH.YtPdgLiveChatItemBehavior=[P4.prototype,_.T.YtRendererBehavior];var zZk;var aOl;_.B4={};_.B4.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Uh=function(){var h=cl.apply(this,arguments)||this;h.switchTemplateAtRegistration=!1;return h};
_.f(Uh,cl);Uh.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||fO$(this),_.hcu(this,"doRender"),this.doRender())};
Uh.prototype.debounceRender=function(){this.templatingFn&&_.EQ(this,"doRender",this.doRender)};
Uh.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.$W(Error("gh"))};
Uh.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.Y([$Gz()],Uh);var cPf=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,L6={},xtV=(L6[1]={filterString:null,isUnwrappable:null,unwrap:null},L6[2]={filterString:function(h,E,g){return B3(g)},
isUnwrappable:function(h){return h instanceof Fj},
unwrap:function(h){return ux(h)}},L6[3]={filterString:function(h,E,g){return cPf.test(g)?g:Xj.toString()},
isUnwrappable:function(h){return Hi(h)},
unwrap:function(h){return _.$r(h)}},L6[4]={filterString:function(){return Xj.toString()},
isUnwrappable:function(h){return h instanceof xr},
unwrap:function(h){return _.lx(h).toString()}},L6[5]={filterString:function(h,E,g){return g},
isUnwrappable:function(h){return typeof h==="string"},
unwrap:function(h){return h.toString()}},L6[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(h){return h instanceof _.ZT},
unwrap:function(h){return Wn4(h)}},L6[8]={filterString:function(h,E,g){g=String(g).toLowerCase();
return RIV(h,E,g)?g:"zClosurez"},
isUnwrappable:null,unwrap:null},L6[10]={filterString:null,isUnwrappable:null,unwrap:null},L6);G$[YZ["default"]]=DtW;var lOV=[];(function(){var h=gX;gX=function(E){h==null||h(E);KL(function(){for(var g=0;g<E.length;g++)rPz(E[g])})}})();var iNl=function(){var h=_.wD.apply(this,arguments)||this;h.hasUnmounted=!1;return h};
_.f(iNl,_.wD);_.p=iNl.prototype;_.p.beforeRegister=function(){var h=this.doIdomRender;this.templatingFn?_.$W(Error("fh")):(this.templatingFn=h,this.switchTemplateAtRegistration=!0,S5$(this))};
_.p.attached=function(){};
_.p.detached=function(){rPz(this.hostElement)};
_.p.renderIdom=function(){throw Error("ih");};
_.p.doIdomRender=function(){var h=this;zA$(this.hostElement,function(){h.renderIdom()})};
_.Y([_.DM()],iNl);var ojD=[Uh.prototype,iNl.prototype];var IOD,RZC=function(){return IOD!==void 0?IOD:IOD=document.createElement("template")};
document.head.appendChild(RZC().content);var Pym;var BoD,UtH=function(){return BoD!==void 0?BoD:BoD=document.createElement("template")};
document.head.appendChild(UtH().content);var LFA;var jhH=document.head,dtl=jhH.appendChild,CyM;if(LFA===void 0){var JPH=document.createElement("template");_.N(JPH,"\x3c!--css-build:shady--\x3e");JPH.content.insertBefore(UtH().content.cloneNode(!0),JPH.content.firstChild);LFA=JPH}CyM=LFA;dtl.call(jhH,CyM.content);var eZD,q5l=function(){return eZD!==void 0?eZD:eZD=document.createElement("template")};
document.head.appendChild(q5l().content);var fOM;var Nom=document.head,thH=Nom.appendChild,S5M;if(fOM===void 0){var xtH=document.createElement("template");_.N(xtH,"\x3c!--css-build:shady--\x3e");xtH.content.insertBefore(q5l().content.cloneNode(!0),xtH.content.firstChild);fOM=xtH}S5M=fOM;thH.call(Nom,S5M.content);var wEH=document.head,Dtm=wEH.appendChild,lOH;if(Pym===void 0){var rPC=document.createElement("template");_.N(rPC,"\x3c!--css-build:shady--\x3e");rPC.content.insertBefore(RZC().content.cloneNode(!0),rPC.content.firstChild);Pym=rPC}lOH=Pym;Dtm.call(wEH,lOH.content);var mtl,vjD=function(){return mtl!==void 0?mtl:mtl=document.createElement("template")};
document.head.appendChild(vjD().content);var HNM;_.gu=new _.Ps("DARK_THEME_TOKEN");var Jva=new _.I2("accessibilityProperties");var Ctx=new _.I2("layoutProperties");var e2O=new _.I2("imageType");var $tH={};if("ytAttributedStringLinkHoverColor"in $tH)throw Error("lh`ytAttributedStringLinkHoverColor");(function(h,E){$tH[h]="value"in E&&"unit"in E?ONq(h,E):function(g){try{return E(g)}catch(Z){throw Error("jh`"+h+"`"+Z.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var KFB=function(h){var E=this;this.holdTime=h===void 0?500:h;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(g){var Z=new CustomEvent("LONG_PRESS"),M;(M=g.changedTouches[0].target)==null||M.dispatchEvent(Z)};
this.ontouchstart=function(g){E.longPressTimeout=_.Pw(_.KP,function(){E.onlongpress(g);E.longPressOccurred=!0},E.holdTime)};
this.ontouchmove=function(){_.KP.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!0};
this.ontouchend=function(g){if(E.longPressTimeout&&!E.longPressOccurred&&!E.moveOccurred){var Z;(Z=g.changedTouches[0].target)==null||Z.dispatchEvent(new Event("click"))}_.KP.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!1}};var MTO=function(h,E){KFB.call(this,E);var g=this;this.callback=h;this.onlongpress=function(Z){var M;(M=g.callback)==null||M.call(g,Z)}};
_.f(MTO,KFB);var WpO=function(h,E){var g=Object.assign({},E);h=_.G(new Map([["ontouchstart",h.ontouchstart],["ontouchend",h.ontouchend],["ontouchmove",h.ontouchmove]]));for(var Z=h.next(),M={};!Z.done;M={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},Z=h.next()){var W=_.G(Z.value);Z=W.next().value;W=W.next().value;M.eventName$jscomp$101=Z;M.eventHandler$jscomp$1=W;E[M.eventName$jscomp$101]=function(z){return function(c){var I;(I=g[z.eventName$jscomp$101])==null||I.call(g,c);(0,z.eventHandler$jscomp$1)(c)}}(M)}};_.zF=new _.Ps("COMMAND_HANDLER_TOKEN");var XEu=new _.I2("parallelCommand");var Vhq=new _.I2("performOnceCommand");var sha=new _.I2("serialCommand");var ko$=void 0;var ONF=function(){this.data=[];this.consumer=null};
ONF.prototype.push=function(h){this.consumer?this.consumer(h):this.data.push(h)};var he={};_.Bm(he,void 0,"sgPmTd");_.Bm(null,void 0,"jypsq");_.Bm(null,void 0,"mWiOof");var uIz=new ONF;var h2Z=[Odl,n$H,Xaf,sWf,Y4m,KZD,VqH,kul];var jkz=new _.I2("bracketTextDecorator");var h7=new _.I2("highlightTextDecorator");_.Mi=new _.Ps("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var R24=function(){},njl;
(njl=window.requestIdleCallback)==null||njl.bind(window);var BYN={calledOnce:!1,state:"visible"},PtZ={calledOnce:!1,state:"hidden"};var XEf=new _.Ps("ICON_WIZ_COMPONENT_TOKEN");_.Ni=_.O(function(h){var E=h.icon;var g=h.active;var Z=h.className;var M=h.style;var W=h.dataSelected;var z=h.dataDisabled;var c=h.role;var I=h.animateIcon;var B=h.themeOverride;var U=h.ariaHidden;var L=h.ariaExpanded;var d=h.ariaLabel;var C=h.tabindex;var q=h.id;var w=h.size;var r=h.iconFilter;var v=h.onKeydown;return _.R(_.P,{cond:E,then:function(){var H=_.GF().resolve(XEf);return _.R(H,{icon:E,dataSelected:W,dataDisabled:z,animateIcon:I,themeOverride:B,ariaExpanded:L,tabindex:C,id:q,active:g,size:w,
role:c,className:Z,ariaHidden:U,ariaLabel:d,style:function(){return M!=null&&M()||w==null||!w()?M==null?void 0:M():"width: "+(w==null?void 0:w())+"px;height: "+((w==null?void 0:w())+"px;")},
iconFilter:r,onKeydown:v})}})},"b");
_.Ni.idomCompat={callbacks:{onKeydown:!0}};var Ovx=window.devicePixelRatio||1;var sk4=new Map([["yt_outline_bag_black_24","bag"]]);var j1=function(h){var E=this;this.margin=.1;this.whenInViewportWithMargin=h;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){E.requestScan()});
window.addEventListener("touchend",function(){E.requestScan()});
window.addEventListener("updateui",function(){E.requestScan()});
var g=new _.TD((0,_.DJ)(this.requestScan,this),100);window.addEventListener("scroll",function(){g.fire()},!0);
window.addEventListener("resize",(0,_.DJ)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){E.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.DJ)(this.requestScan,this))};
j1.prototype.observe=function(h){this.observationTargets.includes(h)||this.observationTargets.push(h)};
j1.prototype.unobserve=function(h){this.observationTargets=this.observationTargets.filter(function(E){return E!==h})};
j1.prototype.requestScan=function(){var h=this;this.scanRequested||(KL(function(){Y5M(h)}),this.scanRequested=!0)};
var Y5M=function(h){var E=(1+h.margin)*(document.documentElement.clientHeight||window.innerHeight);h.observationTargets=h.observationTargets.filter(function(g){var Z=g.getBoundingClientRect();(Z=E>Z.top&&!!Z.height)&&h.whenInViewportWithMargin(g);return!Z&&g.parentNode});
h.scanRequested=!1};
j1.prototype.disconnect=function(){this.observationTargets=[]};var shM,koB;shM=_.G(_.Bm(Avx(),void 0,"O3X2wd"));_.VhF=shM.next().value;koB=shM.next().value;window.addEventListener("resize",function(){koB(Avx())});var yPk={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},FFA=void 0,APM=window.innerWidth,Ton=window.innerHeight;window.addEventListener("resize",function(){FFA=void 0});var bNF;if("IntersectionObserver"in window)bNF=uP$();else{if(FFA===void 0){var uvH;uvH="matchMedia"in window?window.matchMedia(yPk.landscape+","+yPk.portrait).matches:void 0;FFA=uvH!==void 0?uvH:APM>=930&&Ton>=550||APM>=550&&Ton>=930}bNF=FFA?{observe:function(h){KL(function(){var E;(E=h.onViewportEntered)==null||E.call(h)})},
unobserve:function(){}}:new j1(function(h){KL(function(){var E;
(E=h.onViewportEntered)==null||E.call(h)})})}var TYM=bNF;var QhD=_.O(function(h){var E=!1,g=_.hf("img",function(Z){_.r9(function(){E=!0;Z.onload=null})});
_.lX(function(){var Z,M=(Z=h.data)==null?void 0:Z.call(h),W,z=(W=h.getSrc)==null?void 0:W.call(h).cb,c;Z=(c=h.config)==null?void 0:c.call(h);if(c=g.value)if(W=function(B,U){if(!E)return z?z(B,U):B},Eqz(c,Z),_.J("web_image_dont_reload_same_src")&&hfW(c,M,W))_.J("web_image_dont_reload_same_src_simulate_load")&&c.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var I;Qku(c,M||null,W,Z,(I=h.lazy)==null?void 0:I.call(h))}},"zS0jKb");
return _.R("img",{el:g})},"c");
QhD.idomCompat=!0;_.pO=_.O(function(h){var E=function(){var g,Z=h.data(),M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO,RW,NN,Cd,Ba,$$,Ha,zf,eF;var Rm={contentMode:(M=h.contentMode)==null?void 0:M.call(h),loadedClass:(W=h.loadedClass)==null?void 0:W.call(h),isPreloaded:(z=h.isPreloaded)==null?void 0:z.call(h),notifyOnLoaded:(c=h.notifyOnLoaded)==null?void 0:c.call(h),notifyOnUnloaded:(I=h.notifyOnUnloaded)==null?void 0:I.call(h),preferredThumbnail:(B=h.preferredThumbnail)==null?void 0:B.call(h),preserveHeight:(U=h.preserveHeight)==
null?void 0:U.call(h),preserveWidth:(L=h.preserveWidth)==null?void 0:L.call(h),objectPosition:(d=h.objectPosition)==null?void 0:d.call(h),targetWidth:(C=h.targetWidth)==null?void 0:C.call(h),targetHeight:(q=h.targetHeight)==null?void 0:q.call(h),shouldShowPlaceholder:(w=h.shouldShowPlaceholder)==null?void 0:w.call(h),useWidth:(r=h.useWidth)==null?void 0:r.call(h),isToggled:(v=h.isToggled)==null?void 0:v.call(h),alt:(H=h.alt)==null?void 0:H.call(h),className:(u=h.className)==null?void 0:u.call(h),
onerror:h.onerror,onload:h.onload,style$:((k=h.style$)==null?void 0:k.call(h))||((y=h.style)==null?void 0:y.call(h)),color:(A=h.color)==null?void 0:A.call(h),width:(E4=h.width)==null?void 0:E4.call(h),height:(iO=h.height)==null?void 0:iO.call(h),"aria-hidden$":(zf=(RW=h["aria-hidden$"])==null?void 0:RW.call(h))!=null?zf:(NN=h.ariaHidden)==null?void 0:NN.call(h),draggable:(Cd=h.draggable)==null?void 0:Cd.call(h),"data-disabled$":(eF=(Ba=h["data-disabled$"])==null?void 0:Ba.call(h))!=null?eF:($$=h.dataDisabled)==
null?void 0:$$.call(h),size:(Ha=h.size)==null?void 0:Ha.call(h)};return M9u(Z,Rm,(g=h.hideOn404)==null?void 0:g.call(h))};
return _.R(_.DG,null,_.R(_.x3,{when:function(){var g;return((g=E())==null?void 0:g.type)==="image"}},function(){return _.R(QhD,{data:function(){return E().image},
getSrc:{cb:function(g,Z){var M=E().image.sources,W=E().config.isPreloaded,z=E().config.useWidth,c=E().config.targetWidth,I=E().config.targetHeight,B=E().config.preferredThumbnail;return _.ny4(Z,M,W,z,c,I,B)||""}},
config:function(){var g=E().config,Z;for(Z in g)g[Z]===void 0&&delete g[Z];return g},
lazy:h.renderLazy})}),_.R(_.x3,{when:function(){var g;
return((g=E())==null?void 0:g.type)==="icon"}},function(){return _.R(_.Ni,{icon:function(){return E().iconName},
role:function(){return E().config.role},
className:function(){return E().config.className},
style:function(){return E().config.style$+";width: "+(E().config.width+"px;height: ")+(E().config.height+"px;color: ")+(E().config.color+";")},
ariaLabel:function(){return E().config["aria-label$"]},
ariaHidden:function(){return E().config["aria-hidden$"]},
dataDisabled:function(){return E().config["data-disabled$"]},
active:function(){return E().config.isToggled},
size:function(){return E().config.size}})}))},"d");
_.pO.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var h2f=function(h){return function(E){return _.R(fq4,null,function(){var g=E.data(),Z=_.Hm(E.config);return _.R(W6,null,function(){return void h(g,Z)})})}}(aya),GQu=_.O(function(h){var E=function(Z){var M,W=_.zT(function(d){M=mE(function(){for(var C=_.G(U()),q=C.next();!q.done;q=C.next()){q=cIx(q.value);
q=typeof q==="string"?document.createTextNode(q):q;if(!(q instanceof Node)){C=new _.xX("Part is not a node",q,typeof q);_.$W(C);break}d.appendChild(q)}})}),z=a9(function(){return f8W(Z())},{isEqual:pqd}),c=_.zl(h.config),I=function(){var d,C=z();
return!((d=c())==null||!d.ariaLabel)||!(C.commandRuns&&C.commandRuns.length!==0||C.paragraphStyleRuns&&C.paragraphStyleRuns.length!==0)},B=a9(c,{isEqual:oqz}),U=function(){var d=qAd(z(),B());
tT4(d,B());return z().content?rvz(z().content,d).parts:[]},L=!0;
_.lX(function(){z();B();if(L)L=!1;else{var d=U();Promise.resolve().then(function(){var C=W.value;if(C){C.innerText="";var q;(q=M)==null||q();M=_.rX(C,function(){return _.R(i5z,{parts:d})},"e")}})}},"YlhjWd");
return _.R("span",{el:W,class:function(){return z()&&cvz(z(),c())},
dir:function(){var d;return((d=c())==null?0:d.userInput)?"auto":void 0},
"aria-label":function(){var d;return I()?(d=c())==null?void 0:d.ariaLabel:void 0},
role:function(){return I()?"text":void 0}})},g;
return((g=h.config)==null?0:g.renderedFromFormattedString)?E(h.text):_.R(_.P,{cond:h.text,then:E})},"f");
GQu.idomCompat=!0;_.dK=_.O(function(h){var E=_.zl(h.text),g=Iy4(h);h.renderedFromFormattedString!==void 0&&(g.renderedFromFormattedString=!0);return _.J("attr_string_reactive")?_.R(GQu,{text:E,config:g}):_.R(_.P,{cond:function(){var Z;return E()&&((Z=f8W(E()))==null?void 0:Z.content)},
then:function(){return _.R(h2f,{data:h.text,config:g})},
debugInstance:"Apcuac"})},"g");
_.dK.idomCompat=!0;var dj$="";SHN({beforeVisit:function(h){h.type.TAG_NAME&&(dj$=h.type.TAG_NAME)},
afterRender:function(h,E){var g;dj$=(g=E==null?void 0:E.type)!=null?g:""},
didPatch:function(){dj$=""}});var RfW=function(h,E,g){E=E===void 0?"unknown":E;g=g===void 0?{}:g;_.xX.call(this,h+" ("+E+")",Object.assign({},{name:"YtWcwError",tagName:E},g));Object.setPrototypeOf(this,this.constructor.prototype)};
_.f(RfW,_.xX);_.o9=new WeakMap;_.iF=!1;var jZx,CEV,LAa;_.C6=Symbol("nh");_.c$=Symbol("oh");jZx=Symbol("ph");CEV=new Set(Object.getOwnPropertyNames(Element.prototype));LAa=Symbol("qh");var EyM=_.O(function(h){return _.R("yt-attributed-string",{"aria-label":h.ariaLabel,hidden:h.hidden,id:h.id,class:h.className,"force-default-style":h.forceDefaultStyle},_.R(_.dK,{text:h.data,ariaLabel:h.ariaLabel,ellipsisTruncate:h.ellipsisTruncate,isOverlay:h.isOverlay,linkInheritColor:h.linkInheritColor,noPreWrap:h.noPreWrap,noWrap:h.noWrap,userInput:h.userInput,noEndpoints:h.noEndpoints,headerRuns:h.headerRuns,isHeadline:h.isHeadline}))},"h");
_.J("web_wiz_attributed_string")&&_.I9(EyM,"yt-attributed-string",{props:{ariaHidden:_.C6,ariaLabel:_.C6,className:_.C6,ellipsisTruncate:_.C6,isOverlay:_.C6,linkInheritColor:_.C6,noEndpoints:_.C6,noStyleRuns:_.C6,noLinkColor:_.C6,noPreWrap:_.C6,noWrap:_.C6,skipOnClick:_.C6,userInput:_.C6,headerRuns:_.C6,isHeadline:_.C6,id:_.C6,data:_.C6,hidden:_.C6,forceDefaultStyle:_.C6,text:_.c$,disableUpgrade:_.c$,disable:_.c$,slot:_.c$}});var J6=function(){return _.D.apply(this,arguments)||this};
_.f(J6,_.D);J6.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},aya(this.data,this.config))};
_.Y([_.t(ojD),_.V("design:type",Object)],J6.prototype,"ytIdomTemplatingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],J6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],J6.prototype,"ariaLabel",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"disable",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"ellipsisTruncate",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"isOverlay",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"linkInheritColor",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"noPreWrap",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"noWrap",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"userInput",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J6.prototype,"noEndpoints",void 0);_.Y([_.x(),_.V("design:type",Array)],J6.prototype,"headerRuns",void 0);
_.Y([_.yc({is:"yt-attributed-string",disableElementRegistration:!0})],J6);
_.J("web_wiz_attributed_string")||_.X(J6,"yt-attributed-string",function(){if(HNM===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
h.content.insertBefore(vjD().content.cloneNode(!0),h.content.firstChild);HNM=h}h=HNM;return h},{mode:2});var gyl,ZvC,Ssa;gyl=function(){this.firstThumbnailLoaded=!1};
_.MTl=function(){ZvC||(ZvC=new gyl);return ZvC};
Ssa=function(h){var E=_.MTl();E.firstThumbnailLoaded||(E.firstThumbnailLoaded=!0,_.s7("ftl",h))};
gyl.prototype.reset=function(){this.firstThumbnailLoaded=!1};var efM=0,t9z=new WeakMap,fyq=0,B$=new Set;var Wpl,pjM=function(){return Wpl!==void 0?Wpl:Wpl=document.createElement("template")};
document.head.appendChild(pjM().content);var GBf;var ly$,mjd,e1;_.jd=_.MN.caches;e1=function(){};
e1.prototype.open=function(h){return _.jd.open(z2H(h))};
e1.prototype.has=function(h){return _.jd.has(z2H(h))};
e1.prototype.delete=function(h){return _.jd.delete(z2H(h))};
e1.prototype.match=function(h,E){var g=this,Z,M,W,z,c,I;return _.a(function(B){switch(B.nextAddress){case 1:return B.yield(g.keys(),2);case 2:Z=B.yieldResult,M=_.G(Z),W=M.next();case 3:if(W.done){B.jumpTo(5);break}z=W.value;return B.yield(g.open(z),6);case 6:return c=B.yieldResult,B.yield(c.match(h,E),7);case 7:if(I=B.yieldResult)return B.return(I);W=M.next();B.jumpTo(3);break;case 5:return B.return()}})};
var vqd=function(){};
_.f(vqd,e1);var z2H=function(h){if(h.includes(":"))throw Error("th`"+h);return h+":"+_.tl("CacheStorage get")};
vqd.prototype.keys=function(){var h,E,g,Z,M,W,z,c,I;return _.a(function(B){if(B.nextAddress==1)return h=[],E=_.tl("CacheStorage keys"),B.yield(_.jd.keys(),2);g=B.yieldResult;Z=_.G(g);for(M=Z.next();!M.done;M=Z.next())W=M.value,z=_.Dj$(W),c=z.originalName,I=z.datasyncId,I===E&&h.push(c);return B.return(h)})};var qJ=function(){var h=_.D.apply(this,arguments)||this;h.objectURL=null;h.loadTime=Infinity;return h};
_.f(qJ,_.D);_.p=qJ.prototype;_.p.renderIdom=function(){wqO(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("wh");this.setConfig();this.config&&gqa(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.p.objectFitToContentMode=function(h){switch(h){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.p.logThumbnailFailureVe=function(){var h=_.Uz(197497);_.vt(_.SQ(),h);var E=_.sH();E&&h&&E&&_.Eo(E,[h])};
_.p.loadImageFromCacheIfExists=function(h){var E=this,g=h.target;(g==null?0:g.src)&&$ja(g.src).then(function(Z){E.objectURL=_.sG(Z).toString();E.setSrc(g,E.objectURL)}).catch(function(){})};
_.p.onError=function(h){var E=this;if(_.J("web_use_cache_for_image_fallback")){var g=h.target;g&&$ja(g.src).then(function(Z){E.objectURL=_.sG(Z).toString();E.setSrc(g,E.objectURL)}).catch(function(){_.J("kevlar_woffle_log_thumbnail_failure_ve")&&E.logThumbnailFailureVe();
_.J("kevlar_woffle_fallback_image")&&E.setSrc(g,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.p.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.p.setConfig=function(){var h=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(E){h.loadImageFromCacheIfExists(E);h.revokeObjectURL();xjx(h.hostElement)},
onerror:function(E){h.onError(E)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.J("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.p.setSrc=function(h,E){E&&(h.src=E)};
_.Y([_.t(ojD),_.V("design:type",Object)],qJ.prototype,"ytIdomTemplatingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],qJ.prototype,"alt",void 0);_.Y([_.x(),_.V("design:type",Boolean)],qJ.prototype,"ftlEligible",void 0);_.Y([_.x(),_.V("design:type",Number)],qJ.prototype,"height",void 0);_.Y([_.x(),_.V("design:type",Boolean)],qJ.prototype,"notifyOnLoaded",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],qJ.prototype,"notifyOnUnloaded",void 0);_.Y([_.x(),_.V("design:type",String)],qJ.prototype,"objectFit",void 0);_.Y([_.x(),_.V("design:type",String)],qJ.prototype,"objectPosition",void 0);_.Y([_.x(),_.V("design:type",String)],qJ.prototype,"preferredThumbnail",void 0);_.Y([_.x(),_.V("design:type",Boolean)],qJ.prototype,"preserveHeight",void 0);_.Y([_.x(),_.V("design:type",Boolean)],qJ.prototype,"preserveWidth",void 0);
_.Y([_.x({value:!0}),_.V("design:type",Boolean)],qJ.prototype,"useWidth",void 0);_.Y([_.x({value:function(){return!_.Xn("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.V("design:type",Boolean)],qJ.prototype,"shouldRenderLazy",void 0);_.Y([_.x(),_.V("design:type",Number)],qJ.prototype,"width",void 0);_.Y([_.yc({is:"yt-image",disableElementRegistration:!0})],qJ);
_.X(qJ,"yt-image",function(){if(GBf===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);h.content.insertBefore(pjM().content.cloneNode(!0),h.content.firstChild);
GBf=h}h=GBf;return h},{mode:2});var f6=function(){return _.D.apply(this,arguments)||this};
_.f(f6,_.D);f6.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var h=_.kB(this.data.onVisibleCommand);h&&this.ytComponentBehavior.resolveCommand(h)}};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],f6.prototype,"ytVisibilityBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],f6.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],f6);
_.X(f6,"yt-bumper-user-edu-content-view-model",function(){if(aOl===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;zZk===void 0&&(zZk=document.createElement("template"));var Z=zZk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);aOl=h}h=aOl;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var a8M;var cvC,ivl=function(){if(cvC!==void 0)return cvC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;a8M===void 0&&(a8M=document.createElement("template"));var Z=a8M;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return cvC=h};var oyC;_.NJ={};oyC=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"]);_.NJ.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var h=this.getContext_();return h?h.getTaskManager():_.KP},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var h=_.Ra(this.hostElement,"yt-get-context-provider",{});h.detail&&h.detail.contextProvider?this.cachedProviderNode_=h.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return oyC.has(this.hostElement.localName)},
getNetworkManager:function(){var h=this.getContext_();if(h)return h.getNetworkManager()}};var sZO,I8k,Ptf,R2D;_.t6=function(h){var E=I8k.get(h);if(E&&(E=E.pop()))return R2D++,E;Ptf++;try{var g=document.createElement(h)}catch(Z){throw new _.xX("ElementPool failed to create element",h,Z.message);}return g};
sZO=function(h){var E=h.is;if(E){var g=I8k.get(E);g||(g=[],I8k.set(E,g));var Z=_.nF("ELEMENT_POOL_CONFIG")||{};g.length>=(Z[E]!==void 0?Z[E]:_.nF("ELEMENT_POOL_DEFAULT_CAP",0))||g.push(h)}else _.O$(new _.xX("Element pool should only handle custom elements:",h.nodeName))};
I8k=new Map;Ptf=0;R2D=0;var du=new WeakMap,YsV=new WeakMap;var UYC;_.S1=function(h,E,g){g=g===void 0?_.xu():g;this.JSC$13811_defaultPriority=h;this.signal=E;this.scheduler=g;this.nextJobDescriptor=0;this.JSC$13811_parkedJobs=[];this.scheduledJobs=new Map};
_.xl=function(h,E){if(E){var g=_.RS();h.signal&&!_.PZ(g,h.signal)?(g.addListener(h.signal,function(){h.processSignal()}),h.JSC$13811_parkedJobs.push({job:E,
priority:void 0})):BYA(h,E)}};
UYC=function(h,E){if(E!==h.JSC$13811_defaultPriority){h.JSC$13811_defaultPriority=E;for(var g=_.G(h.scheduledJobs.values()),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.scheduler.cancelJob(Z.jobId),Z.jobId=h.scheduler.addJob(Z.jobWrapper,E)}};
_.S1.prototype.flushJobs=function(){UYC(this,10);this.processSignal()};
_.S1.prototype.cancel=function(){for(var h=_.G(this.scheduledJobs),E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;this.scheduler.cancelJob(g.jobId);this.scheduledJobs.delete(E)}this.JSC$13811_parkedJobs=[]};
_.S1.prototype.processSignal=function(){for(var h=_.G(this.JSC$13811_parkedJobs),E=h.next();!E.done;E=h.next())E=E.value,BYA(this,E.job,E.priority);this.JSC$13811_parkedJobs=[]};
var BYA=function(h,E,g){g=g||h.JSC$13811_defaultPriority;if(g===10)UL(E);else{var Z=h.nextJobDescriptor++,M=function(){E();h.scheduledJobs.delete(Z)},W=h.scheduler.addJob(M,g);
h.scheduledJobs.set(Z,{jobWrapper:M,jobId:W,priority:g})}};var Lpk;_.wK={};Lpk={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.wK.YtRendererstamperBehavior=[_.NJ.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 h in this.stampDom){var E=this.stampDom[h];E&&E.id&&this.addReactiveSchema({type:"observe",method:{methodName:O5d(E.id),args:[{type:"wildcard",path:h}]}})}else{(h=(this.constructor.generatedFrom||this).observers)||(h=[]);for(E in this.stampDom){var g=this.stampDom[E];g&&g.id&&h.push(O5d(g.id)+"("+E+".*)")}this.constructor.generatedFrom.observers=h}},
addStampDomObserverFns_:function(){for(var h in this.stampDom){var E=this.stampDom[h];E.id?(this[O5d(E.id)]=this.rendererStamperObserver_.bind(this,h,E.id),this.hasDataPath_[h]=!1):(E=new _.xX("Bad rendererstamper config",this.is+":"+h),_.$W(E))}},
rendererStamperObserver_:function(h,E,g){if(g.path==h){if(g.value===void 0&&!this.hasDataPath_[h])return;this.hasDataPath_[h]=g.value!==void 0}this.rendererStamperApplyChangeRecord_(h,E,g)},
rendererStamperApplyChangeRecord_:function(h,E,g){var Z=this.renderJobsMap_[E],M=null;h==g.path?(g=g.value,_.s4(g)||(g=g===void 0||g===null?[]:[g]),h=this.stampDom[h],h.mapping&&(M=this.stampDomArray_.bind(this,g,E,h.mapping,h.reuseComponents,h.events,h.stamperStableList)),Z&&Z.cancel(),g=h.usePageScheduler?this.getTaskManager():void 0,Z||h.initialRenderPriority==void 0)?h.renderPriority==void 0||Z||(Z=new _.S1(h.renderPriority,h.waitForSignal,g),this.renderJobsMap_[E]=Z):(Z=new _.S1(h.initialRenderPriority,
h.waitForSignal,g),this.renderJobsMap_[E]=Z,M=function(W,z){W();UYC(z,10)}.bind(this,M,Z)):M=h+".splices"==g.path?this.stampDomArraySplices_.bind(this,h,E,g.value):this.forwardRendererStamperChanges_.bind(this,h,E,g);
Z?_.xl(Z,M):M()},
forwardRendererStamperChanges_:function(h,E,g){var Z=g.path.slice(h.length+1),M=this.getStampContainer_(E),W=Z.indexOf("."),z=Z.substring(0,W),c=!1,I=0,B=parseInt(z,0);if(z[0]=="#"){c=parseInt(z.substring(1),0);B=this.get(h);var U=this.get([h,z]);B[c]==U?I=c:I=B.indexOf(U);c=!0}else isNaN(B)||(I=B,c=!0);c&&(Z=Z.substring(z.length+1),W=Z.indexOf("."));z=_.vl(M).children[I];var L;if(M=(L=z==null?void 0:z.polymerController)!=null?L:z)Z="data"+Z.slice(W),typeof M.notifyPath!=="function"?_.O$(new _.xX("notifyPath missing",
this.is+": "+h+", "+E)):g.value?M.notifyPath(Z,g.value):M.notifyPath(Z)},
stampDomArraySplices_:function(h,E,g){if(g&&g.indexSplices){var Z=this.getStampContainer_(E);if(Z){for(var M=_.vl(Z),W=Xq$(this.stampDom[h].reuseComponents),z=g.indexSplices.length,c=0;c<z;c++){for(var I=g.indexSplices[c],B=M.children[I.index],U=I.removed.length;U>0;U--)B&&B.parentElement&&(_.vl(B.parentElement).removeChild(B),W&&sZO(B),B=M.children[I.index]);U=this.stampDom[h].mapping;for(var L=I.index+I.addedCount,d=document.createDocumentFragment(),C=W,q=I.index;q<L;q++){var w=I.object[q],r=KAN(U,
w);if(r){var v=U[r];w=w[r];r=this.getComponentName_(v,w);var H=B?du.has(B):!1;C&&B&&B.is==r&&H?(r=B,this.telemetry_.reuse++,B=B.nextElementSibling):C&&B&&H?(r=this.createComponent_(v,w,W),H=_.vl(B).nextElementSibling,M.insertBefore(r,H),kQ4(this.is,M,B,W),B=H):(C=!1,r=this.createComponent_(v,w,W),d.appendChild(r));this.deferRenderStamperBinding_(r,v,w)}else v=new _.xX("Unimplemented type",h,E,Z.tagName,Object.keys(w)[0]),_.$W(v)}M.insertBefore(d,B)}this.flushRenderStamperComponentBindings_();this.stampDom[h].events&&
_.Ra(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else h=new _.xX("Container object not found",E,this.hostElement?this.hostElement.is:""),_.$W(h)}},
stampDomArray_:function(h,E,g,Z,M,W){var z=this.getStampContainer_(E);if(z)if(E=_.vl(z),Z=Xq$(Z),h){var c=0,I=0,B;if(W=W===void 0?_.Xn("STAMPER_STABLE_LIST",!1):W||!1)for(B=E.firstElementChild;B&&!du.has(B)&&h.length>I;){W=h[I];var U=KAN(g,W);if(U){if(this.getComponentName_(g[U],W[U])!=B.is){var L=this.createComponent_(g[U],W[U],Z),d=_.vl(B).nextElementSibling;d?E.insertBefore(L,d):E.appendChild(L);kQ4(this.is,E,B,Z);B=L}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(B,g[U],W[U]);c++;
I++;B=_.vl(B).nextElementSibling}else I++}yI$(this.is,E,c,Z);c=B;if(h.length>I){W=document.createDocumentFragment();for(U=h.length;I<U;I++)if(L=h[I],d=KAN(g,L))B=this.createComponent_(g[d],L[d],Z),this.deferRenderStamperBinding_(B,g[d],L[d]),W.appendChild(B);c&&_.vl(c).parentNode&&B&&!du.has(B)?E.insertBefore(W,c):E.appendChild(W)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();M&&_.Ra(this.hostElement,"yt-rendererstamper-finished",{container:z})}else yI$(this.is,E,0,
Z);else h=new _.xX("Container object not found",E,this.hostElement?this.hostElement.is:""),_.$W(h)},
getStampContainer_:function(h){return this.$&&this.$[h]||_.UB(this.hostElement).querySelector("#"+h)},
getComponentName_:function(h,E){return typeof h==="string"?h:h.matcher?h.matcher.call(this,E):h.component},
createComponent_:function(h,E,g){h=this.getComponentName_(h,E);try{var Z=PK.has(h);if(g&&!Z){var M=_.t6(h);try{_.Ja(M)}catch(W){g="Failed to clear styles for "+h+".",W.message&&(g+=" Original error: "+W.message),_.O$(new _.xX(g))}}else M=document.createElement(h)}catch(W){return M="YtRendererStamperBehavior failed to create "+h+".",W.message&&(M+=" Original description: "+W.message),W.message="YtRendererStamperBehavior failed to create element",_.nI(W,M),Lpk.hasOwnProperty(h)?_.O$(W):_.$W(W),document.createElement("SPAN")}this.telemetry_.create++;
return M},
deferRenderStamperBinding_:function(h,E,g){this.deferredBindingTasks_.push({component:h,typeOrConfig:E,data:g})},
flushRenderStamperComponentBindings_:function(){for(var h=0,E=this.deferredBindingTasks_.length;h<E;h++){var g=this.deferredBindingTasks_[h];if(!g)break;var Z=void 0,M=void 0,W=void 0,z=void 0,c=g.component,I=g.typeOrConfig;g=g.data;var B=(z=c.polymerController)!=null?z:c;z=c.loggingStatus;try{z&&(z.isRendererStamper=!0);if(typeof I!=="string"){for(W in I.attributes)I.attributes[W]===!0?c.setAttribute(W,""):I.attributes[W]===!1?c.removeAttribute(W):c.setAttribute(W,I.attributes[W]);for(M in I.params)B[M]=
I.params[M],c!==B&&vb(c.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(Z in I.properties){var U=I.properties[Z];if(U){var L=nqV(U);B[Z]=this.get(L);c!==B&&vb(c.localName,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(Z==="on-tap"||Z==="on-click"){var d=this.get(L);c.addEventListener("click",d);YsV.set(c,{property:Z,listener:{type:"element",eventName:"click",handler:d}})}}else{var C=new _.xX("Undefined property binding",Z);_.$W(C)}}}if(I.classListBinding){var q=nqV(I.classListBinding),
w=q?this[q]:null;if(w)for(Z=0;Z<w.length;Z++)_.jg(c,w[Z],!0)}B.data=g}finally{z&&(z.isRendererStamper=!1)}if(Z=du.get(c))c.hidden=!1,du.delete(c),_.KP.cancelJob(Z)}this.deferredBindingTasks_.length=0}}];_.I9(_.O(function(h){function E(){g().seconds&&W(xP$({seconds:Number(g().seconds)-Date.now()/1E3}))}
var g=h.targetTimestamp;h=h.className;var Z=_.G(_.Bm("",void 0,"TM9kjd")),M=Z.next().value,W=Z.next().value;_.m1(function(){E();var z=setInterval(function(){E()},1E3);
_.r9(function(){clearInterval(z)})});
return _.R("yt-countdown",{class:_.CO("ytCountDownHost",h)},_.R("div",null,M))},"i"),"yt-countdown",{props:{targetTimestamp:_.C6,
className:_.c$}});_.DX=new _.Ps("KEY_MANAGER_TOKEN");var FA4={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"};_.lk=_.O(function(h){var E=_.hf("a",h.ref),g=h.aTagConfig?h.aTagConfig:_.Cw(function(){var Z,M,W,z,c;var I=(c=_.kB((W=h.command)==null?void 0:W.call(h)))!=null?c:(z=h.command)==null?void 0:z.call(h);return _.F8({innertubeCommand:I,skipOnClick:(Z=h.skipOnClick)==null?void 0:Z.call(h),defaultTarget:(M=h.target)==null?void 0:M.call(h)})||{}},void 0,"TAvz0");
_.lX(function(){_.J("mweb_enable_keto_batch_pages")||(E.value._data=g()._data,E.value.params=g().params)},"dcjvAe");
return _.R("a",{el:E,href:function(){return g().href$},
rel:function(){return g().rel$},
class:function(){var Z,M;return(M=g().className)!=null?M:(Z=h.className)==null?void 0:Z.call(h)},
style:function(){var Z;if((Z=h.style)==null?0:Z.call(h))return h.style();var M;return((M=h.disabled)==null?0:M.call(h))?"pointer-events:none":""},
"aria-haspopup":function(){return!!g()["aria-haspopup$"]},
"force-new-state":ed(function(){return g()["force-new-state$"]}),
title:ed(function(){var Z,M;return(M=g().title$)!=null?M:(Z=h.title)==null?void 0:Z.call(h)}),
role:ed(function(){var Z;return((Z=h.role)==null?void 0:Z.call(h))||g().role$}),
target:ed(function(){return g().target$}),
dir:ed(function(){var Z;return((Z=h.dir)==null?void 0:Z.call(h))||g().dir}),
tabindex:function(){var Z;return g().tabindex$?Number(g().tabindex$):(Z=h.tabIndex)==null?void 0:Z.call(h)},
"aria-hidden":function(){var Z,M;return(M=g()["aria-hidden$"])!=null?M:(Z=h.ariaHidden)==null?void 0:Z.call(h)},
"aria-label":function(){var Z,M;return(M=g()["aria-label$"])!=null?M:(Z=h.ariaLabel)==null?void 0:Z.call(h)},
"aria-current":h.ariaCurrent,"aria-disabled":h.disabled,"aria-labelledby":h.ariaLabelledby,"aria-describedby":h.ariaDescribedby,"aria-selected":h.ariaSelected,"tab-identifier":h.tabIdentifier,"on:pointerdown":_.J7(function(Z){var M,W;return void((W=(M=g()).onpointerdown)==null?void 0:W.call(M,Z))}),
"on:click":_.J7(function(Z){var M,W;(W=(M=g()).onclick)==null||W.call(M,Z);var z;(z=h.onClick)==null||z.call(h,Z)}),
"on:focusin":_.J7(function(Z){var M;(M=h.onFocusin)==null||M.call(h,Z)}),
"on:focusout":_.J7(function(Z){var M;(M=h.onFocusout)==null||M.call(h,Z)})},h.children)},"j");var gfa={duration:1E3,easing:"ease",fill:"forwards"};Ef4.componentType=SA;var W_W={duration:1E3,easing:"ease",fill:"forwards"},Ctk=_.O(function(h){var E=_.hf("animated-rolling-character"),g=void 0,Z=function(){var c,I;return pZ((c=h.character)==null?void 0:c.call(h))||pZ((I=h.previousCharacter)==null?void 0:I.call(h))},M=_.G(_.Bm(0,void 0,"Dgrnr")),W=M.next().value,z=M.next().value;
_.m1(function(){if(window.ResizeObserver&&_.J("web_fix_rolling_numbers_zoom_safari")){var c=new ResizeObserver(function(){var I,B,U=Math.round(((B=(I=E.value.querySelector("div"))==null?void 0:I.getBoundingClientRect().height)!=null?B:0)*100)/100;U&&z(U)});
c.observe(E.value);_.r9(function(){c.disconnect()})}});
_.lX(function(){var c=_.J("web_fix_rolling_numbers_zoom_safari")?W:h.marginMultiplier;if(c()){var I;(I=g)==null||I.cancel();if(Z()){var B;I=((B=h.previousCharacter)==null?0:B.call(h))?Number(h.previousCharacter())+10:h.rollUp()?0:30;var U;if((U=h.shouldAnimate)==null||!U.call(h)){var L,d;I-=MCu((L=h.character)==null?void 0:L.call(h),(d=h.previousCharacter)==null?void 0:d.call(h),h.rollUp(),I)}}else{I=h.rollUp()?0:2;var C;(C=h.shouldAnimate)!=null&&C.call(h)||(B=I,U=h.rollUp()?-1:1,I=B-U)}E.value.style.marginTop=
"-"+I*c()+"px";var q;if((q=h.shouldAnimate)==null?0:q.call(h)){var w,r;g=pfW(E.value,(w=h.character)==null?void 0:w.call(h),(r=h.previousCharacter)==null?void 0:r.call(h),h.rollUp(),I,Z(),c())}else{var v;E.value.style.display=((v=h.character)==null?0:v.call(h))?"":"none"}}},"jKjMhe");
return _.R("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},_.R(_.P,{cond:Z,then:function(){return _.R(jkC,null)},
else:function(){return _.R(dYH,{character:h.character})}}))},"k");
Ctk.idomCompat=!0;var GLd=_.J("web_enable_sink_animated_rolling_character_and_number")?Ctk:Ef4,JvM=_.J("web_enable_sink_animated_rolling_character_and_number")?Ctk:ZGa(Ef4),jkC=_.O(function(){for(var h=[],E=1;E<30;E++)h.push(_.R("div",null,E%10));return _.R(_.zt,null,_.R("div",null,"\u00a0"),h,_.R("div",null,"\u00a0"))},"l"),dYH=_.O(function(h){var E=h.character;
return _.R(_.zt,null,_.R("div",null,"\u00a0"),_.R(_.P,{cond:function(){return!(E==null?0:E())||_.ca(E==null?void 0:E())},
then:function(){return _.R("div",null,"\u00a0")},
else:function(){return _.R("div",null,E)}}),_.R("div",null,"\u00a0"))},"m");zDa.componentType=SA;var e2l=_.O(function(h){var E=void 0,g=void 0,Z=function(){var W;return((W=h.fontSizeMultiplier)==null?0:W.call(h))?h.heightPx()*h.fontSizeMultiplier():h.heightPx()},M=_.Cw(function(){if(!h.numberText())return[];
var W,z,c=((W=h.forceRollUp)==null?void 0:W.call(h))||!g||!((z=h.numberValue)==null?0:z.call(h))||g<h.numberValue(),I,B=h.numberText();W=Z();z=!((I=h.shouldAnimate)==null||!I.call(h));I=[];var U=0,L=0,d=(E?E.replace(/\D/g,"").length:0)-(B?B.replace(/\D/g,"").length:0),C=E?E.split(/(\d)/).filter(Boolean):[];for(B=B.split(/(\d)/).filter(Boolean);d<0;){var q=B[L];I.push({character:q,rollUp:c,marginMultiplier:W,shouldAnimate:z});L++;pZ(q)&&d++}for(;U<d;)q=C[U],I.push({previousCharacter:q,rollUp:c,marginMultiplier:W,
shouldAnimate:z}),U++,pZ(q)||d++;for(;L<B.length;)d=B[L],q=C[U],pZ(d)===pZ(q)?(L++,U++):pZ(d)?(U++,d=void 0):pZ(q)&&(L++,q=void 0),I.push({character:d,previousCharacter:q,rollUp:c,marginMultiplier:W,shouldAnimate:z});E=h.numberText();var w;g=(w=h.numberValue)==null?void 0:w.call(h);return I},void 0,"kWiBv");
return _.R("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return h.numberText()?["height: "+Z()+"px;","line-height: "+h.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.R(_.SX,{each:M,keyBy:"INDEX"},function(W){return _.R(JvM,{character:function(){return W().character},
previousCharacter:function(){return W().previousCharacter},
marginMultiplier:function(){return W().marginMultiplier},
rollUp:function(){return W().rollUp},
shouldAnimate:function(){return W().shouldAnimate}})}))},"n");
e2l.idomCompat=!0;_.qAD=_.J("web_enable_sink_animated_rolling_character_and_number")?e2l:ZGa(zDa);var f8m=function(h,E){this.fillAnimation=new Animation(ofZ(h),document.timeline);this.strokeAnimation=new Animation(IK$(E),document.timeline)};
f8m.prototype.play=function(){var h,E;(E=(h=this.fillAnimation).play)==null||E.call(h);var g,Z;(Z=(g=this.strokeAnimation).play)==null||Z.call(g)};
f8m.prototype.cancel=function(){var h,E;(E=(h=this.fillAnimation).cancel)==null||E.call(h);var g,Z;(Z=(g=this.strokeAnimation).cancel)==null||Z.call(g)};_.rK=_.O(function(h){var E=h.model;var g=h.pointerDownEvent;var Z=h.pointerUpEvent;var M=h.pointerLeaveEvent;var W=h.hovered;h=_.hf("div");var z=_.hf("div"),c=_.hf("div"),I=_.G(_.qi(function(){return(Z==null?0:Z())||(M==null?0:M())?!1:!(g==null||!g())||!1})),B=I.next().value,U=I.next().value,L=void 0,d=function(){!L&&c.value&&z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(L=new f8m(c.value,z.value));
var H;(H=L)==null||H.play()},C=function(){var H;
(H=L)==null||H.cancel()},q=function(){var H;
(H=L)==null||H.cancel()};
_.lX(function(){(Z==null?0:Z())&&d()},"bg756c");
_.lX(function(){(g==null?0:g())&&C()},"QAes8c");
_.lX(function(){(M==null?0:M())&&q()},"YaFbrc");
I=_.J7(function(){d();U(!1)});
var w=_.J7(function(){C();U(!0)}),r=_.J7(function(){q();
U(!1)});
_.r9(function(){if(L){var H;(H=L)==null||H.cancel();L=void 0}});
var v={};B=_.CO("yt-spec-touch-feedback-shape",function(){return RDx(E().color)},function(){return PuW(E().thumbnailSize,!!E().isExtended)},(v["yt-spec-touch-feedback-shape--focused"]=function(){return!!E().focused&&!E().disabled},v["yt-spec-touch-feedback-shape--circular"]=function(){return!!E().circular},v["yt-spec-touch-feedback-shape--down"]=B,v["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!E().triggerEvents},v["yt-spec-touch-feedback-shape--hovered"]=function(){return W==
null?void 0:W()},v));
return _.R("yt-touch-feedback-shape",{style:_.fO({"border-radius":"inherit"})},_.R("div",{el:h,class:B,style:_.fO({"margin-top":function(){return E().customTopExtend?"-"+E().customTopExtend+"px":void 0}}),
"on:mousedown":w,"on:mouseup":I,"on:pointerleave":r,"on:touchstart":w,"on:touchend":I,"aria-hidden":!0},_.R(_.P,{cond:function(){return!!E().hoverEffect},
then:function(){return _.R("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.fO({"border-radius":function(){return E().borderRadius},
background:function(){var H;if(H=E().hoverEffect){for(var u=[],k=_.G((H==null?void 0:H.lightingTechniques)||[]),y=k.next();!y.done;y=k.next())switch(y.value){case 2:var A=y=void 0;u.push("linear-gradient(135deg, "+((y=H)==null?void 0:(A=y.palette)==null?void 0:A.keyLight)+",transparent)")}var E4,iO;u.push((E4=E().hoverEffect)==null?void 0:(iO=E4.palette)==null?void 0:iO.background);H=u.join(", ")}else H=void 0;return H}})})}}),_.R("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.fO({"border-radius":function(){return E().borderRadius},
"border-color":function(){var H,u;return(H=E().touchEffect)==null?void 0:(u=H.palette)==null?void 0:u.background}}),
el:z}),_.R("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.fO({"border-radius":function(){return E().borderRadius},
"background-color":function(){var H,u;return(H=E().touchEffect)==null?void 0:(u=H.palette)==null?void 0:u.background}}),
el:c})))},"o");
_.rK.idomCompat=!0;var NYM={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 ma=_.jq();ma=ma.toLowerCase();if(_.oW(ma,"android")){var tTD=ma.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);tTD&&parseFloat(tTD[1])<100||ma.match("("+Object.keys(NYM).join("|")+")")};var SAl=_.O(function(h){return _.R(_.P,{cond:h.aTagConfig,then:function(E){return _.R(_.lk,{aTagConfig:E,disabled:h.disabled,className:h.className,style:h.style,title:h.title,ariaLabel:h.ariaLabel,ariaCurrent:function(){var g,Z;return((g=h.toggleable)==null?void 0:g.call(h))&&((Z=h.toggled)==null?void 0:Z.call(h))},
ref:h.ref},h.children)},
else:function(){return _.R("button",{el:_.zT(h.ref),"on:click":_.J7(function(E){var g;return(g=h.onClick)==null?void 0:g.call(h,E)}),
class:h.className,title:h.title,style:h.style,disabled:h.disabled,"aria-pressed":function(){var E,g;return((E=h.toggleable)==null?0:E.call(h))?!((g=h.toggled)==null||!g.call(h)):void 0},
"aria-label":h.ariaLabel,"aria-disabled":h.visiblyDisabled,"aria-hidden":h.ariaHidden,tabindex:h.tabIndex},h.children)}})},"p"),wjH=_.O(function(h){var E=h.data;
var g=h.hasIconLeading;var Z=h.hasIconLeadingTrailing;var M=h.hasIconTrailing;var W=h.iconButton;var z=h.iconClassName;var c=h.secondaryIconClassName;var I=h.icon;var B=h.secondaryIcon;var U=h.textContentClassName;return _.R(v4,{className:"",style:"display: inherit; justify-content: center"},_.R(_.P,{debugInstance:"V4z1Uc",cond:function(){return I&&(g()||Z()||(W==null?void 0:W()))},
then:function(){return _.R(v4,null,_.R("div",{class:z,"aria-hidden":"true"},I==null?void 0:I()))}}),_.R(_.P,{debugInstance:"ok3btb",
cond:function(){return(E().buttonText||E().animatedTextProps||E().formattedButtonText)&&!(W==null?0:W())},
then:function(){return _.R(v4,null,_.R(xYf,{className:U,iconPosition:function(){return E().iconPosition},
text:function(){return E().buttonText},
oneOffCustomTextWrap:function(){return E().oneOffCustomTextWrap},
formattedButtonText:function(){return E().formattedButtonText},
animatedTextProps:function(){return E().animatedTextProps}}))}}),_.R(_.P,{debugInstance:"DO5Rz",
cond:M,then:function(){return _.R(v4,null,_.R("div",{class:z},I==null?void 0:I()))}}),_.R(_.P,{debugInstance:"bnojSc",
cond:Z,then:function(){return _.R(v4,null,_.R("div",{class:c},B==null?void 0:B()))}}),_.R(_.P,{debugInstance:"HN3kad",
cond:function(){return!E().disabled&&!0},
then:function(){return _.R(_.rK,{model:function(){var L=E();return{color:L.style==="overlay-dark"?4:L.style==="overlay"?L.type==="filled"?4:3:L.type==="filled"||L.style==="call-to-action-inverse"||L.style==="mono-inverse"?2:1}}})}}))},"q"),xYf=_.O(function(h){var E=function(){var g,Z;
return((g=h.iconPosition)==null?void 0:g.call(h))==="icon-with-label"||((Z=h.oneOffCustomTextWrap)==null?void 0:Z.call(h))};
return _.R("div",{class:h.className,"aria-hidden":function(){var g,Z,M;return((g=h.ariaHidden)==null?void 0:g.call(h))&&(!((Z=h.animatedTextProps)==null||!Z.call(h))||!((M=h.formattedButtonText)==null||!M.call(h)))}},_.R(_.DG,null,_.R(_.x3,{when:function(){var g;
return(g=h.animatedTextProps)==null?void 0:g.call(h)}},function(){return _.R(_.qAD,{numberText:function(){return h.animatedTextProps().numberText},
numberValue:function(){return h.animatedTextProps().numberValue},
heightPx:function(){return h.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return h.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return h.animatedTextProps().shouldAnimate},
forceRollUp:function(){return h.animatedTextProps().forceRollUp}})}),_.R(_.x3,{when:function(){var g;
return(g=h.formattedButtonText)==null?void 0:g.call(h)}},function(){return _.R(_.dK,{text:function(){return Object.assign({},h.formattedButtonText(),{lineBreakMode:E()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":h.formattedButtonText().lineBreakMode,
alignment:E()?"TEXT_ALIGNMENT_CENTER":h.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!E()}})}),_.R(_.x3,{when:function(){var g,Z;
return((g=h.iconPosition)==null?void 0:g.call(h))==="icon-with-label"&&((Z=h.text)==null?void 0:Z.call(h))}},function(){return _.R(_.dK,{text:function(){return{content:h.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.R(_.wX,null,function(){return h.text})))},"r"),DYB=_.O(function(h){return _.R(_.P,{debugInstance:"kM7Sgc",
cond:h.hasLabel,then:function(){var E;return _.R("label",{class:h.className},h.children,(E=h.textContent)==null?void 0:E.call(h))},
else:function(){return h.children}})},"s"),v4=_.O(function(h){return h.children},"t");var l8D=_.O(function(h){var E=_.zT(),g=_.G(_.Bm(void 0,void 0,"Ug77pc")),Z=g.next().value,M=g.next().value;g=_.G(_.Bm(void 0,void 0,"XGf7Zb"));var W=g.next().value,z=g.next().value;g=_.G(_.Bm(0,void 0,"Ygnx7b"));var c=g.next().value,I=g.next().value;g=_.J7(function(){switch(c()){case 1:I(2);break;case 3:var U,L;(L=(U=E.value).hidePopover)==null||L.call(U);I(0);M(void 0);z(void 0)}});
_.lX(function(){if(h.show()){var U;M((U=h.children)==null?void 0:U.call(h));var L;z((L=h.location)==null?void 0:L.call(h));switch(c()){case 0:var d,C;(C=(d=E.value).showPopover)==null||C.call(d);I(1);break;case 3:I(1);var q,w;(w=(q=E.value).hidePopover)==null||w.call(q);var r,v;(v=(r=E.value).showPopover)==null||v.call(r)}}else switch(c()){case 2:I(3);break;case 1:var H,u;(u=(H=E.value).hidePopover)==null||u.call(H);M(void 0);z(void 0);I(0)}},"lOyibf");
_.vJ(function(){});
var B={};return _.R("yt-popover",{popover:"manual",el:E,style:_.fO({left:function(){var U;return(U=W())==null?void 0:U.left},
top:function(){var U;return(U=W())==null?void 0:U.top},
bottom:function(){var U;return(U=W())==null?void 0:U.bottom},
right:function(){var U;return(U=W())==null?void 0:U.right}}),
class:_.CO("ytPopoverComponentHost",h.classNames,(B.ytPopoverComponentHostClosing=function(){return c()===3},B.ytPopoverComponentHostSeeThrough=function(){var U;
return((U=h.seeThrough)==null?void 0:U.call(h))===!0},B)),
"on:animationend":g},Z)},"u");var rvC={left:"0px",right:"auto",top:"0px",bottom:"auto"},mYD=function(){var h=this;this.registerTooltipElement=function(g){var Z;h.tooltipElement=(Z=g.querySelector("yt-popover"))!=null?Z:void 0};
var E=_.G(_.Bm(void 0,void 0,"z4iHWd"));this.state=E.next().value;this.setState=E.next().value;E=_.G(_.Bm(void 0,void 0,"uKDcaf"));this.schedulerJobID=E.next().value;this.setSchedulerJobID=E.next().value},qg4=function(h,E){var g=Sd,Z=_.KP.addJob(function(){var M=vyH(g,h,E);
g.setState({text:E.text,location:M,anchor:h,offset:E.offset})},4,E.delay);
g.setSchedulerJobID(Z)},fKN=function(){var h=Sd,E=h.schedulerJobID();
E&&(_.KP.cancelJob(E),h.setSchedulerJobID(void 0));h.setState(void 0)};
mYD.prototype.notify=function(h,E){var g;((g=this.state())==null?void 0:g.anchor)===h&&(g=vyH(this,h,E),this.setState({text:E.text,location:g,anchor:h,offset:E.offset}))};
var vyH=function(h,E,g){var Z=E.getBoundingClientRect();E=window.innerWidth;var M=window.innerHeight,W=g.location,z=g.offset;g=g.text;if(h=h.tooltipElement){var c=getComputedStyle(h);h=c.font;var I=t7(c.lineHeight),B=t7(c.paddingLeft),U=t7(c.paddingRight),L=t7(c.paddingTop);c=t7(c.paddingBottom);var d=document.createElement("canvas").getContext("2d");d.font=h;g={width:d.measureText(g).width+B+U,height:I+L+c}}else g=void 0;h=g;if(!h)return rvC;g=h.width;h=h.height;B=z+h;L=z+g;I=Z.top>=B;B=M-Z.bottom>=
B;U=Z.left>=L;L=E-Z.right>=L;c=W;switch(W){case "top":!I&&B&&(c="bottom");break;case "bottom":!B&&I&&(c="top");break;case "left":!U&&L&&(c="right");break;case "right":!L&&U&&(c="left")}switch(c){case "top":W=Z.left+Z.width/2-g/2;Z=Z.top-h-z;break;case "bottom":W=Z.left+Z.width/2-g/2;Z=Z.bottom+z;break;case "left":W=Z.left-g-z;Z=Z.top+Z.height/2-h/2;break;case "right":W=Z.right+z;Z=Z.top+Z.height/2-h/2;break;default:W=Z.left+Z.width/2-g/2,Z=Z.bottom+z}z=Object.assign({},rvC);W+g>E?(z.right="0px",z.left=
"auto"):(z.left=Math.round(Math.max(0,W)+window.scrollX)+"px",z.right="auto");Z+h>M?(z.bottom="0px",z.top="auto"):(z.top=Math.round(Math.max(0,Z)+window.scrollY)+"px",z.bottom="auto");return z};var Sd;Sd=new mYD;_.Hvl=_.O(function(){var h=_.Cw(function(){var g;return(g=Sd.state())==null?void 0:g.text},void 0,"jgLmfd"),E=_.Cw(function(){var g;
return(g=Sd.state())==null?void 0:g.location},void 0,"zV1Udb");
return _.R("yt-tooltip",{class:"ytTooltipContainerHost",el:_.zT(Sd.registerTooltipElement),"aria-hidden":"true"},_.R(l8D,{classNames:"ytTooltipContainerContent",location:E,show:function(){return!!h()},
seeThrough:!0},h))},"v");var dTO=pw("stamper-context");_.H4=_.O(function(h){var E=h.data;var g=h.icon;var Z=h.iconName;var M=h.animateIcon;var W=h.secondaryIcon;var z=h.secondaryIconName;var c=h.focusedOverride;var I=h.clientOnlyWizTooltipsEnabled;tCz();var B=BVq(E),U=B.size,L=B.style;h=B.disabled;var d=B.onTap,C=B.alignByText,q=B.aTagConfig,w=B.customColors,r=B.segmentedPosition,v=B.toggled,H=B.toggleable,u=B.accessibilityLabel,k=B.onToggle,y=B.iconPosition,A=B.oneOffCustomTextWrap,E4=B.disableTextEllipsis,iO=B.disableBackdropFilter,RW=B.tooltipText,
NN=B.ariaHidden,Cd=B.tabIndex,Ba=B.buttonText,$$=B.formattedButtonText,Ha=B.animatedTextProps,zf=B.onClickRateLimitMs,eF=d4z(E,g,W,Z,z,c,M),Rm=eF.type;g=eF.shouldFocus;Z=eF.hasIconLeading;M=eF.hasIconTrailing;var bO=eF.hasIconLeadingTrailing,jF=eF.hasIconOnly;W=eF.hasIconOnly40;var PM=eF.hasIconWithLabel;z=eF.iconButton;var ll=eF.visiblyDisabled;c=eF.overrideSmallSizeIcon;B=eF.iconToRender;eF=eF.secondaryIconToRender;var xU=_.G(NVz(RW)).next().value,pU=function(Im){d==null||d(Im);H()&&(k==null||k(Im))},
pd=_.Cw(function(){return zf==null?void 0:zf()},void 0,"wrF7V"),gB=_.Cw(function(){return pd()?llB(pU,pd()):pU},void 0,"fG5dyf"),CD={},E0={};
return _.R(DYB,{className:_.CO("yt-spec-button-shape-with-label",(CD["yt-spec-button-shape-with-label--is-overlay"]=function(){return L()==="overlay"||L()==="overlay-dark"},CD)),
hasLabel:PM,textContent:function(){return _.R(xYf,{text:Ba,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:A,iconPosition:y,formattedButtonText:$$,animatedTextProps:Ha})}},_.R(SAl,{aTagConfig:q,
className:_.CO("yt-spec-button-shape-next",function(){return Cu4(Rm())},function(){return ll()?void 0:J_$(L())},function(){return eDu(U())},(E0["yt-spec-button-shape-next--disabled"]=ll,E0["yt-spec-button-shape-next--focused"]=g,E0["yt-spec-button-shape-next--icon-trailing"]=M,E0["yt-spec-button-shape-next--icon-leading"]=Z,E0["yt-spec-button-shape-next--icon-leading-trailing"]=bO,E0["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return bO()&&!(Ba()||$$())},E0["yt-spec-button-shape-next--icon-button"]=
function(){return jF()||PM()},E0["yt-spec-button-shape-next--icon-only-default"]=W,E0["yt-spec-button-shape-next--align-by-text"]=C,E0["yt-spec-button-shape-next--segmented-start"]=function(){return r()==="start"},E0["yt-spec-button-shape-next--segmented-end"]=function(){return r()==="end"},E0["yt-spec-button-shape-next--override-small-size-icon"]=c,E0["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=A,E0["yt-spec-button-shape-next--disable-text-ellipsis"]=E4,E0["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!iO()&&!_.J("web_disable_backdrop_filter")},E0)),
style:function(){var Im=w();if(Im){var Qk=Im.color;var TN=Im.backgroundColor;Im=Im.borderColor;var hC="";Qk&&(hC+="color: "+Qk+";");TN&&(hC+="background-color: "+TN+";");Im&&(hC+="border-color: "+Im+";");Qk={style:hC}}else Qk={};return Qk.style},
onClick:function(Im){gB()(Im)},
disabled:h,ariaLabel:u,toggleable:H,toggled:v,title:function(){return(I==null?0:I())||!RW()?"":RW()},
visiblyDisabled:ll,ariaHidden:NN,tabIndex:Cd,ref:function(Im){(I==null?0:I())&&xU(Im)}},_.R(wjH,{data:E,
hasIconLeading:Z,hasIconLeadingTrailing:bO,hasIconTrailing:M,iconButton:z,icon:B,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:eF})))},"w");
_.H4.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.$l=_.O(function(h){var E=h.data;var g=h.className;var Z=h.style;var M=h.useOutlinedIcon;var W=h.buttonOverrides;var z=h.animatedTextProps;var c=h.onClick;var I=h.target;var B=_.hf("button-view-model",function(H){H.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var u=E().targetId;u&&_.j4M(_.bc(),u,H);return function(){Uzl(_.bc(),H)}}),U=function(){return E().iconName},L,d=(L=_.GF().resolve(_.pl(_.gu)))==null?void 0:L(),C=function(){var H=E();
var u=W==null?void 0:W(),k=z==null?void 0:z(),y=I==null?void 0:I();if(H){var A=m4a(H.type);var E4=!!H.title||!!H.titleFormatted;var iO=!(!H.iconName&&!H.iconImage);E4=iO&&!E4?"icon-only":iO?H.iconTrailing||H.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;E4==="icon-only-40"&&(A="text");var RW;iO=(RW=u==null?void 0:u.state)!=null?RW:vfd(H.state);var NN,Cd=(NN=u==null?void 0:u.disabled)!=null?NN:H.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||H.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.J("web_button_vm_refactor_disabled")){var Ba;Cd=(Ba=u==null?void 0:u.disabled)!=null?Ba:iO==="disabled"}k=k&&k.numberText&&!isNaN(Number(k.numberValue))?k:void 0;NN=Object;Ba=NN.assign;RW=H.title;var $$=H.titleFormatted,Ha=H.accessibilityText,zf=r_x(H.style),eF=HGd(H.buttonSize);y=lK$(H,B,Cd,c,y);Cd=Cd&&!H.onDisabledTap;var Rm=wf$(H,B),bO=H.customFontColor,jF=H.customBackgroundColor;var PM=H.customBorderColor;var ll=H.customDarkThemeFontColor,xU=H.customDarkThemeBackgroundColor,pU=H.customDarkThemeBorderColor;
bO=d&&ll?ll:bO;jF=d&&xU?xU:jF;PM=d&&pU?pU:PM;PM={color:bO?_.uU(bO):void 0,backgroundColor:jF?_.uU(jF):void 0,borderColor:PM?_.uU(PM):void 0};H=Ba.call(NN,{},{buttonText:RW,formattedButtonText:$$,animatedTextProps:k,accessibilityLabel:Ha,style:zf,type:A,state:iO,size:eF,iconPosition:E4,onTap:y,disabled:Cd,aTagConfig:Rm,customColors:PM,tooltipText:H.tooltip},u)}else H={style:"mono",type:"text",state:"active",size:"M"};H.focused=r();return H},q=function(){return L_N(C(),!!E().iconName)};
h=_.G(_.Bm(!1,void 0,"WVXhrd"));L=h.next().value;var w=h.next().value,r=L;h=_.J7(function(){var H=_.GF().resolve(_.pl(_.DX));H&&w(H.isKeyBoardInUse());return!1});
L=_.J7(function(){w(!1);return!1});
_.lX(function(){var H,u=_.e(E==null?void 0:(H=E())==null?void 0:H.onVisible,_.V1);u&&_.y1(u,{disableClickTracking:!0})},"w0lGYc");
var v=_.J("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.R("button-view-model",{el:B,class:_.CO("ytSpecButtonViewModelHost",g),"on:focusin":h,"on:focusout":L},_.R(_.P,{cond:function(){var H;return(E==null?0:(H=E())==null?0:H.iconImage)?{sources:[E().iconImage]}:void 0},
then:function(H){return _.R(_.H4,{data:C,icon:function(){return _.R(_.pO,{data:H,alt:"",targetWidth:q,targetHeight:q,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:v})},
else:function(){return _.R(_.H4,{data:C,icon:function(){return _.R(_.Ni,{icon:U,active:function(){return(M==null?0:M())?!1:C().toggled},
animateIcon:function(){var H;return!!(Z==null?0:(H=Z())==null?0:H.animateIcon)},
size:q})},
clientOnlyWizTooltipsEnabled:v})}}))},"x");
_.$l.idomCompat={callbacks:{onClick:!0}};_.I9(_.O(function(h){return _.R("yt-button-view-model",{id:h.id,class:_.CO(h.scopingClassName,h.classes),icon:function(){var E;return(E=h.icon)==null?void 0:E.call(h)},
"dialog-dismiss":function(){var E;return((E=h.dialogDismiss)==null?0:E.call(h))?"":void 0}},_.R(_.$l,{data:function(){var E;
return(E=h.data)==null?void 0:E.call(h)},
className:function(){var E;return(E=h.className)==null?void 0:E.call(h)},
style:function(){var E;return(E=h.style)==null?void 0:E.call(h)},
useOutlinedIcon:function(){var E;return(E=h.useOutlinedIcon)==null?void 0:E.call(h)},
buttonOverrides:function(){var E;return(E=h.buttonOverrides)==null?void 0:E.call(h)},
animatedTextProps:function(){var E;return(E=h.animatedTextProps)==null?void 0:E.call(h)},
onClick:function(E){var g;return(g=h.onClick)==null?void 0:g.call(h,E)}}))},"y"),"yt-button-view-model",{props:{data:_.C6,
className:_.C6,style:_.C6,useOutlinedIcon:_.C6,buttonOverrides:_.C6,animatedTextProps:_.C6,onClick:_.c$,scopingClassName:_.C6,id:_.C6,icon:_.C6,dialogDismiss:_.C6,classes:_.C6,target:_.c$}});_.I9(_.O(function(h){var E=h.data;var g=h.id;var Z=h.className;var M=h.iconName;var W=h.animateIcon;var z=h.secondaryIconName;h=_.G(_.Bm(!1,void 0,"TtJl8"));var c=h.next().value,I=h.next().value,B=function(){var L=_.GF().resolve(_.pl(_.DX));L&&I(L.isKeyBoardInUse())},U=function(){I(!1)};
h=_.hf("yt-button-shape",function(L){if(_.GF().resolve(_.pl(_.DX)))return L.addEventListener("focusin",B),L.addEventListener("focusout",U),function(){L.removeEventListener("focusin",B);L.removeEventListener("focusout",U)}});
return _.R("yt-button-shape",{el:h,id:g,class:Z},_.R(_.P,{cond:E,then:function(){return _.R(_.H4,{data:E,iconName:M,secondaryIconName:z,focusedOverride:c,animateIcon:W})}}))},"z"),"yt-button-shape",{props:{data:_.C6,
id:_.C6,className:_.C6,iconName:_.C6,animateIcon:_.C6,secondaryIconName:_.C6,clientOnlyWizTooltipsEnabled:_.C6,disableUpgrade:_.C6},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var K6=function(){var h=_.D.apply(this,arguments)||this;h.isGoalActive=!0;return h};
_.f(K6,_.D);K6.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
K6.prototype.progressBarChanged=function(){var h=_.UB(this.hostElement).querySelector("#progress-bar-progress"),E,g,Z,M=(Z=Number((E=this.creatorGoalState)==null?void 0:E.currentGoalCount)/Number((g=this.creatorGoalState)==null?void 0:g.totalGoalCount)*100)!=null?Z:0,W;h.style.width=((W=Math.min(M,100))!=null?W:0)+"%"};
K6.prototype.goalStateChanged=function(){var h;this.isGoalActive=((h=this.creatorGoalState)==null?void 0:h.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var E;h={"--yt-progress-bar-color":JPV((E=this.creatorGoalState)==null?void 0:E.progressBarColor)};_.Ja(this.hostElement,h)};
K6.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ze.Object.defineProperties(K6.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var h;return this.isGoalActive&&!((h=this.creatorGoalState)==null||!h.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.creatorGoalState)==null?0:h.endTimestampMs){var E;h=Number((E=this.creatorGoalState)==null?void 0:E.endTimestampMs)/1E3;return{seconds:String(h)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.creatorGoalState)==null?0:h.themedTargetImage){var E;h=_.e((E=this.creatorGoalState)==null?void 0:E.themedTargetImage,myH);return this.isAppDarkTheme()?h==null?void 0:h.imageDark:h==null?void 0:h.imageLight}}}});
_.ze.Object.defineProperties(K6,{template:{configurable:!0,enumerable:!0,get:function(){return ivl()}}});
K6.prototype.goalStateChanged=K6.prototype.goalStateChanged;K6.prototype.progressBarChanged=K6.prototype.progressBarChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],K6.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);
_.Y([_.x({selectorArgs:["data.creatorGoalEntityKey"],selector:function(h,E){return _.Jj(h.entities,"creatorGoalEntity",E)}}),
_.V("design:type",Object)],K6.prototype,"creatorGoalState",void 0);_.Y([_.x(),_.V("design:type",Object)],K6.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],K6.prototype,"isGoalActive",void 0);_.Y([_.S("creatorGoalState","isGoalActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K6.prototype,"shouldShowCountdown",null);_.Y([_.S("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],K6.prototype,"endTimestamp",null);
_.Y([_.S("creatorGoalState"),_.V("design:type",Object),_.V("design:paramtypes",[])],K6.prototype,"targetIconThemedImage",null);_.Y([_.Nm("creatorGoalState.currentGoalCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K6.prototype,"progressBarChanged",null);_.Y([_.Nm("creatorGoalState.creatorGoalState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K6.prototype,"goalStateChanged",null);
_.Y([_.yc({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],K6);_.X(K6,"yt-creator-goal-progress-flow-view-model",function(){return ivl()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var $Yk;var Kpn;var Oh=function(){return _.D.apply(this,arguments)||this};
_.f(Oh,_.D);Oh.prototype.attached=function(){var h,E,g;if(this==null?0:(h=this.data)==null?0:(E=h.pdgPurchasedBumperLoggingDirectives)==null?0:(g=E.loggingDirectives)==null?0:g.trackingParams){var Z,M,W;OGO(this==null?void 0:(Z=this.data)==null?void 0:(M=Z.pdgPurchasedBumperLoggingDirectives)==null?void 0:(W=M.loggingDirectives)==null?void 0:W.trackingParams)}};
Oh.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Oh.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Oh.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Oh);
_.X(Oh,"yt-live-chat-item-bumper-view-model",function(){if(Kpn===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;$Yk===void 0&&($Yk=document.createElement("template"));var Z=$Yk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Kpn=h}h=Kpn;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Ovk;var nyD;_.Zd=function(h,E){this.data=h;this.actions=E;this.data=h;this.actions=E};
_.A7=function(){};_.n6={};_.n6.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(h,E){nfO(this.hostElement,h,E)},
getNavigationEndpointPopupAction:function(h){return XfZ(h,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(h,E){Ygx(this.hostElement,h,E,this.openPopupConfig)}};var QAq=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Xd={};
_.Xd.YtEndpointBehavior=[_.n6.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.nF("openPopupConfig");(this.useClickHandler=_.Xn("useClickHandler",!1))?this.hostElement.addEventListener("click",eg(this,this.onEndpointClick_)):(ng(this.hostElement,"tap",eg(this,this.onEndpointTap_)),ng(this.hostElement,"touchend",eg(this,this.onEndpointTouchEnd_)));ng(this.hostElement,"touchstart",eg(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
eg(this,this.onEndpointTapStart_))},
onEndpointClick_:function(h){kLW(this.hostElement,h,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(h){var E=this.hostElement,g=this.openPopupConfig,Z=this.disableCommandHandlerOverride;Z=Z===void 0?!1:Z;var M=sAz(h);if(M){M.href&&EB(M.href);var W=h.detail;var z=W.sourceEvent;W=W.preventer;z=z.button!==void 0?z.button===0&&!wu(z):W?!wu(W):!0;M.data&&z&&VC$(E,M,h,g,Z)}},
onEndpointTouchEnd_:function(h){wu(h)||sAz(h)&&h.preventDefault()},
onEndpointTapStart_:function(h){bGW(h)}}];_.Yl={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(h){for(var E=_.Tq.getInstance(),g=_.G(Object.keys(h)),Z=g.next();!Z.done;Z=g.next()){var M=Z.value;Z=h[M];if(this&&this[Z]){var W=E.actionRoutingMap.get(M);W||(W=new Map,E.actionRoutingMap.set(M,W));E.registerActionHandler(this,M,this[Z].bind(this),W)}else M=Error("md"),M.params=Z,_.Vy(M)}},
unregisterActionMap:function(h){_.up(_.Tq.getInstance(),h,this)}}]};var ru=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_"+(_.J("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.J("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.J("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.J("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.J("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.J("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var lF;var mm=new Map;var I3$=window.matchMedia("(forced-colors: active)").matches;var Xjl;var YAl;var skD=new _.Ps("LOTTIE_LOADER_TOKEN");_.sh=_.O(function(h){var E=h.data;var g=h.className;var Z=h.animationName;var M=h.animationRef;var W=h.elRefForInterop;var z=_.MC("lottie-component"),c;_.r9(function(){var B;return void((B=c)==null?void 0:B.destroy())});
var I;_.lX(function(){var B=_.Hm(Z);if(B!==I){I=B;var U=Object.assign({},{animationName:B,animationRef:_.Hm(M)},_.Hm(E));try{_.GF().resolve(skD)().then(function(C){var q;(q=c)==null||q.destroy();var w,r;q=(r=W==null?void 0:(w=W())==null?void 0:w.value)!=null?r:z.value;w=U.animationRef;r=U.listeners;C=C.loadAnimation(Object.assign({},{container:q},U.animationConfig));w&&(w.lottieEl=C);if(r)for(q=_.G(Object.entries(r)),w=q.next();!w.done;w=q.next())r=_.G(w.value),w=r.next().value,(r=r.next().value)&&
C.addEventListener(w,r);c=C})}catch(C){B=C;
var L="LottieComponent error.";B.message&&(L+=" Original description: "+B.message);_.nI(B,L);_.O$(B);var d;((d=U.listeners)==null?0:d.error)&&U.listeners.error(B)}}},"nrJISd");
return _.R(AQM,{cond:function(){return!(W==null?0:W())},
then:function(){return _.R("lottie-component",{class:_.CO("ytLottieComponentHost",g),el:z})}})},"A");_.I9(_.O(function(h){return _.R("ytd-lottie-player",{id:h.id,hidden:h.hidden,class:h.className,"aria-label":h.ariaLabel,style:"display: block;"},_.R(_.sh,{data:h.data,animationName:function(){var E;return((E=h.data().animationConfig)==null?void 0:E.name)||""},
animationRef:function(){return h.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.C6,
id:_.C6,hidden:_.C6,className:_.C6,ariaLabel:_.C6}});var Vl=function(){var h=_.D.apply(this,arguments)||this;h.animationRef={};h.delhiIconsEnabled=_.J("enable_web_delhi_icons");return h};
_.f(Vl,_.D);_.p=Vl.prototype;
_.p.handlePropertyChange=function(){var h=this.animatedIcon,E=this.active,g=this.isDarkTheme;if(h){var Z=this.previousActive!==E;this.previousActive=E;this.animationRef.lottieEl?Z&&this.toggleAnimation(E,h.totalFrames):E?this.initializeAnimationAsToggled(h.lottiePlayerProps,h.totalFrames):this.initializeAnimationAsUntoggled(h.lottiePlayerProps);h.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=h.type;this.lottiePlayerProps=this.computeLottiePlayerProps(h,g)}};
_.p.computeLottiePlayerProps=function(h,E){var g=this.deepCloneLottiePlayerProps(h);E?(E=h.nameDarkTheme,h=h.pathDarkTheme):(E=h.name,h=h.path);g.animationConfig.name=E;(E=mm.get(h))?g.animationConfig.animationData=E:g.animationConfig.path=h;return g};
_.p.initializeAnimationAsToggled=function(h,E){h.animationConfig.initialSegment=[E-1,E]};
_.p.initializeAnimationAsUntoggled=function(h){h.animationConfig.initialSegment=void 0};
_.p.toggleAnimation=function(h,E){if(h){var g;(g=this.animationRef.lottieEl)==null||g.playSegments([0,E],!0)}else{var Z;(Z=this.animationRef.lottieEl)==null||Z.playSegments([0,1],!0)}};
_.p.deepCloneLottiePlayerProps=function(h){var E=Object.assign({},h.lottiePlayerProps.animationConfig);h=Object.assign({},h.lottiePlayerProps);h.animationConfig=E;return h};
Vl.prototype.handlePropertyChange=Vl.prototype.handlePropertyChange;_.Y([_.x(),_.V("design:type",Object)],Vl.prototype,"animatedIcon",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Vl.prototype,"active",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Vl.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Vl.prototype,"animatedIconType",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Vl.prototype,"previousActive",void 0);
_.Y([_.x(),_.V("design:type",Object)],Vl.prototype,"lottiePlayerProps",void 0);_.Y([_.x(),_.V("design:type",Object)],Vl.prototype,"animationRef",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Vl.prototype,"delhiIconsEnabled",void 0);_.Y([_.Nm("animatedIcon","active","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vl.prototype,"handlePropertyChange",null);_.Y([_.yc({is:"yt-animated-icon",disableElementRegistration:!0})],Vl);
_.X(Vl,"yt-animated-icon",function(){if(YAl===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Xjl===void 0&&(Xjl=document.createElement("template"));var Z=Xjl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);YAl=h}h=YAl;return h},{mode:2});var VTm;var kBC;var j$O=_.O(function(h){var E=_.MC("span"),g=HJ(function(){return{value:null,cancelled:!1}});
_.r9(function(){g.cancelled=!0});
var Z=_.Cw(h.data,{equals:function(M,W){return M.iconName===W.iconName&&M.iconStyle===W.iconStyle&&M.iconSize===W.iconSize&&M.iconSetName===W.iconSetName&&M.iconSelected===W.iconSelected}},"AoOoyf");
_.lX(function(){var M,W=(M=h.options)==null?void 0:M.call(h);LY$(E,g,Z(),W)},"Tie9e");
return _.R("span",{class:"yt-icon-shape",el:E})},"C");
j$O.idomCompat=!0;var jsa=["youtube_fill","youtube_outline"];var yvf=new _.sJ({type:"iconset",value:void 0}),kl=function(){var h=_.D.apply(this,arguments)||this;h.isDarkTheme=document.documentElement.hasAttribute("dark");h.iconName="";h.iconsetName="yt-icons";h.iconset=null;h.missingIconSet=!1;h.iconType=null;h.iconShapeDataSignal=_.Bm(void 0,void 0,"b0v7Ac");h.renderingOptionsSignal=_.Bm({iconWidth:"100%",iconHeight:"100%",iconFilter:h.iconFilter},void 0,"Ls6l3e");h.wizHasRendered=!1;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(kl,_.D);kl.prototype.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.isDarkTheme=h)};
kl.prototype.handlePropertyChange=function(){var h=this,E,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v;return _.a(function(H){switch(H.nextAddress){case 1:if(E=!h.icon&&!h.iconName||!h.isAttached)return H.return();g=h;Z=g.icon;M=g.size;W=g.defaultToFilled;z=g.active;c=g.targetContainer;h.toggleContainerClass(c);_.J("kevlar_use_wil_icons")&&Z&&(I=A3x(Z),h.iconType=I.length?I[1]:null);if(Z){H.jumpTo(2);break}h.iconsetName="";h.iconName="";return H.yield(h.renderIcon(c,Z),3);case 3:return H.return();case 2:B=FpC(Z);
U=A3x(B);U.length&&(h.iconsetName=U[0],h.iconName=U[1]);if(!_.J("kevlar_use_wil_icons")){H.jumpTo(4);break}L=kl;d=Avk;C=h.iconType;q=h.active;w=h.defaultToFilled;r=h.size;v=h.iconsetName;return H.yield(TYn(),6);case 6:return H.yield(d.call(L,C,q,w,r,v,H.yieldResult),5);case 5:h.iconShapeData=H.yieldResult;case 4:if(h.shouldRenderIconShape(c)){H.jumpTo(7);break}return H.yield(h.determineIconSet(B,z,W,M,c),7);case 7:return H.yield(h.renderIcon(c,Z),0)}})};
kl.prototype.toggleContainerClass=function(h){h?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var FpC=function(h){return!_.J("default_to_innertube_icon")||h.indexOf(":")>0?h:_.CL(h)};
_.p=kl.prototype;_.p.determineIconSet=function(h,E,g,Z){var M=this;return _.a(function(W){return W.nextAddress==1?_.J("kevlar_system_icons")||_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.nF("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?W.yield(M.switchToYtSysIconset(h,E,g,Z),3):W.jumpTo(2):W.nextAddress!=2?W.return():W.yield(M.useYtSysIconsetForMissingIcons(h,E,g,Z),0)})};
_.p.switchToYtSysIconset=function(h,E,g,Z){var M=this,W,z,c,I,B,U,L;return _.a(function(d){switch(d.nextAddress){case 1:if(!h||M.iconsetName!=="yt-icons"&&M.iconsetName!=="yt-sys-icons"){d.jumpTo(0);break}W=A3x(h);z=W[1];z=_.WFZ(z);_.J("enable_polymer_icons_replace_underscores_dash")&&z.includes("_filled")&&(z=z.replace(/_filled/g,"-filled"));return d.yield(dp(z,!0),3);case 3:return c=d.yieldResult,d.yield(dp(z,!1),4);case 4:if((I=d.yieldResult)||E&&c)M.iconsetName="yt-sys-icons";M.iconName=M.getIconName(z,
E,g,I,c);if(Z===24){d.jumpTo(0);break}B="yt-sys-icons"+Z+":"+M.iconName;return d.yield(dp(B,!1,!0),6);case 6:return U=d.yieldResult,d.yield(dp(B,!0,!0),7);case 7:L=d.yieldResult;M.iconName=M.getIconName(z,E,g,U,L);if(!E&&U||E&&L)M.iconsetName="yt-sys-icons"+Z;_.SK(d)}})};
_.p.getIconName=function(h,E,g,Z,M){h.includes("-filled")&&(h=h.replace("-filled",""));return M&&(E||g)?h+"-filled":h};
_.p.useYtSysIconsetForMissingIcons=function(h,E,g,Z){var M=this,W,z;return _.a(function(c){if(c.nextAddress==1)return M.iconsetName!=="yt-icons"?c.jumpTo(0):c.yield(dp(M.iconName,!1,!1,!0),3);if(c.nextAddress!=4)return W=c.yieldResult,c.yield(dp(M.iconName,!1),4);z=c.yieldResult;if(W||!z)return c.jumpTo(0);M.iconsetName="yt-sys-icons";return c.yield(M.switchToYtSysIconset(h,E,g,Z),0)})};
_.p.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var TYn=function(){return _.a(function(h){try{return h.return(_.GF().resolve(_.JW))}catch(E){return h.return(new Promise(function(g){_.RS().parkOrScheduleJob(function(){g(_.GF().resolve(_.JW))},2,"ci")}))}})},Avk=function(h,E,g,Z,M,W){Z=Z===void 0?24:Z;
if(h){h=h.toLowerCase();var z=h.endsWith("_filled")||h.endsWith("-filled");E={iconName:h,iconStyle:(E===void 0?0:E)||(g===void 0?0:g)||z?"youtube_fill":"youtube_outline",iconSize:Z,iconSetName:M===void 0?"yt-icons":M};g=!!W.resolveIcon(E);g||(E.iconSize=void 0,g=!!W.resolveIcon(E));!g&&z&&(E.iconName=h.substring(0,h.length-7),E.iconSize=Z,g=!!W.resolveIcon(E),g||(E.iconSize=void 0,g=!!W.resolveIcon(E)));g||(E.iconStyle=void 0,g=!!W.resolveIcon(E));g||_.O$(new _.xX("Icon not supported",{iconName:E.iconName,
iconStyle:E.iconStyle,iconSize:E.iconSize,iconType:h}));return g?E:void 0}};
_.p=kl.prototype;_.p.shouldRenderIconShape=function(h){if(!_.J("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;h=this.getContainer(h);return!RGq(h,this.icon)};
_.p.renderIcon=function(h,E){var g=this,Z,M,W,z,c,I,B,U;return _.a(function(L){switch(L.nextAddress){case 1:if(E&&g.icon!==E)return L.return();Z=g.getContainer(h);M=RGq(Z,g.icon);if(g.shouldRenderIconShape(h)&&g.iconType)return g.applyIconShape(M,Z),L.return();g.removeIconShape();if(!Z)return L.return();g.iconName===""&&g.iconset&&Z&&(g.removeStaticIcon(g.iconset,Z),M&&g.removeAnimatedIcon(Z));if(g.iconName===""&&g.iconset||!g.iconsetName||!yvf)return L.return();g.iconset=yvf.byKey(g.iconsetName);
if(!g.iconset)return g.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.qm(g,g.onIconsetAdded)),L.return();g.missingIconSet&&(g.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.qm(g,g.onIconsetAdded)));z=(W=M||g.isAnimatedIcon?i_u(g.icon):void 0)&&!W.lazyLoad;I=W&&((c=W)==null?void 0:c.lazyLoad)&&(W.lottiePlayerProps.animationConfig.animationData?!0:mm.get(g.isDarkTheme?W.pathDarkTheme:W.path)?!0:!1);if(z||I)return g.applyAnimatedIcon(Z,W,g.iconset),L.return();if(I||
(B=W)==null||!B.lazyLoad){L.jumpTo(2);break}U=Bbz(W,g.isDarkTheme);g.applyStaticIcon(g.iconset,Z,g.iconName,h,M);return L.yield(U,3);case 3:return L.yield(g.renderIcon(g.targetContainer,g.icon),4);case 4:return L.return();case 2:g.applyStaticIcon(g.iconset,Z,g.iconName,h,M),_.SK(L)}})};
_.p.getContainer=function(h){var E,g=(E=UqM(this.hostElement))==null?void 0:E.host;E=!!g&&!!g.polymerController;if(!h||E)return h?this.getTargetContainer(h,g):this.hostElement};
_.p.getTargetContainer=function(h,E){var g=_.UB(E).querySelector("#"+h);g||(h=new _.xX("yt-icon container missing",E.is,h),_.$W(h));return g};
_.p.applyStaticIcon=function(h,E,g,Z,M){M&&this.removeAnimatedIcon(E);this.removeIconShape();M=M&&!!this.iconType&&!!this.iconShapeData&&_.J("kevlar_use_wil_icons");try{M?this.applyIconShape(!1,E):h.applyIcon(E,g)}catch(W){this.handleError(W,Z,E)}};
_.p.applyIconShape=function(h,E){this.iconset&&E&&(this.removeStaticIcon(this.iconset,E),h&&this.removeAnimatedIcon(E));h={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var g=_.G(this.iconShapeDataSignal);E=g.next().value;g=g.next().value;var Z=_.G(this.renderingOptionsSignal),M=Z.next().value;Z=Z.next().value;g(this.iconShapeData);Z(h);if(!this.wizHasRendered)for(this.wizHasRendered=!0,h=_.G(dpx(E,M)).next().value;h.firstChild;)_.UB(this.hostElement).appendChild(h.firstChild)};
_.p.removeIconShape=function(){if(_.J("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.p.removeStaticIcon=function(h,E){h.removeIcon(E)};
_.p.applyAnimatedIcon=function(h,E,g){this.removeStaticIcon(g,h);this.removeIconShape();var Z;g=this.animatedIconElement&&((Z=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:Z.type)===E.type;if(this.animatedIconElement&&g){this.animatedIconElement.polymerController.animatedIcon=E;var M;((M=this.animatedIconElement)==null?void 0:M.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(h),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=E,this.animatedIconElement.polymerController.active=this.active,_.J("delhi_modern_web_player_icons")?(E=oIO(h,this.icon)&&h.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=E?E.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.J("kevlar_use_wil_icons")?
h.insertBefore(this.animatedIconElement,h.childNodes[0]):(h=_.UB(h),h.insertBefore(this.animatedIconElement,h.childNodes[0]))};
_.p.removeAnimatedIcon=function(h){_.J("kevlar_use_wil_icons")?this.animatedIconElement&&h.contains(this.animatedIconElement)&&h.removeChild(this.animatedIconElement):(h=_.UB(h),this.animatedIconElement&&h.contains(this.animatedIconElement)&&h.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.p.handleError=function(h,E,g){_.nI(h,this.iconName,E,g);E=RGq(g,this.icon);var Z=!1;window.location.href.includes("JpymaW6Lh2w")?Z=!0:g._svgIcon&&(g=(g=g._svgIcon.parentNode)?g.tagName:"unknown",_.nI(h,g),g==="YT-ICON"&&h.name==="NotFoundError"?Z=!0:h.name==="NotFoundError"&&E&&(Z=!0));Z?_.O$(h):_.$W(h)};
_.ze.Object.defineProperties(kl,{template:{configurable:!0,enumerable:!0,get:function(){if(kBC===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;
VTm===void 0&&(VTm=document.createElement("template"));var Z=VTm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);kBC=h}h=kBC;return h}}});
kl.prototype.handlePropertyChange=kl.prototype.handlePropertyChange;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],kl.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",String)],kl.prototype,"icon",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],kl.prototype,"active",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],kl.prototype,"defaultToFilled",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],kl.prototype,"isAnimatedIcon",void 0);
_.Y([_.x({value:24}),_.V("design:type",Number)],kl.prototype,"size",void 0);_.Y([_.x({value:""}),_.V("design:type",String)],kl.prototype,"targetContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],kl.prototype,"animatedIconElement",void 0);_.Y([_.x(),_.V("design:type",Object)],kl.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],kl.prototype,"ariaHidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],kl.prototype,"ariaLabel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],kl.prototype,"role",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],kl.prototype,"tabindex",void 0);_.Y([_.x(),_.V("design:type",String)],kl.prototype,"style",void 0);_.Y([_.x(),_.V("design:type",String)],kl.prototype,"iconFilter",void 0);
_.Y([_.Nm("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],kl.prototype,"handlePropertyChange",null);_.Y([_.yc({is:"yt-icon",noInjection:!0})],kl);var Chz="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),eGO=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var bvk={};bvk.YtPlaintextBehavior=[_.Kf,{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(h){h.preventDefault();h=h.clipboardData.getData("text/plain");document.execCommand("insertText",!1,h)},
preventRichTextFormatting_:function(h){_.LW&&(h=h.detail.keyboardEvent,h.stopImmediatePropagation(),h.preventDefault())}}];var uPB;var Qkf;var yl=function(){var h=_.D.apply(this,arguments)||this;h.ignoreShadyDom=!1;h.hasChange_=!1;h.hasSetTitle_=!1;h.useIOObserverForVisibilityLogging_=_.J("kevlar_use_vimio_behavior")&&_.nF("INNERTUBE_CLIENT_NAME")==="WEB";h.ytFormattedStringObserverHandlerKeys_=void 0;return h};
_.f(yl,_.D);_.p=yl.prototype;_.p.created=function(){this.useIOObserverForVisibilityLogging_=_.J("kevlar_use_vimio_behavior")&&_.nF("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.p.ready=function(){_.nF("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.p.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.p.detached=function(){this.unobserveIOObservers_()};
_.p.clearContents_=function(){for(var h=this.getRoot(),E=h.lastChild;E&&E.tagName!=="STYLE";){try{h.removeChild(E)}catch(g){break}E=h.lastChild}};
_.p.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var h=_.G(this.ytFormattedStringObserverHandlerKeys_),E=h.next();!E.done;E=h.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(E.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.p.resetForAttributedString=function(){var h=this.getRoot();!h.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),h.appendChild(this.ytAttributedStringElementRef))};
_.p.resetForFormattedString=function(){var h=this.getRoot(),E=h.querySelector("yt-attributed-string");E&&(this.ytAttributedStringElementRef=h.removeChild(E))};
_.p.textChanged=function(){this.textChanged_(this.text)};
_.p.textChanged_=function(h){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!h||!h.runs&&!h.simpleText;if(_.J("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var E=this.hostElement.firstChild;E&&E.nodeName==="FONT";){var g=E;E=E.nextSibling;this.hostElement.removeChild(g)}E=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
g=h.simpleText;var Z;!g&&((Z=h.runs)==null?void 0:Z.length)===1&&this.isSimpleString_(h.runs[0])&&(g=h.runs[0].text);g!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.nF("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(g!==void 0){try{E.textContent=g}catch(M){}E.textContent||(this.isEmpty=!0)}else h=h.runs,g!==void 0&&(h=[{text:g}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),h&&this.updateText_(h),
E.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.p.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.p.computeAriaLabel_=function(h){return h};
_.p.computeEllipsisTruncateStyling=function(h,E){return h&&!E};
_.p.computeUseAttributedString=function(h){return _.J("web_replace_formatted_with_attributed_string")&&KF$(h)&&!this.disableAttributedString&&!this.enableContentEditable};
_.p.setNodeStyle_=function(h,E){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.J("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?E.removeAttribute("dir"):E.setAttribute("dir","auto");E.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");E.style.color="";var g=null;this.noStyles||(h.bold&&(E.classList.add("bold"),g="bold"),h.deemphasize&&(E.classList.add("deemphasize"),g="deemphasize"),h.italics&&E.classList.add("italic"),
h.strikethrough&&E.classList.add("strikethrough"),h.errorUnderline&&(E.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),h.bracket&&E.classList.add("bracket"),h.textColor&&(E.style.color=_.bU(h.textColor)));g!==E.getAttribute("style-target")&&(g?E.setAttribute("style-target",g):E.removeAttribute("style-target"))};
_.p.setUpVisibilityLogging_=function(h,E){var g=this;this.setNodeTrackingParams_(h,E);var Z;((Z=E.data)==null?0:Z.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(h=this.ytRendererBehavior.visibilityObserver.observe(E,function(M){var W=g.ytRendererBehavior.getVisibilityLogger();W&&W.reportShown(M)},this.ytRendererBehavior.visibilityOptionVisible_),E=this.ytRendererBehavior.visibilityObserver.observe(E,function(M){var W=g.ytRendererBehavior.getVisibilityLogger();
W&&W.reportHidden(M)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(h),this.ytFormattedStringObserverHandlerKeys_.push(E))};
_.p.setNodeTrackingParams_=function(h,E){E.data||(E.data={});if((h=h.loggingDirectives?h.loggingDirectives.trackingParams:null)||E.data.trackingParams)E.data.trackingParams=h};
_.p.computeHasLinkOnly_=function(h){return!(!h||h.length!==1||this.noEndpoints||!h[0].navigationEndpoint)};
_.p.getRoot=function(){var h=this.buildScopeDomOptions();return this.enableContentEditable?_.UB(_.UB(this.hostElement,h).querySelector("[contenteditable]")):_.UB(this.hostElement,h)};
_.p.fixContenteditableScope=function(){var h=function(E){E&&(E.nodeType===1&&E.classList&&(E.classList.add("style-scope"),E.classList.add("yt-formatted-string")),E.childNodes&&E.childNodes.forEach(function(g){h(g)}))};
h(this.getRoot())};
_.p.updateText_=function(h){for(var E=h.length,g=this.getRoot(),Z=g.firstChild;Z&&Z.nodeName==="STYLE";)Z=Z.nextSibling;for(var M=0;M<E&&Z;){var W=h[M],z=_.J("remove_cr_char")&&W.text?W.text.replace("\r",""):W.text;if(this.isSimpleString_(W)&&!this.useMixedDirectionFormattedStrings)if(Z.nodeName==="#text"){Z.textContent!=z&&(Z.textContent=z);M++;Z=Z.nextSibling;continue}else break;if(_.e(W,YB))break;else if(!this.noEndpoints&&W.navigationEndpoint){if(Z.nodeName!=="A")break;this.setDataOnAnchor_(Z,
W.navigationEndpoint)}else if(Z.nodeName!=="SPAN")break;this.setNodeStyle_(W,Z);this.setUpVisibilityLogging_(W,Z);Z.textContent!=z&&(Z.textContent=z);M++;Z=Z.nextSibling}if(Z)for(W=g.lastChild,Z=M?Z.previousSibling:null;W&&W!=Z;){try{g.removeChild(W)}catch(c){break}W=g.lastChild}M!==E&&this.addTextNodes_(h,M)};
_.p.addTextNodes_=function(h,E){for(var g=document.createDocumentFragment(),Z=h.length;E<Z;E++){var M=h[E],W=_.J("remove_cr_char")&&M.text?M.text.replace("\r",""):M.text;if(this.isSimpleString_(M)&&!this.useMixedDirectionFormattedStrings)g.appendChild(document.createTextNode(W));else{var z=_.e(M,YB);if(z){if(z.image){var c=document.createElement("img");z.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");z.isCustomEmoji&&(c.dataset.emojiId=z.emojiId);c.src=_.R9(z.image.thumbnails,
this.emojiSize);(M=this.get("image.accessibility.accessibilityData.label",z))?c.alt=M:z.shortcuts&&z.shortcuts.length>0?c.alt=z.shortcuts[0]:z.emojiId&&(c.alt=z.emojiId);g.appendChild(c);this.hasEmoji=!0}}else!this.noEndpoints&&M.navigationEndpoint?(c=document.createElement("a"),c.classList.add("yt-simple-endpoint"),c.setAttribute("spellcheck","false"),this.setDataOnAnchor_(c,M.navigationEndpoint)):c=document.createElement("span"),this.setNodeStyle_(M,c),this.setUpVisibilityLogging_(M,c),c.appendChild(document.createTextNode(W)),
g.appendChild(c)}}this.getRoot().appendChild(g)};
_.p.isSimpleString_=function(h){return(this.noEndpoints||!h.navigationEndpoint)&&!_.e(h,YB)&&(this.noStyles||!(h.bold||h.deemphasize||h.italics||h.strikethrough||h.errorUnderline||h.bracket||h.textColor))&&!h.loggingDirectives};
_.p.getRawText=function(){return _.Wp(this.text)};
_.p.getFirstRunText=function(){var h;if(((h=this.text)==null?0:h.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.p.setFirstRunText=function(h){var E;((E=this.text)==null?0:E.runs)&&this.text.runs[0]&&(this.text.runs[0].text=h,this.textChanged_(this.text))};
_.p.setDataOnAnchor_=function(h,E){var g=this;!_.J("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(E)||this.isSignalServiceEndpoint_(E)?(h.onclick=this.serviceEndpointHandler_(E),yF(h,"#")):KzW({text:this.text,command:E},function(){b4d(h,E,g.target)})};
_.p.isServiceEndpoint_=function(h){var E;return!((E=_.e(h==null?void 0:h.commandMetadata,_.qH))==null||!E.sendPost)};
_.p.isSignalServiceEndpoint_=function(h){return!!_.e(h,_.ej)};
_.p.serviceEndpointHandler_=function(h){var E=this;return function(g){_.LZ(E.hostElement,[h]);g.preventDefault()}};
_.p.overrideAriaLabelChanged_=function(){var h=this.getRoot();this.enableContentEditable&&h&&h.setAttribute("aria-label",this.overrideAriaLabel)};
_.p.enableContentEditableChanged_=function(){var h=this,E=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),E=_.UB(this.hostElement,E),!E.lastChild||E.lastChild instanceof HTMLElement&&E.lastChild.id!=="contenteditable-root"){var g=document.createElement("div");g.id="contenteditable-root";g.setAttribute("contenteditable","true");g.setAttribute("dir","auto");g.onfocus=function(){h.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
E.appendChild(g);this.overrideAriaLabel&&g.setAttribute("aria-label",this.overrideAriaLabel)}}else g=_.L3(this.hostElement).firstChild,g instanceof HTMLElement&&g.id==="contenteditable-root"&&_.UB(this.hostElement,E).removeChild(g)};
_.p.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.p.getNodesForVisibilityLogging_=function(){return _.i3(this.getRoot().childNodes,function(h){var E;return!((E=h.data)==null||!E.trackingParams)})};
_.p.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.p.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var h=this.ytRendererBehavior.getVisibilityLogger();h&&this.getNodesForVisibilityLogging_().forEach(function(E){h.reportShown(E)})}};
_.p.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var h=this.ytRendererBehavior.getVisibilityLogger();h&&this.getNodesForVisibilityLogging_().forEach(function(E){h.reportHidden(E)})}};
_.ze.Object.defineProperties(yl.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.J("enable_mixed_direction_formatted_strings")}}});
yl.prototype.enableContentEditableChanged_=yl.prototype.enableContentEditableChanged_;yl.prototype.overrideAriaLabelChanged_=yl.prototype.overrideAriaLabelChanged_;yl.prototype.ellipsisTruncateChanged_=yl.prototype.ellipsisTruncateChanged_;yl.prototype.textChanged=yl.prototype.textChanged;_.Y([_.t(bvk.YtPlaintextBehavior),_.V("design:type",Object)],yl.prototype,"ytPlaintextBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],yl.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yl.prototype,"text",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"noEndpoints",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"noStyles",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],yl.prototype,"isDarkTheme",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],yl.prototype,"splitLines",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],yl.prototype,"forceDefaultStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],yl.prototype,"ellipsisTruncate",void 0);_.Y([_.x(),_.V("design:type",Object)],yl.prototype,"ignoreShadyDom",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.V("design:type",Boolean)],yl.prototype,"ellipsisTruncateStyling",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.V("design:type",String)],yl.prototype,"ariaLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],yl.prototype,"isEmpty",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.V("design:type",Boolean)],yl.prototype,"hasLinkOnly_",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"hasEmoji",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"disableAttributedString",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"isOverlay",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"linkInheritColor",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"noPreWrap",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"userInput",void 0);_.Y([_.x({value:16}),_.V("design:type",Number)],yl.prototype,"emojiSize",void 0);_.Y([_.x(),_.V("design:type",String)],yl.prototype,"target",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"enableContentEditable",void 0);_.Y([_.x(),_.V("design:type",String)],yl.prototype,"overrideAriaLabel",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"respectHtmlDir",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yl.prototype,"respectLangDir",void 0);_.Y([_.S("plaintextOnly"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yl.prototype,"useMixedDirectionFormattedStrings",null);_.Y([_.x({computed:"computeUseAttributedString(text)"}),_.V("design:type",Boolean)],yl.prototype,"useYtAttributedString",void 0);
_.Y([_.Nm("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yl.prototype,"textChanged",null);_.Y([_.Nm("ellipsisTruncate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yl.prototype,"ellipsisTruncateChanged_",null);_.Y([_.Nm("overrideAriaLabel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yl.prototype,"overrideAriaLabelChanged_",null);
_.Y([_.Nm("enableContentEditable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yl.prototype,"enableContentEditableChanged_",null);_.Y([_.yc({is:"yt-formatted-string",disableElementRegistration:!0})],yl);
_.X(yl,"yt-formatted-string",function(){if(Qkf===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;uPB===void 0&&(uPB=document.createElement("template"));var Z=uPB;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Qkf=h}h=Qkf;return h});var hfm;var EqC;var gqM;var Z5m;var Fd=function(){var h=_.D.apply(this,arguments)||this;h.focused=!1;h.disabled=!1;h.isOverlay=!1;return h};
_.f(Fd,_.D);Fd.prototype.triggerDown=function(){if(!this.disabled){_.jg(this.hostElement,"down",!0);var h;(h=this.currentAnimation)==null||h.cancel()}};
Fd.prototype.triggerUp=function(){if(!this.disabled){_.jg(this.hostElement,"down",!1);var h=this.fillElement;var E=this.strokeElement;typeof GroupEffect==="function"?(h=new GroupEffect([ofZ(h),IK$(E)]),h=new Animation(h,document.timeline)):h=new f8m(h,E);this.currentAnimation=h;var g;(g=this.currentAnimation)==null||g.play()}};
_.Y([_.Sg(".stroke"),_.V("design:type",HTMLElement)],Fd.prototype,"strokeElement",void 0);_.Y([_.Sg(".fill"),_.V("design:type",HTMLElement)],Fd.prototype,"fillElement",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Fd.prototype,"focused",void 0);_.Y([_.x(),_.V("design:type",Object)],Fd.prototype,"disabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Fd.prototype,"isOverlay",void 0);_.Y([_.yc({is:"yt-interaction",disableElementRegistration:!0})],Fd);
_.X(Fd,"yt-interaction",function(){if(Z5m===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;gqM===void 0&&(gqM=document.createElement("template"));var Z=gqM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Z5m=h}h=Z5m;return h},{mode:2});var bk=function(){return _.D.apply(this,arguments)||this};
_.f(bk,_.D);_.p=bk.prototype;_.p.ready=function(){var h=this,E=_.UB(this.hostElement).querySelector("#button");E.addEventListener("focus",function(){x1F||(x1F=new SyB);h.keyboardFocused=x1F.isKeyBoardInUse()});
E.addEventListener("blur",function(){h.keyboardFocused=!1;h.rippleUp_()})};
_.p.computeTabIndex_=function(h){return h?-1:0};
_.p.computeButtonAriaPressed_=function(h){if(this.toggleable)return h?"true":"false"};
_.p.rippleDown_=function(){_.UB(this.hostElement).querySelector("#interaction").triggerDown()};
_.p.rippleUp_=function(){_.UB(this.hostElement).querySelector("#interaction").triggerUp()};
_.p.onPressedChanged_=function(){var h=_.L3(_.UB(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.L3(_.UB(this.hostElement).querySelector("#button")).children[0];h&&(h.active=this.pressed)};
bk.prototype.onPressedChanged_=bk.prototype.onPressedChanged_;bk.prototype.rippleUp_=bk.prototype.rippleUp_;bk.prototype.rippleDown_=bk.prototype.rippleDown_;_.Y([_.x(),_.V("design:type",String)],bk.prototype,"label",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bk.prototype,"disabled",void 0);_.Y([_.x(),_.V("design:type",Boolean)],bk.prototype,"pressed",void 0);_.Y([_.x(),_.V("design:type",Object)],bk.prototype,"toggleable",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],bk.prototype,"untabbable",void 0);_.Y([_.x(),_.V("design:type",Boolean)],bk.prototype,"keyboardFocused",void 0);_.Y([_.f3("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"rippleDown_",null);_.Y([_.f3("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"rippleUp_",null);
_.Y([_.Nm("pressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bk.prototype,"onPressedChanged_",null);_.Y([_.yc({is:"yt-icon-button",disableElementRegistration:!0})],bk);
_.X(bk,"yt-icon-button",function(){if(EqC===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;hfm===void 0&&(hfm=document.createElement("template"));var Z=hfm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);EqC=h}h=EqC;return h},{mode:2});var M9f;var WAf=function(){var h=document.body,E=h.appendChild;if(M9f===void 0){var g=document.createElement("template");_.N(g,'\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>');
M9f=g}g=M9f;E.call(h,g.content)};
document.body?WAf():window.addEventListener("DOMContentLoaded",WAf);var pqD=_.uz(["aria-"]),uk={};uk.YtRenderButtonBehavior=[_.T.YtRendererBehavior,_.Xd.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!!_.GF().resolve(_.pl(_.DX))&&_.J("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 h=this.computeHref_(this.endpoint,!0);h?yF(this.elements_.endpoint,h):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){h=this.buttonClass.split(" ");h=_.G(h);for(var E=h.next();!E.done;E=h.next())E=E.value,_.jg(this.hostElement,E,!0),this.elements_.button&&_.jg(this.elements_.button,E,!0),this.elements_.text&&_.jg(this.elements_.text,E,!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&&(h=null,this.buttonAccessibility&&(h=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=h:h?_.zH([_.of(pqD)],this.elements_.button,"aria-label",h):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var h=_.GF().resolve(_.pl(_.DX));h&&(this.keyboardFocused=h.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.t6("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,_.vl(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.vl(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(h,E){if(E)for(h=E.split(" "),h=_.G(h),E=h.next();!E.done;E=h.next())E=E.value,_.jg(this.hostElement,E,!1),this.elements_.button&&_.jg(this.elements_.button,E,!1),this.elements_.text&&_.jg(this.elements_.text,E,!1)},
buttonIconChanged_:function(h){this.elements_.icon?h?(this.elements_.icon.icon=h,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.vl(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.dD(this.hostElement,"is-paper-button-with-icon",!1)):h&&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"&&_.vl(this.elements_.button).appendChild(this.elements_.icon):_.vl(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.dD(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(h){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,h){var E=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(h){case "yt_icon_button_with_label":E=!0;_.jg(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();h=_.vl(this.elements_.button).firstElementChild;
this.elements_.icon=h;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.vl(this.elements_.endpoint).appendChild(this.elements_.button);_.vl(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.t6("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;_.vl(this.elements_.button).appendChild(this.elements_.text);_.vl(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":E=!0,this.elements_.button=this.getYtIconButton_(),h=_.vl(this.elements_.button).firstElementChild,this.elements_.icon=h,this.setIconActive_(this.elements_.icon),
_.vl(this.elements_.endpoint).appendChild(this.elements_.button)}_.dD(this.hostElement,"is-icon-button",E);_.dD(this.hostElement,"is-paper-button",!E);_.dD(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 g;_.UB((g=this.container.hostElement)!=null?g:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.vl(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(h){if(h!=void 0||this.disabled)this.disabled=h,this.elements_.button&&(this.elements_.button.disabled=h)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(h){_.J("kevlar_system_icons")&&h&&this.data&&(this.data.isSelected!==void 0?h.active=this.data.isSelected:this.data.isToggled!==void 0&&(h.active=this.data.isToggled))},
observeBasicPalette_:function(h){_.v$(this.hostElement,h)},
disabledChanged_:function(h){this.data&&this.set("data.isDisabled",h)},
onYtButtonTap_:function(h){if(this.disabled)h.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.LZ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(h=this.disableCommandHandlerOverride,!this.data||!this.data.command||h||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.J("handle_service_request_actions")||_.LZ(this.hostElement,[this.serviceEndpoint]),
_.Ra(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.J("handle_service_request_actions")?(h=[],this.serviceEndpoint&&h.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&h.push(this.data.command),h.length&&_.jj(this.hostElement,h,this.hostElement)):this.data&&this.data.command&&(h=this.data.command,h.accountUnlinkCommand||h.accountLinkCommand||h.insertAdCommand||h.insertHighlightMarkerCommand||
h.createLivestreamHighlightClipCommand||h.getVideoUploadFeedbackCommand||h.musicDeletePrivatelyOwnedEntityCommand||h.ypcCancelRecurrenceEndpoint||h.getMultiSelectCommandEndpoint?_.LZ(this.hostElement,[h]):_.jj(this.hostElement,[h],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 h,E=_.UB((h=this.container.hostElement)!=null?h:this.container);E.lastChild&&E.lastChild.tagName!="STYLE";)try{E.removeChild(E.lastChild)}catch(g){break}},
getYtIconButton_:function(){var h=this.reuseEnabled_()?_.t6("yt-icon-button"):document.createElement("yt-icon-button"),E=_.vl(h).firstElementChild;if(E&&E.is!="yt-icon"){for(E=_.vl(h);E.lastChild;)E.removeChild(E.lastChild);E=null}E||(E=this.getIcon_(),this.setIconActive_(E),_.vl(h).appendChild(E));return h},
reuseEnabled_:function(){return _.J("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.t6("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.t6("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.GQf={};
_.GQf.YtButtonBehavior=[uk.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var h=this.data;h&&(this._setEndpoint(this.computeEndpoint_(h)),this._setServiceEndpoint(this.computeServiceEndpoint_(h)),this._setCommand(this.computeCommand_(h)),this._setButtonIcon(this.computeButtonIcon_(h)),this._setButtonText(this.computeButtonText_(h,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(h)),this._setButtonTooltip(this.computeTooltip_(h)),this._setButtonClass(this.computeButtonClass_(h)),this._setIconPositionType(this.computeIconPositionType_(h)),this.updateRenderedElements())},
setPressedState:function(h){var E;if((E=this.elements_)==null?0:E.button)this.elements_.button.pressed=!!h},
computeIconPositionType_:function(h){return h&&h.iconPosition||null},
computeEndpoint_:function(h){var E=h&&h.navigationEndpoint,g=this.get("data.command.commandMetadata.webCommandMetadata.url"),Z=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:h&&h.command&&h.command.modalEndpoint?h.command:g&&!Z&&h.command?h.command:null},
computeServiceEndpoint_:function(h){var E=h&&h.serviceEndpoint,g=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:g&&h.command?h.command:null},
computeCommand_:function(h){return h&&h.command||null},
computeButtonIcon_:function(h){return h&&h.icon&&h.icon.iconType?_.CL(h.icon.iconType):null},
computeButtonText_:function(h,E){return!E&&h&&h.text||null},
computeAccessibility_:function(h){return this.get("accessibilityData.accessibilityData",h)||h&&h.accessibility||(h&&h.text?{label:this.getSimpleString(h.text)}:null)},
computeTooltip_:function(h){return h?h.isDisabled&&h.disabledTooltip||h.tooltip||null:null},
computeButtonClass_:function(h){var E=h&&h.style?h.style.toLowerCase().replace(/_/g,"-")+" ":"";E+=h&&h.size?h.size.toLowerCase().replace(/_/g,"-")+" ":"";h.colorData&&h.colorData.basicColorPaletteData&&h.colorData.basicColorPaletteData.borderColor&&(E+="palette-with-border");return E.trim()}}];var H$={};var zfn;var ayM;var cIk,i5C=function(){return cIk!==void 0?cIk:cIk=document.createElement("template")};
document.head.appendChild(i5C().content);var oql;var IyD,Rfm=function(){return IyD!==void 0?IyD:IyD=document.createElement("template")};
document.head.appendChild(Rfm().content);var PED;var BqB,UjD=function(){return BqB!==void 0?BqB:BqB=document.createElement("template")};
document.head.appendChild(UjD().content);var LAM;var jZk=document.head,djB=jZk.appendChild,CEH;if(LAM===void 0){var JIf=document.createElement("template");_.N(JIf,"\x3c!--css-build:shady--\x3e");JIf.content.insertBefore(UjD().content.cloneNode(!0),JIf.content.firstChild);LAM=JIf}CEH=LAM;djB.call(jZk,CEH.content);var efn=document.head,qsF=efn.appendChild,fyF;if(PED===void 0){var Nqm=document.createElement("template");_.N(Nqm,"\x3c!--css-build:shady--\x3e");Nqm.content.insertBefore(Rfm().content.cloneNode(!0),Nqm.content.firstChild);PED=Nqm}fyF=PED;qsF.call(efn,fyF.content);var t9C=document.head,SsM=t9C.appendChild,xjk;if(oql===void 0){var wql=document.createElement("template");_.N(wql,"\x3c!--css-build:shady--\x3e");wql.content.insertBefore(i5C().content.cloneNode(!0),wql.content.firstChild);oql=wql}xjk=oql;SsM.call(t9C,xjk.content);var DjM;_.$P("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");DjM=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live");_.Ql=function(){return _.D.apply(this,arguments)||this};
_.f(_.Ql,_.D);_.Ql.prototype.created=function(){this.openPopupConfig=_.nF("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Ql.prototype.onYtNavigate_=function(h){var E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(h.detail.endpoint);E&&(this.ytOpenPopupBehavior.openPopup(E),h.stopPropagation(),h.preventDefault())};
_.ze.Object.defineProperties(_.Ql,{template:{configurable:!0,enumerable:!0,get:function(){if(ayM===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;zfn===void 0&&(zfn=document.createElement("template"));var Z=zfn;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ayM=h}h=ayM;return h}}});
_.Ql.prototype.onYtNavigate_=_.Ql.prototype.onYtNavigate_;_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],_.Ql.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.t(_.GQf.YtButtonBehavior),_.V("design:type",Object)],_.Ql.prototype,"ytButtonBehavior",void 0);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.Ql.prototype,"onYtNavigate_",null);
_.Y([_.yc({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:DjM})],_.Ql);var lyM;var rIl=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live"),hg=function(){var h=_.D.apply(this,arguments)||this;h.isPressed=!1;h.forceIconButton=!1;h.forceIconOnly=!1;h.forceModernIconButton=!1;h.skipCommandHandling=!1;h.alignByText=!1;h.fitToVisibleBounds=!0;h.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};h.onTap=function(E){_.Ra(h.hostElement,"yt-service-request-sent-button-renderer",E)};
return h};
_.f(hg,_.D);_.p=hg.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.p.onClick=function(h){var E,g=this.disabled||((E=this.data)==null?void 0:E.isDisabled);E=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");g&&E&&h.stopPropagation()};
_.p.computeIcon=function(){var h,E,g=(h=this.data)==null?void 0:(E=h.icon)==null?void 0:E.iconType;if(g)return _.CL(g)};
_.p.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.p.handleUpdateButtonAction=function(h){h=_.e(h,NGD);var E=_.e(h==null?void 0:h.updatedButton,_.Gh);if(this.data&&h&&E){var g=this.data;g.targetId&&h.targetId&&g.targetId===h.targetId&&(this.data=E)}};
_.ze.Object.defineProperties(hg.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var h=this;if(this.data){var E=xp4({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Ra(h.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Ra(h.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});E.alignByText=this.alignByText;return E}}}});
_.ze.Object.defineProperties(hg,{template:{configurable:!0,enumerable:!0,get:function(){if(lyM===void 0){var h=document.createElement("template");_.N(h,'\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>');lyM=h}h=lyM;return h}}});
hg.prototype.onClick=hg.prototype.onClick;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],hg.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],hg.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"isPressed",void 0);
_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"forceIconButton",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"forceIconOnly",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"forceModernIconButton",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"skipCommandHandling",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"alignByText",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"buttonTooltipPosition",void 0);
_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"fitToVisibleBounds",void 0);_.Y([_.x({computed:"computeTooltip(data)"}),_.V("design:type",Object)],hg.prototype,"tooltip",void 0);_.Y([_.x(),_.V("design:type",Object)],hg.prototype,"overrides",void 0);_.Y([_.x(),_.V("design:type",Boolean)],hg.prototype,"disabled",void 0);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],hg.prototype,"onClick",null);
_.Y([_.S("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.V("design:type",Object),_.V("design:paramtypes",[])],hg.prototype,"computedButtonShape",null);_.Y([_.yc({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!rIl,cssBuildOptOut:!0}),_.yc({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!rIl,cssBuildOptOut:!0})],hg);var mjD;var vqD;var EE=function(){var h=_.D.apply(this,arguments)||this;h.empty_=!0;h.loadTime=Infinity;h.pendingPaint=!1;h.hasChange_=!1;h.oldThumbnail_=null;h.oldDelayedSrc_="";h.objectURL_=null;return h};
_.f(EE,_.D);_.p=EE.prototype;_.p.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.p.ready=function(){var h=this.shouldShowPlaceholder_();_.jg(this.hostElement,"no-transition",!0);h&&this.hostElement.classList.add("with-placeholder")};
_.p.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.p.isThumbPreloaded_=function(h){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",h)};
_.p.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||H5l};
_.p.computeThumbnailSrc_=function(h){return h&&h.thumbnails?_.R9(h.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.p.computeAlt_=function(){var h=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&h||""};
_.p.thumbnailChanged_=function(){var h=_.G([this.thumbnail,this.oldThumbnail_]),E=h.next().value;h=h.next().value;this.oldThumbnail_=E;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(h=this.computeThumbnailSrc_(h),this.computeThumbnailSrc_(E)===h))return;_.J("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(E)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):E&&_.Xn("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.pQ(this,this.onReload_):_.pQ(this,this.onShow_):this.resetImage_();E&&(this.hostElement.style.opacity=""+E.opacity)}};
_.p.delayedSrcChanged_=function(){var h=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===h||this.resetImage_()};
_.p.setSrc_=function(h){h?(_.UB(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.UB(this.hostElement).querySelector("#img").src=h):(_.UB(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.p.resetImage_=function(){wqO(this.hostElement);this.empty_=!0;this.setSrc_(H5l);this.ytRendererBehavior.invalidate(!1)};
_.p.observePlaceholderColor_=function(){var h=this.thumbnail&&this.thumbnail.placeholderColor;h?this.hostElement.style.backgroundColor=_.bU(h):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.p.onLoad_=function(){_.UB(this.hostElement).querySelector("#img").src&&_.UB(this.hostElement).querySelector("#img").src!==H5l&&(xjx(this.hostElement),this.notifyOnLoaded&&_.Ra(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.p.onError_=function(){var h=this;if(_.J("web_use_cache_for_image_fallback"))$ja(_.UB(this.hostElement).querySelector("#img").src).then(function(E){h.objectURL_=_.sG(E).toString();h.setSrc_(h.objectURL_)}).catch(function(){_.J("kevlar_woffle_fallback_image")&&h.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.p.onPrescanVisible=function(){this.onShow_()};
_.p.onVisible=function(){if(_.J("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.p.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var h=this.computeSrc_();h!==_.UB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(h))}};
_.p.onReload_=function(){this.empty_=!1;var h=this.computeSrc_();h!==_.UB(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(h))};
_.p.shouldShowPlaceholder_=function(){return _.J("kevlar_thumbnail_bg")};
EE.prototype.observePlaceholderColor_=EE.prototype.observePlaceholderColor_;EE.prototype.delayedSrcChanged_=EE.prototype.delayedSrcChanged_;EE.prototype.thumbnailChanged_=EE.prototype.thumbnailChanged_;_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"alt",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EE.prototype,"ariaHidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"ariaLabel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"hidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"id",void 0);_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],EE.prototype,"ytVisibilityBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",String)],EE.prototype,"delayedSrc",void 0);
_.Y([_.x(),_.V("design:type",Object)],EE.prototype,"thumbnail",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"loaded",void 0);_.Y([_.x(),_.V("design:type",Boolean)],EE.prototype,"notifyOnLoaded",void 0);_.Y([_.x(),_.V("design:type",Number)],EE.prototype,"height",void 0);_.Y([_.x(),_.V("design:type",Number)],EE.prototype,"width",void 0);_.Y([_.x({value:function(){return"width"}}),
_.V("design:type",String)],EE.prototype,"dimension",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"fit",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"fitHeight",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"fitWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"objectFit",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"objectPosition",void 0);_.Y([_.x(),_.V("design:type",String)],EE.prototype,"preferredThumbnail",void 0);_.Y([_.x({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.V("design:type",String)],EE.prototype,"alt_",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EE.prototype,"sharedTooltipText",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],EE.prototype,"ftlEligible",void 0);_.Y([_.x({value:void 0}),_.V("design:type",String)],EE.prototype,"observeHiddenOption",void 0);_.Y([_.x({value:"observe_once"}),_.V("design:type",String)],EE.prototype,"observePrescanOption",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],EE.prototype,"roundedContainer",void 0);
_.Y([_.lq("thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EE.prototype,"thumbnailChanged_",null);_.Y([_.lq("delayedSrc"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EE.prototype,"delayedSrcChanged_",null);_.Y([_.Nm("thumbnail.placeholderColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EE.prototype,"observePlaceholderColor_",null);
_.Y([_.yc({is:"yt-img-shadow",disableElementRegistration:!0})],EE);var H5l=_.Xn("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.BK()(EE,"yt-img-shadow",function(){if(vqD===void 0){var h=document.createElement("template");_.N(h,'\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">');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;mjD===void 0&&(mjD=document.createElement("template"));var Z=mjD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);vqD=h}h=vqD;return h},{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 GkN;_.gP=new _.Ps("SCREEN_MANAGER_TOKEN");GkN=new _.Ps("LOG_INITIAL_SCREEN_TOKEN");var $jM=_.OL({entities:{}});var KAA=_.nO($jM)($jM.entities,{selectSfvAudioItemPlaybackState:function(h,E){var g,Z;h=(Z=_.Jj(h,"sfvAudioItemCurrentlyPlayingEntity",E))!=null?Z:void 0;return(g=h==null?void 0:h.sfvAudioItemPlaybackState)!=null?g:void 0},
playlistLoopStateEntitySelector:function(h,E){var g;return(g=_.Jj(h,"playlistLoopStateEntity",E))!=null?g:void 0}});_.Z7=_.O(function(h){function E(E4){return _.e(E4,_.i_)}
function g(){var E4=Z().isTogglingDisabled||w()&&Z().toggledIsTogglingDisabled,iO=E4||d()?w():!w();r(iO);H(!1);if(!E4){var RW;(RW=z)==null||RW(!!iO)}var NN;((NN=W)==null?0:NN())||_.KC(_.GF().resolve(_.gP),Z().trackingParams);var Cd;if(!iO||!E(Z().defaultButtonViewModel)||(Cd=W)!=null&&Cd()){var Ba;!E(Z().toggledButtonViewModel)||((Ba=W)==null?0:Ba())||_.KC(_.GF().resolve(_.gP),E(Z().toggledButtonViewModel).trackingParams)}else _.KC(_.GF().resolve(_.gP),E(Z().defaultButtonViewModel).trackingParams)}
var Z=h.data,M=h.buttonShapeOverrides,W=h.disableExplicitClickLogging,z=h.onToggle,c=h.style,I=h.useOutlinedIcon,B=h.className,U=function(){var E4,iO;return w()?(E4=h.animatedTextPropsToggled)==null?void 0:E4.call(h):(iO=h.animatedTextPropsDefault)==null?void 0:iO.call(h)},L=_.Cw(function(){return U()?Object.assign({},U(),{shouldAnimate:v()}):void 0},void 0,"Zp4uoe"),d=function(){var E4;
return((E4=y())==null?void 0:E4.isToggled)!==void 0},C=_.G(_.qi(function(){var E4,iO,RW;
return d()?(E4=y())==null?void 0:E4.isToggled:(RW=M==null?void 0:(iO=M())==null?void 0:iO.toggled)!=null?RW:Z().isToggled})),q=C.next().value;
C=C.next().value;var w=q,r=C;C=_.G(_.qi(function(){var E4,iO;return(E4=h.animatedTextPropsToggled)==null?void 0:(iO=E4.call(h))==null?void 0:iO.shouldAnimate}));
q=C.next().value;C=C.next().value;var v=q,H=C;q=_.G(_.Bm(!1,void 0,"mq3Zfe"));var u=q.next().value,k=q.next().value,y=_.VQ(function(E4){a:{var iO=Z().entityKey,RW=Z().toggledStateEntitySelectorType;if(RW)switch(RW){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!iO)break;E4=KAA.selectSfvAudioItemPlaybackState(E4,iO);if(E4==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){E4={isToggled:!0};break a}if(E4){E4={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":E4=
{isToggled:_.rDa(E4).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":E4={isToggled:_.rDa(E4).includes("engagement-panel-live-chat-item-section")};break a;default:_.O$(new _.xX("Error: entitySelectorType defined but not matched in selector.",E4,RW))}E4=void 0}return E4}),A=function(){return Object.assign({},M==null?void 0:M(),{onToggle:g,
toggleable:!0,toggled:w(),focused:u()})};
return _.R("toggle-button-view-model",{"on:focusin":_.J7(function(){var E4=_.GF().resolve(_.pl(_.DX));E4&&k(E4.isKeyBoardInUse());return!1}),
"on:focusout":_.J7(function(){k(!1);return!1})},_.R(_.P,{cond:function(){return w()?E(Z().toggledButtonViewModel):E(Z().defaultButtonViewModel)},
then:function(E4){return _.R(_.$l,{data:E4,className:B,style:c,useOutlinedIcon:I,buttonOverrides:A,animatedTextProps:L})}}))},"E");
_.Z7.idomCompat={callbacks:{onToggle:!0}};_.I9(_.O(function(h){return _.R("yt-toggle-button-view-model",{class:function(){var E;return(E=h.scopingClassName)==null?void 0:E.call(h)}},_.R(_.Z7,{data:function(){var E;
return(E=h.data)==null?void 0:E.call(h)},
buttonShapeOverrides:function(){var E;return(E=h.overrides)==null?void 0:E.call(h)},
animatedTextPropsDefault:function(){var E;return(E=h.animatedTextPropsDefault)==null?void 0:E.call(h)},
animatedTextPropsToggled:function(){var E;return(E=h.animatedTextPropsToggled)==null?void 0:E.call(h)},
disableExplicitClickLogging:function(){var E;return(E=h.disableExplicitClickLogging)==null?void 0:E.call(h)},
onToggle:function(E){var g;return(g=h.onToggle)==null?void 0:g.call(h,E)},
style:function(){var E;return(E=h.style)==null?void 0:E.call(h)},
useOutlinedIcon:function(){var E;return(E=h.useOutlinedIcon)==null?void 0:E.call(h)},
className:function(){var E;return(E=h.className)==null?void 0:E.call(h)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.C6,
buttonShapeOverrides:_.C6,overrides:_.C6,animatedTextPropsDefault:_.C6,animatedTextPropsToggled:_.C6,disableExplicitClickLogging:_.C6,onToggle:_.c$,style:_.C6,useOutlinedIcon:_.C6,className:_.C6,scopingClassName:_.C6}});var My=function(){return _.D.apply(this,arguments)||this};
_.f(My,_.D);My.prototype.onTap=function(h){h.stopPropagation();h=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.vg("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:h})):this.ytLiveChatReduxBehavior.dispatch(_.xx("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:h}))};
_.ze.Object.defineProperties(My.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.engagementState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h=_.e(this.data.toggleButton,_.Ix),E;if(Number(((E=this.likeCountState)==null?void 0:E.likeCountIfIndifferentNumber)||"0")===0){var g;E=((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}else{var Z,M,W;E=((Z=this.likeCountState)==null?void 0:(M=Z.likeCountIfIndifferent)==null?void 0:M.content)||((W=this.data.likeCountPlaceholder)==null?void 0:W.content)||""}var z,c;g=((z=this.likeCountState)==null?void 0:(c=
z.likeCountIfLiked)==null?void 0:c.content)||"1";z=_.e(h.toggledButtonViewModel,_.i_);return Object.assign({},h,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.e(h.defaultButtonViewModel,_.i_),{title:E})},toggledButtonViewModel:{buttonViewModel:Object.assign({},z,{title:g})}})}}}});
My.prototype.onTap=My.prototype.onTap;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],My.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],My.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.likeCountEntityKey"],selector:mpx}),_.V("design:type",Object)],My.prototype,"likeCountState",void 0);_.Y([_.x({selectorArgs:["data.engagementStateKey"],selector:$4N}),_.V("design:type",Object)],My.prototype,"engagementState",void 0);_.Y([_.S("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],My.prototype,"isLiked",null);
_.Y([_.S("data","likeCountState","isLiked"),_.V("design:type",Object),_.V("design:paramtypes",[])],My.prototype,"toggleButton",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],My.prototype,"onTap",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],My);
_.X(My,"yt-live-chat-like-button-view-model",function(){if(nyD===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Ovk===void 0&&(Ovk=document.createElement("template"));var Z=Ovk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);nyD=h}h=nyD;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var O5D;var nqH;var WB=function(){return _.D.apply(this,arguments)||this};
_.f(WB,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WB.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],WB);
_.X(WB,"yt-live-chat-paid-message-footer-renderer",function(){if(nqH===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;O5D===void 0&&(O5D=document.createElement("template"));var Z=O5D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);nqH=h}h=nqH;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var XqM;var YsH;var sZl;var V9n,kQD=function(){if(V9n!==void 0)return V9n;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;sZl===void 0&&(sZl=document.createElement("template"));var Z=sZl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return V9n=h};var pJ=function(){return _.D.apply(this,arguments)||this};
_.f(pJ,_.D);pJ.prototype.onTap=function(h){h.stopPropagation()};
_.ze.Object.defineProperties(pJ.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h=_.e(this.data.replyButton,_.i_),E,g,Z,M,W,z,c,I=Number(((E=this.replyCountState)==null?void 0:E.replyCountNumber)||"0")===0?(g=this.data)==null?void 0:(Z=g.replyCountPlaceholder)==null?void 0:Z.content:((M=this.replyCountState)==null?void 0:(W=M.replyCount)==null?void 0:W.content)||((z=this.data)==null?void 0:(c=z.replyCountPlaceholder)==null?void 0:c.content)||"",B;return Object.assign({},
h,{title:I,accessibilityText:(B=this.replyCountState)==null?void 0:B.replyButtonAccessibilityText})}}}});
_.ze.Object.defineProperties(pJ,{template:{configurable:!0,enumerable:!0,get:function(){return kQD()}}});
pJ.prototype.onTap=pJ.prototype.onTap;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],pJ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],pJ.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pJ.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.replyCountEntityKey"],selector:function(h,E){return _.Jj(h.entities,"replyCountEntity",E)}}),
_.V("design:type",Object)],pJ.prototype,"replyCountState",void 0);_.Y([_.S("data","replyCountState"),_.V("design:type",Object),_.V("design:paramtypes",[])],pJ.prototype,"buttonViewModel",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],pJ.prototype,"onTap",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],pJ);
_.X(pJ,"yt-live-chat-reply-button-view-model",function(){return kQD()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var yIB;var FAD;var GA=function(){var h=_.D.apply(this,arguments)||this;h.ariaLabel="";return h};
_.f(GA,_.D);
GA.prototype.dataChanged=function(){for(var h=(0,_.C3)(_.UB(this.hostElement).querySelector("#image"));h.firstChild;)h.removeChild(h.firstChild);if(this.data)if(this.data.icon){var E=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(E.polymerController.icon="yt-sys-icons:shield-filled",E.polymerController.defaultToFilled=!0):E.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();h.appendChild(E)}else if(this.data.customThumbnail){E=document.createElement("img");
var g=_.JIu(this.data.customThumbnail.thumbnails,16);g?(E.src=g,h.appendChild(E),E.setAttribute("alt",this.hostElement.ariaLabel||"")):_.O$(new _.xX("Could not compute URL for thumbnail",this.data.customThumbnail))}};
GA.prototype.identity=function(h){return h};
GA.prototype.computeType=function(h){return LL(h||void 0)};
GA.prototype.dataChanged=GA.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],GA.prototype,"data",void 0);_.Y([_.x({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.V("design:type",Object)],GA.prototype,"ariaLabel",void 0);_.Y([_.x({computed:"computeType(data)",reflectToAttribute:!0}),_.V("design:type",String)],GA.prototype,"type",void 0);
_.Y([_.x({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.V("design:type",String)],GA.prototype,"sharedTooltipText",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("live_chat_enable_new_moderator_badge")}}),
_.V("design:type",Boolean)],GA.prototype,"enableNewModeratorBadge",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GA.prototype,"dataChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],GA);
_.X(GA,"yt-live-chat-author-badge-renderer",function(){if(FAD===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;yIB===void 0&&(yIB=document.createElement("template"));var Z=yIB;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);FAD=h}h=FAD;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var AIH;var TqM;var zA=function(){return _.D.apply(this,arguments)||this};
_.f(zA,_.D);_.p=zA.prototype;_.p.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.p.computeBadgesInsideChip=function(h){return h?h.filter(function(E){return LL(E.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.p.computeBadgesOutsideChip=function(h){return this.prependChatBadges||!h?[]:h.filter(function(E){E=LL(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"})};
_.p.computeBadgesBeforeChip=function(h){return this.prependChatBadges&&h?h.filter(function(E){E=LL(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"}):[]};
_.p.computeIsHighlighted=function(h,E){var g=!!nC4(h,"owner"),Z=!!nC4(h,"verified");h=!!nC4(h,"moderator");return(g||Z&&!h)&&!E};
_.p.computeAuthorType=function(h){return OYx(h)};
_.p.computeAuthorClass=function(h,E){return E?(h?h+" ":"")+"single-line":h};
_.p.onSeedColorChanged=function(){_.J("live_chat_author_name_color_usernames")||_.J("live_chat_seed_color_usernames")||_.J("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):_.J("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
zA.prototype.onSeedColorChanged=zA.prototype.onSeedColorChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],zA.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zA.prototype,"authorName",void 0);_.Y([_.x(),_.V("design:type",Array)],zA.prototype,"authorBadges",void 0);
_.Y([_.x({computed:"computeAuthorType(authorBadges)"}),_.V("design:type",String)],zA.prototype,"authorType",void 0);_.Y([_.x({computed:"computeAuthorClass(authorType, singleLine)"}),_.V("design:type",String)],zA.prototype,"authorClass",void 0);_.Y([_.x({computed:"computeBadgesInsideChip(authorBadges)"}),_.V("design:type",Array)],zA.prototype,"badgesInsideChip",void 0);_.Y([_.x({computed:"computeBadgesOutsideChip(authorBadges)"}),_.V("design:type",Array)],zA.prototype,"badgesOutsideChip",void 0);
_.Y([_.x({computed:"computeBadgesBeforeChip(authorBadges)"}),_.V("design:type",Array)],zA.prototype,"badgesBeforeChip",void 0);_.Y([_.x({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.V("design:type",Boolean)],zA.prototype,"isHighlighted",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],zA.prototype,"singleLine",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],zA.prototype,"disableHighlighting",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],zA.prototype,"dashboardMoneyFeed",void 0);_.Y([_.x({value:_.J("live_chat_prepend_badges"),reflectToAttribute:!0}),_.V("design:type",Boolean)],zA.prototype,"prependChatBadges",void 0);_.Y([_.x(),_.V("design:type",String)],zA.prototype,"authorNameColor",void 0);_.Y([_.Sg("#author-name"),_.V("design:type",HTMLDivElement)],zA.prototype,"username",void 0);
_.Y([_.Nm("authorNameColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zA.prototype,"onSeedColorChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],zA);
_.X(zA,"yt-live-chat-author-chip",function(){if(TqM===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;AIH===void 0&&(AIH=document.createElement("template"));var Z=AIH;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);TqM=h}h=TqM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var b5D;var u0D;var aq=function(){var h=_.D.apply(this,arguments)||this;h.debounceCommand=_.lY(function(E){h.ytComponentBehavior.resolveCommand(E)},1500);
return h};
_.f(aq,_.D);aq.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var h=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",E,g,Z=this.isHearted?(E=this.data)==null?void 0:E.unheartCommand:(g=this.data)==null?void 0:g.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.vg("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:h}));(h=_.kB(Z))&&this.debounceCommand(h)}};
_.ze.Object.defineProperties(aq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var h,E;if(!((h=this.data)==null?0:(E=h.creatorThumbnail)==null?0:E.sources))return{};h={thumbnails:[]};E={};E.url=this.data.creatorThumbnail.sources[0].url;h.thumbnails.push(E);return h}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.engagementState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((g=this.engagementState)==null?void 0:g.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}}});
aq.prototype.onTap=aq.prototype.onTap;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],aq.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],aq.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],aq.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.engagementStateKey"],selector:$4N}),_.V("design:type",Object)],aq.prototype,"engagementState",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],aq.prototype,"thumbnailDetails",null);_.Y([_.S("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aq.prototype,"isHearted",null);_.Y([_.S("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aq.prototype,"isEditable",null);
_.Y([_.S("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aq.prototype,"showCreatorView",null);_.Y([_.S("data","engagementState"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aq.prototype,"showButton",null);_.Y([_.S("data","isHearted"),_.V("design:type",String),_.V("design:paramtypes",[])],aq.prototype,"label",null);_.Y([_.S("data","isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],aq.prototype,"heartHoverText",null);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aq.prototype,"onTap",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],aq);
_.X(aq,"yt-live-chat-creator-heart-view-model",function(){if(u0D===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;b5D===void 0&&(b5D=document.createElement("template"));var Z=b5D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);u0D=h}h=u0D;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cB=function(){};
_.f(cB,Ok);cB.prototype.JSC$13116_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:gC("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
cB.prototype.getApiPaths=function(){return[]};
cB.prototype.getExtension=function(){};
cB.prototype.JSC$13116_buildRequest=function(){};var QZC={},hDl=(QZC.GET_DATASYNC_IDS=lU(cB),QZC);var EfD,gfM,ZGM,TwA,ie,pfm,g6F,W_m,MCf;EfD="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");gfM=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.bF=function(h,E,g,Z,M,W,z,c,I){this.endpointMap=h;this.networkManager=E;this.authService=g;this.responseProcessorMap=Z;this.innertubeResponseStore=M;this.contextProcessors=W;this.asyncContextProcessors=z;this.localInnertubeRouter=c;this.requestSequencer=I;this.inflightRequests=new Map;h.signalEndpointMap||(h.signalEndpointMap={});h.signalEndpointMap=Object.assign({},hDl,h.signalEndpointMap)};
ZGM=function(h,E,g,Z,M,W,z,c,I){if(_.bF.instance!==void 0){if(Z=_.bF.instance,h=[h!==Z.endpointMap,E!==Z.networkManager,g!==Z.authService,M!==Z.innertubeResponseStore,W!==Z.contextProcessors,z!==Z.asyncContextProcessors,c!==Z.localInnertubeRouter],h.some(function(B){return B}))throw new _.xX("InnerTubeTransportService is already initialized",h);
}else _.bF.instance=new _.bF(h,E,g,Z,M,W,z,c,I)};
_.QQ=function(h,E,g){var Z=Z===void 0?UCD:Z;var M=g6F(h,E);return M?new _.jM(function(W,z){var c,I,B,U,L;return _.a(function(d){switch(d.nextAddress){case 1:return d.yield(M,2);case 2:c=d.yieldResult;I=c.JSC$13116_getRequest(E,g,Z);if(!I){z(new _.xX("Error: Failed to build request for command.",E));d.jumpTo(0);break}EB(I.input);U=((B=I.requestShell)==null?void 0:B.mode)==="cors"?"cors":void 0;if(h.authService.syncHeaders){L=MCf(I.config,U);d.jumpTo(4);break}return d.yield(W_m(I.config,U),5);case 5:L=
d.yieldResult;case 4:W(pfm(h,I,L)),_.SK(d)}})}):_.$B(new _.xX("Error: No request builder found for command.",E))};
TwA=function(h,E,g,Z){var M=M===void 0?UCD:M;var W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A;return _.a(function(E4){switch(E4.nextAddress){case 1:W=KYO(E,h.endpointMap);if(!W)throw new _.xX("Error: No streaming request builder found for command",E);z=W.JSC$13116_getRequest(E,g,M);if(!z)throw new _.xX("Failed to build YtRequest for streaming Command",E);if((c=h.localInnertubeRouter)==null||!c.shouldPreferLocalResponse(z.input,z.innerTubeRequest)){E4.jumpTo(2);break}return E4.yield(h.localInnertubeRouter.localInnertubeResponse(z.input,
z.innerTubeRequest),3);case 3:return I=E4.yieldResult,B={},I.playerResponse&&(ie(h,I.playerResponse,z),B.player=I.playerResponse,(U=Z)==null||U(B,I)),I.watchNextResponse&&(ie(h,I.watchNextResponse,z),B.content=I.watchNextResponse,(L=Z)==null||L(B,I)),E4.return(B);case 2:C=((d=z.requestShell)==null?void 0:d.mode)==="cors"?"cors":void 0;if(h.authService.syncHeaders){q=MCf(z.config,C);E4.jumpTo(4);break}return E4.yield(W_m(z.config,C),5);case 5:q=E4.yieldResult;case 4:return v=(r=(w=z.requestShell)==
null?void 0:w.headers)!=null?r:{},z.requestShell=Object.assign({},z.requestShell,{headers:Object.assign({},v,q)}),H=Object.assign({},z.requestShell),u=JSON.stringify(z.innerTubeRequest),z.requestShell.method==="POST"&&(H=Object.assign({},H,{body:u})),k=function(iO,RW){ie(h,RW.playerResponse||RW.watchNextResponse||RW.reelItemWatchResponse||RW.reelWatchSequenceResponse,z);Z==null||Z(iO,RW)},y={},E4.yield(GLD(h.networkManager,z.input,H,k),6);
case 6:return y=E4.yieldResult,((A=z.config)==null?0:A.responseTick)&&_.s7(z.config.responseTick),E4.return(y)}})};
_.ic=function(h,E,g,Z,M){M=M===void 0?{authStrategy:{identity:UCD}}:M;var W=W===void 0?!0:W;var z=function(){};
z=wUV(SJa(g));E.context||(E.context=_.bVN(Z,W));return new _.jM(function(c){var I,B,U,L,d;return _.a(function(C){if(C.nextAddress==1)return I=Uuz(g),B=_.E7(I),h.authService.syncHeaders?(U=MCf(M,B),C.jumpTo(2)):C.yield(W_m(M,B),3);C.nextAddress!=2&&(U=C.yieldResult);L=LC4(Uuz(g));d={input:L,requestShell:gC(L),innerTubeRequest:E,config:M};c(pfm(h,d,U,z));_.SK(C)})})};
ie=function(h,E,g){var Z;if(E&&!(E==null?0:(Z=E.sequenceMetaData)==null?0:Z.skipProcessing)&&h.responseProcessorMap){Z=_.G(EfD);for(var M=Z.next();!M.done;M=Z.next())M=M.value,h.responseProcessorMap[M]&&h.responseProcessorMap[M].handleResponse(E,g)}};
pfm=function(h,E,g,Z){Z=Z===void 0?function(){}:Z;
var M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO,RW,NN,Cd,Ba,$$,Ha,zf,eF,Rm,bO,jF,PM,ll,xU,pU,pd,gB,CD,E0;return _.a(function(Im){switch(Im.nextAddress){case 1:z=(M=E.config)==null?void 0:(W=M.storeStrategy)==null?void 0:W.storeKey;if(!(z&&h.innertubeResponseStore&&h.innertubeResponseStore.has(z))||((c=E.config)==null?0:(I=c.storeStrategy)==null?0:I.disableCache)){Im.jumpTo(2);break}return Im.yield(h.innertubeResponseStore.get(z),3);case 3:if((B=Im.yieldResult)&&!B.isExpired())return Im.return(Promise.resolve(_.Ww(B)));
case 2:if(!((U=E)==null?0:(L=U.innerTubeRequest)==null?0:L.context)){Im.jumpTo(4);break}d=E.innerTubeRequest.context;if(!(h.asyncContextProcessors&&h.asyncContextProcessors.length>0)){Im.jumpTo(5);break}C=[];q=_.G(h.asyncContextProcessors);for(w=q.next();!w.done;w=q.next())r=w.value,v=r.processContext(E),v.wrappedPromise_&&C.push(v.wrappedPromise_);if(!(C.length>0)){Im.jumpTo(5);break}return Im.yield(Promise.all(C),5);case 5:H=_.G(h.contextProcessors||[]),u=H.next();case 8:if(u.done){Im.jumpTo(4);
break}k=u.value;return Im.yield(k.processContext(d),9);case 9:u=H.next();Im.jumpTo(8);break;case 4:if((y=h.localInnertubeRouter)==null||!y.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){Im.jumpTo(12);break}return Im.yield(h.localInnertubeRouter.localInnertubeResponse(E.input,E.innerTubeRequest),13);case 13:return A=Im.yieldResult,ie(h,A,E),Im.return(A);case 12:return(RW=(iO=E.config)==null?void 0:iO.requestKey)&&h.inflightRequests.has(RW)?E4=h.inflightRequests.get(RW):(NN=JSON.stringify(E.innerTubeRequest),
$$=(Ba=(Cd=E.requestShell)==null?void 0:Cd.headers)!=null?Ba:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},$$,g)}),Ha=Object.assign({},E.requestShell),E.requestShell.method==="POST"&&(Ha=Object.assign({},Ha,{body:NN})),((zf=E.config)==null?0:zf.requestTick)&&_.s7(E.config.requestTick),eF=function(){return h.networkManager.fetch(E.input,Ha,E.config)},E4=h.requestSequencer?zDM(h.requestSequencer,E,eF):eF(),RW&&h.inflightRequests.set(RW,E4)),Im.yield(E4,14);
case 14:(Rm=Im.yieldResult)&&_.J("web_streaming_player")&&Array.isArray(Rm)&&(Rm=Rm[0].playerResponse);if(Rm&&"error"in Rm&&((bO=Rm)==null?0:(jF=bO.error)==null?0:jF.details))for(PM=Rm.error.details,ll=_.G(PM),xU=ll.next();!xU.done;xU=ll.next())pU=xU.value,(pd=pU["@type"])&&gfM.indexOf(pd)>-1&&(delete pU["@type"],Rm=pU);RW&&h.inflightRequests.has(RW)&&h.inflightRequests.delete(RW);((gB=E.config)==null?0:gB.responseTick)&&_.s7(E.config.responseTick);if(Rm||(CD=h.localInnertubeRouter)==null||!CD.canProvideFallbackResponse(E.input,
E.innerTubeRequest)){Im.jumpTo(15);break}return Im.yield(h.localInnertubeRouter.localFallbackInnertubeResponse(E.input,E.innerTubeRequest),16);case 16:Rm=Im.yieldResult;case 15:return ie(h,Rm,E),((E0=E.config)==null?0:E0.processorTick)&&_.s7(E.config.processorTick),Z(),Im.return(Rm||void 0)}})};
_.uF=function(h,E){return $pO(E,h.endpointMap)};
g6F=function(h,E){h=O_$(E,h.endpointMap);if(h!==void 0)return Promise.resolve(h)};
W_m=function(h,E){var g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){M=(g=h)==null?void 0:(Z=g.authStrategy)==null?void 0:Z.sessionIndex;var c=z.yield;var I=_.dC(l9N({sessionIndex:M}));return c.call(z,I,2)}W=z.yieldResult;return z.return(Promise.resolve(Object.assign({},nIq(E),W)))})};
MCf=function(h,E){var g;h=h==null?void 0:(g=h.authStrategy)==null?void 0:g.sessionIndex;g=l9N({sessionIndex:h});return Object.assign({},nIq(E),g)};var aKF,c_M,iGk,off,IKM,RDk,U4l,L_A,Rq,jAf,d4C,BVF,CuD;aKF=0;c_M=/tone[1-5]/;iGk=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");off="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
IKM=Number.MAX_SAFE_INTEGER;RDk=RegExp("\ufe0f","g");_.oq=function(h){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;h&&_.Pum(this,h)};
_.Pum=function(h,E){try{_.df(E,{context:h,onSuccess:function(Z,M){Array.isArray(M)?h.load(M):(Z=new _.xX("Emoji manager JSON response was not an array!",{response:M}),_.$W(Z))},
onError:function(Z){Z=new _.xX("Failed to retrieve emoji manager initial JSON data!",{url:E,statusCode:_.Px(Z).toString()});_.O$(Z)}})}catch(Z){var g=new _.xX("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:E});
_.O$(g)}};
_.oq.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.oq.prototype.load=function(h,E){if(E)if(h.length)h=h.concat(E.emojis);else{this.emojis=E.emojis;this.emojiMap=E.emojiMap;this.emojiShortcutMap=E.emojiShortcutMap;this.emojiShortcutCharMap=BVF(E);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=E.emojiRegex;return}this.emojis=[].concat(_.$E(new Set(this.emojis.concat(h))));this.hasInitializedShortcutCharMap=!1;h=Array(this.emojis.length);for(E=0;E<this.emojis.length;E++){var g=this.emojis[E];if(g.emojiId){this.emojiMap[g.emojiId]=g;this.emojiMap[g.emojiId].index=
E;for(var Z=0;g.shortcuts&&Z<g.shortcuts.length;Z++)this.emojiShortcutMap[g.shortcuts[Z].toLocaleLowerCase()]=g;h[E]=g.isCustomEmoji&&g.shortcuts?g.shortcuts[0]:g.emojiId}}h.sort(function(M,W){return W.length-M.length});
if(h.length)try{this.emojiRegex=new RegExp(h.join("|").replace("*","\\*"),"gi")}catch(M){this.emojiRegex=/$./}else this.emojiRegex=/$./};
U4l=function(h,E){E=_.G(E);for(var g=E.next();!g.done;g=E.next()){var Z=g.value;if(Z.emojiId&&h.emojiMap[Z.emojiId]){g=Object.assign({},h.emojiMap[Z.emojiId],Z);h.emojiMap[Z.emojiId]=g;var M=void 0;g.index&&((M=h.emojis[g.index])==null?void 0:M.emojiId)===Z.emojiId&&(h.emojis[g.index]=g);Z=void 0;if((Z=g.shortcuts)==null?0:Z.length)for(h.hasInitializedShortcutCharMap=!1,Z=_.G(g.shortcuts),M=Z.next();!M.done;M=Z.next())h.emojiShortcutMap[M.value.toLocaleLowerCase()]=g}}};
L_A=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.QU.getInstance(),2);if(Z.nextAddress!=3)return(E=Z.yieldResult)?Z.yield(E.get("ytlc-emoji-pref"),3):Z.return();(g=Z.yieldResult)&&U4l(h,Object.keys(g).map(function(M){return{emojiId:M,stickyPrefId:g[M]}}).filter(function(M){return!!M.emojiId&&!!M.stickyPrefId}));
_.SK(Z)})};
_.Iq=function(h,E,g){return(h=h.emojiMap[E])&&(!h.isLocked||g!==void 0&&g)?h:void 0};
Rq=function(h,E,g){g=_.Iq(h,E,g===void 0?!1:g);var Z=E.match("\u200d");g&&h.skinTone!==0&&(h=(Z==null?void 0:Z.length)===1?_.Iq(h,E.replace("\u200d",iGk[h.skinTone]+"\u200d")):_.Iq(h,E+iGk[h.skinTone]))&&(g=h);return g};
jAf=function(h,E){var g=h.emojiMap[E];return(g==null?0:g.stickyPrefId)?h.emojiMap[g.stickyPrefId]:Rq(h,E)};
_.Id=function(h,E){h=h.emojiShortcutMap[E.toLocaleLowerCase()];return!h||h.isLocked?null:h};
d4C=function(h,E,g){return BVF(h,g===void 0?!1:g)[E]||{}};
BVF=function(h,E){E=E===void 0?!1:E;if(!h.hasInitializedShortcutCharMap){h.hasInitializedShortcutCharMap=!0;for(var g=0;g<h.emojis.length;g++){var Z=h.emojis[g];if(!(Z.isLocked||E&&Z.isCustomEmoji&&Z.emojiId&&!h.pickerCustomEmojiIds.includes(Z.emojiId)))for(var M=0;Z.shortcuts&&M<Z.shortcuts.length;M++){var W=Z.shortcuts[M];W.startsWith(":_")&&Z.isCustomEmoji&&(h.emojiShortcutCharMap[":_"]==null&&(h.emojiShortcutCharMap[":_"]=Object.create(null)),h.emojiShortcutCharMap[":_"][W]=Z);if(!(W.length<3||
!Z.isCustomEmoji&&c_M.test(W))){var z=W.substr(0,3).toLocaleLowerCase();h.emojiShortcutCharMap[z]==null&&(h.emojiShortcutCharMap[z]=Object.create(null));h.emojiShortcutCharMap[z][W]=Z}}}}return h.emojiShortcutCharMap};
_.oq.prototype.createEmoji=function(h,E){E=E===void 0?!0:E;var g=document.createElement("img");h.isCustomEmoji||g.classList.add("small-emoji");g.classList.add("emoji");g.classList.add("yt-formatted-string");g.src=h.image?_.R9(h.image.thumbnails,this.emojiSize)||"":"";var Z=void 0;h.image&&h.image.accessibility&&h.image.accessibility.accessibilityData&&(Z=h.image.accessibility.accessibilityData.label);g.alt=Z?Z:(h.isCustomEmoji&&h.shortcuts?h.shortcuts[0]:h.emojiId)||"";h.isCustomEmoji&&(g.dataset.emojiId=
h.emojiId);_.IV&&(g.setAttribute("contenteditable","false"),g.setAttribute("unselectable","on"));E&&(h.shortcuts&&h.shortcuts.length&&g.setAttribute("shared-tooltip-text",h.shortcuts[0]),g.id="emoji-"+aKF++);return g};
_.oq.prototype.createDocumentFragment=function(h,E,g,Z){E=E===void 0?!1:E;g=g===void 0?!0:g;Z=Z===void 0?!1:Z;h=h.replace(RDk,"");for(var M=document.createDocumentFragment(),W=0,z,c=0;(z=this.emojiRegex.exec(h))!=null;){var I=_.Iq(this,z[0])||_.Id(this,z[0]);!I||I.isCustomEmoji&&!E||(I=this.createEmoji(I,g),W!==z.index&&M.appendChild(document.createTextNode(h.substring(W,z.index))),M.appendChild(I),W=z.index+z[0].length,c++)}if(!Z||c)return M.appendChild(document.createTextNode(h.substr(W))),M};
CuD=function(h,E,g){var Z,M,W,z,c,I,B,U,L;return _.a(function(d){if(d.nextAddress==1){if(!E.emojiId||!h.emojiMap[E.emojiId])return d.return();Z=Object.assign({},h.emojiMap[E.emojiId],{stickyPrefId:g});h.emojiMap[E.emojiId]=Z;E.index&&((M=h.emojis[E.index])==null?void 0:M.emojiId)===E.emojiId&&(h.emojis[E.index]=Z);if((W=E.shortcuts)==null?0:W.length)for(h.hasInitializedShortcutCharMap=!1,z=_.G(E.shortcuts),c=z.next();!c.done;c=z.next())I=c.value,h.emojiShortcutMap[I.toLocaleLowerCase()]=Z;return d.yield(_.QU.getInstance(),
2)}if(d.nextAddress!=4)return(B=d.yieldResult)?d.yield(B.get("ytlc-emoji-pref"),4):d.jumpTo(0);L=(U=d.yieldResult)!=null?U:{};L[E.emojiId]=g;return d.yield(B.set("ytlc-emoji-pref",L,IKM),0)})};
_.PB=new _.oq;var qgD;_.BB={};
qgD={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.J("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:_.J("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 Z9(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 h=_.UB(this.hostElement||this).querySelector("#inline-action-button-container");h&&h.setAttribute("aria-hidden","true");this.menuButton=_.UB(this.hostElement).querySelector("#menu-button")},
attached:function(){var h=this.menuButton;h&&(h.addEventListener("focusin",_.qm(this,this.onMenuButtonFocus_)),h.addEventListener("focusout",_.qm(this,this.onMenuButtonBlur_)))},
detached:function(){var h=this.menuButton;h&&(h.removeEventListener("focusin",_.qm(this,this.onMenuButtonFocus_)),h.removeEventListener("focusout",_.qm(this,this.onMenuButtonBlur_)))},
identity:_.va,truthy:function(h){return!!h},
computeTimestampString:function(h){return h?h.timestampText?this.getSimpleString(h.timestampText):this.TIME_FORMATTER.format(new Date(h.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(h){return h},
computeMenuVisible_:function(h,E){return h||E},
computeHasInlineActionButtons:function(h){if(!h)return!1;var E,g;return!((E=h.inlineActionButtons)==null||!E.length)||!((g=h.additionalInlineActionButtons)==null||!g.length)},
createDocumentFragmentFromString:function(h){var E=_.PB.createDocumentFragment.bind(_.PB),g;if((g=this.participantsManager)==null||!g.viewerRegex)return E(h);g=document.createDocumentFragment();for(var Z=0,M;(M=this.participantsManager.viewerRegex.exec(h))!=null;){if(M.index>0){var W=":"+M[0]+":";if((_.Iq(_.PB,W)||_.Id(_.PB,W))&&h.indexOf(W)===M.index-1)continue}g.appendChild(E(h.substring(Z,M.index)));Z=document.createElement("span");Z.appendChild(E(M[0]));Z.classList.add("mention");g.appendChild(Z);
Z=M.index+M[0].length}g.appendChild(E(h.substring(Z)));return g},
createDocumentFragment:function(h){var E=document.createDocumentFragment();if(h.simpleText)return E.appendChild(this.createDocumentFragmentFromString(h.simpleText)),E;if(!h.runs)return E;for(var g=0;g<h.runs.length;g++){var Z=h.runs[g];if(Z.emoji)E.appendChild(_.PB.createEmoji(Z.emoji));else if(Z.text)if(Z.navigationEndpoint){var M=document.createElement("a");M.classList.add("yt-simple-endpoint");b4d(M,Z.navigationEndpoint);_.UB(M).appendChild(this.createDocumentFragmentFromString(Z.text));E.appendChild(M)}else E.appendChild(this.createDocumentFragmentFromString(Z.text))}return E},
hasModerationOverlayVisible:function(){var h;return((h=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:h.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(h){h.composedPath().some(function(E){return(E=E instanceof Element?E:null)?E.tagName&&(E.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||E.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.J("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(h)},
colorFromDecimal:function(h){return JPV(h)},
markAsDeleted:function(h,E){this.set("data.deletedStateMessage",h);this.set("data.showOriginalContentMessage",E)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(h){if(this.data.contextMenuEndpoint){var E=_.GF().resolve(_.kY),g=this.data.contextMenuEndpoint,Z;(Z=_.bF.instance)&&_.uF(Z,g)?(E=J_M(E,g),Z=_.ic(Z,{},E)):Z=_.eDf(E,g);Z.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);h&&h.stopPropagation()}},
handleGetContextMenuResponse_:function(h){var E=_.bF.instance;E&&_.uF(E,{liveChatEndpoint:{}})||(h=h.response);h.liveChatItemContextMenuSupportedRenderers&&h.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(h.liveChatItemContextMenuSupportedRenderers.menuRenderer);h.actions&&_.BX(this.hostElement,"yt-live-chat-actions",[h.actions])},
handleGetContextMenuError:function(h){if(h instanceof Error||h instanceof Object||h instanceof String)var E=h;_.$W(new _.xX("Error encountered calling GetLiveChatItemContextMenu",E))},
showContextMenu_:function(h){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:h}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Ra(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Ra(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.BB.YtLiveChatItemBehavior=[qgD,_.IU.YtComponentBehavior,_.n6.YtOpenPopupBehavior];_.UE=function(){};var fKA;var NVl;var tCC;var SgM;var LJ=function(){var h=_.D.apply(this,arguments)||this;h.active=!1;h.identity=_.va;return h};
_.f(LJ,_.D);LJ.prototype.dataChanged=function(){this.active=!1};
LJ.prototype.onClick=function(){_.Ra(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
LJ.prototype.dataChanged=LJ.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],LJ.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LJ.prototype,"active",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LJ.prototype,"dataChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],LJ);
_.X(LJ,"yt-live-chat-text-input-field-suggestion",function(){if(SgM===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;tCC===void 0&&(tCC=document.createElement("template"));var Z=tCC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);SgM=h}h=SgM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});_.jR=function(h,E,g){return CustomEvent.call(this,h,{detail:{value:E,path:g}})||this};
_.f(_.jR,CustomEvent);_.dP=function(){var h=_.D.apply(this,arguments)||this;h.viewerName=null;h.actionMap={"yt-live-chat-actions":"onChatMessage_"};h.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];h.PARTICIPANT_TIME_USEC_=3E8;return h};
_.f(_.dP,_.D);_.p=_.dP.prototype;_.p.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.p.addParticipant=function(h){var E=_.S4W(this.participants,h,function(Z,M){Z=Z[Object.keys(Z)[0]];M=M[Object.keys(M)[0]];Z=String(_.Wp(Z.authorName)).toLowerCase();M=String(_.Wp(M.authorName)).toLowerCase();return Z<M?-1:Z==M?0:1}.bind(this));
if(E>=0){var g=this.participants[E];g[Object.keys(g)[0]].timestampUsec&&this.splice("participants",E,1,h)}else this.splice("participants",-E-1,0,h);h=h[Object.keys(h)[0]];E=_.Wp(h.authorName).toLocaleLowerCase();g=E.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(g)||(this.allParticipantsCharMap_[g]={});this.allParticipantsCharMap_[g][E]=h};
_.p.getAuthorsFromPrefix=function(h){return this.allParticipantsCharMap_.hasOwnProperty(h)?this.allParticipantsCharMap_[h]:null};
_.p.computeViewerRegex_=function(h){if(!h)return null;h=h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var E=h.indexOf("@")===0&&_.J("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(E+h.replace(/ /g,"\\s*")+"|^"+h.replace(/ /g,"\\s*")+"$|^"+h.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+h.replace(/ /g,"\\s*")+"$|(?<=\\s)"+h.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.p.checkForStaleParticipants_=function(){var h=this;this.trimOldParticipants_();this.asyncHandle_&&TwN(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.hW(function(){h.checkForStaleParticipants_()},3E4))};
_.p.onChatMessage_=function(h){var E=this,g=Date.now()*1E3;h.forEach(function(Z){if(Z=_.e(Z,giD)){Z=Z.item;var M=Object.keys(Z)[0];E.SUPPORTED_ITEM_TYPES_.indexOf(M)!=-1&&Z[M].timestampUsec>=g-E.PARTICIPANT_TIME_USEC_&&E.addParticipant(Z)}},this);
this.checkForStaleParticipants_()};
_.p.trimOldParticipants_=function(){for(var h=Date.now()*1E3,E=this.participants.length-1;E>=0;E--){var g=this.participants[E];g=g[Object.keys(g)[0]];g.timestampUsec&&g.timestampUsec<h-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",E,1)}};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],_.dP.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],_.dP.prototype,"viewerName",void 0);_.Y([_.x({computed:"computeViewerRegex_(viewerName)"}),_.V("design:type",Object)],_.dP.prototype,"viewerRegex",void 0);_.Y([_.x({value:function(){return[]},
notify:!0}),_.V("design:type",Array)],_.dP.prototype,"participants",void 0);_.Y([_.yc({is:"yt-live-chat-participants-manager",noInjection:!0})],_.dP);var x4k=/.*([:@#].*?)$/,CJ=/\u00a0/g,wfM=String.fromCharCode(160),D4n={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"},Jg=function(){var h=_.D.apply(this,arguments)||this;h.disabled=!1;h.liveChatRichMessageInput=null;h.messageInput=null;h.isValidWithNoInputText=!1;h.suggestions=[];h.emojiManager=_.PB;h.inputMethodEditorActive=
!1;h.suggestionIndex=-1;h.JSC$14114_lastSuggestionRange=null;return h};
_.f(Jg,_.D);_.p=Jg.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.p.attached=function(){_.RV&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.p.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.p.dataChanged=function(){if(!this.ignoreColorMapping){var h=!1,E={},g;for(g in D4n)this.data&&this.data.hasOwnProperty(g)&&(E[D4n[g]]=this.colorFromDecimal(this.data[g]),h=!0);h&&_.Ja(this.hostElement,E)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.p.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.p.colorFromDecimal=function(h){h=Math.floor(Number(h));return"rgba("+[h>>16&255,h>>8&255,h&255,(h>>24&255)/255].join()+")"};
_.p.preventDrag=function(h){h.dataTransfer&&(h.dataTransfer.dropEffect="none");h.preventDefault()};
_.p.preventResize=function(h){h.returnValue=!1};
_.p.onInputChange=function(){var h=this.characterCount,E=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&E&&E.remove();if(!E&&this.characterCount>this.maxCharacterLimit){var g=window.getSelection();if(g){var Z=g.getRangeAt(0);g.removeAllRanges();g.addRange(Z)}}if(g=this.getCurrentRange())Z=this.calculateTextBeforeRange(g),this.completeEmojisInRange(g,Z,!0)||this.updateSuggestions(g,Z);Z=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(Z);
_.Ra(this.hostElement,"yt-live-chat-message-input-change",Z);E&&this.characterCount===0&&E.remove();g&&g.commonAncestorContainer.parentElement.id==="input"&&g.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>h):g&&!g.collapsed&&g.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(h=this.input.childNodes.length-1;h>=0;h--)this.input.childNodes[h].nodeName==="BR"&&this.input.childNodes[h].remove()};
_.p.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.p.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var h=this.getCurrentRange();h&&h.commonAncestorContainer.parentElement.id==="input"&&h.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.mergeOverflowText=function(h){if(h){var E=document.createRange();E.selectNodeContents(h);E=E.extractContents();this.input.insertBefore(E,h)}};
_.p.checkRangeAtEndOfInput=function(){var h=this.getCurrentRange();if(h){var E=_.UB(this.hostElement).querySelector("#overflow-text"),g=document.createRange();E&&E.previousSibling?E.previousSibling instanceof HTMLImageElement?g.selectNode(E.previousSibling):g.selectNodeContents(E.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?g.selectNode(this.input.lastChild):g.selectNodeContents(this.input.lastChild));g.collapse(!1);return g.isPointInRange(h.startContainer,
h.startOffset)}return!1};
_.p.handleOverflowText=function(h){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var E=_.UB(this.hostElement).querySelector("#overflow-text"),g=this.getCurrentRange();this.input.normalize();h=this.checkRangeAtEndOfInput()&&h;this.mergeOverflowText(E);for(var Z,M=0,W=0,z,c=this.input.childNodes,I=0;I<c.length;I++){var B=c[I];B instanceof Text?(W+=B.textContent.length,W>this.maxCharacterLimit&&(Z=B,M=this.maxCharacterLimit+B.textContent.length-W)):B instanceof HTMLImageElement&&
(Z=void 0,W=B.dataset.emojiId&&((Z=this.data)==null?0:Z.emojiCharacterCount)?W+this.data.emojiCharacterCount:W+B.alt.length,Z=this.input,M=I);if(W>this.maxCharacterLimit&&Z){z=document.createRange();z.collapse(!1);E?(W=this.input.lastChild.previousSibling,W instanceof Text?z.setEnd(this.input.lastChild.previousSibling,W.textContent.length):W instanceof HTMLImageElement&&z.setEnd(this.input,this.input.childNodes.length-1)):z.selectNodeContents(this.input);z.setStart(Z,M);break}}z&&(Z=!1,g&&(h=z.isPointInRange(g.startContainer,
g.startOffset-1)),E||(E=document.createElement("span"),E.id="overflow-text",E.textContent="",E.setAttribute("contenteditable","true"),_.UB(_.UB(this.hostElement).querySelector("#input")).appendChild(E),Z=!0),E&&(g=z.extractContents(),E.insertBefore(g,E.firstChild),h&&E.firstChild&&(g=document.createRange(),Z?g.setStartAfter(E.lastChild):g.setStartAfter(E.firstChild),g.collapse(!0),E=window.getSelection(),E.removeAllRanges(),E.addRange(g))))}};
_.p.checkForDuplicateSpans=function(){for(var h=0;h<this.input.childNodes.length;h++){var E=this.input.childNodes[h];if(E.nodeName==="SPAN"){var g=document.createRange();g.selectNodeContents(E);g=g.extractContents();this.input.insertBefore(g,E);E.remove()}}this.handleOverflowText(!0)};
_.p.getCurrentRange=function(){var h=window.getSelection();return h&&h.rangeCount?h.getRangeAt(0).cloneRange():null};
_.p.getInputRange=function(){var h=this.getCurrentRange();if(h){for(var E=h.commonAncestorContainer,g=!1,Z=_.UB(this.hostElement).querySelector("#input");E;){if(E===Z){g=!0;break}E=E.parentNode}g||(h=null)}h||(h=this.getRangeAtEnd());return h};
_.p.getRangeAtEnd=function(){var h=document.createRange(),E=_.UB(this.hostElement).querySelector("#input").lastChild;!E||E.nodeName!=="#text"&&E.nodeName!=="SPAN"?(h.selectNodeContents(_.UB(this.hostElement).querySelector("#input")),h.collapse(!1)):E.nodeName==="#text"?h.setStart(E,E.textContent.length):h.setStart(E,E.childNodes.length);return h};
_.p.getChatParticipantSuggestions=function(h,E,g,Z){var M=_.J("live_chat_enable_handles_web_text_input_update");if(E)for(var W in E)if(W.indexOf(h)===0||M&&W.indexOf(g+h)===0){var z=E[W],c=_.Wp(z.authorName);Z.push({suggestion:{author:!0,authorType:g,image:z.authorPhoto,alt:c,text:c}});if(Z.length>=64)break}};
_.p.getSuggestions=function(h){var E=[],g=h.substring(0,3),Z=d4C(_.PB,g,!0);if(Z)for(var M in Z)if(M.toLocaleLowerCase().indexOf(h)===0){var W=Z[M];if(W&&W.emojiId){if(W=jAf(_.PB,W.emojiId)){var z=void 0,c=void 0,I=void 0,B=void 0,U=((z=W.image)==null?0:(c=z.accessibility)==null?0:(I=c.accessibilityData)==null?0:I.label)||W.isCustomEmoji?(B=W.shortcuts)==null?void 0:B[0]:W.emojiId;E.push({suggestion:{emoji:!0,image:W.image,alt:U,text:M,textToInsertWhenSelected:W.isCustomEmoji?M:U}})}if(E.length>=
64)break}}if(!this.participantsManager)return null;if(g.indexOf("@")===0||g.indexOf("#")===0)Z=g.charAt(0),h=h.substring(1),M=_.J("live_chat_enable_handles_web_text_input_update"),g.indexOf("@")===0&&M&&(M=this.participantsManager.getAuthorsFromPrefix(g.substring(0,2)),this.getChatParticipantSuggestions(h,M,Z,E)),g=g.substring(1),g=this.participantsManager.getAuthorsFromPrefix(g),this.getChatParticipantSuggestions(h,g,Z,E);return E?E.sort(function(L,d){return d.suggestion.text<L.suggestion.text?-1:
d.suggestion.text===L.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(h){var E=_.J("live_chat_enable_handles_web_text_input_update"),g=h.authorType;E=h.text.indexOf(g)===0&&E?h.text+wfM:g+h.text+wfM;h.emoji?this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,h.textToInsertWhenSelected||""):h.author&&this.insertTextAtRange(this.JSC$14114_lastSuggestionRange,E)};
_.p.updateSuggestionsAtCaret=function(){var h=this.getCurrentRange();h&&this.updateSuggestions(h,this.calculateTextBeforeRange(h))};
_.p.offsetStartOfRangeBy=function(h,E){for(;E>0;)if(h.startOffset-E>=0){h.setStart(h.startContainer,h.startOffset-E);break}else{E=h.startContainer instanceof HTMLImageElement?E-h.startContainer.alt.length:E-h.startOffset;var g=h.startContainer.previousSibling;if(!g){h.setStart(h.startContainer,0);break}if(_.J("live_chat_require_space_for_autocomplete_emoji")){var Z=void 0,M=void 0;h.setStart(g,((Z=g)==null?void 0:(M=Z.textContent)==null?void 0:M.length)||0)}else h.setStart(g,g.childNodes.length||
0)}};
_.p.updateSuggestions=function(h,E){var g=this;this.JSC$14114_lastSuggestionRange&&(this.JSC$14114_lastSuggestionRange.detach(),this.JSC$14114_lastSuggestionRange=null);if((E=x4k.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2&&(this.offsetStartOfRangeBy(h,E.length),this.JSC$14114_lastSuggestionRange=h,(h=this.getSuggestions(E))&&h.length))){this.suggestions=h;_.pQ(this,function(){_.UB(g.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(h.length-1);return}this.dropdown.opened=!1};
_.p.completeEmojisInRange=function(h,E,g){var Z=E.replace(/[\s\xa0]+$/,"");E=E.length-Z.length;Z=Z.split(" ");Z=Z[Z.length-1].trim().toLocaleLowerCase();var M=Z.lastIndexOf(":");if(g&&!E&&M!==Z.length-1)return!1;M!==-1&&(g=Z.lastIndexOf(":",M-1),g!==-1&&(Z=Z.substring(g)));if((g=_.Id(_.PB,Z))&&g.emojiId){g=jAf(_.PB,g.emojiId)||null;this.offsetStartOfRangeBy(h,Z.length+E);var W,z,c,I;Z=(((W=g)==null?0:W.isCustomEmoji)?(z=g)==null?void 0:(c=z.shortcuts)==null?void 0:c[0]:(I=g)==null?void 0:I.emojiId)||
"";E&&(Z+=wfM);this.insertTextAtRange(h,Z);this.dropdown.opened=!1;return!0}return!1};
_.p.onSuggestion=function(h){this.insertSuggestion(h.detail);this.dropdown.opened=!1};
_.p.onKeyPress=function(h){h.keyCode===13&&(h.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Ra(this.hostElement,"yt-live-chat-send-message"))};
_.p.completeEmojis=function(){var h=document.createRange(),E=_.UB(this.hostElement).querySelector("#input").lastChild;E?h.setStart(E,E.childNodes.length):(h.selectNodeContents(_.UB(this.hostElement).querySelector("#input")),h.collapse(!1));this.completeEmojisInRange(h,this.calculateTextBeforeRange(h),_.J("live_chat_require_space_for_autocomplete_emoji"))};
_.p.maybePreventTextFormatting=function(h){!_.LW||!h.ctrlKey&&!h.metaKey||h.keyCode!==66&&h.keyCode!==73||(h.stopImmediatePropagation(),h.preventDefault())};
_.p.onKeyDown=function(h){this.maybePreventTextFormatting(h);if(this.dropdown.opened)switch(h.keyCode){case 27:this.dropdown.opened=!1;h.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;h.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);h.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),h.preventDefault()}};
_.p.onKeyUp=function(h){switch(h.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.IV)this.onInputChange()};
_.p.changeSuggestionIndex=function(h){if(this.dropdown.opened){var E=_.UB(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<E.children.length&&(E.children[this.suggestionIndex].active=!1);var g=this.suggestions.length;this.suggestionIndex=(h+g)%g;h=E.children[this.suggestionIndex];h.active=!0;E.scrollTop=h.offsetTop}};
_.p.onInputPaste=function(h){h.preventDefault();(h=h.clipboardData)&&h.types&&(h=h.getData("text/plain")||"",h=h.replace(/\n/g,""),this.insertText(h));(h=this.getCurrentRange())&&h.commonAncestorContainer.parentElement.id==="input"&&h.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.p.onFocus=function(){this._setFocused(!0)};
_.p.onBlur=function(){this._setFocused(!1)};
_.p.insertText=function(h){this.insertTextAtRange(this.getInputRange(),h)};
_.p.insertTextAtRange=function(h,E){if(h&&(h.collapsed||h.deleteContents(),E=_.PB.createDocumentFragment(E,!0,!1))){for(var g=_.G((E==null?void 0:E.childNodes)||[]),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=void 0,W=void 0,z=void 0,c=void 0,I=void 0;(z=(M=window)==null?void 0:(W=M.ShadyCSS)==null?void 0:W.ScopingShim)==null||(I=(c=z).scopeNode)==null||I.call(c,Z,this.hostElement.localName)}g=E.lastChild;h.insertNode(E);this.focused||this.input.focus();if(this.focused){h=h.cloneRange();h.selectNodeContents(g);
h.collapse(!1);if(E=window.getSelection())E.removeAllRanges(),E.addRange(h);h.commonAncestorContainer.parentElement.id==="input"&&h.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}h=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(h);_.Ra(this.hostElement,"yt-live-chat-message-input-change",h)}};
_.p.setLiveChatRichMessageInput=function(h){_.UB(_.UB(this.hostElement).querySelector("#input")).textContent="";if(h&&h.textSegments){for(var E=0;E<h.textSegments.length;E++){var g=h.textSegments[E];g.text?_.UB(_.UB(this.hostElement).querySelector("#input")).appendChild(_.PB.createDocumentFragment(g.text,!0,!1)):g.emojiId&&(g=_.Iq(_.PB,g.emojiId))&&_.UB(_.UB(this.hostElement).querySelector("#input")).appendChild(_.PB.createEmoji(g,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.p.setText=function(h){this.setLiveChatRichMessageInput(h?{textSegments:[{text:h}]}:null)};
_.p.calculateTextBeforeRange=function(h){var E="",g=h.startContainer;if(g&&g instanceof Text){var Z;E=((Z=g.textContent)==null?void 0:Z.substring(0,h.startOffset))||"";g=g.previousSibling}for(;g&&g instanceof Text;)E=g.textContent+E,g=g.previousSibling;return E.replace(CJ," ")};
_.p.calculateLiveChatRichMessageInput=function(){for(var h=[],E="",g=_.UB(_.UB(this.hostElement).querySelector("#input")).childNodes,Z=0;Z<g.length;Z++){var M=g[Z];M instanceof Text?E+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(E&&(h.push({text:E.replace(CJ," ")}),E=""),h.push({emojiId:M.dataset.emojiId})):E+=M.alt)}E&&h.push({text:E.replace(CJ," ")});if(g=_.UB(this.hostElement).querySelector("#overflow-text")){E="";g=g.childNodes;for(Z=0;Z<g.length;Z++)M=g[Z],M instanceof Text?
E+=M.textContent:M instanceof HTMLImageElement&&(M.dataset.emojiId?(E&&(h.push({text:E.replace(CJ," ")}),E=""),h.push({emojiId:M.dataset.emojiId})):E+=M.alt);E&&h.push({text:E.replace(CJ," ")})}return{textSegments:h}};
_.p.computeCharacterCount=function(h){if(!h||!h.textSegments)return 0;for(var E=0,g=0;g<h.textSegments.length;g++){var Z=h.textSegments[g];if(Z.text)E+=Z.text.length;else if(Z.emojiId){var M=void 0;if((M=this.data)==null?0:M.emojiCharacterCount)E+=this.data.emojiCharacterCount;else{var W=M=void 0,z=void 0;E+=((W=_.Iq(_.PB,(M=Z)==null?void 0:M.emojiId))==null?void 0:(z=W.shortcuts)==null?void 0:z[0].length)||0}}}return E};
_.p.characterCountChanged=function(){_.Ra(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.p.focusedChanged=function(){this.hostElement.dispatchEvent(new _.jR("focused-changed",this.focused))};
_.p.focus=function(){this.setFocus(!1)};
_.p.focusAtEnd=function(){this.setFocus(!0)};
_.p.setFocus=function(h){h=h?this.getRangeAtEnd():this.getInputRange();_.UB(this.hostElement).querySelector("#input").focus();var E=window.getSelection();E&&(E.removeAllRanges(),E.addRange(h))};
_.p.insertEmoji=function(h){var E,g=((h==null?0:h.isCustomEmoji)?(E=h.shortcuts)==null?void 0:E[0]:h==null?void 0:h.emojiId)||"";this.insertText(g)};
_.p.computeText=function(h){if(!h||!h.textSegments)return"";for(var E="",g=0;g<h.textSegments.length;g++){var Z=h.textSegments[g];if(Z.text)E+=Z.text;else if(Z.emojiId){var M=void 0,W=void 0,z=void 0;E+=((W=_.Iq(_.PB,(M=Z)==null?void 0:M.emojiId))==null?void 0:(z=W.shortcuts)==null?void 0:z[0])||""}}return E};
_.p.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ze.Object.defineProperties(Jg.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.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}}});
Jg.prototype.focusedChanged=Jg.prototype.focusedChanged;Jg.prototype.characterCountChanged=Jg.prototype.characterCountChanged;Jg.prototype.onSuggestion=Jg.prototype.onSuggestion;Jg.prototype.onMessageSet=Jg.prototype.onMessageSet;Jg.prototype.dataChanged=Jg.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Jg.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Jg.prototype,"disabled",void 0);_.Y([_.S("disabled"),_.V("design:type",Number),_.V("design:paramtypes",[])],Jg.prototype,"inputTabIndex",null);_.Y([_.S("data.maxCharacterLimit"),_.x({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],Jg.prototype,"maxCharacterLimit",null);
_.Y([_.S("liveChatRichMessageInput"),_.x({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],Jg.prototype,"characterCount",null);_.Y([_.S("maxCharacterLimit, characterCount"),_.x({readOnly:!0,notify:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],Jg.prototype,"remainingCharacterCount",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Jg.prototype,"isChatMessageInput",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Jg.prototype,"inputExpanded",void 0);_.Y([_.x({readOnly:!0,notify:!0}),_.V("design:type",Object)],Jg.prototype,"liveChatRichMessageInput",void 0);_.Y([_.x(),_.V("design:type",Object)],Jg.prototype,"messageInput",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Jg.prototype,"ignoreColorMapping",void 0);_.Y([_.S("characterCount"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jg.prototype,"hasText",null);
_.Y([_.x(),_.V("design:type",Object)],Jg.prototype,"isValidWithNoInputText",void 0);_.Y([_.S("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.x(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Jg.prototype,"isInputValid",null);_.Y([_.x({readOnly:!0,value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Jg.prototype,"focused",void 0);_.Y([_.x(),_.V("design:type",Array)],Jg.prototype,"suggestions",void 0);
_.Y([_.x(),_.V("design:type",_.oq)],Jg.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",_.dP)],Jg.prototype,"participantsManager",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Jg.prototype,"noUnderline",void 0);_.Y([_.x(),_.V("design:type",Object)],Jg.prototype,"inputMethodEditorActive",void 0);_.Y([_.Sg("#dropdown"),_.V("design:type",Object)],Jg.prototype,"dropdown",void 0);_.Y([_.Sg("#input"),_.V("design:type",HTMLElement)],Jg.prototype,"input",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jg.prototype,"dataChanged",null);_.Y([_.Nm("messageInput"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jg.prototype,"onMessageSet",null);_.Y([_.f3("yt-live-chat-select-suggestion"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jg.prototype,"onSuggestion",null);
_.Y([_.Nm("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jg.prototype,"characterCountChanged",null);_.Y([_.Nm("focused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jg.prototype,"focusedChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Jg);
_.lKB=_.X(Jg,"yt-live-chat-text-input-field-renderer",function(){if(NVl===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;fKA===void 0&&(fKA=document.createElement("template"));var Z=fKA;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);NVl=h}h=NVl;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var eR=function(){var h=_.D.apply(this,arguments)||this;h.buttonOverrides={style:"overlay",type:"filled"};h.allowAnimations=!1;h.modern=_.J("web_button_rework_with_live");h.noPadding=!1;return h};
_.f(eR,_.D);_.p=eR.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.p.ready=function(){var h=document.querySelector("yt-live-chat-app");h&&h.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.attached=function(){this.allowAnimations=!1};
_.p.dataChanged=function(){if(this.data){var h={"--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)};_.Ja(this.hostElement,h);this.allowAnimations=!0}};
_.p.messageChanged=function(){var h,E=(h=this.data)==null?void 0:h.message;h=_.UB(_.UB(this.hostElement).querySelector("#message"));h.textContent="";E&&h.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.p.computeShowOnlyHeader=function(h,E){return!h||h.pdgLikeButton||h.replyButton||h.buyFlowButton?!1:this.isEmpty(h,E)&&!h.footer};
_.p.computeShowFooterDivider=function(h,E,g){return h?!!h.footer&&!this.isEmpty(h,E)&&!g:!1};
_.p.computeIsUserEditable=function(h){return!!h.inputField};
_.p.computeHasHeartButton=function(h){return(h==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(h==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(h==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.p.computeNoveltyImage=function(h){if(h.headerOverlayImage&&h.headerOverlayImage.thumbnails.length){var E=h.headerOverlayImage.thumbnails[0],g,Z;if((g=h.pdgPurchasedNoveltyLoggingDirectives)==null?0:(Z=g.loggingDirectives)==null?0:Z.trackingParams){var M,W;OGO((M=h.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(W=M.loggingDirectives)==null?void 0:W.trackingParams)}return E.width||0}return 0};
_.p.computeAuthorPhotoSize=function(h){return(h==null?0:h.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.p.inputFocus=function(){var h=_.UB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");h&&h.focus()};
_.p.inputInsertEmoji=function(h){var E=_.UB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");E&&E.insertEmoji(h)};
_.p.inputMessage=function(){var h=_.UB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),E;return h&&((E=this.data)==null?0:E.inputField)?(h.completeEmojis(),_.FN(h.liveChatRichMessageInput)):null};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.p.isEmpty=function(h,E){return h?h.empty||!(h.message||h.inputField||E):!0};
_.p.onLowerBuyButtonClick=function(){var h,E=_.e((h=this.data)==null?void 0:h.buyButton,_.Gh);E&&E.trackingParams&&!q5z(E.command)&&(h=_.rp(E.trackingParams))&&(E=_.sH())&&_.Z$(E,h)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.ze.Object.defineProperties(eR.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
eR.prototype.isDeletedChanged=eR.prototype.isDeletedChanged;eR.prototype.messageChanged=eR.prototype.messageChanged;eR.prototype.dataChanged=eR.prototype.dataChanged;_.Y([_.t(GoH.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],eR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],eR.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],eR.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eR.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:$4N}),_.V("design:type",Object)],eR.prototype,"engagementState",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.V("design:type",Boolean)],eR.prototype,"isUserEditable",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.V("design:type",Boolean)],eR.prototype,"hasHeartButton",void 0);_.Y([_.x({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Boolean)],eR.prototype,"showOnlyHeader",void 0);
_.Y([_.x({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.V("design:type",Boolean)],eR.prototype,"showFooterDivider",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],eR.prototype,"allowAnimations",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],eR.prototype,"dashboardMoneyFeed",void 0);_.Y([_.x({computed:"computeNoveltyImage(data)"}),_.V("design:type",Number)],eR.prototype,"noveltyWidth",void 0);
_.Y([_.x({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],eR.prototype,"authorPhotoSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],eR.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],eR.prototype,"noPadding",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eR.prototype,"dataChanged",null);
_.Y([_.Nm("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eR.prototype,"messageChanged",null);_.Y([_.S("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eR.prototype,"hideLowerBumper",null);_.Y([_.Nm("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eR.prototype,"isDeletedChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],eR);
_.X(eR,"yt-live-chat-paid-message-renderer",function(){if(YsH===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;XqM===void 0&&(XqM=document.createElement("template"));var Z=XqM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);YsH=h}h=YsH;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var r_k;var m4M;var qy=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;return h};
_.f(qy,_.wD);qy.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.nF("openPopupConfig")};
_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],qy.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.DM()],qy);_.fJ=[_.n6.YtOpenPopupBehavior,qy.prototype];var vfD;var Ez=[_.tk,vDl,_.M8,_.Sl,_.MH,_.MbF,_.D9,_.KwD,_.rE,G2z];_.J("web_watch_get_updated_metadata_response_processing")&&Ez.push(_.MnC);_.J("web_continuation_response_processing")&&Ez.push(_.yQ);var x5$=new _.Ps("RESPONSE_RECEIVED_COMMANDS"),ZTq=new _.Ps("RESPONSE_RECEIVED_COMMANDS");var TbN="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),ADW=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],FYW=["GET_UNSEEN_NOTIFICATION_COUNT"];var Ny=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.serviceEndpointHandlers=[];return h};
_.f(Ny,_.wD);Ny.prototype.created=function(){var h=this;this.endpointHandlerActionMap={"yt-service-request":function(E,g,Z,M){var W;return yDd(h.hostElement,E,g,Z,M,h.serviceEndpointHandlers,(W=h.onEntitiesUpdated)==null?void 0:W.bind(h))}}};
Ny.prototype.attached=function(){_.bp(_.Tq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Ny.prototype.detached=function(){_.up(_.Tq.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.Y([_.DM()],Ny);_.HGD=[Ny.prototype];var $4A,K_M=function(){return $4A!==void 0?$4A:$4A=document.createElement("template")};
document.head.appendChild(K_M().content);var OGl;var nfl=document.head,Xff=nfl.appendChild,Ygk;if(OGl===void 0){var sAl=document.createElement("template");_.N(sAl,"\x3c!--css-build:shady--\x3e");sAl.content.insertBefore(K_M().content.cloneNode(!0),sAl.content.firstChild);OGl=sAl}Ygk=OGl;Xff.call(nfl,Ygk.content);var VCM,kLm=function(){return VCM!==void 0?VCM:VCM=document.createElement("template")};
document.head.appendChild(kLm().content);var y_B;var F_F=document.head,A_B=F_F.appendChild,TVC;if(y_B===void 0){var bGm=document.createElement("template");_.N(bGm,"\x3c!--css-build:shady--\x3e");bGm.content.insertBefore(kLm().content.cloneNode(!0),bGm.content.firstChild);y_B=bGm}TVC=y_B;A_B.call(F_F,TVC.content);var usf;_.$P("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.$P("sharingRendererButtons","buttonRenderer","ytd-button-renderer");usf=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live");_.tg=function(){var h=_.D.apply(this,arguments)||this;h.isPressed=!1;h.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return h};
_.f(_.tg,_.D);_.p=_.tg.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.onHintIdChanged=function(){var h=this,E,g,Z=(E=this.ytButtonBehavior.data)==null?void 0:(g=E.hint)==null?void 0:g.hintRenderer;if(Z&&Z.hintId){E=_.U7(this.hostElement,"yt-get-opened-popups-action");E=(E&&E.length===1?E[0]:[]).length>0;var M=null;Z.hintId!=="sponsor-pre-purchase"||E?Z.hintId.startsWith("sponsor-post-purchase")&&!E?M=eEA("membership-manage"):Z.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!E&&(M=eEA("membership-freebie-join")):M=eEA("membership-join");M&&_.KP.addLowPriorityJob(function(){for(var W=
_.G(M),z=W.next();!z.done;z=W.next())h.ytComponentBehavior.resolveCommand(z.value)})}};
_.p.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.p.onYtNavigate=function(h){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(h.detail.endpoint);E&&(h.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.p.onYtServiceRequestSent=function(h,E){this.handleServiceRequestActions(E);_.Ra(this.hostElement,"yt-service-request-sent-button-renderer")};
_.p.onServiceRequestCompleted=function(h,E){this.handleServiceRequestActions(E);_.Ra(this.hostElement,"yt-service-request-completed-button-renderer")};
_.p.updateButton=function(h){var E;if(h=(E=_.e(h,NGD))==null?void 0:E.updatedButton)this.ytButtonBehavior.data=_.e(h,_.Gh)};
_.p.handleUpdateButtonAction=function(h){var E=this.ytButtonBehavior.data;E.targetId&&h.updateButtonAction.targetId&&E.targetId===h.updateButtonAction.targetId&&this.updateButton(h)};
_.p.handleServiceRequestActions=function(h){if(h=h.actions)for(var E=0;E<h.length;E++)this.updateButton(h[E])};
_.ze.Object.defineProperties(_.tg,{template:{configurable:!0,enumerable:!0,get:function(){if(vfD===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);vfD=h}h=vfD;return h}}});
_.tg.prototype.onServiceRequestCompleted=_.tg.prototype.onServiceRequestCompleted;_.tg.prototype.onYtServiceRequestSent=_.tg.prototype.onYtServiceRequestSent;_.tg.prototype.onYtNavigate=_.tg.prototype.onYtNavigate;_.tg.prototype.onPressedStateChanged=_.tg.prototype.onPressedStateChanged;_.tg.prototype.onHintIdChanged=_.tg.prototype.onHintIdChanged;_.Y([_.x(),_.V("design:type",Object)],_.tg.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],_.tg.prototype,"isPressed",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],_.tg.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.GQf.YtButtonBehavior),_.V("design:type",Object)],_.tg.prototype,"ytButtonBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],_.tg.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],_.tg.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(uk.YtRenderButtonBehavior),_.V("design:type",Object)],_.tg.prototype,"ytRenderButtonBehavior",void 0);_.Y([_.Nm("data.hint.hintRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.tg.prototype,"onHintIdChanged",null);_.Y([_.Nm("isPressed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],_.tg.prototype,"onPressedStateChanged",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],_.tg.prototype,"onYtNavigate",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],_.tg.prototype,"onYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],_.tg.prototype,"onServiceRequestCompleted",null);_.Y([_.K({is:"ytd-button-renderer",disableElementRegistration:usf})],_.tg);var SR=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework_with_live");h.buttonOverrides={style:"overlay",type:"filled"};return h};
_.f(SR,_.D);_.p=SR.prototype;_.p.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.p.ready=function(){var h=document.querySelector("yt-live-chat-app");h&&h.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.p.dataChanged=function(){if(this.data&&this.data.sticker){var h=_.R9(this.data.sticker.thumbnails,this.stickerWidth);h||_.cRu(h).thenCatch(function(){_.O$(new _.xX("Failed to load Super Sticker with url",h))})}};
_.p.computeAuthorPhotoSize=function(h){return(h==null?0:h.isV2Style)?32:40};
_.p.computeIsV2Style=function(h){return(h==null?0:h.isV2Style)?!0:!1};
_.p.onStickerLoaded=function(h){var E,g,Z;(E=_.zw(h))==null||(g=E.parentNode)==null||(Z=g.classList)==null||Z.add("sticker-loaded")};
_.p.computeNoveltyImageWidth=function(h){var E,g;if(h==null?0:(E=h.headerOverlayImage)==null?0:(g=E.thumbnails)==null?0:g.length){E=h.headerOverlayImage.thumbnails[0];var Z,M;if((Z=h.pdgPurchasedNoveltyLoggingDirectives)==null?0:(M=Z.loggingDirectives)==null?0:M.trackingParams){var W,z;OGO((W=h.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=W.loggingDirectives)==null?void 0:z.trackingParams)}return E.width||0}return 0};
_.p.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.p.updateStickerStyles=function(){var h=this.data;h&&(h={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(h.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(h.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(h.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(h.authorNameTextColor)},
_.Ja(this.hostElement,h))};
_.p.onBuyButtonClick=function(){var h,E=_.e((h=this.data)==null?void 0:h.buyButton,_.Gh);E&&!q5z(E.command)&&this.ytRendererBehavior.logExplicitClick(E)};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.ze.Object.defineProperties(SR.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 h;return((h=this.data)==null?0:h.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
SR.prototype.updateStickerStyles=SR.prototype.updateStickerStyles;SR.prototype.isDeletedChanged=SR.prototype.isDeletedChanged;SR.prototype.onStickerLoaded=SR.prototype.onStickerLoaded;SR.prototype.dataChanged=SR.prototype.dataChanged;_.Y([_.t(GoH.YtPdgLiveChatItemBehavior),_.V("design:type",Object)],SR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],SR.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SR.prototype,"data",void 0);
_.Y([_.x({computed:"computeAuthorPhotoSize(data)"}),_.V("design:type",Number)],SR.prototype,"authorPhotoSize",void 0);_.Y([_.x(),_.V("design:type",Boolean)],SR.prototype,"isDeleted",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],SR.prototype,"dashboardMoneyFeed",void 0);_.Y([_.x({computed:"computeNoveltyImageWidth(data)"}),_.V("design:type",Number)],SR.prototype,"noveltyWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],SR.prototype,"modern",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.V("design:type",Boolean)],SR.prototype,"isV2Style",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SR.prototype,"dataChanged",null);_.Y([_.f3("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],SR.prototype,"onStickerLoaded",null);
_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],SR.prototype,"stickerWidth",null);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],SR.prototype,"stickerHeight",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SR.prototype,"hasHeartButton",null);_.Y([_.S("data","dashboardMoneyFeed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SR.prototype,"hideLowerBumper",null);
_.Y([_.Nm("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SR.prototype,"isDeletedChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SR.prototype,"updateStickerStyles",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],SR);
_.X(SR,"yt-live-chat-paid-sticker-renderer",function(){if(m4M===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;r_k===void 0&&(r_k=document.createElement("template"));var Z=r_k;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);m4M=h}h=m4M;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var QAF;var hGD;var EID,gIM=function(){return EID!==void 0?EID:EID=document.createElement("template")};
document.head.appendChild(gIM().content);var Z_m,MWD=function(){return Z_m!==void 0?Z_m:Z_m=document.createElement("template")};
document.head.appendChild(MWD().content);var WYC;var pVH,G_B=function(){return pVH!==void 0?pVH:pVH=document.createElement("template")};
document.head.appendChild(G_B().content);var zGM;var a3D=document.head,cDD=a3D.appendChild,i_f;if(zGM===void 0){var oIl=document.createElement("template");_.N(oIl,"\x3c!--css-build:shady--\x3e");oIl.content.insertBefore(G_B().content.cloneNode(!0),oIl.content.firstChild);zGM=oIl}i_f=zGM;cDD.call(a3D,i_f.content);var I3B=document.head,RGF=I3B.appendChild,Phk;if(WYC===void 0){var xK=document.createElement("template");_.N(xK,"\x3c!--css-build:shady--\x3e");xK.content.insertBefore(MWD().content.cloneNode(!0),xK.content.firstChild);xK.content.insertBefore(gIM().content.cloneNode(!0),xK.content.firstChild);WYC=xK}Phk=WYC;RGF.call(I3B,Phk.content);var wP=function(){var h=_.wD.apply(this,arguments)||this;h.focusedIndex=0;h.verticalOffset=0;h.verticalAlign="top";h.dynamicAlign=!0;return h};
_.f(wP,_.wD);wP.prototype.emojiUrl=function(h){h=_.Iq(this.emojiManager,h);if(!h)return"";var E;h=(E=h.image)==null?void 0:E.thumbnails;return _.R9(h,24)||""};
var BbC=function(h){var E;h.emojiVariants&&(E=h.data)!=null&&E.target&&_.pQ(h,function(){h.set("verticalOffset",-1*h.hostElement.clientHeight);var g=_.UB(h.hostElement).querySelector("img");g&&g.focus()})};
_.p=wP.prototype;_.p.onKeyboardEnter=function(){};
_.p.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.p.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.p.onKeyDown=function(h){switch(h.keyCode){case 13:this.onKeyboardEnter();h.preventDefault();break;case 40:this.changeFocus(1);h.preventDefault();break;case 38:this.changeFocus(-1);h.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.p.onYtEmojiSelect=function(h){var E=this,g,Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1)return Z=(g=E.data)==null?void 0:g.emoji,z=((M=Z)==null?void 0:M.stickyPrefId)||((W=Z)==null?void 0:W.emojiId),I=(c=h.detail)==null?void 0:c.emojiId,z&&I&&z!==I?U.yield((B=E.emojiManager)==null?void 0:CuD(B,Z,I),2):U.return();_.BX(E.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[Z,I]);_.SK(U)})};
_.p.changeFocus=function(h){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+h+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(h=_.UB(this.hostElement).querySelector("#variants"))&&h.children[this.focusedIndex].focus())};
_.ze.Object.defineProperties(wP.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
wP.prototype.onYtEmojiSelect=wP.prototype.onYtEmojiSelect;wP.prototype.onKeyDown=wP.prototype.onKeyDown;wP.prototype.onEmojiVariantsChanged=wP.prototype.onEmojiVariantsChanged;wP.prototype.onVerticalOffsetOrPositionTargetChanged=wP.prototype.onVerticalOffsetOrPositionTargetChanged;_.Y([_.t(_.aR),_.V("design:type",Object)],wP.prototype,"ironOverlayBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",_.oq)],wP.prototype,"emojiManager",void 0);
_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"emojiVariants",void 0);_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"focusedIndex",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wP.prototype,"positionTarget",null);_.Y([_.x({reflectToAttribute:!0}),_.S("verticalOffset","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wP.prototype,"isPositioned",null);_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"verticalOffset",void 0);
_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"verticalAlign",void 0);_.Y([_.x(),_.V("design:type",Object)],wP.prototype,"dynamicAlign",void 0);_.Y([_.Nm("verticalOffset","positionTarget"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wP.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.Y([_.Nm("emojiVariants"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wP.prototype,"onEmojiVariantsChanged",null);
_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],wP.prototype,"onKeyDown",null);_.Y([_.f3("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],wP.prototype,"onYtEmojiSelect",null);_.Y([_.DM()],wP);var UpM=[wP.prototype];var LYM;var j$l;var dpk=/medium-light|medium-dark|light|medium|dark/,Chl=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,JDF=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),D7=function(){var h=_.D.apply(this,arguments)||this;h.userSelection={left:null,right:null};h.scrollAction="lock";h.isEmojiDraftInProgress=!1;return h};
_.f(D7,_.D);_.p=D7.prototype;_.p.onClick=function(h){h=_.zw(h);h instanceof HTMLImageElement&&this.selectOrUpdateEmoji(h)};
_.p.selectOrUpdateEmoji=function(h){var E=h.getAttribute("selection");E&&(E==="default"?_.Ra(this.hostElement,"yt-emoji-select",_.Iq(this.emojiManager,h.id)):E==="left"?this.userSelection=Object.assign({},this.userSelection,{left:h.src}):E==="right"?this.userSelection=Object.assign({},this.userSelection,{right:h.src}):E==="user"&&this.userSelection.left&&this.userSelection.right&&_.Ra(this.hostElement,"yt-emoji-select",_.Iq(this.emojiManager,h.id)))};
_.p.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.p.onMultiSelectorThumbnailRowChanged=function(){var h,E,g;((h=this.data)==null?0:(E=h.emoji)==null?0:(g=E.multiSelectorThumbnailRow)==null?0:g.length)&&this.openSelector()};
_.p.getThumbnailFromEmojiRow=function(h){var E,g;return(h==null?void 0:(E=h.thumbnails)==null?void 0:(g=E[0])==null?void 0:g.url)||""};
_.p.getEmojiAltTextForPartialSelector=function(h){var E;return((E=this.getThumbnailFromEmojiRow(h).match(Chl))==null?void 0:E[0])||""};
_.p.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.p.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.p.getRowSelection=function(h){return["left","right"][h]};
_.p.getIdFromComposedEmoji=function(h){return(h==null?void 0:h.emojiId)||""};
_.p.getEmojiFromPartialSelections=function(h,E){if(!h&&!E)return null;var g,Z,M=(g=this.data)==null?void 0:(Z=g.emoji)==null?void 0:Z.variantIds;if(!M||!M.length)return null;var W;h=(W=h.match(dpk))==null?void 0:W[0];var z;E=(z=E.match(dpk))==null?void 0:z[0];if(!h||!E)return null;var c=JDF.get(h);z=JDF.get(E);if(c===z){z=Array.from(JDF.values()).filter(function(B){return B!==c}).join("|");
var I=new RegExp("^((?!("+z+")).)*"+c+"$")}else I=new RegExp(c+".*"+z);return(M=M.find(function(B){return I.test(B)}))&&_.Iq(this.emojiManager,M)||null};
_.p.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var h,E=this.ytEmojiSelectorBehavior.emojiUrl(((h=this.data.emoji)==null?void 0:h.emojiId)||"");_.UB(this.hostElement).querySelector('[selection="user"]').src.includes(E)||(this.isEmojiDraftInProgress=!0)}};
_.p.onDomChange=function(){BbC(this.ytEmojiSelectorBehavior)};
_.p.getFocusableElements=function(){return _.UB(this.hostElement).querySelectorAll("img").filter(function(h){return h.getAttribute("role")==="option"})};
_.p.changeFocus=function(h){var E=this.getFocusableElements();E!=null&&E.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+h+E.length)%E.length,this.ytEmojiSelectorBehavior.focusedIndex<E.length&&(h=E[this.ytEmojiSelectorBehavior.focusedIndex])&&h.focus())};
_.p.onKeyboardEnter=function(){var h=this.getFocusableElements();h!=null&&h.length&&(h=h[this.ytEmojiSelectorBehavior.focusedIndex])&&h instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(h),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ze.Object.defineProperties(D7.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g,Z;return this.emojiManager&&((E=this.data)==null?0:(g=E.emoji)==null?0:(Z=g.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.Iq(h.emojiManager,M)}).filter(function(M){return!!M}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var h,E=(h=this.userSelection)==null?void 0:h.left,g;h=(g=this.userSelection)==null?void 0:g.right;return E&&h?this.getEmojiFromPartialSelections(E,h):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.composedEmojiSelection)==null?0:h.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var E;h=(E=this.userSelection)==null?void 0:E.left;var g;E=(g=this.userSelection)==null?void 0:g.right;if(!h&&!E){var Z;return this.ytEmojiSelectorBehavior.emojiUrl(((Z=this.data.emoji)==null?void 0:Z.emojiId)||"")}return h&&!E?h:!h&&E?E:""}}});
D7.prototype.onMultiSelectorThumbnailRowChanged=D7.prototype.onMultiSelectorThumbnailRowChanged;D7.prototype.onClick=D7.prototype.onClick;_.Y([_.t(_.aR),_.V("design:type",Object)],D7.prototype,"ironOverlayBehavior",void 0);_.Y([_.t(UpM),_.V("design:type",Object)],D7.prototype,"ytEmojiSelectorBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],D7.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",_.oq)],D7.prototype,"emojiManager",void 0);
_.Y([_.x(),_.V("design:type",Object)],D7.prototype,"userSelection",void 0);_.Y([_.x(),_.V("design:type",Object)],D7.prototype,"scrollAction",void 0);_.Y([_.x(),_.V("design:type",Object)],D7.prototype,"isEmojiDraftInProgress",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],D7.prototype,"emojiVariants",null);_.Y([_.S("data","userSelection"),_.V("design:type",Object),_.V("design:paramtypes",[])],D7.prototype,"composedEmojiSelection",null);
_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],D7.prototype,"onClick",null);_.Y([_.Nm("data.emoji.multiSelectorThumbnailRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D7.prototype,"onMultiSelectorThumbnailRowChanged",null);_.Y([_.S("data","userSelection","composedEmojiSelection"),_.V("design:type",String),_.V("design:paramtypes",[])],D7.prototype,"draftEmojiUrl",null);
_.Y([_.yc({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],D7);
_.X(D7,"yt-emoji-multi-person-selector",function(){if(j$l===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;LYM===void 0&&(LYM=document.createElement("template"));var Z=LYM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);j$l=h}h=j$l;return h},{mode:2});var eGl;var qFA;var le=function(){var h=_.D.apply(this,arguments)||this;h.tooltip_=null;return h};
_.f(le,_.D);_.p=le.prototype;_.p.dataChanged_=function(){var h;if((h=this.data)==null?0:h.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.UB(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.C3)(this.tooltip_).textContent=this.data.tooltip};
_.p.computeTargetId=function(){var h;return((h=this.data)==null?void 0:h.targetId)||""};
_.p.computeId_=function(h){return h};
_.p.computeIcon_=function(h){return _.CL(h)};
_.p.onTap_=function(){this.active=!this.active;_.Ra(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.p.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("active-changed",this.active))};
_.ze.Object.defineProperties(le.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var h,E;if((h=this.data)==null?0:(E=h.icon)==null?0:E.iconType)return this.data.icon.iconType==="SUPER_STICKER";var g,Z;return((g=this.data)==null?void 0:(Z=g.icon)==null?void 0:Z.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
le.prototype.activeChangedForBinding=le.prototype.activeChangedForBinding;le.prototype.dataChanged_=le.prototype.dataChanged_;_.Y([_.t(_.oU.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],le.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],le.prototype,"data",void 0);_.Y([_.x({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.V("design:type",String)],le.prototype,"id",void 0);
_.Y([_.x({computed:"computeTargetId(data.targetId)"}),_.V("design:type",String)],le.prototype,"targetId",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],le.prototype,"active",void 0);_.Y([_.x({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.V("design:type",String)],le.prototype,"icon",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],le.prototype,"dataChanged_",null);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],le.prototype,"iconFilled",null);_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],le.prototype,"activeChangedForBinding",null);_.Y([_.yc({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],le);
_.X(le,"yt-emoji-picker-category-button-renderer",function(){if(qFA===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;eGl===void 0&&(eGl=document.createElement("template"));var Z=eGl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);qFA=h}h=qFA;return h},{mode:2});var f3D;var Nbf;var rP=function(){var h=_.D.apply(this,arguments)||this;h.ariaLabel=null;h.ariaActivedescendant=null;h.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};h.JSC$14179_ignoreNextFocus_=!1;h.longPressTimeoutId=-1;return h};
_.f(rP,_.D);_.p=rP.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var h=_.SQ(),E=0;E<this.emoji.length;E++){var g={veType:88013,elementIndex:E},Z=this.emoji[E];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(g=_.tW(h,g))&&(Z.visualElement=g)}};
_.p.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.p.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.p.emojiSkinToneChanged_=function(h){this.skinTone=h};
_.p.dataChanged=function(){this.data&&this.data.emojiData&&U4l(this.emojiManager,this.data.emojiData)};
_.p.emojiUrl=function(h){h=this.getEmoji(h);if(!h)return"";var E;h=(E=h.image)==null?void 0:E.thumbnails;return _.R9(h,24)||""};
_.p.emojiAlt=function(h){var E=this.get("image.accessibility.accessibilityData.label",h);return E?E:h.isCustomEmoji?h.shortcuts[0]:h.emojiId};
_.p.emojiAriaLabel=function(h){return h.shortcuts?h.shortcuts[0]:""};
_.p.emojiAriaSelected=function(h,E,g){return h&&g==E?"true":"false"};
_.p.getEmoji=function(h){if(this.emojiManager)return this.shouldUseStickyPreferences?jAf(this.emojiManager,h):Rq(this.emojiManager,h)};
_.p.computeId_=function(h){return h.categoryId||""};
_.p.computeEmoji=function(h){var E=this;return this.emojiManager?h.emojiIds?h.emojiIds.map(function(g){return g?_.Iq(E.emojiManager,g):null}).filter(iTO):h.emojiData?h.emojiData.map(function(g){var Z=!!g.emojiId&&_.Iq(E.emojiManager,g.emojiId);
return Z?Object.assign({},Z,g):null}).filter(iTO):[]:[]};
_.p.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.p.computeAriaLabel_=function(h){return _.Wp(h)};
_.p.computeAriaActivedescendant_=function(h,E){return h&&h[E]?h[E].emojiId||"":""};
_.p.handleLongPressEmojiWithVariants=function(h,E){this.changeFocusToEmoji(h.emojiId,!1);this.openVariantSelector(h,E)};
_.p.onMouseDown=function(h){var E=this;this.hostElement!==document.activeElement&&(this.JSC$14179_ignoreNextFocus_=!0);if(h.button===0){var g=_.zw(h);if(g instanceof HTMLImageElement){var Z=_.UB(this.hostElement).querySelector("#repeat").itemForElement(g);this.emojiContainsVariants(Z)&&(this.longPressTimeoutId=setTimeout(function(){E.handleLongPressEmojiWithVariants(Z,g)},500))}}};
_.p.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.p.onFocus=function(){this.JSC$14179_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14179_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.emojiContainsVariants=function(h){return!!(h&&h.variantIds&&h.variantIds.length)};
_.p.onClick=function(h){clearTimeout(this.longPressTimeoutId);h=_.zw(h);if(h instanceof HTMLImageElement){var E=h.id;this.changeFocusToEmoji(E,!1);var g=this.getEmoji(E),Z;if(Z=this.shouldUseStickyPreferences&&this.emojiContainsVariants(g)){var M;Z=!((M=this.emojiManager.emojiMap[E])!=null&&M.stickyPrefId)}Z?(M=_.UB(this.hostElement).querySelector("#repeat").itemForElement(h),this.openVariantSelector(M,h)):_.Ra(this.hostElement,"yt-emoji-select",g)}};
_.p.isActiveEmojiWithVariants=function(h,E){return h&&E?E.stickyPrefId?h===E.stickyPrefId:h===E.emojiId:!1};
_.p.onCloseEmojiVariantSelector=function(h){this.activeEmojiWithVariantsId===h&&(this.activeEmojiWithVariantsId="")};
_.p.onMouseOver_=function(h){h=_.zw(h);h instanceof HTMLImageElement&&_.Ra(this.hostElement,"yt-emoji-hover",_.Iq(this.emojiManager,h.id))};
_.p.changeFocus_=function(h,E){this.focusedIndex=(this.focusedIndex+h+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(h=this.emoji[this.focusedIndex],E&&(this.showFocus=!0,_.UB(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Ra(this.hostElement,"yt-emoji-hover",h)))};
_.p.changeFocusToEmoji=function(h,E){if(h){var g=this.emoji.findIndex(function(Z){return Z.emojiId===h});
g!==-1&&this.changeFocus_(g-this.focusedIndex,E)}};
_.p.onKeyDown_=function(h){switch(h.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var E=this.emoji[this.focusedIndex];if(E&&E.emojiId){if(this.emojiContainsVariants(E)){var g=_.UB(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(E,g)}else _.Ra(this.hostElement,"yt-emoji-select",Rq(this.emojiManager,E.emojiId)),this.hostElement.focus();h.preventDefault()}}break;case 40:this.changeFocus_(1,!0);h.preventDefault();break;case 38:this.changeFocus_(-1,!0),
h.preventDefault()}};
_.p.onEmojiStickyPreferenceChanged=function(h,E){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&h.emojiId&&h.variantIds&&h.variantIds.includes(E)&&this.activeEmojiWithVariantsId!==E&&this.setStickyEmojiPreference(h.emojiId,E)};
_.p.openVariantSelector=function(h,E){this.activeEmojiWithVariantsId=h.stickyPrefId||h.emojiId||"";_.Ra(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:h,target:E})};
_.p.setStickyEmojiPreference=function(h,E){if(this.data){var g=this.emoji.findIndex(function(M){return M.emojiId===h});
if(g!==-1){var Z=this.emoji[g];Z.stickyPrefId=E;this.set("emoji."+g,Object.assign({},Z));this.activeEmojiWithVariantsId=E}}};
rP.prototype.onKeyDown_=rP.prototype.onKeyDown_;rP.prototype.onMouseOver_=rP.prototype.onMouseOver_;rP.prototype.onClick=rP.prototype.onClick;rP.prototype.onBlur_=rP.prototype.onBlur_;rP.prototype.onFocus=rP.prototype.onFocus;rP.prototype.onMouseUp=rP.prototype.onMouseUp;rP.prototype.onMouseDown=rP.prototype.onMouseDown;rP.prototype.dataChanged=rP.prototype.dataChanged;rP.prototype.disableIncrementalLoadingChanged_=rP.prototype.disableIncrementalLoadingChanged_;rP.prototype.emojiManagerChanged_=rP.prototype.emojiManagerChanged_;
rP.prototype.emojiChanged_=rP.prototype.emojiChanged_;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],rP.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rP.prototype,"data",void 0);_.Y([_.x({computed:"computeId_(data)"}),_.V("design:type",String)],rP.prototype,"id",void 0);_.Y([_.x({computed:"computeEmoji(data)"}),_.V("design:type",Array)],rP.prototype,"emoji",void 0);_.Y([_.x(),_.V("design:type",Number)],rP.prototype,"skinTone",void 0);
_.Y([_.x(),_.V("design:type",_.oq)],rP.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Boolean)],rP.prototype,"disableIncrementalLoading",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],rP.prototype,"focusedIndex",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],rP.prototype,"showFocus",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.V("design:type",Object)],rP.prototype,"ariaLabel",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.V("design:type",Object)],rP.prototype,"ariaActivedescendant",void 0);_.Y([_.x({value:60}),_.V("design:type",Number)],rP.prototype,"domRepeatTargetFramerate",void 0);_.Y([_.x({value:1}),_.V("design:type",Number)],rP.prototype,"domRepeatInitialCount",void 0);_.Y([_.x({value:""}),_.V("design:type",String)],rP.prototype,"activeEmojiWithVariantsId",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],rP.prototype,"shouldUseStickyPreferences",void 0);_.Y([_.Nm("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"emojiChanged_",null);_.Y([_.Nm("emojiManager"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"emojiManagerChanged_",null);
_.Y([_.Nm("disableIncrementalLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"disableIncrementalLoadingChanged_",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"dataChanged",null);_.Y([_.f3("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],rP.prototype,"onMouseDown",null);
_.Y([_.f3("mouseup"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"onMouseUp",null);_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"onFocus",null);_.Y([_.f3("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rP.prototype,"onBlur_",null);
_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],rP.prototype,"onClick",null);_.Y([_.f3("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],rP.prototype,"onMouseOver_",null);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],rP.prototype,"onKeyDown_",null);
_.Y([_.yc({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],rP);
_.X(rP,"yt-emoji-picker-category-renderer",function(){if(Nbf===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;f3D===void 0&&(f3D=document.createElement("template"));var Z=f3D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Nbf=h}h=Nbf;return h},{mode:2});var tWD;var SFl;var xpD;var wVM;var ml=function(){var h=_.D.apply(this,arguments)||this;h.ariaLabel=null;h.ariaActivedescendant=null;h.getFormattedStringRawText=_.Wp;h.JSC$14185_ignoreNextFocus_=!1;return h};
_.f(ml,_.D);_.p=ml.prototype;_.p.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.emojiUrl=function(h){var E,g;h=(E=Rq(this.emojiManager,h,!0))==null?void 0:(g=E.image)==null?void 0:g.thumbnails;return _.R9(h,24)||""};
_.p.emojiAlt=function(h){var E=this.get("image.accessibility.accessibilityData.label",h);return E?E:h.isCustomEmoji?h.shortcuts[0]:h.emojiId};
_.p.emojiId=function(h){return"emoji"+h};
_.p.computeId_=function(h){return h.categoryId||""};
_.p.computeAriaActivedescendant_=function(h){return this.emoji&&h<this.emoji.length?this.emojiId(h):""};
_.p.emojiChanged_=function(){this.changeFocus_(0,!1);for(var h=_.SQ(),E=0;E<this.emoji.length;E++){var g={veType:88013,elementIndex:E},Z=this.emoji[E];Z.isCustomEmoji&&(Z=document.querySelector(("#"+Z.emojiId).replace("/","\\/")))&&(g=_.tW(h,g))&&(Z.visualElement=g)}};
_.p.computeEmoji_=function(h){var E=this;return this.emojiManager?h.emojiIds.map(function(g){return _.Iq(E.emojiManager,g,!0)}).filter(oOO):[]};
_.p.titleOffsetChanged_=function(){var h=this.hostElement.getBoundingClientRect(),E=_.UB(this.hostElement).querySelector("#title").getBoundingClientRect();h=Math.max(0,Math.min(this.titleOffset,h.height-E.height));_.UB(this.hostElement).querySelector("#title").style.top=h+"px"};
_.p.onEmojiMouseOver_=function(h){_.Ra(this.hostElement,"yt-emoji-hover",h.model.item)};
_.p.onEmojiTap_=function(h){this.data.command&&(h=F_q(_.GF().resolve(_.pl(kW)),this.data.command,h),_.Ra(this.hostElement,"yt-navigate",h))};
_.p.emojiAriaLabel=function(h){return h.shortcuts[0]};
_.p.emojiAriaSelected=function(h,E,g){return h&&g==E?"true":"false"};
_.p.changeFocus_=function(h,E){var g=this.emoji.length;this.focusedIndex=(this.focusedIndex+h+g)%g;h=this.emoji[this.focusedIndex];if(E){var Z;(Z=_.UB(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||Z.scrollIntoView(!1);_.Ra(this.hostElement,"yt-emoji-hover",h)}};
_.p.onMouseDown_=function(){this.JSC$14185_ignoreNextFocus_=!0};
_.p.onFocus_=function(){this.JSC$14185_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14185_ignoreNextFocus_=!1};
_.p.onBlur_=function(){this.showFocus=!1};
_.p.onKeyDown_=function(h){switch(h.keyCode){case 13:this.onEmojiTap_(h);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);h.preventDefault();break;case 38:this.changeFocus_(-1,!0),h.preventDefault()}};
ml.prototype.onKeyDown_=ml.prototype.onKeyDown_;ml.prototype.onBlur_=ml.prototype.onBlur_;ml.prototype.onFocus_=ml.prototype.onFocus_;ml.prototype.onMouseDown_=ml.prototype.onMouseDown_;ml.prototype.onEmojiTap_=ml.prototype.onEmojiTap_;ml.prototype.titleOffsetChanged_=ml.prototype.titleOffsetChanged_;ml.prototype.emojiChanged_=ml.prototype.emojiChanged_;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ml.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],ml.prototype,"data",void 0);_.Y([_.x({computed:"computeId_(data)"}),_.V("design:type",String)],ml.prototype,"id",void 0);_.Y([_.x({computed:"computeEmoji_(data)"}),_.V("design:type",Array)],ml.prototype,"emoji",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],ml.prototype,"titleOffset",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.V("design:type",Object)],ml.prototype,"ariaLabel",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.V("design:type",Object)],ml.prototype,"ariaActivedescendant",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],ml.prototype,"showFocus",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],ml.prototype,"focusedIndex",void 0);_.Y([_.x(),_.V("design:type",_.oq)],ml.prototype,"emojiManager",void 0);
_.Y([_.Nm("emoji"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ml.prototype,"emojiChanged_",null);_.Y([_.Nm("titleOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ml.prototype,"titleOffsetChanged_",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ml.prototype,"onEmojiTap_",null);
_.Y([_.f3("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ml.prototype,"onMouseDown_",null);_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ml.prototype,"onFocus_",null);_.Y([_.f3("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ml.prototype,"onBlur_",null);
_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ml.prototype,"onKeyDown_",null);_.Y([_.yc({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],ml);
_.X(ml,"yt-emoji-picker-upsell-category-renderer",function(){if(wVM===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;xpD===void 0&&(xpD=document.createElement("template"));var Z=xpD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);wVM=h}h=wVM;return h},{mode:2});var Dpf;var l3M;var vB=function(){var h=_.D.apply(this,arguments)||this;h.scrollAction="lock";h.verticalAlign="top";return h};
_.f(vB,_.D);_.p=vB.prototype;_.p.onClick=function(h){h=_.zw(h);h instanceof HTMLImageElement&&_.Ra(this.hostElement,"yt-emoji-select",_.Iq(this.emojiManager,h.id))};
_.p.openSelector=function(){this.ironOverlayBehavior.open()};
_.p.onDomChange=function(){BbC(this.ytEmojiSelectorBehavior)};
_.p.computeIsFamilySelector=function(h){var E;return(h==null?void 0:(E=h.emoji)==null?void 0:E.emojiId)==="\ud83d\udc6a"};
_.p.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var h=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];h&&h.emojiId&&(_.Ra(this.hostElement,"yt-emoji-select",_.Iq(this.emojiManager,h.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ze.Object.defineProperties(vB.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g,Z;return this.emojiManager&&((E=this.data)==null?0:(g=E.emoji)==null?0:(Z=g.variantIds)==null?0:Z.length)?this.data.emoji.variantIds.map(function(M){return!!M&&_.Iq(h.emojiManager,M)}).filter(function(M){return!!M}):[]}}});
vB.prototype.onClick=vB.prototype.onClick;_.Y([_.t(_.aR),_.V("design:type",Object)],vB.prototype,"ironOverlayBehavior",void 0);_.Y([_.t(UpM),_.V("design:type",Object)],vB.prototype,"ytEmojiSelectorBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",_.oq)],vB.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Object)],vB.prototype,"scrollAction",void 0);_.Y([_.x(),_.V("design:type",Object)],vB.prototype,"verticalAlign",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.V("design:type",Boolean)],vB.prototype,"isFamilySelector",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vB.prototype,"emojiVariants",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],vB.prototype,"onClick",null);_.Y([_.yc({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],vB);
_.X(vB,"yt-emoji-variant-selector",function(){if(l3M===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Dpf===void 0&&(Dpf=document.createElement("template"));var Z=Dpf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);l3M=h}h=l3M;return h},{mode:2});var rDM=/:/g,mpk=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],HB=function(){var h=_.D.apply(this,arguments)||this;h.emojiVariantSelector=null;h.emojiMultiPersonSelector=null;h.identity=_.va;h.lastAnimationTime_=0;h.animationStart_=null;h.animationEnd_=null;return h};
_.f(HB,_.D);_.p=HB.prototype;
_.p.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.p.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.PB)};
_.p.attached=function(){_.IV&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&L_A(this.emojiManager)};
_.p.dataChanged=function(){var h;if((h=this.data)==null?0:h.categories){h=this.emojiManager;var E=this.getCustomEmojiIds();h.pickerCustomEmojiIds=[].concat(_.$E(off),_.$E(E))}};
_.p.getCustomEmojiIds=function(){var h,E=(h=this.data.categories)==null?void 0:h.find(function(W){var z;return((z=W.emojiPickerCategoryRenderer)==null?void 0:z.categoryId)&&mpk.includes(W.emojiPickerCategoryRenderer.categoryId)}),g;
h=(g=this.data.categories)==null?void 0:g.find(function(W){return W.emojiPickerUpsellCategoryRenderer});
var Z,M;return[E==null?void 0:(Z=E.emojiPickerCategoryRenderer)==null?void 0:Z.emojiIds,h==null?void 0:(M=h.emojiPickerUpsellCategoryRenderer)==null?void 0:M.emojiIds].flat().filter(function(W){return!!W})};
_.p.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.p.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.p.updateCategoriesAndPlaceholderInternal=function(h,E){var g=this;h&&E&&(this.categories=h.categories||[],this.categoryButtons=h.categoryButtons||[],this.resetPlaceholder(),this.search="",_.hW(function(){g.updateButtons_()}))};
_.p.computeId_=function(h){return h.id||""};
_.p.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(h){return h.emojiPickerCategoryRenderer&&h.emojiPickerCategoryRenderer.emojiData}):!1};
_.p.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.p.onShowEmojiVariantSelector=function(h){var E=h.detail.emojiData;E.variantIds&&E.variantIds.length&&(E.multiSelectorThumbnailRow&&E.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:E,target:h.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:E,target:h.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onIronOverlayClosed=function(h){var E=jAf(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");E&&h.composedPath&&(h.composedPath().includes(_.UB(this.hostElement).querySelector("#emoji-variant-selector"))||h.composedPath().includes(_.UB(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.BX(this.hostElement,"yt-close-emoji-variant-selector",[E.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.p.onEmojiVariantSelectorMouseup=function(h){var E=h.target.firstChild;this.variantSelectorOpened&&E&&_.hW(function(){E.noCancelOnOutsideClick=!1},100)};
_.p.onEmojiVariantSelectorMousedown=function(h){h=h.target.firstChild;this.variantSelectorOpened&&h&&(h.noCancelOnOutsideClick=!1)};
_.p.onSelectCategory_=function(h){var E=this.search!="";this.search="";for(var g=_.UB(this.hostElement).querySelector("#categories").children,Z=0;Z<g.length;Z++){var M=g[Z];if(M.id==h.detail.categoryId){E?(_.UB(this.hostElement).querySelector("#categories").scrollTop=M.offsetTop,this.updateButtons_()):(this.animationStart_=_.UB(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=M.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.p.onEmojiHover_=function(h){this.placeholder=h.detail.shortcuts?h.detail.shortcuts[0]:""};
_.p.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.p.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.p.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.p.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.p.computeSearchCategory_=function(h){h=h.replace(rDM,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();h=h.split(" ");for(var E=[],g=this.emojiManager.emojis,Z=0;Z<g.length;Z++){var M=g[Z];if(M.searchTerms)for(var W=0;W<M.searchTerms.length;W++){for(var z=M.searchTerms[W].toLocaleLowerCase(),c=!1,I=0;I<h.length;I++)if(z.indexOf(h[I])!=-1){c=!0;break}if(c&&(!M.isCustomEmoji||!M.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(M.emojiId))){E.push(M.emojiId);
break}}}return{categoryId:-1,emojiIds:E}};
_.p.computeSearchEmptyMessage_=function(h,E){return h&&E&&E.emojiIds&&E.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.p.computeSearching_=function(h){return this.emojiManager&&h.replace(rDM,"").length>1};
_.p.computeSkinToneHidden=function(){var h;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((h=this.data)==null||!h.hideSkinTonePicker)};
_.p.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.p.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.p.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.p.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.p.selectSkinTone_=function(h){h=Number(h.target.getAttribute("tone"));this.set("emojiManager.skinTone",h);_.BX(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[h]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.p.skinToneChanged_=function(){_.UB(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var h=_.UB(this.hostElement).querySelector("#dropdown-content").children,E=0;E<h.length;E++)E===this.skinTone?h[E].setAttribute("selected",""):h[E].removeAttribute("selected")};
_.p.animateScroll_=function(h){this.lastAnimationTime_||(this.lastAnimationTime_=h);h-=this.lastAnimationTime_;h<200?(_.UB(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*h/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.UB(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.p.searchChanged_=function(){this.updateButtons_()};
_.p.updateButtons_=function(){var h=null;if(!this.search)for(var E=_.UB(this.hostElement).querySelector("#categories").scrollTop,g=_.UB(this.hostElement).querySelector("#categories").children,Z=0;Z<g.length;Z++){var M=g[Z];M.offsetTop<=E&&(h=M.id)}E=_.UB(this.hostElement).querySelector("#category-buttons").children;for(g=0;g<E.length;g++)Z=E[g],Z.active=Z.id===h};
HB.prototype.searchChanged_=HB.prototype.searchChanged_;HB.prototype.skinToneChanged_=HB.prototype.skinToneChanged_;HB.prototype.onEmojiHover_=HB.prototype.onEmojiHover_;HB.prototype.onSelectCategory_=HB.prototype.onSelectCategory_;HB.prototype.onShowEmojiVariantSelector=HB.prototype.onShowEmojiVariantSelector;HB.prototype.updateCategoriesAndPlaceholder_=HB.prototype.updateCategoriesAndPlaceholder_;HB.prototype.dataChanged=HB.prototype.dataChanged;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],HB.prototype,"data",void 0);_.Y([_.x({value:function(){return[]}}),
_.V("design:type",Array)],HB.prototype,"categories",void 0);_.Y([_.x({value:function(){return[]}}),
_.V("design:type",Array)],HB.prototype,"categoryButtons",void 0);_.Y([_.x({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HB.prototype,"disableScroll",void 0);_.Y([_.x({computed:"computeId_(data)",reflectToAttribute:!0}),_.V("design:type",String)],HB.prototype,"id",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],HB.prototype,"selected",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],HB.prototype,"disableIncrementalLoading",void 0);_.Y([_.x(),_.V("design:type",String)],HB.prototype,"placeholder",void 0);_.Y([_.x({value:""}),_.V("design:type",String)],HB.prototype,"search",void 0);_.Y([_.x({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.V("design:type",Boolean)],HB.prototype,"searching",void 0);_.Y([_.x({computed:"computeSearchCategory_(search)"}),_.V("design:type",Object)],HB.prototype,"searchCategory",void 0);
_.Y([_.x({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.V("design:type",Object)],HB.prototype,"searchEmptyMessage",void 0);_.Y([_.x({computed:"identity(emojiManager.skinTone)"}),_.V("design:type",Number)],HB.prototype,"skinTone",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],HB.prototype,"skinToneOpened",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],HB.prototype,"variantSelectorOpened",void 0);
_.Y([_.x({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.V("design:type",Boolean)],HB.prototype,"skinToneHidden",void 0);_.Y([_.x(),_.V("design:type",_.oq)],HB.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Object)],HB.prototype,"emojiVariantSelector",void 0);_.Y([_.x(),_.V("design:type",Object)],HB.prototype,"emojiMultiPersonSelector",void 0);
_.Y([_.x({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.V("design:type",Boolean)],HB.prototype,"shouldUseStickyPreferences",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"dataChanged",null);_.Y([_.Nm("data","selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"updateCategoriesAndPlaceholder_",null);
_.Y([_.f3("yt-show-emoji-variant-selector"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],HB.prototype,"onShowEmojiVariantSelector",null);_.Y([_.f3("yt-emoji-picker-select-category"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],HB.prototype,"onSelectCategory_",null);_.Y([_.f3("yt-emoji-hover"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],HB.prototype,"onEmojiHover_",null);
_.Y([_.Nm("skinTone"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"skinToneChanged_",null);_.Y([_.Nm("search"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HB.prototype,"searchChanged_",null);_.Y([_.yc({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],HB);
_.X(HB,"yt-emoji-picker-renderer",function(){if(SFl===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;tWD===void 0&&(tWD=document.createElement("template"));var Z=tWD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);SFl=h}h=SFl;return h},{mode:2});var $K=function(){var h=_.D.apply(this,arguments)||this;h.emojiManager=_.PB;h.isDarkTheme=document.documentElement.hasAttribute("dark");h.selectedIndex=1;h.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return h};
_.f($K,_.D);_.p=$K.prototype;_.p.handleEmojiCustomizationVisible=function(h){this.emojiPickerRenderer.selected=h;this.selectedIndex=1;h?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.p.emojiCustomizationSetChanged=function(){var h;(h=this.data)!=null&&h.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Tu(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.p.updateSaveButtonState=function(h){var E;(E=this.data)!=null&&E.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.xx("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:h}))};
_.p.emojiUrl=function(h){h=_.Iq(this.emojiManager,h);if(!h)return"";var E;h=(E=h.image)==null?void 0:E.thumbnails;return _.R9(h,24)||""};
_.p.emojiAlt=function(h){var E=_.Iq(this.emojiManager,h);if(!E)return h;var g,Z,M,W=(E==null?void 0:(g=E.image)==null?void 0:(Z=g.accessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label)||"";return W?W:E.isCustomEmoji?E.shortcuts[0]:E.emojiId||h};
_.p.emojiAriaLabel=function(h){var E,g;return((E=_.Iq(this.emojiManager,h))==null?void 0:(g=E.shortcuts)==null?void 0:g[0])||h};
_.p.onEmojiClick=function(h){h.model.index!==0&&(this.selectedIndex=h.model.index)};
_.p.onEmojiSelect=function(h){h=h.detail;var E,g;((E=this.data)==null?0:E.emojiCustomizationSetEntityKey)&&((g=this.emojiCustomizationSet)==null?0:g.emojiId)&&h.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,h.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.xx("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,h.emojiId,this.selectedIndex)}))};
_.p.canEditEmoji=function(h,E,g){h=h.indexOf(E);return h===g||h===0||g===0?!1:!0};
_.p.getUpdatedEmojiIdList=function(h,E,g){var Z=h.indexOf(E);h=[].concat(_.$E(h));Z>=0&&(h[Z]=h[g]);h[g]=E;return h};
_.ze.Object.defineProperties($K,{template:{configurable:!0,enumerable:!0,get:function(){if(hGD===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;QAF===void 0&&(QAF=document.createElement("template"));var Z=QAF;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);hGD=h}h=hGD;return h}}});
$K.prototype.onEmojiSelect=$K.prototype.onEmojiSelect;_.Y([_.t(_.ik),_.V("design:type",Object)],$K.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$K.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.Sg("yt-emoji-picker-renderer"),_.V("design:type",Object)],$K.prototype,"emojiPickerRenderer",void 0);
_.Y([_.x({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(h,E){return _.Jj(h.entities,"emojiCustomizationSetEntity",E)},
observer:"emojiCustomizationSetChanged"}),_.V("design:type",Object)],$K.prototype,"emojiCustomizationSet",void 0);_.Y([_.x(),_.V("design:type",Object)],$K.prototype,"originalEmojiSet",void 0);_.Y([_.x(),_.V("design:type",_.oq)],$K.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Object)],$K.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$K.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],$K.prototype,"selectedIndex",void 0);
_.Y([_.f3("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$K.prototype,"onEmojiSelect",null);_.Y([_.yc({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],$K);var vIf;var H_F;var $pl;var KYl;var KJ=function(){var h=_.D.apply(this,arguments)||this;h.authorBadges=[];return h};
_.f(KJ,_.D);_.p=KJ.prototype;_.p.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.p.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.p.dataChanged=function(){var h=OYx(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",h)};
_.p.updateMessage=function(){var h=this.data.message,E=_.UB(_.UB(this.hostElement).querySelector("#message"));E.textContent="";h&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(h))};
_.p.shouldSupportWholeItemClick=function(){return!0};
_.p.onShowOriginalClick=function(h){h.preventDefault();this.showOriginal=!0};
_.p.computeShowBar=function(h,E,g){return h&&E||g};
_.p.computeAuthorBadges=function(h){return h.authorBadges||[]};
_.p.computeAuthorIsOwner=function(h){return!!nC4(h.authorBadges,"owner")};
_.p.computeAuthorNameColor=function(h){var E;if(_.J("live_chat_author_name_color_usernames")&&(h==null?0:(E=h.authorName)==null?0:E.simpleText))return _.y3$(_.F0V(h.authorName.simpleText));if(_.J("live_chat_seed_color_usernames")&&(h==null?0:h.authorSeedColorArgb))return _.y3$(_.jQ(h.authorSeedColorArgb));if(_.J("live_chat_colored_usernames"))return"#cc0000";var g;return _.J("live_chat_simple_color_usernames")&&(h==null?0:(g=h.authorName)==null?0:g.simpleText)&&(h==null?0:h.authorUsernameColorLight)&&
(h==null?0:h.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.jQ(h.authorUsernameColorDark):_.jQ(h.authorUsernameColorLight):""};
KJ.prototype.updateMessage=KJ.prototype.updateMessage;KJ.prototype.dataChanged=KJ.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],KJ.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],KJ.prototype,"data",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"showOriginal",void 0);_.Y([_.x({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"isDimmed",void 0);_.Y([_.x({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"showBar",void 0);
_.Y([_.x({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],KJ.prototype,"authorBadges",void 0);_.Y([_.x({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"authorIsOwner",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"inCollapsedBanner",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"inBanner",void 0);
_.Y([_.x({value:_.J("live_chat_hide_avatars"),reflectToAttribute:!0}),_.V("design:type",Boolean)],KJ.prototype,"avatarHidden",void 0);_.Y([_.x({computed:"computeAuthorNameColor(data)"}),_.V("design:type",String)],KJ.prototype,"authorNameColor",void 0);_.Y([_.x(),_.V("design:type",_.dP)],KJ.prototype,"participantsManager",void 0);_.Y([_.x({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.V("design:type",Object)],KJ.prototype,"filledButtonOverrides",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KJ.prototype,"dataChanged",null);_.Y([_.Nm("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KJ.prototype,"updateMessage",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],KJ);
_.X(KJ,"yt-live-chat-text-message-renderer",function(){if(KYl===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;$pl===void 0&&($pl=document.createElement("template"));var Z=$pl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);KYl=h}h=KYl;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var OE=function(){var h=_.D.apply(this,arguments)||this;h.tonalButtonOverrides={type:"tonal",style:"overlay"};return h};
_.f(OE,_.D);
OE.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]]"}}}}}};
OE.prototype.shouldSupportInlineActionButtons=function(){return!0};
OE.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ze.Object.defineProperties(OE.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],OE.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OE.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",_.dP)],OE.prototype,"participantsManager",void 0);
_.Y([_.x(),_.V("design:type",Object)],OE.prototype,"tonalButtonOverrides",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.infoDialogButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],OE.prototype,"hasInfoDialogButton",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],OE);
_.X(OE,"yt-live-chat-auto-mod-message-renderer",function(){if(H_F===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;vIf===void 0&&(vIf=document.createElement("template"));var Z=vIf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);H_F=h}h=H_F;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var O_B;var nIF;var XVl;var YFF=function(){return _.D.apply(this,arguments)||this};
_.f(YFF,_.D);_.Y([_.x(),_.V("design:type",Object)],YFF.prototype,"data",void 0);_.Y([_.K({is:"ytd-factoid-renderer",disableElementRegistration:!0})],YFF);
_.X(YFF,"ytd-factoid-renderer",function(){if(XVl!==void 0)return XVl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XVl=h},{mode:1});var nJ=function(){return _.D.apply(this,arguments)||this};
_.f(nJ,_.D);nJ.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.Y([_.x(),_.V("design:type",Object)],nJ.prototype,"data",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],nJ);
_.X(nJ,"yt-live-chat-channel-activity-reputation-renderer",function(){if(nIF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;O_B===void 0&&(O_B=document.createElement("template"));var Z=O_B;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);nIF=h}h=nIF;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var s$M;var VWl;var Xg=function(){return _.D.apply(this,arguments)||this};
_.f(Xg,_.D);Xg.prototype.ready=function(){var h=document.querySelector("yt-live-chat-app");h&&h.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Xg.prototype,"menuFocused",void 0);_.Y([_.x(),_.V("design:type",Object)],Xg.prototype,"data",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],Xg.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Xg);
_.X(Xg,"yt-live-chat-donation-announcement-renderer",function(){if(VWl===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;s$M===void 0&&(s$M=document.createElement("template"));var Z=s$M;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);VWl=h}h=VWl;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var k_n;var yDD,FYm=function(){if(yDD!==void 0)return yDD;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;k_n===void 0&&(k_n=document.createElement("template"));var Z=k_n;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return yDD=h};var YK=function(){return _.D.apply(this,arguments)||this};
_.f(YK,_.D);_.ze.Object.defineProperties(YK,{template:{configurable:!0,enumerable:!0,get:function(){return FYm()}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],YK.prototype,"data",void 0);_.Y([_.yc({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],YK);_.X(YK,"yt-live-chat-empty-feed-view-model",function(){return FYm()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var ADm;var TbA;var sE=function(){return _.D.apply(this,arguments)||this};
_.f(sE,_.D);sE.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"}}}}}};
_.ze.Object.defineProperties(sE.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var h,E;return{runs:[{text:(h=this.data)==null?void 0:(E=h.channelName)==null?void 0:E.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var h=[],E;if((E=this.data)==null||!E.channelBadges)return h;var g;E=_.G((g=this.data)==null?void 0:g.channelBadges);for(g=E.next();!g.done;g=E.next()){g=_.e(g.value,viB);var Z=void 0,M=void 0;if((Z=g)==null?0:(M=Z.badgeImage)==null?0:M.sources)Z=void 0,M={liveChatAuthorBadgeRenderer:{tooltip:g.tooltip,accessibility:{accessibilityData:{label:(Z=_.e(g.rendererContext,_.te))==null?void 0:Z.label}}}},g.badgeImage.sources[0].clientResource?M.liveChatAuthorBadgeRenderer.icon=
{iconType:g.badgeImage.sources[0].clientResource.imageName}:M.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:g.badgeImage.sources},h.push(M)}return h}}});
_.Y([_.x(),_.V("design:type",Object)],sE.prototype,"data",void 0);_.Y([_.S("data.channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],sE.prototype,"channelName",null);_.Y([_.S("data.channelBadges"),_.V("design:type",Array),_.V("design:paramtypes",[])],sE.prototype,"channelBadges",null);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],sE);
_.X(sE,"yt-live-chat-identity-view-model",function(){if(TbA===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;ADm===void 0&&(ADm=document.createElement("template"));var Z=ADm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);TbA=h}h=TbA;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var b_m;var urk;var Q$M;var h6l;var VT=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;h.supportsInlineActionButtons=!0;return h};
_.f(VT,_.D);VT.prototype.ready=function(){var h;((h=document.querySelector("yt-live-chat-app"))==null?0:h.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
VT.prototype.dataChanged=function(h){var E=(0,_.C3)(_.UB(this.hostElement).querySelector("#detail-text"));E.textContent="";(h==null?0:h.detailText)&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(h.detailText))};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],VT.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({observer:"dataChanged"}),_.V("design:type",Object)],VT.prototype,"data",void 0);
_.Y([_.x({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],VT.prototype,"hidden",void 0);_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],VT);
_.X(VT,"yt-live-chat-legacy-paid-message-renderer",function(){if(h6l===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Q$M===void 0&&(Q$M=document.createElement("template"));var Z=Q$M;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);h6l=h}h=h6l;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var EOC;var gOm;var ZTF={},kK=function(){return _.wD.apply(this,arguments)||this};
_.f(kK,_.wD);kK.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
kK.prototype.onLiveChatMembershipItemBehaviorClick=kK.prototype.onLiveChatMembershipItemBehaviorClick;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kK.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kK.prototype,"data",void 0);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],kK.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.Y([_.DM()],kK);
ZTF.YtLiveChatMembershipItemBehavior=[kK.prototype,_.T.YtRendererBehavior];var yT=function(){var h=_.D.apply(this,arguments)||this;h.supportsInlineActionButtons=!0;h.hasPrimaryHeaderText=!1;h.showOnlyHeader=!1;h.authorBadges=[];h.modern=_.J("web_button_rework_with_live");h.buttonOverrides={style:"overlay",type:"filled"};return h};
_.f(yT,_.D);_.p=yT.prototype;_.p.shouldSupportInlineActionButtons=function(){return!0};
_.p.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.p.ready=function(){var h=document.querySelector("yt-live-chat-app");h&&h.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.p.messageChanged=function(){var h=this.data.message,E=(0,_.C3)(_.UB(this.hostElement).querySelector("#message"));E.textContent="";h&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(h))};
_.p.computeHasPrimaryHeaderText=function(h){return!(!h||!h.headerPrimaryText)};
_.p.computeShowOnlyHeader=function(h,E){return this.isMessageEmpty(h,E)};
_.p.computeAuthorBadges=function(h){return h.authorBadges||[]};
_.p.isMessageEmpty=function(h,E){return!h||h.empty?!0:!h.message&&!h.inputField&&!E};
_.p.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.p.getInputElement=function(){return _.UB(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.p.inputFocus=function(){var h=this.getInputElement();h&&h.focus()};
_.p.inputInsertEmoji=function(h){var E=this.getInputElement();E&&E.insertEmoji(h)};
_.p.inputMessage=function(){var h=this.getInputElement();return h&&this.data.inputField?(h.completeEmojis(),_.FN(h.liveChatRichMessageInput)):null};
_.p.onFooterButtonClick=function(){this.data.footerButton&&_.Ra(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.p.shouldSupportWholeItemClick=function(){return!0};
yT.prototype.isDeletedChanged=yT.prototype.isDeletedChanged;yT.prototype.messageChanged=yT.prototype.messageChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],yT.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(ZTF.YtLiveChatMembershipItemBehavior),_.V("design:type",Object)],yT.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yT.prototype,"data",void 0);_.Y([_.x({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.V("design:type",Object)],yT.prototype,"hasPrimaryHeaderText",void 0);_.Y([_.x({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.V("design:type",Object)],yT.prototype,"showOnlyHeader",void 0);
_.Y([_.x({computed:"computeAuthorBadges(data)"}),_.V("design:type",Array)],yT.prototype,"authorBadges",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],yT.prototype,"modern",void 0);_.Y([_.Nm("data.message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yT.prototype,"messageChanged",null);_.Y([_.Nm("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yT.prototype,"isDeletedChanged",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],yT);
_.X(yT,"yt-live-chat-membership-item-renderer",function(){if(gOm===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;EOC===void 0&&(EOC=document.createElement("template"));var Z=EOC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);gOm=h}h=gOm;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var MkH;var WNF;var Fg=function(){return _.D.apply(this,arguments)||this};
_.f(Fg,_.D);Fg.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Fg.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Fg);
_.X(Fg,"yt-live-chat-mode-change-message-renderer",function(){if(WNF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;MkH===void 0&&(MkH=document.createElement("template"));var Z=MkH;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);WNF=h}h=WNF;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var p9l;var G2l;var Ag=function(){return _.D.apply(this,arguments)||this};
_.f(Ag,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ag.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],Ag.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ag.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Ag);
_.X(Ag,"yt-live-chat-moderation-message-renderer",function(){if(G2l===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;p9l===void 0&&(p9l=document.createElement("template"));var Z=p9l;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);G2l=h}h=G2l;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var z6D;var aeC;var TA=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework");return h};
_.f(TA,_.D);TA.prototype.onClick=function(){var h;if((h=this.data)!=null&&h.onClickCommand){var E;_.eQ.instance.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TA.prototype,"modern",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],TA.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],TA.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],TA.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],TA);
_.X(TA,"yt-live-chat-offer-click-count-message-renderer",function(){if(aeC===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;z6D===void 0&&(z6D=document.createElement("template"));var Z=z6D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);aeC=h}h=aeC;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cRf;var iTl=function(){return _.D.apply(this,arguments)||this};
_.f(iTl,_.D);_.Y([_.x(),_.V("design:type",Object)],iTl.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],iTl);
_.X(iTl,"yt-live-chat-placeholder-item-renderer",function(){if(cRf===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);cRf=h}h=cRf;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var oOl;var IeD;var R6l=new Z9(7),be=function(){var h=_.D.apply(this,arguments)||this;h.data={};return h};
_.f(be,_.D);be.prototype.dataChanged=function(){var h;((h=this.data)==null?0:h.class)&&_.jg(this.hostElement,this.data.class,!0);var E;((E=this.oldData)==null?0:E.class)&&_.jg(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
be.prototype.computeTimestampString=function(h){return R6l.format(new Date(h/1E3))};
be.prototype.dataChanged=be.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],be.prototype,"data",void 0);_.Y([_.x({computed:"computeTimestampString(data.timestampUsec)"}),_.V("design:type",String)],be.prototype,"timestampString",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],be.prototype,"dataChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],be);
_.X(be,"yt-live-chat-server-error-message",function(){if(IeD===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;oOl===void 0&&(oOl=document.createElement("template"));var Z=oOl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);IeD=h}h=IeD;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var P8D;var BnM;var ue=function(){var h=_.D.apply(this,arguments)||this;h.defaultToFilledIcon=!1;return h};
_.f(ue,_.D);ue.prototype.computeHasPrimaryColorIcon=function(h){return h==="SPARK"||h==="SPONSORSHIP_STAR"};
ue.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],ue.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ue.prototype,"defaultToFilledIcon",void 0);_.Y([_.x(),_.V("design:type",Object)],ue.prototype,"data",void 0);
_.Y([_.x({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ue.prototype,"hasPrimaryColorIcon",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],ue);
_.X(ue,"yt-live-chat-viewer-engagement-message-renderer",function(){if(BnM===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;P8D===void 0&&(P8D=document.createElement("template"));var Z=P8D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);BnM=h}h=BnM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var UfM;var QT=function(){var h=_.D.apply(this,arguments)||this;h.modernUpdate=!1;h.buttonStyle="overlay";h.buttonType="filled";return h};
_.f(QT,_.D);QT.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
QT.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],QT.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QT.prototype,"modernUpdate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],QT.prototype,"buttonStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],QT.prototype,"buttonType",void 0);
_.Y([_.K({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],QT);
_.X(QT,"ytd-ad-hover-text-button-renderer",function(){if(UfM!==void 0)return UfM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UfM=h},{mode:1});var LNm;var hS=function(){var h=_.D.apply(this,arguments)||this;h.buttonOverrides={size:"XS"};h.modern=_.J("web_button_rework");return h};
_.f(hS,_.D);hS.prototype.onHelpTap=function(h){this.data&&this.data.informationDialog&&(_.Ra(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),h.preventDefault(),h.stopPropagation())};
_.Y([_.x(),_.V("design:type",Object)],hS.prototype,"buttonOverrides",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],hS.prototype,"modern",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hS.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],hS);
_.X(hS,"ytd-live-chat-purchased-product-message-renderer",function(){if(LNm!==void 0)return LNm;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return LNm=h},{mode:1});var jED;var dfM;var E3=function(){var h=_.D.apply(this,arguments)||this;h.isContainerDeleted=!1;return h};
_.f(E3,_.D);E3.prototype.onContextMenuClick=function(h){this.ytLiveChatItemBehavior.showContextMenu(h)};
E3.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))};
E3.prototype.isContainerDeletedChanged=E3.prototype.isContainerDeletedChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],E3.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],E3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],E3.prototype,"isContainerDeleted",void 0);
_.Y([_.x(),_.V("design:type",String)],E3.prototype,"deletedStateMessage",void 0);_.Y([_.Nm("isContainerDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],E3.prototype,"isContainerDeletedChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],E3);
_.X(E3,"ytd-sponsorships-live-chat-header-renderer",function(){if(dfM!==void 0)return dfM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dfM=h},{mode:1});var gM=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework_with_live");h.buttonOverrides={style:"overlay",type:"filled"};return h};
_.f(gM,_.D);gM.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]]"}}}}}};
gM.prototype.onCtaButtonClick=function(){var h,E=_.e((h=this.data)==null?void 0:h.optInPrompt,_.Gh);if(h=this.maybeGetButtonCommand(E)){var g;(g=_.SQ())==null||g.clickCommand(h)}};
gM.prototype.maybeGetButtonCommand=function(h){return!h||!h.command||_.e(h.command,PcB)===void 0&&_.e(h.command,RFH)===void 0?null:h.command};
gM.prototype.shouldHideOptinPrompt=function(h,E){return!h||E};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],gM.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gM.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gM.prototype,"modern",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],gM);
_.X(gM,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(jED!==void 0)return jED;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return jED=h},{mode:1});var C8f;var Zw=function(){return _.D.apply(this,arguments)||this};
_.f(Zw,_.D);Zw.prototype.onContextMenuClick=function(h){this.ytLiveChatItemBehavior.showContextMenu(h)};
Zw.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))};
Zw.prototype.isDeletedChanged=Zw.prototype.isDeletedChanged;_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],Zw.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Zw.prototype,"data",void 0);_.Y([_.Nm("isDeleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zw.prototype,"isDeletedChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Zw);
_.X(Zw,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(C8f!==void 0)return C8f;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return C8f=h},{mode:1});var M9=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return h};
_.f(M9,_.D);_.p=M9.prototype;
_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.p.handleLiveChatAction=function(h){_.e(h,Mum)?this.handleMarkChatItemAsDeletedAction(_.e(h,Mum)):_.e(h,Z2D)&&this.handleRemoveChatItemAction(_.e(h,Z2D))};
_.p.handleLiveChatActions=function(h){h.forEach(this.handleLiveChatAction,this)};
_.p.handleMarkChatItemAsDeletedAction=function(h){var E=this,g;((g=this.data)==null?0:g.items)&&this.data.items.forEach(function(Z,M){var W=Object.keys(Z)[0];Object.values(Z)[0].id===h.targetItemId&&E.markAsDeleted("data.items",M,W,h.deletedStateMessage,h.showOriginalContentMessage)})};
_.p.handleRemoveChatItemAction=function(h){var E=this,g;((g=this.data)==null?0:g.items)&&this.data.items.forEach(function(Z,M){Object.values(Z)[0].id===h.targetItemId&&E.splice("data.items",M,1)})};
_.p.markAsDeleted=function(h,E,g,Z,M){h=[h,E,g].join(".");this.set(h+".deletedStateMessage",Z);this.set(h+".showOriginalContentMessage",M)};
_.Y([_.x(),_.V("design:type",Object)],M9.prototype,"data",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],M9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],M9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],M9);
_.X(M9,"yt-live-chat-item-display-list-renderer",function(){if(urk===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;b_m===void 0&&(b_m=document.createElement("template"));var Z=b_m;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);urk=h}h=urk;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var JRl;var e6A,qxC=function(){if(e6A!==void 0)return e6A;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;JRl===void 0&&(JRl=document.createElement("template"));var Z=JRl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return e6A=h};var W_=function(){var h=_.D.apply(this,arguments)||this;h.isHeader=!1;return h};
_.f(W_,_.D);W_.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ze.Object.defineProperties(W_,{template:{configurable:!0,enumerable:!0,get:function(){return qxC()}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],W_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],W_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W_.prototype,"isHeader",void 0);_.Y([_.yc({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],W_);_.X(W_,"yt-live-chat-item-display-renderer",function(){return qxC()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var fef,Nnn,Dff,w9k;
fef={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}};Nnn={home:"eohps",search:"eosps",watch:"eowps"};_.tkl=["watch","search","home"];
_.pV=function(){this.JSC$14296_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14296_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.nF("PRECONSTRUCTION_DELAY",0);this.signals_=_.RS();this.targetPage_=""};
_.pV.prototype.init=function(h,E){h=h===void 0?"":h;E=E===void 0?null:E;if(this.JSC$14296_isInitialized_)this.abort();else if(this.JSC$14296_isInitialized_=!0,h&&_.SxA(this,h),E){var g=_.PZ(this.signals_,"pcl")?0:10,Z=function(){for(var M=0,W;W=_.tkl[M++];)W!=h&&W!=E&&this.pendingPages_.push(W);_.xff(this)}.bind(this);
this.signals_.parkOrScheduleJob(Z,g,"pcl")}};
_.pV.prototype.abort=function(){this.fragmentJobId_&&(_.KP.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);w9k(this)};
_.SxA=function(h,E){h.JSC$14296_isInitialized_&&!h.targetPage_&&(h.targetPage_=E,Dff(h,E),h.isInitialPass_=!1,Dff(h,E),h.signals_.processSignal(Nnn[h.targetPage_]),w9k(h),_.xff(h))};
_.xff=function(h){h.pendingPages_.length&&!h.pagePreparerJobId_&&(h.pagePreparerJobId_=_.xW(_.KP,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.SxA(this,this.pendingPages_.shift())}.bind(h),h.DEFAULT_DELAY_))};
Dff=function(h,E){if(E=fef[E])for(var g in E){var Z=!1,M=g;g.charAt(0)=="~"&&(Z=!0,M=g.substring(1));var W=E[g];W=typeof W=="object"?W:{count:W};E[g]=W;W.componentName=M;W.count>0&&(h.isInitialPass_?Z||h.isSeenDuringInitialPass_[M]||(h.JSC$14296_queue_.push({componentName:M,count:1,signals:W.signals}),h.isSeenDuringInitialPass_[M]=!0,W.count--):h.JSC$14296_queue_.push(W))}};
w9k=function(h){h.JSC$14296_queue_.length=0;h.targetPage_="";h.isInitialPass_=!0;h.signals_.processSignal("eop")};
_.pV.getInstance=function(){return _.Zt(_.pV)};var lef=function(){this.signals=_.RS();this.init()};
lef.prototype.startPreconstruction=function(){_.pV.getInstance().init(_.Xn("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
lef.prototype.init=function(){rRn(this);window.Polymer&&gwF&&w_V();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var h=_.MN.ytcsi;if(h&&h.gt&&(h=h.gt())&&h.tick&&(h.tick.aft>0||h.tick.pbs>0)&&(_.Xn("IS_HOMEPAGE_COLD")||_.Xn("IS_RESULTS_PAGE_COLD")||_.Xn("IS_WATCH_PAGE_COLD"))){mff(this);break a}qBM(jMz,this.onNotifications,this)}};
var rRn=function(h){var E=function(){h.signals.processSignal("dl")};
document.readyState==="complete"?(_.Fn(Error("zh"),"WARNING"),E()):_.hzx(window,"load",E)};
lef.prototype.onNotifications=function(h){h.timer||(_.Xn("IS_HOMEPAGE_COLD")||_.Xn("IS_RESULTS_PAGE_COLD")||_.Xn("IS_WATCH_PAGE_COLD"))&&mff(this)};
var mff=function(h){h.signals.parkOrScheduleJob(function(){h.signals.processSignal("eocs")},10,"eor")};
new lef;var G3,vOM=function(){return _.wD.apply(this,arguments)||this};
_.f(vOM,_.wD);_.p=vOM.prototype;_.p.enableActiveViewMeasurement=function(h){if(this.isActiveViewEnabled(h)){var E=this.getUrlPrefixesFromCommand(h.viewableCommands);h=this.getUrlPrefixesFromCommand(h.endOfSessionCommands);if(!G3){var g=_.cx("custom_active_view_tos_timeout_ms");G3=g>0&&g!==36E5?new GMd(this.getVersion(),g):new GMd(this.getVersion())}auq(G3,this.hostElement);cdO(G3,this.hostElement,E,h)}};
_.p.stopActiveViewMeasurement=function(){G3&&auq(G3,this.hostElement)};
_.p.isActiveViewEnabled=function(h){return!!h&&(this.hasAtLeastOneUrl(h.viewableCommands)||this.hasAtLeastOneUrl(h.endOfSessionCommands))};
_.p.hasAtLeastOneUrl=function(h){return!!h&&h.length>0&&h[0].loggingUrls!=null&&h[0].loggingUrls.length>0};
_.p.getVersion=function(){var h=_.nF("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(h==null?void 0:h.length)===2?h[1]:null};
_.p.getUrlPrefixesFromCommand=function(h){if(!h)return[];var E=[];h=_.G(h);for(var g=h.next();!g.done;g=h.next())if(g=g.value,g.loggingUrls){g=_.G(g.loggingUrls);for(var Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z.baseUrl&&E.push(Z.baseUrl)}return E};
_.Y([_.DM()],vOM);var z3=[vOM.prototype];var HTM=function(){return _.wD.apply(this,arguments)||this};
_.f(HTM,_.wD);_.ze.Object.defineProperties(HTM.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_entity_store_from_dependency_injection")?_.pL():_.Gv()}}});
_.Y([_.DM()],HTM);_.aF=[MJ.prototype,HTM.prototype];var $fn=["ytd-rich-shelf-renderer"],c_=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";h.followUpDialogPromise=null;h.followUpDialogPromiseResolve=null;h.followUpDialogPromiseReject=null;return h};
_.f(c_,_.wD);_.p=c_.prototype;_.p.dismissibleItemIsDismissedChanged_=function(h){_.J("kevlar_fluid_dismiss")&&(h?_.Ra(this.hostElement,"yt-dismissible-item-dismissed"):_.Ra(this.hostElement,"yt-dismissible-item-undismissed"))};
_.p.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.p.dismissibleItemReset_=function(){var h=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 _.jM(function(E,g){h.followUpDialogPromiseResolve=E;h.followUpDialogPromiseReject=g});
_.Ra(this.hostElement,"yt-enable-lockup-interaction")};
_.p.dismissibleItemOnYtServiceRequestSent_=function(h,E){E.actions&&this.dismissibleItemProcessActions(E.actions,h)};
_.p.dismissibleItemOnRequestSent=function(h){if(_.J("web_button_rework"))for(var E=_.G(h.detail),g=E.next();!g.done;g=E.next()){var Z=void 0;(g=(Z=_.e(g.value,_.ej))==null?void 0:Z.actions)&&this.dismissibleItemProcessActions(g,h)}};
_.p.dismissibleItemOnCommandSent=function(h,E){E&&this.dismissibleItemProcessActions(E,h)};
_.p.setAndGetDismissedContentId=function(h){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+h};
_.p.replayDismissAction=function(h){this.dismissibleItemProcessActions([h])};
_.p.dismissibleItemProcessActions=function(h,E){for(var g=0;g<h.length;g++){var Z=h[g],M=void 0;((M=_.e(Z,_.CZ))==null?0:M.commands)&&this.dismissibleItemProcessActions(_.e(Z,_.CZ).commands,E);if(_.e(Z,_.Or)){if(M=_.e(Z,_.Or),!M.replaceParentSection||$fn.includes(this.hostElement.nodeName.toLowerCase()))M.groupDismissal&&Ie4(this,M.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(M),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.xx("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:Z})),Z=void 0,(Z=E)==null||Z.stopPropagation()}else if(_.e(Z,gDl))this.dismissibleItemHandleHideEnclosingAction_(),Z=void 0,(Z=E)==null||Z.stopPropagation();else if(_.e(Z,fYC))Z=_.e(Z,fYC),M=void 0,((M=Z)==null?0:M.targetGroupId)&&Ie4(this,{targetGroupId:Z.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.xx("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
Z=void 0,(Z=E)==null||Z.stopPropagation();else if(_.e(Z,_.ej))(Z=_.e(Z,_.ej).actions)&&_.jj(this.hostElement,Z,this.hostElement),Z=void 0,(Z=E)==null||Z.stopPropagation();else{var W=M=void 0;((M=_.e(Z,_.VX))==null?void 0:M.signal)!=="TELL_US_WHY"||((W=_.e(Z,_.VX))==null?0:W.targetId)&&_.J("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),Z=void 0,(Z=E)==null||Z.stopPropagation())}}};
_.p.dismissibleItemOnYtServiceRequestCompleted_=function(h,E){var g=this.get("feedbackResponses.0.followUpDialog",E.data);g?this.followUpDialogPromiseResolve(g):E.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(E.actions,h)};
_.p.dismissibleItemHandleReplaceEnclosingAction_=function(h){this.dismissedRenderer=h.item;this.isDismissed=!0;var E=null;(E=_.UB(this.hostElement).querySelector("#dismissed"))&&_.pQ(this,function(){_.E$(E)});
_.Ra(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.p.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.p.dismissibleItemHandleUndoFeedbackAction_=function(){_.Ra(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.p.dismissibleItemHandleTellUsWhySignalAction_=function(){var h=this;this.followUpDialogPromise.then(function(E){h.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:E}})})};
c_.prototype.dismissibleItemOnYtServiceRequestCompleted_=c_.prototype.dismissibleItemOnYtServiceRequestCompleted_;c_.prototype.dismissibleItemOnCommandSent=c_.prototype.dismissibleItemOnCommandSent;c_.prototype.dismissibleItemOnRequestSent=c_.prototype.dismissibleItemOnRequestSent;c_.prototype.dismissibleItemOnYtServiceRequestSent_=c_.prototype.dismissibleItemOnYtServiceRequestSent_;c_.prototype.dismissibleItemDataChanged_=c_.prototype.dismissibleItemDataChanged_;
c_.prototype.dismissibleItemIsDismissedChanged_=c_.prototype.dismissibleItemIsDismissedChanged_;_.Y([_.t(_.fJ),_.V("design:type",Object)],c_.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],c_.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],c_.prototype,"isDismissed",void 0);_.Y([_.x(),_.V("design:type",Object)],c_.prototype,"dismissedRenderer",void 0);
_.Y([_.Nm("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],c_.prototype,"dismissibleItemIsDismissedChanged_",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c_.prototype,"dismissibleItemDataChanged_",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],c_.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.Y([_.f3("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],c_.prototype,"dismissibleItemOnRequestSent",null);
_.Y([_.f3("yt-dismissible-item-action"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Array]),_.V("design:returntype")],c_.prototype,"dismissibleItemOnCommandSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],c_.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.Y([_.DM()],c_);_.iL=[_.fJ,_.aF,c_.prototype];var oF=function(){var h=_.wD.apply(this,arguments)||this;h.disableGridStateAware=!1;h.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};h.currentGridClass="";return h};
_.f(oF,_.wD);oF.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.pQ(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var h=this.gridStateAwareGetElement();_.jg(h,"grid",!0)}};
oF.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
oF.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.UB(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
oF.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var h="grid-disabled";else{h=_.tGD.getInstance();var E=this.get("pageSubtype");h=E&&qyk.includes(E)?"grid-disabled":h.currentSnapState_?h.currentSnapState_.className:null}(E=this.gridStateAwareGetElement())&&h!==this.currentGridClass&&(h&&_.jg(E,h,!0),this.currentGridClass&&_.jg(E,this.currentGridClass,!1),this.currentGridClass=h)};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],oF.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",String)],oF.prototype,"gridStateAwareSizingElementSelector",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],oF.prototype,"disableGridStateAware",void 0);_.Y([_.DM()],oF);_.IF=[oF.prototype,_.Yl.YtActionHandlerBehavior];_.RF=new _.Ps("GUIDE_TOKEN");var B_;_.P_={};B_=function(){var h=_.wD.apply(this,arguments)||this;h.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 h};
_.f(B_,_.wD);_.p=B_.prototype;_.p.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var h=_.GF().resolve(_.pl(_.RF));h&&(this.guidePersistentAndVisible=h.getGuidePersistentAndVisible(),this.activeEndpoint=h.getActiveEndpoint(),this.guideOpened=h.getGuideOpened(),this.miniGuideVisible=h.getMiniGuideVisible())};
_.p.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.p.handleGuideStateAction=function(h){this.guidePersistentAndVisible=h};
_.p.handleMiniGuideStateAction=function(h){this.miniGuideVisible=h};
_.p.handleGuideOpenedAction=function(h){this.guideOpened=h};
_.p.handleActiveEndpointAction=function(h){this.activeEndpoint=h};
B_.prototype.onActiveEndpointChange=B_.prototype.onActiveEndpointChange;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],B_.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],B_.prototype,"guidePersistentAndVisible",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],B_.prototype,"miniGuideVisible",void 0);_.Y([_.x(),_.V("design:type",Object)],B_.prototype,"activeEndpoint",void 0);
_.Y([_.Nm("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B_.prototype,"onActiveEndpointChange",null);_.Y([_.x(),_.V("design:type",Boolean)],B_.prototype,"guideOpened",void 0);_.Y([_.DM()],B_);_.P_.YtdGuideStateAwareBehavior=[];_.P_.YtdGuideStateAwareBehavior.push(B_.prototype,_.Yl.YtActionHandlerBehavior);var KND=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],U3=function(){var h=_.wD.apply(this,arguments)||this;h.hoverJobId=0;h.JSC$14327_touched=!1;return h};
_.f(U3,_.wD);_.p=U3.prototype;_.p.created=function(){this.useExpandableTooltip=!KND.includes(this.is)};
_.p.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.p.detached=function(){this.useExpandableTooltip=!1};
_.p.lockupOnDown=function(h){this.interactionElement&&!_.MI(_.Gw(h),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.p.lockupOnUp=function(h){this.interactionElement&&!_.MI(_.Gw(h),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.p.onTouchStart=function(){this.JSC$14327_touched=!0};
_.p.lockupOnMouseEnter=function(){var h=this,E=_.cx("kevlar_lockup_hover_delay",-1);this.JSC$14327_touched&&E>=0?(_.KP.cancelJob(this.hoverJobId),this.hoverJobId=_.KP.addJob(function(){h.lockupIsHovered=!0},8,E),this.JSC$14327_touched=!1):this.lockupIsHovered=!0};
_.p.lockupOnMouseLeave=function(){this.hoverJobId&&(_.KP.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.p.lockupOnPopupClosed=function(h,E){var g;((g=E.popupRenderer)==null?void 0:g.is)==="ytd-menu-popup-renderer"&&(h=E.popupRenderer.veData,E=_.sH(),h&&E&&_.gZ(E,[h]))};
_.p.lockupOnLockupRequested=function(h){var E=h.detail.videoIds[0],g;h.detail&&E===((g=this.data)==null?void 0:g.videoId)&&(h.detail.returnValue=[this.data])};
_.p.lockupOnYtServiceRequestSent=function(h,E){if(h=E.actions)for(var g=0;g<h.length;g++){var Z=h[g];if(Z.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&E.ajaxPromise){var M=void 0,W=(M=_.e(E.endpoint,_.M8))==null?void 0:M.playlistId;M=void 0;Z=(M=Z.removedVideoId)!=null?M:"";TsD(_.Uk(),Z,W)}else Z.action==="ACTION_REMOVE_VIDEO"&&E.ajaxPromise&&(W=void 0,Z=(W=Z.setVideoId)!=null?W:"",_.b7A(_.Uk(),Z))}};
_.p.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.p.lockupOnLockupEnabled=function(){if(!this.$){var h=_.GF().resolve(_.p4).getCurrentPage(),E=this.getParentRenderer?this.getParentRenderer():void 0;_.O$(new _.xX("component not ready",this.is,this.isAttached,h==null?void 0:h.is,E==null?void 0:E.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
U3.prototype.lockupOnLockupEnabled=U3.prototype.lockupOnLockupEnabled;U3.prototype.lockupOnLockupDisabled=U3.prototype.lockupOnLockupDisabled;U3.prototype.lockupOnYtServiceRequestSent=U3.prototype.lockupOnYtServiceRequestSent;U3.prototype.lockupOnLockupRequested=U3.prototype.lockupOnLockupRequested;U3.prototype.lockupOnPopupClosed=U3.prototype.lockupOnPopupClosed;U3.prototype.lockupOnMouseLeave=U3.prototype.lockupOnMouseLeave;U3.prototype.lockupOnMouseEnter=U3.prototype.lockupOnMouseEnter;
U3.prototype.onTouchStart=U3.prototype.onTouchStart;U3.prototype.lockupOnUp=U3.prototype.lockupOnUp;U3.prototype.lockupOnDown=U3.prototype.lockupOnDown;_.Y([_.x(),_.V("design:type",Object)],U3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],U3.prototype,"lockupIsHovered",void 0);_.Y([_.x(),_.V("design:type",Boolean)],U3.prototype,"lockupTouchTriggered",void 0);_.Y([_.x(),_.V("design:type",Boolean)],U3.prototype,"useExpandableTooltip",void 0);
_.Y([_.Sg("#interaction"),_.V("design:type",Object)],U3.prototype,"interactionElement",void 0);_.Y([_.f3("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],U3.prototype,"lockupOnDown",null);_.Y([_.f3("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],U3.prototype,"lockupOnUp",null);
_.Y([_.f3("touchstart"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U3.prototype,"onTouchStart",null);_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U3.prototype,"lockupOnMouseEnter",null);_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U3.prototype,"lockupOnMouseLeave",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],U3.prototype,"lockupOnPopupClosed",null);_.Y([_.f3("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],U3.prototype,"lockupOnLockupRequested",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],U3.prototype,"lockupOnYtServiceRequestSent",null);_.Y([_.f3("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U3.prototype,"lockupOnLockupDisabled",null);
_.Y([_.f3("yt-enable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],U3.prototype,"lockupOnLockupEnabled",null);_.Y([_.DM()],U3);_.LV=[U3.prototype];_.OTf={YtdReduxBehavior:[]};_.OTf.YtdReduxBehavior.push.apply(_.OTf.YtdReduxBehavior,_.aF);var j3=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.disableNowPlaying=!1;h.disableTooltips=!1;h.useHoveredProperty=!1;h.hovered=!1;h.isThumbnailHovered_=!1;h.addBackground=_.J("kevlar_thumbnail_bg");h.nowPlaying=!1;h.disableRounding=!1;h.size="small";return h};
_.f(j3,_.wD);_.p=j3.prototype;_.p.computeThumbnailOverlaySidePanelWidth_=function(h,E){return h-E};
_.p.computeSize=function(h,E){if(!this.disableRounding){if(!h&&!E)return"small";h=Math.max(h||0,E||0);return h>=256?"large":h>=96?"medium":"small"}};
_.p.computeFinalHoveredState_=function(h,E,g){return this.nowPlaying?!1:_.J("kevlar_thumbnail_fluid")&&h?E:g};
_.p.computeHoverOverlays_=function(h,E){return h&&E?E:void 0};
_.p.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.p.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.p.checkMiniplayer_=function(){var h;if(((h=this.data)==null?0:h.playlistSetVideoId)&&_.J("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{h=_.sU();var E=h.currentEndpoint;!this.disableNowPlaying&&E&&_.e(E,_.MH)&&this.data?(E=_.e(E,_.MH),this.nowPlaying=this.data.playlistId?E.playlistId===this.data.playlistId:E.videoId===this.data.videoId,this.isVideoPlaying=h==null?void 0:h.isVideoPlaying):this.nowPlaying=!1}};
j3.prototype.checkMiniplayer_=j3.prototype.checkMiniplayer_;j3.prototype.onMouseLeave_=j3.prototype.onMouseLeave_;j3.prototype.onMouseEnter_=j3.prototype.onMouseEnter_;j3.prototype.computeHoverOverlays_=j3.prototype.computeHoverOverlays_;j3.prototype.computeFinalHoveredState_=j3.prototype.computeFinalHoveredState_;j3.prototype.computeSize=j3.prototype.computeSize;j3.prototype.computeThumbnailOverlaySidePanelWidth_=j3.prototype.computeThumbnailOverlaySidePanelWidth_;
_.Y([_.t(_.aF),_.V("design:type",Object)],j3.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],j3.prototype,"height",void 0);_.Y([_.x(),_.V("design:type",Boolean)],j3.prototype,"bottomSidePanel",void 0);_.Y([_.x(),_.V("design:type",Number)],j3.prototype,"width",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"disableNowPlaying",void 0);
_.Y([_.x({selector:_.so}),_.V("design:type",Boolean)],j3.prototype,"miniplayerIsActive",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"disableTooltips",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"useHoveredProperty",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"hovered",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"isThumbnailHovered_",void 0);
_.Y([_.x({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.V("design:type",Boolean)],j3.prototype,"finalHoveredState_",void 0);_.Y([_.x({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.V("design:type",Number)],j3.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],j3.prototype,"addBackground",void 0);
_.Y([_.x({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.V("design:type",Object)],j3.prototype,"hoverOverlays_",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],j3.prototype,"nowPlaying",void 0);_.Y([_.x(),_.V("design:type",Boolean)],j3.prototype,"isVideoPlaying",void 0);_.Y([_.x(),_.V("design:type",Object)],j3.prototype,"disableRounding",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.V("design:type",Object)],j3.prototype,"size",void 0);_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"onMouseEnter_",null);_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"onMouseLeave_",null);
_.Y([_.Nm("data","disableNowPlaying","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j3.prototype,"checkMiniplayer_",null);_.Y([_.DM()],j3);var nOH=[j3.prototype];_.dM={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(h,E){return h+":"+_.AM(E)},
getPlayerListener_:function(h,E,g){h=this.getPlayerListenerKey_(h,E);E=this.playerListeners_.get(h);g&&this.playerListeners_.delete(h);return E},
savePlayerListener_:function(h,E){var g=E.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(h,E),g);return g},
listenToPlayerEvent:function(h,E,g){g=this.savePlayerListener_(E,g);h.addEventListener(E,g)},
listenToPlayerEvents:function(h,E){E.forEach(function(g,Z){this.listenToPlayerEvent(h,Z,g)}.bind(this))},
unlistenFromPlayerEvent:function(h,E,g){g=this.getPlayerListener_(E,g,!0);h.removeEventListener(E,g)},
unlistenFromPlayerEvents:function(h,E){E.forEach(function(g,Z){this.unlistenFromPlayerEvent(h,Z,g)}.bind(this))}}};
_.CV=function(){};_.X9F=new _.Ps("PLAYER_API_TOKEN");var Ufa=!1,C8u,jEd=!1,e6N;var iv=function(h,E,g,Z,M){_.wO.call(this);var W=this;this.playerId=E;this.webPlayerContextConfig=Z;this.tcR=M;this.moS=!1;this.api={};this.njd=this.kS8=null;this.uoe=new _.Jl;this.iz={};this.sdg=this.w6j=this.elementId=this.hoS=this.config=null;this.a7j=!1;this.aP=this.ibl=null;this.roX={};this.hyR=["onReady"];this.lastError=null;this.khh=NaN;this.o6H={};this.yfj=0;this.lU=this.targetElement=h;_.jf(this,this.uoe);YxB(this);g?this.yfj=setTimeout(function(){W.loadNewVideoConfig(g)},0):Z&&(sEM(this),
VkD(this))};
_.f(iv,_.wO);iv.prototype.getId=function(){return this.playerId};
iv.prototype.loadNewVideoConfig=function(h){if(!this.isDisposed()){this.yfj&&(clearTimeout(this.yfj),this.yfj=0);var E=h||{};E instanceof M3l||(E=new M3l(E));this.config=E;this.setConfig(h);VkD(this);this.isReady()&&k2D(this)}};
var sEM=function(h){var E;h.webPlayerContextConfig?E=h.webPlayerContextConfig.rootElementId:E=h.config.attrs.id;h.elementId=E||h.elementId;h.elementId==="video-player"&&(h.elementId=h.playerId,h.webPlayerContextConfig?h.webPlayerContextConfig.rootElementId=h.playerId:h.config.attrs.id=h.playerId);var g;((g=h.lU)==null?void 0:g.id)===h.elementId&&(h.elementId+="-player",h.webPlayerContextConfig?h.webPlayerContextConfig.rootElementId=h.elementId:h.config.attrs.id=h.elementId)};
iv.prototype.setConfig=function(h){this.hoS=h;this.config=yRl(h);sEM(this);if(!this.w6j){var E;this.w6j=FNl(this,((E=this.config.args)==null?void 0:E.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var g;if((g=this.config)==null?0:g.attrs)h=this.config.attrs,(E=h.width)&&this.lU&&(this.lU.style.width=Ao(Number(E)||E,!0)),(h=h.height)&&this.lU&&(this.lU.style.height=Ao(Number(h)||h,!0))};
var k2D=function(h){if(h.config&&h.config.loaded!==!0)if(h.config.loaded=!0,!h.config.args||h.config.args.autoplay!=="0"&&h.config.args.autoplay!==0&&h.config.args.autoplay!==!1){var E;h.api.loadVideoByPlayerVars((E=h.config.args)!=null?E:null)}else h.api.cueVideoByPlayerVars(h.config.args)},TnA=function(h){var E=!0,g=h.getPlayerElement();
g&&h.config&&(E=g.dataset.version===ARH(h));return E&&!!_.yy("yt.player.Application.create")},VkD=function(h){if(!h.isDisposed()&&!h.a7j){var E=TnA(h);
if(E&&(h.getPlayerElement()?"html5":null)==="html5")h.sdg="html5",h.isReady()||bTD(h);else if(uBn(h),h.sdg="html5",E&&h.aP&&h.targetElement)h.targetElement.appendChild(h.aP),bTD(h);else{h.config&&(h.config.loaded=!0);var g=!1;h.ibl=function(){g=!0;var Z=QED(h,"player_bootstrap_method")?_.yy("yt.player.Application.createAlternate")||_.yy("yt.player.Application.create"):_.yy("yt.player.Application.create");var M=h.config?yRl(h.config):void 0;Z&&Z(h.targetElement,M,h.webPlayerContextConfig,h.tcR);bTD(h)};
h.a7j=!0;E?h.ibl():(_.bC(ARH(h),h.ibl),(E=hdl(h))&&O2d(E||""),E0C(h)&&!g&&_.Wu("yt.player.Application.create",null))}}};
iv.prototype.getPlayerElement=function(){var h=_.c3(document,this.elementId);!h&&this.lU&&this.lU.querySelector&&(h=this.lU.querySelector("#"+this.elementId));return h};
var bTD=function(h){if(!h.isDisposed()){var E=h.getPlayerElement(),g=!1;E&&E.getApiInterface&&E.getApiInterface()&&(g=!0);if(g){h.a7j=!1;if(!QED(h,"html5_remove_not_servable_check_killswitch")){var Z;if((E==null?0:E.isNotServable)&&h.config&&(E==null?0:E.isNotServable((Z=h.config.args)==null?void 0:Z.video_id)))return}g0C(h)}else h.khh=setTimeout(function(){bTD(h)},50)}},g0C=function(h){YxB(h);
h.moS=!0;var E=h.getPlayerElement();if(E){h.kS8=ZsB(h,E,"addEventListener");h.njd=ZsB(h,E,"removeEventListener");var g=E.getApiInterface();g=g.concat(E.getInternalApiInterface());for(var Z=h.api,M=0;M<g.length;M++){var W=g[M];Z[W]||(Z[W]=ZsB(h,E,W))}}for(var z in h.iz)h.iz.hasOwnProperty(z)&&h.kS8&&h.kS8(z,h.iz[z]);k2D(h);h.w6j&&h.w6j(h.api);h.uoe.publish("onReady",h.api)},ZsB=function(h,E,g){var Z=E[g];
return function(){var M=_.VF.apply(0,arguments);try{return h.lastError=null,Z.apply(E,M)}catch(W){if(g!=="sendAbandonmentPing")throw W.params=g,h.lastError=W,M=new _.xX("PlayerProxy error in method call",{error:W,method:g,playerId:h.playerId}),M.level="WARNING",M;}}},YxB=function(h){h.moS=!1;
if(h.njd)for(var E in h.iz)h.iz.hasOwnProperty(E)&&h.njd(E,h.iz[E]);for(var g in h.o6H)h.o6H.hasOwnProperty(g)&&clearTimeout(Number(g));h.o6H={};h.kS8=null;h.njd=null;E=h.api;for(var Z in E)E.hasOwnProperty(Z)&&(E[Z]=null);E.addEventListener=function(M,W){h.addEventListener(M,W)};
E.removeEventListener=function(M,W){h.removeEventListener(M,W)};
E.destroy=function(){h.dispose()};
E.getLastError=function(){return h.getLastError()};
E.getPlayerType=function(){return h.getPlayerType()};
E.getCurrentVideoConfig=function(){return h.hoS};
E.loadNewVideoConfig=function(M){h.loadNewVideoConfig(M)};
E.isReady=function(){return h.isReady()}};
iv.prototype.isReady=function(){return this.moS};
iv.prototype.addEventListener=function(h,E){var g=this;this.isDisposed();var Z=FNl(this,E);Z&&(_.nd(this.hyR,h)||this.iz[h]||(E=M0l(this,h),this.kS8&&this.kS8(h,E)),this.uoe.subscribe(h,Z),h==="onReady"&&this.isReady()&&setTimeout(function(){Z(g.api)},0))};
iv.prototype.removeEventListener=function(h,E){this.isDisposed()||(E=FNl(this,E))&&this.uoe.unsubscribe(h,E)};
var FNl=function(h,E){var g=E;if(typeof E==="string"){if(h.roX[E])return h.roX[E];g=function(){var Z=_.VF.apply(0,arguments),M=_.yy(E);if(M)try{M.apply(_.MN,Z)}catch(W){throw Z=new _.xX("PlayerProxy error when executing callback",{error:W}),Z.level="ERROR",Z;}};
h.roX[E]=g}return g?g:null},M0l=function(h,E){var g=function(Z){var M=function(){h.isDisposed();
if(!h.isDisposed())try{h.uoe.publish(E,Z!=null?Z:void 0)}catch(c){var z=new _.xX("PlayerProxy error when creating global callback",{error:c.message,event:E,playerId:h.playerId,data:Z,originalStack:c.stack,componentStack:c.componentStack});z.level="WARNING";throw z;}};
if(QED(h,"web_player_publish_events_immediately"))M();else{var W=setTimeout(function(){M();_.Kt.remove(h.o6H,String(W))},0);
_.Kt.add(h.o6H,String(W),!0)}};
return h.iz[E]=g};
iv.prototype.getPlayerType=function(){return this.sdg||(this.getPlayerElement()?"html5":null)};
iv.prototype.getLastError=function(){return this.lastError};
var uBn=function(h){h.cancel();YxB(h);h.sdg=null;h.config&&(h.config.loaded=!1);var E=h.getPlayerElement();E&&(TnA(h)||!E0C(h)?h.aP=E:(E&&E.destroy&&E.destroy(),h.aP=null));h.targetElement&&_.XV(h.targetElement)};
iv.prototype.cancel=function(){this.ibl&&_.R$W(ARH(this),this.ibl);clearTimeout(this.khh);this.a7j=!1};
iv.prototype.disposeInternal=function(){uBn(this);if(this.aP&&this.config&&this.aP.destroy)try{this.aP.destroy()}catch(E){var h=new _.xX("PlayerProxy error during disposal",{error:E});h.level="ERROR";throw h;}this.roX=null;for(h in this.iz)this.iz.hasOwnProperty(h)&&delete this.iz[h];this.hoS=this.config=this.api=null;delete this.targetElement;delete this.lU;_.wO.prototype.disposeInternal.call(this)};
var E0C=function(h){var E,g;h=(E=h.config)==null?void 0:(g=E.args)==null?void 0:g.fflags;return!!h&&h.indexOf("player_destroy_old_version=true")!==-1},ARH=function(h){return h.webPlayerContextConfig?h.webPlayerContextConfig.jsUrl:(h=h.config.assets)?h.js:""},hdl=function(h){return h.webPlayerContextConfig?h.webPlayerContextConfig.cssUrl:(h=h.config.assets)?h.css:""},QED=function(h,E){if(h.webPlayerContextConfig)var g=h.webPlayerContextConfig.serializedExperimentFlags;
else{var Z;if((Z=h.config)==null?0:Z.args)g=h.config.args.fflags}return(g||"").split("&").includes(E+"=true")},yRl=function(h){for(var E={},g=_.G(Object.keys(h)),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;
var M=h[Z];E[Z]=typeof M==="object"?_.Kt.clone(M):M}return E};var SxN={},tkz="player_uid_"+(Math.random()*1E9>>>0);var JS=function(h,E,g,Z,M,W){E=E===void 0?document.createElement("div"):E;this.webPlayerContextConfig=h;this.container=E;this.commandResolver=g;this.apiResolver=DfZ();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.dN;Z||W?W7F(this):pDk(this);this.pendingPlayerResponse=Z;this.pendingWatchNextResponse=M;this.pendingPlayerVars=W;GIm(this)};
JS.prototype.loadVideoWithPlayerResponse=function(h,E,g){this.loadVideo(h,E,g)};
JS.prototype.loadVideoWithPlayerVars=function(h){return this.loadVideo(void 0,void 0,h)};
JS.prototype.destroy=function(h){if(h=_.c3(document,h))h=tkz+"_"+_.AM(h),(h=SxN[h])&&h.dispose()};
var amB=function(h,E){var g;_.a(function(Z){if(Z.nextAddress==1)return h.pendingWatchNextResponse=E,h.synchronousApi?(g=h.synchronousApi,Z.jumpTo(2)):Z.yield(h.api,3);Z.nextAddress!=2&&(g=Z.yieldResult);if(!zdF(h,g))return Z.return();h.pendingWatchNextResponse&&(g.updateVideoData({raw_watch_next_response:h.pendingWatchNextResponse}),h.pendingWatchNextResponse=void 0);_.SK(Z)})},zdF=function(h,E){var g;
if(!(E==null?0:(g=E.isReady)==null?0:g.call(E))){var Z;_.O$(new _.xX("playerApi is falsey",{synchronousApi:h.synchronousApi,apiResolved:h.apiResolver.resolved,playerApiUndefined:E===void 0,playerApiNull:E===null,playerApiReady:(E==null?void 0:(Z=E.isReady)==null?void 0:Z.call(E))===!0,playerApiMethods:E?Object.keys(E):[]}));return!1}return!0},ciF=function(h,E){if(typeof h[E]==="function")return h[E]()},isM=function(h){var E=window,g,Z=(g=E.ytplayer)==null?void 0:g.bootstrapPlayerContainer;
if((g=Z==null?void 0:Z.firstElementChild)&&_.Ef(g,"html5-video-player")){var M,W,z=(M=E.ytplayer)==null?void 0:(W=M.bootstrapWebPlayerContextConfig)==null?void 0:W.contextId;M=h.webPlayerContextConfig.contextId;if(z&&z===M){Z!==h.container&&(Z=!1,ciF(g,"getPlayerState")===2&&(Z=!0),h.container.appendChild(g),Z||ciF(g,"playVideo"));var c;if((c=E.ytplayer)==null?0:c.bootstrapPlayerResponse)h.bootstrapPlayerResponse=E.ytplayer.bootstrapPlayerResponse}}},GIm=function(h){var E,g,Z,M,W;
_.a(function(z){if(z.nextAddress==1)return h.pageReadyOrDataAvailable?z.jumpTo(2):z.yield(h.pageReadyOrDataAvailableResolver.promise,2);if(z.nextAddress!=4)return!_.J("kevlar_player_unified_player_loading")||LNW()&&df$()?z.jumpTo(4):z.yield(feu(),4);isM(h);if(h.pendingPlayerResponse||h.pendingPlayerVars)E=NnM(h.pendingPlayerResponse,h.pendingWatchNextResponse,h.pendingPlayerVars),h.pendingPlayerResponse&&h.pendingPlayerResponse===h.bootstrapPlayerResponse&&(E.loaded=!0),h.bootstrapPlayerResponse=
void 0;g=w9x(h.container,E,h.webPlayerContextConfig);((Z=E)==null?0:Z.loaded)&&h.pendingWatchNextResponse?(amB(h,h.pendingWatchNextResponse),h.pendingPlayerResponse=void 0,h.pendingPlayerVars=void 0):o0n(h);M=function(c){g.removeEventListener("onReady",M);h.synchronousApi=c;h.apiResolver.resolve(c)};
g.addEventListener("onReady",M);h.commandResolver!==void 0&&(W=h.commandResolver,g.addEventListener("innertubeCommand",function(c){W(c)}));
_.SK(z)})};
JS.prototype.loadVideo=function(h,E,g){var Z=this,M,W,z,c,I,B,U,L,d;return _.a(function(C){if(C.nextAddress==1)return Z.pendingPlayerResponse=h,Z.pendingWatchNextResponse=E,Z.pendingPlayerVars=g,W7F(Z),Z.synchronousApi?(M=Z.synchronousApi,C.jumpTo(2)):C.yield(Z.api,3);C.nextAddress!=2&&(M=C.yieldResult);if(!zdF(Z,M))return C.return(new Promise(function(){}));
z=new Promise(function(q){W=q});
c=function(){var q=M.getPlayerResponse();q&&(M.removeEventListener("onVideoDataChange",c),W(q))};
M.addEventListener("onVideoDataChange",c);if(Z.pendingPlayerResponse||Z.pendingPlayerVars)Z.pendingPlayerResponse&&Z.pendingPlayerResponse===Z.bootstrapPlayerResponse?(W(Z.pendingPlayerResponse),Z.pendingWatchNextResponse&&amB(Z,Z.pendingWatchNextResponse)):(I=NnM(Z.pendingPlayerResponse,Z.pendingWatchNextResponse,Z.pendingPlayerVars),(d=(B=Z.pendingPlayerResponse)==null?void 0:(U=B.playerConfig)==null?void 0:(L=U.playbackStartConfig)==null?void 0:L.startPaused)?M.cueVideoByPlayerVars(I.args):M.loadVideoByPlayerVars(I.args)),
o0n(Z),Z.bootstrapPlayerResponse=void 0;return C.return(z)})};
var pDk=function(h){if(document.readyState==="complete"||document.readyState==="interactive")W7F(h);else{var E=function(){document.removeEventListener("DOMContentLoaded",E);W7F(h)};
document.addEventListener("DOMContentLoaded",E)}},W7F=function(h){h.pageReadyOrDataAvailable=!0;
h.pageReadyOrDataAvailableResolver.resolve()},o0n=function(h){h.pendingPlayerResponse=void 0;
h.pendingWatchNextResponse=void 0;h.pendingPlayerVars=void 0};
_.ze.Object.defineProperties(JS.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var e3=function(h){AB.call(this,h===void 0?"document_active":h);var E=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(g){E.transition("document_disposed",{event:g})});
window.addEventListener("beforeunload",function(g){E.transition("document_disposed_preventable",{event:g})});
window.addEventListener("unload",function(g){E.transition("document_disposed",{event:g});E.hasRun=new Map})};
_.f(e3,AB);
e3.prototype.runPreventableDispose=function(h,E){if(!this.hasRun.get("document_disposed_preventable")){h(E==null?void 0:E.event);var g,Z;if((E==null?0:(g=E.event)==null?0:g.defaultPrevented)||(E==null?0:(Z=E.event)==null?0:Z.returnValue)){E.event.returnValue||(E.event.returnValue=!0);E.event.defaultPrevented||E.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")};
e3.prototype.runDispose=function(h,E){this.hasRun.get("document_disposed")?this.transition("document_active"):(h(E==null?void 0:E.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
e3.prototype.runFlush=function(h,E){h(E==null?void 0:E.event);this.transition("document_active")};
e3.prototype.runActive=function(){};var q9=function(h){AB.call(this,h===void 0?"document_visibility_unknown":h);var E=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(g){document.visibilityState==="visible"?E.transition("document_visible",{event:g}):E.transition("document_hidden",
{event:g})});
_.J("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(g){E.transition("document_backgrounded",{event:g})}),window.addEventListener("focus",function(g){E.transition("document_foregrounded",{event:g})}))};
_.f(q9,AB);q9.prototype.runVisible=function(h,E){h(E==null?void 0:E.event);_.J("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
q9.prototype.runHidden=function(h,E){h(E==null?void 0:E.event);_.J("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
q9.prototype.runBackgrounded=function(h,E){h(E==null?void 0:E.event)};
q9.prototype.runForegrounded=function(h,E){h(E==null?void 0:E.event)};var fV=function(){this.teardownLifecycle=new e3;this.visibilityLifecycle=new q9};
fV.prototype.install=function(){var h=_.VF.apply(0,arguments),E=this;h.forEach(function(g){E.teardownLifecycle.install(g)});
h.forEach(function(g){E.visibilityLifecycle.install(g)})};var N9=function(){fV.call(this);var h={};this.install((h.document_disposed={callback:this.abortSlisAndFlush},h));_.J("combine_ve_grafts")&&(h={},this.install((h.document_disposed={callback:this.flushInteractionLoggingAttachVes},h)));h={};this.install((h.flush_logs={callback:this.logFinalPayload},h));_.J("web_log_cfg_cee_ks")||_.xW(_.KP,ImA)};
_.f(N9,fV);var leZ=function(){N9.loggingInstance||(N9.loggingInstance=new N9);return N9.loggingInstance};
N9.prototype.logFinalPayload=function(){if(_.J("web_fp_via_jspb")){var h=new wlH,E=_.sH();E&&_.ln(h,1,E);E=_.J("jspb_sparse_encoded_pivot")?new SM([{}]):new SM;_.No(E,380,D_D,h);MzM("finalPayload",E);_.J("web_fp_via_jspb_and_json")&&_.vT("finalPayload",{csn:_.sH()})}else _.vT("finalPayload",{csn:_.sH()})};
N9.prototype.abortSlisAndFlush=function(){YEk(Pt);Bt!=null&&Bt.flush()};
N9.prototype.flushInteractionLoggingAttachVes=function(){zjl(_.SQ())};
var ImA=function(){var h=_.nF("CLIENT_EXPERIMENT_EVENTS");if(h){var E=AMO();h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,E(g)&&_.vT("genericClientExperimentEvent",{eventType:g});delete _.KF.CLIENT_EXPERIMENT_EVENTS}};var Rdf={};
Rdf.YtPlayerBehavior=[_.dM.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 h=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.dN;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;rRM(function(){h.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Vu(this,"pan-down"),_.J("kevlar_pinch_fullscreen")&&_.uc().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.J("kevlar_pinch_fullscreen")&&_.uc().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(h,E,g){var Z=this;oJ(this.useUnifiedPlayer_());if(this.mainAppPlayer_)oJ(!1,"MainAppPlayer already created.");else{var M=_.J("kevlar_player_container_query_killswitch")?this.$.container:_.UB(this.hostElement).querySelector("#container");this.mainAppPlayer_=new JS(this.getWebPlayerContextConfig_(),M,function(W){return _.qB(W,Z.hostElement)},h,E,g);
this.mainAppPlayer_.api.then(function(W){Z.player_=W;Z.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&akB.resolve(W)})}},
loadVideoWithPlayerResponse:function(h,E){var g=this;if(this.useUnifiedPlayer_()){var Z=this.watchNextData,M,W=(M=h.videoDetails)==null?void 0:M.videoId,z,c,I;(M=(z=this.watchNextData)==null?void 0:(c=z.currentVideoEndpoint)==null?void 0:(I=c.watchEndpoint)==null?void 0:I.videoId)&&W!=M&&(Z=void 0,_.J("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(h,Z,E):this.createMainAppPlayer_(h,Z,E);this.mainAppPlayer_.api.then(function(){_.Ra(g.hostElement,
"yt-player-updated")})}else this.update(R6O(h,E))},
loadVideoWithPlayerVars:function(h){var E=this;this.useUnifiedPlayer_()?(_.J("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(h):this.createMainAppPlayer_(void 0,void 0,h),this.mainAppPlayer_.api.then(function(){_.Ra(E.hostElement,"yt-player-updated")})):this.update({args:h})},
update:function(h){var E=this;if(this.useUnifiedPlayer_())oJ(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(h);var g=e$O(h.args);g&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==g&&Object.assign(h.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(h).then(function(Z){_.Ra(E.hostElement,"yt-player-updated",_.J("kevlar_player_updated_obsolete_player_killswitch")?
Z:void 0)})}_.KI(new _.xX("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.getPlayerPromise(),2);g=Z.yieldResult;if(!g)throw Error("Bh");h&&E.updatePlayerPlaylist_(h);_.SK(Z)})},
acquireApi_:function(h){var E=this;if(this.useUnifiedPlayer_())oJ(!1,"Invalid method call in kevlar_unified_player.");else return _.KP.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(oJ(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(g){E.shouldAutoplay_(h)?g.loadVideoByPlayerVars(h.args):g.cueVideoByPlayerVars(h.args)})):this.initPlayerPromise_=this.initPlayerContainer_(h),this.initPlayerPromise_},
initPlayerContainer_:function(h){var E=this;if(this.useUnifiedPlayer_())oJ(!1,"Invalid method call in kevlar_unified_player.");else return oJ(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.O$(Error("Ch")),oJ(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.J("kevlar_player_container_query_killswitch")?this.$.container:_.UB(this.hostElement).querySelector("#container"),feu().then(function(){var g=E.initPlayer_(h);E.playerResolver_.resolve(g);
return g})},
onPlayerReady_:function(h,E){this.useUnifiedPlayer_()?oJ(!1,"Invalid method call in kevlar_unified_player."):(h.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&akB.resolve(h),E(h))},
maybeCallApiMethodOnElement_:function(h,E){if(typeof h[E]==="function")return h[E]()},
maybeAdoptBootstrapPlayer_:function(){var h=window,E,g=(E=h.ytplayer)==null?void 0:E.bootstrapPlayerContainer;if((E=g==null?void 0:g.firstElementChild)&&E.classList.contains("html5-video-player")){var Z,M,W=(Z=h.ytplayer)==null?void 0:(M=Z.bootstrapWebPlayerContextConfig)==null?void 0:M.contextId;Z=this.getWebPlayerContextConfig_().contextId;if(W&&W===Z){g!==this.playerContainer_&&(g=!1,this.maybeCallApiMethodOnElement_(E,"getPlayerState")===2&&(g=!0),this.playerContainer_.appendChild(E),g||this.maybeCallApiMethodOnElement_(E,
"playVideo"));var z;if((z=h.ytplayer)==null?0:z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=h.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(h){var E=this;if(this.useUnifiedPlayer_())oJ(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(g){E.maybeAdoptBootstrapPlayer_();var Z=h?P84(h):void 0;Z&&Z==E.bootstrapPlayerResponse_&&(h.loaded=!0);Z=E.playerContainer_;var M=E.getWebPlayerContextConfig_();Z=w9x(Z,h,M);E.player_=Z;E.onPlayerReadyEvent_=E.onPlayerReady_.bind(E,E.player_,g);E.player_.addEventListener("onReady",E.onPlayerReadyEvent_);E.player_.addEventListener("innertubeCommand",
E.onPlayerInnerTubeCommand_.bind(E))})},
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(h){h.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(h){h.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var h=_.GF().resolve(_.p4).getCurrentPage();h&&h.getScrollTop()<=0?_.Vu(this,"pan-down"):_.Vu(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(h){h.isFullscreen()||h.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(h){h.isFullscreen()&&h.toggleFullscreen()})},
updatePlayerPlaylist_:function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return g=_.GF().resolve(_.pl(_.oS)),Z=!!(g&&g.playlistComponent&&g.playlistComponent.loopOn),W.yield(E.getPlayerPromise(),2);var z=M=W.yieldResult,c=z.updatePlaylist,I=[];if(_.J("kevlar_player_playlist_use_local_index")){var B,U;var L=(U=(B=h.localCurrentIndex)!=null?B:h.currentIndex)!=null?U:0}else{var d;L=(d=h.currentIndex)!=null?d:0}if(h.contents)for(B=0;B<h.contents.length;B++)if((U=h.contents[B])&&U.playlistPanelVideoRenderer)if(dyN(U)){U=
U.playlistPanelVideoRenderer;d="";U.shortBylineText&&(d=_.Wp(U.shortBylineText));var C="";U.title?C=_.Wp(U.title):U.unplayableText&&(C=_.Wp(U.unplayableText));I.push({author:d,title:C,encrypted_id:U.videoId})}else B<L&&--L;c.call(z,{index:L,list:h.playlistId?h.playlistId:"",loop:Z,playlist_title:h.title,playlist_length:I.length,video:I,fetch:0,external_list:"1",title:h.title?h.title:"",playlist_author:h.ownerName?_.Wp(h.ownerName):void 0});_.SK(W)})},
focusOnPlayer:function(){_.pQ(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var h=this.playerContainer_.querySelector(".html5-video-player");h&&(_.tS(_.GF().resolve(_.DC)),h.focus())}})},
preparePlayer:function(){var h=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(E){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")E();else{var g=function(){document.removeEventListener("DOMContentLoaded",g);E()};
document.addEventListener("DOMContentLoaded",g)}})).then(function(){return feu()}).then(function(){h.initPlayerPromise_||h.preparePlayerJobId_||(h.preparePlayerJobId_=_.xW(_.KP,function(){h.initPlayerPromise_||(h.initPlayerPromise_=h.initPlayerContainer_())}))}):_.KI(new _.xX("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(h){this.useUnifiedPlayer_()?oJ(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(h)||(h.args.autoplay="0")},
shouldAutoplay_:function(h){if(this.useUnifiedPlayer_())oJ(!1,"Invalid method call in kevlar_unified_player.");else{var E=this.get("args.el",h);return E&&E!="detailpage"&&this.isMiniplayerActive_()||E&&(E=="sponsorshipsoffer"||E=="handlesclaiming")&&this.get("args.autoplay",h)=="0"?!1:(h=P84(h))&&this.get("playerConfig.playbackStartConfig.startPaused",h)?!1:!0}},
isMiniplayerActive_:function(){return _.GF().resolve(_.Yu).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var h=this.getPlayer();if(h){var E=h.getPlayerState();_.J("kevlar_player_check_ad_state_on_stop")&&(E=h.getPlayerState(h.getPresentingPlayerType()));E!=5&&h.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(h,E,g){g=g===void 0?!1:g;var Z=this,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return E||(E=Z.hostElement),M=Z.useUnifiedPlayer_()?!!Z.mainAppPlayer_:!!Z.initPlayerPromise_,M?I.yield(Z.getPlayerPromise(),2):(g?h.insertBefore(E,h.firstChild):h.appendChild(E),I.return());W=I.yieldResult;z=W.getPlayerState(W.getPresentingPlayerType());c=!1;if(z==-1||z==1||z==3)c=!0;g?h.insertBefore(E,h.firstChild):h.appendChild(E);c&&W.playVideo();W.setSize(NaN,NaN);_.SK(I)})},
watchNextDataChanged_:function(h){var E=this;h&&(this.useUnifiedPlayer_()&&_.J("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&amB(this.mainAppPlayer_,h):this.getPlayerPromise().then(function(g){g.updateVideoData(E.computeWatchNextPlayerVars_(h))}))},
computeWatchNextPlayerVars_:function(h){if(this.useUnifiedPlayer_()&&_.J("kevlar_unified_player_update_watch_next_killswitch"))oJ(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:h}},
maybeSendAbandonmentPing_:function(){var h=this.getPlayer();h&&h.getPlayerState()!=5&&h.getPlayerState()!=0&&h.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var h=_.nF("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(h=Object.assign({},h),h.rootElementId=this.playerId);h.serializedExperimentIds&&h.serializedExperimentFlags||_.O$(Error("Dh"));return h},
hasWebPlayerContextConfig_:function(){return!!_.nF("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(h){this.useUnifiedPlayer_()?oJ(!1,"Invalid method call in kevlar_unified_player."):_.qB(h,this.hostElement)},
useUnifiedPlayer_:function(){var h=_.J("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.J("kevlar_unified_player")||h}}];var Pil={};Pil.YtPlaylistPanelBehavior=[_.T.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(h){h=h.detail;if(h.actions.loop!=void 0||h.actions["yt-icons:loop"]!=void 0)this.loopOn=h.actions.loop||h.actions["yt-icons:loop"];if(h.actions.shuffle!=void 0||h.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=h.actions.shuffle||h.actions["yt-icons:shuffle"]},
setMenuData_:function(h){if(!h||!h.playlistButtons||h.isInfinite)return null;for(var E=h.playlistButtons.menuRenderer.topLevelButtons,g=E.length,Z=0;Z<g;Z++)if(E[Z].toggleButtonRenderer){var M=E[Z].toggleButtonRenderer;M.defaultIcon.iconType=="LOOP"&&this.loopOn?M.isToggled=this.loopOn:M.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(M.isToggled=this.shuffleOn)}return h.playlistButtons}}];var Bmk=function(h){Bl.call(this,h,132);this.isDocument=h===document.documentElement};
_.f(Bmk,Bl);Bmk.prototype.calculateScrollDelta=function(h,E,g){var Z=0;h<E?Z=h<E-100?-48:-8:h>E+g&&(Z=h>E+g+100?48:8);return Z};
Bmk.prototype.JSC$11398_onMouseMove=function(h){this.isDocument||(h.clientX=h.event_.pageX,h.clientY=h.event_.pageY);Bl.prototype.JSC$11398_onMouseMove.call(this,h)};var S3=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.scrollElement=document.documentElement;h.JSC$14386_dragListGroup=null;h.dragScrollSupport=null;h.onDraggerCreated=function(E){var g=E.JSC$11394_dragger;g.scrollTarget_=h.scrollElement;E=E.draggerEl;g&&E.menuOpened&&g.setEnabled(!1)};
h.onDragStart=function(E){var g=E.draggerEl;E=E.currDragItem;var Z=Object.assign({},E==null?void 0:E.data);Z.trackingParams=void 0;g.data=Z;g.style.position="absolute";g.style.width=(E==null?void 0:E.clientWidth)+"px";g.style.zIndex="2030";g.onDrag&&g.onDrag();_.J("web_owner_document_fallback_killswitch")?(E=document.querySelector("ytd-app"))&&_.UB(E).appendChild(g):(E=_.Yp(g),(Z=E.querySelector("ytd-app"))?_.UB(Z).appendChild(g):E.body.appendChild(g));h.dragScrollSupport=new Bmk(h.scrollElement);
h.dragScrollSupport.horizontalScrolling_=!1;g=h.dragScrollSupport;g.constrainScroll_=!!g.margin_&&!1};
h.onDrop=function(E){h.handleDrop(E);h.dragScrollSupport&&(_.p8(h.dragScrollSupport),h.dragScrollSupport=null)};
h.onReorderableScroll=function(){if(h.JSC$14386_dragListGroup){var E=h.JSC$14386_dragListGroup;xmM(E,E.currDragItem_)}};
return h};
_.f(S3,_.wD);S3.prototype.detached=function(){_.UDM(this)};
_.UDM=function(h){h.JSC$14386_dragListGroup&&(_.r6(h.JSC$14386_dragListGroup,dmC,h.onDragStart),_.r6(h.JSC$14386_dragListGroup,qBn,h.onDragStart),h.JSC$14386_dragListGroup.dispose(),h.JSC$14386_dragListGroup=null);h.dragScrollSupport&&(_.p8(h.dragScrollSupport),h.dragScrollSupport=null);h.scrollElement.removeEventListener("scroll",h.onReorderableScroll)};
_.L7n=function(h,E,g,Z){Z=Z===void 0?"":Z;_.UDM(h);g&&(h.scrollElement=g);h.JSC$14386_dragListGroup=new gt;h.JSC$14386_dragListGroup.hysteresisDistance_=2;NDf(h.JSC$14386_dragListGroup,E);h.JSC$14386_dragListGroup.draggerElClasses_=Pa("dragging").split(" ");Z&&tgC(h.JSC$14386_dragListGroup,function(M){var W=M||document,z=null;W.getElementsByClassName?z=W.getElementsByClassName(Z)[0]:z=Gpf("*",Z,M);return z||M});
_.vK(h.JSC$14386_dragListGroup,LhD,h.onDraggerCreated);_.vK(h.JSC$14386_dragListGroup,dmC,h.onDragStart);_.vK(h.JSC$14386_dragListGroup,qBn,h.onDrop);h.JSC$14386_dragListGroup.init();h.scrollElement.addEventListener("scroll",h.onReorderableScroll,{passive:!0})};
S3.prototype.handleDrop=function(){};
_.ze.Object.defineProperties(S3.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.Y([_.x({value:100}),_.V("design:type",Number)],S3.prototype,"scrollMargin",void 0);_.Y([_.DM()],S3);_.jlD=[S3.prototype];_.xa={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(h,E,g){var Z=this.getClickTarget_(E);if(Z&&this.isClickAllowed_(Z)){E.preventDefault();h=(0,_.Kt.unsafeClone)(h);var M=this.getContainerBoundingRect();E=this.getRelativeClickXy_(E,M);this.expandEndpointUrlMacros_(h,{NX:E[0],NY:E[1],NB:Z.code});g&&this.truncateWebCommendMetadataUrl_(h);_.Ra(this.hostElement,"yt-navigate",{endpoint:h})}},
getClickTarget_:function(h){if(!this.clickTargetMap)return null;h=_.Gw(h)||[];h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;if(E===_.UB(this.hostElement).querySelector("#menu"))break;if(E=this.clickTargetMap.get(E.id))return E}return null},
getRelativeClickXy_:function(h,E){var g=h.detail.x,Z=h.detail.y;_.J("use_on_click_for_desktop_display_ad")&&h.clientX!=null&&h.clientY!=null&&(g=h.clientX,Z=h.clientY);h=Math.round(g-E.left);E=Math.round(Z-E.top);return h<0||E<0?[null,null]:[h,E]},
getContainerBoundingRect:function(){return _.UB(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(h,E){for(var g=_.G(h.loggingUrls||[]),Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z.baseUrl&&(Z.baseUrl=uR$(Z.baseUrl,E));h.urlEndpoint&&h.urlEndpoint.url&&(h.urlEndpoint.url=uR$(h.urlEndpoint.url,E));h.commandMetadata&&h.commandMetadata.webCommandMetadata&&h.commandMetadata.webCommandMetadata.url&&(h.commandMetadata.webCommandMetadata.url=uR$(h.commandMetadata.webCommandMetadata.url,E))},
truncateWebCommendMetadataUrl_:function(h){if(h.commandMetadata&&h.commandMetadata.webCommandMetadata&&h.commandMetadata.webCommandMetadata.url){var E=h.commandMetadata.webCommandMetadata.url,g=E.indexOf("&pp=");if(g>0){var Z=E.indexOf("&",g+1);h.commandMetadata.webCommandMetadata.url=Z>g&&Z<E.length?E.slice(0,g)+E.slice(Z):E.slice(0,g)}}},
configureClickTargets:function(h,E,g){this.containerId=h;this.clickTargetMap=new Map;h=_.G(E);for(E=h.next();!E.done;E=h.next())if(E=E.value,E.location){var Z=g.get(E.location);Z&&(_.jg(_.UB(this.hostElement).querySelector("#"+Z),"yt-simple-endpoint",this.isClickAllowed_(E)),this.clickTargetMap.set(Z,E))}},
isClickAllowed_:function(h){return h.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||h.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||h.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||h.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.wM={};
_.wM.YtLazyListBehavior=[_.NJ.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 h=(this.constructor.generatedFrom||this).observers;h||(h=[]);h.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
h}},
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 h=this.renderElementsOutsideVisibleArea_;h&&(UYC(h,4),h.processSignal())},
deepLazyListObserver_:function(h){var E=this;if(h){var g=h.value||[];if(this.itemsPath==h.path){var Z=this.nonDeferredItemCount;h=0;Z>-1&&g.length>Z&&(h=_.nF("REMAINING_DOVA_DEFERRED_CHUNKS",-1));h>0?(Z>0&&(Z=g.slice(0,Z),this.setInitialItemsOnDataChanged(Z)),(Z=this.renderElementsOutsideVisibleArea_)?Z.cancel():(Z=this.renderElementsOutsideVisibleArea_=new _.S1(2,"eocs"),_.hzx(window,"scroll",function(){return E.renderDeferredElements()})),_.xl(Z,function(){E.setInitialItemsOnDataChanged(g)}),_.OW("REMAINING_DOVA_DEFERRED_CHUNKS",
h-1)):this.setInitialItemsOnDataChanged(g)}else if(this.itemsPath+".splices"==h.path)this.onItemsUpdated_(g);
else Z="shownItems"+h.path.substr(this.itemsPath.length),this.useSignals&&Z==="shownItems.length"||this.notifyPath(Z,h.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(h){h&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(h),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(h){h=h.indexSplices;for(var E=0,g=h.length;E<g;E++){var Z=h[E];if(Z.index<this.shownCount&&(Z.removed&&this.splice("shownItems",Z.index,Z.removed.length),Z.addedCount)){var M=Z.object.slice(Z.index,Z.index+Z.addedCount);Z=["shownItems",Z.index,0];Z.push.apply(Z,M);this.splice.apply(this,Z)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(h){this.cancelPendingTasks_();h||(h=[]);this.items_=h;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&&(_.Xn("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.pQ(this,this.tryRenderChunk_)))},
fillRange_:function(h,E){this.canShowMore&&this.items_&&(h=this.items_.slice(h,E),h.unshift("shownItems"),this.push.apply(this,h),this.shownCount=E,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var h=this;this.canShowMore&&_.EQ(this,"renderChunk",function(){h.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Xn("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.lv(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var h=this.renderElementsOutsideVisibleArea_;h&&(h.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var h=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(h-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=h;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(h){return Math.ceil(1E3/h)},
onCanShowMoreUpdated_:function(h){this.data&&this.items_!==null&&(h?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(h){!this.shouldUseTaskManager()&&this.data&&(!h&&this.canShowMore?(_.hcu(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):h&&this.partiallyRenderedItems_.has(this.items_)&&(_.J("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var rM;_.Dw={};
rM=function(){var h=_.wD.apply(this,arguments)||this;h.atStart=!0;h.atEnd=!0;h.startIndex=0;h.endIndex=0;h.scrollCount=0;h.initialStartIndex=0;h.disableScrollEventListener=!1;h.useFloorScrolling=!1;h.isSearch=!1;h.dragging=!1;h.dragMouseStart=0;h.dragOffsetStart=0;h.disableWheelScroll=!1;h.centerListItems=!1;h.offset=0;h.minComponentWidth=0;h.marginWidthRight=0;h.marginWidthLeft=0;h.setButtonsStateRequested=!1;h.itemsVisibilityObserver=null;h.fullyVisibleItemsIndices=[];h.JSC$14397_onWheelScroll=function(E){if(h.isSearch&&
!h.disableWheelScroll&&_.J("desktop_enable_dmpanel_wheel_scroll")){var g=E.shiftKey?Math.abs(E.deltaY)>Math.abs(E.deltaX)?E.deltaY:E.deltaX:E.deltaX;g!==0&&(E.preventDefault(),h.ytLazyListBehavior.fillRemainingListItems(),h.offset+=g,lL(h),h.reposition_())}};
h.onPointerDown=function(E){dDf(h)&&(h.dragMouseStart=E.clientX,h.dragOffsetStart=h.offset,h.dragging=!0)};
h.onPointerMove=function(E){dDf(h)&&h.dragging&&(h.ytLazyListBehavior.fillRemainingListItems(),h.offset=h.dragOffsetStart-(E.clientX-h.dragMouseStart),lL(h),h.reposition_())};
h.onPointerUp=function(){dDf(h)&&(h.dragging=!1)};
return h};
_.f(rM,_.wD);var Cif=function(h){var E=_.UB(h.hostElement).querySelector("#items").children;if(!E)return 0;var g=0;h=_.G(h.fullyVisibleItemsIndices);for(var Z=h.next();!Z.done;Z=h.next())g+=E[Z.value].clientWidth;return g},dDf=function(h){return h.isSearch&&_.J("desktop_enable_dmpanel_click_drag_scroll")};
rM.prototype.created=function(){this.cachedViewportWidth=_.nF("initialInnerWidth")||window.innerWidth;this.JSC$14397_cachedViewportHeight=_.nF("initialInnerHeight")||window.innerHeight;_.nF("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.OW("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
rM.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.J("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();JiM(this)};
rM.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.J("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var h;(h=this.itemsVisibilityObserver)==null||h.disconnect();this.itemsVisibilityObserver=null;var E;(E=this.itemsObserver)==null||E.disconnect()};
var JiM=function(h){var E=_.UB(h.hostElement).querySelector("#scroll-container");if(E){if(!h.itemsVisibilityObserver){var g=window.getComputedStyle(E).marginRight;h.itemsVisibilityObserver=new IntersectionObserver(function(Z){edf(h,Z)},{root:E,
rootMargin:g,threshold:.98})}if(E=_.UB(h.hostElement).querySelector("#items"))h.itemsObserver=new GvF(E,function(Z){qID(h,Z)})}},qID=function(h,E){fml(h)&&(Array.from(E.addedNodes).filter(function(g){return g.nodeType===Node.ELEMENT_NODE}).forEach(function(g){h.itemsVisibilityObserver&&h.itemsVisibilityObserver.observe(g)}),Array.from(E.removedNodes).filter(function(g){return g.nodeType===Node.ELEMENT_NODE}).forEach(function(g){h.itemsVisibilityObserver&&h.itemsVisibilityObserver.unobserve(g)}))},
edf=function(h,E){var g=new Set(h.fullyVisibleItemsIndices);
E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next()){Z=Z.value;var M=Z.target.parentElement;M?(M=Array.from(M.children).indexOf(Z.target),Z.isIntersecting?g.add(M):g.has(M)&&g.delete(M)):_.O$(new _.xX("Parent element not found",Z.target.nodeName))}h.fullyVisibleItemsIndices=Array.from(g).sort(function(W,z){return W-z});
g.size===0?_.O$(new _.xX("No visible entries in horizontal list")):(h.startIndex=h.fullyVisibleItemsIndices[0],h.endIndex=h.fullyVisibleItemsIndices[h.fullyVisibleItemsIndices.length-1])},fml=function(h){h.data?h=(h=h.data)&&h.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===h.itemSizeConstraint:!1:h=!1;
return h};
_.p=rM.prototype;_.p.addScrollEventListeners=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container");h.style.touchAction="pan-y";h.addEventListener("wheel",this.JSC$14397_onWheelScroll);h.addEventListener("pointerdown",this.onPointerDown);h.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.p.removeScrollEventListeners=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container");h.removeEventListener("wheel",this.JSC$14397_onWheelScroll);h.removeEventListener("pointerdown",this.onPointerDown);h.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.p.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.pQ(this,this.setStartIndex,[this.initialStartIndex])};
_.p.reposition_=function(){var h=_.nF("HTML_DIR")=="rtl"?"":"-",E=_.UB(this.hostElement).querySelector("#items");E&&(E.style.transform="translateX("+h+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.p.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.pQ(this,this.setButtonsState_))};
_.p.setButtonsState_=function(){this.setButtonsStateRequested=!1;var h=_.UB(this.hostElement).querySelector("#items").firstElementChild;if(h){this.minComponentWidth||(this.minComponentWidth=NmD(this,h));h=_.UB(this.hostElement).querySelector("#scroll-container").clientWidth;var E=_.UB(this.hostElement).querySelector("#items");E=_.J("kevlar_horizontal_list_scroll_width_killswitch")?E.clientWidth:E.scrollWidth;var g=this.get(this.ytLazyListBehavior.itemsPath,this);if(g){var Z=Math.round(h/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+Z,g.length)-1)}this.ytLazyListBehavior.canShowMore?E+this.minComponentWidth>=this.offset+h&&(this.atEnd=!1):this.atEnd=this.offset+h>=E-20?!0:!1;this.atStart=this.offset<=20}};
_.p.setStartIndex=function(h){if(!this.minComponentWidth){var E=_.UB(this.hostElement).querySelector("#items").firstElementChild;if(!E)return;this.minComponentWidth=NmD(this,E)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*h;lL(this);this.reposition_()};
_.p.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.xi();var h=_.UB(this.hostElement).querySelector("#scroll-container").clientWidth;_.J("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=NmD(this,_.UB(this.hostElement).querySelector("#items").firstElementChild));h=this.useFloorScrolling?Math.floor(h/this.minComponentWidth)||1:Math.round(h/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&t0f(this);this.offset+=fml(this)?
Cif(this):h*this.minComponentWidth;lL(this);this.reposition_();this.scrollCount++};
_.p.prevClick_=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container").clientWidth;h=this.useFloorScrolling?Math.floor(h/this.minComponentWidth)||1:Math.round(h/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=fml(this)?Cif(this):this.minComponentWidth*this.scrollCount-1):this.offset-=fml(this)?Cif(this):h*this.minComponentWidth;this.centerListItems&&t0f(this);lL(this);this.reposition_()};
_.p.onIronResize_=function(){this.resizeSupportEnabled&&_.pQ(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.p.onItemsTransitionEnd_=function(h){_.zw(h)===_.UB(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.p.onChildElementFocus_=function(h){h=h.target.closest("#items > *");var E=_.UB(this.hostElement).querySelector("#scroll-container");if(E.contains(h)){if(_.J("web_horizontal_list_behavior_focus_killswitch"))if(h.offsetLeft<this.offset)this.offset=Math.abs(h.offsetLeft)<h.clientWidth?0:h.offsetLeft;else if(h.offsetLeft+h.clientWidth>this.offset+E.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.xi(),this.offset=h.offsetLeft+h.clientWidth-E.clientWidth;else return;else{var g=_.UB(this.hostElement).querySelector("#items"),
Z=_.nF("HTML_DIR")==="rtl",M=Z?g.clientWidth-h.offsetLeft:h.offsetLeft;g=Z?g.clientWidth-(h.offsetLeft+h.clientWidth):h.offsetLeft+h.clientWidth;var W=Z?M>this.offset+E.clientWidth:M<this.offset,z=Z?g<this.offset:g>this.offset+E.clientWidth,c=Z?W:z;if(Z?z:W)E=Z?g:M,this.offset=Math.abs(E)<h.clientWidth?0:E;else if(c)this.ytLazyListBehavior.fillRemainingListItems(),_.xi(),this.offset=(Z?M:g)-E.clientWidth;else return}lL(this);this.reposition_()}};
_.p.observeShownItems_=function(){this.reset()};
_.p.checkComponentWidthResize=function(){var h=_.UB(this.hostElement).querySelector("#items").firstElementChild;h&&(h=NmD(this,h),this.centerListItems||h!==this.minComponentWidth)&&(this.minComponentWidth=h,this.offset=h*this.scrollCount,this.centerListItems&&t0f(this),lL(this),this.reposition_())};
var NmD=function(h,E){var g=window.getComputedStyle(E).marginRight;g=Math.floor(Number(g.replace("px","")));var Z=window.getComputedStyle(E).marginLeft;Z=Math.floor(Number(Z.replace("px","")));h.centerListItems&&!h.marginWidthRight&&(h.marginWidthRight=g,h.marginWidthLeft=Z);return h.resizeSupportEnabled?E.getBoundingClientRect().width+g:E.offsetWidth+g},lL=function(h){var E=_.UB(h.hostElement).querySelector("#scroll-container").clientWidth,g=_.UB(h.hostElement).querySelector("#items").clientWidth;
h.offset<0?h.offset=0:h.offset+E>=g&&(h.offset=g-E)},t0f=function(h){h.offset-=(_.UB(h.hostElement).querySelector("#scroll-container").clientWidth+h.marginWidthRight-h.minComponentWidth)/2-h.marginWidthLeft};
_.ze.Object.defineProperties(rM.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var h=_.nF("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(h==-1)h=this.JSC$14397_cachedViewportHeight,h=h>1320?5:h>1020?4:h>730?3:h>430?2:1;else if(h==0)return 0;_.OW("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",h-1);h=_.nF("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(h>-1)return h;h=this.cachedViewportWidth;h=h>1600?6:h>1400?5:h>1300?4:h>1090?5:h>870?4:h>660?3:2;_.OW("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
h);return h},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.J("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
rM.prototype.observeShownItems_=rM.prototype.observeShownItems_;rM.prototype.onChildElementFocus_=rM.prototype.onChildElementFocus_;rM.prototype.onItemsTransitionEnd_=rM.prototype.onItemsTransitionEnd_;rM.prototype.onIronResize_=rM.prototype.onIronResize_;rM.prototype.prevClick_=rM.prototype.prevClick_;rM.prototype.nextClick_=rM.prototype.nextClick_;rM.prototype.setButtonsState_=rM.prototype.setButtonsState_;rM.prototype.requestButtonsStateUpdate_=rM.prototype.requestButtonsStateUpdate_;
rM.prototype.reposition_=rM.prototype.reposition_;rM.prototype.reset=rM.prototype.reset;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],rM.prototype,"ytLazyListBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rM.prototype,"atStart",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rM.prototype,"atEnd",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"startIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"endIndex",void 0);_.Y([_.x({value:6}),_.V("design:type",Number)],rM.prototype,"initialCount",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"scrollCount",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"initialStartIndex",void 0);
_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"disableScrollEventListener",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"supportComponentResize",void 0);_.Y([_.x({value:function(){var h=this;return function(){return h.prevClick_()}}}),
_.V("design:type",Function)],rM.prototype,"boundPrevClick",void 0);_.Y([_.x({value:function(){var h=this;return function(){return h.nextClick_()}}}),
_.V("design:type",Function)],rM.prototype,"boundNextClick",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"useFloorScrolling",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"isSearch",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"dragging",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"dragMouseStart",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"dragOffsetStart",void 0);
_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"disableWheelScroll",void 0);_.Y([_.x(),_.V("design:type",Object)],rM.prototype,"centerListItems",void 0);_.Y([_.f3("iron-resize"),_.Nm("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rM.prototype,"onIronResize_",null);_.Y([_.f3("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],rM.prototype,"onItemsTransitionEnd_",null);
_.Y([_.f3("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],rM.prototype,"onChildElementFocus_",null);_.Y([_.Nm("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rM.prototype,"observeShownItems_",null);_.Y([_.DM()],rM);_.Dw.YtdHorizontalListBehavior=[];_.Dw.YtdHorizontalListBehavior.push(_.F3,_.T.YtRendererBehavior,_.wM.YtLazyListBehavior,_.P_.YtdGuideStateAwareBehavior,rM.prototype);var vO$=["APP_STATE","PI"];var SIM=_.uz(["about:blank"]),xDM={pushState:window.history.pushState,replaceState:window.history.replaceState};var mP=function(h){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=h;this.internalPushState=h.pushState.bind(h);this.internalReplaceState=h.replaceState.bind(h)};
mP.prototype.init=function(){this.initialized=!0};
mP.prototype.pushState=function(h,E){this.initialized||this.init();this.internalPushState&&this.internalPushState(h,"",E)};
mP.prototype.replaceState=function(h,E){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(h,"",E)};
mP.prototype.getState=function(){return this.history&&this.history.state};var wDA=function(h){var E=function(){var g=h.apply(this,arguments)||this;g.boundHistoryPushState=!1;g.boundHistoryReplaceState=!1;g.debugInfo={};return g};
_.f(E,h);E.prototype.init=function(){var g=_.q3("IFRAME");_.hh(g,_.BR(SIM));g.sandbox="allow-same-origin";g.style.display="none";this.iframe=g;document.body.appendChild(g);this.bindHistoryStateFunctions();h.prototype.init.call(this)};
E.prototype.bindHistoryStateFunctions=function(){var g=this,Z=[],M;this.iframe&&((M=this.iframe.contentWindow)==null?0:M.history)&&(M=this.iframe.contentWindow.history)&&(Z.push(M),Object.getPrototypeOf(M)&&Z.push(Object.getPrototypeOf(M)));window.history&&Z.push(window.history);M=window.history;Object.getPrototypeOf(M)&&Z.push(Object.getPrototypeOf(M));Z.push(xDM);M=function(z){for(var c=null,I=0;I<Z.length;I++){var B=Z[I][z];if(typeof B==="function"){c=B.bind(window.history);g.debugInfo[z]=I;break}}return c};
if(!this.boundHistoryReplaceState){var W=M("replaceState");W&&(this.internalReplaceState=W,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(M=M("pushState"))&&(this.internalPushState=M,this.boundHistoryPushState=!0)};
return E}(mP),DDM=function(){return wDA.call(this,window.history)||this};
_.f(DDM,wDA);DDM.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var v_=function(h){this.browserHistory=h;this.initialized=!1};
v_.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
v_.prototype.pushState=function(h,E){this.initialized||this.init();this.browserHistory.pushState(h,E)};
v_.prototype.replaceState=function(h,E){this.initialized||this.init();this.browserHistory.replaceState(h,E)};
v_.prototype.handlePopstate=function(h){return h.state};_.lmF=function(h,E,g,Z,M){this.endpoint=h;this.forward=E;this.historyEntry=g;this.JSC$30185_savedComponentState=Z;this.legacyBorder=M===void 0?!1:M};var rif=function(h,E){this.rootData=h;this.scrollTop=E};var Nh=new _.Ps("PAGE_REQUEST_TOKEN"),yun=new _.Ps("FETCH_PBJ_TOKEN");_.H_=new _.Ps("EPHEMERAL_STORE_TOKEN");_.$a=function(h){this.data=Object.assign({},h);var E;(E=this.data.innertubeResponse)==null||delete E.frameworkUpdates};
_.$a.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.zn)()};
_.Ww=function(h){return Object.assign({},h.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var mDC=function(){this.maxSize=100;this.timeToDataCache=new Map};
mDC.prototype.get=function(h){var E=this.timeToDataCache.get(h);E&&(this.timeToDataCache.delete(h),this.timeToDataCache.set(h,E));if(E&&E.rootData&&(_.J("web_use_response_store_for_history_cache")||_.J("mweb_use_new_history_manager"))){var g=_.GF().resolve(_.H_),Z=v0l(E),M=!!Z;if(Z){if(Z.content){var W=KV(g,Z.content);M&&W?E.rootData.response=_.Ww(W):M=!1}Z.player&&(W=KV(g,Z.player),M&&W?E.rootData.playerResponse=_.Ww(W):M=!1);Z.reelSequence&&(g=KV(g,Z.reelSequence),M&&g?E.rootData.reelWatchSequenceResponse=
_.Ww(g):M=!1)}M||(this.timeToDataCache.delete(h),E=void 0)}return E};
mDC.prototype.set=function(h,E){if(E.rootData&&(_.J("web_use_response_store_for_history_cache")||_.J("mweb_use_new_history_manager"))){var g=v0l(E),Z=Object.assign({},E.rootData);g&&(g.content&&E.rootData.response&&(HsC(this,g.content,E.rootData.response),Z.response=null),g.player&&E.rootData.playerResponse&&(HsC(this,g.player,E.rootData.playerResponse),Z.playerResponse=null),g.reelSequence&&E.rootData.reelWatchSequenceResponse&&(HsC(this,g.reelSequence,E.rootData.reelWatchSequenceResponse),Z.reelWatchSequenceResponse=
null));E=new rif(Z,E.scrollTop)}this.timeToDataCache.has(h)?this.timeToDataCache.delete(h):this.timeToDataCache.size>=this.maxSize&&(g=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(g.value));this.maxSize!==0&&this.timeToDataCache.set(h,E)};
mDC.prototype.clear=function(){this.timeToDataCache.clear()};
var v0l=function(h){var E=_.GF().resolve(_.pl(Nh)),g;if((g=h.rootData)==null?0:g.endpoint)return E==null?void 0:eM$(E,h.rootData.endpoint);var Z;_.O$(new _.xX("History snapshot response data does not contain endpoint",(Z=h.rootData)==null?void 0:Z.url));return null},HsC=function(h,E,g){if(h.maxSize>0){var Z;
(h=(Z=g.responseContext)==null?void 0:Z.maxAgeSeconds)&&Number(h)>0&&(Z=_.GF().resolve(_.H_),g=P3(g,h),Z.put(E,new _.$a(g)))}};var $Dl=function(h,E,g){this.endpoint=E;this.JSC$30190_savedComponentState=g===void 0?null:g;this.entryTime=h};var X9q=1;var O3=function(h){var E=function(){var g=h.apply(this,[].concat(_.$E(_.VF.apply(0,arguments))))||this;g.historyEntryTime=0;g.historySnapshotCache=g.createHistoryCache();return g};
_.f(E,h);E.prototype.createHistoryCache=function(){return new mDC};
E.prototype.saveAndReplace=function(g,Z,M){var W=window.location.href;var z=z===void 0?{}:z;var c=(c=this.browserHistory.getState())&&c.entryTime?c.entryTime:Yx$();g=this.createNewHistoryEntry(g,z,c);this.saveSnapshot(c,Z,M);this.replaceState(g,W||window.location.href)};
E.prototype.saveAndPush=function(g,Z,M,W,z){z=z===void 0?{}:z;this.saveSnapshot(this.historyEntryTime,M,W);M=this.historySnapshotCache;W=this.historyEntryTime;var c=M.timeToDataCache.keys();c=_.G(c);for(var I=c.next();!I.done;I=c.next())I=I.value,I>W&&M.timeToDataCache.delete(I);Z=this.createNewHistoryEntry(Z,z);this.pushState(Z,g)};
E.prototype.saveSnapshot=function(g,Z,M){this.historySnapshotCache.set(g,new rif(Z,M))};
E.prototype.createNewHistoryEntry=function(g,Z,M){M=M===void 0?Yx$():M;return new $Dl(M,g,Z)};
E.prototype.handlePopstate=function(g){var Z=h.prototype.handlePopstate.call(this,g),M=null,W=null,z=!1,c=null;Z&&Z.entryTime&&(c=this.historySnapshotCache.get(Z.entryTime)||null,z=Z.entryTime>this.historyEntryTime,this.historyEntryTime=Z.entryTime,M=Z.endpoint,W=Z.JSC$30190_savedComponentState);this.handleHistoryCacheLoad(new _.lmF(M,z,c,W),g);return Z};
E.prototype.pushState=function(g,Z){Number(g==null?void 0:g.entryTime)>=0&&(this.historyEntryTime=g.entryTime);h.prototype.pushState.call(this,g,Z)};
E.prototype.replaceState=function(g,Z){Number(g==null?void 0:g.entryTime)>=0&&(this.historyEntryTime=g.entryTime);h.prototype.replaceState.call(this,g,Z)};
E.prototype.handleHistoryCacheLoad=function(){};
return E}(v_),K7A=function(){var h=O3.call(this,new DDM)||this;
h.dispatchElement=null;h.entryIndex=0;return h};
_.f(K7A,O3);_.p=K7A.prototype;_.p.init=function(h){h=h===void 0?!0:h;O3.prototype.init.call(this);this.initialized||(h||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.p.handlePopstate=function(h){var E=null;h.state||(E="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return O3.prototype.handlePopstate.call(this,h);var g=new CustomEvent("yt-history-pop",{cancelable:!0});_.BX(this.dispatchElement,"yt-history-pop",[g,{errorMsg:E}]);_.U7(this.dispatchElement,"yt-close-all-popups-action");if(!g.defaultPrevented){g=_.GF().resolve(_.p4);E=g.getCurrentData();var Z=g.getCurrentPage();g=0;Z?(Z=_.BX(this.dispatchElement,"yt-get-page-offset",
[Z]),Z.length>0&&(g=Z[0])):_.O$(new _.xX("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:E?E.page:"undefined"}));E&&(E.csn=_.sH());this.saveSnapshot(this.historyEntryTime,E,g)}return O3.prototype.handlePopstate.call(this,h)};
_.p.handleHistoryCacheLoad=function(h,E){h.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.G(_.U7(this.dispatchElement,"yt-history-will-navigate",[E])).next().value||_.BX(this.dispatchElement,"yt-history-load",[E,h]))};
_.p.pushState=function(h,E){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var g=new _.xX("history.pushState is not a function",this.getDebugString());_.$W(g)}O3.prototype.pushState.call(this,h,E)};
_.p.replaceState=function(h,E){if(!this.browserHistory.boundHistoryReplaceState){var g=new _.xX("history.replaceState is not a function",this.getDebugString());_.$W(g)}O3.prototype.replaceState.call(this,h,E)};
_.p.saveAndPush=function(h,E,g,Z,M){M=M===void 0?{}:M;g&&(g.csn=_.sH());O3.prototype.saveAndPush.call(this,h,E,g,Z,M)};
_.p.getDebugString=function(){var h=[];this.initialized&&h.push("i");this.browserHistory.boundHistoryReplaceState&&h.push("bhr");this.browserHistory.boundHistoryPushState&&h.push("bhs");"replaceState"in this.browserHistory.debugInfo&&h.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&h.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&h.push("ei:"+String(this.entryIndex));return h.join(",")};
_.nV=function(h,E){h.init(!0);var g=h.browserHistory.getState();h.replaceState(g,RJ(E))};
K7A.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.XJ=new _.Ps("DESKTOP_HISTORY_MANAGER_TOKEN");var Osn=[10,20,30,40,50,60],Ya=function(){this.currentPartitionIndex=0},n0l=function(h){bJk({mainAppWeb:_.ZM(),
survivalSli:{partitionMinute:h,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},XDA=function(h){bJk({mainAppWeb:_.ZM(),
survivalSli:{partitionMinute:h,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},YIl=function(h){return h.currentPartitionIndex>=0&&h.currentPartitionIndex<Osn.length?Osn[h.currentPartitionIndex]:-1},slM=function(h){return h.currentPartitionIndex>0&&h.currentPartitionIndex-1<Osn.length?Osn[h.currentPartitionIndex-1]:-1};
Ya.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var h=slM(this);h>0&&XDA(h);h=YIl(this);h>0&&n0l(h);V0F(this)}};
var V0F=function(h){var E=YIl(h);if(E>0){var g=slM(h);g<0&&(g=0);h.intervalId=_.KP.addJob(function(){var Z=slM(h);Z>0&&XDA(Z);Z=YIl(h);Z>0&&n0l(Z);V0F(h)},3,(E-g)*6E4);
h.currentPartitionIndex+=1}else h.currentPartitionIndex=-1};var kID=function(){this.skipNextNavigation=!1},yiD=function(h,E,g){if(!E)return!1;
if(h.skipNextNavigation)return h.skipNextNavigation=!1;if(_.e(g,_.yX))return!1;var Z,M,W;if((Z=_.e(g,_.tk))==null?0:(M=Z.browseEndpointContextSupportedConfigs)==null?0:(W=M.browseEndpointContextMainConfig)==null?0:W.skipConfirmation)return!1;var z;return((z=_.e(E.commandMetadata,_.qH))==null?void 0:z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
kID.prototype.showConfirmationDialog=function(h,E){this.navigateParams=E;this.customConfirmationCommand?_.GF().resolve(_.zF).resolveCommand(this.customConfirmationCommand):(E={openPopupAction:{popup:{confirmDialogRenderer:{title:_.MR(_.NH("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.MR(_.NH("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.MR(_.NH("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.MR(_.NH("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Tq.getInstance().triggerAction("yt-open-popup-action",E,h))};
kID.prototype.cancelPendingNavigation=function(){var h;((h=this.navigateParams)==null?void 0:h.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var F7A=function(){},TmB=function(h,E,g,Z,M,W,z){g=g===void 0?{}:g;
z=z===void 0?{}:z;var c=_.Fp.instance,I,B=(I=_.e(E,_.yX))==null?void 0:I.url;return B?WV$(c,B,g,window.location.href,function(U,L){AiB(h,U,L,!1,!0,g,W,Z)},function(){return!1}):ku(c,E,g,window.location.href,xY(E),function(U,L){AiB(h,U,L,!1,!0,g,W,Z)},M,z)},AiB=function(h,E,g,Z,M,W,z,c){if(!h.JSC$14455_chunkHandler)if(g.page==="learning_journey_watch"&&_.J("web_enable_canvas_on_learning_journey")){var I=!_.e(c,_.tk);
M=M||Z;if(I)if(M){if(_.J("kevlar_continue_playback_without_player_response")){var B;var U=(B=_.e(c,_.MH))==null?void 0:B.videoId}Z={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:U},tempData:W}}else Z={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else Z={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};h.JSC$14455_chunkHandler=new U1A(_.zD,Z,z,I,M)}else if(g.page==="watch"||g.page==="learning_journey_watch")if(M||Z){if(_.J("kevlar_continue_playback_without_player_response")){var L;
I=(L=_.e(c,_.MH))==null?void 0:L.videoId}h.JSC$14455_chunkHandler=new d1M(_.zD,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:Z,previousVideoId:I},tempData:W},z)}else h.JSC$14455_chunkHandler=new P7D(_.zD);else g.page==="shorts"&&M&&!Z?h.JSC$14455_chunkHandler=new jyf(_.zD,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:W},z):h.JSC$14455_chunkHandler=new Bwm(z);h.JSC$14455_chunkHandler.processChunk({endpoint:E,data:g});return h.JSC$14455_chunkHandler.fG.promise},
bsD=function(h,E,g,Z,M){(g=_.GSD(g))&&AiB(h,E,g,!1,!0,Z,void 0,M)};var uwH=function(){this.pendingNavigationPromise=null};
_.p=uwH.prototype;_.p.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.p.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.p.addEventListener=function(){throw Error("Eh");};
_.p.dispatchEvent=function(){throw Error("Eh");};
_.p.removeEventListener=function(){throw Error("Eh");};var QlD=new _.Ps("APP_ROOT");var Vk4=null;var hBf=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],s3=function(){_.ms.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];Etk(this)};
_.f(s3,_.ms);s3.prototype.verifyUser=function(){var h=Etk(this),E=h.logout;if(!h.sessionChange)return!0;this.dispatchEvent("ytsessionchange");E&&this.dispatchEvent("ytuserinvalid");return!1};
var Etk=function(h){var E=hBf.map(function(M){var W;return(W=_.qd.get(M))!=null?W:""}),g=E.some(function(M,W){return h.sessionCookies&&h.sessionCookies[W]!==""&&M===""}),Z=E.some(function(M,W){return h.sessionCookies&&h.sessionCookies[W]!==M});
h.sessionCookies=E;return{logout:g,sessionChange:Z}};
s3.prototype.clearTimeout=function(){this.scheduledJobId&&(_.KP.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var bT4=new _.Ps("POSTMESSAGE_TUNNEL_TOKEN");var FNO=["/parent_tools","/file_download","/artist_roster"],hdz=[Odl,n$H,Xaf,sWf,Y4m,KZD,VqH,kul];var VW=new _.Ps("NAVIGATION_CONFIRMATION_SERVICE");var gtk="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /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(" "),Zkf=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],ka=function(h,E){this.pendingNavigationPromise=null;this.JSC$14478_clientRoot=h;this.historyManager=E;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 F7A;this.debugString=h.is;h={"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};_.bp(_.Tq.getInstance(),h,this.JSC$14478_clientRoot)},zBD,a1F,cpD,ikM,GaF;
_.f(ka,uwH);ka.prototype.reload=function(){_.gD(window.location.href)};
var cZf=function(h){h.currentEndpoint&&_.e(h.currentEndpoint,_.D9)?h.reload():h.currentEndpoint&&h.navigate(h.currentEndpoint,!0,void 0,{disableCache:!0})};
ka.prototype.navigate=function(h,E,g,Z,M,W,z,c){E=E===void 0?!1:E;g=g===void 0?{}:g;Z=Z===void 0?{}:Z;var I=_.GF().resolve(VW),B;if(!z&&yiD(I,(B=this.currentEndpoint)!=null?B:void 0,h))return I.showConfirmationDialog(this.JSC$14478_clientRoot.parentElement,{endpoint:h,reload:E,params:g,tempData:Z,requestType:M,createScreenConfig:W}),!1;var U=_.RS();_.PZ(U,"eocs")||U.parkOrScheduleJob(function(){U.processSignal("eocs")},10,"eor");
k24();z=xY(h);I=Z.autonav==="1";B=_.sH();s3.instance||(s3.instance=new s3);var L=s3.instance.verifyUser(),d;if(_.J("enable_dark_theme_only_on_shorts")){var C=document.documentElement.hasAttribute("dark"),q=_.Hp(!0)==="USER_INTERFACE_THEME_DARK";if(z==="shorts"){if(!C)if(_.J("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var w;_.gD((w=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:w.url,void 0,void 0,window.top)}}else{var r;_.gD(_.Qy((r=_.e(h==
null?void 0:h.commandMetadata,_.qH))==null?void 0:r.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.J("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!C){var v;_.gD(_.Qy((v=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:v.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(q!==C){var H;_.gD(_.Qy((H=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:H.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(z==="watch"){if(MSH(_.GF().resolve(_.Yu),
h)&&(L||_.J("fix_miniplayer_navigation_killswitch")))return!1;_.J("block_all_player_prefetch_requests")||(d=zcH(_.Zt(_.Ac),h,I))}else{var u,k=(u=_.e(this.currentEndpoint,_.MH))==null?void 0:u.videoId;k&&_.QU.getInstance().then(function(Cd){Cd&&Cd.set("yt-miniplayer-shown-video-id",k)})}d&&(g.frags=d.missingFragments_.join(","));
w=null;var y;r=(y=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:y.ignoreNavigation;if(!r)if(_.J("kevlar_command_url")){var A;w=(A=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?void 0:A.url}else w=_.O4W(h,g);if(w&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&w==this.lastNavigationUrl)return _.nZ({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Ie(Te(),"CANCELLED")}w&&(this.lastNavigationUrl=w);t3W();_.OW("IS_HOMEPAGE_COLD",
!1);_.OW("IS_RESULTS_PAGE_COLD",!1);_.OW("IS_WATCH_PAGE_COLD",!1);h.loggingUrls&&h.loggingUrls.forEach(function(Cd){Cd.baseUrl&&_.At(Cd.baseUrl)});
_.M0z(h,W?W.layer:0)&&_.J("kevlar_flush_logs_on_away_navigation")&&_.HT();if(E0z(h))return!1;XGF(z,M);if(!w)return r||_.O$(new _.xX("Can't construct url for endpoint",h)),_.Ie(Te(),"FAILURE"),!1;_.yRz();y=h&&_.e(h,_.tk)&&_.e(h,_.tk).browseId.startsWith("UC");g=(A=_.J("enable_dark_theme_only_on_shorts")&&z==="shorts"?!1:_.$Y()&&document.documentElement.hasAttribute("dark")!==_.vp())?{themeRefresh:1}:{};A&&!_.Nd()&&_.Hp()==="USER_INTERFACE_THEME_DARK"&&(g.theme="dark");y=A||W5l(w)&&!y&&!_.J("kevlar_disable_url_allowlist");
L||(y=!0);if(y||_.nF("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var E4;var iO=(E4=window.top)==null?void 0:E4.location.href}catch(Cd){var RW;iO=(RW=Cd)==null?void 0:RW.message}_.O$(new _.xX("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:iO}))}h=_.J("kevlar_redirect_on_window_killswitch")?window.top:window;EB(w);_.gD(_.Qy(w,g),void 0,void 0,h);_.Ie(Te(),"ABORTED");return!1}_.J("kevlar_early_popup_close")&&_.BX(this.JSC$14478_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14455_chunkHandler=void 0;var NN;iO=xY((NN=this.currentEndpoint)!=null?NN:void 0);(NN=z==="shorts"&&iO==="shorts")||_.erz();_.k3(aUV)("nr",void 0);I&&_.nZ({webInfo:{navigationReason:"an"}});h.clickTrackingParams&&(Z.itct=h.clickTrackingParams,Z.csn=B);OH4(Z);Z.endpoint=JSON.stringify(h);_.J("enable_unknown_lact_fix_on_html5")&&(_.GF().resolve(_.DC),Z.lact=_.zq());_.Kt.isEmpty(Z)||_.zG(w,Z);!_.J("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(W=Object.assign({},{layer:0},W,{parentLayer:3}));this.pendingNavigationPromise=W=TmB(this.pageFetcher,h,Z,this.currentEndpoint,this.JSC$14478_isNetworkPromiseStale.bind(this),W,c);W=W.then(this.handleNavigateSuccess.bind(this,W,h,d,Z),this.handleNavigateFail.bind(this,W,h));_.sU().navigationFinishPromise=W;E={endpoint:h,pageType:z,url:RJ(w),reload:!!E,noProgressBar:NN};M&&(E.type=M);this.fireEvent("yt-navigate-start",E);d&&bsD(this.pageFetcher,h,d,Z,this.currentEndpoint);
return!0};
ka.prototype.JSC$14478_isNetworkPromiseStale=function(h){return h!=this.pendingNavigationPromise};
var pLk=function(h,E,g,Z,M){var W=xY(E);E={endpoint:E,pageType:W};M&&(E.errorMessage=M);_.O$(g);E.navigationDoneMs=_.s7("nd");E.navigationErrorReason=Z;h.fireEvent("yt-navigate-error",E)};
ka.prototype.handleNavigateFail=function(h,E,g){var Z=void 0;g instanceof _.Y7&&(Z=g,$IV(g));if(this.JSC$14478_isNetworkPromiseStale(h))return _.$B(Z);_.Ie(Te(),"FAILURE");pLk(this,E,g,"101");return _.$B(g)};
ka.prototype.handleNavigateSuccess=function(h,E,g,Z,M){if(this.JSC$14478_isNetworkPromiseStale(h))return _.dC();this.pendingNavigationPromise=null;if(!M)return E=new _.xX("Missing data in response for navigation endpoint",E),_.$B(E);if(M.reload)return window.location.reload(!0),_.dC();g&&(h={},_.Kt.extend(h,_.GSD(g),M),M=h);var W,z;g=(W=M)==null?void 0:(z=W.timing)==null?void 0:z.responseStart;g!=null&&_.s7("srt",g);_.s7("pdc");var c,I;W=(c=M)==null?void 0:(I=c.timing)==null?void 0:I.info;W!=null&&
(c=_.k3(_.IU4)(W),_.nZ(c));_.Ie(Te(),"SUCCESS");GaF(this,E,M,1,Z);return _.dC()};
var W5l=function(h){var E=h;_.J("kevlar_no_redirect_to_classic_2_ks")||(E=(new _.WX(h)).getPath());if(E==="/"||E==="/red")return!1;var g=!0;gtk.forEach(function(Z){h.indexOf(Z)===0&&(g=!1)});
Zkf.forEach(function(Z){var M=Z.url;_.J(Z.expFlag)&&h.indexOf(M)===0&&(g=!1)});
return g};
ka.prototype.publishPageData=function(h){this.fireEvent("yt-page-data-fetched",{pageData:h})};
zBD=function(h,E,g,Z,M,W){var z=null;E.page!=="watch"&&E.page!=="learning_journey_watch"||Z?E.filler||_.BX(h.JSC$14478_clientRoot,"yt-stop-old-player",[E]):z=AiB(h.pageFetcher,M,E,g,!1,W,void 0,h.currentEndpoint);if(z)return z.then(h.publishPageData.bind(h,E));h.publishPageData(E);return _.dC()};
a1F=function(h,E,g){var Z=null;if(!g)return Z=new _.xX("Empty data",h.debugString,E);var M=g.response;if(!M)return Z;var W={endpointType:xY(E)||"unknown"};M.responseContext?(M=M.responseContext.errors)&&(Z=new _.xX("Errors in response context",h.debugString,E,M,W)):Z=M.error||M.errorMetadata?new _.xX("Errors in response",h.debugString,E,M.error,M.errorMetadata,W):new _.xX("responseContext missing",h.debugString,E,Object.keys(M).sort().join(","),W);var z,c,I,B;if(h=g==null?void 0:(z=g.response)==null?
void 0:(c=z.responseContext)==null?void 0:(I=c.webResponseContextExtensionData)==null?void 0:(B=I.webResponseContextDebugData)==null?void 0:B.debugErrorMessages)for(z=0;z<h.length;z++);return Z};
cpD=function(h){var E,g,Z,M;return h==null?void 0:(E=h.response)==null?void 0:(g=E.responseContext)==null?void 0:(Z=g.errors)==null?void 0:(M=Z.error)==null?void 0:M["0"]};
ikM=function(h,E){var g;if(g=E.url&&!E.url.startsWith("/clip"))g=E.url,g=!_.J("webfe_parse_debug_param_in_resolveurl_service")&&h.searchDebugUrlMatcher.test(g)||yT$(g)?!0:!1;if(g)yT$(E.url)&&_.uI(window.location.href).themeRefresh?(E=_.aa(E.url,"themeRefresh"),_.nV(h.historyManager,E)):E.url&&!OTu(E.url)&&_.nV(h.historyManager,E.url);else if(E.endpoint){var Z,M,W;(g=(Z=E.endpoint)==null?void 0:(M=Z.commandMetadata)==null?void 0:(W=M.webCommandMetadata)==null?void 0:W.url)&&!OTu(g)&&_.nV(h.historyManager,
g);g&&E.url&&g!=E.url&&!E.url.match("playnext=1")&&new _.xX("Response url mismatch in response data",h.debugString,g,E.url)}};
_.otD=function(h,E,g,Z,M,W,z,c){W=W===void 0?!1:W;var I=_.GF().resolve(VW),B;if(!c&&yiD(I,(B=h.currentEndpoint)!=null?B:void 0,E))return I.showConfirmationDialog(h.JSC$14478_clientRoot.parentElement,{endpoint:E,data:g,navigationType:Z,tempData:M,isMiniplayer:W,isForwardHistoryNavigation:z==null?void 0:z.forward}),_.dC();h.pageFetcher.JSC$14455_chunkHandler=void 0;return GaF(h,E,g,Z,M,W)};
GaF=function(h,E,g,Z,M,W){W=W===void 0?!1:W;h.isMiniplayerExpansion=W;var z=Z===2;h.currentEndpoint=E;h.numNavigations++;h.numNavigations&&(N_z.navigationCount=h.numNavigations);_.OW("NUM_NAV",h.numNavigations);var c=a1F(h,E,g);if(c)return pLk(h,E,c,"102",cpD(g)),_.$B(c);var I,B,U,L;c=g.rootVe||(g==null?void 0:(I=g.response)==null?void 0:(B=I.responseContext)==null?void 0:(U=B.webResponseContextExtensionData)==null?void 0:(L=U.ytConfigData)==null?void 0:L.rootVisualElementType);!z&&g&&ikM(h,g);var d,
C;I=g==null?void 0:(d=g.response)==null?void 0:(C=d.responseContext)==null?void 0:C.maxAgeSeconds;if(!z&&!isNaN(I)){var q;_.J("kevlar_use_response_ttl_to_invalidate_cache")?q=(0,_.zn)()+1E3*I:_.J("kevlar_always_invalidate_cache")&&(q=0);isNaN(q)||(g.expirationTime=q)}_.Zt(_.Ac).prefetchCache_.clear();z||g.page!=="watch"||g.type!=="reduced"&&Z!==1?Z=zBD(h,g,z,!!W,E,M):(h.publishPageData(g),Z=_.dC());M=Z.then(function(){var w=xY(E);w={endpoint:E,pageType:w,fromHistory:z,response:g};w.navigationDoneMs=
_.s7("nd");h.fireEvent("yt-navigate-finish",w)});
g.csn&&c&&g.clientSideGrafts&&Z.then(h.attachClientSideGrafts.bind(h,g,_.YN()));return M};
_.p=ka.prototype;_.p.attachClientSideGrafts=function(h,E){h.clientSideGrafts&&E&&h.clientSideGrafts.forEach(function(g){if(E&&g){var Z=_.rp(g);_.J("combine_ve_grafts")?_.SQ().graftServerVe(g,E):_.uw(h.csn,E,Z)}})};
_.p.handleSignalActionHistoryBack=function(){window.history.back()};
_.p.handleSignalActionCloseWindow=function(){window.close()};
_.p.handleSignalActionReloadPage=function(){this.reload()};
_.p.handleSignalActionSoftReloadPage=function(){cZf(this)};
_.p.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.p.fireEvent=function(h,E){h=new CustomEvent(h,{bubbles:!0,cancelable:!1,composed:!0,detail:E});this.dispatchEvent(h)};
_.p.addEventListener=function(h,E){this.JSC$14478_clientRoot.addEventListener(h,E)};
_.p.dispatchEvent=function(h){return this.JSC$14478_clientRoot.dispatchEvent(h)};
_.p.removeEventListener=function(h,E){this.JSC$14478_clientRoot.removeEventListener(h,E)};
ka[R2]=[QlD,_.XJ];_.zM$=new mu("browse","h8y2qb");_.aBZ=new mu("search","JzFVk");_.cJa=new mu("shorts","xwEKAe");_.ic$=new mu("watchFixie","nmfa2d");_.oG4=new mu("watchFlexy","CF909");_.IBN=new mu("watchGrid","Tm0L3c");_.RMu=new mu("watchLearningJourney","L3n37");var I1n;var RBf=function(){return _.D.apply(this,arguments)||this};
_.f(RBf,_.D);_.ze.Object.defineProperties(RBf,{template:{configurable:!0,enumerable:!0,get:function(){if(I1n===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);I1n=h}h=I1n;return h}}});
_.Y([_.t(Rdf.YtPlayerBehavior),_.V("design:type",Object)],RBf.prototype,"ytPlayerBehavior",void 0);_.Y([_.K({is:"ytd-player"})],RBf);var PAH;var BRA;var UVm;var yW=function(){var h=_.D.apply(this,arguments)||this;h.forceModernIconButton=!1;h.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return h};
_.f(yW,_.D);yW.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]]"}}}}}};
yW.prototype.handleAccountLinkingStateChangedCommand=function(h){if(h=_.e(h,mlA)){var E,g=(E=this.data)==null?void 0:E.providerKey;E=h.providerKey;g&&E&&g.id===E.id&&g.subject===E.subject&&(h=h.linked,h!==void 0&&(this.set("data.linked",h),this.notifyPath("data.linked"),_.J("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(h)))}};
yW.prototype.setPlayerAccountLinkState=function(h){var E=new Tgn;b2n(E,FCA(new y9D,h));var g=_.zD();g&&g.getPlayerPromise().then(function(Z){Z.setAccountLinkState(_.lJ(E.JSC$12173_serializeBinary(),4));Z.updateAccountLinkingConfig(h)})};
yW.prototype.handleShowAccountLinkDialog=function(){var h=this.get("button.buttonRenderer.command");h&&_.JT([h],this.hostElement)};
_.ze.Object.defineProperties(yW.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}}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],yW.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yW.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],yW.prototype,"overrides",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],yW.prototype,"forceModernIconButton",void 0);_.Y([_.x({value:"bottom"}),_.V("design:type",String)],yW.prototype,"buttonTooltipPosition",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],yW.prototype,"forceIconButton",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yW.prototype,"disableTextTransform",void 0);
_.Y([_.S("data","data.linked","data.isWarning"),_.V("design:type",Object),_.V("design:paramtypes",[])],yW.prototype,"button",null);_.Y([_.K({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],yW);
_.X(yW,"ytd-account-link-button-renderer",function(){if(UVm!==void 0)return UVm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return UVm=h},{mode:1});var L5f;var jPm=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],FJ=function(){return _.D.apply(this,arguments)||this};
_.f(FJ,_.D);FJ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
FJ.prototype.updateButtonActiveState=function(){var h=this,E=!!jPm.find(function(g){return h.currentState===g});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.J("enable_web_delhi_icons")&&(E=!1);this.button&&(this.button.isPressed=E)};
_.ze.Object.defineProperties(FJ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.playlistLoopStateEntity)==null?void 0:h.state)||((E=this.data)==null?void 0:E.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var h=void 0,E;if(this.currentState&&((E=this.data)==null?0:E.states)){E=_.G(this.data.states);for(var g=E.next();!g.done;g=E.next()){g=_.e(g.value,_.hem);var Z=void 0;if(((Z=g)==null?void 0:Z.state)===this.currentState){h=g;break}}}return h}}});
FJ.prototype.updateButtonActiveState=FJ.prototype.updateButtonActiveState;_.Y([_.t(_.aF),_.V("design:type",Object)],FJ.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.isa}),_.V("design:type",Object)],FJ.prototype,"playlistLoopStateEntity",void 0);_.Y([_.x(),_.V("design:type",Object)],FJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],FJ.prototype,"forceIconOnly",void 0);_.Y([_.Sg("ytd-button-renderer"),_.V("design:type",_.tg)],FJ.prototype,"button",void 0);
_.Y([_.S("data","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],FJ.prototype,"currentState",null);_.Y([_.Nm("currentButtonStateRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FJ.prototype,"updateButtonActiveState",null);_.Y([_.S("currentState"),_.V("design:type",Object),_.V("design:paramtypes",[])],FJ.prototype,"currentButtonStateRenderer",null);
_.Y([_.K({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],FJ);
_.X(FJ,"ytd-playlist-loop-button-renderer",function(){if(L5f!==void 0)return L5f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return L5f=h},
{mode:1});var dVf;var CAf=_.NH("DOWNLOAD",{},"Download"),JpF=_.NH("DOWNLOADING",{},"Downloading"),eBD=_.NH("DOWNLOADED",{},"Downloaded"),qdm=_.NH("RETRY",{},"Retry"),AS=function(){var h=_.D.apply(this,arguments)||this;h.forceIconButton=!1;h.forceIconOnly=!1;h.overrides=!1;h.buttonTooltipPosition=!1;h.styleActionButton=!1;h.disableTextTransform=!1;h.downloadProgress=0;h.isDownloadComplete=!1;h.isHidden=!0;h.transferState="TRANSFER_STATE_UNKNOWN";h.isVideoDeletedByUser=!1;h.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return h};
_.f(AS,_.D);_.p=AS.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var h;(h=this.data)!=null&&h.text||(h=_.y7(_.Gv().getState(),this.videoId),this.updateButtonState(h))};
_.p.computeVideoId=function(h){return h};
_.p.computePlayerStateEntityKey=function(h){return h};
_.p.showHideButton=function(){this.updateButtonVisibility()};
_.p.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var h;((h=this.playerStateEntity)==null?void 0:h.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(h){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==JpF||!_.D$(h))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(h){case "TRANSFER_STATE_UNKNOWN":h=CAf;var E="OFFLINE_DOWNLOAD";var g="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":h=qdm;E="OFFLINE_DOWNLOAD";g="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":h=eBD;E="OFFLINE_PIN";g="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":h=
JpF;E="OFFLINE_DOWNLOADING_ZERO";g="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":h=qdm;E="OFFLINE_DOWNLOAD";g="ACTION_RETRY";break;default:h=CAf,E="OFFLINE_DOWNLOAD",g="ACTION_ADD"}this.isVideoDeletedByUser&&(h=CAf,E="OFFLINE_DOWNLOAD",g="ACTION_ADD");var Z=Object.assign({},this.data);Z.text=_.MR(h);Z.tooltip=h;Z.icon={iconType:E};Z.size="SIZE_DEFAULT";Z.style="STYLE_DEFAULT";_.e(Z.command,_.JU)&&(_.e(Z.command,_.JU).action=g);this.set("data",Z)}};
_.p.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var h="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?h="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?h="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?h="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?h="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?h="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(h="OFFLINE_PIN",this.isDownloadComplete=!0);var E;h!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.text=_.MR(JpF),E.tooltip=JpF,E.icon={iconType:h},_.e(E.command,_.JU)&&(_.e(E.command,_.JU).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
AS.prototype.updateProgress=AS.prototype.updateProgress;AS.prototype.onTransferStateChanged=AS.prototype.onTransferStateChanged;AS.prototype.showHideButton=AS.prototype.showHideButton;AS.prototype.dataChanged=AS.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],AS.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"forceIconButton",void 0);
_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"forceIconOnly",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"overrides",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"buttonTooltipPosition",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"styleActionButton",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"disableTextTransform",void 0);
_.Y([_.x({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.V("design:type",String)],AS.prototype,"videoId",void 0);_.Y([_.x({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.V("design:type",String)],AS.prototype,"playerStateEntityKey",void 0);_.Y([_.x(),_.V("design:type",Object)],AS.prototype,"data",void 0);_.Y([_.x({selector:Aj,selectorArgs:["videoId"]}),_.V("design:type",Object)],AS.prototype,"downloadProgress",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],AS.prototype,"isDownloadComplete",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],AS.prototype,"isHidden",void 0);_.Y([_.x({selector:_.y7,selectorArgs:["videoId"]}),_.V("design:type",String)],AS.prototype,"transferState",void 0);_.Y([_.x({selector:_.qk$,selectorArgs:["videoId"]}),_.V("design:type",Object)],AS.prototype,"isVideoDeletedByUser",void 0);
_.Y([_.x({selector:Luz,selectorArgs:["videoId"]}),_.V("design:type",Object)],AS.prototype,"offlineabilityState",void 0);_.Y([_.x({selector:EI4,selectorArgs:["playerStateEntityKey"]}),_.V("design:type",Object)],AS.prototype,"playerStateEntity",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],AS.prototype,"showTooltips",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],AS.prototype,"sendCommandWhenDisabled",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],AS.prototype,"disabled",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AS.prototype,"dataChanged",null);_.Y([_.lq("offlineabilityState","playerStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AS.prototype,"showHideButton",null);
_.Y([_.lq("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AS.prototype,"onTransferStateChanged",null);_.Y([_.lq("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AS.prototype,"updateProgress",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],AS);
_.X(AS,"ytd-download-button-renderer",function(){if(dVf!==void 0)return dVf;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return dVf=h},{mode:2});var f1f;var NRl,tSM=function(){if(NRl!==void 0)return NRl;var h=document.createElement("template");_.N(h,'\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 NRl=h};var SdB=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live"),xVn=_.cx("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,T3=function(){var h=_.D.apply(this,arguments)||this;h.isPressed=!1;h.forceIconButton=!1;h.forceIconOnly=!1;h.forceModernIconButton=!1;h.alignByText=!1;h.isShorts=!1;h.animatedText=!1;h.shouldAnimate=!1;h.JSC$14516_browserSupportsAnimation=_.J("web_supports_animations_api");h.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};h.onTap=function(){var E;if((E=h.data)==null||!E.defaultNavigationEndpoint){var g;E=!((g=h.data)==null?0:g.isToggled);var Z;if((Z=h.data)==null||!Z.preventAutoToggle){h.shouldAnimate=!1;h.disableTextUpdateJobId&&_.KP.cancelJob(h.disableTextUpdateJobId);h.disableTextUpdateJobId=_.KP.addLowPriorityJob(function(){h.disableTextUpdateJobId=void 0},xVn);
var M;h.set("data.isToggled",!((M=h.data)==null?0:M.isToggled));g=h.getInnertubeIcon();Z={toggled:E,actions:{}};g&&(Z.actions[g.toLowerCase()]=E);_.Ra(h.hostElement,"yt-toggle-button",Z)}}};
return h};
_.f(T3,_.D);_.p=T3.prototype;_.p.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.KP.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.toggle=function(h){var E;this.set("data.isToggled",h!==void 0?h:!((E=this.data)==null?0:E.isToggled))};
_.p.handleUpdateToggleButtonStateCommand=function(h){if(this.data){h=_.e(h,V_M);var E,g,Z,M=(E=this.data)==null?void 0:(g=E.toggleButtonSupportedData)==null?void 0:(Z=g.toggleButtonIdData)==null?void 0:Z.id;M&&h&&M===(h==null?void 0:h.buttonId)&&this.set("data.isToggled",h.toggled)}};
_.p.handleUpdateToggleButtonTextAction=function(h){if(this.data){h=_.e(h,WlD);var E,g,Z,M=(E=this.data)==null?void 0:(g=E.toggleButtonSupportedData)==null?void 0:(Z=g.toggleButtonIdData)==null?void 0:Z.id;M&&h&&M===(h==null?void 0:h.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=h.defaultNumericalValue,this.set("data.defaultText",h.defaultText),this.set("data.toggledText",h.toggledText),this.shouldAnimate=!1)}};
_.p.getInnertubeIcon=function(){var h=this.data;if(h){var E,g,Z=((E=h.defaultIcon)==null?0:E.iconType)?(g=h.defaultIcon)==null?void 0:g.iconType:null,M,W;E=((M=h.toggledIcon)==null?0:M.iconType)?(W=h.toggledIcon)==null?void 0:W.iconType:Z;return h.isToggled?E:Z}};
_.p.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ze.Object.defineProperties(T3.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h={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$14516_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var E=h.renderer;var g=h.element;var Z=h.toggled;var M=h.onTapCallback;var W=h.commandClientArgs;var z=h.overrides;var c=h.forceIcon;var I=h.forceModernIconButton;var B=h.forceDisabled;var U=h.useAnimatedText;var L=h.animatedTextProps;h=Piz(E,Z);c=!E.defaultIcon||!c&&E.defaultText?E.defaultIcon?"leading":void 0:I?"icon-only":"icon-only-40";c==="icon-only-40"&&(h.type="text");var d;I=Object;var C=I.assign,q;a:switch((q=
E.style)==null?void 0:q.styleType){case "STYLE_COMPACT_GRAY":q={size:"S"};break a;default:q={size:"M"}}var w=!!Z;var r=(r=Z&&E.toggledText||E.defaultText)?_.X8(r):void 0;U?(U=_.Wp(Z&&E.toggledText||E.defaultText))&&L&&!isNaN(Number(L.numberValue))?(L.numberText=U,Z&&(L.numberValue+=1),U=L):U=void 0:U=void 0;var v,H,u,k;var y=(L=((H=Z?E.toggledAccessibilityData||((y=E.toggledText)==null?void 0:y.accessibility):E.accessibilityData||((v=E.defaultText)==null?void 0:v.accessibility))==null?void 0:(u=H.accessibilityData)==
null?void 0:u.label)||((k=E.accessibility)==null?void 0:k.label))?L:_.Wp(Z&&E.toggledText||E.defaultText);B=B===void 0?E.isDisabled:B;g=Rdu(E,Z,M,g,W);Z=ImN(E,Z);Z!=null&&Z.length?(Z=_.F8({innertubeCommand:uvV(Z),forceNewState:!0}),Z=AW(Z)?Z:void 0):Z=void 0;E=C.call(I,{},h,q,{iconPosition:c},z,{focused:!1,toggled:w,toggleable:!0,formattedButtonText:r,animatedTextProps:U,accessibilityLabel:y,disabled:B,onTap:g,aTagConfig:Z},qFN((d=E.colorData)==null?void 0:d.basicColorPaletteData));E.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(E.type="filled");return E}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var h=this.getInnertubeIcon();if(h)return _.CL(h)}}});
T3.prototype.resetAnimation=T3.prototype.resetAnimation;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],T3.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],T3.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"isPressed",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"forceIconButton",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"forceIconOnly",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"forceModernIconButton",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"alignByText",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"overrides",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],T3.prototype,"disabled",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"isShorts",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"buttonTooltipPosition",void 0);_.Y([_.x(),_.V("design:type",Object)],T3.prototype,"animatedText",void 0);_.Y([_.x(),_.V("design:type",String)],T3.prototype,"textNumberValue",void 0);_.Y([_.x({computed:"computeTooltip(data, data.isToggled)"}),_.V("design:type",Object)],T3.prototype,"tooltip",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T3.prototype,"resetAnimation",null);_.Y([_.S("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.V("design:type",Object),_.V("design:paramtypes",[])],T3.prototype,"computedButtonShape",null);_.Y([_.S("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],T3.prototype,"computedIcon",null);
_.Y([_.K({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],T3);SdB&&_.X(T3,"ytd-toggle-button-renderer",tSM,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var wLF=_.O(function(h){function E(B){var U;return _.a(function(L){if(L.nextAddress==1)return(U=!UD$(B,c())||!c().enabled)?L.jumpTo(2):L.yield(Jia(),3);L.nextAddress!=2&&(U=L.yieldResult);if(U)return L.return();g();setTimeout(function(){z(!1)},1500);
_.SK(L)})}
function g(){setTimeout(function(){z(!0);var B;(B=Z.lottieEl)==null||B.goToAndPlay(0)},150)}
var Z=_.d5(),M=_.G(_.Bm(!1,void 0,"UfUosc")),W=M.next().value,z=M.next().value,c=_.zl(h.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.vJ(function(){var B,U;((B=h.settings)==null?void 0:(U=B.call(h))==null?void 0:U.uniqueId)==="this is not intended behavior"&&_.O$(new _.xX("Smartimation Settings is undefined"))});
_.lX(function(){c().experimentEnabled&&(c().enabled?L7M(E):(z(!1),jld(E)),_.r9(function(){jld(E)}))},"IHhVmc");
_.lX(function(){c().timings.join("");c().experimentEnabled&&(dDu(c()),_.r9(function(){Ciu(c())}))},"fsfhOe");
var I=_.Cw(function(){var B=Z,U=c().uniqueId+"-border",L,d;var C="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((d=(L=_.GF().resolve(_.pl(_.gu)))==null?void 0:L())!=null&&d?"dark":"light")+"_v2.json";return{animationRef:B,animationConfig:{name:U,autoplay:!1,loop:!1,path:C}}},void 0,"UWvUGe");
M={};return _.R("yt-smartimation",{class:_.CO(h.className,"smartimation",(M["smartimation--experiment-enabled"]=function(){return c().experimentEnabled},M["smartimation--active-border"]=W,M["smartimation--enable-masking"]=edZ(),M))},_.R(_.P,{cond:function(){return c().experimentEnabled},
then:function(){return _.R("div",{class:"smartimation__border"},_.R(_.sh,{className:"smartimation__border-gradient",data:I,animationName:function(){return I().animationConfig.name}}))}}),_.R("div",{class:"smartimation__content"},h.children))},"G");
wLF.idomCompat=!0;_.I9(wLF,"yt-smartimation",{props:{className:_.C6,settings:_.C6}});var bL=function(){var h=_.D.apply(this,arguments)||this;h.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};h.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};h.shouldEnableSmartimation=!1;return h};
_.f(bL,_.D);bL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
bL.prototype.onDataChanged=function(){var h,E;this.shouldEnableSmartimation=(((h=this.data)==null?void 0:(E=h.timedAnimationData)==null?void 0:E.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
bL.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var h=_.e(this.data.likeButton,_.zh),E=_.e(this.data.dislikeButton,_.zh);return!!((h==null?0:h.isToggled)||(E==null?0:E.isToggled))};
bL.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]]"}}}}}};
_.ze.Object.defineProperties(bL.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var h,E,g=((h=this.data)==null?void 0:(E=h.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"like-dislike",timings:g,enabled:this.shouldEnableSmartimation,experimentEnabled:g.length>0}}}});
bL.prototype.onDataChanged=bL.prototype.onDataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bL.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],bL.prototype,"likeButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],bL.prototype,"dislikeButtonOverride",void 0);
_.Y([_.S("shouldEnableSmartimation"),_.V("design:type",Object),_.V("design:paramtypes",[])],bL.prototype,"smartimationSettings",null);_.Y([_.Nm("data"),_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bL.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],bL);
_.X(bL,"ytd-segmented-like-dislike-button-renderer",function(){if(f1f!==void 0)return f1f;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return f1f=h},{mode:1});var DVA;var l1M;(l1M=document.body)==null||l1M.setAttribute("rounded-container","");var rpD={};rpD.YtToggleButtonBehavior=[_.Yl.YtActionHandlerBehavior,uk.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 h=this.data.isToggled;if(!this.isModal_(h)){if(!this.data.preventAutoToggle){this.toggle();var E={toggled:this.data.isToggled,actions:{}};E.actions[this.buttonIcon]=this.data.isToggled;_.Ra(this.hostElement,"yt-toggle-button",E)}E=this.data.defaultServiceEndpoint||null;var g=this.data.toggledServiceEndpoint||null;if(E&&g||E&&this.data.preventAutoToggle)h=h?g:E,E=this.disableCommandHandlerOverride,_.J("killswitch_toggle_button_behavior_resolve_command")||E?_.LZ(this.hostElement,
[h]):_.qB(h,this.hostElement),_.Ra(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:h})}},
stateChanged_:function(){var h=this.data;if(h){var E=h.isToggled;this._setEndpoint(this.computeEndpoint_(h));this._setServiceEndpoint(this.computeServiceEndpoint_(h));this._setButtonIcon(this.computeButtonIcon_(h,E));this._setButtonText(this.computeButtonText_(h,E));this._setButtonAccessibility(this.computeAccessibility_(h,E));this._setButtonTooltip(this.computeTooltip_(h,E));this._setButtonClass(this.computeButtonClass_(h,E));this._setIconPositionType(this.computeIconPositionType_(h));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=E):this.elements_.button.setAttribute("aria-pressed",E));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=E)}},
shouldSetIconActiveState_:function(){return _.J("kevlar_system_icons")},
toggle:function(h){this.set("data.isToggled",h!==void 0?h:!this.data.isToggled);_.J("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(h){if(h){var E,g;return!!((E=this.data)==null?0:(g=E.toggledServiceEndpoint)==null?0:g.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(h){return h&&h.defaultNavigationEndpoint||null},
computeButtonIcon_:function(h,E){var g=h&&h.defaultIcon?_.CL(h.defaultIcon.iconType):null;h=h&&h.toggledIcon?_.CL(h.toggledIcon.iconType):g;return E?h:g},
handleUpdateToggleButtonStateCommand_:function(h){h=h.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==h.buttonId&&this.toggle(h.toggled)},
computeButtonText_:function(h,E){return h?E&&h.toggledText||h.defaultText||null:null},
computeAccessibility_:function(h,E){return h?(E?this.get("toggledAccessibilityData.accessibilityData",h):this.get("accessibilityData.accessibilityData",h))||h.accessibility||null:null},
computeTooltip_:function(h,E){return h?E&&h.toggledTooltip||h.defaultTooltip||null:null},
computeButtonClass_:function(h,E){if(!h)return"";var g="",Z=h.toggledStyle||h.style;if(E=E?Z:h.style){E.styleType&&(E=E.styleType);try{g+=E.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.nI(M,E,typeof E),_.O$(M)}}if(h=h.size){h.sizeType&&(h=h.sizeType);try{g+=h.toLowerCase().replace(/_/g,"-")+" "}catch(M){_.nI(M,h,typeof h),_.O$(M)}}return g.trim()},
computeIconPositionType_:function(h){return h&&h.iconPosition||null},
computeServiceEndpoint_:function(h){var E=h&&h.serviceEndpoint,g=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:g&&h.command?h.command:null},
handleUpdateToggleButtonTextAction_:function(h){h=h.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==h.buttonId&&(this.set("data.defaultText",h.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",h.toggledText),this.notifyPath("data.toggledText"))}}];_.$P("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var mVf=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live"),uL=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.roundedContainer=!0;return h};
_.f(uL,_.D);uL.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
uL.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var h=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var E={toggled:!!this.data.isToggled,actions:{}};E.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var g,Z;E.actions.playlistId=(g=this.data.defaultServiceEndpoint)==null?void 0:(Z=g.playlistEditEndpoint)==null?void 0:Z.playlistId;_.Ra(this.hostElement,"yt-toggle-button",E)}(h=h?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(h)}};
uL.prototype.onYtNavigate=function(h){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(h.detail.endpoint);E&&(h.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.ze.Object.defineProperties(uL,{template:{configurable:!0,enumerable:!0,get:function(){if(DVA===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);DVA=h}h=DVA;return h}}});
uL.prototype.onYtNavigate=uL.prototype.onYtNavigate;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],uL.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],uL.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(rpD.YtToggleButtonBehavior),_.V("design:type",Object)],uL.prototype,"ytToggleButtonBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],uL.prototype,"data",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],uL.prototype,"showTooltips",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uL.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uL.prototype,"roundedContainer",void 0);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],uL.prototype,"onYtNavigate",null);
_.Y([_.K({is:"ytd-toggle-button-renderer",disableElementRegistration:mVf})],uL);var vtm,Hkm;_.QW=new _.Ps("PANEL_CONTROLLER_TOKEN");_.hz=new _.Ps("SHEET_CONTROLLER_TOKEN");_.Eu=new _.Ps("DIALOG_CONTROLLER_TOKEN");vtm=new _.Ps("DIALOG_CONTAINER_TOKEN");Hkm=new _.Ps("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.g_=new _.Ps("PERSISTENT_PANEL_CONTROLLER_TOKEN");var lmq=_.NH("DOWNLOAD",{},"Download"),riu=_.NH("DOWNLOADING",{},"Downloading"),mDz=_.NH("DOWNLOADED",{},"Downloaded"),v0z=_.NH("RETRY",{},"Retry");var $VH=_.O(function(h){var E=n0O,g=function(){return""},Z=Hsz(h.data),M=$Dz(h.data),W=K7N(h.data),z=OsM(h.data);
E=function(){var c=h.data(),I=wDN(c,Z(),M(),W(),z()),B=!!c.videoId,U=I.text;return{title:B?U:void 0,tooltip:B?void 0:U,accessibilityText:U,onTap:I.onTap,iconName:I.iconType,style:c.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:I.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:c.buttonSize}};
g={};g=_.CO("ytDownloadButtonViewModelHost",(g.ytDownloadButtonViewModelIsHidden=function(){var c=h.data(),I=z();return c.playlistId||I()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||I()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},g));
return _.R("download-button-view-model",{class:g},_.R(_.$l,{data:E}))},"H");
$VH.idomCompat=!0;var Tm$=new _.Ps("SUBMIT_API_SERVICE_TOKEN");var yid,F7N,bsd={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var otd=new _.Ps("RENDERER_LOGGER_TOKEN");var zBd=new _.Ps("RENDERER_STAMPER_OPTIONS_TOKEN");var uwV;_.tU=new iOl;uwV=new Map;var a1q="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),ika=["notificationTextRenderer","notificationMultiActionRenderer"],
cpd="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),Gaq=Ql4(function(h){return _.Hm(h==null?void 0:h.targetId)}).useUpdatableData;var pLx=0;_.Sv.debugName="EjJbCe";var K5F=_.O(function(h){var E=h.data;h=h.className;_.m1(function(){E().formId||_.$W(Error("Ih"))});
var g=_.kId(function(){return E().formId},function(){return E().beforeSubmitCommand},function(){return E().afterSubmitCommand}),Z=g.submitForm,M=g.isValid,W=g.isSubmitting,z=function(){return{state:E().isDisabled||!M()||W()?"disabled":"active"}};
return _.R("yt-submit-button-view-model",{class:_.CO("ytSubmitButtonViewModelHost",h)},_.R(_.Sv,{data:function(){return E().button}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
buttonOverrides:z,onClick:Z})}}))},"I");var ntM=_.O(function(h){var E=h.backgroundLottieRef;var g=h.foregroundLottieRef;var Z=h.children;var M=h.wrapperClass;var W=h.disableAnimation;h=function(){return(_.J("web_animated_actions")||_.J("web_animated_actions_v2"))&&!(W==null?0:W())};
return _.R("yt-animated-action",{class:_.CO("ytAnimatedActionHost",M)},_.R("div",{class:"ytAnimatedActionContentWithBackground"},_.R(_.P,{cond:h,then:function(){return _.R(OkF,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(I1M()?"dark":"light")+"_v5.json"}}}})}}),Z),_.R(_.P,{cond:h,
then:function(){return _.R(OkF,{lottiePlayerProps:function(){return{animationRef:g==null?void 0:g(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(I1M()?"dark":"light")+"_v4.json"}}}})}}))},"J");
ntM.idomCompat=!0;var OkF=_.O(function(h){var E=h.wrapperClass;var g=h.lottieClass;var Z=h.lottiePlayerProps;return _.R("div",{class:_.CO("ytAnimatedActionLottie",E),"aria-hidden":"true"},_.R(_.sh,{className:g,data:Z,animationName:function(){return Z().animationConfig.name}}))},"K");var RBu={isOpen:!1};var BRN={isAllowed:!1};var L5Z={errorMessage:"",title:"",privacy:"",isDisabled:!0};var dVZ={isOpen:!1};var Jpq={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var XLf={response:void 0};var qdW=function(h,E){h=h===void 0?XLf:h;switch(E.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},h,{response:E.payload});default:return h}};var YdD={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var f1Z=function(h,E){h=h===void 0?YdD:h;switch(E.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},h,{nextDisabled:E.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},h,{nextCommand:E.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},h,{footerSubmissionData:E.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},h,{isImpersonationValid:E.payload});default:return h}};var sPM={reportFormData:void 0,reportDetailsFormData:void 0};var NRz=function(h,E){h=h===void 0?sPM:h;switch(E.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},h,{reportFormData:E.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},h,{reportDetailsFormData:E.payload});default:return h}};var VSC=void 0;_.J("mweb_enable_redux_store_on_demand")||(VSC=new pm(tS$()));var Zi=_.J("enable_web_delhi_icons");var kan=_.O(function(h){h=_.au(h,{themeOverride:void 0,animationRef:{}});var E=h.animatedIconType,g=h.active,Z=h.themeOverride,M=h.animationRef;h=h.staticIconFn;var W=_.G(_.Bm(void 0,void 0,"l48agc")),z=W.next().value,c=W.next().value,I=function(){a:{var r=E();var v=Z==null?void 0:Z();var H;v=(v==null?void 0:v.useDarkTheme)||((H=_.GF().resolve(_.pl(_.gu)))==null?void 0:H());switch(r){case "LIKE":VSC||(VSC=new pm(tS$()));r=(r=G_$(VSC.getState()))&&r.animationLightUrl&&r.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:v?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:v?r.animationDarkUrl:r.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(r){v=r;break a}v="animated_like_icon_"+(v?"dark":"light")+"_"+(Zi?"v5":"v4");v={lottiePlayerProps:{animationConfig:{name:v,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+v+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(Zi?" animated-like-icon-delhi":"")}}},totalFrames:Zi?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":v={lottiePlayerProps:{animationConfig:{name:v?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(v?"dark":"light")+(Zi?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(Zi?" animated-subscribe-icon-delhi":"")}}},totalFrames:Zi?120:79,lazyLoad:!1};break a}v=
void 0}return v},B=function(){var r,v;
return(v=(r=I())==null?void 0:r.lottiePlayerProps.animationConfig.name)!=null?v:""},U=function(){if(I()){var r=I().lottiePlayerProps.animationConfig.path;
return mm.get(r)||z()}};
W=_.G(_.Bm(!1,void 0,"sDrGId"));var L=W.next().value;W=W.next().value;var d=xVM(W),C=function(){var r=I(),v,H,u;return(u=r==null?void 0:(v=r.lottiePlayerProps.animationConfig)==null?void 0:(H=v.rendererSettings)==null?void 0:H.className)!=null?u:""},q=void 0,w=void 0;
_.lX(function(){var r=I(),v=B(),H=U(),u=L(),k=g();if(r&&(w!==v&&(w=v,q=k,v=M(),d.animationConfig=r.lottiePlayerProps.animationConfig,d.animationRef=v,H&&(d.animationConfig.animationData=H,d.animationConfig.path=void 0),v=r.lottiePlayerProps.animationConfig.path,!mm.get(v)&&r.lazyLoad&&v&&Sd$(v,c)),!(u||r.lazyLoad&&!H))){if(H=!M().lottieEl)k?(u=r.totalFrames,d.animationConfig.initialSegment=[u-1,u]):d.animationConfig.initialSegment=void 0;if(q!==k&&!H)if(H=M(),k){var y;(y=H.lottieEl)==null||y.playSegments([0,
r.totalFrames],!0)}else{var A;(A=H.lottieEl)==null||A.playSegments([0,1],!0)}q=k}},"RQVZ1d");
return _.R("animated-icon",{class:"ytAnimatedIconHost"},_.R(_.P,{cond:function(){var r,v;return!((r=I())==null||!r.lottiePlayerProps.animationConfig.path||((v=I())==null?0:v.lazyLoad)&&!U()||L())},
then:function(){return _.R(_.sh,{data:d,animationName:B,className:C,animationRef:M})},
else:h}))},"L");_.Mb=_.O(function(h){var E=_.hf("yt-subscribe-button-view-model"),g=_.hf("div"),Z=_.hf("div"),M=_.d5(),W=_.d5(),z=_.d5(),c=_.qI(W7q,function(){return h.data().stateEntityStoreKey}),I=_.qI(pDx,function(){var bO,jF;
return(jF=(bO=h.data().notificationStateEntityStoreKeys)==null?void 0:bO.subsNotificationStateKey)!=null?jF:""}),B=function(){return!h.data().enableSubscribeButtonPostClickAnimation},U=_.G(_.Bm(0,void 0,"YtsSKb")),L=U.next().value,d=U.next().value;
U=_.G(_.Bm(0,void 0,"V6JxRe"));var C=U.next().value,q=U.next().value;U=_.G(_.Bm(!1,void 0,"JUCSZ"));var w=U.next().value,r=U.next().value;U=_.G(_.Bm(!1,void 0,"oV6jwf"));var v=U.next().value,H=U.next().value;U=_.G(_.Bm(!1,void 0,"hK1Whe"));var u=U.next().value,k=U.next().value,y;U=_.G(_.Bm(!1,void 0,"Asaolf"));var A=U.next().value,E4=U.next().value,iO=function(){H(!0);_.lv(_.KP,function(){H(!1)},1500)};
_.lX(function(){var bO=v();Pm(function(){bO&&!B()&&c()&&Okq(M,W,z)})},"Qq6Hsf");
_.lX(function(){var bO=c();Pm(function(){if(!B()&&bO){var jF;((jF=h.animateWidth)==null?0:jF.call(h))&&K5q(E.value,!!bO.subscribed,L(),C());var PM,ll;((PM=y)==null?0:PM.subscribed)||!bO.subscribed||bO.key!==((ll=y)==null?void 0:ll.key)||iO();y=bO}})},"hog8te");
U=_.Cw(function(){var bO,jF,PM,ll=h.data(),xU=!((bO=c())==null||!bO.subscribed);bO=!((jF=h.isOverlay)==null||!jF.call(h));jF=w()?E:void 0;var pU=(PM=I())==null?void 0:PM.state;PM=A();$VV(ll,pU);return l1$({model:ll,subscribed:xU,isOverlay:bO,element:jF,notificationState:pU,disableTextEllipsis:!0,focused:PM})},void 0,"hc1PRd");
var RW=function(){var bO;if(!B()&&((bO=h.animateWidth)==null?0:bO.call(h))&&(g==null?0:g.value)&&(Z==null?0:Z.value)&&!u()){bO=c();var jF=_.G((bO==null?0:bO.subscribed)?[g,Z]:[Z,g]),PM=jF.next().value;jF=jF.next().value;PM=Math.ceil(PM.value.getBoundingClientRect().width);jF=Math.ceil(jF.value.getBoundingClientRect().width);d(PM);q(jF);K5q(E.value,!(bO==null||!bO.subscribed),PM,jF);k(!0)}},NN=_.J7(function(bO){RW();
var jF=c();jF&&(bO.detail.endpoint.subscribeEndpoint||bO.detail.endpoint.unsubscribeEndpoint)&&mVZ(E.value,!jF.subscribed,jF)}),Cd=function(){var bO=_.GF().resolve(_.pl(_.DX));
bO&&E4(bO.isKeyBoardInUse())},Ba=function(){E4(!1)};
_.QX("yt-player-subscribe",function(bO){var jF=c();jF&&bO===h.data().channelId&&mVZ(E.value,!0,jF)});
_.QX("yt-player-unsubscribe",function(bO){var jF=c();jF&&bO===h.data().channelId&&mVZ(E.value,!1,jF)});
_.QX("yt-update-subscribe-button-action",function(bO){bO=_.e(bO,t_C);var jF=c();jF&&bO&&bO.channelId===h.data().channelId&&mVZ(E.value,!!bO.subscribed,jF)});
_.vJ(function(){E.value&&(E.value.addEventListener("focusin",Cd),E.value.addEventListener("focusout",Ba));var bO=_.xW(_.KP,function(){RW()});
r(!0);_.r9(function(){_.KP.cancelJob(bO);E.value&&(E.value.removeEventListener("focusin",Cd),E.value.removeEventListener("focusout",Ba))})});
var $$=function(){var bO,jF,PM;if(PM=!((bO=c())==null||!bO.subscribed))bO=!!h.data().disableNotificationBell,PM=(jF=I())==null?void 0:jF.state,PM=!bO&&!!PM;return PM},Ha=function(){var bO;
return!((bO=c())==null?0:bO.subscribed)},zf=function(){var bO,jF;
if(jF=Ha()){jF=!!h.data().disableNotificationBell;var PM=(bO=I())==null?void 0:bO.state;jF=!jF&&!!PM}return jF},eF={},Rm={};
return _.R("yt-subscribe-button-view-model",{class:_.CO(h.className,"ytSubscribeButtonViewModelHost",(eF.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var bO,jF;return!((bO=c())==null||!bO.subscribed)&&((jF=h.animateWidth)==null?void 0:jF.call(h))&&v()},eF.ytSubscribeButtonViewModelHostHidden=function(){var bO;
return!((bO=c())==null?0:bO.subscribed)&&h.data().hideWhenUnsubscribed},eF)),
el:E,"on:yt-service-request-sent":NN},_.R(ntM,{backgroundLottieRef:M,foregroundLottieRef:W,wrapperClass:_.CO("ytSubscribeButtonViewModelAnimatedActionWrapper",(Rm.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var bO;return((bO=h.animateWidth)==null?void 0:bO.call(h))&&v()},Rm.ytSubscribeButtonViewModelStaticWidth=function(){var bO;
return!((bO=h.animateWidth)==null?0:bO.call(h))},Rm)),
disableAnimation:B},_.R("div",{el:g,class:"ytSubscribeButtonViewModelContainer"},_.R(_.H4,{data:U,icon:function(){return _.R(_.P,{cond:$$,then:function(){var bO=function(){var jF;return rpd((jF=I())==null?void 0:jF.state)};
return _.R(_.P,{cond:function(){return B()||bO()!=="NOTIFICATIONS_NONE"},
then:function(){return _.R(_.Ni,{icon:bO})},
else:function(){return _.R(kan,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:z})}})}})},
secondaryIconName:function(){return $$()?"EXPAND":void 0}}))),_.R("div",{el:Z,
class:"ytSubscribeButtonViewModelInvisible"},_.R(_.P,{cond:function(){var bO;return((bO=h.animateWidth)==null?void 0:bO.call(h))&&!B()&&!u()},
then:function(){return _.R(_.H4,{data:_.Cw(function(){var bO;return l1$({model:h.data(),subscribed:Ha(),isOverlay:!((bO=h.isOverlay)==null||!bO.call(h)),element:E,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var bO;return zf()?rpd((bO=I())==null?void 0:bO.state):void 0},
secondaryIconName:function(){return zf()?"EXPAND":void 0}})}})))},"M");
_.Mb.idomCompat=!0;var ypf=_.O(function(h){var E=h.data;var g=_.qI(W7q,function(){return E().subscriptionStateEntityKey});
return _.R(_.P,{cond:function(){var Z=E(),M=g();return!Z.hideWhenUnsubscribed||(M==null?0:M.subscribed)?_.e(E().button,_.i_):void 0},
then:function(Z){return _.R("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.R(_.$l,{data:Z,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
ypf.idomCompat=!0;var F5n,WP;F5n=_.O(function(h){return _.R(_.Sv,{data:function(){return h.actionRow().actions}},{buttonViewModel:function(E){var g=E.data;
return _.R(WP,{isRow:h.isRow,isIconOnlyButton:function(){return nt$(g())},
useIntrinsicWidth:h.useIntrinsicWidth},_.R(_.$l,{data:g}))},
subscribeButtonViewModel:function(E){return _.R(WP,{isRow:h.isRow},_.R(_.Mb,{data:E.data,isOverlay:!1,animateWidth:function(){return!h.isRow()}}))},
downloadButtonViewModel:function(E){var g=E.data;return _.R(WP,{isRow:h.isRow,isIconOnlyButton:function(){return!!g().playlistId}},_.R($VH,{data:g}))},
submitButtonViewModel:function(E){var g=E.data;return _.R(WP,{isRow:h.isRow,isIconOnlyButton:function(){var Z=g();return nt$(_.e(Z==null?void 0:Z.button,_.i_))}},_.R(K5F,{data:g}))},
toggleButtonViewModel:function(E){var g=E.data;return _.R(WP,{isRow:h.isRow,isIconOnlyButton:function(){var Z=g();return nt$(_.e(Z.isToggled?Z.toggledButtonViewModel:Z.defaultButtonViewModel,_.i_))}},_.R(_.Z7,{data:g}))},
subscribePlusButtonViewModel:function(E){return _.R(WP,{isRow:h.isRow},_.R(ypf,{data:E.data}))}})},"O");
WP=_.O(function(h){var E={};return _.R("div",{class:_.CO("ytFlexibleActionsViewModelAction",(E.ytFlexibleActionsViewModelActionRowAction=h.isRow,E.ytFlexibleActionsViewModelActionIntrinsicWidth=h.useIntrinsicWidth,E.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,E.ytFlexibleActionsViewModelActionIconOnlyButton=h.isIconOnlyButton,E))},h.children)},"P");
_.pH=_.O(function(h){var E=function(){var Z;return((Z=h.layout)==null?void 0:Z.call(h))===1},g={};
return _.R("yt-flexible-actions-view-model",{class:_.CO("ytFlexibleActionsViewModelHost",h.className,(g.ytFlexibleActionsViewModelInline=function(){return!E()},g.ytFlexibleActionsViewModelScrollable=function(){return h.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},g))},_.R(_.SX,{each:function(){return h.data().actionsRows||[]}},function(Z){return _.R(_.P,{cond:E,
then:function(){return _.R("div",{class:"ytFlexibleActionsViewModelActionRow"},_.R(F5n,{actionRow:Z,isRow:E,useIntrinsicWidth:function(){return!!h.data().respectActionIntrinsicWidth}}))},
else:function(){return _.R(F5n,{actionRow:Z,isRow:E})}})}))},"Q");_.I9(_.pH,"yt-flexible-actions-view-model",{props:{data:_.C6,layout:_.C6,justifyContentOverride:_.C6,className:_.C6}});_.Gj=_.O(function(h){var E=_.qI(kP,function(){var M;return(M=h.data().dislikeEntityKey)!=null?M:""}),g=_.Cw(function(){var M=E();
return M?M.likeStatus==="DISLIKE":_.e(h.data().toggleButtonViewModel,_.Ix).isToggled},void 0,"fNr9he"),Z=_.Cw(function(){return Object.assign({},_.e(h.data().toggleButtonViewModel,_.Ix),{isToggled:g()})},void 0,"AezoCc");
return _.R("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.R(_.Z7,{data:Z,buttonShapeOverrides:h.buttonShapeOverrideables,onToggle:function(M){var W=E();W&&M!==(W.likeStatus==="DISLIKE")&&W.key&&_.Gl(_.vg("likeStatusEntity",W.key,{likeStatus:M?"DISLIKE":"INDIFFERENT",hadUserInteraction:M}))}}))},"R");
_.Gj.idomCompat=!0;_.zj=_.O(function(h){var E=_.J("web_supports_animations_api"),g=a9(function(d){var C=B();if(!d){var q,w;return{numberText:(w=C==null?void 0:(q=C.likeCountIfIndifferent)==null?void 0:q.content)!=null?w:"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var r;q=(C==null?void 0:(r=C.likeCountIfIndifferent)==null?void 0:r.content)!==d.numberText;if(c()||!q)return d;var v;return{numberText:(C==null?void 0:(v=C.likeCountIfIndifferent)==null?void 0:v.content)||
"",numberValue:Number(C==null?void 0:C.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!C}}),Z=a9(function(d){var C=B();
if(!d){var q,w;return{numberText:(w=C==null?void 0:(q=C.likeCountIfLiked)==null?void 0:q.content)!=null?w:"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var r;q=(C==null?void 0:(r=C.likeCountIfIndifferent)==null?void 0:r.content)!==d.numberText;if(c()||!q)return d;var v;return{numberText:(C==null?void 0:(v=C.likeCountIfLiked)==null?void 0:v.content)||"",numberValue:Number(C==null?void 0:C.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!C}}),M=_.G(_.Bm(void 0,
void 0,"xldjge")),W=M.next().value,z=M.next().value,c=W,I=_.qI(kP,function(){var d,C;
return(C=(d=h.data())==null?void 0:d.likeStatusEntityKey)!=null?C:""}),B=_.qI(mpx,function(){var d,C;
return((d=h.likeCountEntity)==null?void 0:(C=d.call(h))==null?void 0:C.key)||""}),U=_.Cw(function(){var d;
return((d=I())==null?void 0:d.likeStatus)==="LIKE"},void 0,"B3od5e"),L=function(){var d;
return E&&!((d=h.likeCountEntity)==null||!d.call(h))};
return _.R("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.R(_.Z7,{data:function(){var d=Object,C=d.assign,q;var w=_.e((q=h.data())==null?void 0:q.toggleButtonViewModel,_.Ix);return C.call(d,{},w||{},{isToggled:U()})},
buttonShapeOverrides:h.buttonShapeOverrideables,animatedTextPropsDefault:function(){return L()?g():void 0},
animatedTextPropsToggled:function(){return L()?Z():void 0},
onToggle:function(d){XLZ(d,I(),c(),z)},
style:function(){var d;return((d=h.disableIconAnimation)==null?0:d.call(h))?void 0:{animateIcon:"true"}}}))},"S");
_.zj.idomCompat=!0;var Apk=_.O(function(h){var E=function(){return _.e(h.data().likeButtonViewModel,_.EU)},g=function(){var M;
return((M=E())==null?void 0:M.likeStatusEntityKey)||""},Z=_.Cw(function(){var M,W;
var z=(W=_.qI(kP,g)())!=null?W:(M=E())==null?void 0:M.likeStatusEntity;M=h.data();var c;M=(M==null?void 0:(c=M.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:M,enabled:(z==null?void 0:z.likeStatus)==="INDIFFERENT"&&M.length>0,experimentEnabled:M.length>0}},void 0,"zZ3GQb");
return _.R("segmented-like-dislike-button-view-model",{class:_.CO("ytSegmentedLikeDislikeButtonViewModelHost",h.className),"button-renderer":!0},_.R(wLF,{settings:Z},_.R("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.R(_.P,{cond:E,then:function(M){return _.R(_.zj,{data:M,likeCountEntity:function(){return h.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.J("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.R(_.P,{cond:function(){return _.e(h.data().dislikeButtonViewModel,_.hm)},
then:function(M){return _.R(_.Gj,{data:M,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
Apk.idomCompat=!0;_.I9(Apk,"segmented-like-dislike-button-view-model",{props:{data:_.C6,className:_.C6}});var TRD=_.O(function(h){var E=h.data;var g=h.className;var Z=h.setMinWidth;var M=h.forceIconOnly;var W=_.hf("account-link-button-view-model"),z=_.qI(_.Yd4,function(){var d;return(d=E().accountLinkStatusEntityKey)!=null?d:""}),c=_.qI(_.Yd4,function(){var d;
return(d=E().accountLinkStatusSecondaryEntityKey)!=null?d:""}),I=function(){if(!_.J("web_account_link_secondary_killswitch")){var d,C;
return((d=z())==null?void 0:d.linked)||((C=c())==null?void 0:C.linked)}var q;return(q=z())==null?void 0:q.linked};
_.lX(function(){var d=z();if(d){var C=b2n(new Tgn,FCA(new y9D,!!d.linked));_.L4().then(function(q){q&&(q.setAccountLinkState(_.lJ(C.JSC$12173_serializeBinary(),4)),q.updateAccountLinkingConfig(!!d.linked))})}},"IvZF7");
var B=function(){return _.e(E().toggleButtonViewModel,_.Ix)};
_.QX("yt-signal-action-show-account-link-dialog",function(){if(B()){var d=I()?B().toggledButtonViewModel:B().defaultButtonViewModel;d=_.e(d,_.i_);var C;if((C=z())==null?0:C.isWarning){C=_.e(E().warningButtonViewModel,_.i_);if(!C){_.Fn(Error("Jh"));return}d=C}var q;(C=_.kB((q=d)==null?void 0:q.onTap))&&_.JT([C],W.value)}else _.Fn(Error("Kh"))});
var U=function(){var d=B();return Object.assign({},d,{isToggled:I()})},L=function(){return(M==null?0:M())?{iconPosition:"icon-only"}:{}};
return _.R("account-link-button-view-model",{class:_.CO("ytwAccountLinkButtonViewModelHost",g,function(){return(Z==null?0:Z())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:W,"button-renderer":!0},_.R("div",null,_.R(_.P,{cond:function(){var d;if((d=z())==null?0:d.isWarning)return(d=_.e(E().warningButtonViewModel,_.i_))||_.Fn(Error("Jh")),d},
then:function(d){return _.R(_.$l,{data:d,buttonOverrides:L})},
else:function(){return _.R(_.Z7,{data:U,buttonShapeOverrides:L})}})))},"U");_.I9(TRD,"account-link-button-view-model",{props:{data:_.C6,className:_.c$,setMinWidth:_.c$,forceIconOnly:_.c$}});_.$P("menuRenderer","menuRenderer","ytd-menu-renderer");
var bkn={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"}},
uQC=_.J("web_fix_missing_action_buttons")?100:200,an=function(){var h=_.D.apply(this,arguments)||this;h.safeArea=!_.J("kevlar_flex_menu_safe_area_killswitch");h.tonalOverride=!1;h.threeDotSize="M";h.isOverlay=!1;h.useOverlayDark=!1;h.topLevelIconsOnly=!1;h.JSC$14648_lastWidth=0;h.maybeUpdateFlexibleMenu=function(){_.J("web_fix_missing_action_buttons")?requestAnimationFrame(h.maybeUpdateFlexibleMenuImpl):h.maybeUpdateFlexibleMenuImpl()};
h.maybeUpdateFlexibleMenuImpl=function(){var E;if((E=h.data)!=null&&E.flexibleItems){h.maybeFlushDebouncer();E=h.hostElement.clientWidth;var g=E>h.JSC$14648_lastWidth,Z,M=((Z=h.topLevelButtonsContainer)==null?void 0:Z.scrollHeight)||0,W;Z=((W=h.flexibleItemButtonsContainer)==null?void 0:W.scrollHeight)||0;W=h.hostElement.scrollHeight>Math.max(M,Z)+8;g?(h.resetFlexibleItems(),h.JSC$14648_lastWidth=h.hostElement.clientWidth,h.maybeUpdateFlexibleMenu()):W&&(h.shrinkFlexibleMenu(),h.JSC$14648_lastWidth=
E)}};
h.computeThreeDotButtonShape=function(){if(h.tonalOverride)return Object.assign({},{onTap:function(){h.onOverflowTap()},
iconPosition:"icon-only",style:h.isOverlay?h.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:h.threeDotSize,state:"active",accessibilityLabel:h.computeAccessibilityLabel(h.data)},h.threeDotButtonOverride)};
h.onOverflowTap=function(){if(h.data.fetchMenuCommand)_.GF().resolve(_.zF).resolveCommand(h.data.fetchMenuCommand,{form:{element:h.hostElement}});else if(h.data.isDisabled&&h.data.disabledCommand)_.qB(h.data.disabledCommand,h.hostElement);else{var E=h.createMenuRendererVe(),g={items:h.items};h.data.menuPopupAccessibility&&(g.menuPopupAccessibility=h.data.menuPopupAccessibility);h.data.footer&&(g.footer=h.data.footer);E={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:g},veData:E}};
_.GF().resolve(_.hz).openSheet({openPopupActionCommand:E},h.hostElement)}};
return h};
_.f(an,_.D);_.p=an.prototype;_.p.updateButtonOverrides=function(){if(!_.J("menu_renderer_label_update_upkillswitch")){var h=_.UB(this.hostElement).querySelector("yt-button-view-model");h&&(h.buttonOverrides=this.buttonOverrides)}};
_.p.computeHasItems=function(){var h;return((h=this.topLevelButtonData)==null?void 0:h.length)||this.hasFlexibleItems};
_.p.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.p.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Ja(this.hostElement,{"--ytd-menu-renderer-button-color":_.bU(this.data.iconColor)}))};
_.p.onStamperFinished=function(){this.JSC$14648_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.p.setupFlexibleMenu=function(){var h=this,E;(E=this.data)!=null&&E.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.TD(this.maybeUpdateFlexibleMenu,uQC,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){h.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.p.maybeFlushDebouncer=function(){if(_.J("web_replace_formatted_with_attributed_string")){var h;(h=this.topLevelButtons)==null||h.forEach(function(g){var Z;(g=(Z=g.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&E6M(g)});
var E;(E=this.flexibleItemButtons)==null||E.forEach(function(g){var Z;(g=(Z=g.getElementsByTagName("yt-attributed-string"))==null?void 0:Z[0])&&E6M(g)})}};
_.p.resetFlexibleItems=function(){var h;if((h=this.data)!=null&&h.flexibleItems){_.J("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var E;this.flexAsTopLevelButtons=(E=this.data.flexibleItems)==null?void 0:E.map(function(g){return _.e(g,_.NcH).topLevelButton});
_.J("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.p.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.p.shrinkFlexibleMenu=function(){var h;(h=this.flexAsTopLevelButtons)!=null&&h.length&&(this.flexAsTopLevelButtons=[].concat(_.$E(this.flexAsTopLevelButtons.slice(0,-1))))};
_.p.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:bkn,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:bkn,events:!0}}};
_.p.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.p.detached=function(){this.icon="MORE_VERT"};
_.p.computeTopLevelButtonData=function(h){if(!h)return[];var E;h=(E=h==null?void 0:h.topLevelButtons)!=null?E:[];return _.Kt.unsafeClone([].concat(_.$E(h)))};
_.p.computeItems=function(h,E){if(!h)return[];var g=[];if(E){var Z=(h.flexibleItems||[]).map(function(z){return _.e(z,_.NcH)});
Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())M=M.value,E.includes(M.topLevelButton)||(M=M.menuItem)&&g.push(M)}var W;h=(W=h==null?void 0:h.items)!=null?W:[];return[].concat(_.$E(g),_.$E(h))};
_.p.computeMenuActive=function(h,E){return h||E};
_.p.onPopupOpened=function(){this.overlayOpen=!0;_.Ra(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.p.onPopupClosed=function(){this.overlayOpen=!1;_.Ra(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.onPopupCanceled=function(){this.overlayOpen=!1;_.Ra(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.p.computeAccessibilityLabel=function(h){return this.get("accessibility.accessibilityData.label",h)};
_.p.isHidden=function(h,E){return this.tonalOverride||!h?!0:h.fetchMenuCommand||h.isDisabled&&h.disabledCommand?!1:!(E==null?0:E.length)};
_.p.isModernOverflowHidden=function(h,E){return this.tonalOverride&&h?h.fetchMenuCommand?!1:!(E==null?0:E.length):!0};
_.p.createMenuRendererVe=function(){var h=this.data.trackingParams,E=_.sH(),g=_.YN();return h&&E&&g?(h=_.rp(h),g=_.Uz(7591),_.J("combine_ve_grafts")?_.vt(_.SQ(),g,h):_.uw(E,h,g),g):null};
_.ze.Object.defineProperties(an.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.flexAsTopLevelButtons)==null||!h.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
an.prototype.onPopupCanceled=an.prototype.onPopupCanceled;an.prototype.onPopupClosed=an.prototype.onPopupClosed;an.prototype.onPopupOpened=an.prototype.onPopupOpened;an.prototype.tonalOverrideChanged=an.prototype.tonalOverrideChanged;an.prototype.resetFlexibleItems=an.prototype.resetFlexibleItems;an.prototype.setupFlexibleMenu=an.prototype.setupFlexibleMenu;an.prototype.iconButtonColorChanged=an.prototype.iconButtonColorChanged;an.prototype.updateButtonOverrides=an.prototype.updateButtonOverrides;
_.Y([_.t(_.fJ),_.V("design:type",Object)],an.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#button-shape"),_.V("design:type",HTMLElement)],an.prototype,"buttonShape",void 0);_.Y([_.Sg("#button"),_.V("design:type",Object)],an.prototype,"button",void 0);
_.Y([_.x(),_.V("design:type",Object)],an.prototype,"data",void 0);_.Y([_.x({computed:"computeTopLevelButtonData(data)"}),_.V("design:type",Array)],an.prototype,"topLevelButtonData",void 0);_.Y([_.x(),_.V("design:type",Array)],an.prototype,"flexAsTopLevelButtons",void 0);_.Y([_.x({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.V("design:type",Array)],an.prototype,"items",void 0);_.Y([_.x({value:"MORE_VERT"}),_.V("design:type",String)],an.prototype,"icon",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],an.prototype,"safeArea",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.V("design:type",Boolean)],an.prototype,"menuActive",void 0);_.Y([_.x(),_.V("design:type",Boolean)],an.prototype,"menuFocused",void 0);_.Y([_.x({value:"bottom"}),_.V("design:type",String)],an.prototype,"buttonTooltipPosition",void 0);_.Y([_.x(),_.V("design:type",Boolean)],an.prototype,"overlayOpen",void 0);
_.Y([_.x({value:!0}),_.V("design:type",Boolean)],an.prototype,"forceIconButton",void 0);_.Y([_.x(),_.V("design:type",Boolean)],an.prototype,"styleActionButton",void 0);_.Y([_.x(),_.V("design:type",Boolean)],an.prototype,"disableTextTransformOnButtons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],an.prototype,"tonalOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],an.prototype,"threeDotSize",void 0);
_.Y([_.x(),_.V("design:type",Object)],an.prototype,"threeDotButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],an.prototype,"isOverlay",void 0);_.Y([_.x(),_.V("design:type",Object)],an.prototype,"useOverlayDark",void 0);_.Y([_.x({computed:"computeButtonOverride(tonalOverride)"}),_.V("design:type",Object)],an.prototype,"buttonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],an.prototype,"hasCustomIconColor",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("flexAsTopLevelButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],an.prototype,"hasFlexibleItems",null);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.V("design:type",Boolean)],an.prototype,"hasItems",void 0);_.Y([_.x(),_.V("design:type",Object)],an.prototype,"topLevelIconsOnly",void 0);
_.Y([_.Nm("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"updateButtonOverrides",null);_.Y([_.S("topLevelIconsOnly"),_.V("design:type",Object),_.V("design:paramtypes",[])],an.prototype,"buttonOverrides",null);_.Y([_.Sg("#top-level-buttons-computed"),_.V("design:type",HTMLElement)],an.prototype,"topLevelButtonsContainer",void 0);_.Y([_.xA(".top-level-buttons > *"),_.V("design:type",Array)],an.prototype,"topLevelButtons",void 0);
_.Y([_.Sg("#flexible-item-buttons"),_.V("design:type",HTMLElement)],an.prototype,"flexibleItemButtonsContainer",void 0);_.Y([_.xA("#flexible-item-buttons > *"),_.V("design:type",Array)],an.prototype,"flexibleItemButtons",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"iconButtonColorChanged",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"setupFlexibleMenu",null);_.Y([_.lq("topLevelIconsOnly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"resetFlexibleItems",null);_.Y([_.Nm("tonalOverride"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"tonalOverrideChanged",null);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"onPopupOpened",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"onPopupClosed",null);_.Y([_.f3("yt-popup-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],an.prototype,"onPopupCanceled",null);
_.X(an,"ytd-menu-renderer",function(){if(BRA===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);BRA=h}h=BRA;return h},{mode:2});var QPf;var hQl;_.cP=_.O(function(h){var E=h.data;var g=function(){if(E().icon)a:{var M={iconName:E().icon};for(var W=_.GF().resolve(_.JW),z=_.G([12,24]),c=z.next();!c.done;c=z.next()){var I=c.value;c=Object.assign({},M,{iconStyle:"youtube_fill",iconSize:I});I=Object.assign({},M,{iconStyle:"youtube_outline",iconSize:I});if(W.resolveIcon(c)){M=c;break a}if(W.resolveIcon(I)){M=I;break a}}M=void 0}else M=void 0;return M};
h={};var Z={};return _.R("badge-shape",{class:_.CO("yt-badge-shape",function(){return Apx(E().type)},(h["yt-badge-shape--overlay"]=function(){return E().isOverlay},h["yt-badge-shape--ads-include-dot"]=function(){return E().adsIncludeDot},h["yt-badge-shape--thumbnail-badge"]=function(){a:switch(E().type){case 17:case 18:case 19:var M=!0;
break a;default:M=!1}return M},h["yt-badge-shape--status-badge"]=function(){a:switch(E().type){case 12:case 13:case 14:case 15:case 16:var M=!0;
break a;default:M=!1}return M},h["yt-badge-shape--no-text"]=function(){return!E().text},h["yt-badge-shape--modern"]=function(){return E().modern||_.J("web_modern_badge_shape")},h)),
style:_.fO({"background-color":function(){var M;return(M=E().customColors)==null?void 0:M.backgroundColor}}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},_.R(_.P,{cond:function(){return E().animation},
then:function(M){return _.R(_.sh,{className:"yt-badge-shape__icon",data:M,animationName:function(){return M().animationConfig.name||""}})}}),_.R(_.P,{cond:function(){var M;
return g()&&!((M=E())==null?0:M.animation)},
then:function(){return _.R("div",{class:"yt-badge-shape__icon"},_.R(j$O,{data:function(){return g()}}))}}),_.R("div",{class:_.CO("yt-badge-shape__text",(Z["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(E().numBadgesInRow||0)>1},Z))},function(){var M;
return(M=E())==null?void 0:M.text}))},"V");
_.cP.idomCompat=!0;_.I9(_.cP,"badge-shape",{props:{data:_.C6}});var im=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.animated=_.J("animated_live_badge_icon");h.useBadgeShape=_.J("web_badge_shape_defrag");return h};
_.f(im,_.D);_.p=im.prototype;_.p.addTooltips=function(){for(var h=_.UB(this.hostElement).querySelectorAll(".badge"),E=0,g;g=h[E++];){var Z=this.repeatElement.itemForElement(g);g=_.UB(g);g.lastChild&&g.lastChild.is==="tp-yt-paper-tooltip"&&g.removeChild(g.lastChild);if(Z=Z.metadataBadgeRenderer&&Z.metadataBadgeRenderer.tooltip){var M=_.t6("tp-yt-paper-tooltip");(0,_.C3)(M).textContent=Z;M.setAttribute("position","top");M.setAttribute("aria-hidden","true");g.appendChild(M)}}};
_.p.badgesChanged=function(){var h=this;_.RS().parkOrScheduleJob(function(){h.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.p.standaloneRoundedBadgeChanged=function(){var h=this.useRoundedBadge?this.useRoundedBadge:void 0;h&&(this.useRoundedBadge=h)};
_.p.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.p.computeStyle=function(h){_.J("enable_html5_teal_ad_badge")&&h==="BADGE_STYLE_TYPE_AD"&&(h="badge-style-type-ad-alternate");_.J("kevlar_ytb_live_badges")&&h==="BADGE_STYLE_TYPE_LIVE_NOW"&&(h="badge-style-type-live-now-alternate");return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeRole=function(h){return this.computeAriaLabel(h)?"img":"status"};
_.p.computeAriaLabel=function(h){var E;return(h==null?void 0:(E=h.accessibilityData)==null?void 0:E.label)||(h==null?void 0:h.label)};
_.p.computeBadgeShape=function(h){if(h){var E,g;var Z=ypu(h.style);var M=F5M(h.style),W=h.label,z=((E=h.accessibilityData)==null?void 0:E.label)||h.label;a:switch(h.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":E=!0;break a;default:E=!1}var c=(g=h.icon)==null?void 0:g.iconType;a:switch(h.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":h=!0;break a;default:h=!1}Z={type:Z,brNzRatingBadgeType:M,text:W,accessibilityText:z,
isOverlay:E,icon:c!=="PREMIUM"?c:void 0,modern:_.J("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:h}}else Z={};return Z};
_.p.updateComputedBadges=function(h,E,g){var Z=this;(E=E?[E]:g?[g]:void 0)?this.computedBadges=E:this.computedBadges=h==null?void 0:h.filter(function(M){var W;if((W=M.metadataBadgeRenderer)==null?0:W.groups){W=!1;M=_.G(M.metadataBadgeRenderer.groups);for(var z=M.next();!z.done;z=M.next()){z=z.value;var c=void 0;W=W||((c=Z.hiddenBadgeGroups)==null?void 0:c.includes(z))}return!W}return!0})};
_.p.useFilledIcons=function(h){return _.J("kevlar_system_icons")&&(h==="AUDIO_BADGE"||h==="CHECK_CIRCLE_THICK"||h==="OFFICIAL_ARTIST_BADGE"||h==="SPONSORSHIP_STAR"||h==="PERSON_RADAR_FILLED"||h==="PERSON_RADAR")};
_.p.computeBadgeShapeStyle=function(h){return this.useBadgeShape?h==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||h==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.p.computeIcon=function(h){var E,g;h=h==null?void 0:(E=h.metadataBadgeRenderer)==null?void 0:(g=E.icon)==null?void 0:g.iconType;if(h!=="PREMIUM"&&h)return _.CL(h)};
_.p.computeStandaloneBadge=function(h){var E;h=h==null?void 0:(E=h.icon)==null?void 0:E.iconType;return h==="PREMIUM_STANDALONE"||h==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
im.prototype.hiddenBadgeGroupsChanged=im.prototype.hiddenBadgeGroupsChanged;im.prototype.standaloneBadgeChanged=im.prototype.standaloneBadgeChanged;im.prototype.standaloneRoundedBadgeChanged=im.prototype.standaloneRoundedBadgeChanged;im.prototype.badgesChanged=im.prototype.badgesChanged;_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"hidden",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],im.prototype,"componentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Array)],im.prototype,"badges",void 0);_.Y([_.x(),_.V("design:type",Object)],im.prototype,"topStandaloneBadge",void 0);_.Y([_.x(),_.V("design:type",Object)],im.prototype,"bottomStandaloneBadge",void 0);_.Y([_.x(),_.V("design:type",Object)],im.prototype,"computedBadges",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"mediumFontAdBadge",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"useRoundedBadge",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"largeFontAdBadge",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"overlayAd",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"overlayPremium",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"noDotAdBadge",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"collectionTruncate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"isThumbnailBadge",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],im.prototype,"wrapBadges",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],im.prototype,"numBadgesInRow",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],im.prototype,"systemIcons",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],im.prototype,"animated",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],im.prototype,"useBadgeShape",void 0);_.Y([_.x({value:[]}),_.V("design:type",Array)],im.prototype,"hiddenBadgeGroups",void 0);_.Y([_.Sg("#repeat"),_.V("design:type",n3)],im.prototype,"repeatElement",void 0);_.Y([_.lq("badges"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],im.prototype,"badgesChanged",null);
_.Y([_.lq("useRoundedBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],im.prototype,"standaloneRoundedBadgeChanged",null);_.Y([_.lq("topStandaloneBadge","bottomStandaloneBadge"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],im.prototype,"standaloneBadgeChanged",null);_.Y([_.lq("hiddenBadgeGroups"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],im.prototype,"hiddenBadgeGroupsChanged",null);
_.Y([_.K({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],im);
var E2F=_.BK()(im,"ytd-badge-supported-renderer",function(){if(hQl===void 0){var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);hQl=h}h=hQl;return h},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.UQ("kevlar_poly_si_batch_j053")?1:2});var on=function(){var h=_.D.apply(this,arguments)||this;h.iconType="STAR";h.standardizeIconSize=_.J("kevlar_system_icons");h.mediaHoverOverlayInitialVisibility=_.J("enable_top_landscape_image_button_command_web");h.noBottomMargin=!1;h.thumbnailObjectFit="CONTAIN";h.thumbnailFitHeight=!0;h.actionMap={"yt-mute-ad-action":"handleMuteAd"};return h};
_.f(on,_.D);_.p=on.prototype;
_.p.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",on.JSC$14660_DEFAULT_CLICK_LOCATION_BEHAVIOR,on.JSC$14660_CLICK_LOCATION_ID_MAP))};
_.p.onTap=function(h){if(!_.J("use_on_click_for_desktop_display_ad"))this.onTapOrClick(h)};
_.p.onClick=function(h){if(_.J("use_on_click_for_desktop_display_ad"))this.onTapOrClick(h)};
_.p.onTapOrClick=function(h){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,h,!1)};
_.p.updateMediaBackgroundImage=function(){var h=this.get("data.image.thumbnail.thumbnails");h&&(h=_.R9(h,0))&&_.Ja(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+h+")"})};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var h=0;h<this.data.impressionEndpoints.length;h++){var E=this.data.impressionEndpoints[h];E.clickTrackingParams&&delete E.clickTrackingParams;_.GF().resolve(_.zF).resolveCommand(E,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var g;((g=this.data)==null?0:g.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.p.handleMuteAd=function(){};
_.p.attached=function(){var h=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ze.Object.defineProperties(on.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.titleText)return"";var E;return _.NH("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((E=this.data)==null?void 0:E.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.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 h;return!((h=this.data)==null||!h.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"}}});
on.prototype.onClick=on.prototype.onClick;on.prototype.onTap=on.prototype.onTap;on.prototype.dataChanged=on.prototype.dataChanged;
on.JSC$14660_CLICK_LOCATION_ID_MAP=_.J("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"]]);
on.JSC$14660_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.J("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"}];_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],on.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],on.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.iL),_.V("design:type",Object)],on.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],on.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],on.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],on.prototype,"ytdActiveViewBehavior",void 0);_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],on.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],on.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],on.prototype,"clickCommand",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],on.prototype,"miniMode",void 0);_.Y([_.x(),_.V("design:type",String)],on.prototype,"iconType",void 0);_.Y([_.S("data.titleText"),_.V("design:type",String),_.V("design:paramtypes",[])],on.prototype,"titleAriaLabel",null);
_.Y([_.S("data.rating"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"getRating",null);_.Y([_.S("data.price"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"getPrice",null);_.Y([_.S("data.thirdLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"getThirdLine",null);_.Y([_.S("data.fourthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"getFourthLine",null);
_.Y([_.S("data.fifthLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"getFifthLine",null);_.Y([_.S("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computeRatingHidden",null);_.Y([_.S("getPrice"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computePriceHidden",null);_.Y([_.S("getThirdLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computeThirdLineHidden",null);
_.Y([_.S("getFourthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computeFourthLineHidden",null);_.Y([_.S("getFifthLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computeFifthLineHidden",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.energyIcon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"hasEnergyIcon",null);
_.Y([_.S("computePriceHidden","computeRatingHidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"computeSecondaryTextHidden",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],on.prototype,"standardizeIconSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],on.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],on.prototype,"noBottomMargin",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.layout"),_.V("design:type",String),_.V("design:paramtypes",[])],on.prototype,"layout",null);_.Y([_.S("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],on.prototype,"mediaThumbnailWidth",null);_.Y([_.S("layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],on.prototype,"useRoundedBadge",null);_.Y([_.x(),_.V("design:type",String)],on.prototype,"thumbnailObjectFit",void 0);
_.Y([_.x(),_.V("design:type",Object)],on.prototype,"thumbnailFitHeight",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],on.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],on.prototype,"onTap",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],on.prototype,"onClick",null);
_.Y([_.K({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],on);
_.X(on,"ytd-display-ad-renderer",function(){if(QPf!==void 0)return QPf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return QPf=h},{mode:1});var g2k;var Zqf;var MeF;var TRd=new Map;var WQl=!1;var In=function(){var h=_.D.apply(this,arguments)||this;h.DEFAULT_TOOLTIP_OFFSET="10";h.TOOLTIP_OFFSET_NO_BANNER="-8";h.badges=null;h.noEndpoints=!1;h.wrapText=!1;h.forceVerified=!1;h.tooltipPosition="top";h.compactStyle=!1;h.height=0;h.lineHeight=0;return h};
_.f(In,_.D);_.p=In.prototype;_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.p.attached=function(){var h=this;this.observer=new MutationObserver(function(E,g){h.handleResized();g.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.p.detached=function(){this.observer&&this.observer.disconnect()};
_.p.logTooltipEvent=function(){_.J("kevlar_wiz_tooltip_event_killswitch")||WQl||(_.bkM("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),WQl=!0)};
_.p.handleWindowResized=function(){this.handleResized()};
_.p.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.p.onHeightChanged=function(){if(this.verified){var h=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.nF("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=h:this.textContainerEl.style.marginRight=h}};
_.p.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.nF("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.p.handleResized=function(){var h=this;this.verified&&_.KP.addLowPriorityJob(function(){h.fitBackgroundToText();var E=getComputedStyle(h.hostElement).lineHeight;E&&(E=E.match(/\d+/))&&E.length&&(h.lineHeight=Number(E[0]));h.height=h.lineHeight&&!h.wrapText?h.lineHeight:h.textEl.offsetHeight})};
_.p.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var h=document.createRange(),E=_.UB(this.textEl).children;E.length>0?h.selectNodeContents(E[0]):h.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(h.getBoundingClientRect().width)+"px"}};
_.p.computeChannelBadgeStyle=function(h){var E;if((h==null?0:(E=h.runs)==null?0:E.length)&&h.runs[0].textColor)return"--ytd-badge-icon-color:"+_.bU(h.runs[0].textColor)+";"};
_.ze.Object.defineProperties(In.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"?_.MR(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var h=this.get("badges.0.metadataBadgeRenderer.tooltip");if(h)return h}return _.Wp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
In.prototype.onLineHeightChanged=In.prototype.onLineHeightChanged;In.prototype.onHeightChanged=In.prototype.onHeightChanged;In.prototype.onChannelNameChanged=In.prototype.onChannelNameChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],In.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"badges",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"channelName",void 0);
_.Y([_.x(),_.V("design:type",Object)],In.prototype,"noEndpoints",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"wrapText",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"forceVerified",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"tooltipPosition",void 0);_.Y([_.x(),_.V("design:type",String)],In.prototype,"tooltip",void 0);_.Y([_.x(),_.V("design:type",Boolean)],In.prototype,"hasChannelArt",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],In.prototype,"compactStyle",void 0);_.Y([_.Sg("#text-container"),_.V("design:type",HTMLElement)],In.prototype,"textContainerEl",void 0);_.Y([_.Sg("#text"),_.V("design:type",Object)],In.prototype,"textEl",void 0);_.Y([_.Sg("#verified-tooltip"),_.V("design:type",HTMLElement)],In.prototype,"verifiedTooltip",void 0);_.Y([_.x(),_.V("design:type",Object)],In.prototype,"height",void 0);
_.Y([_.x(),_.V("design:type",Object)],In.prototype,"lineHeight",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("badges","forceVerified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],In.prototype,"verified",null);_.Y([_.S("badges","verified"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],In.prototype,"hideBadges",null);_.Y([_.S("channelName"),_.V("design:type",Object),_.V("design:paramtypes",[])],In.prototype,"formattedName",null);
_.Y([_.S("badges","verified","formattedName"),_.V("design:type",String),_.V("design:paramtypes",[])],In.prototype,"tooltipText",null);_.Y([_.S("hasChannelArt"),_.V("design:type",String),_.V("design:paramtypes",[])],In.prototype,"tooltipOffset",null);_.Y([_.Nm("channelName"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],In.prototype,"onChannelNameChanged",null);
_.Y([_.Nm("height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],In.prototype,"onHeightChanged",null);_.Y([_.Nm("lineHeight","height"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],In.prototype,"onLineHeightChanged",null);_.Y([_.K({is:"ytd-channel-name",disableElementRegistration:!0})],In);
_.X(In,"ytd-channel-name",function(){if(MeF!==void 0)return MeF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return MeF=h},{mode:_.UQ("kevlar_poly_si_batch_j036")?1:2});var Rn=function(){var h=_.D.apply(this,arguments)||this;h.standardizeIconSize=_.J("kevlar_system_icons");return h};
_.f(Rn,_.D);Rn.prototype.basicPaletteChanged=function(){var h;(h=this.data.color)!=null&&h.basicColorPaletteData&&_.v$(this.hostElement,this.data.color.basicColorPaletteData)};
Rn.prototype.useFilledIcons=function(h){return _.J("kevlar_system_icons")&&(h==="CHECK_CIRCLE_THICK"||h==="OFFICIAL_ARTIST_BADGE")};
_.ze.Object.defineProperties(Rn.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return this.data.authorCreator||((h=this.data)==null?void 0:(E=h.color)==null?void 0:(g=E.basicColorPaletteData)==null?void 0:g.backgroundColor)}}});
Rn.prototype.basicPaletteChanged=Rn.prototype.basicPaletteChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rn.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rn.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rn.prototype,"standardizeIconSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.authorUnifiedVerified"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rn.prototype,"verified",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rn.prototype,"creator",null);_.Y([_.Nm("data.color.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rn.prototype,"basicPaletteChanged",null);_.Y([_.K({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Rn);
_.X(Rn,"ytd-author-comment-badge-renderer",function(){if(Zqf!==void 0)return Zqf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Zqf=h},{mode:1});var pSf;var PP=function(){return _.D.apply(this,arguments)||this};
_.f(PP,_.D);PP.prototype.computeThumbnailWidth=function(h){if(h==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],PP.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],PP.prototype,"icon",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],PP.prototype,"surface",void 0);
_.Y([_.x({reflectToAttribute:!0,value:_.J("enable_shrink_image_size_on_web_posts_singleton")}),_.V("design:type",Boolean)],PP.prototype,"searchSxsUx",void 0);_.Y([_.K({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],PP);
_.X(PP,"ytd-backstage-image-renderer",function(){if(pSf!==void 0)return pSf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return pSf=h},{mode:1});var Gmk;var BP=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;h.selectedItemIndex=-1;return h};
_.f(BP,_.D);_.p=BP.prototype;_.p.computeIsChannelOwner=function(h){if(!h)return!0;h=h[0];return!(h&&(h.signinEndpoint||h.selectServiceEndpoint))};
_.p.computeIsImagePoll=function(h){return(h==null?void 0:h.type)==="POLL_TYPE_IMAGE"};
_.p.computeIsTotalVotesDisabled=function(h){return!(h==null?0:h.totalVotes)};
_.p.thumbnailSrc=function(h){var E,g,Z,M;return(h==null?0:(E=h.thumbnails)==null?0:(g=E[0])==null?0:g.url)?_.Yr((Z=h.thumbnails)==null?void 0:(M=Z[0])==null?void 0:M.url):void 0};
_.p.progressWidth=function(h){return"width:"+(h?h*100:0)+"%;"};
_.p.textAreaWidth=function(h){return this.isImagePoll?null:"width:"+(h?h*100:0)+"%;"};
_.p.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.p.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var h=this.data.choices,E=0;E<h.length;E++)if(h[E].selected){this.selectedItemIndex=E;break}};
_.p.onPopupClosed=function(h,E){h=Number(this.pollVotes.selected);E.confirmed&&(this.selectChoice(h,!1),_.BX(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.p.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.p.onYtCommentPollRevert=function(h,E){E&&(this.selectChoice(E.selectedChoiceIndex,!0),this.set("data.totalVotes",E.totalVotes))};
_.p.onYtServiceRequestSent=function(h,E){if(E.actions)for(h=0;h<E.actions.length;h++){var g=E.actions[h];_.e(g,Yc)&&this.set("data.totalVotes",_.e(g,Yc).totalVotes)}};
_.p.onYtServiceRequestCompleted=function(h){var E=this.get("detail.data.actionResults.0.feedback",h);h=this.get("detail.data.actionResults.0.status",h);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,h==="STATUS_FAILED"?_.Ra(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.p.getEndpoint=function(h,E){return E===h?this.data.choices[E].deselectServiceEndpoint||null:this.data.choices[h].selectServiceEndpoint||null};
_.p.selectChoice=function(h,E){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var g=0;g<this.data.choices.length;g++){var Z;if(h===this.selectedItemIndex){var M=!1;var W=Z=null}else Z=(M=g===h)?this.data.choices[g].voteRatioIfSelected:this.data.choices[g].voteRatioIfNotSelected,W=M?this.data.choices[g].votePercentageIfSelected:this.data.choices[g].votePercentageIfNotSelected;this.set("data.choices."+g+".voteRatio",Z);
this.set("data.choices."+g+".votePercentage",W);this.set("data.choices."+g+".selected",M)}E||(this.isLoading=!0,(E=this.getEndpoint(h,this.selectedItemIndex))&&_.GF().resolve(_.zF).resolveCommand(E,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===h?-1:h};
_.ze.Object.defineProperties(BP.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
BP.prototype.onYtServiceRequestCompleted=BP.prototype.onYtServiceRequestCompleted;BP.prototype.onYtServiceRequestSent=BP.prototype.onYtServiceRequestSent;BP.prototype.onYtCommentPollRevert=BP.prototype.onYtCommentPollRevert;BP.prototype.onPopupClosed=BP.prototype.onPopupClosed;BP.prototype.dataChanged=BP.prototype.dataChanged;_.Y([_.t(_.oR),_.V("design:type",Object)],BP.prototype,"paperItemBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],BP.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],BP.prototype,"isLoading",void 0);_.Y([_.x({computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],BP.prototype,"isChannelOwner",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.V("design:type",Boolean)],BP.prototype,"isImagePoll",void 0);_.Y([_.x({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],BP.prototype,"isTotalVotesDisabled",void 0);_.Y([_.x(),_.V("design:type",Object)],BP.prototype,"previousPollInfo",void 0);_.Y([_.x(),_.V("design:type",Object)],BP.prototype,"selectedItemIndex",void 0);_.Y([_.Sg("#poll-votes"),_.V("design:type",Object)],BP.prototype,"pollVotes",void 0);
_.Y([_.S("isChannelOwner"),_.V("design:type",Object),_.V("design:paramtypes",[])],BP.prototype,"endpointStyle",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BP.prototype,"dataChanged",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],BP.prototype,"onPopupClosed",null);
_.Y([_.f3("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],BP.prototype,"onYtCommentPollRevert",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],BP.prototype,"onYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],BP.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],BP);
_.X(BP,"ytd-backstage-poll-renderer",function(){if(Gmk!==void 0)return Gmk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Gmk=h},{mode:2});var zQf;var acm={autoplay:!1,loop:!1},cGH={simpleText:""},Uu=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;h.usesPanelLockup=!1;h.selectedItemIndex=-1;h.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},acm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});h.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},acm,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});h.correctnessAnimationProps=[];h.correctnessAnimationRefs=[];return h};
_.f(Uu,_.D);_.p=Uu.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.p.computeIsChannelOwner=function(h){if(!h)return!0;h=h[0];return!(h&&(h.signinEndpoint||h.selectServiceEndpoint))};
_.p.computeIsTotalVotesDisabled=function(h){return!(h==null?0:h.totalVotes)};
_.p.computeIsImageQuiz=function(h){return(h==null?void 0:h.type)==="POLL_TYPE_IMAGE"};
_.p.onExplanationChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var h=this.data.choices;if(h){this.maybeInitializeQuizLotties(h);for(var E=0;E<h.length;E++)if(h[E].isSelected||this.isChannelOwner&&h[E].isCorrect){this.selectedItemIndex=E;return}this.selectedItemIndex=-1}}};
_.p.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var h=this.selectedItemIndex,E=Number(this.quizVotes.selected);this.selectChoice(E);this.sendVoteAction(E,h);this.quizVotes.selected=-1;var g;h=!((g=this.data)==null?0:g.enableAnimation);this.maybePlayAnswerAnimations(h)}};
_.p.onYtCommentPollRevert=function(h,E){E&&(this.selectChoice(E.selectedChoiceIndex),this.set("data.totalVotes",E.totalVotes))};
_.p.onYtServiceRequestSent=function(h,E){if(E.actions)for(h=_.G(E.actions),E=h.next();!E.done;E=h.next())(E=_.e(E.value,Yc))&&this.set("data.totalVotes",E.totalVotes)};
_.p.onYtServiceRequestCompleted=function(h){var E=this.get("detail.data.actionResults.0.feedback",h);h=this.get("detail.data.actionResults.0.status",h);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,h==="STATUS_FAILED"?_.Ra(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.p.getAnimationPropsForChoiceIndex=function(h,E){return E[h]};
_.p.maybePlayAnswerAnimations=function(h){h=h===void 0?!1:h;var E;if((E=this.data)!=null&&E.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){E=_.G(this.correctnessAnimationRefs);for(var g=E.next();!g.done;g=E.next()){var Z=void 0,M=void 0;(Z=g.value)==null||(M=Z.lottieEl)==null||M.stop()}if(!(this.selectedItemIndex<0)){E=0;h&&(E=this.isCorrect?37:25);var W,z;(W=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(z=W.lottieEl)==null||z.goToAndPlay(h?E:0,!0);if(!(this.isCorrect||
(W=this.data.choices.findIndex(function(U){return U.isCorrect}),W<0))){var c,I;
(I=(c=this.correctnessAnimationRefs[W])==null?void 0:c.lottieEl)==null||I.goToAndPlay(37,!0);var B;c=(B=this.fadeContainers)==null?void 0:B.item(W);!h&&c&&this.fadeIn(c)}}}};
_.p.thumbnailSrc=function(h){var E,g,Z,M;return(h==null?0:(E=h.thumbnails)==null?0:(g=E[0])==null?0:g.url)?_.Yr((Z=h.thumbnails)==null?void 0:(M=Z[0])==null?void 0:M.url):void 0};
_.p.a11yVotedText=function(h,E){var g,Z,M=((g=this.data)==null?void 0:(Z=g.correctVotedText)==null?void 0:Z.simpleText)||"",W,z;g=((W=this.data)==null?void 0:(z=W.votedText)==null?void 0:z.simpleText)||"";if(!E)return"";var c,I;if((c=this.data)==null?0:(I=c.choices)==null?0:I[h].isCorrect)return M;var B,U;return((B=this.data)==null?0:(U=B.choices)==null?0:U[h].isSelected)?g:""};
_.p.getEndpoint=function(h,E){return E===h?this.data.choices[h].deselectServiceEndpoint||null:this.data.choices[h].selectServiceEndpoint||null};
_.p.sendVoteAction=function(h,E){if(h=this.getEndpoint(h,E))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(h)};
_.p.selectChoice=function(h){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++)this.set("data.choices."+E+".isSelected",h===this.selectedItemIndex?!1:E===h);this.selectedItemIndex=this.selectedItemIndex===h?-1:h};
_.p.maybeInitializeQuizLotties=function(h){var E=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=h.map(function(g){return{animationConfig:g.isCorrect?E.baseCorrectLottiePlayerAnimationConfig:E.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){E.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(g){return g.animationRef||{}})};
_.p.fadeIn=function(h){h.classList.add("fade-in");_.LO(_.KP,function(){h.classList.remove("fade-in")},900)};
_.ze.Object.defineProperties(Uu.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Wp(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 h,E;return((h=this.data)==null?void 0:(E=h.choices)==null?void 0:E.some(function(g){return g.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null||!h.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?cGH:this.data.choices[this.selectedItemIndex].explanation||cGH}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null||!h.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Uu.prototype.onYtServiceRequestCompleted=Uu.prototype.onYtServiceRequestCompleted;Uu.prototype.onYtServiceRequestSent=Uu.prototype.onYtServiceRequestSent;Uu.prototype.onYtCommentPollRevert=Uu.prototype.onYtCommentPollRevert;Uu.prototype.dataChanged=Uu.prototype.dataChanged;Uu.prototype.onExplanationChanged=Uu.prototype.onExplanationChanged;_.Y([_.t(_.oR),_.V("design:type",Object)],Uu.prototype,"paperItemBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Uu.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.NJ.YtTaskEmitterBehavior),_.V("design:type",Object)],Uu.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],Uu.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Uu.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],Uu.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Object)],Uu.prototype,"usesPanelLockup",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.V("design:type",Boolean)],Uu.prototype,"isChannelOwner",void 0);_.Y([_.x({computed:"computeIsTotalVotesDisabled(data)"}),_.V("design:type",Boolean)],Uu.prototype,"isTotalVotesDisabled",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.V("design:type",Boolean)],Uu.prototype,"isImageQuiz",void 0);_.Y([_.x(),_.V("design:type",Object)],Uu.prototype,"previousQuizInfo",void 0);_.Y([_.x(),_.V("design:type",Object)],Uu.prototype,"selectedItemIndex",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data","usesPanelLockup"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"shouldUseModernUi",null);
_.Y([_.xA(".fade-container"),_.V("design:type",Object)],Uu.prototype,"fadeContainers",void 0);_.Y([_.x(),_.V("design:type",Array)],Uu.prototype,"correctnessAnimationProps",void 0);_.Y([_.S("explanation","showCorrectAnswer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"showExplanation",null);_.Y([_.S("isChannelOwner","isAttempted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"showCorrectAnswer",null);
_.Y([_.S("isChannelOwner","isAttempted","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"isQuizAnsweringDisabled",null);_.Y([_.S("isQuizAnsweringDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],Uu.prototype,"endpointStyle",null);_.Y([_.S("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"isAttempted",null);
_.Y([_.S("data","selectedItemIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],Uu.prototype,"explanation",null);_.Y([_.S("data","selectedItemIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uu.prototype,"isCorrect",null);_.Y([_.Sg("ytd-expander"),_.V("design:type",Object)],Uu.prototype,"expander",void 0);_.Y([_.Sg("#quiz-votes"),_.V("design:type",Object)],Uu.prototype,"quizVotes",void 0);
_.Y([_.Nm("explanation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Uu.prototype,"onExplanationChanged",null);_.Y([_.Nm("data","isChannelOwner"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Uu.prototype,"dataChanged",null);_.Y([_.f3("yt-comment-quiz-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Uu.prototype,"onYtCommentPollRevert",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],Uu.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Uu.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Uu);
_.X(Uu,"ytd-backstage-quiz-renderer",function(){if(zQf!==void 0)return zQf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return zQf=h},{mode:1});var iqD;var LH=function(){return _.D.apply(this,arguments)||this};
_.f(LH,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],LH.prototype,"data",void 0);_.Y([_.K({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],LH);
_.X(LH,"ytd-post-uploaded-video-renderer",function(){if(iqD!==void 0)return iqD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return iqD=h},{mode:1});var o2k;var jE=function(){return _.D.apply(this,arguments)||this};
_.f(jE,_.D);jE.prototype.useFilledIcons=function(h){return h==="SPONSORSHIP_STAR"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jE.prototype,"data",void 0);_.Y([_.K({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],jE);
var Icn=_.BK()(jE,"ytd-sponsors-only-badge-renderer",function(){if(o2k===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);o2k=h}h=o2k;return h},{allowedProps:["data"],
mode:1});var RQF;var d_=function(){return _.D.apply(this,arguments)||this};
_.f(d_,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],d_.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],d_.prototype,"data",void 0);_.Y([_.K({is:"ytd-child-video-renderer",disableElementRegistration:!0})],d_);
_.X(d_,"ytd-child-video-renderer",function(){if(RQF!==void 0)return RQF;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return RQF=h},{mode:1});var PdM;var Bll;var CH=function(){var h=_.D.apply(this,arguments)||this;h.size=0;h.enableWebModernCollectionsV2=_.J("web_modern_collections_v2");h.fallbackImageSize={height:void 0,width:9999};h.webModernCollections=!1;return h};
_.f(CH,_.D);_.p=CH.prototype;_.p.computeBlurredImageSize=function(h){return h?{height:h*2,width:h*2}:this.fallbackImageSize};
_.p.computeImageSize=function(h){return h?{height:h,width:h}:this.fallbackImageSize};
_.p.computeObjectFit=function(h){return h?"FILL":"CONTAIN"};
_.p.computePreserve=function(h){return h?!0:!1};
_.p.setBackground=function(){var h,E;_.J("web_modern_collections_v2")&&((h=this.data)==null?0:(E=h.thumbnail)==null?0:E.sampledThumbnailColor)&&(h=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+h.red+","+h.green+","+h.blue+",1)")};
CH.prototype.setBackground=CH.prototype.setBackground;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],CH.prototype,"watchFeedThumbnail",void 0);_.Y([_.x(),_.V("design:type",Object)],CH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],CH.prototype,"size",void 0);
_.Y([_.x({computed:"computeBlurredImageSize(size)"}),_.V("design:type",Object)],CH.prototype,"blurredImageSize",void 0);_.Y([_.x({computed:"computeImageSize(size)"}),_.V("design:type",Object)],CH.prototype,"imageSize",void 0);_.Y([_.x({computed:"computePreserve(size)"}),_.V("design:type",String)],CH.prototype,"preserve",void 0);_.Y([_.x({computed:"computeObjectFit(size)"}),_.V("design:type",String)],CH.prototype,"objectFit",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],CH.prototype,"enableWebModernCollectionsV2",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],CH.prototype,"webModernCollections",void 0);_.Y([_.Nm("data.thumbnail.sampledThumbnailColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CH.prototype,"setBackground",null);_.Y([_.K({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],CH);
_.X(CH,"ytd-playlist-custom-thumbnail-renderer",function(){if(Bll!==void 0)return Bll;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Bll=h},{mode:1});var UnC;var Jz=function(){return _.D.apply(this,arguments)||this};
_.f(Jz,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Jz.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],Jz.prototype,"width",void 0);_.Y([_.K({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Jz);
_.X(Jz,"ytd-playlist-video-thumbnail-renderer",function(){if(UnC!==void 0)return UnC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UnC=h},{mode:1});var LQM;var eE=function(){return _.D.apply(this,arguments)||this};
_.f(eE,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eE.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],eE.prototype,"width",void 0);_.Y([_.K({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],eE);
_.X(eE,"ytd-show-custom-thumbnail-renderer",function(){if(LQM!==void 0)return LQM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return LQM=h},{mode:1});var jgC;var qb=function(){return _.D.apply(this,arguments)||this};
_.f(qb,_.D);qb.prototype.useFilledIcons=function(h){return h==="MUSIC"||h==="COURSE"};
qb.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=QV(this.overlayColor,"0.8");else if(this.overlayColor){var h=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+h.red+","+h.green+","+h.blue+",0.8)"}};
_.ze.Object.defineProperties(qb.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)}}});
qb.prototype.overlayColorChanged=qb.prototype.overlayColorChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qb.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],qb.prototype,"overlayColor",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],qb.prototype,"overlayStyle",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.icon","data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],qb.prototype,"overlayTextStyle",null);_.Y([_.Nm("overlayColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qb.prototype,"overlayColorChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],qb);
_.X(qb,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(jgC!==void 0)return jgC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return jgC=h},{mode:1});var dnf;var fH=function(){var h=_.D.apply(this,arguments)||this;h.active=!1;return h};
_.f(fH,_.D);fH.prototype.computeIsSpinnerHidden=function(h){return(h==null?void 0:h.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
fH.prototype.computeOverlayIcon=function(h){return(h==null?void 0:h.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(h==null?void 0:h.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],fH.prototype,"active",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],fH);
_.X(fH,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dnf!==void 0)return dnf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dnf=h},{mode:1});var Cdk;var Nb=function(){return _.D.apply(this,arguments)||this};
_.f(Nb,_.D);_.ze.Object.defineProperties(Nb.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Nb.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Nb.prototype,"data",void 0);_.Y([_.S("data.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],Nb.prototype,"text",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Nb);
_.X(Nb,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(Cdk!==void 0)return Cdk;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Cdk=h},{mode:1});var JGl,eQk=function(){if(JGl!==void 0)return JGl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return JGl=h};var tz=function(){return _.D.apply(this,arguments)||this};
_.f(tz,_.D);_.ze.Object.defineProperties(tz,{template:{configurable:!0,enumerable:!0,get:function(){return eQk()}}});
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],tz.prototype,"animateEqualizer",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],tz);_.BK()(tz,"ytd-thumbnail-overlay-equalizer",function(){return eQk()},{allowedProps:["animateEqualizer"],
mode:1});var q_M;var SE=function(){var h=_.D.apply(this,arguments)||this;h.nowPlayingBadge=_.J("web_now_playing_badge");h.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return h};
_.f(SE,_.D);SE.prototype.activeChanged=function(){var h=this;_.J("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.pQ(this,function(){_.Ra(h.hostElement,"yt-playlist-lockup-now-playing-active",h)})};
SE.prototype.onMiniplayerPlayStateChanged=function(h){var E,g=(E=_.e(_.sU().currentEndpoint,_.MH))==null?void 0:E.videoId;this.isVideoPlaying=h&&(_.J("web_limit_now_playing_animation_killswitch")||this.videoId===g)};
SE.prototype.activeChanged=SE.prototype.activeChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],SE.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SE.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],SE.prototype,"isVideoPlaying",void 0);_.Y([_.x(),_.V("design:type",String)],SE.prototype,"videoId",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],SE.prototype,"equalizerOnly",void 0);_.Y([_.x(),_.V("design:type",Boolean)],SE.prototype,"isActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],SE.prototype,"nowPlayingBadge",void 0);_.Y([_.Nm("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SE.prototype,"activeChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],SE);
_.X(SE,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(q_M!==void 0)return q_M;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return q_M=h},{mode:1});var fcD;var x9=function(){return _.D.apply(this,arguments)||this};
_.f(x9,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],x9.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],x9);
_.X(x9,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(fcD!==void 0)return fcD;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fcD=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var NlC;var w_=function(){return _.D.apply(this,arguments)||this};
_.f(w_,_.D);w_.prototype.onDurationChanged=function(){var h,E;_.UB(this.hostElement).querySelector("#progress").style.width=((E=(h=this.data)==null?void 0:h.percentDurationWatched)!=null?E:0)+"%"};
w_.prototype.onDurationChanged=w_.prototype.onDurationChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],w_.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],w_.prototype,"isLive",void 0);_.Y([_.Nm("data.percentDurationWatched"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w_.prototype,"onDurationChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],w_);
_.X(w_,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(NlC!==void 0)return NlC;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return NlC=h},{mode:1});var teM;var Di=function(){var h=_.D.apply(this,arguments)||this;h.bottomPanel=!1;h.richGridOverlay=!1;h.watchFeedOverlay=!1;h.isCompact=!1;return h};
_.f(Di,_.D);Di.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ze.Object.defineProperties(Di.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.icon)==null?void 0:E.iconType)==="PLAY_ALL"&&_.J("kevlar_system_icons")}}});
Di.prototype.widthChanged=Di.prototype.widthChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Di.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],Di.prototype,"width",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Di.prototype,"bottomPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Di.prototype,"richGridOverlay",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Di.prototype,"watchFeedOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Di.prototype,"isCompact",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Di.prototype,"isIconFilled",null);_.Y([_.Nm("width","watchFeedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Di.prototype,"widthChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Di);
_.X(Di,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(teM!==void 0)return teM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return teM=h},{mode:1});var S_M;var xnk=["CLIP","SHORTS"],lm=function(){var h=_.D.apply(this,arguments)||this;h.animated=_.J("animated_live_badge_icon");h.hasIcon=!1;h.updateTimerIntervalId=0;h.timeSinceLive=0;return h};
_.f(lm,_.D);_.p=lm.prototype;_.p.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.p.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.p.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.p.hasIconOrText=function(){var h,E;return!!(((h=this.data)==null?0:h.icon)||((E=this.data)==null?0:E.text))};
_.p.initializeLiveBadgeTimer=function(){var h=this,E,g=(E=this.liveBadgeData)==null?void 0:E.startTimestampSec;if(g&&this.canShowLiveBadgeTimer()){var Z;E=Number((Z=this.liveBadgeData)==null?void 0:Z.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(g);this.updateTimerIntervalId=_.Uq(function(){h.canShowLiveBadgeTimer()?h.timeSinceLive++:(h.timeSinceLive=0,window.clearInterval(h.updateTimerIntervalId))},E)}else this.timeSinceLive=0};
_.p.canShowLiveBadgeTimer=function(){var h=Date.now(),E,g;return h<(Number((E=this.liveBadgeData)==null?void 0:E.endTimestampSec)-1)*1E3&&h>Number((g=this.liveBadgeData)==null?void 0:g.startTimestampSec)*1E3};
_.ze.Object.defineProperties(lm.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h=this.data;var E=this.timeSinceLive;var g,Z,M,W;a:{var z=h.style;if(z===void 0)z=17;else switch(z){case "LIVE":z=18;break a;default:z=17}}E={type:z,text:E?xP$({seconds:E}):_.Wp(h.text),accessibilityText:(g=h.text)==null?void 0:(Z=g.accessibility)==null?void 0:(M=Z.accessibilityData)==null?void 0:M.label,icon:(W=h.icon)==null?void 0:W.iconType}}else E={};return E}},
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 h;return(h=this.data)==null?void 0:h.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 xnk.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
lm.prototype.initializeLiveBadgeTimer=lm.prototype.initializeLiveBadgeTimer;lm.prototype.dataChanged=lm.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lm.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lm.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],lm.prototype,"icon",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lm.prototype,"animated",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.V("design:type",Boolean)],lm.prototype,"hideTimeStatus",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lm.prototype,"hasIcon",void 0);_.Y([_.x(),_.V("design:type",Object)],lm.prototype,"timeSinceLive",void 0);_.Y([_.S("data","timeSinceLive"),_.V("design:type",Object),_.V("design:paramtypes",[])],lm.prototype,"badgeShapeData",null);
_.Y([_.S("data","overlayType"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],lm.prototype,"hideBadgeShape",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lm.prototype,"dataChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],lm.prototype,"overlayStyle",null);
_.Y([_.S("data.liveBadgeData"),_.V("design:type",Object),_.V("design:paramtypes",[])],lm.prototype,"liveBadgeData",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.type"),_.V("design:type",Object),_.V("design:paramtypes",[])],lm.prototype,"overlayType",null);_.Y([_.S("overlayType","overlayStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],lm.prototype,"useFilledIcon",null);
_.Y([_.lq("liveBadgeData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lm.prototype,"initializeLiveBadgeTimer",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],lm);
_.X(lm,"ytd-thumbnail-overlay-time-status-renderer",function(){if(S_M!==void 0)return S_M;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return S_M=h},{mode:_.UQ("kevlar_poly_si_batch_j035")?1:2});var wSF;var r_=function(){return _.D.apply(this,arguments)||this};
_.f(r_,_.D);r_.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"}}}}};
r_.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(h){if(this.hasPlaybackProgressBar)return{percentDurationWatched:h.percentDurationWatched}};
r_.prototype.computeHasPlaybackProgressBar=function(h){return!!h.percentDurationWatched&&h.percentDurationWatched>0};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],r_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],r_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.V("design:type",Boolean)],r_.prototype,"hasPlaybackProgressBar",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],r_);
_.X(r_,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(wSF!==void 0)return wSF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return wSF=h},{mode:1});var DnH;var lcB=_.O(function(h){var E=h.data;var g=h.children;var Z=function(){return!!E().doubleStack},M=function(){return!!E().includeStackHeight};
return _.R("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!E().experimentEnabled}},_.R(_.P,{cond:E,
then:function(){var W={};return _.R(_.zt,null,_.R(_.P,{cond:M,then:function(){var z={};return _.R("div",{class:_.CO("ytCollectionsStackSpacer",(z.ytCollectionsStackSpacerDoubleStack=Z,z))})}}),_.R("div",{class:_.CO((W.ytCollectionsStackRelativeStack=M,W))},_.R(_.P,{cond:Z,
then:function(){var z={};return _.R("div",{class:_.CO("ytCollectionsStackCollectionStack2",function(){return E().customClassName2ndStack},(z.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return E().enableResponsiveMode},z)),
style:_.fO({"background-color":function(){return QPZ(E())}})})}}),_.R("div",{class:_.CO("ytCollectionsStackCollectionStack1",function(){return E().customClassName1stStack},function(){return uQz(E().thumbnailSize?E().thumbnailSize:"medium")}),
style:_.fO({"background-color":function(){return QPZ(E())}})}),g))}}))},"W");_.I9(lcB,"yt-collections-stack",{props:{data:_.C6}});var mD=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};h.webModernCollections=!1;h.isSearch=!1;h.isDoubleStack=!1;h.thumbnailSize="medium";h.enableWebModernCollectionsV2=_.J("web_modern_collections_v2");return h};
_.f(mD,_.D);_.p=mD.prototype;
_.p.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.p.getThumbnailDetails=function(h){if(h!=null&&h.thumbnailRenderer){var E=h.thumbnailRenderer,g;if((g=E.playlistVideoThumbnailRenderer)==null?0:g.thumbnail)return E.playlistVideoThumbnailRenderer.thumbnail;var Z;if((Z=E.playlistCustomThumbnailRenderer)==null?0:Z.thumbnail)return E.playlistCustomThumbnailRenderer.thumbnail;h=h.thumbnailRenderer;var M;if((M=h.showCustomThumbnailRenderer)==null?0:M.thumbnail)return h.showCustomThumbnailRenderer.thumbnail}};
_.p.computeOverlayColor=function(h){var E,g;if((E=this.getThumbnailDetails(h))==null?0:(g=E.darkColorPalette)==null?0:g.section2Color)return this.getThumbnailDetails(h).darkColorPalette.section2Color;var Z;return(Z=this.getThumbnailDetails(h))==null?void 0:Z.sampledThumbnailColor};
_.p.computeWebModernCollections=function(h){if(h==null||!h.thumbnailOverlays)return!1;h=_.G(h.thumbnailOverlays);for(var E=h.next();!E.done;E=h.next()){var g=void 0;if((g=E.value)==null?0:g.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.p.computeNavigationEndpoint=function(h){return zR$(h==null?void 0:h.navigationEndpoint)};
_.ze.Object.defineProperties(mD.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var h=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:h==null?void 0:h.sampledThumbnailColor,vibrantColorPalette:h==null?void 0:h.vibrantColorPalette,darkColorPalette:h==null?void 0:h.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],mD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(nOH),_.V("design:type",Object)],mD.prototype,"ytdThumbnailBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],mD.prototype,"componentBehavior",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],mD.prototype,"watchFeedThumbnail",void 0);_.Y([_.x(),_.V("design:type",Number)],mD.prototype,"customThumbnailSize",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],mD.prototype,"hideAria",void 0);_.Y([_.x(),_.V("design:type",Object)],mD.prototype,"data",void 0);_.Y([_.x({computed:"computeOverlayColor(data)"}),_.V("design:type",Object)],mD.prototype,"overlayColor",void 0);
_.Y([_.x({computed:"computeWebModernCollections(data)"}),_.V("design:type",Object)],mD.prototype,"webModernCollections",void 0);_.Y([_.x({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],mD.prototype,"computedNavigationEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],mD.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],mD.prototype,"isDoubleStack",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],mD.prototype,"thumbnailSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],mD.prototype,"enableWebModernCollectionsV2",void 0);_.Y([_.S("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],mD.prototype,"collectionStack",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],mD);
_.X(mD,"ytd-playlist-thumbnail",function(){if(DnH!==void 0)return DnH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return DnH=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var rGM;var vP=function(){var h=_.D.apply(this,arguments)||this;h.noEndpoints=!1;h.amsterdamPostMvp=_.J("web_amsterdam_post_mvp_playlists");h.badges=[];h.transferState="TRANSFER_STATE_UNKNOWN";return h};
_.f(vP,_.D);_.p=vP.prototype;_.p.getMetadata=function(h){if(!h)return[];var E=[],g=h.shortViewCountText||h.viewCountText;g&&E.push(_.Wp(g));h.publishedTimeText&&E.push(_.Wp(h.publishedTimeText));h.upcomingEventData&&h.upcomingEventData.upcomingEventText&&E.push(_.r5(_.Wp(h.upcomingEventData.upcomingEventText),Number(h.upcomingEventData.startTime)));return E};
_.p.observeDataForBylineSeparator=function(){this.data&&_.jg(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.p.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.bU(this.metadataColor)};
_.p.getSimpleString=function(h){return _.Wp(h)};
_.p.isBylineHidden=function(h){return this.noByline||!((h==null?0:h.longBylineText)||(h==null?0:h.shortBylineText))};
_.p.isMetadataHidden=function(h){var E;return((E=this.getMetadata(h))==null?void 0:E.length)===0};
_.p.isBylineMetadataSeparatorHidden=function(h){return this.isMetadataHidden(h)||!this.shouldShowVideoInfo};
_.p.isLongByline=function(h,E){return E&&!(h==null||!h.longBylineText)};
_.ze.Object.defineProperties(vP.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var h;return this.amsterdamPostMvp&&!((h=this.data)==null||!h.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 _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
vP.prototype.metadataColorChanged=vP.prototype.metadataColorChanged;vP.prototype.observeDataForBylineSeparator=vP.prototype.observeDataForBylineSeparator;_.Y([_.t(_.aF),_.V("design:type",Object)],vP.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],vP.prototype,"noEndpoints",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"isSlimShort",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"radioMeta",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],vP.prototype,"isGridViewEnabled",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"richMeta",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vP.prototype,"amsterdamPostMvp",void 0);_.Y([_.x(),_.V("design:type",Boolean)],vP.prototype,"noByline",void 0);
_.Y([_.x({computed:"isLongByline(data, radioMeta)"}),_.V("design:type",Boolean)],vP.prototype,"longByline",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"truncateMetadataLine",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"miniMode",void 0);_.Y([_.x(),_.V("design:type",Number)],vP.prototype,"metadataColor",void 0);_.Y([_.x(),_.V("design:type",Array)],vP.prototype,"badges",void 0);
_.Y([_.x({selector:_.y7,selectorArgs:["data.videoId"]}),_.V("design:type",String)],vP.prototype,"transferState",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"isDownloading",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vP.prototype,"typographyBump",void 0);_.Y([_.Sg("#metadata-line"),_.V("design:type",HTMLElement)],vP.prototype,"metadataLine",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vP.prototype,"observeDataForBylineSeparator",null);_.Y([_.Nm("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vP.prototype,"metadataColorChanged",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vP.prototype,"shouldShowVideoInfo",null);
_.Y([_.S("badges"),_.V("design:type",String),_.V("design:paramtypes",[])],vP.prototype,"inlineBadgeClass",null);_.Y([_.S("longByline"),_.V("design:type",String),_.V("design:paramtypes",[])],vP.prototype,"longBylineClass",null);_.Y([_.S("data","longByline"),_.V("design:type",Object),_.V("design:paramtypes",[])],vP.prototype,"bylineText",null);_.Y([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],vP.prototype,"watchFeedBigThumbs",null);
_.Y([_.K({is:"ytd-video-meta-block",disableElementRegistration:!0})],vP);
_.X(vP,"ytd-video-meta-block",function(){if(rGM!==void 0)return rGM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return rGM=h},{mode:_.UQ("kevlar_poly_si_batch_j080")?1:2});_.$P("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var HP=function(){var h=_.D.apply(this,arguments)||this;h.displayItemCount=2;h.isBackstagePlaylist=!1;h.isPostCompactPlaylist=!1;h.shouldShowChannelThumbnail=!1;h.useModernCollectionsV2=_.J("web_modern_collections_v2");return h};
_.f(HP,_.D);_.p=HP.prototype;_.p.computeFirstVideos=function(h,E){return h===void 0||E===void 0?[]:h.slice(0,E)};
_.p.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var h=this.data.thumbnailRenderer;h.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",h.playlistVideoThumbnailRenderer.thumbnail);h.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",h.playlistCustomThumbnailRenderer.thumbnail)}};
_.p.computeThumbnailHeight=function(h,E,g,Z,M){return Z?M==="BIG"?280:M==="MASSIVE"?337:234:g?240:E?72:h?118:138};
_.p.computeThumbnailWidth=function(h,E,g,Z,M){return Z?M==="MEDIUM"?450:M==="BIG"?500:M==="MASSIVE"?600:420:g?360:E?128:h?210:246};
_.p.computeUseBiggerThumbs=function(h){return h&&_.J("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelThumbnail=function(h,E){return h&&!(E==null||!E.channelThumbnail)};
_.ze.Object.defineProperties(HP.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
HP.prototype.dataChanged=HP.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],HP.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],HP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],HP.prototype,"displayItemCount",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],HP.prototype,"isBackstagePlaylist",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],HP.prototype,"isPostCompactPlaylist",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],HP.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.V("design:type",Boolean)],HP.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],HP.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],HP.prototype,"isDownloads",void 0);_.Y([_.x({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.V("design:type",Object)],HP.prototype,"shouldShowChannelThumbnail",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],HP.prototype,"useModernCollectionsV2",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HP.prototype,"dataChanged",null);_.Y([_.S("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],HP.prototype,"stackThumbnailSize",null);_.Y([_.K({is:"ytd-playlist-renderer",disableElementRegistration:!0})],HP);
_.X(HP,"ytd-playlist-renderer",function(){if(PdM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);PdM=h}h=PdM;return h},{mode:1});var mnC;var v2m;var $9=function(){var h=_.D.apply(this,arguments)||this;h.collections=!!_.J("web_modern_collections_v2");h.startX=0;return h};
_.f($9,_.D);$9.prototype.onEndpointMouseDown=function(h){this.startX=h.clientX};
$9.prototype.onEndpointClick=function(h){this.startX!==h.clientX&&(h.preventDefault(),h.stopPropagation())};
$9.prototype.computeObjectFit=function(h){return h==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||h==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||h==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
$9.prototype.computeCardStyle=function(h){return h?h.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ze.Object.defineProperties($9.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.collections&&((h=this.data)==null?void 0:(E=h.searchRefinementCardRendererStyle)==null?void 0:E.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}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$9.prototype,"data",void 0);_.Y([_.x({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",Number)],$9.prototype,"objectFit",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.V("design:type",String)],$9.prototype,"cardStyle",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],$9.prototype,"roundContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],$9.prototype,"collections",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],$9.prototype,"isAlbumCard",null);_.Y([_.S("data","collections","isAlbumCard"),_.V("design:type",Object),_.V("design:paramtypes",[])],$9.prototype,"collectionStack",null);
_.Y([_.K({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],$9);
_.X($9,"ytd-search-refinement-card-renderer",function(){if(v2m!==void 0)return v2m;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return v2m=h},{mode:1});var HqC;var KH=function(){var h=_.D.apply(this,arguments)||this;h.isRichGrid=!1;return h};
_.f(KH,_.D);_.Y([_.x(),_.V("design:type",Object)],KH.prototype,"data",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],KH.prototype,"componentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],KH.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],KH.prototype,"isRichGrid",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],KH.prototype,"miniMode",void 0);
_.Y([_.K({is:"ytd-game-details-renderer",disableElementRegistration:!0})],KH);
_.X(KH,"ytd-game-details-renderer",function(){if(HqC!==void 0)return HqC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HqC=h},{mode:1});var $nf;var KQM;var Ou=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return h};
_.f(Ou,_.D);_.p=Ou.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(h){var E=h||this.data;return E&&E.states&&E.currentStateId!=null?E.states.find(function(g){return g.stateId===E.currentStateId})||null:null};
_.p.currentStateRendererData=function(h){return(h=this.currentStateData(h))&&h.state&&h.state.buttonRenderer?h.state.buttonRenderer:null};
_.p.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.p.computeButtonIcon=function(h){h=this.currentStateRendererData(h);var E;return(h==null?0:(E=h.icon)==null?0:E.iconType)?h.icon.iconType.toLowerCase():null};
_.p.computeAccessibility=function(h){return(h=this.currentStateRendererData(h))&&h.accessibilityData?h.accessibilityData.accessibilityData||null:null};
_.p.computeButtonClass=function(h){var E=this.currentStateRendererData(h);if(!E)return"";h="";var g=E.style;g&&(h+=g.toLowerCase().replace(/_/g,"-")+" ");(E=E.size)&&(h+=E.toLowerCase().replace(/_/g,"-")+" ");return h.trim()};
_.p.computeServiceEndpoint=function(h){if(!h)return null;var E=h&&h.serviceEndpoint,g=this.get("command.commandMetadata.webCommandMetadata.sendPost",h);return E?E:g&&h.command?h.command:null};
_.p.computeBellMenuItemParams=function(h){var E;h=(E=_.e(h==null?void 0:h.command,_.CZ))==null?void 0:E.commands;if(!h||h.length===0)return null;E=_.e(h[0],_.sr);var g,Z;return(E==null?0:(g=E.popup)==null?0:(Z=g.menuPopupRenderer)==null?0:Z.items)?E.popup.menuPopupRenderer.items.map(function(M){return M.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(h){var E=h.trackingParams,g=this.computeBellMenuItemParams(this.data);this.data&&E&&g&&g.includes(E)&&this.ytRenderButtonBehavior._setButtonIcon(h.icon.iconType.toLowerCase())};
_.p.onYtServiceRequestCompleted=function(h,E){(h=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))&&this.set("data",h)};
_.p.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.p.resetState=function(){this.set("data.currentStateId",3)};
_.p.onYtButtonTapHandler=function(){if(this.data){var h=this.currentStateRendererData(this.data);h&&this.ytRendererBehavior.logExplicitClick(h)}};
Ou.prototype.onYtServiceRequestError=Ou.prototype.onYtServiceRequestError;Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;Ou.prototype.stateChanged=Ou.prototype.stateChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(uk.YtRenderButtonBehavior),_.V("design:type",Object)],Ou.prototype,"ytRenderButtonBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ou.prototype,"data",void 0);_.Y([_.lq("data","data.currentStateId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ou.prototype,"stateChanged",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ou.prototype,"onYtServiceRequestError",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Ou);
_.X(Ou,"ytd-subscription-notification-toggle-button-renderer",function(){if(KQM!==void 0)return KQM;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return KQM=h},{mode:1});var Oql;var nH=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};h.tapHandler=function(){if(h.data){var E=h.currentStateRendererData();E&&h.ytRendererBehavior.logExplicitClick(E)}};
return h};
_.f(nH,_.D);_.p=nH.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.currentStateData=function(){var h=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(E){return E.stateId===h.data.currentStateId})||null:null};
_.p.currentStateRendererData=function(){var h=this.currentStateData();return h&&h.state&&h.state.buttonRenderer?h.state.buttonRenderer:null};
_.p.computeAccessibilityLabel=function(){var h,E,g;return(h=this.currentStateRendererData())==null?void 0:(E=h.accessibilityData)==null?void 0:(g=E.accessibilityData)==null?void 0:g.label};
_.p.computeBellMenuItemParams=function(){var h,E,g=(E=_.e((h=this.data)==null?void 0:h.command,_.CZ))==null?void 0:E.commands;if(!g||g.length===0)return null;h=_.e(g[0],_.sr);var Z,M;return(h==null?0:(Z=h.popup)==null?0:(M=Z.menuPopupRenderer)==null?0:M.items)?h.popup.menuPopupRenderer.items.map(function(W){return W.menuServiceItemRenderer.trackingParams}):null};
_.p.handleBellMenuOpenSelectedAction=function(h){var E=h.trackingParams,g=this.computeBellMenuItemParams();if(this.data&&E&&g&&g.includes(E)&&(h==null||!h.isDisabled)){var Z;((Z=_.e(h.serviceEndpoint,_.ej))==null?void 0:Z.signal)!=="CLIENT_SIGNAL"&&(this.icon=h.icon.iconType)}};
_.p.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.p.onYtServiceRequestCompleted=function(h,E){if(h=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))this.icon=void 0,this.set("data",h)};
_.p.onYtServiceRequestError=function(){this.icon=void 0};
_.ze.Object.defineProperties(nH.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h=this.data,E=this.textLabel,g=this.hostElement,Z=this.computeAccessibilityLabel(),M=this.tapHandler,W=this.isOverlay?"overlay":"mono",z=(h==null?0:h.disableButton)?"disabled":"active";E=E?_.X8(E):void 0;return{style:W,type:"tonal",state:z,size:"M",focused:!1,formattedButtonText:E,iconPosition:"leading-trailing",onTap:E2q(h,M,g),accessibilityLabel:Z}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var h=this.currentStateRendererData(),E,g,Z=(g=this.icon)!=null?g:h==null?void 0:(E=h.icon)==null?void 0:E.iconType;if(Z)return _.CL(Z)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.secondaryIcon)==null?void 0:E.iconType;if(g)return _.CL(g)}}});
nH.prototype.onYtServiceRequestError=nH.prototype.onYtServiceRequestError;nH.prototype.onYtServiceRequestCompleted=nH.prototype.onYtServiceRequestCompleted;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],nH.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],nH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],nH.prototype,"textLabel",void 0);
_.Y([_.x(),_.V("design:type",String)],nH.prototype,"icon",void 0);_.Y([_.x(),_.V("design:type",Boolean)],nH.prototype,"isOverlay",void 0);_.Y([_.S("data.*","textLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],nH.prototype,"computedButtonShape",null);_.Y([_.S("data.*","icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],nH.prototype,"computedIcon",null);_.Y([_.S("computedIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],nH.prototype,"computedAnimateIcon",null);
_.Y([_.S("data.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],nH.prototype,"computedSecondaryIcon",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],nH.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],nH.prototype,"onYtServiceRequestError",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],nH);
_.X(nH,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Oql!==void 0)return Oql;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Oql=h},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var n2D;_.I9(ntM,"yt-animated-action",{props:{backgroundLottieRef:_.C6,foregroundLottieRef:_.C6,wrapperClass:_.C6,disableAnimation:_.C6},unsafeExternallySettableAttributes:new Set(["key"])});var XZ=function(){var h=_.D.apply(this,arguments)||this;h.animatedActionEnabled=_.J("web_animated_actions");h.foregroundLottieRef={};h.backgroundLottieRef={};h.forceIconOnly=!1;h.showTextWhileAnimating=!1;h.keyboardFocused=!1;h.isAnimating=!1;h.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return h};
_.f(XZ,_.D);_.p=XZ.prototype;_.p.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.p.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onYtServiceRequestSent=function(h,E){(this.get("endpoint.subscribeEndpoint",E)||this.get("endpoint.unsubscribeEndpoint",E))&&this.updateSubscriptionState(!this.subscribed)};
_.p.onYtServiceRequestCompleted=function(h,E){(h=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",E.data))&&this.bellButton&&(this.bellButton.data=h)};
_.p.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Ja(this.hostElement)};
_.p.onPlayerSubscribe=function(h){this.isCompactRed()||h!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.p.onPlayerUnsubscribe=function(h){this.isCompactRed()||h!==this.data.channelId||this.updateSubscriptionState(!1)};
_.p.handleUpdateSubscribeButtonAction=function(h){h=_.e(h,t_C);var E;h&&h.channelId===((E=this.data)==null?void 0:E.channelId)&&this.updateSubscriptionState(!!h.subscribed)};
_.p.computeButtonStyle=function(h){return this.get("style.styleType",h)||null};
_.p.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.p.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.p.updateSubscriptionState=function(h){if(h!==this.subscribed){this.set("data.subscribed",h);var E,g=(E=this.data)==null?void 0:E.subscribedEntityKey;g&&this.ytdReduxBehavior.dispatch(_.xx("subscriptionStateEntity",g,{key:g,subscribed:h}));this.isCompactRed()||_.Ra(this.hostElement,"yt-subscription-changed",h);h||(_.BX(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!h),h&&this.hasBellButton&&this.startAnimation())}};
_.p.startAnimation=function(){var h=this;if(!this.isAnimating){var E=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var g;(g=this.backgroundLottieRef.lottieEl)==null||g.goToAndPlay(0);var Z;(Z=this.foregroundLottieRef.lottieEl)==null||Z.goToAndPlay(0);_.KP.addJob(function(){h.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.KP.addJob(function(){h.updateContainerToFitContent(!!h.subscribed,!0)},2,1500);
_.KP.addJob(function(){h.isAnimating=!1},2,E)}};
_.p.maybeAnimateBellIcon=function(){var h=_.L3(this.hostElement).querySelector("yt-animated-icon");if(h){var E;(E=h.animationRef.lottieEl)==null||E.goToAndPlay(0)}};
_.p.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.p.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.p.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var h;this.unsubscribedWidth=(h=this.subscribeButtonShape)==null?void 0:h.getBoundingClientRect().width}var E;this.subscribedWidth=(E=this.bellButton)==null?void 0:E.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.p.updateContainerToFitContent=function(h,E){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(h?(h=this.subscribedWidth,E=this.isAnimating&&!E,this.subscribedIconOnlyWidth===void 0||E||(h=this.subscribedIconOnlyWidth),this.hostElement.style.width=h+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.p.clearContainerSize=function(){this.hostElement.style.width=""};
_.p.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.p.maybeSetSubscribedButtonIconOnlyWidth=function(){var h=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 E;h.subscribedIconOnlyWidth=(E=h.bellButton)==null?void 0:E.getBoundingClientRect().width;requestAnimationFrame(function(){if(h.bellButton){var g;h.bellButton.textLabel=
(g=h.data)==null?void 0:g.subscribedButtonText}})})))};
_.ze.Object.defineProperties(XZ.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 h;return(h=this.data)==null?void 0:h.subscribedButtonText}var E;return this.forceIconOnly?void 0:(E=this.data)==null?void 0:E.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var h,E,g=((h=this.data)==null?void 0:(E=h.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"subscribe",timings:g,enabled:g.length>0&&!this.subscribed,experimentEnabled:g.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var h;return!this.subscribed&&((h=this.data)==null?void 0:h.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 h={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var E=h.renderer;var g=h.element;var Z=h.subscribed;var M=h.commandController;var W=h.isOverlay;h=h.stopPropagation;var z=WQz(E,Z);W&&(z.style="overlay");W=Object;var c=W.assign,I;a:switch((I=E.style)==null?void 0:I.styleType){case "COMPACT_GRAY":case "COMPACT_RED":I={size:"S"};break a;default:I={size:"M"}}var B=Meq(E,
Z);var U=(U=Z?E.subscribedButtonText:E.unsubscribedButtonText)?_.X8(U):void 0;return c.call(W,{},z,I,{focused:!1,toggled:Z,accessibilityLabel:B,formattedButtonText:U,onTap:ZqZ(E,Z,g,M,h)})}}}});
XZ.prototype.onMouseDown=XZ.prototype.onMouseDown;XZ.prototype.onDataChanged=XZ.prototype.onDataChanged;XZ.prototype.observedSubscribed=XZ.prototype.observedSubscribed;XZ.prototype.onYtServiceRequestCompleted=XZ.prototype.onYtServiceRequestCompleted;XZ.prototype.onYtServiceRequestSent=XZ.prototype.onYtServiceRequestSent;XZ.prototype.maybeUpdateBellButtonText=XZ.prototype.maybeUpdateBellButtonText;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],XZ.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],XZ.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],XZ.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.subscribedEntityKey"],selector:W7q}),_.V("design:type",Object)],XZ.prototype,"subscriptionStateEntity",void 0);_.Y([_.x({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.V("design:type",Boolean)],XZ.prototype,"subscribed",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],XZ.prototype,"branded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],XZ.prototype,"animatedActionEnabled",void 0);
_.Y([_.x(),_.V("design:type",Object)],XZ.prototype,"foregroundLottieRef",void 0);_.Y([_.x(),_.V("design:type",Object)],XZ.prototype,"backgroundLottieRef",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],XZ.prototype,"overlayButton",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.V("design:type",Object)],XZ.prototype,"buttonStyle",void 0);_.Y([_.x(),_.V("design:type",Object)],XZ.prototype,"forceIconOnly",void 0);
_.Y([_.x(),_.V("design:type",Object)],XZ.prototype,"showTextWhileAnimating",void 0);_.Y([_.x({value:function(){return!!_.GF().resolve(_.pl(_.DX))&&_.J("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],XZ.prototype,"useKeyboardFocused",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],XZ.prototype,"keyboardFocused",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],XZ.prototype,"isAnimating",void 0);_.Y([_.S("data.notificationPreferenceButton.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"hasBellButton",null);
_.Y([_.Nm("subscribedButtonText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XZ.prototype,"maybeUpdateBellButtonText",null);_.Y([_.S("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"subscribedButtonText",null);_.Y([_.S("data.timedAnimationData.animationTiming","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"smartimationSettings",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"subscribeButtonHidden",null);_.Y([_.x({reflectToAttribute:!0}),_.S("subscribed","hasBellButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"subscribeButtonInvisible",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"unsubscribeButtonHidden",null);_.Y([_.Sg("ytd-subscription-notification-toggle-button-renderer-next"),_.V("design:type",Object)],XZ.prototype,"bellButton",void 0);_.Y([_.Sg("#subscribe-button-shape"),_.V("design:type",HTMLElement)],XZ.prototype,"subscribeButtonShape",void 0);
_.Y([_.S("overlayButton","subscribed","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],XZ.prototype,"buttonShape",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],XZ.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],XZ.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.Nm("subscribed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XZ.prototype,"observedSubscribed",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XZ.prototype,"onDataChanged",null);_.Y([_.f3("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],XZ.prototype,"onMouseDown",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],XZ);
_.X(XZ,"ytd-subscribe-button-renderer",function(){if(n2D!==void 0)return n2D;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return n2D=h},{mode:1});var Y9=function(){var h=_.D.apply(this,arguments)||this;h.isRichGrid=!1;return h};
_.f(Y9,_.D);Y9.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Y9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Y9.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Y9.prototype,"isRichGrid",void 0);_.Y([_.K({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Y9);
_.X(Y9,"ytd-game-card-renderer",function(){if($nf!==void 0)return $nf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $nf=h},{mode:1});var su={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.J("defer_menus")&&!f5l?0:void 0,waitForSignal:"eocs"};var XSC;var Y_B;var Vq=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return h};
_.f(Vq,_.D);_.p=Vq.prototype;_.p.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.p.onSeriesReminderStateEntityChange=function(){var h,E,g;((h=this.eventReminderStateEntity)==null?0:h.key)&&((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((g=this.eventReminderStateEntity)==null?void 0:g.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.xx("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.p.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.p.onYtServiceRequestError=function(){var h;this.updateReminderStateEntitiesFromButtonState((h=this.data)==null?void 0:h.currentState)};
_.p.handleUpdateUpcomingEventReminderButtonStateCommand=function(h){if(h=_.e(h,UPM)){var E,g=(E=this.data)==null?void 0:E.targetId;g&&h.targetId===g&&_.hW(this.updateReminderStateEntitiesFromButtonState.bind(this,h.state))}};
_.p.getButtonStateFromReminderState=function(){var h;if(((h=this.seriesReminderStateEntity)==null?void 0:h.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var E;if(((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var g,Z;if(((g=this.seriesReminderStateEntity)==null?void 0:g.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((Z=this.eventReminderStateEntity)==
null?void 0:Z.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var M;return(M=this.data)==null?void 0:M.currentState};
_.p.updateReminderStateEntitiesFromButtonState=function(h){if(h){switch(h){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":h="UPCOMING_EVENT_REMINDER_STATE_NONE";var E="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":h="UPCOMING_EVENT_REMINDER_STATE_SINGLE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":h="UPCOMING_EVENT_REMINDER_STATE_NONE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var g;
((g=this.eventReminderStateEntity)==null?0:g.key)&&this.ytdReduxBehavior.dispatch(_.xx("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:h})));var Z;((Z=this.seriesReminderStateEntity)==null?0:Z.key)&&this.ytdReduxBehavior.dispatch(_.xx("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:E})))}};
_.ze.Object.defineProperties(Vq.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var h=this.getButtonStateFromReminderState(),E,g;if(h&&((E=this.data)==null?0:(g=E.states)==null?0:g.length))for(E=_.G(this.data.states),g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;if(((Z=_.e(g,J6B))==null?void 0:Z.state)===h)return _.e(g,J6B)}}}});
Vq.prototype.onYtServiceRequestError=Vq.prototype.onYtServiceRequestError;Vq.prototype.onYtServiceRequestCompleted=Vq.prototype.onYtServiceRequestCompleted;Vq.prototype.onSeriesReminderStateEntityChange=Vq.prototype.onSeriesReminderStateEntityChange;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Vq.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vq.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Vq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Vq.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vq.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:GIW}),_.V("design:type",Object)],Vq.prototype,"eventReminderStateEntity",void 0);
_.Y([_.x({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(h,E){return _.Jj(h.entities,"sportsSeriesReminderStateEntity",E)}}),
_.V("design:type",Object)],Vq.prototype,"seriesReminderStateEntity",void 0);_.Y([_.S("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vq.prototype,"currentButtonStateRenderer",null);_.Y([_.Nm("seriesReminderStateEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vq.prototype,"onSeriesReminderStateEntityChange",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vq.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vq.prototype,"onYtServiceRequestError",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Vq);
_.X(Vq,"ytd-upcoming-event-reminder-button-renderer",function(){if(Y_B!==void 0)return Y_B;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return Y_B=h},{mode:1});var sgD;var k9=function(){return _.D.apply(this,arguments)||this};
_.f(k9,_.D);k9.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ze.Object.defineProperties(k9.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(_.J("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],k9.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],k9.prototype,"shelfDismissal",void 0);_.Y([_.S("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],k9.prototype,"text",null);
_.Y([_.S("data.responseText"),_.V("design:type",Object),_.V("design:paramtypes",[])],k9.prototype,"textAriaLabel",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],k9);
_.X(k9,"ytd-notification-multi-action-renderer",function(){if(sgD!==void 0)return sgD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return sgD=h},{mode:1});var VeD;var yq=function(){return _.D.apply(this,arguments)||this};
_.f(yq,_.D);yq.prototype.ready=function(){var h=this;_.UB(this.hostElement).querySelector("#undo").addEventListener("tap",function(){h.onUndoTap()})};
yq.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yq.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],yq);
_.X(yq,"ytd-notification-text-renderer",function(){if(VeD!==void 0)return VeD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VeD=h},{mode:1});var kmk;var FZ=function(){var h=_.D.apply(this,arguments)||this;h.mouseOverDelayJobId=0;h.fadeInImageDelayJobId=0;h.startTimeMs=-1;h.loadingStartTimeMs=-1;h.loadingEndTimeMs=-1;h.hasVideoPreview=!1;return h};
_.f(FZ,_.D);_.p=FZ.prototype;_.p.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.p.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.p.showThumbnail=function(){var h=this;this.csn=_.sH();_.Vp("fmth");_.KP.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.LO(_.KP,function(){h.loadingStartTimeMs=(0,_.zn)();var E=_.UB(h.hostElement).querySelector("#thumbnail");E.complete?h.displayMouseOverImage():E.addEventListener("load",_.qm(h,h.displayMouseOverImage))},150):_.jg(_.UB(this.hostElement).querySelector("#play"),"show",!0)};
_.p.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.p.onTap=function(){this.removeVideoPreview()};
_.p.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var h=this.videoId,E=this.csn,g=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,Z=this.startTimeMs,M=this.hasVideoPreview,W=_.rp(this.trackingParams),z={isMovingThumbnail:M};M&&Z>0&&(g>0&&(z.movingThumbnailLoadingDurationMs=Math.round(g)),z.durationHoveredMs=Math.round((0,_.zn)()-Z));h&&(z.videoId=h);_.Mw(E,W,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.p.removeVideoPreview=function(){_.KP.cancelJob(this.mouseOverDelayJobId);_.KP.cancelJob(this.fadeInImageDelayJobId);var h=_.UB(this.hostElement).querySelector("#thumbnail");_.jg(h,"fade-in",!1);h.removeEventListener("load",_.qm(this,this.displayMouseOverImage));h=_.UB(this.hostElement).querySelector("#play");_.jg(h,"fade-in",!1);_.jg(h,"show",!1)};
_.p.displayMouseOverImage=function(){var h=_.UB(this.hostElement).querySelector("#thumbnail"),E=_.UB(this.hostElement).querySelector("#play");this.isImageAvailable(h)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.zn)(),this.startTimeMs=(0,_.zn)(),this.fadeInImageDelayJobId=_.LO(_.KP,function(){_.jg(h,"fade-in",!0)},50)):_.jg(E,"fade-in",!0)};
_.p.computeThumbnail=function(h,E){var g;h&&h.movingThumbnailDetails&&h.movingThumbnailDetails.thumbnails&&E?g=_.R9(h.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):g=E?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(g)return _.Yr(g)};
_.p.isImageAvailable=function(h){return!(!h.src||h.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||h.naturalWidth===120)};
FZ.prototype.onTap=FZ.prototype.onTap;FZ.prototype.dataChanged=FZ.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],FZ.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],FZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],FZ.prototype,"csn",void 0);_.Y([_.x(),_.V("design:type",Object)],FZ.prototype,"trackingParams",void 0);
_.Y([_.x(),_.V("design:type",String)],FZ.prototype,"videoId",void 0);_.Y([_.x(),_.V("design:type",Boolean)],FZ.prototype,"isAttachedAndDataSet",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FZ.prototype,"dataChanged",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FZ.prototype,"onTap",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],FZ);
_.X(FZ,"ytd-moving-thumbnail-renderer",function(){if(kmk!==void 0)return kmk;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return kmk=h},{mode:1});var yGm;_.ae=function(h){this.hostElement=h;this.eventSink=null;this.eventList=[]};
_.ae.prototype.shouldForward=function(){var h,E;return(E=(h=this.eventSink)==null?void 0:h.isConnected)!=null?E:document.body.contains(this.eventSink)};
_.ae.prototype.start=function(h,E){this.eventSink&&this.stop();for(var g=0;g<h.length;g++)this.hostElement.addEventListener(h[g],_.qm(this,this.forwardEvent));var Z;this.eventSink=(Z=E.hostElement)!=null?Z:E;this.eventList=h};
_.ae.prototype.stop=function(){for(var h=0;h<this.eventList.length;h++)this.hostElement.removeEventListener(this.eventList[h],_.qm(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.ae.prototype.forwardEvent=function(h,E){this.shouldForward()&&(h.stopPropagation(),this.eventSink instanceof Element?_.Ra(this.eventSink,h.type,E):_.O$(new _.xX("eventSink is not an element")))};_.Az={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.ae(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(h,E){this.forwarder_.start(h,E)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Tj=function(){return _.D.apply(this,arguments)||this};
_.f(Tj,_.D);_.p=Tj.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.nF("HTML_DIR")==="rtl"?"right":"left"};
_.p.dataChanged=function(){this.popupOpen=!1};
_.p.computeAriaLabel=function(h){return _.e(h,AoD).label};
_.p.onTap=function(h){h.stopPropagation();h.preventDefault();this.data.command&&_.GF().resolve(_.zF).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Tj.prototype.onPopupClosed=Tj.prototype.onPopupClosed;Tj.prototype.onPopupOpened=Tj.prototype.onPopupOpened;Tj.prototype.onTap=Tj.prototype.onTap;Tj.prototype.dataChanged=Tj.prototype.dataChanged;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Tj.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.Td),_.V("design:type",Object)],Tj.prototype,"ironButtonState",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Tj.prototype,"componentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Tj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:-1}),_.V("design:type",Number)],Tj.prototype,"tabindex",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.V("design:type",Object)],Tj.prototype,"ariaLabel",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Tj.prototype,"disableTooltips",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Tj.prototype,"popupOpen",void 0);
_.Y([_.x(),_.V("design:type",Element)],Tj.prototype,"eventSink",void 0);_.Y([_.Sg("#tooltip"),_.V("design:type",Object)],Tj.prototype,"tooltip",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tj.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Tj.prototype,"onTap",null);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tj.prototype,"onPopupOpened",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tj.prototype,"onPopupClosed",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Tj);
_.X(Tj,"ytd-thumbnail-overlay-button-renderer",function(){if(yGm!==void 0)return yGm;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return yGm=h},{mode:1});var FQf;var bm=function(){return _.D.apply(this,arguments)||this};
_.f(bm,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bm.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bm.prototype,"disableAnimation",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bm.prototype,"rounded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bm.prototype,"transparentBackground",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bm.prototype,"noPadding",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],bm);
_.X(bm,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(FQf!==void 0)return FQf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return FQf=h},{mode:1});var AGC;var um=function(){return _.D.apply(this,arguments)||this};
_.f(um,_.D);um.prototype.computeIconPosition=function(h){return this.get("iconPosition",h)||null};
um.prototype.computeIconStyle=function(h){return this.get("iconStyle",h)||null};
um.prototype.computeIsIconStyleFilled=function(h){if(!h)return!1;var E;return h.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((E=h.icon)==null?void 0:E.iconType)==="ERROR_BLACK"};
_.Y([_.x(),_.V("design:type",Object)],um.prototype,"data",void 0);_.Y([_.x({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.V("design:type",Object)],um.prototype,"iconPosition",void 0);_.Y([_.x({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.V("design:type",Object)],um.prototype,"iconStyle",void 0);_.Y([_.x({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],um.prototype,"iconStyleFilled",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],um);
_.X(um,"ytd-thumbnail-overlay-icon-renderer",function(){if(AGC!==void 0)return AGC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return AGC=h},{mode:1});var Tln;var Qq=function(){return _.D.apply(this,arguments)||this};
_.f(Qq,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qq.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Qq);
_.X(Qq,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Tln!==void 0)return Tln;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Tln=h},{mode:1});var bqF;var hY=function(){var h=_.D.apply(this,arguments)||this;h.isPreviewLoading=!1;return h};
_.f(hY,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],hY.prototype,"isPreviewLoading",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],hY);
_.X(hY,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(bqF!==void 0)return bqF;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return bqF=h},{mode:1});var uqD;var EV=function(){return _.D.apply(this,arguments)||this};
_.f(EV,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],EV.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],EV);
_.X(EV,"ytd-thumbnail-overlay-pinking-renderer",function(){if(uqD!==void 0)return uqD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uqD=h},{mode:1});var QgA;var gS=function(){var h=_.D.apply(this,arguments)||this;h.disableTooltips=!1;h.isLoading=!1;h.useExpandableTooltip=!1;h.toggled=!1;h.hovered=!1;h.mouseoverDelayJobId=0;h.toggleDelayJobId=0;h.expandAnimationDelayJobId=0;return h};
_.f(gS,_.D);_.p=gS.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.UB(this.hostElement).querySelector("#tooltip").position=_.nF("HTML_DIR")==="rtl"?"right":"left"};
_.p.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.KP.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.KP.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.KP.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.p.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.KP.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.KP.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.KP.cancelJob(this.expandAnimationDelayJobId)};
_.p.computeIcon=function(h,E,g){return(h=g?E:h)&&h.iconType?_.CL(h.iconType):void 0};
_.p.computeAriaLabel=function(h,E,g){return _.e(g?E:h,AoD).label};
_.p.computeTooltip=function(h,E,g){return g?E:h};
_.p.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.p.computeIconOnHover=function(h,E){if((h==null?0:h.iconType)&&!E)return _.CL(h.iconType)};
_.p.onTap=function(h){var E=this;h.stopPropagation();h.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(h=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(h),this.useExpandableTooltip&&(this.toggleDelayJobId=_.LO(_.KP,function(){E.hovered=!1;E.data&&!E.data.toggledServiceEndpoint&&(E.expandAnimationDelayJobId=_.LO(_.KP,function(){E.set("data.isToggled",
!1)},200))},2E3))};
_.p.onMouseenter=function(){var h=this;this.mouseoverDelayJobId=_.LO(_.KP,function(){h.hovered=!0},300)};
_.p.onMouseleave=function(){_.KP.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.p.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.p.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.p.onServiceRequestCompleted=function(h,E){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(E)||this.set("data.isToggled",!this.data.isToggled)};
_.p.serviceRequestWasSuccessful=function(h){return _.e(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.M8)?h.data.status==="STATUS_SUCCEEDED":!0};
gS.prototype.onServiceRequestCompleted=gS.prototype.onServiceRequestCompleted;gS.prototype.onPopupClosed=gS.prototype.onPopupClosed;gS.prototype.onPopupOpened=gS.prototype.onPopupOpened;gS.prototype.onMouseleave=gS.prototype.onMouseleave;gS.prototype.dataChanged=gS.prototype.dataChanged;_.Y([_.t(_.Td),_.V("design:type",Object)],gS.prototype,"ironButtonState",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],gS.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],gS.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.V("design:type",Object)],gS.prototype,"ariaLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],gS.prototype,"disableTooltips",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],gS.prototype,"popupOpen",void 0);_.Y([_.x(),_.V("design:type",Object)],gS.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Element)],gS.prototype,"eventSink",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gS.prototype,"useExpandableTooltip",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.V("design:type",Object)],gS.prototype,"toggled",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gS.prototype,"hovered",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.V("design:type",Object)],gS.prototype,"iconOnHover",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gS.prototype,"dataChanged",null);
_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gS.prototype,"onMouseleave",null);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gS.prototype,"onPopupOpened",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gS.prototype,"onPopupClosed",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],gS.prototype,"onServiceRequestCompleted",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],gS);
_.X(gS,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(QgA!==void 0)return QgA;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return QgA=h},{mode:_.UQ("kevlar_poly_si_batch_j053")?1:2});var hyn;var EkD=_.O(function(h){var E=h.data;var g=h.thumbnailSize;var Z=function(){return E().enableSegmentView};
return _.R("yt-thumbnail-overlay-progress-bar-view-model",{class:_.CO("ytThumbnailOverlayProgressBarHost",function(){return pSZ(g==null?void 0:g())})},_.R(_.P,{cond:Z,
then:function(){return _.R("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.R("div",{class:_.v3("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+E().startPercent+"%"}}),_.R("div",{class:_.v3("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+E().segmentDurationPercent+"%"}},_.R("div",{class:_.v3("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.R("div",null," ",function(){return E().segmentLabel})),_.R("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.R("div",{class:_.v3("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.R(_.P,{cond:function(){return!Z()&&E().startPercent},
then:function(){var M={};return _.R("div",{class:_.v3("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(M.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.J("web_enable_modern_progress_bar_overlay"),M))},_.R("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+E().startPercent+"%"}}))}}))},"X");
EkD.idomCompat=!0;var gkH=_.O(function(h){var E=_.d5(),g=_.VQ(function(M){var W,z,c;a:{var I=(W=h.data())==null?void 0:W.animationActivationTargetId;W=((z=h.data())==null?void 0:z.animationActivationEntityKey)||"";z=(c=h.data())==null?void 0:c.animationActivationEntitySelectorType;if(W&&I)switch(z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":M=EI4(M,W);c=_.GF().resolve(_.pl(_.Yu));I=!!(M&&M.videoId===I&&(c==null?0:c.isMiniplayerActive()));I={activated:I,playAnimation:I&&M.playerState==="PLAYER_STATE_PLAYING"};
break a}I=void 0}return I});
_.lX(function(){var M;if((M=g())==null?0:M.activated){var W;if((W=g())==null?0:W.playAnimation){var z;(z=E.lottieEl)==null||z.goToAndPlay(0)}else{var c;(c=E.lottieEl)==null||c.goToAndStop(0)}}},"DbQiXd");
var Z=function(){var M,W=!((M=g())==null||!M.activated);if(h.data()){M=h.data();var z=void 0;M.icon&&(z=_.$Yx(M.icon),z=VTW(z));var c=void 0,I;if((I=M.backgroundColor)==null?0:I.lightTheme){var B;c={backgroundColor:QV((B=M.backgroundColor)==null?void 0:B.lightTheme,"0.8")}}if(M.text||z||W){if(W&&M.lottieData&&E){B=M.lottieData;var U,L,d;I={animationConfig:{name:B.url,path:B.url,autoplay:(U=B.settings)==null?void 0:U.autoplay,loop:(d=(L=B.settings)==null?void 0:L.loop)!=null?d:!0},animationRef:E}}else I=
void 0;if(W)U=17;else b:switch(M.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":U=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":U=19;break b;default:U=17}W={type:U,text:W&&M.animatedText?M.animatedText:M.text,icon:z,customColors:c,animation:I}}else W=void 0}else W=void 0;return W};
return _.R("yt-thumbnail-badge-view-model",{class:_.CO("ytThumbnailBadgeViewModelHost",h.class)},_.R(_.P,{cond:Z,then:function(){return _.R(_.cP,{data:function(){return Z()}})}}))},"Y");var ZaB=_.O(function(h){var E={},g={};return _.R("yt-thumbnail-bottom-overlay-view-model",{class:_.CO("ytThumbnailBottomOverlayViewModelHost",(E.ytThumbnailBottomOverlayViewModelHostBackground=function(){return h.data().enableGradientBackground},E))},_.R(_.Sv,{data:function(){return h.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(Z){return _.R(EkD,{data:Z.data,
thumbnailSize:h.thumbnailSize})}}),_.R("div",{class:_.CO("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var Z;
return Gmx((Z=h.thumbnailSize)==null?void 0:Z.call(h))},(g.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var Z;
return(Z=h.isClip)==null?void 0:Z.call(h)},g.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var Z;
return!_.J("web_enable_modern_progress_bar_overlay")&&((Z=h.thumbnailSize)==null?void 0:Z.call(h))==="small"},g))},_.R(_.Sv,{data:function(){return h.data().badge}},{thumbnailBadgeViewModel:function(Z){return _.R(gkH,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.R(_.Sv,{data:function(){return h.data().badges}},{thumbnailBadgeViewModel:function(Z){return _.R(gkH,{data:Z.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
ZaB.idomCompat=!0;_.I9(ZaB,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.c$,thumbnailSize:_.c$,isClip:_.c$}});var Unz={calledOnce:!1,state:"visible"},LQ$={calledOnce:!1,state:"hidden"};var Zf=_.O(function(h){var E=h.data;var g=h.className;h=h.alwaysShow;var Z=_.cGV(),M={};return _.R("thumbnail-hover-overlay-view-model",{el:_.zT(_.n4(function(){return E().rendererContext})),
class:_.CO("ytThumbnailHoverOverlayViewModelHost",g,(M.ytThumbnailHoverOverlayViewModelHostForceHover=h,M)),"aria-label":function(){var W;return(W=_.e(E().rendererContext,_.te))==null?void 0:W.label},
role:function(){return _.K4(E().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.K4(E().rendererContext)!==void 0?0:void 0},
"on:keypress":Z},_.R("div",{class:_.CO("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(E().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var W="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:W="ytThumbnailHoverOverlayViewModelStyleCover"}return W})},_.R(_.P,{cond:function(){return E().icon},
then:function(W){return _.R(_.pO,{data:W,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.R(_.P,{cond:function(){return E().text},
then:function(W){return _.R(_.dK,{text:W,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
Zf.idomCompat=!0;var MaD=_.O(function(h){var E=h.data;return _.R(_.Sv,{data:function(){return E==null?void 0:E().overlays}},{thumbnailHoverOverlayViewModel:Zf})},"aa");
MaD.idomCompat=!0;var WKD={};var poA=_.O(function(h){var E=h.data;var g=h.image;var Z=h.state;var M=h.iconType;var W=h.overlays;var z=h.isOverlay;var c=_.MC("div");h=_.G(_.Bm(!0,void 0,"AA4e7b"));var I=h.next().value,B=h.next().value,U=function(){return!!E().onTap},L=_.zl(M,"LIVE");
_.lX(function(){var C=E();requestAnimationFrame(function(){if(c.value===null)var q=!0;else{var w=c.value;q=C.badgeText;var r=Cdx(C.size);q in WKD?w=WKD[q]:(w=w.clientWidth,WKD[q]=w);(q=w>r)?c.value.style.display="none":c.value.style.visibility="visible"}B(q)})},"vNdN8b");
var d=function(){var C={};return C["yt-spec-avatar-shape__image"]=!0,C["yt-spec-avatar-shape__image--ads-app"]=E().type===1,C["yt-spec-avatar-shape__image--inscribed-square"]=E().type===2,C};
return _.R("yt-avatar-shape",null,_.R("div",{el:_.zT(eQx(U,{keydown:function(C){if(C.key==="Enter"){var q;(q=C.currentTarget)==null||q.click()}},
click:function(C){var q,w;return void((w=(q=E()).onTap)==null?void 0:w.call(q,C))}})),
class:function(){var C={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},q=E();C=(C[q.clusterLayoutConfig?Nlz(q.clusterLayoutConfig):tea(q.size)]=!0,C["yt-spec-avatar-shape__button--tappable"]=U(),C);(q=E().avatarButtonCustomClassName)&&(C[q]=!0);return _.v3(C)},
"aria-label":function(){return U()?E().accessibilityText:""},
role:function(){return U()?"button":void 0},
tabindex:function(){return U()?0:void 0}},_.R("div",{class:function(){var C,q=E(),w=Z==null?void 0:Z(),r=z==null?void 0:z(),v=!((C=q.decorations)==null||!C.includes(2)||q.size!=="medium"&&q.size!=="large"),H=q.size==="tiny"||q.size==="extra-small",u,k,y,A,E4={};
C=(E4["yt-spec-avatar-shape--live-ring"]=!!(((u=q.decorations)==null?0:u.includes(0))&&xnx(q.size)),E4["yt-spec-avatar-shape--stories-watched"]=v&&!(w==null||!w.storiesWatched),E4["yt-spec-avatar-shape--stories-unwatched"]=v&&!(w==null?0:w.storiesWatched),E4["yt-spec-avatar-shape--background-border"]=wSq(q.decorations)&&!H,E4["yt-spec-avatar-shape--background-border-thin"]=wSq(q.decorations)&&H,E4["yt-spec-avatar-shape__on-select-border"]=!((k=q.decorations)==null||!k.includes(4)),E4["yt-spec-avatar-shape__white-border"]=
!((y=q.decorations)==null||!y.includes(5)),E4["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((A=q.decorations)==null?0:A.includes(5))&&H),E4["yt-spec-avatar-shape--is-overlay"]=!!r,E4);return _.v3(C)},
style:function(){a:{var C=E().clusterLayoutConfig;if(C){b:{var q=C.numAvatarsInCluster;var w=C.avatarIndex;if(w!==q-1){switch(C.clusterSize){case "small":C="32";break;case "medium":C="36";break;case "40":C="40";break;default:q=void 0;break b}q="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+C+"x"+C+"_avatars_"+q+"_index_"+w+".svg"}else q=void 0}if(q){q=_.fO({"-webkit-mask-image":"url("+q+")","mask-image":"url("+q+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}q=void 0}return q}},_.R("div",{class:function(){var C={};
var q=E();C=(C[q.clusterLayoutConfig?q_$(q.clusterLayoutConfig):fcd(q.size)]=!0,C["yt-spec-avatar-shape--no-margin"]=wSq(E().decorations),C["yt-spec-avatar-shape--square"]=E().type===2,C);return _.v3(C)}},_.R(_.pO,{data:g,
alt:function(){return!U()&&E().accessibilityText?E().accessibilityText:""},
targetWidth:function(){return S_a(E().size)},
targetHeight:function(){return S_a(E().size)},
className:function(){return _.v3(d())}}),_.R(_.P,{cond:function(){var C;
return((C=E().decorations)==null?void 0:C.includes(0))&&xnx(E().size)},
then:function(){return _.R("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape__live-badge"]=!0,C["yt-spec-avatar-shape__live-badge--badge-small"]=E().size==="small",C["yt-spec-avatar-shape__live-badge--badge-medium"]=E().size==="medium"||E().size==="48",C["yt-spec-avatar-shape__live-badge--badge-large"]=E().size==="large",C["yt-spec-avatar-shape__live-badge--badge-extra-large"]=E().size==="extra-large"||E().size==="extra-extra-large"||E().size==="giant",C);return _.v3(C)}},_.R(_.P,{cond:function(){return E().badgeText},
then:function(C){return _.R("div",{class:"yt-spec-avatar-shape__badge-text",el:c},C)}}),_.R(_.P,{cond:I,
then:function(){return _.R("div",{class:"yt-spec-avatar-shape__badge-icon"},_.R(_.Ni,{icon:L,size:function(){a:switch(E().size){case "extra-large":var C=16;break a;default:C=13}return C}}))}}))}}),_.R(_.P,{cond:function(){var C,q;
return((C=E().decorations)==null?void 0:C.includes(1))||((q=E().decorations)==null?void 0:q.includes(0))&&!xnx(E().size)},
then:function(){return _.R("div",{class:function(){var C=E(),q,w,r={};var v=(r["yt-spec-avatar-shape__live-dot"]=!((q=C.decorations)==null||!q.includes(0)||xnx(C.size)),r["yt-spec-avatar-shape__new-content"]=!((w=C.decorations)==null||!w.includes(1)),r);return _.v3(v)}})}}),_.R(_.P,{cond:function(){return!!W},
then:function(){return _.R("div",{class:function(){var C={};C=Object.assign((C["yt-spec-avatar-shape__image-overlays"]=!0,C),d());return _.v3(C)}},W==null?void 0:W())}})))))},"ba");
poA.idomCompat={callbacks:{overlays:!0}};_.Mq=_.O(function(h){function E(){g().endpoint&&_.Tl(g().endpoint)}
var g=h.data;var Z=h.decorations;var M=h.avatarButtonCustomClassName;var W=h.isOverlay;var z=h.clusterLayoutConfig;return _.R("avatar-view-model",null,_.R(_.P,{cond:function(){return g().image},
then:function(c){return _.R(poA,{data:function(){return lc$({data:g(),onTap:g().endpoint?E:void 0,decorations:Z==null?void 0:Z(),badgeText:void 0,accessibilityText:g().accessibilityText,avatarButtonCustomClassName:M==null?void 0:M(),clusterLayoutConfig:z==null?void 0:z()})},
image:c,iconType:"RADAR_LIVE",overlays:function(){return _.R(MaD,{data:g})},
isOverlay:W})}}))},"ca");
_.Mq.idomCompat=!0;_.W0=_.O(function(h){var E=h.data;h=h.className;var g=_.MC("yt-decorated-avatar-view-model"),Z=function(){return _.e(E().avatar,_.X5)},M=_.Cw(function(){var W,z=E(),c=Z(),I=_.K4(E().rendererContext),B=(W=g.value)!=null?W:void 0,U;
if(c){B={data:z,avatar:c,onTap:I,element:B};W=B.data;z=B.avatar;c=B.onTap;I=B.element;B=B.commandController;c=c?Hqz(c,I,B):void 0;I=[];W.liveData&&I.push(0);var L;B=(L=W.liveData)==null?void 0:L.liveBadgeText;L=(U=_.e(W.rendererContext,_.te))==null?void 0:U.label;U=lc$({data:z,onTap:c,decorations:I,badgeText:B,accessibilityText:L?L:W.a11yLabel})}else U={size:"medium"};return U},void 0,"c00kWd");
return _.R("yt-decorated-avatar-view-model",{class:_.CO("ytDecoratedAvatarViewModelHost",h),el:g},_.R(_.P,{cond:function(){var W;return(W=Z())==null?void 0:W.image},
then:function(W){return _.R(poA,{data:M,image:W,iconType:"RADAR_LIVE",overlays:function(){return _.R(MaD,{data:Z})}})}}))},"da");
_.W0.idomCompat=!0;_.p0=_.O(function(h){var E=function(){var c;return Object.assign({},h.data(),(c=h.overrides)==null?void 0:c.call(h))},g=function(){return _.Oz(E().rendererContext)},Z=function(){var c=E().avatars,I,B;
return(B=(I=(c==null?0:c[0])?_.e(c[0],_.X5):void 0)==null?void 0:I.avatarImageSize)!=null?B:"AVATAR_SIZE_UNKNOWN"},M=function(){return v2W(E())},W=function(){if(E().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var c=void 0;
else if((c=h.decorations)==null?0:c.call(h))c=h.decorations();else{c=E();var I=0;c.avatars&&(I+=c.avatars.length);c.decoratedText&&(I+=1);c=I>1?[3]:[]}return c},z={};
return _.R("yt-avatar-stack-view-model",{el:_.zT(_.n4(function(){return E().rendererContext})),
class:_.CO("yt-avatar-stack-view-model",h.className,(z["yt-avatar-stack-view-model--tappable"]=g,z["yt-avatar-stack-view-model--is-overlay"]=h.isOverlay,z["yt-avatar-stack-view-model--medium-text"]=h.useMediumText,z)),tabindex:function(){return g()?0:void 0},
role:function(){return g()?"link":void 0},
"aria-label":function(){var c,I;return(I=(c=_.e(E().rendererContext,_.te))==null?void 0:c.label)!=null?I:""}},_.R(_.P,{cond:function(){var c;
return E().avatars&&!((c=h.hideAvatar)==null?0:c.call(h))},
then:function(){return _.R("div",{class:"yt-avatar-stack-view-model__avatars"},_.R(_.P,{cond:function(){return E().decoratedText},
then:function(c){var I={};return _.R("div",{class:_.CO("yt-avatar-stack-view-model__text-container",(I["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS"},I["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var B;
return((B=h.isOverlay)==null?void 0:B.call(h))&&(Z()==="AVATAR_SIZE_XXS"||Z()==="AVATAR_SIZE_XS")},I)),
style:_.fO({width:function(){return M().avatarSizeInPx+"px"},
height:function(){return M().avatarSizeInPx+"px"}})},_.R(_.dK,{text:c,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.R("div",{style:function(){return _.fO(M().avatarStackStyle)()},
class:function(){return M().avatarStackClass}},_.R(_.Sv,{data:function(){return M().avatars.reverse()}},{avatarViewModel:function(c,I){return _.R("div",{style:function(){var B,U;
return _.fO((U=(B=M()).avatarStyle)==null?void 0:U.call(B,I()))()},
class:function(){return M().avatarClass}},_.R(_.Mq,{data:c.data,
decorations:W,avatarButtonCustomClassName:function(){return M().avatarButtonCustomClassName},
isOverlay:h.isOverlay,clusterLayoutConfig:function(){var B,U;return(U=(B=M()).clusterLayoutConfig)==null?void 0:U.call(B,I())}}))},
decoratedAvatarViewModel:function(c,I){return _.R("div",{style:function(){var B,U;return _.fO((U=(B=M()).avatarStyle)==null?void 0:U.call(B,I()))()},
class:function(){return M().avatarClass}},_.R(_.W0,{data:c.data}))}})))}}),_.R(_.P,{cond:function(){return E().text},
then:function(c){return _.R(_.dK,{text:c,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.p0.idomCompat=!0;_.I9(_.O(function(h){var E=h.data;var g=h.thumbnailSize;return _.R("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.R("div",{class:_.CO("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return $nu(g==null?void 0:g())})},_.R(_.Sv,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(Z){return _.R(_.p0,{data:Z.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.C6,
thumbnailSize:_.C6}});var GEM=_.O(function(h){h=_.au(h,{hidden:!1});var E=h.data;return _.R("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:h.hidden},_.R(_.dK,{text:function(){return E().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.R(_.P,{cond:function(){return E().subtitle},
then:function(){return _.R(_.dK,{text:function(){return E().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
GEM.idomCompat=!0;_.I9(GEM,"yt-thumbnail-overlay-title-view-model",{props:{data:_.C6,hidden:_.C6}});var zyl=_.O(function(h){h=_.au(h,{isClip:!1});var E=h.data,g=h.thumbnailSize,Z={};return _.R("yt-thumbnail-overlay-badge-view-model",{class:_.CO("yt-thumbnail-overlay-badge-view-model",function(){a:switch(E().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var M="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:M="yt-thumbnail-overlay-badge-view-model--bottom-end"}return M},function(){return KQ$(g==null?void 0:g())},(Z["yt-thumbnail-overlay-badge-view-model--clip"]=h.isClip,
Z))},_.R(_.Sv,{data:function(){return E().thumbnailBadges}},{thumbnailBadgeViewModel:function(M){return _.R(gkH,{data:M.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"ha");
zyl.idomCompat=!0;_.I9(zyl,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.C6,thumbnailSize:_.C6,isClip:_.C6}});var a2M=_.O(function(h){var E=h.data;h=h.hidden;var g=_.Cw(function(){return E().indicatorCount||0},void 0,"AbKnMc"),Z={};
return _.R("yt-page-indicator-view-model",{class:_.CO("ytPageIndicatorViewModelHost",(Z.ytPageIndicatorViewModelIndicatorHidden=function(){return!E().indicatorCount},Z)),
hidden:h},_.R(_.SX,{each:function(){return Array(g())}},function(M,W){var z={};
return _.R("div",{class:_.CO("ytPageIndicatorViewModelIndicator",(z.ytPageIndicatorViewModelIndicatorSelected=function(){return E().selectedIndex===W()},z))})}))},"ia");
a2M.idomCompat=!0;_.I9(a2M,"yt-page-indicator-view-model",{props:{data:_.C6,hidden:_.C6}});var Gi=function(){var h=_.D.apply(this,arguments)||this;h.eventSink=function(){return h};
h.disableInteraction=!1;h.noRoundedCorners=!1;h.isPreviewLoading=!1;h.isOriginalAspectRatio=!1;h.computedObjectFit=!1;h.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return h};
_.f(Gi,_.D);_.p=Gi.prototype;
_.p.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.J("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.p.onImageLoaded=function(){this.loaded=!0};
_.p.onImageUnloaded=function(){this.loaded=!1};
_.p.computeRichThumbnail=function(h,E,g,Z){if(h&&E&&!Z&&!_.J("disable_moving_thumbs_handling")&&!g)return E};
_.p.computeImageWidth=function(h,E){return E||9999};
_.p.computeIsOriginalAspectRatio=function(h){return h};
_.p.computeIsLive=function(h){if(h==null?0:h.badges)for(var E=0;E<h.badges.length;E++){var g=h.badges[E];if(g.metadataBadgeRenderer&&g.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(h==null?0:h.thumbnailOverlays)for(E=0;E<h.thumbnailOverlays.length;E++)if(g=h.thumbnailOverlays[E],g.thumbnailOverlayTimeStatusRenderer&&g.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.p.computeObjectFit=function(h,E){return E||(h?"CONTAIN":"")};
_.p.computeNavigationEndpoint=function(h,E,g){return h?E:g};
_.p.computeHasClip=function(h){h=_.G(h||[]);for(var E=h.next();!E.done;E=h.next())if(E.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.p.computeOverlayColor=function(h){var E;return(h==null?0:(E=h.darkColorPalette)==null?0:E.section2Color)?h.darkColorPalette.section2Color:h==null?void 0:h.sampledThumbnailColor};
_.ze.Object.defineProperties(Gi.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return c_a(this.width)}}});
Gi.prototype.onImageUnloaded=Gi.prototype.onImageUnloaded;Gi.prototype.onImageLoaded=Gi.prototype.onImageLoaded;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Gi.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Gi.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(nOH),_.V("design:type",Object)],Gi.prototype,"ytdThumbnailBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Gi.prototype,"componentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Gi.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Gi.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Gi.prototype,"circular",void 0);
_.Y([_.x({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.V("design:type",Object)],Gi.prototype,"richThumbnail",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.V("design:type",Boolean)],Gi.prototype,"hasClip",void 0);_.Y([_.x(),_.V("design:type",Object)],Gi.prototype,"eventSink",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gi.prototype,"queued",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Gi.prototype,"richGridThumbnail",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Gi.prototype,"useExpandableTooltip",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Gi.prototype,"useUntranslatedNavigationEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Gi.prototype,"disableInteraction",void 0);
_.Y([_.x({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.V("design:type",Object)],Gi.prototype,"computedNavigationEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Gi.prototype,"nowPlayingEqualizerOnly",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Gi.prototype,"hidePlaybackStatus",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Gi.prototype,"objectFit",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Gi.prototype,"noRoundedCorners",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Gi.prototype,"watchFeedThumbnail",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Gi.prototype,"isPreviewLoading",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.V("design:type",Object)],Gi.prototype,"isOriginalAspectRatio",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.V("design:type",Object)],Gi.prototype,"computedObjectFit",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.V("design:type",Boolean)],Gi.prototype,"isLiveVideo",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Gi.prototype,"loaded",void 0);_.Y([_.x({computed:"computeOverlayColor(data.thumbnail)"}),_.V("design:type",Object)],Gi.prototype,"overlayColor",void 0);_.Y([_.x({selector:_.GVN}),_.V("design:type",Boolean)],Gi.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.x(),_.V("design:type",Number)],Gi.prototype,"width",void 0);
_.Y([_.S("inlinePreviewIsEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Gi.prototype,"isPreviewDisabled",null);_.Y([_.S("width"),_.V("design:type",String),_.V("design:paramtypes",[])],Gi.prototype,"thumbnailSize",null);_.Y([_.f3("image-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gi.prototype,"onImageLoaded",null);
_.Y([_.f3("image-unloaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gi.prototype,"onImageUnloaded",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-thumbnail"})],Gi);
var cEB=_.BK()(Gi,"ytd-thumbnail",function(){if(hyn===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);hyn=h}h=hyn;return h},{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 XSz=function(h){var E=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14920_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14920_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(g){iaB(E,g)};
this.onLockupMouseLeaveFn=function(g){g=g.relatedTarget;var Z,M;((Z=document.getElementsByTagName("ytd-video-preview"))==null?0:(M=Z.item(0))==null?0:M.contains(g))||(E.terminateVideoPreview(),zi(E))};
this.onThumbnailMouseDownFn=function(){E.terminateVideoPreview();zi(E)};
this.onTouchStart=function(){E.JSC$14920_touched=!0};
this.mediaRenderer=h.mediaRenderer;this.thumbnailElement=h.thumbnailElement;this.lockupElement=h.lockupElement;this.videoPreviewOptsInput=h.videoPreviewOpts;okM(this);a_(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)):
_.O$(Error("Lh")):_.O$(Error("Mh")):I2M(this)},hN=function(h){I2M(h);
var E;(E=h.lockupElement)==null||E.removeEventListener("mouseenter",h.onMouseMoveFn);var g;(g=h.lockupElement)==null||g.removeEventListener("mouseleave",h.onLockupMouseLeaveFn);var Z;(Z=h.lockupElement)==null||Z.removeEventListener("touchstart",h.onTouchStart);var M;(M=h.thumbnailElement)==null||M.removeEventListener("mousedown",h.onThumbnailMouseDownFn);zi(h)},okM=function(h){h.inlinePreviewIsEnabledForUser=_.Gv().getState().ui.inlinePreviewIsEnabled;
h.unsubscribeFromInlinePreviewIsEnabled=_.kT(_.Gv(),_.GVN,function(E){(h.inlinePreviewIsEnabledForUser=E)||zi(h)});
h.JSC$14920_unsubscribeFromInlinePreviewIsActive=_.kT(_.Gv(),_.pZ4,function(E){(h.inlinePreviewIsActive=E)||zi(h)})},I2M=function(h){h.unsubscribeFromInlinePreviewIsEnabled();
h.unsubscribeFromInlinePreviewIsEnabled=function(){};
h.JSC$14920_unsubscribeFromInlinePreviewIsActive();h.JSC$14920_unsubscribeFromInlinePreviewIsActive=function(){}},iaB=function(h,E){E.buttons>0||(E=_.cx("kevlar_lockup_hover_delay",-1),h.JSC$14920_touched&&E>=0?(_.KP.cancelJob(h.videoPreviewJobId),h.videoPreviewJobId=_.LO(_.KP,function(){Ryn(h)},E),h.JSC$14920_touched=!1):Ryn(h))},N0Z=function(h){h.videoPreviewJobId=_.LO(_.KP,function(){return _.a(function(E){return E.yield(P9F(h,{isAutoplay:!0}),0)})})},Ryn=function(h){!h.previewTriggered&&a_(h)&&
(h.inlinePreviewIsActive&&h.terminateVideoPreview(),h.previewTriggered=!0,h.mediaRenderer.isInlinePreviewTriggered=!0,_.KP.cancelJob(h.videoPreviewJobId),h.videoPreviewJobId=_.LO(_.KP,function(){return _.a(function(E){return E.yield(P9F(h),0)})}))},P9F=function(h,E){E=E===void 0?{}:E;
var g=E.isAutoplay===void 0?!1:E.isAutoplay;var Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){if(!a_(h))return c.return();Z=h.getVideoPreviewOpts();if(!Z)return c.return();g&&(Z.isAutoplay=!0);return(W=(M=_.U7(h.mediaRenderer.hostElement,"yt-open-video-preview-action",[Z]))&&M[0])?c.yield(M[0],3):c.jumpTo(2)}c.nextAddress!=2&&(W=c.yieldResult===1);if(W){var I=(z=h.mediaRenderer)==null?void 0:z.data;I&&(n24(I)?delete I.inlinePlayerData:"inlinePlaybackEndpoint"in I&&delete I.inlinePlaybackEndpoint)}_.SK(c)})};
XSz.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var h,E;if((E=(h=this.videoPreviewOptsInput)==null?void 0:h.videoPreviewData)!=null)h=E;else if(h=this.mediaRenderer.data)if(n24(h))h={inlinePlaybackEndpoint:_.kB(h.inlinePlayerData.onVisible),navigationEndpoint:_.kB(h.onTap),thumbnail:"image"in h?h.image:h.thumbnail,thumbnailOverlays:void 0,accessibilityText:OqO(h)};else if("multipleInlinePlaybackEndpoint"in h){var g=_.e(_.e(h.multipleInlinePlaybackEndpoint,a4k),cBA);if(g!=
null&&g.playerDescriptors){E=[];g=_.G(g.playerDescriptors);for(var Z=g.next();!Z.done;Z=g.next())Z=Z.value,E.push({inlinePlaybackEndpoint:Z.inlinePlaybackEndpoint,navigationEndpoint:Z.navigationEndpoint,thumbnail:Z.thumbnail,thumbnailOverlays:Z.thumbnailOverlays,accessibilityText:OqO(h)});h=E}else h=void 0}else h={inlinePlaybackEndpoint:h.inlinePlaybackEndpoint,navigationEndpoint:h.navigationEndpoint,thumbnail:h.thumbnail,thumbnailOverlays:h.thumbnailOverlays,accessibilityText:OqO(h)};else h=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:h,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var a_=function(h){var E;if(E=h.inlinePreviewIsEnabledForUser)E=(h=h.mediaRenderer.data)?"inlinePlaybackEndpoint"in h&&h.inlinePlaybackEndpoint||n24(h)&&h.inlinePlayerData||"multipleInlinePlaybackEndpoint"in h&&h.multipleInlinePlaybackEndpoint?!0:!1:!1;return E};
XSz.prototype.terminateVideoPreview=function(){_.BX(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var zi=function(h){_.KP.cancelJob(h.videoPreviewJobId);h.inlinePreviewIsActive=!1;h.previewTriggered=!1;h.mediaRenderer.isInlinePreviewTriggered=!1};var BdD=_.uz(["#"]),c0=function(){var h=_.D.apply(this,arguments)||this;h.isDisabled=!1;return h};
_.f(c0,_.D);_.p=c0.prototype;_.p.configureRendererStamper=function(){return{"data.menu":su,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.getMetadata=function(h){var E=[];if(h.metadataText&&Object.keys(h.metadataText).length>0){var g=this.ytRendererBehavior.getSimpleString(h.metadataText);h.upcomingEventData&&h.upcomingEventData.upcomingEventText&&(g=_.r5(g,Number(h.upcomingEventData.startTime)));E.push(g)}else h.shortViewCountText&&E.push(this.ytRendererBehavior.getSimpleString(h.shortViewCountText)),h.publishedTimeText&&E.push(this.ytRendererBehavior.getSimpleString(h.publishedTimeText)),h.upcomingEventData&&h.upcomingEventData.upcomingEventText&&
(g=this.ytRendererBehavior.getSimpleString(h.upcomingEventData.upcomingEventText),E.push(_.r5(g,Number(h.upcomingEventData.startTime))));return E};
_.p.calculateBylineText=function(h){return h.shortBylineText?h.shortBylineText:h.bylineText?h.bylineText:null};
_.p.calculateIsDisabled=function(h){return!!h.isDisabled};
_.p.computeHrefWithDefault=function(h){return this.ytComponentBehavior.computeHref_(h)||_.ujO(BdD)};
_.p.onDetailsTap=function(h){var E=this.data&&this.data.navigationEndpoint;E&&!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.J("kevlar_grid_video_renderer_killswitch")?_.Ra(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14927_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:_.UB(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.UB(this.hostElement).querySelector("ytd-thumbnail")})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$14927_inlinePreviewHoverListener)==null||hN(h)};
_.p.computeThumbnailWidth=function(h,E){return E&&E>0?E:h?360:210};
_.p.computeNumBadgesInRow=function(h){var E;return((E=h.badges)==null?void 0:E.length)||0};
_.p.computeShowChannelThumbnail=function(h,E){var g;return E&&!!(h==null?0:(g=h.channelThumbnailSupportedRenderers)==null?0:g.channelThumbnailWithLinkRenderer)};
_.ze.Object.defineProperties(c0.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$14927_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
c0.prototype.dataChanged=c0.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],c0.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],c0.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.LV),_.V("design:type",Object)],c0.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],c0.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],c0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],c0.prototype,"noEndpoints",void 0);_.Y([_.x({computed:"calculateBylineText(data)"}),_.V("design:type",Object)],c0.prototype,"bylineText",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],c0.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],c0.prototype,"isDownloading",void 0);_.Y([_.x({reflectToAttribute:!0,value:0}),_.V("design:type",Number)],c0.prototype,"width",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.V("design:type",Object)],c0.prototype,"isDisabled",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],c0.prototype,"dataChanged",null);_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],c0.prototype,"isHovered",null);_.Y([_.K({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],c0);
_.X(c0,"ytd-grid-video-renderer",function(){if(XSC!==void 0)return XSC;var h=document.createElement("template");_.N(h,'\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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" 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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XSC=h},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var U0M;var iB=function(){var h=_.D.apply(this,arguments)||this;h.roundedContainer=!0;h.skipRoundingTop=!1;h.disableTopPadding=!1;h.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");h.extractOverlay=!1;return h};
_.f(iB,_.D);iB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
iB.prototype.onClick=function(h){var E,g=(E=this.data)==null?void 0:E.sourceEndpoint;!_.MI(_.Gw(h),this.hostElement,["A".toString()])&&g&&_.Ra(this.hostElement,"yt-navigate",{endpoint:g})};
_.ze.Object.defineProperties(iB.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 h;return!((h=this.data)==null||!h.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.data)==null?void 0:h.paragraphMaxLines)!=null?E:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],iB.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iB.prototype,"showVerticalDividers",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iB.prototype,"roundedContainer",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iB.prototype,"skipRoundingTop",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iB.prototype,"disableTopPadding",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],iB.prototype,"amsterdamEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iB.prototype,"extractOverlay",void 0);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],iB.prototype,"showMetadataAtTop",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],iB.prototype,"showMetadataBelowTitle",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],iB.prototype,"hasMenu",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.truncateParagraphs"),_.V("design:type",Object),_.V("design:paramtypes",[])],iB.prototype,"truncateParagraphs",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.paragraphMaxLines"),_.V("design:type",Number),_.V("design:paramtypes",[])],iB.prototype,"paragraphMaxLines",null);
_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],iB.prototype,"background",null);_.Y([_.K({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],iB);
_.X(iB,"ytd-info-panel-content-renderer",function(){if(U0M!==void 0)return U0M;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return U0M=h},{mode:_.UQ("kevlar_poly_si_batch_j076")?1:2});var LKF;var jBn;var d0f;var C9l;var o_=function(){return _.D.apply(this,arguments)||this};
_.f(o_,_.D);o_.prototype.computeStyle=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],o_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],o_.prototype,"style_",void 0);_.Y([_.yc({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],o_);
_.X(o_,"yt-channel-thumbnail-with-link-renderer",function(){if(C9l===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;d0f===void 0&&(d0f=document.createElement("template"));var Z=d0f;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);C9l=h}h=C9l;return h},{mode:2});var I_=function(){return _.D.apply(this,arguments)||this};
_.f(I_,_.D);I_.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"}}}};
I_.prototype.computeTitleStyle=function(h){return h||null};
I_.prototype.computeAvatarStyle=function(h){return h||null};
I_.prototype.computeShowNavigationButton=function(h,E){return!(h==null||!h.navigationButton||E)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],I_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.V("design:type",String)],I_.prototype,"titleStyle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.V("design:type",String)],I_.prototype,"avatarStyle",void 0);_.Y([_.x(),_.V("design:type",Boolean)],I_.prototype,"hideNavigationButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],I_.prototype,"isModernSd",void 0);_.Y([_.K({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],I_);
_.X(I_,"ytd-rich-list-header-renderer",function(){if(jBn!==void 0)return jBn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return jBn=h},{mode:_.UQ("kevlar_poly_si_batch_j058")?1:2});var R_=function(){return _.D.apply(this,arguments)||this};
_.f(R_,_.D);R_.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],R_.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],R_.prototype,"isSearch",void 0);_.Y([_.K({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],R_);
_.X(R_,"ytd-preview-card-renderer",function(){if(LKF!==void 0)return LKF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return LKF=h},{mode:1});var JEf;var P0=function(){return _.D.apply(this,arguments)||this};
_.f(P0,_.D);P0.prototype.configureRendererStamper=function(){return{"data.menu":su}};
P0.prototype.dataChanged=function(){var h=this.get("colorExtractionPalette.section1Color",this.data);h=_.bU(h);_.Ja(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":h})};
P0.prototype.computeCardStyle=function(h){return this.get("style.value",h)||null};
P0.prototype.dataChanged=P0.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],P0.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],P0.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.V("design:type",String)],P0.prototype,"cardStyle",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P0.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],P0);
_.X(P0,"ytd-compact-channel-recommendation-card-renderer",function(){if(JEf!==void 0)return JEf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return JEf=h},{mode:1});var eyk;var qlC;var B0=function(){var h=_.D.apply(this,arguments)||this;h.alignAuto=!1;h.collapsed=!0;h.isToggled=!1;h.alwaysCollapsed=!1;h.canToggle=!0;h.collapsedHeight=80;h.disableToggle=!1;h.alwaysToggleable=!1;h.reversed=!1;h.shouldUseNumberOfLines=!1;h.recomputeOnResize=!1;h.canToggleJobId=0;h.lastReversed=!1;return h};
_.f(B0,_.D);_.p=B0.prototype;_.p.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.p.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.p.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var h=_.UB(this.hostElement),E=h.childNodes,g=document.createDocumentFragment(),Z=h.childNodes.length-1;Z>=0;Z--)_.UB(g).appendChild(E[Z]);_.J("enable_shadydom_free_scoped_node_methods")?_.L3(this.hostElement).appendChild(g):h.appendChild(g)}};
_.p.ready=function(){var h=this;_.hW(function(){h.initChildrenObserver()},1)};
_.p.attached=function(){var h;(h=this.resizeObserver)==null||h.observe(this.content)};
_.p.detached=function(){this.detachObserver()};
_.p.toggle=function(h,E){this.canToggle&&(this.isToggled=E,_.Ra(this.hostElement,"yt-refit"),h&&h.stopPropagation())};
_.p.reset=function(){this.childrenChanged()};
_.p.onIronResize=function(){this.recomputeOnResize&&!_.J("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.p.computeIsMoreVisible=function(h,E){return h&&!E};
_.p.computeShouldUseNumberOfLines=function(h){try{return!!h&&window.CSS.supports("-webkit-line-clamp","1")}catch(E){}return!1};
_.p.computeIsLessVisible=function(h,E){return h&&E};
_.p.observeCollapsedHeightAndMaxLines=function(){var h=this.collapsedHeight,E=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Ja(this.hostElement,{"--ytd-expander-max-lines":""+E,"--ytd-expander-collapsed-height":""}):_.Ja(this.hostElement,{"--ytd-expander-collapsed-height":h+"px","--ytd-expander-max-lines":""})};
_.p.handleMoreTap=function(h){this.disableToggle||(_.Ra(this.hostElement,"yt-expander-more-tapped"),this.toggle(h,!0))};
_.p.handleLessTap=function(h){_.Ra(this.hostElement,"yt-expander-less-tapped");this.toggle(h,!1)};
_.p.initChildrenObserver=function(){var h=this;this.observer=new MutationObserver(function(){h.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.J("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.TD(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var E;(E=h.resizeThrottle)==null||E.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.p.childrenChanged=function(){var h=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){UL(function(){h.canToggleJobId=0;h.calculateCanCollapse()})}))};
_.p.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.p.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.p.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("collapsed-changed",this.collapsed))};
_.p.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("is-toggled-changed",this.isToggled))};
_.p.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("can-toggle-changed",this.canToggle))};
_.ze.Object.defineProperties(B0.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
B0.prototype.canToggleChangedForBinding=B0.prototype.canToggleChangedForBinding;B0.prototype.isToggledChangedForBinding=B0.prototype.isToggledChangedForBinding;B0.prototype.collapsedChangedForBinding=B0.prototype.collapsedChangedForBinding;B0.prototype.observeCollapsedHeightAndMaxLines=B0.prototype.observeCollapsedHeightAndMaxLines;B0.prototype.onIronResize=B0.prototype.onIronResize;B0.prototype.reversedChanged=B0.prototype.reversedChanged;B0.prototype.toggledChanged=B0.prototype.toggledChanged;
B0.prototype.alwaysToggleableChanged=B0.prototype.alwaysToggleableChanged;_.Y([_.t(_.F3),_.V("design:type",Object)],B0.prototype,"ironResizableBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],B0.prototype,"alignAuto",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],B0.prototype,"collapsed",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"isToggled",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"alwaysCollapsed",void 0);
_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"canToggle",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"collapsedHeight",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"disableToggle",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"alwaysToggleable",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"reversed",void 0);_.Y([_.x(),_.V("design:type",Number)],B0.prototype,"maxNumberOfLines",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.V("design:type",Object)],B0.prototype,"shouldUseNumberOfLines",void 0);_.Y([_.x(),_.V("design:type",Object)],B0.prototype,"recomputeOnResize",void 0);_.Y([_.Sg("#content"),_.V("design:type",HTMLDivElement)],B0.prototype,"content",void 0);_.Y([_.lq("alwaysToggleable"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"alwaysToggleableChanged",null);
_.Y([_.lq("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"toggledChanged",null);_.Y([_.S("canToggleJobId"),_.V("design:type",Object),_.V("design:paramtypes",[])],B0.prototype,"isResetting",null);_.Y([_.Nm("reversed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"reversedChanged",null);
_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"onIronResize",null);_.Y([_.Nm("maxNumberOfLines","collapsedHeight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"observeCollapsedHeightAndMaxLines",null);_.Y([_.Nm("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"collapsedChangedForBinding",null);
_.Y([_.Nm("isToggled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"isToggledChangedForBinding",null);_.Y([_.Nm("canToggle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B0.prototype,"canToggleChangedForBinding",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-expander"})],B0);
_.X(B0,"ytd-expander",function(){if(qlC!==void 0)return qlC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return qlC=h},{mode:1});var UV=function(){return _.D.apply(this,arguments)||this};
_.f(UV,_.D);UV.prototype.computeIsCarousel=function(h){return!!h.isCarousel};
UV.prototype.observeLightsourcePalette=function(){var h,E=(h=this.data)==null?void 0:h.vibrantsourceColorPaletteData;E&&_.v$(this.hostElement,E)};
UV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
UV.prototype.observeLightsourcePalette=UV.prototype.observeLightsourcePalette;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UV.prototype,"data",void 0);_.Y([_.x({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],UV.prototype,"isCarousel",void 0);
_.Y([_.Nm("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UV.prototype,"observeLightsourcePalette",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],UV);
_.X(UV,"ytd-media-upsell-renderer",function(){if(eyk!==void 0)return eyk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return eyk=h},{mode:2});var f2k;var L0=function(){var h=_.D.apply(this,arguments)||this;h.JSC$14954_playerEvents=new Map;h.listeningToPlayer=!1;h.startX=0;h.active=!1;h.shouldShowButtons=_.J("web_buttons_hidden_killswitch");h.isHighlighted=!1;h.useHighlightStyling=_.J("web_enable_deeper_metadata_highlight_styling");h.modern=_.J("kevlar_modern_sd");h.enableProblemWalkthrough=_.J("problem_walkthrough_sd");return h};
_.f(L0,_.D);_.p=L0.prototype;
_.p.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.p.created=function(){this.JSC$14954_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.qm(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.qm(this,this.onActiveUpdate))};
_.p.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.qm(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.qm(this,this.onActiveUpdate))};
_.p.onDataChanged=function(){this.removePlayerListeners()};
_.p.onColorPaletteChange=function(){var h={},E;if(_.Hp()==="USER_INTERFACE_THEME_DARK"&&((E=this.data)==null?0:E.darkColorPalette)){var g=this.data.darkColorPalette;h["--ytd-macro-markers-list-item-background-color"]=_.uU(this.get("section2Color",g))}else{var Z;_.Hp()==="USER_INTERFACE_THEME_LIGHT"&&((Z=this.data)==null?0:Z.lightColorPalette)&&(g=this.data.lightColorPalette,h["--ytd-macro-markers-list-item-background-color"]=_.uU(this.get("section3Color",g)))}g?(h["--ytd-macro-markers-list-item-title-color"]=
_.uU(this.get("primaryTitleColor",g)),h["--ytd-macro-markers-list-item-secondary-color"]=_.uU(this.get("secondaryTitleColor",g)),h["--ytd-macro-markers-list-item-timestamp-background-color"]=_.uU(this.get("section1Color",g)),this.customButtonProperties={customColors:{color:_.uU(this.get("primaryTitleColor",g))}},this.useColorSampling=!0):(h["--ytd-macro-markers-list-item-background-color"]="initial",h["--ytd-macro-markers-list-item-title-color"]="initial",h["--ytd-macro-markers-list-item-secondary-color"]=
"initial",h["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Ja(this.hostElement,h)};
_.p.onEndpointMouseDown=function(h){this.startX=h.clientX};
_.p.onEndpointClick=function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1){if(E.startX!==h.clientX)return h.preventDefault(),W.return();E.data&&E.ytRendererBehavior.logExplicitClick(E.data);if(!E.seekWithAnimationOnClick)return W.jumpTo(0);if(h.button!==0||h.shiftKey||h.altKey||h.metaKey||h.ctrlKey||_.MI(_.Gw(h),E.hostElement,["BUTTON".toString()]))return W.return();h.stopPropagation();h.preventDefault();return E.data?W.yield(_.aJ().getPlayerPromise(),3):W.return()}g=W.yieldResult;
M=(Z=_.e(E.data.onTap,_.MH))==null?void 0:Z.startTimeSeconds;M!==void 0&&g.seekToTimeWithAnimation(M*1E3,_.Wp(E.data.title));_.SK(W)})};
_.p.computeLayout=function(h){return h};
_.p.computeIsHighlighted=function(h){return!!h};
_.p.computeCarouselType=function(h){return h};
_.p.hideModernCarousel=function(h){return this.modern&&this.hideThumbnail(h)};
_.p.hideThumbnail=function(h){return this.enableProblemWalkthrough&&h!==null&&h==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.p.onRepeatButtonToggle=function(h){var E=this;h.detail.toggled&&_.aJ().getPlayerPromise().then(function(g){E.ytPlayerListenerBehavior.listenToPlayerEvents(g,E.JSC$14954_playerEvents);E.listeningToPlayer=!0})};
_.p.onLoopRangeChange=function(h){var E=_.UB(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(E){var g=E.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",E.polymerController.data);if(g){var Z=Number(g.endTimeMs);if(Number(g.startTimeMs)!==(h==null?void 0:h.startTimeMs)||Z!==(h==null?void 0:h.endTimeMs))E.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.p.removePlayerListeners=function(){var h=this;this.listeningToPlayer&&_.aJ().getPlayerPromise().then(function(E){h.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,h.JSC$14954_playerEvents);h.listeningToPlayer=!1})};
_.p.onActiveUpdate=function(h){this.active=h.detail.active};
L0.prototype.onColorPaletteChange=L0.prototype.onColorPaletteChange;L0.prototype.onDataChanged=L0.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],L0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],L0.prototype,"ytPlayerListenerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],L0.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],L0.prototype,"useCustomColors",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L0.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],L0.prototype,"shouldShowButtons",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.V("design:type",String)],L0.prototype,"layout",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.V("design:type",Object)],L0.prototype,"isHighlighted",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L0.prototype,"useHighlightStyling",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L0.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L0.prototype,"enableProblemWalkthrough",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.V("design:type",String)],L0.prototype,"carouselType",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],L0.prototype,"useColorSampling",void 0);_.Y([_.x(),_.V("design:type",Boolean)],L0.prototype,"seekWithAnimationOnClick",void 0);_.Y([_.x(),_.V("design:type",Object)],L0.prototype,"customButtonProperties",void 0);
_.Y([_.Sg("#repeat-button"),_.V("design:type",HTMLElement)],L0.prototype,"repeatButton",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L0.prototype,"onDataChanged",null);_.Y([_.Nm("data.lightColorPalette","data.darkColorPalette"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L0.prototype,"onColorPaletteChange",null);_.Y([_.K({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],L0);
_.X(L0,"ytd-macro-markers-list-item-renderer",function(){if(f2k!==void 0)return f2k;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return f2k=h},{mode:1});var Ndf;var tam;var jV=function(){return _.D.apply(this,arguments)||this};
_.f(jV,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jV.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],jV);
_.X(jV,"ytd-title-and-button-list-header-renderer",function(){if(tam!==void 0)return tam;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return tam=h},{mode:1});var SlH;var x0m=new _.Ps("BUTTON_RENDERER_WIZ_TOKEN"),woB=new _.Ps("BUTTON_RENDERER_TOKEN");_.dS=_.O(function(h){var E=_.GF().resolve(_.pl(x0m));if(E)return _.R(E,Object.assign({},h));var g=_.GF().resolve(woB);return g?_.R(fq4,null,function(){return _.R(W6,null,function(){var Z,M,W,z,c,I,B,U,L,d,C,q;return void g(h.data(),{onButtonClickCallback:h.onButtonClickCallback,shouldShowIcons:(Z=h.shouldShowIcons)==null?void 0:Z.call(h),icon:(M=h.icon)==null?void 0:M.call(h),processAllEndpoints:(W=h.processAllEndpoints)==null?void 0:W.call(h),preventDefault:(z=h.preventDefault)==null?void 0:z.call(h),
stopPropagation:(c=h.stopPropagation)==null?void 0:c.call(h),disableButtonRendererClickHandling:(I=h.disableButtonRendererClickHandling)==null?void 0:I.call(h),className:(B=h.className)==null?void 0:B.call(h),buttonOverrides:(U=h.buttonOverrides)==null?void 0:U.call(h),forceModernIconButton:(L=h.forceModernIconButton)==null?void 0:L.call(h),isSubscribe:(d=h.isSubscribe)==null?void 0:d.call(h),alignByText:(C=h.alignByText)==null?void 0:C.call(h),forceDisabled:(q=h.forceDisabled)==null?void 0:q.call(h)})})}):
_.R(_.zt,null)},"ja");
_.dS.idomCompat=!0;var D0B=_.O(function(h){var E=h.data,g=_.zl(h.useSquareAspectRatio,!1);return _.R("dismissed-mini-game-card-view-model",null,_.R(_.P,{cond:function(){var Z,M;return(Z=E().responseText)==null?void 0:(M=Z.runs)==null?void 0:M.length},
then:function(){var Z={};return _.R("div",{class:_.CO("yt-mini-game-card-view-model__dismissed-card",(Z["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!g()},Z["yt-mini-game-card-view-model--dismissed-square-card"]=g,Z))},_.R("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.R(_.P,{cond:function(){return E().responseText.runs[0].text},
then:function(M){return _.R("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:M},M)}}),_.R(_.Sv,{data:function(){return E().buttons}},{buttonRenderer:_.dS,
buttonViewModel:_.$l})))}}))},"ka");var KKD=_.O(function(h){h=_.au(h,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var E=h.data,g=h.useFullWidth,Z=h.isDesktopWeb,M=h.addSearchResultTopMargin,W=function(){return E().layout},z=function(){return E().title},c=function(){return E().metadataText?E().metadataText:E().genre},I=function(){return E().channelName},B=function(){return E().image},U=function(){return E().colorPalette},L=function(){return E().actionButton},d=function(){return E().overflowButton},
C=function(){return E().avatar},q=function(){var H={};
H=_.CO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(H["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return Z()},H));
return _.R("div",{class:H},_.R(l2k,{imageData:B,colorPalette:U}),_.R(rEf,{onTap:function(){return E().onTap},
imageData:B,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.R(_.P,{cond:function(){return!Z()},
then:function(){return _.R(_.zt,null,_.R(m0H,{layout:W,colorPalette:U,isDesktopWeb:Z,overflowButton:d,avatar:C,onTap:function(){return E().onTap},
genre:c,title:z,channelName:I}),_.R(vkD,{actionButton:L}))}}))},w=function(){var H={};
H=_.CO((H["yt-mini-game-card-view-model--search-result-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!Z()},H["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return M()},H));
return _.R("div",{class:H},q(),_.R(Hal,{description:function(){return E().description},
isDesktopWeb:Z,title:z,genre:c,onTap:function(){return E().onTap},
actionButton:L,overflowButton:d,avatar:C,channelName:I}))},r=function(){var H={};
H=_.CO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(H["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return Z()&&E().width===135},H["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return Z()},H["yt-mini-game-card-view-model--big-metadata-font"]=function(){return E().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},H["yt-mini-game-card-view-model--use-full-width"]=
function(){return g()},H["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!L()},H));
return _.R("div",{class:H},_.R($0f,{colorPalette:U,isDesktopWeb:Z,onTap:function(){return E().onTap},
accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
actionButton:L,imageData:B}),_.R(m0H,{layout:W,colorPalette:U,isDesktopWeb:Z,overflowButton:d,avatar:C,onTap:function(){return E().onTap},
genre:c,title:z,channelName:I}))},v=function(){var H={};
H=_.CO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(H["yt-mini-game-card-view-model--square-card-desktop"]=function(){return Z()},H["yt-mini-game-card-view-model--use-full-width"]=function(){return g()},H));
return _.R("div",{class:H},_.R(rEf,{onTap:function(){return E().onTap},
imageData:B,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:Z}),_.R(m0H,{layout:W,colorPalette:U,isDesktopWeb:Z,overflowButton:d,avatar:C,onTap:function(){return E().onTap},
genre:c,title:z,channelName:I}))};
return _.R("mini-game-card-view-model",{class:h.className},_.R(_.DG,null,_.R(_.x3,{when:function(){return W()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return r()}),_.R(_.x3,{when:function(){return W()==="MINI_APP_LAYOUT_SQUARE"}},function(){return v()}),_.R(_.x3,{when:function(){return W()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return w()})))},"la");
KKD.idomCompat=!0;var vkD=_.O(function(h){var E=_.zl(h.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.R(_.Sv,{data:h.actionButton},{buttonViewModel:function(g){return _.R("div",{class:E},_.R(_.$l,{data:g.data}))}})},"ma"),rEf=_.O(function(h){var E=h.onTap;
var g=h.imageData;var Z=h.accessibilityText;var M=h.overlayBadgeText;var W=h.iconName;var z=h.unplayableInlinePlaybackIconName;h=h.isDesktopWeb;return _.R(_.lk,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:E},_.R(_.pO,{data:g,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(Z==null?void 0:Z())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.R(OaD,{overlayBadgeText:M,iconName:W,unplayableInlinePlaybackIconName:z,isDesktopWeb:h}))},"na"),OaD=_.O(function(h){var E=h.overlayBadgeText;
var g=h.iconName;var Z=h.unplayableInlinePlaybackIconName;var M=h.isDesktopWeb;return _.R("div",{class:"yt-mini-game-card-view-model__badge-container"},_.R(_.P,{cond:g,then:function(W){return _.R("div",{class:"yt-mini-game-card-view-model__badge"},_.R("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.R(_.Ni,{icon:W,className:"yt-mini-game-card-view-model__icon",size:12}),_.R("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},E)))}}),_.R(_.P,{cond:function(){return!g()&&
E()},
then:function(){return _.R("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},E)}}),_.R(_.P,{cond:function(){return Z()&&M()},
then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.R(_.Ni,{icon:Z,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),l2k=_.O(function(h){var E=h.colorPalette;
var g=h.imageData;var Z=function(){return E().vibrantColorPalette?E().vibrantColorPalette.section2Color:E().sectionTwoColor};
return _.R(_.zt,null,_.R("div",{class:"yt-mini-game-card-view-model__background-base",style:_.fO({"background-color":function(){return QV(Z(),"1")}})}),_.R("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.fO({"background-image":function(){return"url("+g().sources[0].url+")"}})}),_.R("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.fO({background:function(){return"linear-gradient(180deg,\n    "+QV(Z(),".8")+" 0%,\n    "+QV(Z(),".4")+" 25%,\n    "+QV(E().vibrantColorPalette?E().vibrantColorPalette.section4Color:E().sectionFourColor,".8")+" 100%)"}})}))},"pa"),m0H=_.O(function(h){var E=h.layout;
var g=h.colorPalette;var Z=h.overflowButton;var M=h.avatar;var W=h.onTap;var z=h.title;var c=h.channelName;var I=h.genre;var B=function(){var U;return E()!=="MINI_APP_LAYOUT_SQUARE"&&((U=g())==null?0:U.textPrimaryColor)?"color: "+QV(g().textPrimaryColor,".7"):""};
return _.R("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.R(_.P,{cond:M,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.Sv,{data:M},{avatarViewModel:_.Mq}))}}),_.R(_.lk,{command:W,
className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:z},z),_.R(_.P,{cond:M,then:function(){return _.R("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.R("span",{class:"yt-mini-game-card-view-model__genre",title:c,style:B},c),_.R("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:B},I))},
else:function(){return _.R("span",{class:"yt-mini-game-card-view-model__genre",title:I},I)}})),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.Sv,{data:Z},{buttonViewModel:function(U){var L=U.data;
return _.R(_.$l,{data:function(){return Object.assign({},L(),{customFontColor:E()==="MINI_APP_LAYOUT_SINGLETON"?L().customFontColor:void 0})}})}})))},"qa"),$0f=_.O(function(h){var E=h.colorPalette;
var g=h.isDesktopWeb;var Z=h.onTap;var M=h.accessibilityText;var W=h.overlayBadgeText;var z=h.iconName;var c=h.unplayableInlinePlaybackIconName;var I=h.actionButton;h=h.imageData;return _.R("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.R(l2k,{imageData:h,colorPalette:E}),_.R(rEf,{onTap:Z,imageData:h,accessibilityText:M,overlayBadgeText:W,iconName:z,unplayableInlinePlaybackIconName:c,isDesktopWeb:g}),_.R(_.P,{cond:function(){return I==null?void 0:I()},
then:function(){return _.R(vkD,{actionButton:I})}}))},"ra"),Hal=_.O(function(h){var E=h.description;
var g=h.isDesktopWeb;var Z=h.title;var M=h.genre;var W=h.onTap;var z=h.actionButton;var c=h.overflowButton;var I=h.avatar;h=h.channelName;var B={};B=_.CO("yt-mini-game-card-view-model--search-result-metadata-wrapper",(B["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=g,B["yt-mini-game-card-view-model--show-unplayable-on-hover"]=g,B["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!g()},B));
var U={};U=_.CO("yt-mini-game-card-view-model__search-result-info-row",(U["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!g()},U));
return _.R("div",{class:B},_.R("div",{class:U},_.R(_.lk,{command:W,className:"yt-mini-game-card-view-model__metadata-details"},_.R("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.R("span",{class:"yt-mini-game-card-view-model__genre",title:M},M)),_.R(vkD,{actionButton:z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.R("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.R(_.Sv,{data:c},{buttonViewModel:_.$l}))),_.R("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.R("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.R("div",{class:"yt-mini-game-card-view-model__avatar"},_.R(_.Sv,{data:I},{avatarViewModel:function(L){var d=L.data;return _.R(_.Mq,{data:function(){return Object.assign({},d(),{avatarImageSize:g()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.R(_.lk,{command:W,
className:"yt-mini-game-card-view-model__description"},_.R("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},h)),_.R(_.lk,{command:W,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.R("div",null)))),_.R(_.P,{cond:g,then:function(){return _.R(_.lk,{command:W,className:"yt-mini-game-card-view-model__description"},E)}}))},"sa");_.I9(KKD,"mini-game-card-view-model",{props:{data:_.C6,className:_.C6,useFullWidth:_.C6,isDesktopWeb:_.C6,addSearchResultTopMargin:_.C6}});_.I9(D0B,"dismissed-mini-game-card-view-model",{props:{data:_.C6,useSquareAspectRatio:_.C6}});var C0=function(){var h=_.D.apply(this,arguments)||this;h.isSearch=!1;h.isRichGrid=!1;return h};
_.f(C0,_.D);_.p=C0.prototype;_.p.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.p.dismissibleItemOnYtServiceRequestSent=function(h,E){E.actions&&this.dismissibleItemProcessActions(h,E.actions)};
_.p.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.p.dataChanged=function(){this.dismissibleItemReset()};
_.p.dismissibleItemProcessActions=function(h,E){for(var g=0;g<E.length;g++){var Z=E[g];_.e(Z,_.Or)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.e(Z,_.Or)),h.stopPropagation())}};
_.p.dismissibleItemHandleReplaceEnclosingAction=function(h){this.dismissedRenderer=h.item;this.isDismissed=!0};
_.ze.Object.defineProperties(C0.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var h;return!!this.data&&!((h=this.dismissedRenderer)==null?0:h.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.dismissedRenderer)==null||!h.notificationMultiActionRenderer)}}});
C0.prototype.dataChanged=C0.prototype.dataChanged;C0.prototype.dismissibleItemOnRequestSent=C0.prototype.dismissibleItemOnRequestSent;C0.prototype.dismissibleItemOnYtServiceRequestSent=C0.prototype.dismissibleItemOnYtServiceRequestSent;_.Y([_.x(),_.V("design:type",Object)],C0.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],C0.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],C0.prototype,"isDismissed",void 0);
_.Y([_.x(),_.V("design:type",Object)],C0.prototype,"dismissedRenderer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],C0.prototype,"isRichGrid",void 0);_.Y([_.S("data.layout"),_.V("design:type",Object),_.V("design:paramtypes",[])],C0.prototype,"useSquareAspectRatio",null);_.Y([_.S("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],C0.prototype,"showCard",null);
_.Y([_.S("data","dismissedRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],C0.prototype,"showDismissed",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],C0.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],C0.prototype,"dismissibleItemOnRequestSent",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],C0.prototype,"dataChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],C0);
_.X(C0,"ytd-mini-game-card-view-model",function(){if(SlH!==void 0)return SlH;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return SlH=h},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var nkB;var Xof;var JY=function(){return _.a5.apply(this,arguments)||this};
_.f(JY,_.a5);JY.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
JY.prototype.getContinuationUrl=function(h){var E={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.hl(h,E)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],JY.prototype,"data",void 0);_.Y([_.yc({is:"yt-reload-continuation",noInjection:!0})],JY);var YlD;var sBl;var eV=function(){var h=_.D.apply(this,arguments)||this;h.notificationData={};return h};
_.f(eV,_.D);_.p=eV.prototype;_.p.isMenuExpanded=function(h){return h&&h.length<=1?"undefined":"false"};
_.p.dataChanged_=function(){this.selected=void 0;var h=this.computeSelectedIndex_(this.data);h>=0&&(this.selected=h);h=this.data&&this.data.length>1;_.jg(this.hostElement,"has-items",h);_.UB(this.hostElement).querySelector("#label").tabIndex=h?0:-1};
_.p.onDropdownOpen=function(){var h=_.sH();if(this.parentTrackingParams&&this.data){var E=_.rp(this.parentTrackingParams);this.data.forEach(function(g){h&&E&&g.trackingParams&&(g=_.rp(g.trackingParams),_.uw(h,E,g),_.Eo(h,[g]))})}else this.parentTrackingParams||_.O$(new _.xX("No parent tracking params passed in for yt-dropdown-menu."))};
_.p.hasNotification=function(h){var E;if(h.targetId&&((E=this.notificationData)==null?0:E.targetId)){var g;return h.targetId===((g=this.notificationData)==null?void 0:g.targetId)}};
_.p.computeSelectedIndex_=function(h){if(h)for(var E=0,g=h.length;E<g;E++)if(h[E].selected)return E;return-1};
_.p.computeLabel_=function(h){return this.data&&h!=void 0?this.data[h].title:""};
_.p.computeShowIcon_=function(h,E){return!E&&!!h};
_.p.computeVerticalOffset_=function(h){return h?36:0};
_.p.computeEndpoint_=function(h){return h.endpoint||h.navigationEndpoint};
_.p.onLabelClick_=function(h){this.data&&this.data.length<=1?h.stopPropagation():this.menuExpanded="true"};
_.p.onIronActivate_=function(h){h=h.detail.item;var E=_.UB(this.hostElement).querySelector("#repeat").itemForElement(h);if(E&&E.trackingParams){var g=_.sH(),Z=_.rp(E.trackingParams);g&&_.Z$(g,Z)}if(E&&E.serviceEndpoint)_.J("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(E.serviceEndpoint):_.LZ(this.hostElement,[E.serviceEndpoint]),_.Ra(this.hostElement,"yt-playlist-reloading");else a:{if((E=h.querySelector("yt-supported-renderers"))&&
(E=E.rendererElement)&&E.is=="yt-reload-continuation"){E.trigger();break a}(h=h.querySelector("yt-reload-continuation"))&&h.trigger()}};
_.p.onTap_=function(h){h.preventDefault()};
_.p.onItemTap_=function(h){this.ytEndpointBehavior.onEndpointTap_(h)};
_.p.onLinkFocus_=function(h){try{var E=h.target}catch(Z){}if(E){var g=E.querySelector("tp-yt-paper-item");g&&_.EQ(this,"focus",function(){g.focus()})}};
_.p.onMenuClose_=function(){this.menuExpanded="false"};
_.p.isLabelIconActive_=function(h){return h==="true"};
_.p.computeHasSubtitle_=function(h){return!!h};
_.p.computeHrefForItem_=function(h){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(h))};
_.p.updateSelectedFromBinding=function(h){this.selected=h.detail.value};
_.ze.Object.defineProperties(eV.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
eV.prototype.onMenuClose_=eV.prototype.onMenuClose_;eV.prototype.onTap_=eV.prototype.onTap_;eV.prototype.onIronActivate_=eV.prototype.onIronActivate_;eV.prototype.onDropdownOpen=eV.prototype.onDropdownOpen;eV.prototype.dataChanged_=eV.prototype.dataChanged_;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],eV.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],eV.prototype,"ytEndpointBehavior",void 0);
_.Y([_.x(),_.V("design:type",Array)],eV.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],eV.prototype,"parentTrackingParams",void 0);_.Y([_.x(),_.V("design:type",Object)],eV.prototype,"selected",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],eV.prototype,"useLabel",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],eV.prototype,"useComputedAriaLabel",void 0);_.Y([_.x(),_.V("design:type",String)],eV.prototype,"icon",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],eV.prototype,"iconLabel",void 0);_.Y([_.x(),_.V("design:type",String)],eV.prototype,"ariaLabel",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],eV.prototype,"disabled",void 0);_.Y([_.x({computed:"isMenuExpanded(data)"}),_.V("design:type",String)],eV.prototype,"menuExpanded",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],eV.prototype,"closeOnActivate",void 0);
_.Y([_.x({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.V("design:type",Boolean)],eV.prototype,"modernButtons",void 0);_.Y([_.x(),_.V("design:type",Object)],eV.prototype,"notificationData",void 0);_.Y([_.S("ariaLabel, selected"),_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],eV.prototype,"computedAriaLabel",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eV.prototype,"dataChanged_",null);
_.Y([_.f3("paper-dropdown-open"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],eV.prototype,"onDropdownOpen",null);_.Y([_.f3("iron-activate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],eV.prototype,"onIronActivate_",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],eV.prototype,"onTap_",null);
_.Y([_.f3("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],eV.prototype,"onMenuClose_",null);_.Y([_.yc({is:"yt-dropdown-menu",disableElementRegistration:!0})],eV);
_.X(eV,"yt-dropdown-menu",function(){if(sBl===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;YlD===void 0&&(YlD=document.createElement("template"));var Z=YlD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);sBl=h}h=sBl;return h},{mode:2});var qq=function(){var h=_.D.apply(this,arguments)||this;h.hasNotification=!1;return h};
_.f(qq,_.D);qq.prototype.computeId=function(h){return h};
qq.prototype.computeHorizontalAlign=function(h){return h?"right":"left"};
qq.prototype.computeAccessibilityLabel=function(h){var E,g;return((E=h.accessibility)==null?void 0:(g=E.accessibilityData)==null?void 0:g.label)||null};
qq.prototype.notificationDataChanged=function(){var h;this.hasNotification=!!this.notificationData&&!((h=this.data)==null?0:h.icon)};
qq.prototype.notificationDataChanged=qq.prototype.notificationDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.oU.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],qq.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qq.prototype,"data",void 0);_.Y([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],qq.prototype,"id",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],qq.prototype,"isRightAligned",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],qq.prototype,"disabled",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],qq.prototype,"closeOnActivate",void 0);_.Y([_.x(),_.V("design:type",Object)],qq.prototype,"notificationData",void 0);_.Y([_.x(),_.V("design:type",Object)],qq.prototype,"hasNotification",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],qq.prototype,"useComputedAriaLabel",void 0);_.Y([_.Nm("notificationData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qq.prototype,"notificationDataChanged",null);_.Y([_.yc({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],qq);
_.X(qq,"yt-sort-filter-sub-menu-renderer",function(){if(Xof===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;nkB===void 0&&(nkB=document.createElement("template"));var Z=nkB;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Xof=h}h=Xof;return h},{mode:2});var Val=_.O(function(h){var E=h.data;var g=_.J7(function(){var W=E().onTap;(W=_.e(W,_.V1))&&_.GF().resolve(_.zF).resolveCommand(W);return!1}),Z=function(){return{sources:[{url:E().thumbnailUrl,
width:120,height:90}]}},M=function(){return E().rating&&E().ratingA11yLabel&&E().reviewsCount&&E().reviewsCountA11yLabel};
return _.R("place-data-view-model",null,_.R(_.P,{cond:function(){return E().placeName&&E().placeCategory},
then:function(){return _.R("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":g},_.R(_.pO,{data:Z,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.R(_.lk,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return E().onTap}},_.R("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return E().placeName}},function(){return E().placeName})),_.R("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.R(_.P,{cond:M,
then:function(){return _.R("div",{class:_.CO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.R("span",{class:"score",title:function(){return E().ratingA11yLabel}},function(){return E().rating}),_.R("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.R(_.Ni,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.R("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return E().reviewsCountA11yLabel}},function(){return E().reviewsCount}))},
else:function(){return _.R("div",{class:_.CO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.R("div",{class:_.CO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.R("span",{class:"category",
title:function(){return E().placeCategory}},function(){return E().placeCategory}))))}}))},"ta");
Val.idomCompat=!0;_.I9(Val,"place-data-view-model",{props:{data:_.C6}});var kEn=new _.Ps("INLINE_PLAYBACK_HOOK_TOKEN");var yEM=_.OL({sharedUi:_.WRl});_.AU=_.nO(yEM)(yEM.sharedUi,{animatedThumbnailEnabledSelector:function(h){return h.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(h){return h.inlinePreviewEnabled},
currentPageTypeSelector:function(h){return h.currentPageType},
currentPageSubTypeSelector:function(h){return h.currentPageSubType},
persistentPanelVisibleSelector:function(h){return h.persistentPanelVisible}});var FKm=function(h){this.setActiveSlideIndex=h;this.jobIds=[];this.isSlideshowPlaying=!1},baf=function(h,E){h.isSlideshowPlaying||(h.isSlideshowPlaying=!0,AEA(h),Tdk(h,E,0))},AEA=function(h){_.LO(_.KP,function(){h.setActiveSlideIndex(0)},1)},Tdk=function(h,E,g){h.jobIds.push(_.LO(_.KP,function(){var Z=g<E-1?g+1:0;
h.setActiveSlideIndex(Z);Tdk(h,E,Z)},1800))};var ukC=new _.Ps("IMAGE_ON_LOAD_HANDLER_TOKEN");var QBB=_.O(function(h){return _.R("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.R(_.P,{cond:function(){var E;return(E=h.data())==null?void 0:E.thumbnail},
then:function(E){return _.R(_.pO,{data:E,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.hiB=_.O(function(h){var E=h.data;var g=h.lockupExperiments;h={};return _.R("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.R("div",{class:_.CO("ytThumbnailOverlayButtonViewModelButton",(h.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var Z;return g&&((Z=g())==null?void 0:Z.useLegacySizedIconButton)},h))},_.R(_.Sv,{data:function(){return E().overlayButton}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
buttonOverrides:function(){var M;return g&&((M=g())==null?0:M.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.hiB.idomCompat=!0;var EoA=_.O(function(h){return _.R("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.J7(function(E){E.preventDefault();return!1})},_.R(_.Sv,{data:function(){return h.data().buttons}},{toggleButtonViewModel:function(E){return _.R("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.R(_.Z7,{data:E.data}))}}))},"wa");
EoA.idomCompat=!0;var goC=_.O(function(h){var E=function(){var g;return((g=_.e(h.data().rendererContext,_.te))==null?void 0:g.label)||""};
return _.R("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.R(_.P,{cond:function(){return h.data().image},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.R(_.pO,{data:function(){return h.data().image},
alt:E}))}}),_.R(_.P,{cond:function(){return h.data().text},
then:function(){return _.R("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return h.data().text})}}))},"xa");var ZEl;ZEl=_.AU.animatedThumbnailEnabledSelector;_.f0=_.O(function(h){var E=[],g=function(){var d,C;return c_a((d=h.width)==null?void 0:d.call(h),(C=h.height)==null?void 0:C.call(h))},Z=_.GF().resolve(_.pl(ukC)),M=_.hf("yt-thumbnail-view-model",function(){E.push("elRef.value set");
var d;(d=h.playbackRef)==null||d.call(h,{thumbnailElRef:M,thumbnail:h.data().image,thumbnailOverlays:h.data().overlays,thumbnailSize:g()})});
_.vJ(function(){E.push("onInit");_.r9(function(){E.push("onCleanup")})});
var W=_.VQ(ZEl),z=function(){var d,C;return(C=(d=h.aspectRatio)==null?void 0:d.call(h))!=null?C:0},c=function(){return(h.data().image?_.Hvz(h.data().image):z())<=1&&z()===0},I=function(){return c()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},B=function(){M.value||_.O$(new _.xX("Thumbnail elRef.value is null",E.join("\n")));
Z&&M.value&&Z(M.value)},U=function(){var d,C;
return((d=h.hovered)==null?void 0:d.call(h))&&g()!=="large"&&((C=h.data().overlays)==null?void 0:C.some(function(q){return _.e(q,sUf)}))},L={};
return _.R("yt-thumbnail-view-model",{class:_.CO("ytThumbnailViewModelHost",h.className,function(){return sg4(z())},function(){var d,C;
a:{var q=g(),w=(d=h.disableRounding)==null?void 0:d.call(h);d=(C=h.isClip)==null?void 0:C.call(h);if(!w&&!d)switch(q){case "large":C="ytThumbnailViewModelLarge";break a;case "small":C="ytThumbnailViewModelSmall";break a;default:C="ytThumbnailViewModelMedium";break a}C=void 0}return C},(L.ytThumbnailViewModelCinematic=c,L)),
style:_.fO({"background-color":function(){var d,C=c()?(d=h.data().backgroundColor)==null?void 0:d.lightTheme:void 0;return C?QV(C,"1"):void 0}}),
el:M},_.R(_.P,{cond:c,then:function(){return _.R("div",{class:"ytThumbnailViewModelBlurredImage"},_.R(_.pO,{data:function(){return h.data().image},
alt:"",contentMode:I,targetWidth:h.width,onload:B}))}}),_.R("div",{class:"ytThumbnailViewModelImage"},_.R(_.pO,{data:function(){return h.data().image},
alt:"",contentMode:I,targetWidth:h.width,onload:B}),null),_.R(_.Sv,{data:function(){return U()?void 0:h.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:GEM,thumbnailOverlayBadgeViewModel:function(d){return _.R(zyl,{data:d.data,thumbnailSize:g,isClip:h.isClip})},
thumbnailBottomOverlayViewModel:function(d){return _.R(ZaB,{data:d.data,thumbnailSize:g,isClip:h.isClip})},
thumbnailOverlayFullViewModel:goC,thumbnailOverlayButtonViewModel:function(d){return _.R(_.hiB,{data:d.data,lockupExperiments:h.lockupExperiments})}}),_.R(_.Sv,{data:function(){var d;
return((d=h.hovered)==null?0:d.call(h))?h.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(d){return _.R(Zf,{data:d.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:EoA}),_.R(_.Sv,{data:function(){var d;return((d=h.hovered)==null?0:d.call(h))&&W()?h.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:QBB}),_.R(_.P,{cond:h.isClip,then:function(){return _.R("div",{class:"ytPinkingNsHost"},_.R("svg",{class:"ytPinkingNsPinkingLeft"},_.R("defs",null,_.R("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.R("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.R("svg",{class:"ytPinkingNsPinkingRight"},_.R("defs",null,_.R("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.R("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.R("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.f0.idomCompat={callbacks:{playbackRef:!0}};var MOA=_.O(function(h){var E=_.G(_.Bm(-1,void 0,"RW2Ole")),g=E.next().value,Z=E.next().value;_.vJ(function(){var M=new FKm(Z);baf(M,h.data().thumbnails.length);_.r9(function(){if(M.isSlideshowPlaying){M.isSlideshowPlaying=!1;for(var W=M.jobIds,z=0,c=W.length;z<c;z++)_.KP.cancelJob(W[z]);M.jobIds.length=0}})});
return _.R("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.R(_.Sv,{data:function(){return h.data().thumbnails}},{thumbnailViewModel:function(M,W){return _.R("div",{class:function(){var z=!h.data().primaryThumbnail,c=W(),I=g(),B=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
z&&c===0&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");c<=I&&B.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return B.join(" ")}},_.R(_.f0,{data:M.data,
disableRounding:h.disableRounding}))}}))},"za");
MOA.idomCompat=!0;var Ve4=new _.Ps("DWELL_DETECTOR_REGISTRY_TOKEN");var p8D=_.O(function(h){var E=kmx(h.triggeringElement),g=function(){return!!h.data().primaryThumbnail},Z=function(){var W,z=(W=h.data())==null?void 0:W.maxHeight,c;
W=(c=h.maxHeight)==null?void 0:c.call(h);return z!=null&&W!=null?Math.min(z,W):W!=null?W:z},M=function(){var W=Z();
if(W){var z;if(g()&&(z=h.includeStackHeight)!=null&&z.call(h)){var c;z=((c=h.doubleStack)==null?0:c.call(h))?8:4}else z=0;W=W-z-1;if(!(W<0)){c=Math;z=c.ceil;var I,B;var U=aKq((B=(I=h.aspectRatio)==null?void 0:I.call(h))!=null?B:0);return z.call(c,W*U)}}};
return _.R("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.fO({height:function(){return Z()?Z()+"px":void 0},
width:function(){return M()?M()+"px":void 0}})},_.R(WUM,{stackEnabled:g,
thumbnailSize:function(){var W,z;return c_a((W=h.width)==null?void 0:W.call(h),(z=h.height)==null?void 0:z.call(h))},
doubleStack:h.doubleStack,stackColor:function(){return h.data().stackColor},
includeStackHeight:h.includeStackHeight},_.R(_.Sv,{data:function(){return h.data().primaryThumbnail}},{thumbnailViewModel:function(W){var z={};
return _.R(_.f0,{data:W.data,width:h.width,height:h.height,aspectRatio:h.aspectRatio,disableRounding:h.disableRounding,className:_.CO((z.ytCollectionThumbnailViewModelHostHasStacks=g,z)),hovered:h.hovered,playbackRef:h.playbackRef})}}),_.R(_.P,{cond:function(){var W;
return E()&&((W=h.data().thumbnails)==null?void 0:W.length)},
then:function(){return _.R("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.R(MOA,{data:h.data,disableRounding:function(){return!g()}}))}})))},"Aa");
p8D.idomCompat={callbacks:{playbackRef:!0}};
var WUM=_.O(function(h){var E=h.children;var g=h.stackEnabled;var Z=h.thumbnailSize;var M=h.doubleStack;var W=h.stackColor;var z=h.includeStackHeight;var c,I=(c=_.GF().resolve(_.pl(_.gu)))==null?void 0:c();return _.R(_.P,{cond:g,then:function(){return _.R(lcB,{data:function(){var B,U;return{experimentEnabled:!0,thumbnailSize:Z(),doubleStack:M==null?void 0:M(),color:I?W==null?void 0:(B=W())==null?void 0:B.darkTheme:W==null?void 0:(U=W())==null?void 0:U.lightTheme,enableResponsiveMode:!1,includeStackHeight:z==
null?void 0:z()}}},E)},
else:function(){return E}})},"Ba");var GMD=new _.Ps("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var tY;_.Nq={calledOnce:!0,state:"visible"};tY={calledOnce:!0,state:"hidden"};_.SV=_.O(function(h){var E=h.data;var g=h.customCommandResolver;var Z=h.className;var M=h.delayedClassName;var W=h.animationEntityKey;var z=h.isCompactWidth;var c=h.isContentWidth;h=_.G(_.Bm(!1,void 0,"pC3tUb"));var I=h.next().value,B=h.next().value,U=_.zl(W,""),L=_.qI(WYz,U),d=function(){var Ba,$$;return($$=(Ba=L())==null?void 0:Ba.value)!=null?$$:!1},C=function(){_.Gl(_.xx("booleanEntity",U(),{key:U(),
value:!0}));y=void 0};
W=_.G(_.qi(d));var q=W.next().value,w=W.next().value;W=_.G(_.qi(d));var r=W.next().value,v=W.next().value;W=_.G(_.qi(function(){var Ba;return d()?(Ba=E().styleTransitionConfig)==null?void 0:Ba.destinationStyle:void 0}));
var H=W.next().value,u=W.next().value,k=function(){var Ba=Object.assign({},E(),H()&&{style:H()});var $$,Ha,zf=Ba.label,eF=($$=Ba.interaction)==null?void 0:(Ha=$$.accessibility)==null?void 0:Ha.label;$$=Ba.iconImage?Ba.label&&Ba.label.content?Ba.iconLeading?"leading":"trailing":"icon-only":void 0;Ba={formattedButtonText:zf,accessibilityLabel:eF,style:TlM(Ba.style),type:bqq(Ba.style),state:"active",size:AGz(Ba.size),iconPosition:$$,disabled:!1,aTagConfig:FQu(Ba,g)};_.J("enable_desktop_vdcbg_components")&&
(Ba.focused=I());return Ba},y;
W=_.c6({visibilityCallback:function(Ba){var $$,Ha=($$=E().interaction)==null?void 0:$$.onFirstVisible;Ba&&Ha&&_.Tl(Ha)},
showOption:_.Nq});var A=function(){return L_N(k(),!!E().iconImage)};
h={};var E4={};Z=_.CO(function(){return"ytwAdButtonViewModelHost"},function(){return E().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Ba=!!E().delayedAppearanceConfig,$$=q();
return Ba?$$?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Ba=!!E().delayedAppearanceConfig,$$=r();
return Ba?$$?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!E().delayedAppearanceConfig||q()?M==null?void 0:M():""},(h.ytwAdButtonViewModelHostCompactWidth=function(){return z==null?void 0:z()},h),(E4.ytwAdButtonViewModelHostContentWidth=function(){return c==null?void 0:c()},E4),Z!=null?Z:"");
var iO=function(){var Ba,$$=(Ba=E().delayedAppearanceConfig)==null?void 0:Ba.delayedInvisibleSeconds;$$&&(y=_.lv(_.KP,function(){w(!0);RW()},$$*1E3))},RW=function(){var Ba,$$=(Ba=E().delayedAppearanceConfig)==null?void 0:Ba.delayedVisibleSeconds;
$$&&(y=_.lv(_.KP,function(){v(!0);NN()},$$*1E3))},NN=function(){var Ba,$$=(Ba=E().styleTransitionConfig)==null?void 0:Ba.styleTransitionSeconds,Ha,zf=(Ha=E().styleTransitionConfig)==null?void 0:Ha.destinationStyle;
$$&&zf?y=_.lv(_.KP,function(){u(zf);C()},$$*1E3):C()},Cd=function(){var Ba;
return(Ba=E().delayedAppearanceConfig)==null?void 0:Ba.transitionDurationSeconds};
_.vJ(function(){iO()});
_.r9(function(){y&&_.KP.cancelJob(y)});
return _.R("ad-button-view-model",{"on:focusin":_.J7(_.J("enable_desktop_vdcbg_components")?function(){var Ba=_.GF().resolve(_.pl(_.DX));Ba&&B(Ba.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.J7(_.J("enable_desktop_vdcbg_components")?function(){B(!1);return!1}:void 0),
class:Z,el:_.zT(W),style:_.fO({"transition-duration":function(){return Cd()?Cd()+"s":void 0}})},_.R(_.P,{cond:k,
then:function(){return _.R(_.H4,{data:k,icon:function(){return _.R(_.P,{cond:function(){return E().iconImage},
then:function(Ba){return _.R(_.pO,{data:Ba,alt:"",targetWidth:A,targetHeight:A,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var zim=_.O(function(h){var E=h.data;h=function(){return E().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var g=_.c6({visibilityCallback:function(W){var z,c=(z=E().interaction)==null?void 0:z.onFirstVisible;W&&c&&_.Tl(c)},
showOption:_.Nq}),Z={},M={};return _.R("ad-button-group-view-model",{class:_.CO("ytwAdButtonGroupViewModelHost",(Z.ytwAdButtonGroupViewModelHostCompactWidth=h,Z)),el:_.zT(g)},_.R("div",{class:_.CO("ytwAdButtonGroupViewModelHostSecondaryButton",(M.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=h,M))},_.R(_.Sv,{data:function(){return E().secondaryAdButton}},{adButtonViewModel:function(W){return _.R(_.SV,{data:W.data})}})),_.R("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.R(_.Sv,
{data:function(){return E().primaryAdButton}},{adButtonViewModel:function(W){return _.R(_.SV,{data:W.data})}})))},"Da");var auF=_.O(function(h){var E=function(){var g;return((g=h.data())==null?void 0:g.answers)||[]};
return _.R("yt-survey-icons",{class:"ytSurveyIconsHost"},_.R("div",{class:"ytSurveyIconsHeader"},_.R("div",{class:"ytSurveyIconsTitle"},function(){var g;return(g=h.data())==null?void 0:g.text}),_.R("div",null,_.R(_.H4,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var g;(g=h.onDismiss)==null||g.call(h)}}},
iconName:"DISMISSAL"}))),_.R("div",null,_.R("div",{class:"ytSurveyIconsAnswers"},_.R(_.SX,{each:function(){return E()},
keyBy:"INDEX"},function(g,Z){return _.R("div",null,_.R(_.H4,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var M;(M=h.onSelect)==null||M.call(h,g(),Z)}}},
icon:function(){return _.R(_.Ni,{icon:function(){var M,W;return(M=g())==null?void 0:(W=M.icon)==null?void 0:W.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.R("div",{class:"ytSurveyIconsAnswersText"},_.R("div",null,function(){return E().length?E()[0].text:""}),_.R("div",null,function(){return E().length?E()[E().length-1].text:""}))))},"Ea");var cdl=_.O(function(h){var E=_.zT(_.n4(function(){var I;return(I=h.data())==null?void 0:I.rendererContext},void 0,void 0,void 0,!0)),g=_.G(_.Bm(!1,void 0,"GW0yjf")),Z=g.next().value,M=g.next().value,W=_.qI(sP$,function(){var I;
return(I=h.data().keys)==null?void 0:I.surveyEntityKey}),z=_.qI(VSz,function(){var I;
return(I=h.data().keys)==null?void 0:I.surveyStateEntityKey});
_.QX("ytd-slimline-survey-show-action",function(){M(!1)});
var c=function(){var I,B;var U=(I=z())==null?void 0:(B=I.questionStack)==null?void 0:B[0];if(U!==void 0){var L,d;return(L=W())==null?void 0:(d=L.questions)==null?void 0:d[U]}};
g={};return _.R("yt-slimline-survey-view-model",{el:E,class:_.CO("ytSlimlineSurveyViewModelHost",(g.ytSlimlineSurveyViewModelCollapsed=function(){return Z()},g))},_.R("div",{class:"ytSlimlineSurveyViewModelContainer"},_.R(_.P,{cond:function(){var I;
return((I=c())==null?void 0:I.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.R(auF,{data:function(){return c()},
onSelect:function(I,B){var U,L;return _.a(function(d){M(!0);if(L=(U=h.data())==null?void 0:U.onSelectRating)_.Tl(L),_.Gl(BsD(B));_.SK(d)})},
onDismiss:function(){M(!0);var I;var B=(I=W())==null?void 0:I.dismissalFeedbackToken;I=B?{feedbackEndpoint:{feedbackToken:B}}:void 0;I&&_.y1(I,{form:{element:E.value}})}})}})))},"Fa");var iEm=_.O(function(h){return _.R("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.R(_.Sv,{data:function(){var E;return(E=h.data())==null?void 0:E.attachments}},{flexibleActionsViewModel:function(E){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(_.pH,{data:E.data,
layout:function(){var g;return((g=h.lockupStyle())==null?void 0:g.arrangement)===1?0:1},
justifyContentOverride:function(){var g;return((g=h.lockupStyle())==null?void 0:g.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(E){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(cdl,{data:E.data}))},
expandableMetadataViewModel:function(E){E=E.data;var g;return _.R("div",{class:_.CO("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(g=_.GF().resolve(_.pl(GMD)))==null?void 0:g({data:E}))},
adButtonGroupViewModel:function(E){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(zim,{data:E.data}))},
adButtonViewModel:function(E){return _.R("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.R(_.SV,{data:E.data,isCompactWidth:!0}))}}))},"Ga");var Za$=_.cx("rich_grid_min_item_width",310),Ekd=_.cx("rich_grid_max_item_width",500);var ool=_.O(function(h){var E=h.data;return _.R("br-nz-badge-shape",{class:_.CO(function(){return ia$(E().brNzRatingBadgeType)}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},function(){var g;
return(g=E())==null?void 0:g.text})},"Ha");_.xz=_.O(function(h){var E=function(){var g=h.data(),Z,M,W;if(g){var z=!((Z=h.workaroundShortsIsThumbnailBadge)==null||!Z.call(h));Z=(M=h.modern)==null?void 0:M.call(h);M=(W=h.numBadgesInRow)==null?void 0:W.call(h);var c;a:switch(g.badgeStyle){case "BADGE_OVERLAY":W=!0;break a;default:W=!1}g={type:z?17:ok$(g.badgeStyle),brNzRatingBadgeType:I2a(g.badgeStyle),text:g.badgeText,icon:g.iconName,isOverlay:W,modern:Z||_.J("web_modern_badge_view_model"),numBadgesInRow:M,accessibilityText:g.accessibilityLabel||
((c=_.e(g.rendererContext,_.te))==null?void 0:c.label)}}else g=void 0;return g};
return _.R("yt-badge-view-model",{class:_.CO("ytBadgeViewModelHost",h.class)},_.R(_.DG,null,_.R(_.x3,{when:function(){var g;return!((g=E())==null||!g.brNzRatingBadgeType)}},function(){return _.R(ool,{data:function(){return E()}})}),_.R(_.x3,{when:function(){return!!E()&&!E().brNzRatingBadgeType}},function(){return _.R(_.cP,{data:function(){return E()}})})))},"Ia");
_.xz.idomCompat=!0;var P9q,RyM;P9q=16/9;RyM=2/3;_.wS=_.O(function(h){var E=h.data;var g=h.className;var Z=h.imageSizeConfig;var M=h.notifyOnLoaded;var W=function(){return E().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},z=function(){var d;
return _.Oz((d=E())==null?void 0:d.rendererContext)};
h={};h=(h.ytContentPreviewImageViewModelHost=!0,h.ytContentPreviewImageViewModelCircleImage=function(){return W()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},h.ytContentPreviewImageViewModelTappable=function(){return z()},h);
var c=function(){var d,C;return(C=(d=_.e(E().rendererContext,_.te))==null?void 0:d.label)!=null?C:""},I=function(){return U0a(E())},B=function(){var d=Bdd(W(),E().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",Z==null?void 0:Z(),LKq(I()),E().layoutWidth,E().layoutHeight),C=Object.assign({},d);
d.width&&(C.width=Math.round(d.width));d.height&&(C.height=Math.round(d.height));d.maxWidth&&(C.maxWidth=Math.round(d.maxWidth));d.maxHeight&&(C.maxHeight=Math.round(d.maxHeight));return C},U=_.Cw(function(){return B().height},void 0,"CxFlJb"),L=_.Cw(function(){return B().width},void 0,"lb8Jhd");
return _.R("yt-content-preview-image-view-model",{el:_.zT(_.n4(function(){var d;return(d=E())==null?void 0:d.rendererContext})),
role:function(){return z()?"link":void 0},
tabindex:function(){return z()?0:void 0},
class:_.CO(g,h,function(){var d=W();var C=Z==null?void 0:Z();d=d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(C==null?void 0:C.size)!=null&&C.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(C==null?void 0:C.size)!=null&&C.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return d}),
style:function(){var d=B(),C=[];d.width&&C.push("width: "+d.width+"px");d.height&&C.push("height: "+d.height+"px");d.maxWidth&&C.push("max-width: "+d.maxWidth+"px");d.maxHeight&&C.push("max-height: "+d.maxHeight+"px");d.fullWidth&&C.push("width: 100%");return C.join(";")}},_.R(_.P,{cond:I,
then:function(d){return _.R(_.pO,{data:d,alt:c,"data-disabled$":function(){return!c()},
notifyOnLoaded:M,targetWidth:L,targetHeight:U,preserveWidth:function(){return!!L()},
preserveHeight:function(){return!!U()}})}}),_.R(_.Sv,{data:function(){var d;
return(d=E())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:Zf,
thumbnailOverlayButtonViewModel:_.hiB}))},"Ja");
_.wS.idomCompat=!0;var RiF=_.O(function(h){var E=h.data;var g=h.className;var Z=h.useSmallLayout;h=h.useMediumText;var M={};return _.R("yt-attribution-view-model",{el:_.zT(_.n4(function(){var W;return(W=E())==null?void 0:W.rendererContext})),
class:_.CO(g,(M.ytAttributionViewModelHost=!0,M.ytAttributionViewModelMediumText=h,M))},_.R(_.P,{cond:function(){return _.Oz(E().rendererContext)},
then:function(){return _.R("button",{class:"ytAttributionViewModelTappable"},_.R(Ium,{data:E,useSmallLayout:Z}))},
else:function(){return _.R(Ium,{data:E,useSmallLayout:Z})}}))},"Ka"),Ium=_.O(function(h){var E=h.data;
var g=h.useSmallLayout;var Z=function(){return{size:(g==null?0:g())?16:24}};
return _.R(_.zt,null,_.R(_.Sv,{data:function(){return E().contentPreviewImage}},{contentPreviewImageViewModel:function(M){return _.R(_.wS,{data:M.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:Z})}}),_.R(_.Sv,{data:function(){return E().badge}},{badgeViewModel:function(M){return _.R(_.xz,{data:M.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.R(_.P,{cond:function(){return E().text},
then:function(){return _.R(_.dK,{text:function(){return E().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.R(_.P,{cond:function(){return E().suffix},
then:function(){return _.R(_.dK,{text:function(){return E().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"La");
RiF.idomCompat=!0;var P2D,BTD,UED,LUB,jQf;P2D=_.O(function(h){var E=h.delimiter;var g=h.max;var Z=h.index;var M=h.isStandalone;return _.R(_.P,{cond:function(){return g()-1>Z()},
then:function(){var W={};return _.R("span",{class:_.CO("yt-content-metadata-view-model__delimiter",(W["yt-content-metadata-view-model__delimiter--standalone"]=M,W)),"aria-hidden":!0},E)}})},"Ma");
BTD=_.O(function(h){var E=h.metadataPart;var g=h.maxLines;return _.R(_.dK,{text:function(){return E().text},
linkInheritColor:!0,className:function(){return jBM(g())},
userInput:!0})},"Na");
UED=_.O(function(h){var E=h.metadataPart;var g=h.maxLines;return _.R(_.P,{cond:function(){return E().tooltip},
then:function(Z){return _.R("span",{title:Z,role:"tooltip"},_.R(BTD,{metadataPart:E,maxLines:g}))},
else:function(){return _.R(BTD,{metadataPart:E,maxLines:g})}})},"Oa");
LUB=_.O(function(h){var E=h.metadataPart;var g=h.isOverlay;var Z=h.useMediumText;var M=h.hideAvatar;var W=function(){return E().maxLines!==void 0?E().maxLines:1};
return _.R(_.zt,null,_.R(_.Sv,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(z){return _.R(_.p0,{data:z.data,
isOverlay:g,useMediumText:Z,hideAvatar:M})},
badgeViewModel:_.xz}),_.R(_.P,{cond:function(){return E().leadingIcon},
then:function(z){return _.R(_.Ni,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return z().name},
size:function(){return z().width}})}}),_.R(_.P,{cond:function(){return E().text},
then:function(){return _.R(UED,{metadataPart:E,maxLines:W})}}),_.R(_.P,{cond:function(){return E().icon},
then:function(z){return _.R(_.Ni,{className:"yt-content-metadata-view-model__icon",icon:function(){return z().name},
size:function(){return z().width}})}}))},"Pa");
jQf=_.O(function(h){var E=h.metadataRow;var g=h.isInline;var Z=h.delimiter;var M=h.isOverlay;var W=h.useMediumText;var z=h.extensions;var c=function(){var B,U=z==null?void 0:(B=z())==null?void 0:B.lockupMetadata;B=E();var L,d;return!!((U==null?0:(L=U.byline)==null?0:L.hideAvatar)&&((d=_.e(B,vlB))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},I=function(){return E().metadataParts||[]};
h={};return _.R("div",{class:_.CO("yt-content-metadata-view-model__metadata-row",(h["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=g,h["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var B,U=z==null?void 0:(B=z())==null?void 0:B.lockupMetadata;B=E();var L,d;return!!((U==null?0:(L=U.byline)==null?0:L.addPadding)&&((d=_.e(B,vlB))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},h["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var B;
return!!(z==null?0:(B=z())==null?0:B.lockupMetadata)&&E().badges&&!E().metadataParts},h))},_.R(_.Sv,{data:function(){return E().badges}},{badgeViewModel:function(B){return _.R("div",{class:"yt-content-metadata-view-model__badge"},_.R(_.xz,{data:B.data,
numBadgesInRow:function(){var U,L;return((U=E())==null?void 0:(L=U.badges)==null?void 0:L.length)||0}}))}}),_.R(_.SX,{each:I},function(B,U){return _.R(_.zt,null,_.R(LUB,{metadataPart:B,
isOverlay:M,useMediumText:W,hideAvatar:c}),_.R(P2D,{delimiter:Z,max:function(){return I().length},
index:U,isStandalone:!1}))}),_.R(_.P,{cond:function(){return E().isSpacerRow&&!g()},
then:function(){return _.R("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Qa");
_.Df=_.O(function(h){h=_.au(h,{layout:0,isOverlay:!1});var E=h.data,g=h.layout,Z=h.isOverlay,M=h.useMediumText,W=h.extensions,z=function(){return g()===0},c=function(){var B;
return((B=E().metadataRows)==null?void 0:B.filter(function(U){var L,d=W==null?void 0:(L=W())==null?void 0:L.lockupMetadata,C,q;L=!!((d==null?0:(C=d.description)==null?0:C.hideDescription)&&((q=_.e(U,vlB))==null?void 0:q.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var w,r;return!((d==null?0:(w=d.spacer)==null?0:w.hideSpacer)&&((r=_.e(U,vlB))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||L)}))||[]},I={};
return _.R("yt-content-metadata-view-model",{class:_.CO(h.className,"yt-content-metadata-view-model",(I["yt-content-metadata-view-model--inline"]=z,I["yt-content-metadata-view-model--tappable"]=function(){return _.Oz(E().rendererContext)},I["yt-content-metadata-view-model--medium-text"]=M,I)),
el:_.zT(_.n4(function(){return E().rendererContext}))},_.R(_.SX,{each:c},function(B,U){return _.R(_.zt,null,_.R(jQf,{metadataRow:B,
isInline:z,delimiter:function(){return E().delimiter},
isOverlay:Z,useMediumText:M,extensions:W}),_.R(_.P,{cond:function(){return z()&&!B.isSpacerRow},
then:function(){return _.R(P2D,{delimiter:function(){return E().delimiter},
max:function(){return c().length},
index:U,isStandalone:!0})}}))}))},"Ra");
_.Df.idomCompat=!0;var dEM=_.O(function(h){var E={};return _.R("yt-lockup-metadata-view-model",{class:_.CO("yt-lockup-metadata-view-model",function(){a:{var g=h.lockupStyle();if(g==null?0:g.isOverlay)g="yt-lockup-metadata-view-model--overlay";else switch(g==null?void 0:g.arrangement){case 1:g="yt-lockup-metadata-view-model--horizontal";break a;default:g="yt-lockup-metadata-view-model--vertical"}}return g},function(){a:{var g=h.lockupStyle();
if(g==null?0:g.isTiny)g="yt-lockup-metadata-view-model--tiny";else switch(g==null?void 0:g.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":g="yt-lockup-metadata-view-model--compact";break a;default:g="yt-lockup-metadata-view-model--standard"}}return g},(E["yt-lockup-metadata-view-model--overlay"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.isOverlay},E["yt-lockup-metadata-view-model--card"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.isCard},E["yt-lockup-metadata-view-model--centered"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.isCentered},E["yt-lockup-metadata-view-model--typography-bump"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.typographyBump},E["yt-lockup-metadata-view-model--legacy-typography"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.useLegacyTypography},E["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var g;
return(g=h.lockupStyle())==null?void 0:g.useRichGridLegacyTypography},E))},_.R(_.Sv,{data:function(){return h.data().image}},{avatarStackViewModel:function(g){return _.R("div",{class:"yt-lockup-metadata-view-model__avatar"},_.R(_.p0,{data:g.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(g){return _.R("div",{class:"yt-lockup-metadata-view-model__avatar"},_.R(_.Mq,{data:g.data}))},
decoratedAvatarViewModel:function(g){return _.R("div",{class:"yt-lockup-metadata-view-model__avatar"},_.R(_.W0,{data:g.data}))}}),_.R("div",{class:"yt-lockup-metadata-view-model__text-container"},_.R("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var g;return(g=h.data().title)==null?void 0:g.content}},_.R(_.P,{cond:function(){return h.data().title},
then:function(g){return _.R(_.lk,{command:h.lockupCommand,className:"yt-lockup-metadata-view-model__title",ariaLabel:h.lockupAccessibilityLabel},_.R(_.dK,{text:g,userInput:!0}))}})),_.R("div",{class:"yt-lockup-metadata-view-model__metadata"},_.R(_.Sv,{data:function(){return h.data().metadata}},{contentMetadataViewModel:function(g){return _.R(_.Df,{data:g.data,
layout:1,useMediumText:function(){var Z,M;return((Z=h.lockupStyle())==null?void 0:Z.typographyBump)||((M=h.lockupStyle())==null?void 0:M.useRichGridLegacyTypography)},
extensions:function(){var Z,M,W,z;return{lockupMetadata:{byline:{hideAvatar:((Z=h.lockupStyle())==null?void 0:Z.arrangement)===0,addPadding:((M=h.lockupStyle())==null?void 0:M.arrangement)===1},description:{hideDescription:!((W=h.lockupStyle())==null||!W.compactMetadata)},spacer:{hideSpacer:!((z=h.lockupStyle())==null||!z.compactMetadata)}}}}})}})),_.R(_.Sv,{data:function(){return h.data().attribution}},{attributionViewModel:function(g){return _.R("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.R(RiF,{data:g.data,
useSmallLayout:!0}))}})),_.R("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.R(_.Sv,{data:function(){return h.data().menuButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
buttonOverrides:function(){var Z;return((Z=h.lockupStyle())==null?0:Z.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
dEM.idomCompat=!0;var C2l=_.O(function(h){var E=_.hf("notification-multi-action-renderer");_.m1(function(){requestAnimationFrame(function(){_.E$(E.value)})});
var g={},Z={},M={};return _.R("notification-multi-action-renderer",{class:_.CO("ytNotificationMultiActionRendererHost",(g.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var W;return(W=h.useLegacyShelfStyle)==null?void 0:W.call(h)},g)),
el:E},_.R("span",{"aria-live":"polite",class:_.CO("ytNotificationMultiActionRendererTextContainer",(Z.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var W;return(W=h.useLegacyShelfStyle)==null?void 0:W.call(h)},Z))},_.R(_.dK,{text:function(){return h.data().responseText}})),_.R("div",{class:_.CO("ytNotificationMultiActionRendererButtonContainer",(M.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var W;
return(W=h.useLegacyShelfStyle)==null?void 0:W.call(h)},M))},_.R(_.Sv,{data:function(){var W;
return(W=h.data().buttons)==null?void 0:W.map(function(z){if(z=z.buttonRenderer){var c,I=Object,B=I.assign,U=(c=z.icon)==null?void 0:c.iconType;c=(c=z.command||z.serviceEndpoint||z.navigationEndpoint)?{innertubeCommand:c}:void 0;z={buttonViewModel:B.call(I,{},{iconName:U,onTap:c,trackingParams:z.trackingParams,titleFormatted:z.text?_.X8(z.text):void 0},C9O(z))}}else z=void 0;return z}).filter(function(z){return!!z})}},{buttonViewModel:function(W,z){return _.R("div",null,_.R(_.$l,{data:W.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var c;return((c=h.useModernStyles)==null?0:c.call(h))?{type:z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var Jdf=_.O(function(h){var E=_.hf("notification-text-renderer");_.m1(function(){requestAnimationFrame(function(){_.E$(E.value)})});
return _.R("notification-text-renderer",{el:E,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.R(_.dK,{text:function(){return h.data().successResponseText}}))},"Ua");_.lB=_.O(function(h){var E=_.qI(o0M,function(){var Z;return JEu((Z=h.contentId)==null?void 0:Z.call(h))}),g=function(){var Z;
return _.e((Z=E())==null?void 0:Z.command,_.Or)};
return _.R(_.P,{cond:function(){var Z;if(!(Z=g())){var M;Z=_.e((M=E())==null?void 0:M.command,gDl)}return Z},
then:function(){return _.R(_.P,{cond:g,then:function(){var Z={};return _.R("div",{class:_.CO("ytDismissibleItemReplacedContent",function(){var M;return eyx((M=h.aspectRatio)==null?void 0:M.call(h))})},_.R("div",{class:_.CO((Z.ytDismissibleItemAspectRatioContainer=function(){var M;
return((M=h.aspectRatio)==null?void 0:M.call(h))!==void 0},Z))},_.R(_.Sv,{data:function(){var M;
return(M=g())==null?void 0:M.item}},{notificationMultiActionRenderer:function(M){return _.R(C2l,{data:M.data,
useModernStyles:h.useModernStyle,useLegacyShelfStyle:h.useLegacyShelfStyle})},
notificationTextRenderer:Jdf})))}})},
else:h.children})},"Va");_.eiD=_.O(function(h){var E=h.data;var g=h.customCommandResolver;h=_.zT(_.c6({visibilityCallback:function(W){var z,c=(z=E().interaction)==null?void 0:z.onFirstVisible;W&&c&&_.Tl(c)},
showOption:_.Nq}));var Z=function(){var W;return((W=E().interaction)==null?0:W.onTap)?function(z){var c;yGW(z,(c=E().interaction)==null?void 0:c.onTap,g)}:void 0},M=function(){var W,z=E(),c=Z(),I=(W=_.e(E().rendererContext,_.te))==null?void 0:W.label;
a:switch(z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":W=1;break a;default:W=0}return{size:NdZ(z.size),type:W,onTap:c,accessibilityText:I}};
return _.R("ad-avatar-view-model",{class:function(){var W;return((W=E().interaction)==null?0:W.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:h},_.R(_.P,{cond:function(){return E().image},
then:function(W){return _.R(poA,{data:M,image:W})}}))},"Wa");_.rS=_.O(function(h){var E=_.au(h,{hasDot:!1,usedInMasthead:!1}),g=Object.assign({},E),Z=E.data,M=E.hasDot;h=E.customCommandResolver;var W=E.usedInMasthead,z=(delete g.data,delete g.hasDot,delete g.customCommandResolver,delete g.usedInMasthead,g);E=function(){return Z().style};
E!==void 0&&E!==null||_.Fn(Error("Nh"));h=_.VS(function(){return Z().interaction},h);
return _.R("ad-badge-view-model",{class:_.CO(function(){var c;return((c=Z().interaction)==null?0:c.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var c=z.adRenderingContextType(),I=W();
Z();return c!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||I?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.zT(h)},_.R(_.cP,{data:function(){var c;Z();return{type:2,text:(c=Z().label)==null?void 0:c.content,adsIncludeDot:M(),isOverlay:Z().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var qwD;_.mt=_.O(function(h){var E=h.data;var g=h.customCommandResolver;var Z=h.adRenderingContextType;return _.R("ad-details-line-view-model",{class:function(){var M;return((M=E().interaction)==null?0:M.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(M){var W,z=(W=E().interaction)==null?void 0:W.onFirstVisible;M&&z&&_.Tl(z)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g))},_.R(_.P,{cond:function(){return E().style},
then:function(M){return _.R(_.SX,{each:function(){var W;return((W=E())==null?void 0:W.attributes)||[]},
keyBy:"INDEX"},function(W){return _.R(qwD,{attribute:W,style:M,adRenderingContextType:function(){return Z()}})})}}))},"Ya");
qwD=_.O(function(h){var E=h.attribute;var g=h.style;var Z=h.adRenderingContextType;return _.R(_.P,{cond:function(){return E().text},
then:function(M){return _.R(_.dK,{text:M,className:function(){var W=Z();g();return W==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var fuM=_.O(function(h){var E=h.data;var g=h.typographyBump;var Z=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
h={};return _.R(_.zt,null,_.R("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.R(_.dK,{text:function(){return E().headline},
className:_.CO("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return Z==null?void 0:Z()},h.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(g==null?void 0:g())&&!(Z==null?0:Z())},h)),
linkInheritColor:!0}),_.R(_.P,{cond:function(){return E().description},
then:function(M){var W={};return _.R(_.dK,{text:M,className:_.CO("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return Z==null?void 0:Z()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(g==null?void 0:g())&&!(Z==null?0:Z())},W)),
linkInheritColor:!0})}}),_.R(_.P,{cond:function(){return E().secondaryDescription},
then:function(M){var W={};return _.R(_.dK,{text:M,className:_.CO("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return g==null?void 0:g()},W)),
linkInheritColor:!0})}}),_.R("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.R(_.P,{cond:function(){return E().adAvatar},
then:function(){return _.R("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.R(_.Sv,{data:function(){return E().adAvatar}},{adAvatarViewModel:_.eiD}))}}),_.R(_.Sv,{data:function(){return E().adBadge}},{adBadgeViewModel:function(M){return _.R(_.rS,{data:M.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.R(_.Sv,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.R(_.mt,{data:M.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}}))),_.R("div",{class:function(){return Z()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
buttonOverrides:function(){a:switch(E().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var W="S";break a;default:W="M"}return{size:W}}})}})))},"$a"),NTD=_.O(function(h){var E=h.data;
var g=h.noBottomMargin;var Z=h.useVideoLockupTopPadding;var M=h.typographyBump;h={};h=_.CO("ytwFeedAdMetadataViewModelHostMetadata",(h.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return g==null?void 0:g()},h.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},h));
var W=function(){return E().adBadge};
W!==void 0&&W!==null||_.Fn(Error("Oh"));W={};var z={};return _.R(_.zt,null,_.R(_.P,{cond:function(){return E().adAvatar},
then:function(){return _.R("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.R(_.Sv,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(c){return _.R(_.eiD,{data:c.data})}}))}}),_.R("div",{class:h},_.R("div",{class:_.CO("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return M==null?void 0:M()},W.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(M==
null?void 0:M())&&_.J("web_enable_typography_bump_v2")},W))},_.R(_.dK,{text:function(){return E().headline},
linkInheritColor:!0})),_.R(_.P,{cond:function(){return E().description},
then:function(c){return _.R(_.dK,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.R("div",{class:function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.J("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.R(_.Sv,{data:function(){return E().adBadge}},
{adBadgeViewModel:function(c){return _.R(_.rS,{data:c.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.R(_.Sv,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(c){return _.R(_.mt,{data:c.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}})),_.R(_.P,{cond:function(){return E().secondaryDescription},
then:function(c){return _.R(_.dK,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.R("div",{class:_.CO("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return Z==null?void 0:Z()},z))},_.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:_.$l})))},"ab"),v0=_.O(function(h){var E=h.data;
var g=h.noBottomMargin;var Z=h.listenToTapEvent;var M=h.setTouchEndHandler;var W=h.useVideoLockupTopPadding;var z=h.typographyBump;h=_.c6({visibilityCallback:function(L){var d,C=(d=E().interaction)==null?void 0:d.onFirstVisible;L&&C&&_.Tl(C)},
showOption:_.Nq});var c=_.VS(function(){return E().interaction},void 0,function(){return Z==null?void 0:Z()}),I=_.G(_.Bm(!1,void 0,"a2FSrb")),B=I.next().value,U=I.next().value;
I=_.J7(function(L){(M==null?0:M())&&!B()&&(L.currentTarget.click(),U(!0),setTimeout(function(){U(!1)},100));
return!1});
return _.R("feed-ad-metadata-view-model",{class:function(){var L;return((L=E().interaction)==null?0:L.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.zT(h,c),"on:touchend":I},_.R(_.DG,null,_.R(_.x3,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.R(fuM,{data:E,
typographyBump:z})}),_.R(_.x3,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.R(NTD,{data:E,
noBottomMargin:g,useVideoLockupTopPadding:W,typographyBump:z})})))},"bb");var tOM,SwC;tOM=_.AU.inlinePreviewEnabledSelector;_.H0=_.O(function(h){return _.R("yt-lockup-view-model",{class:_.CO(h.className)},_.R(_.lB,{contentId:function(){return h.data().contentId},
useModernStyle:!0,aspectRatio:function(){var E,g;return((E=h.containerType)==null?void 0:E.call(h))!==3?a2$(h.data().contentType,(g=h.force16By9ThumbnailAspectRatio)==null?void 0:g.call(h)):void 0}},function(){return _.R(SwC,Object.assign({},h))}))},"cb");
SwC=_.O(function(h){h=_.au(h,{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 E=h.data,g=h.containerLayoutConfig,Z=h.containerType,M=h.sizing,W=h.protectBackground,z=h.typographyBump,c=h.force16By9ThumbnailAspectRatio,I=h.thumbnailFixedWidth,B=h.thumbnailTargetWidth,U=h.lockupExperiments,L=h.elementsPerRow;
h=_.zT(_.n4(function(){var Ba;return(Ba=E())==null?void 0:Ba.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 d=_.VQ(tOM),C=_.GF().resolve(_.pl(kEn)),q=C?{}:void 0,w=function(){var Ba,$$,Ha;return(Ha=($$=_.e((Ba=E())==null?void 0:Ba.rendererContext,_.te))==null?void 0:$$.label)!=null?Ha:void 0},r=function(){var Ba=g==null?void 0:g(),$$;
if(Ba==null?0:Ba.containerType){var Ha=($$=E())==null?void 0:$$.contentType;$$=U();var zf=z(),eF=B(),Rm=W();Ba=Object.assign({},cE$(poN(Ba),Ma4(Ba.responsiveSize),zf,Ha,Ba.force16By9ThumbnailAspectRatio,eF,Rm,$$),{thumbnailFixedWidth:Ba.contentPreviewWidth})}else Ba=cE$(Z(),M(),z(),(Ha=E())==null?void 0:Ha.contentType,c(),B(),W(),U());return Ba};
C&&q&&C({enabled:function(){return d()},
itemPlaybackModel:function(){return E().itemPlayback},
thumbnailElRef:function(){return q.thumbnailElRef},
containerElRef:h,options:function(){var Ba,$$=(Ba=_.e(E().metadata,_.H6D))==null?void 0:Ba.endorsement;Ba=q.thumbnailOverlays||[];var Ha;!$$||((Ha=U())==null?0:Ha.onFocusEffect)||Ba.push($$);var zf,eF;return{thumbnail:q.thumbnail,thumbnailOverlays:Ba,accessibilityText:w(),thumbnailSize:q.thumbnailSize,enableRounding:r().isCollection,containPlayerWithinThumbnail:r().isCollection,trackingParams:(zf=_.e(E().rendererContext,_.xB))==null?void 0:(eF=zf.loggingDirectives)==null?void 0:eF.trackingParams}}});
var v=0;C=_.G(_.Bm(!1,void 0,"GH4i8d"));var H=C.next().value,u=C.next().value;C=_.G(_.Bm(!1,void 0,"hS52Ob"));var k=C.next().value,y=C.next().value;C=_.J7(function(){var Ba=d()&&E().itemPlayback;k()?(_.KP.cancelJob(v),v=_.KP.addJob(function(){u(!Ba)},8,32)):u(!Ba);
return!0});
var A=_.J7(function(){v&&(_.KP.cancelJob(v),v=0);u(!1)});
_.r9(function(){v&&(_.KP.cancelJob(v),v=0)});
var E4=f2x(function(){y(!0)}),iO=E4.touchFeedbackEvents,RW=E4.touchFeedbackOnPointerUp,NN=E4.touchFeedbackOnPointerDown;
E4=E4.touchFeedbackOnPointerLeave;var Cd={};return _.R(_.zt,null,_.R("div",{el:h,class:_.CO("yt-lockup-view-model",function(){a:{var Ba=r();if(Ba.isOverlay)Ba="yt-lockup-view-model--overlay";else switch(Ba.arrangement){case 1:Ba="yt-lockup-view-model--horizontal";break a;default:Ba="yt-lockup-view-model--vertical"}}return Ba},function(){a:{var Ba=r();
if(Ba.isOverlay)Ba="yt-lockup-view-model--overlay";else{switch(Ba.collectionStackNumber){case 1:Ba="yt-lockup-view-model--collection-stack-1";break a;case 2:Ba="yt-lockup-view-model--collection-stack-2";break a}Ba=void 0}}return Ba},function(){var Ba;
return _.d0u((Ba=E())==null?void 0:Ba.contentId)},(Cd["yt-lockup-view-model--card"]=function(){return r().isCard},Cd["yt-lockup-view-model--compact"]=function(){return r().isTiny||r().sizing!=="STANDARD"},Cd["yt-lockup-view-model--protect-background"]=W,Cd["yt-lockup-view-model--add-margins"]=function(){return r().addMarginForFullbleed},Cd["yt-lockup-view-model--centered"]=function(){return r().isCentered},Cd["yt-lockup-view-model--fullbleed"]=function(){return r().fullbleed},Cd["yt-lockup-view-model--single-column-grid"]=
function(){return L()===1&&Z()===2},Cd["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Ba;
return(Ba=U())==null?void 0:Ba.useRichGridLegacyMargin},Cd)),
"on:mousedown":NN,"on:mouseleave":A,"on:mouseup":RW,"on:mouseover":C,"on:touchstart":NN,"on:touchend":RW,"on:pointerleave":E4},_.R(_.lk,{command:function(){var Ba;return _.K4((Ba=E())==null?void 0:Ba.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return I()&&r().arrangement===1?"width: "+I():""}},_.R(_.Sv,{data:function(){var Ba;
return(Ba=E())==null?void 0:Ba.contentImage}},{thumbnailViewModel:function(Ba){return _.R(_.f0,{data:Ba.data,
aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:B,hovered:H,isClip:function(){var $$;return(($$=E())==null?void 0:$$.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:Y_$(q),lockupExperiments:function(){return U()}})},
collectionThumbnailViewModel:function(Ba){return _.R(p8D,{data:Ba.data,aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:B,doubleStack:function(){return r().collectionStackNumber===2},
hovered:H,playbackRef:Y_$(q)})},
decoratedAvatarViewModel:_.W0})),_.R("div",{class:"yt-lockup-view-model__metadata"},_.R(_.Sv,{data:function(){var Ba;return(Ba=E())==null?void 0:Ba.metadata}},{lockupMetadataViewModel:function(Ba){return _.R(dEM,{data:Ba.data,
lockupStyle:r,lockupCommand:function(){var $$;return _.K4(($$=E())==null?void 0:$$.rendererContext)},
lockupAccessibilityLabel:function(){return w()}})},
feedAdMetadataViewModel:function(Ba){return _.R(v0,{data:Ba.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:z})}}),_.R(_.Sv,{data:function(){var Ba;
return(Ba=E())==null?void 0:Ba.attachmentSlot}},{lockupAttachmentsViewModel:function(Ba){return _.R(iEm,{data:Ba.data,
lockupStyle:r})}})),_.R(_.rK,{model:function(){a:{switch(r().collectionStackNumber){case 1:var Ba=8;
break a;case 2:Ba=12;break a}Ba=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Ba}},
pointerDownEvent:iO.pointerDownEvent,pointerUpEvent:iO.pointerUpEvent,pointerLeaveEvent:iO.pointerLeaveEvent})),_.R(_.Sv,{data:function(){var Ba;return(Ba=E())==null?void 0:Ba.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Ba){return _.R(iEm,{data:Ba.data,
lockupStyle:r})}}))},"db");
_.H0.idomCompat=!0;_.I9(_.H0,"yt-lockup-view-model",{props:{data:_.C6,containerLayoutConfig:_.C6,containerType:_.C6,sizing:_.C6,protectBackground:_.C6,typographyBump:_.C6,thumbnailFixedWidth:_.C6,thumbnailTargetWidth:_.C6,force16By9ThumbnailAspectRatio:_.C6,className:_.C6,lockupExperiments:_.C6,elementsPerRow:_.C6}});var wo$,xED=_.O(function(h){var E=_.au(h,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),g=E.text,Z=E.alwaysShowTruncationText;h=E.truncationText;var M=E.onTextClick,W=E.maxLines,z=E.disableTextMask,c=E.textStyle,I=E.accessibilityLabel,B=E.textSize,U=E.alwaysTruncateAtMaxLines,L=E.expandOnClick;E=_.G(_.Bm(!1,void 0,"EzA1q"));var d=E.next().value,C=E.next().value;E=_.J7(function(){L()&&C(!d());M==null||M()});
var q=function(){a:switch(B()){case "medium":var A=2;break a;case "large":A=2.2;break a;default:A=1.8}return A},w=rEZ(g,function(){return d()?Infinity:W()},q,z,U,d),r=w.isTruncated;
g=w.displayText;U=w.contentRef;var v=w.hiddenRef,H=w.placeholderTruncationTextRef,u=w.hiddenTruncationTextRef;w=w.truncationTextRef;var k={},y={};return _.R("truncated-text",{class:_.CO((k["yt-truncated-text"]=!0,k["yt-truncated-text--overlay"]=function(){return c()==="overlay"},k["yt-truncated-text--medium-text"]=function(){return B()==="medium"},k["yt-truncated-text--large-text"]=function(){return B()==="large"},k["yt-truncated-text--primary-text"]=function(){return c()==="primary-text"},k)),
"on:click":E,style:function(){return"line-height: "+q()+"rem;"}},_.R("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:U,style:function(){return d()?"":"max-height: "+W()*q()+"rem;"}},_.R(_.dK,{text:g}),_.R("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:H,style:function(){return"line-height: "+q()+"rem;"}},_.R(_.dK,{text:h}))),_.R("truncated-text-content",{class:_.CO("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:v,style:function(){return d()?"":"max-height: "+W()*q()+"rem;"},
"aria-hidden":"true"},_.R(_.dK,{text:g}),_.R("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:u,style:function(){return"line-height: "+q()+"rem;"}},_.R(_.dK,{text:h}))),_.R("button",{"aria-label":I,
class:_.CO((y["yt-truncated-text__absolute-button"]=function(){return!z()},y["yt-truncated-text__bottom-button"]=function(){return z()},y["yt-truncated-text--hidden"]=function(){return!(!d()&&(Z!=null&&Z()||r()))},y)),
el:w,style:function(){return"line-height: "+q()+"rem;"}},_.R(_.dK,{text:h})))},"eb");
xED.idomCompat={callbacks:{onTextClick:!0}};var lul=_.O(function(h){var E=h.data;h=h.className;var g=_.Cw(function(){return vk4(E())},void 0,"uDhDke"),Z=_.R(_.zt,null,_.R(_.P,{cond:function(){return E().heroText||E().image},
then:function(){return _.R(w8m,{data:E})}}),_.R(DEl,{data:E,
sizeSmall:function(){return E().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.R("yt-video-attribute-view-model",{class:h},_.R("div",{class:function(){var M=E();a:switch(M.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var W="yt-video-attribute-view-model--vertical";break a;default:W="yt-video-attribute-view-model--horizontal"}a:switch(M.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var z="yt-video-attribute-view-model--image-small";break a;default:z="yt-video-attribute-view-model--image-large"}a:switch(M.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var c=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":c="yt-video-attribute-view-model--image-avatar";break a;default:c=""}a:switch(M.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var I="yt-video-attribute-view-model--metadata-header";break a;default:I=""}a:switch(M.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var B="yt-video-attribute-view-model--container-card";break a;default:B=""}return["yt-video-attribute-view-model",W,z,
c,I,B,vk4(M)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.fO({"background-color":function(){var M=E();if(M.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var W="";else{W=M.lightColorPalette;M=M.darkColorPalette;var z,c=((z=_.GF().resolve(_.pl(_.gu)))==null?0:z())&&M?M:W;W=(W=c==null?void 0:c.section2Color)?_.uU(W):""}return W}})},_.R(_.P,{cond:g,
then:function(){return _.R(_.lk,{className:"yt-video-attribute-view-model__content-container",command:g,role:"group",ariaLabel:function(){return E().title}},Z)},
else:function(){return _.R("div",{class:"yt-video-attribute-view-model__content-container"},Z)}})))},"fb");
lul.idomCompat=!0;var w8m=_.O(function(h){var E=h.data;var g,Z=(g=_.GF().resolve(_.pl(_.gu)))==null?void 0:g(),M=function(){return Z&&E().darkThemeImage?E().darkThemeImage:E().image},W=_.Cw(function(){return HaO(E())},void 0,"UDqj0b");
return _.R("div",{class:"yt-video-attribute-view-model__hero-section"},_.R(_.DG,null,_.R(_.x3,{when:M},function(){return _.R(_.pO,{data:function(){return M()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.R(_.x3,{when:function(){return E().heroText}},function(){return _.R("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.R("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return E().heroText}))})),_.R(_.P,{cond:function(){return E().overflowMenuOnTap},
then:function(){return _.R("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.R(_.H4,{data:W,iconName:"MORE_VERT"}))}}))},"gb");
w8m.idomCompat=!0;var DEl=_.O(function(h){var E=h.data;h=h.sizeSmall;var g=function(){return E().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},Z=_.Cw(function(){return AW(_.F8({innertubeCommand:vk4(E())}))?"link":vk4(E())?"button":"group"},void 0,"e2MmYe"),M={};
return _.R("div",{class:_.CO("yt-video-attribute-view-model__metadata",(M["yt-video-attribute-view-model--small-font"]=h,M)),role:Z},_.R("h1",{class:"yt-video-attribute-view-model__title"},function(){return E().title}),_.R(_.P,{cond:function(){return E().subtitle},
then:function(){return _.R("h4",{class:"yt-video-attribute-view-model__subtitle"},_.R(_.P,{cond:g,then:function(){return _.R(xED,{text:function(){return m0V(E().subtitle)},
truncationText:function(){return m0V(E().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.R("span",null,function(){return E().subtitle})}}))}}),_.R(_.P,{cond:function(){return E().secondarySubtitle},
then:function(W){return _.R("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.R(_.dK,{text:function(){var z=W();if(z!=null&&z.attachmentRuns){for(var c=[],I=_.G(z.attachmentRuns),B=I.next();!B.done;B=I.next())B=B.value,B.element&&c.push(Object.assign({},B,{element:Object.assign({},B.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));z=Object.assign({},z,{attachmentRuns:c})}return z}}))}}),_.R(_.Sv,
{data:function(){return E().buttonViewModel}},{buttonViewModel:function(W){return _.R(_.$l,{data:W.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
DEl.idomCompat=!0;_.I9(lul,"yt-video-attribute-view-model",{props:{data:_.C6,className:_.C6}});var $z=function(){var h=_.D.apply(this,arguments)||this;h.useHighlightStyling=_.J("web_enable_deeper_metadata_highlight_styling");h.isSearch=!1;h.JSC$15156_lastScrollContainerWidth=NaN;h.pageLoadingFromNavigation=!1;h.currentIndex=0;h.supportComponentResize=!1;return h};
_.f($z,_.D);_.p=$z.prototype;
_.p.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",mediaUpsellRenderer:"ytd-media-upsell-renderer",
infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},"data.header":{id:"header",
mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.qm(this,this.onPageChange))};
_.p.detached=function(){document.removeEventListener("yt-page-type-changed",_.qm(this,this.onPageChange))};
_.p.getItemsPath=function(){return"data.cards"};
_.p.onIronResize=function(){this.updateListStyles()};
_.p.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var h;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(h=this.data)==null?void 0:h.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.J("problem_walkthrough_sd")&&!!this.centerItems};
_.p.computeCardListStyle=function(h){return h||null};
_.p.computeEmpty=function(h){return!this.get("cards.length",h)};
_.p.computeThumbnailStyle=function(h){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",h)||null};
_.p.computeHasSubtitle=function(h){return!!this.get("header.richListHeaderRenderer.subtitle",h)};
_.p.computeInitialCountNumber=function(h){return this.hasSquareMiniApp&&h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.p.computeUseFloorScrolling=function(h){return h==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.p.computeHasGameCard=function(h){return(h=this.get("cards",h))?h.some(function(E){return E.gameCardRenderer}):!1};
_.p.computeCenterHeaderTitle=function(h){return!(h==null||!h.centerHeaderTitle)};
_.p.computeHasPortraitMiniApp=function(h){return(h=h==null?void 0:h.cards)?h.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.p.computeHasSquareMiniApp=function(h){return(h=h==null?void 0:h.cards)?h.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.p.computeHasSkinnyWidthPortraitMiniApp=function(h){return(h=h==null?void 0:h.cards)?h.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.width===135}):!1};
_.p.computeCenterItems=function(h){return!!h};
_.p.computeHasInfoPanel=function(h){var E;return h==null?void 0:(E=h.cards)==null?void 0:E.some(function(g){return g.infoPanelContentRenderer})};
_.p.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.p.getItemByIndex=function(h){var E=this.items.children;return E&&E.length>h?E[h]:void 0};
_.p.onPageChange=function(){var h=this;this.pageLoadingFromNavigation=!0;_.KP.addJob(function(){h.pageLoadingFromNavigation=!1;_.U7(h.hostElement,"yt-terminate-video-preview-action")},8)};
_.p.updateListStyles=function(){if(_.J("problem_walkthrough_sd")&&this.JSC$15156_scrollContainer!==void 0){var h=this.JSC$15156_scrollContainer.clientWidth;h!==this.JSC$15156_lastScrollContainerWidth&&(this.JSC$15156_lastScrollContainerWidth=h,_.Ja(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(h*.8,415)+"px"}),_.Ra(this.hostElement,"iron-resize"))}};
_.ze.Object.defineProperties($z.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.J("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.cards)==null?0:(g=E[0])==null?0:g.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.cards)==null?0:(g=E[0])==null?0:g.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return _.J("enable_desktop_amsterdam_info_panels")&&!!((h=this.data)==null?0:(E=h.cards)==null?0:(g=E[0])==null?0:g.infoPanelContentRenderer)}}});
$z.prototype.dataChanged=$z.prototype.dataChanged;$z.prototype.onIronResize=$z.prototype.onIronResize;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$z.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$z.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],$z.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.t(_.iL),_.V("design:type",Object)],$z.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$z.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$z.prototype,"useCustomColors",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"useHighlightStyling",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.V("design:type",Object)],$z.prototype,"cardListStyle",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.V("design:type",Boolean)],$z.prototype,"empty",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasSubtitle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.V("design:type",Boolean)],$z.prototype,"thumbnailStyle",void 0);_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasGameCard",void 0);_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.V("design:type",Boolean)],$z.prototype,"centerHeaderTitle",void 0);
_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasPortraitMiniApp",void 0);_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasSquareMiniApp",void 0);_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.Y([_.x({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.V("design:type",Boolean)],$z.prototype,"hasInfoPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$z.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],$z.prototype,"inlineStructuredDescription",void 0);_.Y([_.Sg("#scroll-container"),_.V("design:type",HTMLDivElement)],$z.prototype,"JSC$15156_scrollContainer",void 0);
_.Y([_.x({computed:"computeInitialCountNumber(data.style.type)"}),_.V("design:type",Number)],$z.prototype,"initialCount",void 0);_.Y([_.x({computed:"computeUseFloorScrolling(data.style.type)"}),_.V("design:type",Boolean)],$z.prototype,"useFloorScrolling",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.V("design:type",Boolean)],$z.prototype,"centerItems",void 0);_.Y([_.x(),_.V("design:type",Object)],$z.prototype,"pageLoadingFromNavigation",void 0);
_.Y([_.x(),_.V("design:type",Object)],$z.prototype,"currentIndex",void 0);_.Y([_.x(),_.V("design:type",Number)],$z.prototype,"scrollCount",void 0);_.Y([_.x(),_.V("design:type",Object)],$z.prototype,"supportComponentResize",void 0);_.Y([_.Sg("#items"),_.V("design:type",HTMLDivElement)],$z.prototype,"items",void 0);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$z.prototype,"onIronResize",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$z.prototype,"dataChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.S("inlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$z.prototype,"hideNavigationButton",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$z.prototype,"modernChapters",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$z.prototype,"hasVideoAttributeViewModels",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$z.prototype,"modernInfoPanels",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],$z);
_.X($z,"ytd-horizontal-card-list-renderer",function(){if(Ndf!==void 0)return Ndf;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Ndf=h},{mode:_.UQ("kevlar_poly_si_batch_j072")?1:2});var rdB=_.O(function(h){var E=h.data;var g={};return _.R("video-summary-content-view-model",{class:_.CO("videoSummaryContentViewModelHost",h.className,(g.videoSummaryContentViewModelHostIsSearch=h.isSearch,g))},_.R(_.SX,{each:function(){var Z=[],M=E().paragraphs;if(M==null||!M.length)return[];for(var W=0;W<M.length;W++){var z=_.e(M[W],KdM),c=void 0;W>0&&(c=_.e(M[W-1],KdM));c&&!!c.marker===!!z.marker?Z[Z.length-1].paragraphs.push(z):Z.push({isList:!!z.marker,paragraphs:[z]})}return Z},
keyBy:"INDEX"},function(Z){return _.R(_.P,{cond:function(){return Z().isList},
then:function(){return _.R("ul",{class:"videoSummaryContentViewModelList"},_.R(_.SX,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(M){return _.R("li",{class:"videoSummaryContentViewModelListItem"},_.R(_.dK,{text:function(){return M().text}}))}))},
else:function(){return _.R(_.SX,{each:function(){return Z().paragraphs},
keyBy:"INDEX"},function(M){return _.R("p",{class:"videoSummaryContentViewModelParagraph"},_.R(_.dK,{text:function(){return M().text}}))})}})}),_.R(_.P,{cond:function(){return!!_.e(E().likeButtonViewModel,_.EU)&&!!_.e(E().dislikeButtonViewModel,_.hm)},
then:function(){return _.R("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.R("div",{class:"videoSummaryContentViewModelLikeButton"},_.R(_.zj,{data:function(){return _.e(E().likeButtonViewModel,_.EU)},
disableIconAnimation:!0})),_.R(_.Gj,{data:function(){return _.e(E().dislikeButtonViewModel,_.hm)}}))}}))},"ib");
rdB.idomCompat=!0;_.I9(rdB,"video-summary-content-view-model",{props:{data:_.C6,isSearch:_.C6,className:_.C6}});var K0=function(){var h=_.D.apply(this,arguments)||this;var E,g;h.isExpanded=(g=(E=h.data)==null?void 0:E.isExpanded)!=null?g:!1;h.disableExpand=!1;h.showProminentLabel=!1;h.showRightSideLabel=!0;h.toggleExpandableContent=function(Z){h.disableExpand||(Z.stopPropagation(),_.W3(_.Gw(Z),h.hostElement,["info","expanded-subtitle"])||(h.isExpanded=!h.isExpanded,h.ytRendererBehavior.logExplicitClick(h.data),h.JSC$15167_cardList&&!_.J("expandable_metadata_a11y_fix_ks")&&_.pQ(h,function(){_.h1(h.hostElement)})))};
h.useSquareThumbnail=!1;h.contentHiddenWithDisplayNone=_.J("web_expandable_metadata_content_hidden_with_display_none");h.startX=0;return h};
_.f(K0,_.D);_.p=K0.prototype;_.p.computeUseSquareThumbnail=function(){var h;return(h=this.data)==null?void 0:h.useSquareThumbnail};
_.p.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.p.dataChanged=function(){if(this.data){var h,E;this.isExpanded=(E=(h=this.data)==null?void 0:h.isExpanded)!=null?E:!1;var g,Z,M,W;if(h=this.isDarkTheme()?(g=this.data)==null?void 0:(Z=g.colorData)==null?void 0:Z.darkColorPalette:(M=this.data)==null?void 0:(W=M.colorData)==null?void 0:W.lightColorPalette){var z,c;if((z=this.data)==null?0:(c=z.colorData)==null?0:c.vibrantColorPalette)h.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.v$(this.hostElement,h)}}};
_.p.isExpandedChanged=function(){this.isExpanded&&this.JSC$15167_cardList&&_.Ra(this.JSC$15167_cardList,"iron-resize")};
_.p.computeIsExpanded=function(h){return!!h.isExpanded};
_.p.computeShowProminentLabel=function(h,E){var g;return!!(h==null?0:(g=h.header)==null?0:g.showLeadingCollapsedLabel)&&!E};
_.p.computeShowRightSideLabel=function(h,E){var g;return!(h==null?0:(g=h.header)==null?0:g.showLeadingCollapsedLabel)&&!E};
_.p.captureContentClick=function(h){if(!this.disableExpand)if(_.J("expandable_metadata_fix_killswitch")){var E=h.target;_.DZm(E,"ytd-macro-markers-list-item-renderer")||h.stopPropagation();(E==null?void 0:E.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.W3(_.Gw(h),this.hostElement,["items"])||_.MI(_.Gw(h),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.p.timestampClick=function(h){h.stopPropagation();var E,g;(h=(E=this.data)==null?void 0:(g=E.header)==null?void 0:g.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(h)};
_.p.onDown=function(h){h.stopPropagation();this.startX=h.detail?h.detail.x:0};
_.p.onUp=function(h){this.skipKeyInteraction(h)&&h.stopPropagation()};
_.p.skipKeyInteraction=function(h){var E=h.target;if((E==null?void 0:E.id)==="scroll-container"||(E==null?void 0:E.id)==="items"||h.detail&&h.detail.x!==this.startX)return!0;h=_.Gw(h);h=_.G(h);for(E=h.next();!E.done;E=h.next()){E=E.value;if(E===this.hostElement)break;if(E.hasAttribute&&E.hasAttribute("skip-key-interaction"))return!0}return!1};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ze.Object.defineProperties(K0.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var h;return!!_.e((h=this.data)==null?void 0:h.expandedContent,$OM)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var h;return!!_.e((h=this.data)==null?void 0:h.expandedContent,_.$Jn)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.useCustomColors)&&!((E=this.data)==null||!E.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!((h=this.data)==null?0:(E=h.header)==null?0:E.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!((h=this.data)==null?0:(E=h.header)==null?0:E.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!((h=this.data)==null?0:(E=h.header)==null?0:E.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.J("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
K0.prototype.onUp=K0.prototype.onUp;K0.prototype.onDown=K0.prototype.onDown;K0.prototype.isExpandedChanged=K0.prototype.isExpandedChanged;K0.prototype.dataChanged=K0.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],K0.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],K0.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],K0.prototype,"isExpanded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],K0.prototype,"disableExpand",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],K0.prototype,"isSearch",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],K0.prototype,"isWatch",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.V("design:type",Object)],K0.prototype,"showProminentLabel",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.V("design:type",Object)],K0.prototype,"showRightSideLabel",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"hasVideoSummary",null);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"hasLockupViewModel",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data","isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"useCustomColors",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"showInfoButton",null);_.Y([_.S("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"showTimestamp",null);_.Y([_.S("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"showExpandedSubtitle",null);
_.Y([_.S("data","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"showThumbnail",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],K0.prototype,"useVppShoppingDestinationStyle",null);_.Y([_.x(),_.V("design:type",Object)],K0.prototype,"toggleExpandableContent",void 0);_.Y([_.Sg("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],K0.prototype,"JSC$15167_cardList",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.V("design:type",Object)],K0.prototype,"useSquareThumbnail",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],K0.prototype,"contentHiddenWithDisplayNone",void 0);_.Y([_.S("isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],K0.prototype,"contentHidden",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K0.prototype,"dataChanged",null);_.Y([_.Nm("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K0.prototype,"isExpandedChanged",null);_.Y([_.f3("down"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],K0.prototype,"onDown",null);
_.Y([_.f3("up"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],K0.prototype,"onUp",null);_.Y([_.K({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],K0);
_.X(K0,"ytd-expandable-metadata-renderer",function(){if(mnC!==void 0)return mnC;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mnC=h},{mode:1});var mED,vok=function(){if(mED!==void 0)return mED;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return mED=h};_.I9(_.p0,"yt-avatar-stack-view-model",{props:{className:_.C6,data:_.C6,overrides:_.C6,isOverlay:_.C6,useMediumText:_.C6,decorations:_.C6,hideAvatar:_.C6}});_.$P("itemSectionRenderer","videoRenderer","ytd-video-renderer");var OV=function(){var h=_.D.apply(this,arguments)||this;h.disableExpand=!1;h.shouldShowChannelInfo=!1;h.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return h};
_.f(OV,_.D);_.p=OV.prototype;_.p.computeUseSearchUi=function(){var h,E;return this.isSearch||((h=this.data)==null?void 0:(E=h.style)==null?void 0:E.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.computeUseThreeLineTitle=function(){var h;return((h=this.data)==null?void 0:h.maxTitleLines)===3};
_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.J("polymer_video_renderer_defer_menu")&&!f5l?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.p.attached=function(){_.jg(this.hostElement,"blue-links",_.J("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.dD(_.UB(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var h=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;h&&((E=_.e(h.commandMetadata,_.Vi))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(h);this.updateInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15172_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.JSC$15172_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$15172_inlinePreviewHoverListener)==null||hN(h)};
_.p.onTextWrapperClick=function(h){var E,g,Z=this.hideTranslation?(E=this.data)==null?void 0:E.untranslatedNavigationEndpoint:(g=this.data)==null?void 0:g.navigationEndpoint;E=_.W3(_.Gw(h),this.hostElement,["expandable-metadata"]);!Z||E&&!_.J("expandable_metadata_fix_killswitch")||_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Ra(this.hostElement,"yt-navigate",{endpoint:Z})};
_.p.computeThumbnailWidth=function(h,E,g,Z,M){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:Z?M==="MASSIVE"?600:M==="BIG"?500:M==="MEDIUM"?450:420:g?360:E?128:h?210:246};
_.p.computeUseBiggerThumbs=function(h){return h&&_.J("enable_desktop_search_bigger_thumbs")};
_.p.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.p.computeVideoStyle=function(){if(_.J("enable_video_style")){var h,E;return(h=this.data)==null?void 0:(E=h.style)==null?void 0:E.value}};
_.p.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.p.handleHideItemSectionVideosByIdCommand=function(h){var E;h=(E=_.e(h,pUk))==null?void 0:E.videoId;this.data&&this.data.videoId===h&&(this.isHidden=!0)};
_.p.getMetadataSnippetContainerClass=function(h){return h?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.p.computeTitleText=function(h,E,g){return h?g:E};
_.p.computeDescriptionSnippet=function(h,E,g){return h?g:E};
_.p.computeSnippetText=function(h,E,g){return h?g:E};
_.p.computeNavigationEndpoint=function(h,E){return h?E==null?void 0:E.untranslatedNavigationEndpoint:E==null?void 0:E.navigationEndpoint};
_.p.hideInlineTitleIcon=function(h,E){return h||!E};
_.ze.Object.defineProperties(OV.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 h;return(h=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?h:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!(this==null?0:(h=this.data)==null?0:(E=h.channelThumbnailSupportedRenderers)==null?0:(g=E.channelThumbnailWithLinkRenderer)==null?0:g.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var h;return!!_.e((h=this.data)==null?void 0:h.avatar,KaM)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$15172_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ze.Object.defineProperties(OV,{template:{configurable:!0,enumerable:!0,get:function(){return vok()}}});
OV.prototype.dataChanged=OV.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],OV.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],OV.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.LV),_.V("design:type",Object)],OV.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],OV.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],OV.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OV.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OV.prototype,"isBackstageVideo",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OV.prototype,"isPostCompactVideo",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],OV.prototype,"isHistory",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OV.prototype,"isRichGridVideoPost",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OV.prototype,"isHidden",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],OV.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.V("design:type",Boolean)],OV.prototype,"useSearchUi",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.V("design:type",Boolean)],OV.prototype,"useThreeLineTitle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.V("design:type",Boolean)],OV.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.V("design:type",Object)],OV.prototype,"videoStyle",void 0);_.Y([_.x({computed:"computeDisableExpand(videoStyle)"}),_.V("design:type",Object)],OV.prototype,"disableExpand",void 0);
_.Y([_.x({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.V("design:type",Object)],OV.prototype,"shouldShowChannelInfo",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],OV.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.V("design:type",String)],OV.prototype,"inlineTitleIcon",void 0);_.Y([_.x({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.V("design:type",Object)],OV.prototype,"computedNavigationEndpoint",void 0);_.Y([_.x({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(h,E){return _.Jj(h.entities,"searchVideoResultEntity",E)}}),
_.V("design:type",Object)],OV.prototype,"searchVideoResultEntity",void 0);_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],OV.prototype,"thumbnail",void 0);_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],OV.prototype,"JSC$15172_dismissibleMedia",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OV.prototype,"dataChanged",null);
_.Y([_.S("searchVideoResultEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OV.prototype,"hideTranslation",null);_.Y([_.S("searchVideoResultEntity"),_.V("design:type",Array),_.V("design:paramtypes",[])],OV.prototype,"hiddenBadgeGroups",null);_.Y([_.S("data","useAvatar"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OV.prototype,"shouldShowChannelThumbnail",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OV.prototype,"useAvatar",null);
_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OV.prototype,"isHovered",null);_.Y([_.K({is:"ytd-video-renderer",disableElementRegistration:!0})],OV);_.X(OV,"ytd-video-renderer",function(){return vok()},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var n0=function(){var h=_.D.apply(this,arguments)||this;h.editDialog=null;h.roundedContainer=!0;h.isLoading=!1;h.isRichGrid=!1;h.isRichGridRepost=!1;h.reduceSidePaddings=_.J("reduce_side_paddings_in_shelf");h.JSC$15179_spinnerEl=null;return h};
_.f(n0,_.D);_.p=n0.prototype;
_.p.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){var h=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var E=0,g=this.data.actions&&this.data.actions.length;E<g;E++)this.openEditDialog(_.e(this.data.actions[E],FsC));if((E=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(E=this.get("buttonRenderer.hint.hintRenderer.hintId",E))&&E.startsWith("share-post-hint")){var Z=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(Z){_.DI.getInstance();var M=lc(_.MR(_.NH("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.KP.addLowPriorityJob(function(){_.jj(h.hostElement,M,Z)})}}}};
_.p.updatePoll=function(h){h>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15179_spinnerEl||(this.JSC$15179_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.UB(this.hostElement).appendChild(this.JSC$15179_spinnerEl));this.JSC$15179_spinnerEl&&(this.JSC$15179_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(h){var E=this.get("updateCommentDialogEndpoint",h.detail.endpoint);E&&(this.openEditDialog(E),h.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(h,E){E&&this.updatePoll(E.selectedChoiceIndex)};
_.p.onYtServiceRequestSent=function(h,E){var g;E.endpoint&&(_.e(E.endpoint,AmD)||_.e(E.endpoint,FwF)&&((g=_.e(E.endpoint,FwF))==null||!g.clientActions))&&(this.isLoading=!0);if(E.actions)for(h=0;h<E.actions.length;h++)g=E.actions[h],_.e(g,Yc)&&(g=this.get("updateBackstagePollAction.selectedChoiceIndex",g),g==void 0&&(g=-1),this.updatePoll(g))};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(h){h&&h.dialog&&(this.editDialog=h.dialog,h=this.editDialogEl.firstElementChild)&&(h.focus(),h.openDialog&&h.openDialog())};
_.p.computeIsPostHidden=function(h,E){return!!h||E};
_.p.computeSurfaceType=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeUsesCompactLockup=function(h){return h==="BACKSTAGE_SURFACE_TYPE_HOME"||h==="BACKSTAGE_SURFACE_TYPE_SEARCH"||h==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||h==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||h==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||h==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeShowWithoutToolbar=function(h){return!h.actionButtons&&!h.actionMenu};
_.p.computePostAttachment=function(h){if(h.backstageAttachment){if(_.e(h.backstageAttachment,tif))return"poll";if(_.e(h.backstageAttachment,iCB))return"quiz";if(_.e(h.backstageAttachment,_.ax))return"video";if(_.e(h.backstageAttachment,oTk))return"uploaded-videos";if(_.e(h.backstageAttachment,LsC))return h.contentText?"image":"image-only";if(_.e(h.backstageAttachment,GhA))return"playlist"}return"none"};
_.p.computePostTabIndex=function(h){return h?0:-1};
_.p.computeButtonTooltipPosition=function(h){return this.computeUsesCompactLockup(h)?"top":"bottom"};
_.p.computeHasText=function(h){return!(h==null||!h.contentText)};
_.p.onTap=function(h){var E,g;if(((E=this.data)==null?0:E.navigationEndpoint)&&((g=this.data)==null?void 0:g.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var Z;((Z=this.data)==null?0:Z.navigationEndpoint)&&!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ze.Object.defineProperties(n0.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.voteCount)||_.MR("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,tif))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,oTk))}}});
n0.prototype.onYtServiceRequestCompleted=n0.prototype.onYtServiceRequestCompleted;n0.prototype.onYtServiceRequestSent=n0.prototype.onYtServiceRequestSent;n0.prototype.onYtCommentPollRevert=n0.prototype.onYtCommentPollRevert;n0.prototype.onYtCommentboxDismiss=n0.prototype.onYtCommentboxDismiss;n0.prototype.onYtNavigate=n0.prototype.onYtNavigate;n0.prototype.isLoadingChanged=n0.prototype.isLoadingChanged;n0.prototype.dataChanged=n0.prototype.dataChanged;n0.prototype.contentTextChanged=n0.prototype.contentTextChanged;
_.Y([_.t(_.iL),_.V("design:type",Object)],n0.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],n0.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],n0.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],n0.prototype,"editDialog",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],n0.prototype,"roundedContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],n0.prototype,"isLoading",void 0);_.Y([_.x({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.V("design:type",String)],n0.prototype,"surface",void 0);
_.Y([_.x({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n0.prototype,"usesCompactLockup",void 0);_.Y([_.x({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n0.prototype,"showWithoutToolbar",void 0);_.Y([_.x({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.V("design:type",String)],n0.prototype,"attachment",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],n0.prototype,"isRichGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],n0.prototype,"isRichGridRepost",void 0);_.Y([_.x({reflectToAttribute:!0,value:_.J("use_better_post_dismissals")}),_.V("design:type",Boolean)],n0.prototype,"useBetterPostDismissals",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],n0.prototype,"reduceSidePaddings",void 0);
_.Y([_.x({computed:"computeHasText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],n0.prototype,"hasText",void 0);_.Y([_.Sg("#expander"),_.V("design:type",Object)],n0.prototype,"expander",void 0);_.Y([_.Sg("#action-buttons"),_.V("design:type",Object)],n0.prototype,"actionButtons",void 0);_.Y([_.Sg("#edit-dialog"),_.V("design:type",HTMLElement)],n0.prototype,"editDialogEl",void 0);
_.Y([_.Nm("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n0.prototype,"contentTextChanged",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n0.prototype,"dataChanged",null);_.Y([_.Nm("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n0.prototype,"isLoadingChanged",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],n0.prototype,"onYtNavigate",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n0.prototype,"onYtCommentboxDismiss",null);_.Y([_.f3("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],n0.prototype,"onYtCommentPollRevert",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],n0.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],n0.prototype,"onYtServiceRequestCompleted",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],n0.prototype,"voteCount",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],n0.prototype,"commentCount",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n0.prototype,"hasPoll",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],n0.prototype,"hasUploadedVideo",null);_.Y([_.K({is:"ytd-post-renderer",disableElementRegistration:!0})],n0);
_.X(n0,"ytd-post-renderer",function(){if(g2k!==void 0)return g2k;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return g2k=h},{mode:1});var HEk;var $ED;var X_=function(){return _.D.apply(this,arguments)||this};
_.f(X_,_.D);X_.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],X_.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],X_.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],X_.prototype,"data",void 0);
_.Y([_.x({value:"$.items.children"}),_.V("design:type",String)],X_.prototype,"itemsPath",void 0);_.Y([_.x({value:1}),_.V("design:type",Number)],X_.prototype,"initialCount",void 0);_.Y([_.x(),_.V("design:type",String)],X_.prototype,"surface",void 0);_.Y([_.K({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],X_);
_.X(X_,"ytd-post-multi-image-renderer",function(){if($ED!==void 0)return $ED;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $ED=h},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var KUm={"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"}}},Yz=function(){var h=_.D.apply(this,arguments)||this;h.hasInlineCommentSection=!1;h.editDialog=null;h.isLoading=!1;h.shouldHideAuthor=!1;h.shouldShowVideoTime=!1;
h.isInEngagementPanel=!1;h.hideBorder=!1;h.usesFullLockup=!1;h.shouldShowMenuInCompactView=!1;h.JSC$15195_spinnerEl=null;h.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return h};
_.f(Yz,_.D);_.p=Yz.prototype;_.p.configureRendererStamper=function(){return KUm};
_.p.computeIsPollHeaderEnabled=function(h){return(h==null?void 0:h.pollMetadataIcon)!=null};
_.p.getPublishTimeStampString=function(h,E){E=new Date((Number(E)-60*((new Date).getTimezoneOffset()-(new Date(Number(E)*1E3)).getTimezoneOffset()))*1E3);E=(new Z9(10)).format(E);if(h&&h.runs&&h.runs.length)for(var g=0;g<h.runs.length;g++)h.runs[g].text&&(h.runs[g].text=h.runs[g].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",E));return h};
_.p.created=function(){this.JSC$15195_spinnerEl=null};
_.p.contentTextChanged=function(){this.expander.reset()};
_.p.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var h;if((h=this.data)==null?0:h.actions){h=_.G(this.data.actions);for(var E=h.next();!E.done;E=h.next())this.openEditDialog(_.e(E.value,FsC))}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){_.UB(this.hostElement).querySelector("#action-buttons").reply()};
_.p.updatePoll=function(h,E){E&&this.set("data.pollMetadataVoteCountText",E);this.hasInlineCommentSection&&(h=h>=0,E=_.UB(this.hostElement).querySelector("#action-buttons"),h?E.reply():E.hideReplyDialog())};
_.p.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15195_spinnerEl||(this.JSC$15195_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.UB(this.hostElement).appendChild(this.JSC$15195_spinnerEl));this.JSC$15195_spinnerEl&&(this.JSC$15195_spinnerEl.active=this.isLoading)};
_.p.onYtNavigate=function(h){var E=this.get("updateCommentDialogEndpoint",h.detail.endpoint);E&&(this.openEditDialog(E),h.stopPropagation())};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.onYtCommentPollRevert=function(h,E){E&&this.updatePoll(E.selectedChoiceIndex,E.totalVotes)};
_.p.onYtServiceRequestSent=function(h,E){h.stopPropagation();h=_.e(E.endpoint,FwF);if(_.e(E.endpoint,AmD)||h&&!h.clientActions)this.isLoading=!0;if(E.actions)for(h=0;h<E.actions.length;h++){var g=E.actions[h],Z=_.e(g,Yc);Z&&(g=this.get("updateBackstagePollAction.selectedChoiceIndex",g),g===void 0&&(g=-1),this.updatePoll(g,Z.totalVotes))}};
_.p.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.p.openEditDialog=function(h){h&&h.dialog&&(this.editDialog=h.dialog,h=this.editDialogElement.firstElementChild)&&(h.focus(),h.openDialog&&h.openDialog())};
_.p.computeIsBodyHidden=function(h,E){return!!h||E};
_.ze.Object.defineProperties(Yz.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var h,E;if((h=this.data)==null?0:(E=h.pollMetadataIcon)==null?0:E.iconType)return _.CL(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.voteCount)||_.MR("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,tif))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,iCB))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.e(this.data.backstageAttachment,oTk))}}});
Yz.prototype.onYtServiceRequestCompleted=Yz.prototype.onYtServiceRequestCompleted;Yz.prototype.onYtServiceRequestSent=Yz.prototype.onYtServiceRequestSent;Yz.prototype.onYtCommentPollRevert=Yz.prototype.onYtCommentPollRevert;Yz.prototype.onYtCommentboxDismiss=Yz.prototype.onYtCommentboxDismiss;Yz.prototype.onYtNavigate=Yz.prototype.onYtNavigate;Yz.prototype.isLoadingChanged=Yz.prototype.isLoadingChanged;Yz.prototype.dataChanged=Yz.prototype.dataChanged;Yz.prototype.contentTextChanged=Yz.prototype.contentTextChanged;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Yz.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Yz.prototype,"rendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Yz.prototype,"rendererstamperBehavior",void 0);_.Y([_.Sg("#contentTextExpander"),_.V("design:type",Object)],Yz.prototype,"expander",void 0);
_.Y([_.Sg("#edit-dialog"),_.V("design:type",Element)],Yz.prototype,"editDialogElement",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"hasInlineCommentSection",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"editDialog",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"isLoading",void 0);
_.Y([_.x({computed:"computeIsPollHeaderEnabled(data)"}),_.V("design:type",Boolean)],Yz.prototype,"isPollHeaderEnabled",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"shouldHideAuthor",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"shouldShowVideoTime",void 0);_.Y([_.x(),_.V("design:type",Object)],Yz.prototype,"isInEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yz.prototype,"hideBorder",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yz.prototype,"usesFullLockup",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yz.prototype,"shouldShowMenuInCompactView",void 0);_.Y([_.S("isInEngagementPanel"),_.V("design:type",Number),_.V("design:paramtypes",[])],Yz.prototype,"postTextMaxLines",null);_.Y([_.S("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],Yz.prototype,"pollIcon",null);
_.Y([_.Nm("data.contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yz.prototype,"contentTextChanged",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yz.prototype,"dataChanged",null);_.Y([_.Nm("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yz.prototype,"isLoadingChanged",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Yz.prototype,"onYtNavigate",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yz.prototype,"onYtCommentboxDismiss",null);_.Y([_.f3("yt-comment-poll-revert"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Yz.prototype,"onYtCommentPollRevert",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],Yz.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Yz.prototype,"onYtServiceRequestCompleted",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Yz.prototype,"voteCount",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Yz.prototype,"commentCount",null);_.Y([_.S("data.backstageAttachment"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Yz.prototype,"hasPoll",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Yz.prototype,"hasQuiz",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Yz.prototype,"hasUploadedVideo",null);
_.Y([_.K({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Yz);
_.X(Yz,"ytd-backstage-post-renderer",function(){if(HEk!==void 0)return HEk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HEk=h},{mode:1});var OEB;var sV=function(){var h=_.D.apply(this,arguments)||this;h.editDialog=null;h.showExpandButton=!1;h.isRichGrid=!1;h.usesFullLockup=!1;return h};
_.f(sV,_.D);_.p=sV.prototype;_.p.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.p.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.p.computeShowExpandButton=function(h){return this.usesCompactLockup||h&&h.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.p.computeUsesCompactLockup=function(h){return!!h.condensedContent};
_.p.computeShowFullContentText=function(h){return!h};
_.p.onYtNavigate=function(h){h=this.get("updateCommentDialogEndpoint",h.detail.endpoint);this.openEditDialog(h)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null};
_.p.openEditDialog=function(h){h&&h.dialog&&(this.editDialog=h.dialog,h=this.repostEditDialogEl.firstElementChild)&&(h.focus(),h.openDialog&&h.openDialog())};
_.p.onTap=function(h){if(this.data){var E=null;this.usesCompactLockup&&!_.MI(_.Gw(h)||[],this.hostElement,["YT-IMG-SHADOW"])?E=this.get("navigationEndpoint",this.data):h.target===this.moreButtonEl&&(E=this.get("navigationEndpoint",h.target.data));E&&_.Ra(this.hostElement,"yt-navigate",{endpoint:E})}};
sV.prototype.onYtCommentboxDismiss=sV.prototype.onYtCommentboxDismiss;sV.prototype.onYtNavigate=sV.prototype.onYtNavigate;sV.prototype.dataChanged=sV.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sV.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],sV.prototype,"editDialog",void 0);_.Y([_.x({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],sV.prototype,"usesCompactLockup",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],sV.prototype,"showExpandButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],sV.prototype,"isRichGrid",void 0);
_.Y([_.x({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.V("design:type",Boolean)],sV.prototype,"showFullContentText",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],sV.prototype,"usesFullLockup",void 0);_.Y([_.Sg("#more"),_.V("design:type",Object)],sV.prototype,"moreButtonEl",void 0);_.Y([_.Sg("#repost-content-text"),_.V("design:type",HTMLElement)],sV.prototype,"repostContentTextEl",void 0);
_.Y([_.Sg("#repost-edit-dialog"),_.V("design:type",HTMLElement)],sV.prototype,"repostEditDialogEl",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sV.prototype,"dataChanged",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sV.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sV.prototype,"onYtCommentboxDismiss",null);_.Y([_.K({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],sV);
_.X(sV,"ytd-shared-post-renderer",function(){if(OEB!==void 0)return OEB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return OEB=h},{mode:1});var noB;var X8M;var Vb=function(){return _.D.apply(this,arguments)||this};
_.f(Vb,_.D);Vb.prototype.attached=function(){var h=this;this.networkStatusManager||(this.networkStatusManager=new _.bK,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){h.onlineHandler()}))};
Vb.prototype.detached=function(){var h=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){h.onlineHandler()}),delete this.networkStatusManager)};
Vb.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Vb.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vb.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Vb);
_.X(Vb,"ytd-reload-page-button-renderer",function(){if(X8M!==void 0)return X8M;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return X8M=h},{mode:1});var YwA={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"},kz=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(kz,_.D);_.p=kz.prototype;_.p.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.p.computeHasBodyText=function(h){return!!h.bodyText};
_.p.computeButtons=function(h){var E=[];h.ctaButton&&E.push(h.ctaButton);h.secondaryButton&&E.push(h.secondaryButton);return E};
_.p.computeRendererStyle=function(h){return h.style?h.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():h.icon?"":"no-icon"};
_.p.getIconName=function(h,E){E=E===void 0?!1:E;if(h===void 0)return"";h=this.get("icon.iconType",h);var g;_.J("enable_hlp_client_icon_pick")?g=this.getThemedIcon(h,E):g=h;(E=YwA[g])||(E="yt-icons");return[E,g].join(":")};
_.p.getThemedIcon=function(h,E){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(h)?E?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(h)?E?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":h};
_.p.isThumbnail=function(h){return!!h.thumbnail};
_.p.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],kz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kz.prototype,"data",void 0);
_.Y([_.x({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],kz.prototype,"rendererStyle",void 0);_.Y([_.x({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.V("design:type",String)],kz.prototype,"iconName",void 0);_.Y([_.x({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],kz.prototype,"thumbnail",void 0);_.Y([_.x({computed:"computeButtons(data)"}),_.V("design:type",Array)],kz.prototype,"buttons",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],kz.prototype,"isDarkTheme",void 0);_.Y([_.x({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],kz.prototype,"hasBodyText",void 0);_.Y([_.K({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],kz);
_.X(kz,"ytd-background-promo-renderer",function(){if(noB!==void 0)return noB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return noB=h},{mode:1});var sQH;var yb=function(){var h=_.D.apply(this,arguments)||this;h.collections=_.J("web_modern_collections_v2");return h};
_.f(yb,_.D);_.ze.Object.defineProperties(yb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(h=this.data)==null?void 0:(E=h.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(g=this.data)==null?void 0:(Z=g.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(W=M.thumbnail)==null?void 0:W.darkColorPalette,experimentEnabled:this.collections}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yb.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],yb.prototype,"collections",void 0);_.Y([_.S("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],yb.prototype,"collectionStack",null);_.Y([_.K({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],yb);
_.X(yb,"ytd-compact-station-renderer",function(){if(sQH!==void 0)return sQH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return sQH=h},{mode:1});var VOB;var F_=function(){var h=_.D.apply(this,arguments)||this;h.isRichGrid=!1;return h};
_.f(F_,_.D);F_.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]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],F_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],F_.prototype,"isRichGrid",void 0);_.Y([_.K({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],F_);
_.X(F_,"ytd-grid-channel-renderer",function(){if(VOB!==void 0)return VOB;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return VOB=h},{mode:1});var kMH;var AY=function(){return _.D.apply(this,arguments)||this};
_.f(AY,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],AY.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],AY.prototype,"data",void 0);_.Y([_.K({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],AY);
_.X(AY,"ytd-grid-movie-playlist-renderer",function(){if(kMH!==void 0)return kMH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kMH=h},{mode:1});var ydf;var Ti=function(){var h=_.D.apply(this,arguments)||this;h.downloadProgress=0;h.transferState="TRANSFER_STATE_UNKNOWN";h.modernButtons=_.J("web_modern_buttons");h.useModernCollectionsV2=_.J("web_modern_collections_v2");return h};
_.f(Ti,_.D);Ti.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Ti.prototype.configureRendererStamper=function(){return{"data.menu":su}};
Ti.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Ti.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.J("woffle_playlist_renderer_killswitch")){var h,E=Wa4(this.entityInfo,this.transferState,this.downloadProgress,(h=this.data)==null?void 0:h.playlistId,this.isOnline);h=E.viewPlaylistText;var g=E.badges;E=E.thumbnailOverlays;this.isDownloads=!!h||!!g;this.set("data.viewPlaylistText",h);g&&g.length>0&&this.set("data.badges",g);E&&E.length>0&&this.set("data.thumbnailOverlays",
E)}};
_.ze.Object.defineProperties(Ti.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 h;return!((h=this.data)==null?0:h.menu)}}});
Ti.prototype.transferStateChanged=Ti.prototype.transferStateChanged;Ti.prototype.dataChanged=Ti.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ti.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],Ti.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Ti.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ti.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x({selector:_.Pc$,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Ti.prototype,"downloadProgress",void 0);_.Y([_.x({selector:_.FM,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Ti.prototype,"transferState",void 0);_.Y([_.x({selector:RFV,selectorArgs:["data.playlistId"]}),_.V("design:type",Object)],Ti.prototype,"entityInfo",void 0);_.Y([_.x({selector:_.k8}),_.V("design:type",Boolean)],Ti.prototype,"isOnline",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ti.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Ti.prototype,"downloadRenderData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ti.prototype,"modernButtons",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ti.prototype,"isDownloads",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ti.prototype,"useModernCollectionsV2",void 0);
_.Y([_.S("transferState"),_.x({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],Ti.prototype,"downloadState",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ti.prototype,"menuHidden",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ti.prototype,"dataChanged",null);
_.Y([_.lq("transferState","downloadProgress","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ti.prototype,"transferStateChanged",null);_.Y([_.K({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Ti);
_.X(Ti,"ytd-grid-playlist-renderer",function(){if(ydf!==void 0)return ydf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ydf=h},{mode:1});var FUk;var bB=function(){var h=_.D.apply(this,arguments)||this;h.collections=_.J("web_modern_collections_v2");return h};
_.f(bB,_.D);bB.prototype.configureRendererStamper=function(){return{"data.menu":su,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ze.Object.defineProperties(bB.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(h=this.data)==null?void 0:(E=h.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(g=this.data)==null?void 0:(Z=g.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(W=M.thumbnail)==null?void 0:W.darkColorPalette,experimentEnabled:this.collections}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],bB.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],bB.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],bB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bB.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bB.prototype,"collections",void 0);_.Y([_.S("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],bB.prototype,"collectionStack",null);_.Y([_.K({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],bB);
_.X(bB,"ytd-grid-radio-renderer",function(){if(FUk!==void 0)return FUk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return FUk=h},{mode:1});var AdF;var uB=function(){var h=_.D.apply(this,arguments)||this;h.useModernCollectionsV2=_.J("web_modern_collections_v2");return h};
_.f(uB,_.D);uB.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
uB.prototype.computeNavigationEndpoint=function(h){return zR$(h==null?void 0:h.navigationEndpoint)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],uB.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uB.prototype,"data",void 0);_.Y([_.x({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],uB.prototype,"computedNavigationEndpoint",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uB.prototype,"useModernCollectionsV2",void 0);_.Y([_.K({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],uB);
_.X(uB,"ytd-grid-show-renderer",function(){if(AdF!==void 0)return AdF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return AdF=h},{mode:1});var TTB;_.Qb=function(h){this.playerClient=h};
_.bEl=function(h,E,g){g=g===void 0?{}:g;return h.playerClient.setOption("ad",E,g)};
_.Qb.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Qb.prototype.executeCommand=function(h,E){this.getOptions().includes("executeCommand")?_.bEl(this,"executeCommand",{command:h,layoutId:E}):_.bv("Calling executeCommand when adModule is not loaded")};var h$=function(){return _.D.apply(this,arguments)||this};
_.f(h$,_.D);h$.prototype.getLayoutId=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.layoutId:null};
h$.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var h=_.zD(),E=this.getLayoutId(),g=this.data.clickthroughEndpoint;h&&E&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?h.getPlayerPromise().then(function(Z){(new _.Qb(Z)).executeCommand(g,E)}):_.Ra(this.hostElement,"yt-navigate",{endpoint:g})}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],h$.prototype,"data",void 0);_.Y([_.K({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],h$);
_.X(h$,"ytd-shopping-companion-item-renderer",function(){if(TTB!==void 0)return TTB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return TTB=h},{mode:1});var uem;var Eb=function(){var h=_.D.apply(this,arguments)||this;h.isExpandableContent=!1;return h};
_.f(Eb,_.D);_.ze.Object.defineProperties(Eb.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?void 0:h.price)||((E=this.data)==null?void 0:(g=E.dealsData)==null?void 0:g.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var h,E;if((h=this.data)!=null&&h.dealsData&&((E=this.data)==null||!E.priceReplacementText)){h=this.data.dealsData;var g,Z,M;return((g=h.salesData)==null?void 0:g.originalPrice)||((Z=h.priceDropData)==null?void 0:Z.referencePrice)||((M=h.promotionData)==null?void 0:M.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var h,E;return(h=this.data)==null?void 0:(E=h.dealsData)==null?void 0:E.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Eb.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Eb.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Eb.prototype,"isExpandableContent",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"showCta",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"ctaText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"hasPriceTopPosition",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"hasPriceBottomPosition",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"useNewStyle",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"showPriceReplacementText",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"priceValue",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"showDeal",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"showAffiliateDisclaimer",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"useSaleStyle",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"useFromBrandCtaStyle",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"useFromVendorCtaStyle",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Eb.prototype,"useShoppingCollectionCtaStyle",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Eb);
_.X(Eb,"ytd-vertical-product-card-renderer",function(){if(uem!==void 0)return uem;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uem=h},{mode:1});var QQn;var gs=function(){return _.D.apply(this,arguments)||this};
_.f(gs,_.D);gs.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],gs.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gs.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],gs);
_.X(gs,"ytd-grid-movie-renderer",function(){if(QQn!==void 0)return QQn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return QQn=h},{mode:1});var h4k;var Zk=function(){var h=_.D.apply(this,arguments)||this;h.roundedFix=_.J("web_enable_merch_item_rounding_fix");h.itemStyle="small-item";return h};
_.f(Zk,_.D);Zk.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var h,E,g,Z,M=(E=_.e((h=this.data)==null?void 0:h.buttonCommand,_.K1))==null?void 0:(g=E.item)==null?void 0:(Z=g.notificationTextRenderer)==null?void 0:Z.successResponseText;M&&_.$0u(this.hostElement,M)}};
_.ze.Object.defineProperties(Zk.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.isProductPlaceholder)!==void 0&&((E=this.data)==null?void 0:E.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.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}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Zk.prototype,"ytRendererBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Zk.prototype,"roundedFix",void 0);_.Y([_.x(),_.V("design:type",Object)],Zk.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Zk.prototype,"itemStyle",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"hasPrice",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"hasPriceReplacementText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"hasAdditionalFeesText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"hasAffiliateDisclaimer",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"isProductPlaceholder",null);
_.Y([_.x(),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"hideOpenInNewIcon",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zk.prototype,"ariaLabel",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],Zk);
_.X(Zk,"ytd-merch-shelf-item-renderer",function(){if(h4k!==void 0)return h4k;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return h4k=h},{mode:1});var E5F=_.O(function(h){return _.R("button-card-view-model",{el:_.zT(_.n4(function(){return h.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return h.data().title},
role:"button"},_.R(_.rK,{model:{}}),_.R("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.R("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.R(_.P,{cond:function(){return h.data().image},
then:function(E){return _.R(_.pO,{data:E,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.R("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return h.data().title})))},"jb");_.J("web_button_view_model_wcw_registration_killswitch")||_.I9(E5F,"button-card-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){h=_.au(h,{className:void 0});var E=h.data;h=h.className;var g=_.Cw(function(){return E().onTapCommand},void 0,"SXkP9e");
return _.R("ytd-shopping-item-card",{class:_.CO("ytdShoppingItemCardHost",h)},_.R(_.lk,{command:g,className:"ytdShoppingItemCardHostLink"},_.R("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.R(_.Sv,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(Z){return _.R(_.f0,{data:Z.data,
aspectRatio:3})}})),_.R("div",null,_.R("p",{class:"ytdShoppingItemCardHostItemTitle"},_.R(_.dK,{text:function(){return E().itemTitle}})),_.R("p",{class:"ytdShoppingItemCardHostPrice"},_.R(_.dK,{text:function(){return E().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.C6,
className:_.C6}});var g5C={isAdsVideo:!0},ZpD={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},M$M={showPlayerControls:!1,videoPreviewDurationMs:15E3},WvB={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var QS=null,KKd={};var Xou="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(" "),Mx={},Yl4=(Mx.FEwhat_to_watch="home",Mx.FEhashtag="hashtag",Mx.FEtrending="trending",Mx.FEhistory="history",Mx.SPunlimited="premium",Mx.FEmemberships_and_purchases="paid_memberships",Mx.SPredeem_code="redeem",Mx.SPverify_location="locate",Mx.SPminor_moment="minor_moment",
Mx.FEmini_app_container="mini_app",Mx.FEnews_destination="news",Mx.SPopen_in_app="open_in_app",Mx.FEexplore="explore",Mx.FEsubscriptions="subscriptions",Mx.FEsfv_audio_pivot="sfv_audio_pivot",Mx.FEplaylist_aggregation="playlist_aggregation",Mx);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");_.dC("init");var pzC=function(){},cKH=_.O(function(h){var E=h.data;
var g=h.inlineMetadata;var Z=h.aspectRatio;var M=h.scrimStyle;var W=h.className;var z=h.useDefaultStyle;var c=h.titleStyle;var I=new pzC,B=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",U=_.Cw(function(){return(z==null?0:z())?B==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),L=_.Cw(function(){return _.Hm(g)||U()||!1},void 0,"neizSe"),d=function(){return(M==null?void 0:M())!==void 0?M==null?void 0:M():1},
C=_.Cw(function(){return E().belowThumbnailMetadata||!L()},void 0,"HdmMMe");
h=_.c6({visibilityCallback:function(iO){var RW=E().onFirstVisible;iO&&RW&&_.Tl(RW)},
showOption:{calledOnce:!0,state:"visible"}});var q=_.zT(),w={},r=_.CO(function(){return U(),"shortsLockupViewModelHostThumbnailContainer"},(w.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Hm(Z)===1},w.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Hm(Z)===2},w.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.J("web_shorts_2_by_3_lockups_study")&&!_.J("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
w)),v=_.Cw(function(){if(_.Hm(Z)===1)return 1;
_.Hm(Z);return 2},void 0,"ZRUa3c"),H,u=function(){if(I){var iO;
(iO=H)==null||hN(iO);var RW;if(I.hostElement&&((RW=I.data)==null?0:RW.inlinePlayerData)){iO=Object.assign({},WvB);var NN,Cd;((NN=I.data)==null?void 0:(Cd=NN.inlinePlayerData)==null?void 0:Cd.maxPlaybackLengthSec)!==void 0&&(iO.videoPreviewDurationMs=I.data.inlinePlayerData.maxPlaybackLengthSec*1E3);H=Yx({mediaRenderer:I,lockupElement:I.hostElement,thumbnailElement:q.value,videoPreviewOpts:iO})}}};
_.lX(function(){I&&(I.data=E(),u())},"c4oj4d");
var k=_.Cw(function(){return E().thumbnail},void 0,"CJHyHc");
w=_.Cw(function(){return E().badge},void 0,"g31PIe");
var y=_.Cw(function(){return E().onTap},void 0,"CJCUBc"),A={},E4={};
return _.R("ytm-shorts-lockup-view-model",{el:_.zT(function(iO){I&&(I.hostElement=iO)},u,h),
class:_.CO("shortsLockupViewModelHost",W)},_.R(_.zt,null,_.R(_.lk,{command:y,className:_.CO("shortsLockupViewModelHostEndpoint",(A.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!C()},A),"reel-item-endpoint",""),
ariaHidden:function(){return!L()},
tabIndex:function(){return L()?0:-1}},_.R("div",{el:q,
class:_.CO("shortsLockupViewModelHostThumbnailParentContainer",(E4.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!U()},E4))},_.R(_.P,{cond:k,
then:function(){return _.R("div",{class:r},_.R(_.pO,{data:function(){var iO;return(iO=k==null?void 0:k())!=null?iO:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.R(_.Sv,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(iO){return _.R(_.f0,{data:iO.data,
aspectRatio:function(){return v()},
disableRounding:function(){return U()}})}}),null),_.R(_.P,{cond:L,
then:function(){return _.R(GsF,{data:E,scrimStyle:d,useDefaultStyle:z,titleStyle:c})}}),_.R(_.Sv,{data:w},{badgeViewModel:function(iO){return _.R(_.xz,{data:iO.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.R(_.P,{cond:function(){return L()&&E().menuOnTap},
then:function(){return _.R(z4D,{data:E,inlineMetadata:!0})}}),_.R(_.P,{cond:C,
then:function(){return _.R(axk,{data:E,useDefaultStyle:z,inlineMetadata:L})}})))},"lb"),GsF=_.O(function(h){var E=h.data;
var g=h.scrimStyle;var Z=h.useDefaultStyle;var M=h.titleStyle;var W=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=Z&&_.J("web_hide_primary_text_for_pivot_panel"),c=_.Cw(function(){return(Z==null?0:Z())?W==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
h={};h=_.CO("shortsLockupViewModelHostInlineMetadata",(h.shortsLockupViewModelHostMetadataRounded=function(){return!c()},h.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(g==null?void 0:g())===3&&!_.J("enable_shorts_lockup_new_scrim")},h.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(g==null?void 0:g())===3&&_.J("enable_shorts_lockup_new_scrim")},h.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(g==null?void 0:g())===2||(g==null?void 0:
g())===4},h.shortsLockupViewModelHostShowOverPlayer=function(){return!0},h),"image-overlay-text");
var I={};return _.R("div",{class:h},_.R("h3",{class:_.CO("shortsLockupViewModelHostMetadataTitle",(I.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(g==null?void 0:g())===4},I.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return E().belowThumbnailMetadata},I.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(M==null?void 0:M())===1},I.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(M==null?void 0:M())===2},I)),
"aria-label":function(){return E().accessibilityText}},_.R(_.P,{cond:function(){var B;
return!((B=E().overlayMetadata)==null||!B.primaryText)&&!z},
then:function(){return _.R(_.dK,{text:function(){var B;return(B=E().overlayMetadata)==null?void 0:B.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.R(_.P,{cond:function(){var B;
return(B=E().overlayMetadata)==null?void 0:B.secondaryText},
then:function(){return _.R(ipB,{data:E,scrimStyle:g,className:void 0})}}))},"mb"),axk=_.O(function(h){var E=h.data;
var g=h.useDefaultStyle;var Z=h.inlineMetadata;var M=_.J("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",W=_.Cw(function(){return(g==null?0:g())?M==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),z=_.zT(),c;
h=_.J7(function(C){if(_.$x(_.H3(C),z.value,["AVATAR-VIEW-MODEL"]))return!1;var q;(q=c)==null||q.click();return!1});
var I=_.Cw(function(){return E().belowThumbnailMetadata||E().overlayMetadata},void 0,"yJVuMb"),B=function(){return E().menuOnTap&&!Z()},U=function(){var C;
return(C=I())==null?void 0:C.avatar},L={},d={};
return _.R("div",{class:_.CO(function(){return W()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(L.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!U()},L.shortsLockupViewModelHostOutsideMetadataHasMenu=B,L)),
"on:click":h,el:z,role:"presentation"},_.R(_.Sv,{data:U},{avatarViewModel:function(C){return _.R("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.R(_.Mq,{data:C.data}))}}),_.R("div",null,_.R("h3",{class:_.CO("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(d.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var C,q;
return!((C=I())==null?0:(q=C.primaryText)==null?0:q.content)},d.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=Z,d)),
role:"presentation"},_.R(_.lk,{ref:function(C){return void(c=C)},
command:function(){return E().onTap},
className:_.CO("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var C,q;return(C=I())==null?void 0:(q=C.primaryText)==null?void 0:q.content},
"aria-label":function(){return E().accessibilityText}},_.R(_.P,{cond:function(){var C;
return(C=I())==null?void 0:C.primaryText},
then:function(C){return _.R(_.dK,{text:C,noEndpoints:!0,noStyleRuns:!0})}}))),_.R(_.P,{cond:function(){var C;
return(C=I())==null?void 0:C.secondaryText},
then:function(C){return _.R("div",{class:_.CO("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.R(_.dK,{text:C,noStyleRuns:!0}))}})),_.R(_.P,{cond:B,
then:function(){return _.R(z4D,{data:E,inlineMetadata:!1})}}))},"nb"),ipB=_.O(function(h){var E=h.data;
var g=h.scrimStyle;h=h.className;var Z={};return _.R("div",{class:_.CO((Z.shortsLockupViewModelHostMetadataSubhead=function(){return(g==null?void 0:g())!==4},Z.shortsLockupViewModelHostMetadataSubheadNew=_.J("enable_shorts_lockup_new_scrim"),Z.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(g==null?void 0:g())===4},Z),h),
"aria-hidden":"true"},_.R(_.dK,{text:function(){var M;return(M=E().overlayMetadata)==null?void 0:M.secondaryText},
noStyleRuns:!0}))},"ob"),z4D=_.O(function(h){var E=h.data;
var g=h.inlineMetadata;h={};h=_.CO((h.shortsLockupViewModelHostInlineMetadataMenu=function(){return g()},h.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!g()},h.shortsLockupViewModelHostShowOverPlayer=function(){return!0},h),"image-overlay-text");
return _.R("div",{class:h},_.R(_.H4,{data:function(){return{style:g()?"overlay":"mono",accessibilityLabel:E().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(Z){Z.preventDefault();Z.stopPropagation();var M=_.F8({elementsCommand:E().menuOnTap,forceNewState:!0});if(M==null?0:M.onclick)M.onclick(Z)}}},
iconName:"MORE_VERT"}))},"pb");var o5D=_.O(function(h){var E=h.data;var g=h.inlineMetadata;var Z=h.aspectRatio;var M=h.scrimStyle;var W=h.className;var z=h.useDefaultStyle;h=_.Cw(function(){var c=E().entityId;return c?c.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.R("ytm-shorts-lockup-view-model-v2",{class:_.CO("shortsLockupViewModelHost",W)},_.R(_.lB,{contentId:h,aspectRatio:function(){return(Z==null?void 0:Z())===1?1:(Z==null?void 0:Z())===2?2:4}},function(){return _.R(cKH,{data:E,
inlineMetadata:g,aspectRatio:Z,scrimStyle:M,className:W,useDefaultStyle:z})}))},"qb");_.I9(o5D,"ytm-shorts-lockup-view-model-v2",{props:{data:_.c$,inlineMetadata:_.c$,aspectRatio:_.c$,scrimStyle:_.c$,className:_.c$,useDefaultStyle:_.c$,titleStyle:_.c$}});var IxM=16/9*210,Wv=function(){var h=_.D.apply(this,arguments)||this;h.isExpandableContent=!1;h.hideShelfHeader=!1;h.engagementPanel=!1;h.buttonClasses=["arrow"];h.isSearch=!1;h.disableScrollEventListener=!1;h.containsLockup=!1;h.overrideArrowPositionForProductCard=!1;h.overrideArrowPositionForShoppingItemCard=!1;h.overrideArrowPositionForReelItems=!1;h.overrideArrowPositionForGridMovie=!1;h.overrideArrowPositionToCenter=!1;h.isSearchPostShelf=!1;h.overrideArrowPositionForMixedShelf=!1;h.overrideArrowPositionForMixedShelfShortsOnly=
!1;h.hasBigThumbsReelItems=!1;h.shouldUseMixedListHeight=!1;h.shouldUseShortsListHeight=!1;h.gridVideoWidth=0;h.isSearchVodShelf=!1;h.disableWheelScroll=!1;h.sizing="COMPACT";h.shortsLockupAspectRatio=0;return h};
_.f(Wv,_.D);_.p=Wv.prototype;
_.p.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.J("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.p.computeInitialCountNumber=function(h){if(!h)return 6;var E=h.items.some(function(W){return!!W.topicRecommendationsChipRenderer}),g=h.items.some(function(W){return!!W.displayAdRenderer}),Z=this.computeShouldListItemsHaveEqualHeight(h),M=h.items.some(function(W){return!!W.gridPlaylistRenderer});
h=h.items.some(function(W){return!!W.shoppingItemCardViewModel});
return E?9:g?8:M||Z?10:h?7:6};
_.p.computeContainsPost=function(h){return!!h&&!!h.items&&h.items.some(function(E){return!!E.postRenderer})};
_.p.computeContainsLockup=function(){if(_.J("web_horizontal_list_lockup_arrow_killswitch"))return!1;var h,E;return(h=this.data)==null?void 0:(E=h.items)==null?void 0:E.some(function(g){return!!g.lockupViewModel})};
_.p.maybeUpdateLockupAspectRatio=function(){var h,E;if(this.computeContainsLockup()&&((h=this.data)==null?0:(E=h.items)==null?0:E.length)){var g;h=a2$((g=this.data.items[0].lockupViewModel)==null?void 0:g.contentType,this.data.force16By9ThumbnailAspectRatio);g=iGx(h);g=this.computeLockupWidth()/g;_.Ja(this.hostElement,{"--yt-horizontal-list-content-height":g+"px"})}};
_.p.computeOverrideArrowPositionForProductCard=function(h){if(this.isExpandableContent)return!1;var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){return!!g.verticalProductCardRenderer}))};
_.p.computeOverrideArrowPositionForShoppingItemCard=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){return!!g.shoppingItemCardViewModel}))};
_.p.computeOverrideArrowPositionForReelItemRenderer=function(h){return this.containsReelItemRenderer(h)};
_.p.computeHasBigThumbsReelItems=function(h,E){return h&&this.containsReelItemRenderer(E)};
_.p.computeShouldListItemsHaveEqualHeight=function(h){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(h==null?void 0:h.itemSizeConstraint)};
_.p.computeShouldListItemsHaveShortsHeight=function(h){return this.computeShouldListItemsHaveEqualHeight(h)&&!this.containsGridVideoRenderer(h)};
_.p.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.p.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.p.containsReelItemRenderer=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){return!(!g.reelItemRenderer&&!g.shortsLockupViewModel)}))};
_.p.containsGridVideoRenderer=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){return!!g.gridVideoRenderer||!!g.lockupViewModel}))};
_.p.computeContainsGridMovieRenderer=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){return!!g.gridMovieRenderer}))};
_.p.computeOverrideArrowPositionToCenter=function(h){return this.computeIsSearchPostShelf(h)};
_.p.computeIsSearchPostShelf=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){var Z,M;return((M=(Z=g.postRenderer)==null?void 0:Z.surface)!=null?M:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.p.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(h){var E;return!!(h==null?0:(E=h.items)==null?0:E.some(function(g){var Z,M,W;return((W=(Z=g.backgroundPromoRenderer)==null?void 0:(M=Z.style)==null?void 0:M.value)!=null?W:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.p.computeIsSearchVodShelf=function(h,E){return h&&this.containsGridVideoRenderer(E)};
_.p.computeDisableWheelScroll=function(h,E){return this.computeIsSearchVodShelf(h,E)};
_.p.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.p.computeShortsLockupAspectRatio=function(){return 1};
_.p.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Ja(this.hostElement,{"--ytd-reel-item-thumbnail-height":IxM+"px"})};
Wv.prototype.dataChanged=Wv.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Wv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],Wv.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Wv.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],Wv.prototype,"isExpandableContent",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"hideShelfHeader",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Array)],Wv.prototype,"buttonClasses",void 0);_.Y([_.x(),_.V("design:type",Object)],Wv.prototype,"isSearch",void 0);
_.Y([_.x(),_.V("design:type",Object)],Wv.prototype,"disableScrollEventListener",void 0);_.Y([_.x({computed:"computeInitialCountNumber(data)"}),_.V("design:type",Number)],Wv.prototype,"initialCount",void 0);_.Y([_.x({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],Wv.prototype,"supportComponentResize",void 0);_.Y([_.x({computed:"computeContainsPost(data)"}),_.V("design:type",Boolean)],Wv.prototype,"containsPost",void 0);
_.Y([_.x({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"containsLockup",void 0);_.Y([_.x({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Wv.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.Y([_.x({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForProductCard",void 0);_.Y([_.x({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.Y([_.x({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForReelItems",void 0);_.Y([_.x({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForGridMovie",void 0);
_.Y([_.x({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionToCenter",void 0);_.Y([_.x({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"isSearchPostShelf",void 0);_.Y([_.x({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.Y([_.x({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.Y([_.x({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"hasBigThumbsReelItems",void 0);
_.Y([_.x({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"shouldUseMixedListHeight",void 0);_.Y([_.x({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"shouldUseShortsListHeight",void 0);_.Y([_.x({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"gridVideoWidth",void 0);
_.Y([_.x({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"isSearchVodShelf",void 0);_.Y([_.x({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.V("design:type",Object)],Wv.prototype,"disableWheelScroll",void 0);_.Y([_.x({computed:"computeSizing(isSearch)"}),_.V("design:type",Object)],Wv.prototype,"sizing",void 0);
_.Y([_.x({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.V("design:type",Object)],Wv.prototype,"shortsLockupAspectRatio",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wv.prototype,"dataChanged",null);
_.X(Wv,"yt-horizontal-list-renderer",function(){if(PAH===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);PAH=h}h=PAH;return h},{mode:1});var R4A;var Pgl=[10,12,14,16,18,20,24,28,32,36],BvD=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],p7=function(){var h=_.D.apply(this,arguments)||this;h.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";h.hideOverflow=!1;h.useRoboto=!1;h.fontClass="";h.overflown=!1;h.actionMap={"yt-window-resized":"resize"};return h};
_.f(p7,_.D);_.p=p7.prototype;
_.p.attached=function(){var h=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();_.pQ(this,function(){h.resize()});
if(!_.IV){var E,g,Z;(E=document)==null||(g=E.fonts)==null||(Z=g.ready)==null||Z.then(function(){h.resize()})}};
_.p.dataChanged=function(){this.resize()};
_.p.guideIsExpandedChanged=function(){this.resize()};
_.p.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var h=this.getMaxNumLines(),E=this.getMinFont(),g=this.getMaxFont(),Z=this.useRoboto?Pgl:BvD;for(Z=Z.filter(function(W){return W<=g&&W>=E});Z.length>1;){var M=Math.floor(Z.length/2);
this.updateFontSize(Z[M]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=h)Z=Z.slice(M,Z.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>h)Z=Z.slice(0,M);else break}this.updateFontSize(Z[Z.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(h)}};
_.p.handleOverflow=function(h){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>h&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",h.toString()))};
_.p.updateFontSize=function(h){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+h;this.textNode.classList.add(this.fontClass)};
_.p.getMaxFont=function(){var h=this.useRoboto?Pgl:BvD;h=h[h.length-1];return this.maxFontSize&&this.maxFontSize<=h?this.maxFontSize:h};
_.p.getMinFont=function(){var h=(this.useRoboto?Pgl:BvD)[0];return this.minFontSize&&this.minFontSize>=h?this.minFontSize:h};
_.p.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.p.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.p.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Wp(this.text).split("\n").length-1:Infinity};
_.p.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Ph`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
p7.prototype.guideIsExpandedChanged=p7.prototype.guideIsExpandedChanged;p7.prototype.dataChanged=p7.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],p7.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],p7.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],p7.prototype,"text",void 0);
_.Y([_.x(),_.V("design:type",String)],p7.prototype,"fontFamily",void 0);_.Y([_.x(),_.V("design:type",Number)],p7.prototype,"maxWidth",void 0);_.Y([_.x(),_.V("design:type",Number)],p7.prototype,"maxHeight",void 0);_.Y([_.x(),_.V("design:type",Number)],p7.prototype,"maxFontSize",void 0);_.Y([_.x(),_.V("design:type",Number)],p7.prototype,"minFontSize",void 0);_.Y([_.x(),_.V("design:type",Number)],p7.prototype,"maxLines",void 0);_.Y([_.x(),_.V("design:type",Object)],p7.prototype,"hideOverflow",void 0);
_.Y([_.x({selector:_.gm$}),_.V("design:type",Boolean)],p7.prototype,"guideIsExpanded",void 0);_.Y([_.Sg("#container"),_.V("design:type",HTMLElement)],p7.prototype,"containerNode",void 0);_.Y([_.Sg("#text"),_.V("design:type",HTMLElement)],p7.prototype,"textNode",void 0);_.Y([_.lq("text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p7.prototype,"dataChanged",null);
_.Y([_.lq("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],p7.prototype,"guideIsExpandedChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],p7);
_.X(p7,"yt-dynamic-sizing-formatted-string",function(){if(R4A!==void 0)return R4A;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return R4A=h},{mode:1});var ULM;_.LvH=function(h){_.g$.call(this,h)};
_.f(_.LvH,_.g$);var jiF=function(h){_.g$.call(this,h)};
_.f(jiF,_.LvH);var GU=function(){return _.D.apply(this,arguments)||this};
_.f(GU,_.D);GU.prototype.onTapSuspendedChannel=function(){var h;if((h=this.data)!=null&&h.serviceEndpoint){var E,g;(h=(g=_.e((E=this.data)==null?void 0:E.serviceEndpoint,_.yX))==null?void 0:g.url)?_.gD(h,void 0,void 0,window.top):(E=new jiF("Did not handle suspended account tap. No appealUrl."),_.$W(E))}else E=new jiF("Did not handle suspended account tap. No serviceEndpoint."),_.$W(E)};
GU.prototype.onTap=function(){var h=this,E=_.SQ(),g,Z=(g=_.tW(E,{veType:7116}))!=null?g:void 0;_.TT(E,{visualElement:Z});_.ha();this.saveRoleText();var M;if((M=this.data)==null?0:M.youtubeSuspended)this.onTapSuspendedChannel();else{var W=!1,z,c;(E=(c=_.e((z=this.data)==null?void 0:z.serviceEndpoint,_.Eml))==null?void 0:c.supportedTokens)&&E.forEach(function(I){if(I.accountSigninToken)if(W=!0,h.onAccountItemTap)h.onAccountItemTap(I.accountSigninToken.signinUrl);else _.gD(I.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!W){if(z=this.get("serviceEndpoint",this.data))W=!0,this.ytComponentBehavior.resolveCommand(z);W||_.KI(new jiF("Did not handle account switch tap. No token."))}}};
GU.prototype.saveRoleText=function(){if(this.data){var h=this.data,E=h.channelDelegationRole;if(E){var g,Z=(g=_.e(h==null?void 0:h.serviceEndpoint,_.Eml))==null?void 0:g.supportedTokens;if(!Z){var M,W,z,c;Z=(M=_.e(h==null?void 0:h.serviceEndpoint,_.sr))==null?void 0:(W=M.popup)==null?void 0:(z=W.confirmDialogRenderer)==null?void 0:(c=z.confirmButton)==null?void 0:c.buttonRenderer;var I;Z=(I=_.e(Z==null?void 0:Z.command,_.CZ))==null?void 0:I.commands;if(!Z)return;var B;Z=(B=_.e(Z[1],_.Eml))==null?
void 0:B.supportedTokens}if(Z){I=void 0;B=_.G(Z);for(Z=B.next();!Z.done;Z=B.next())if(Z=Z.value,Z.datasyncIdToken){I=Z.datasyncIdToken.datasyncIdToken;break}if(I){var U;a:{if(_.lia()&&(B=_.tDV(I+"::pom"))){B=new QH(B);break a}B=void 0}(U=B)==null||U.set("role_text",E);if((kjV?kjV:window.location).href.indexOf("studio")!==-1&&(U=rz4())){B=U.src?(new URL(U.src)).origin:"*";var L;(L=U.contentWindow)==null||L.postMessage({action:"save_pom_role",datasyncId:I,roleText:E},B)}}}}}};
_.ze.Object.defineProperties(GU.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.accountPhoto)==null?void 0:E.thumbnails;return g&&g.length>0&&(g[0].height===36||g[0].height===48)?g[0].height:40}}});
GU.prototype.onTap=GU.prototype.onTap;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],GU.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GU.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Function)],GU.prototype,"onAccountItemTap",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GU.prototype,"enableRingForActiveAccount",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],GU.prototype,"thumbnailSize",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GU.prototype,"onTap",null);_.Y([_.K({is:"ytd-account-item-renderer",disableElementRegistration:!0})],GU);
_.X(GU,"ytd-account-item-renderer",function(){if(ULM!==void 0)return ULM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ULM=h},{mode:1});var dLn;var zU=function(){return _.D.apply(this,arguments)||this};
_.f(zU,_.D);zU.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.GF().resolve(_.zF).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zU.prototype,"data",void 0);_.Y([_.K({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],zU);
_.X(zU,"ytd-identity-chip-renderer",function(){if(dLn!==void 0)return dLn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dLn=h},{mode:1});var CgD;var JKk;var e4D;var qOA;var a0=function(){var h=_.D.apply(this,arguments)||this;h.richItemMinWidth=_.cx("wn_grid_min_item_width",310);h.isShorts=!1;h.isWatchNext=!1;h.isExploreHub=!1;return h};
_.f(a0,_.D);_.ze.Object.defineProperties(a0.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var h=[],E=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Ja(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var g;if(((g=this.data)==null?0:g.rows)&&E)for(E*=this.data.rows,g=0;g<E;g++)h.push({});return h}}});
_.Y([_.t(_.aF),_.V("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],a0.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Y8,value:3}),_.V("design:type",Number)],a0.prototype,"itemsPerRow",void 0);_.Y([_.x({selector:_.EmO,value:6}),_.V("design:type",Number)],a0.prototype,"slimItemsPerRow",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],a0.prototype,"richItemMinWidth",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],a0.prototype,"miniMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a0.prototype,"isShorts",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a0.prototype,"isWatchNext",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a0.prototype,"isExploreHub",void 0);
_.Y([_.S("isExploreHub"),_.x({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],a0.prototype,"shimmerAnimation",null);_.Y([_.S("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.V("design:type",Array),_.V("design:paramtypes",[])],a0.prototype,"cardItems",null);_.Y([_.K({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],a0);
_.fxC=_.BK()(a0,"ytd-ghost-grid-renderer",function(){if(qOA===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);qOA=h}h=qOA;return h},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.I9(_.O(function(h){var E=_.au(h,{numberOfComments:3}).numberOfComments,g=_.au(h,{isInitialLoad:!1}).isInitialLoad,Z=_.au(h,{engagementPanel:!1}).engagementPanel,M=function(){return Math.min(Number(E==null?void 0:E())||20,20)};
return _.R("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.R(_.P,{cond:function(){return!(Z==null?0:Z())&&(g==null?void 0:g())},
then:function(){return _.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.R("div",{class:_.CO("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.R("div",{class:_.CO("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsComments"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.CO("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.R("div",{class:_.CO("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.R("div",{class:"ytGhostCommentsComments"},_.R(_.SX,{each:function(){return Array((M==null?void 0:M())||3)}},function(){return _.R("div",{class:"ytGhostCommentsGhostCard"},_.R("div",{class:"ytGhostCommentsAvatar"},_.R("div",{class:"ytGhostCommentsCircle"})),_.R("div",{class:"ytGhostCommentsHost"},_.R("div",{class:"ytGhostCommentsMeta"},
_.R("div",{class:_.CO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.R("div",{class:_.CO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.CO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:"ytGhostCommentsGhostLikeDislike"},_.R("div",{class:_.CO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.R("div",{class:_.CO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.C6,
isInitialLoad:_.C6,engagementPanel:_.C6}});_.$P("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var cv=function(){var h=_.D.apply(this,arguments)||this;h.isOverridable=!1;h.spinnerActive=!1;h.showButton=!1;h.isCommentsSection=!1;h.engagementPanel=!0;h.isShortsGrid=!1;h.isShortsPage=!1;h.isWatchPage=!1;h.ghostCardExperimentEnabled=_.J("show_ghost_comments_shorts_watch")||_.J("show_ghost_comments_desktop_watch");h.originalShowButton=!1;h.endOfList=!1;return h};
_.f(cv,_.D);_.p=cv.prototype;_.p.resetIntersectionObserver=function(){var h;(h=this.observer)==null||h.disconnect();this.observer=void 0};
_.p.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var h,E;((h=this.data)==null?void 0:h.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((E=this.data)==null?0:E.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.p.initializeIntersectionObserver=function(){var h=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(E){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g.value.isIntersecting&&(h.triggerContinuation(),h.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.p.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.p.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var h;((h=this.data)==null?0:h.continuationEndpoint)&&(h=_.e(this.data.continuationEndpoint,_.yQ))&&this.ytdReduxBehavior.dispatch(_.RY({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:h}}))};
_.p.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.p.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.p.onServiceRequestCompleted=function(h,E){if(!_.J("kevlar_hide_spinner_on_empty_continuation_killswitch")){var g;(g=E.actions)!=null&&g.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.p.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.p.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.p.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.p.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var h=3;if(this.engagementPanel){var E,g,Z;h=Math.floor(((((E=this.hostElement)==null?void 0:(g=E.parentElement)==null?void 0:(Z=g.parentElement)==null?void 0:Z.scrollHeight)||108)-108)/108);h=this.isInitialLoad?Math.max(h,3):3}E=[].concat(_.$E(this.hostElement.querySelectorAll("yt-ghost-comments")));E=_.G(E);for(g=E.next();!g.done;g=E.next())g=g.value,g.numberOfComments=h,g.isInitialLoad=this.isInitialLoad,g.engagementPanel=
this.engagementPanel}};
_.p.detached=function(){this.resetIntersectionObserver()};
_.ze.Object.defineProperties(cv.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.J("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.J("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
cv.prototype.numberOfGhostCommentsChanged=cv.prototype.numberOfGhostCommentsChanged;cv.prototype.continuationTriggerOffsetChanged=cv.prototype.continuationTriggerOffsetChanged;cv.prototype.showButtonChanged=cv.prototype.showButtonChanged;cv.prototype.onYtServiceRequestCompletedForButtonRenderer=cv.prototype.onYtServiceRequestCompletedForButtonRenderer;cv.prototype.onServiceRequestCompleted=cv.prototype.onServiceRequestCompleted;cv.prototype.onYtServiceRequestSentForButtonRenderer=cv.prototype.onYtServiceRequestSentForButtonRenderer;
cv.prototype.observeData=cv.prototype.observeData;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],cv.prototype,"ytVisibilityBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],cv.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],cv.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"isOverridable",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"spinnerActive",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"showButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cv.prototype,"isCommentsSection",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cv.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"isShortsGrid",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Wua}),_.V("design:type",Object)],cv.prototype,"isShortsPage",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Mnz}),_.V("design:type",Object)],cv.prototype,"isWatchPage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cv.prototype,"ghostCardExperimentEnabled",void 0);
_.Y([_.x(),_.V("design:type",Number)],cv.prototype,"continuationTriggerOffset",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"endOfList",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],cv.prototype,"isInitialLoad",void 0);_.Y([_.Sg("ytd-button-renderer"),_.V("design:type",_.tg)],cv.prototype,"buttonRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],cv.prototype,"buttonOverrides",void 0);
_.Y([_.x(),_.S("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.V("design:type",Object),_.V("design:paramtypes",[])],cv.prototype,"isShortsCommentsSection",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"observeData",null);
_.Y([_.f3("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],cv.prototype,"onServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-completed-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.Y([_.lq("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"showButtonChanged",null);
_.Y([_.lq("continuationTriggerOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"continuationTriggerOffsetChanged",null);_.Y([_.Nm("isInitialLoad","engagementPanel"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cv.prototype,"numberOfGhostCommentsChanged",null);_.Y([_.K({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],cv);
_.X(cv,"ytd-continuation-item-renderer",function(){if(e4D!==void 0)return e4D;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return e4D=h},{mode:1});var Nvl;var i5=function(){var h=_.D.apply(this,arguments)||this;h.downloadProgress=0;h.transferState="TRANSFER_STATE_UNKNOWN";h.downloadState="DOWNLOAD_STATE_UNKNOWN";h.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";h.offlineVideoPolicyExpirationTimestamp=0;h.downloadedVideoPlaybackPosition=0;return h};
_.f(i5,_.D);i5.prototype.dataChanged=function(){var h;this.videoData=_.e((h=this.data)==null?void 0:h.renderer,lsD);this.transferStateChanged()};
i5.prototype.downloadProgressChanged=function(){if(this.entityInfo){var h=Object.assign({},this.videoData),E=p4M(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),g=E.publishedTimeText,Z=E.badges;h.shortViewCountText=E.shortViewCountText;h.publishedTimeText=g;h.badges=Z;this.set("videoData",h)}};
i5.prototype.transferStateChanged=function(){if(this.entityInfo){var h=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",E=_.D$(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wZ(this.entityInfo.policyEntity),g=Object.assign({},this.videoData),Z=p4M(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),M=Z.publishedTimeText,W=Z.badges;g.shortViewCountText=
Z.shortViewCountText;g.publishedTimeText=M;g.badges=W;g.isDisabled=E;g.isWatched=this.downloadedVideoPlaybackPosition>0;g.navigationEndpoint=E?void 0:pkz(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var z;h&&((z=this.videoData)==null?0:z.videoId)&&!_.J("dl_resume_click_killswitch")&&(g.isDisabled=!1,g.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});g.thumbnailOverlays=M1u(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",g)}};
i5.prototype.transferStateChanged=i5.prototype.transferStateChanged;i5.prototype.downloadProgressChanged=i5.prototype.downloadProgressChanged;i5.prototype.dataChanged=i5.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],i5.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],i5.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],i5.prototype,"videoData",void 0);_.Y([_.x({selector:Aj,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"downloadProgress",void 0);_.Y([_.x(),_.V("design:type",Number)],i5.prototype,"relativeDateReference",void 0);_.Y([_.x({selector:_.y7,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"transferState",void 0);
_.Y([_.x({selector:fId,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"downloadState",void 0);_.Y([_.x({selector:cca,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"offlinePolicyAction",void 0);_.Y([_.x({selector:iSM,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Y([_.x({selector:Ty,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"downloadedVideoPlaybackPosition",void 0);_.Y([_.x({selector:IIu,selectorArgs:["videoData.videoId"]}),_.V("design:type",Object)],i5.prototype,"entityInfo",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],i5.prototype,"isDownloading",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],i5.prototype,"dataChanged",null);
_.Y([_.lq("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],i5.prototype,"downloadProgressChanged",null);_.Y([_.lq("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],i5.prototype,"transferStateChanged",null);
_.Y([_.K({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],i5);
_.X(i5,"ytd-downloaded-video-grid-video-renderer",function(){if(Nvl!==void 0)return Nvl;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Nvl=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var t$f;var o0=function(){};
o0.prototype.resolve=function(h,E){var g=this;return _.a(function(Z){return Z.yield(g.resolveCommand(h,E),0)})};var SOM,I0;SOM=Ql4(function(h){return h.targetId},{shouldPersist:!1});
I0=SOM.updateData;_.xLD=SOM.useUpdatableData;var wzB,DLf;wzB=Ql4(function(h){return h.targetId});
DLf=wzB.updateData;_.lxk=wzB.useUpdatableData;var rKB=yE$.bind(null,I0),mLM=yE$.bind(null,DLf);(function(h,E,g){var Z=_.e(g==null?void 0:g.updatedRenderer,_.ztl);return Z?h({targetId:E},function(){return Z}):!1}).bind(null,I0);var R0=function(){};
_.f(R0,o0);R0.prototype.resolveCommand=function(h){var E;return _.a(function(g){E=_.e(h,_.WNq);if(!E)return g.return();rKB(E.targetId,E);_.SK(g)})};var Pv=function(){var h=_.wD.apply(this,arguments)||this;h.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return h};
_.f(Pv,_.wD);_.p=Pv.prototype;_.p.configureContinuationPathMap=function(){return{}};
_.p.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.p.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.p.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.p.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.p.handleAppendContinuationItemsAction=function(h){var E=_.e(h,_.aYl);if(this.data&&this.data.targetId&&E&&this.continuationPathMap&&E.targetId===this.data.targetId){var g=sJz(h),Z=g&&this.continuationPathMap[g];if(Z&&g)if(h=this.get(Z,this.data)){a:{for(g=0;g<h.length;g++){var M=h[g],W=void 0,z=!!_.e((W=_.e(M,TGC))==null?void 0:W.content,_.SUm);if(_.e(M,_.Ec)||z)break a}g=h.length}Z="data."+Z;E.continuationItems?g===h.length-1?(this.pop(Z),this.push.apply(this,[Z].concat(_.$E(E.continuationItems)))):
g===h.length?this.push.apply(this,[Z].concat(_.$E(E.continuationItems))):this.splice.apply(this,[Z,g,1].concat(_.$E(E.continuationItems))):this.splice(Z,g,1);(_.J("web_enable_voting_animation")||_.J("enable_music_web_cairo_voting_animation"))&&_.Ra(this.hostElement,"yt-append-continuation-items-action-finished");_.Ra(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.O$(new _.xX("append continuation items does not exist",g));else _.O$(new _.xX("append continuation path does not exist",
g))}};
_.p.handleReloadContinuationItemsCommand=function(h){var E=_.e(h,_.WNq);if(this.data&&E){if(_.J("web_client_explore_hub")||_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))try{_.GF().resolve(R0).resolveCommand(h)}catch(W){}if(this.data.targetId&&this.continuationPathMap&&E.targetId===this.data.targetId&&(!_.J("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||E.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var g,Z=(g=E.slot)==null?void 0:
g.replace("RELOAD_CONTINUATION_SLOT_","");g=(h=sJz(h)+"-"+(Z==null?void 0:Z.toLowerCase()))&&this.continuationPathMap[h];if(!g||!h||!Z)_.O$(new _.xX("reload continuation path does not exist",h));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(E)){if(E.replaceWithFirstItem){var M;this.set("data."+g,((M=E.continuationItems)==null?0:M.length)?E.continuationItems[0]:{})}else this.set("data."+g,E.continuationItems?E.continuationItems:[]);this.continuationIsReloading=
!1;_.Ra(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.p.handleShowReloadUiCommand=function(h){h=_.e(h,qff);var E;((E=this.data)==null?0:E.targetId)&&(h==null?0:h.targetId)&&h.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Pv.prototype.observeData=Pv.prototype.observeData;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Pv.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Pv.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Pv.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Pv.prototype,"continuationIsReloading",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pv.prototype,"observeData",null);_.Y([_.DM()],Pv);_.Bv=[_.IU.YtComponentBehavior,_.Yl.YtActionHandlerBehavior,Pv.prototype];_.Ub={};_.Ub.YtNextContinuationBehavior=[_.NJ.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",_.qm(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.qm(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(h,E){h.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,E,{}):(h={locationRetrieved:function(g){this.makeNextContinuationRequest_(g,E,{})}.bind(this)},_.Ra(this.hostElement,"yt-retrieve-location",h))},
makeNextContinuationRequest_:function(h,E,g){_.Vp("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();h=E(h);var Z;this.canUseContextualNetworkManager_()&&(Z=this.getNetworkManager());Z||(Z=_.GF().resolve(_.kY));E=_.bF.instance;if(_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&E){Z=_.zv([h.startsWith("/")?h.substr(1):h]);var M,W;g=_.ic(E,{},Z,g==null?void 0:(M=g.context)==null?void 0:(W=M.clickTracking)==null?void 0:W.clickTrackingParams).then(function(z){return{response:z}})}else g=
this.nextContinuation.usePost?Z.postData(h,g):Z.fetchData(h);
g.then(this.updateNextContinuationData_.bind(this,h));this.pendingContinuationRequest_=g;this.startListeningForNavigate_()},
updateNextContinuationData_:function(h,E){var g=this;_.Vp("ncl");this.pendingContinuationRequest_=void 0;if(E){var Z={};this.nextContinuation&&(Z=this.nextContinuation);if(E.response&&E.response.continuationContents&&E.response.continuationContents[Z.continuationType]){h=E.response.continuationContents[Z.continuationType];var M=Z.header||"data.header",W=h[Z.responseHeaderKey||"header"];W&&this.set(M,W);M=Z.contentsArray||"data.contents";W=this.getContents_(h,Z.responseContentsKey||"contents")||[];
this.pathExists_(M)?(W.unshift(M),this.push.apply(this,W)):this.set(M,W);W&&(FKW(_.SQ(),E.response,this.hostElement,function(z){_.BX(g.hostElement,"yt-store-grafted-ve-action",[z])}),_.Ra(this.hostElement,"yt-next-continuation-data-updated",{continuationData:E,
page:this,contentsArray:M}));this.set(Z.continuationsArray||"data.continuations",h[Z.responseContinuationsKey||"continuations"]||[])}else E.reload?_.O$(new _.xX("Reloading from continuation is unsupported")):E.responseContext&&E.responseContext.errors||(delete E.xsrf_token,delete E.timing,delete E.endpoint,delete E.csn,E.responseContext&&delete E.responseContext.serviceTrackingParams,M={request:_.Qy(h,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(E).sort()},E.response&&(M.responseContentKeys=
Object.keys(E.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(M.continuationType=this.nextContinuation.continuationType.substr(0,256)),E=new _.xX("Malformed continuation",M),h.indexOf("/comment_service_ajax")==0?_.O$(E):_.$W(E)),this.set(Z.continuationsArray||"data.continuations",[])}else _.KI(new _.xX("Missing continuation response",h))},
getContents_:function(h,E){E=E.split(".");return _.Kt.getValueByKeys(h,E)},
pathExists_:function(h){var E=this;h=h.toString().split(".");for(var g=0;g<h.length;g++)if(E=E[h[g]],E===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var v5A;var Hpn;var L7=function(){var h=_.D.apply(this,arguments)||this;h.triggered_=!1;return h};
_.f(L7,_.D);_.p=L7.prototype;_.p.attached=function(){this.maybeTriggerAutoload()};
_.p.detached=function(){this.hasBeenTriggered_=!1};
_.p.onPrescanVisible=function(){this.onShow()};
_.p.onShow=function(){this.showButton||this.trigger()};
_.p.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Ra(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.p.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.p.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.p.computeLabel_=function(h,E){return h===void 0?null:h.label||!E?h.label:this.showMoreText_};
_.p.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.p.getContinuationUrl=function(h){var E={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.hl(h,E)};
_.p.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
L7.prototype.showButtonChanged_=L7.prototype.showButtonChanged_;L7.prototype.observeData_=L7.prototype.observeData_;_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],L7.prototype,"ytVisibilityBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],L7.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],L7.prototype,"showButton",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],L7.prototype,"showIcon",void 0);_.Y([_.x({computed:"computeLabel_(data, showButton)"}),_.V("design:type",Object)],L7.prototype,"label",void 0);_.Y([_.x({value:_.MR(_.NH("SHOW_MORE",void 0,"Show More"))}),_.V("design:type",Object)],L7.prototype,"showMoreText_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],L7.prototype,"spinnerActive_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],L7.prototype,"hasBeenTriggered_",void 0);
_.Y([_.x({value:void 0}),_.V("design:type",String)],L7.prototype,"observeVisibleOption",void 0);_.Y([_.x({value:void 0}),_.V("design:type",String)],L7.prototype,"observeHiddenOption",void 0);_.Y([_.x({value:"observe_once"}),_.V("design:type",Object)],L7.prototype,"observePrescanOption",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L7.prototype,"observeData_",null);
_.Y([_.Nm("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],L7.prototype,"showButtonChanged_",null);_.Y([_.yc({is:"yt-next-continuation",disableElementRegistration:!0})],L7);
_.X(L7,"yt-next-continuation",function(){if(Hpn===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;v5A===void 0&&(v5A=document.createElement("template"));var Z=v5A;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Hpn=h}h=Hpn;return h},{mode:2});var $Lm;var Kvl;var jB=function(){return _.D.apply(this,arguments)||this};
_.f(jB,_.D);jB.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jB.prototype,"data",void 0);_.Y([_.yc({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],jB);
_.X(jB,"yt-music-pass-small-feature-info-renderer",function(){if(Kvl===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;$Lm===void 0&&($Lm=document.createElement("template"));var Z=$Lm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Kvl=h}h=Kvl;return h},{mode:2});_.$P("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var ds=function(){var h=_.D.apply(this,arguments)||this;h.isCollapsible=!1;h.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return h};
_.f(ds,_.D);_.p=ds.prototype;_.p.computeIsCollapsible=function(h){return!!(((h==null?0:h.showMoreText)||(h==null?0:h.visibleRowCount))&&(h==null?0:h.isCollapsible))};
_.p.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.p.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.p.onIronResize=function(){var h=this;_.EQ(this,"updateGridInitItems",function(){h.maybeUpdateInitialItemsDisplayed()})};
_.p.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var h=this.getVisibleWidth();h!==0&&(h=Math.floor(h/214)*(this.data.visibleRowCount||2),h!==this.initialCount&&(this.initialCount=h,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.p.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.p.computeExpandVisible=function(h,E,g,Z){return h&&E&&g&&!!Z&&!!Z.showMoreText};
_.p.computeShowMoreButton=function(h){return{text:h,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.p.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.p.initCollapsed=function(){var h=this;this.ytLazyListBehavior.canShowMore=!1;var E;(this.collapsed=!((E=this.data)==null||!E.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.pQ(this,function(){_.U7(h.hostElement,"yt-refit-popups-action")})};
_.p.fillRestIfNotCollapsible=function(){var h=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!h||this.ytLazyListBehavior.fillRemainingListItems()};
_.p.computeViewAllHidden=function(h,E){return h||!E.viewAllEndpoint};
ds.prototype.fillRestIfNotCollapsible=ds.prototype.fillRestIfNotCollapsible;ds.prototype.initCollapsed=ds.prototype.initCollapsed;ds.prototype.onIronResize=ds.prototype.onIronResize;ds.prototype.persistentGuideChanged=ds.prototype.persistentGuideChanged;_.Y([_.t(_.F3),_.V("design:type",Object)],ds.prototype,"ironResizableBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],ds.prototype,"ytLazyListBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],ds.prototype,"ytNextContinuationBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],ds.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.t(_.Bv),_.V("design:type",Object)],ds.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ds.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],ds.prototype,"collapsed",void 0);_.Y([_.x(),_.V("design:type",Number)],ds.prototype,"initialCount",void 0);_.Y([_.x({computed:"computeShowMoreButton(data.showMoreText)"}),_.V("design:type",Object)],ds.prototype,"showMoreButton",void 0);
_.Y([_.x({computed:"computeIsCollapsible(data)"}),_.V("design:type",Object)],ds.prototype,"isCollapsible",void 0);_.Y([_.Sg("#items"),_.V("design:type",HTMLElement)],ds.prototype,"items",void 0);_.Y([_.lq("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ds.prototype,"persistentGuideChanged",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ds.prototype,"onIronResize",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ds.prototype,"initCollapsed",null);_.Y([_.lq("canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ds.prototype,"fillRestIfNotCollapsible",null);_.Y([_.K({is:"ytd-grid-renderer",disableElementRegistration:!0})],ds);
_.X(ds,"ytd-grid-renderer",function(){if(t$f!==void 0)return t$f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return t$f=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var C7=function(){return _.D.apply(this,arguments)||this};
_.f(C7,_.D);
C7.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"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],C7.prototype,"data",void 0);_.Y([_.K({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],C7);
_.X(C7,"ytd-carousel-ad-renderer",function(){if(JKk!==void 0)return JKk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JKk=h},{mode:1});var OpA;var J$=function(){return _.D.apply(this,arguments)||this};
_.f(J$,_.D);_.p=J$.prototype;_.p.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,J$.JSC$15372_CLICK_LOCATION_ID_MAP))};
_.p.onSitelinkTap=function(h){h.stopPropagation();var E,g,Z=h==null?void 0:(E=h.model)==null?void 0:(g=E.item)==null?void 0:g.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,h,!1)};
_.p.onTap=function(h){var E=this.data&&this.data.content&&this.data.content.navigationEndpoint;E&&this.ytSparklesClickLocationBehavior.handleClick(E,h,!1)};
_.p.sendImpression=function(){if(this.data&&this.data.content)for(var h=_.G(this.data.content.impressionEndpoints||[]),E=h.next();!E.done;E=h.next()){E=_.G(E.value.loggingUrls||[]);for(var g=E.next();!g.done;g=E.next())g=g.value,g.baseUrl&&Tn(g.baseUrl,g.attributionSrcMode)}};
J$.prototype.onTap=J$.prototype.onTap;J$.prototype.dataChanged=J$.prototype.dataChanged;J$.JSC$15372_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"]]);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],J$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],J$.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],J$.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],J$.prototype,"data",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J$.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],J$.prototype,"onTap",null);_.Y([_.K({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],J$);
_.X(J$,"ytd-promoted-sparkles-text-search-renderer",function(){if(OpA!==void 0)return OpA;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return OpA=h},{mode:1});var n5k;var eB=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-mute-ad-action":"handleMuteAd"};return h};
_.f(eB,_.D);_.p=eB.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.J("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.p.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.p.computeHasAdBadge=function(h){return!(h==null||!h.adBadge)};
_.p.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",eB.JSC$15381_DEFAULT_AD_BADGE_RENDERER),_.jg(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,eB.JSC$15381_CLICK_LOCATION_ID_MAP))};
_.p.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var h;(((h=this.data)==null?void 0:h.impressionCommands)||[]).forEach(function(E){E=_.G(E.loggingUrls||[]);for(var g=E.next();!g.done;g=E.next())g=g.value,g.baseUrl&&Tn(g.baseUrl,g.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.p.onTap=function(h){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint,Z;(E=(Z=this.data)==null?void 0:Z.thumbnailNavigationEndpoint)&&_.W3(_.Gw(h),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(E,h,!1):g&&this.ytSparklesClickLocationBehavior.handleClick(g,h,!1)};
_.p.handleMuteAd=function(){this.collapsed=!0};
_.p.attached=function(){var h=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ze.Object.defineProperties(eB.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var h;return!(((h=this.data)==null?void 0:h.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var h;return!(((h=this.data)==null?void 0:h.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.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}}});
eB.prototype.dataChanged=eB.prototype.dataChanged;
eB.JSC$15381_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"]]);
eB.JSC$15381_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.NH("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],eB.prototype,"ytdActiveViewBehavior",void 0);
_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],eB.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],eB.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eB.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],eB.prototype,"collapsed",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],eB.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],eB.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.V("design:type",Boolean)],eB.prototype,"fixAlignmentSmallScreens",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs_square")}}),
_.V("design:type",Boolean)],eB.prototype,"useBiggerThumbsSquare",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.mediaHoverOverlay"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"hideHoverOverlay",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"webSearchLayout",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"webSearchLayoutLandscape",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"webSearchLayoutSquare",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"sparklesCtaNoBackground",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.actionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"hideActionButton",null);_.Y([_.x({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],eB.prototype,"buttonOverride",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.V("design:type",Boolean)],eB.prototype,"hasNewAdBadge",void 0);_.Y([_.S("data.promotedSparklesWebStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eB.prototype,"useRoundedBadge",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eB.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],eB);
_.X(eB,"ytd-promoted-sparkles-web-renderer",function(){if(n5k!==void 0)return n5k;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return n5k=h},{mode:1});var XzC;var qx=function(){var h=_.D.apply(this,arguments)||this;h.isInlinePreviewTriggered=!1;h.enableMonoStyle=_.J("enable_default_mono_cta_migration_web_client");return h};
_.f(qx,_.D);_.p=qx.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.p.computeShowCta=function(h){return!(h==null||!h.ctaRenderer)};
_.p.onCtaClick=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.ctaRenderer)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.p.onWatchButtonClick=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.watchButtonRenderer)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.command;Z&&this.ytComponentBehavior.resolveCommand(Z)};
_.p.onTap=function(){};
_.p.dataChanged=function(){if(this.data){var h;_.J("enable_inline_muted_playback_on_web_search")&&((h=this.data)==null?0:h.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",qx.JSC$15385_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",qx.JSC$15385_DEFAULT_CLICK_LOCATION_BEHAVIOR,qx.JSC$15385_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(h=this.thumbnail.getElementsByTagName("a"),h.length>0&&(h=h.namedItem("thumbnail"))&&h.removeAttribute("href"));var E;if(((E=this.data)==null?0:E.forceImpAutoplay)&&_.J("enable_force_imp_autoplay_on_desktop_search")){var g;(g=this.JSC$15386_inlinePreviewHoverListener)==null||N0Z(g)}}};
_.p.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var h=_.G(this.data.impressionUrls),E=h.next();!E.done;E=h.next())E=E.value,SQV(E,wKx(E));this.data.impressionsFired=!0}};
_.p.maybeComputeHref=function(){return null};
_.p.computeIsShortDR=function(h){return!(h==null||!h.watchButtonRenderer)&&!(h==null||!h.ctaRenderer)&&!!this.enableShortDR};
_.p.computeIsNewUiOrShortDr=function(h){return!!this.enableUiUpdate||this.computeIsShortDR(h)};
_.p.computeIsNewUiAndNotShortDr=function(h){return!!this.enableUiUpdate&&!this.computeIsShortDR(h)};
_.p.computeHideAvatar=function(h){return!((h==null?0:h.channelThumbnail)&&this.computeIsNewUiOrShortDr(h))};
_.p.onClick=function(h){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;if(this.enableShortDR&&g&&(_.e(g,_.MH)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(g,h,!!_.e(g,_.MH)),h.stopPropagation();else if(g&&_.e(g,_.MH))this.ytSparklesClickLocationBehavior.handleClick(g,h,!0),h.stopPropagation();else if(g){var Z,M;((Z=this.data)==null?0:Z.navigationEndpoint)&&((M=this.data)==null?0:M.adPlaybackContextParams)&&(E=this.data.navigationEndpoint,h=this.data.adPlaybackContextParams,
E.commandMetadata&&_.e(E.commandMetadata,_.qH)&&_.e(E.commandMetadata,_.qH).url&&(E=_.uI(_.e(E.commandMetadata,_.qH).url).adurl)&&_.wXV(E)&&_.zG(_.QE(E),{encoded_ad_playback_context:h}));this.ytComponentBehavior.resolveCommand(g)}};
_.p.computeButtonOverride=function(h){if(this.computeIsNewUiOrShortDr(h))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.p.onThumbnailContainerClick=function(h){this.onClick(h)};
_.p.computeThumbnailWidth=function(h,E){return h?E==="MASSIVE"?600:E==="BIG"?500:E==="MEDIUM"?450:420:360};
_.p.attached=function(){var h=this,E;_.J("enable_inline_muted_playback_on_web_search")&&((E=this.data)==null?0:E.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){var h;_.J("enable_inline_muted_playback_on_web_search")&&((h=this.data)==null?0:h.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15386_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:g5C})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$15386_inlinePreviewHoverListener)==null||hN(h)};
qx.prototype.dataChanged=qx.prototype.dataChanged;qx.prototype.onTap=qx.prototype.onTap;qx.JSC$15385_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.NH("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};qx.JSC$15385_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
qx.JSC$15385_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"}];_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],qx.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],qx.prototype,"ytdActiveViewBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],qx.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],qx.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.Sg("#main-container"),_.V("design:type",HTMLElement)],qx.prototype,"mainContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],qx.prototype,"isInlinePreviewTriggered",void 0);_.Y([_.x(),_.V("design:type",Object)],qx.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],qx.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_video_display_compact_button_group_for_desktop_search")}}),
_.V("design:type",Boolean)],qx.prototype,"enableShortDR",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_vac_ui_update_for_desktop_search")}}),
_.V("design:type",Boolean)],qx.prototype,"enableUiUpdate",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],qx.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.V("design:type",Boolean)],qx.prototype,"showCta",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.V("design:type",Boolean)],qx.prototype,"isShortDr",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.V("design:type",Boolean)],qx.prototype,"isShortDrOrNewUi",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.V("design:type",Boolean)],qx.prototype,"isNewUiAndNotShortDr",void 0);_.Y([_.x({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],qx.prototype,"buttonOverride",void 0);_.Y([_.x({computed:"computeSecondaryButtonOverride(data)"}),_.V("design:type",Object)],qx.prototype,"secondaryButtonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],qx.prototype,"enableMonoStyle",void 0);
_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],qx.prototype,"thumbnail",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qx.prototype,"onTap",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qx.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],qx);
_.X(qx,"ytd-promoted-video-renderer",function(){if(XzC!==void 0)return XzC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return XzC=h},{mode:1});var YOl;var f7=function(){var h=_.D.apply(this,arguments)||this;h.useRoundedBadge=!0;h.sitelinkIds=[];return h};
_.f(f7,_.D);_.p=f7.prototype;
_.p.configureRendererStamper=function(){return{"data.menu":{id:_.J("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.p.dataChanged=function(){var h;(h=this.data)!=null&&h.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,f7.JSC$15391_CLICK_LOCATION_ID_MAP)};
_.p.onTap=function(h){var E,g=(E=this.data)==null?void 0:E.navigationCommand;g&&!_.W3(_.Gw(h),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(g,h,!1)};
_.p.onSitelinkTap=function(h){var E,g,Z=h==null?void 0:(E=h.model)==null?void 0:(g=E.item)==null?void 0:g.onTap;Z&&this.ytSparklesClickLocationBehavior.handleClick(Z,h,!1)};
_.p.configureSitelinkClickTargets=function(){var h=this,E,g,Z=(E=this.data)==null?void 0:(g=E.clickLocationTargets)==null?void 0:g.find(function(M){return M.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
Z&&_.UB(this.hostElement).querySelectorAll(".sitelink").forEach(function(M){_.jg(M,"yt-simple-endpoint",!0);h.sitelinkIds.push(M.id);var W,z;(W=h.ytSparklesClickLocationBehavior)==null||(z=W.clickTargetMap)==null||z.set(M.id,Z)})};
_.p.sendImpression=function(){var h,E,g=((h=this.data)==null?void 0:(E=h.impressionCommand)==null?void 0:E.loggingUrls)||[];h=_.G(g);for(E=h.next();!E.done;E=h.next())E=E.value,E.baseUrl&&Tn(E.baseUrl,E.attributionSrcMode)};
_.p.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ze.Object.defineProperties(f7.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
f7.prototype.onTap=f7.prototype.onTap;f7.prototype.dataChanged=f7.prototype.dataChanged;f7.JSC$15391_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"]]);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],f7.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],f7.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],f7.prototype,"showFavicon",null);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],f7.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],f7.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.V("design:type",Boolean)],f7.prototype,"enableThumbnailScalingFix",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],f7.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],f7.prototype,"onTap",null);_.Y([_.K({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],f7);
_.X(f7,"ytd-text-image-no-button-layout-renderer",function(){if(YOl!==void 0)return YOl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YOl=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var siB;var Nx=function(){var h=_.D.apply(this,arguments)||this;h.isInlinePlaybackState=!1;h.uiUpdate=_.J("web_modern_buttons");h.hideCta=_.J("hide_cta_for_home_web_video_ads");h.noBottomMargin=!1;h.animateInTimeStamp=_.cx("hide_cta_for_home_web_video_ads_animate_in_time");h.animateInCta=!1;h.isHovered=!1;h.enableMonoStyle=_.J("enable_default_mono_cta_migration_web_client");h.player=null;h.JSC$15398_playerEvents=new Map;h.JSC$15398_preventProgressSaveTimer=null;h.delayedCtaJobId=null;return h};
_.f(Nx,_.D);_.p=Nx.prototype;_.p.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.p.attached=function(){this.JSC$15398_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15398_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.J("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.p.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15398_playerEvents)};
_.p.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Nx.JSC$15397_DEFAULT_CLICK_LOCATION_BEHAVIOR,Nx.JSC$15397_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.p.hoverChanged=function(){var h=this;this.delayedCtaJobId&&(_.KP.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.J("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.lv(_.KP,function(){h.buttonContainer.classList.add("show-delayed-buttons")},_.cx("delayed_cta_on_web_delay_milliseconds")))};
_.p.setPlayer=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return(E=_.U7(h.hostElement,"yt-get-inline-preview-player-action"))&&E[0]?g.yield(E[0].getPlayerPromise(),3):g.jumpTo(0);h.player=g.yieldResult;h.ytPlayerListenerBehavior.listenToPlayerEvents(h.player,h.JSC$15398_playerEvents);_.SK(g)})};
_.p.onPlaybackStart=function(){var h=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15398_preventProgressSaveTimer=_.LO(_.KP,function(){h.JSC$15398_preventProgressSaveTimer=null},1E4))};
_.p.onVideoProgress=function(h){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&h>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.p.resetPreventProgressSaveTimer=function(){_.KP.cancelJob(this.JSC$15398_preventProgressSaveTimer);this.JSC$15398_preventProgressSaveTimer=null};
_.p.getSimpleString=function(h){return _.Wp(h)};
_.p.onClick=function(h){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint,Z;E=(Z=this.data)==null?void 0:Z.channelEndpoint;var M,W;((W=_.e((M=this.data)==null?void 0:M.adCtaButton,_.Gh))==null?0:W.command)&&_.W3(_.Gw(h),this.hostElement,["call-to-action"])||(E&&_.W3(_.Gw(h),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(E,h,!1):!_.W3(_.Gw(h),this.hostElement,
["secondary-button"])&&g&&(_.J("enable_short_dr_for_desktop_launchable")?(Z=!!_.e(g,_.MH),this.isInlinePlaybackState&&Z&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(g,h,Z)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(g,h,!0))))}};
_.p.updateWatchEndpointStartTime=function(){var h,E;this.player&&((h=this.data)==null?0:h.inlinePlaybackEndpoint)&&((E=this.data)==null?0:E.navigationEndpoint)&&!this.JSC$15398_preventProgressSaveTimer&&(h=Math.floor(this.player.getCurrentTime()),_.e(this.data.navigationEndpoint,_.MH).startTimeSeconds=h,_.e(this.data.inlinePlaybackEndpoint,_.MH).startTimeSeconds=h)};
_.p.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.p.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ze.Object.defineProperties(Nx.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.J("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.watchButton)&&!((E=this.data)==null||!E.adCtaButton)}}});
Nx.prototype.hoverChanged=Nx.prototype.hoverChanged;Nx.prototype.dataChanged=Nx.prototype.dataChanged;
Nx.JSC$15397_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"]]);
Nx.JSC$15397_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"}];
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Nx.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Nx.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],Nx.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],Nx.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Nx.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"isInlinePlaybackState",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Nx.prototype,"miniMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"uiUpdate",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"hideCta",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"noBottomMargin",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"animateInCta",void 0);_.Y([_.x({computed:"computeButtonOverride(uiUpdate)"}),_.V("design:type",Object)],Nx.prototype,"buttonOverride",void 0);
_.Y([_.x({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.V("design:type",Object)],Nx.prototype,"secondaryButtonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"isHovered",void 0);_.Y([_.Sg("#button-container"),_.V("design:type",HTMLElement)],Nx.prototype,"buttonContainer",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Nx.prototype,"typographyBump",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nx.prototype,"typographyBumpV2",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Nx.prototype,"enableMonoStyle",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nx.prototype,"dataChanged",null);
_.Y([_.Nm("isHovered"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Nx.prototype,"hoverChanged",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Nx.prototype,"isButtonGroup",null);_.Y([_.K({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Nx);
_.X(Nx,"ytd-ad-inline-playback-meta-block",function(){if(siB!==void 0)return siB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return siB=h},{mode:_.UQ("kevlar_poly_si_batch_j065")?1:2});var V$k;var t$=function(){var h=_.D.apply(this,arguments)||this;h.noBottomMargin=!1;h.isInlinePreviewTriggered=!1;h.JSC$15403_activeViewMeasurementDataResolver=_.hU();return h};
_.f(t$,_.D);_.p=t$.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var h=this;this.updateInlinePreviewHoverListeners();this.JSC$15403_activeViewMeasurementDataResolver.promise.then(function(E){h.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners();_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15403_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.JSC$15403_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:g5C})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$15403_inlinePreviewHoverListener)==null||hN(h)};
_.p.onDataChanged=function(){var h;((h=this.data)==null?0:h.activeView)&&this.JSC$15403_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",t$.JSC$15402_DEFAULT_CLICK_LOCATION_BEHAVIOR,t$.JSC$15402_CLICK_LOCATION_ID_MAP);this.thumbnail&&(h=this.thumbnail.getElementsByTagName("a"),h.length>0&&(h=h.namedItem("thumbnail"))&&h.removeAttribute("href"));var E;if((E=this.data)==
null?0:E.forceImpAutoplay){var g;(g=this.JSC$15403_inlinePreviewHoverListener)==null||N0Z(g)}};
_.p.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.p.onThumbnailContainerClick=function(h){if(this.data&&this.data.navigationEndpoint){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(g,h,!!_.e(g,_.MH));h.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var h=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,g,Z=(g=_.e((E=this.data)==null?void 0:E.onImpression,_.CZ))==null?void 0:g.commands;Z&&(Z.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;h.ytComponentBehavior.resolveCommand(M)}),this.data.impressionsFired=!0)}};
_.ze.Object.defineProperties(t$.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$15403_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
t$.prototype.onTypographyBumpChanged=t$.prototype.onTypographyBumpChanged;t$.prototype.onDataChanged=t$.prototype.onDataChanged;t$.JSC$15402_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);t$.JSC$15402_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"}];
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],t$.prototype,"ytComponentBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],t$.prototype,"ytdActiveViewBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],t$.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],t$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],t$.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.LV),_.V("design:type",Object)],t$.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],t$.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],t$.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],t$.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],t$.prototype,"noBottomMargin",void 0);
_.Y([_.x(),_.V("design:type",Object)],t$.prototype,"isInlinePreviewTriggered",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],t$.prototype,"miniMode",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],t$.prototype,"typographyBump",void 0);_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],t$.prototype,"thumbnail",void 0);_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],t$.prototype,"JSC$15403_dismissibleMedia",void 0);
_.Y([_.Sg("ytd-ad-inline-playback-meta-block"),_.V("design:type",HTMLElement)],t$.prototype,"adInlinePlaybackMetaBlock",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t$.prototype,"onDataChanged",null);_.Y([_.lq("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t$.prototype,"onTypographyBumpChanged",null);
_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],t$.prototype,"isHovered",null);_.Y([_.K({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],t$);
_.X(t$,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(V$k!==void 0)return V$k;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return V$k=h},{mode:1});var ksA;var SB=function(){var h=_.D.apply(this,arguments)||this;h.isInlinePreviewTriggered=!1;h.JSC$15406_activeViewMeasurementDataResolver=_.hU();return h};
_.f(SB,_.D);_.p=SB.prototype;_.p.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.attached=function(){var h=this;this.updateInlinePreviewHoverListeners();this.JSC$15406_activeViewMeasurementDataResolver.promise.then(function(E){h.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)})};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15406_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.JSC$15406_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:g5C})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$15406_inlinePreviewHoverListener)==null||hN(h)};
_.p.onDataChanged=function(){var h;((h=this.data)==null?0:h.activeView)&&this.JSC$15406_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",SB.JSC$15405_DEFAULT_CLICK_LOCATION_BEHAVIOR,SB.JSC$15405_CLICK_LOCATION_ID_MAP);this.thumbnail&&(h=this.thumbnail.getElementsByTagName("a"),h.length>0&&(h=h.namedItem("thumbnail"))&&h.removeAttribute("href"))};
_.p.onThumbnailContainerClick=function(h){if(this.data&&this.data.navigationEndpoint){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(g,h,!0);h.stopPropagation()}};
_.p.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.p.impressionLog=function(){var h=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,g,Z=(g=_.e((E=this.data)==null?void 0:E.onImpression,_.CZ))==null?void 0:g.commands;Z&&(Z.forEach(function(M){M.clickTrackingParams&&delete M.clickTrackingParams;_.GF().resolve(_.zF).resolveCommand(M,{form:{element:h.hostElement}})}),this.data.impressionsFired=!0)}};
_.ze.Object.defineProperties(SB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$15406_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
SB.prototype.onDataChanged=SB.prototype.onDataChanged;SB.JSC$15405_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);SB.JSC$15405_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"}];_.Y([_.t(z3),_.V("design:type",Object)],SB.prototype,"ytdActiveViewBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],SB.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],SB.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],SB.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],SB.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],SB.prototype,"isInlinePreviewTriggered",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],SB.prototype,"miniMode",void 0);_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],SB.prototype,"thumbnail",void 0);
_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],SB.prototype,"JSC$15406_dismissibleMedia",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SB.prototype,"onDataChanged",null);_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],SB.prototype,"isHovered",null);_.Y([_.K({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],SB);
_.X(SB,"ytd-video-display-full-buttoned-renderer",function(){if(ksA!==void 0)return ksA;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ksA=h},{mode:1});var pu=function(h,E,g,Z){Z=Z===void 0?!1:Z;_.g$.call(this,h);this.adsClientErrorMessage=g;this.aggressivelySample=Z;this.args=[];E&&this.args.push(E)};
_.f(pu,_.g$);var MT=function(h,E,g,Z){Z=Z===void 0?!1:Z;_.g$.call(this,h);this.adsClientErrorMessage=g;this.aggressivelySample=Z;this.args=[];E&&this.args.push(E)};
_.f(MT,_.g$);var yKm=function(h){_.wO.call(this);var E=this;this.initializationFunction=h;this.instance=null;this.addOnDisposeCallback(function(){_.p8(E.instance);E.instance=null})};
_.f(yKm,_.wO);yKm.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.bv("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var goz=function(){var h=new Map;[].forEach(function(E){h.set(E.JSC$30492_getType(),E)});
this.getters=h};new Promise(function(){});var baZ=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"]]),AEN=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"}]]),Fvl=function(h){this.experimentApiProvider=h;h=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=h<.1};var x_=function(h,E,g,Z){_.wO.call(this);this.adsControlFlowEventListeners=E;this.adEventLogger=g;this.experimentApiProvider=Z;this.adsControlFlowManagerHelper=h(this,this,this,this,this);_.jf(this,this.adsControlFlowManagerHelper);h=_.G(E);for(E=h.next();!E.done;E=h.next())_.jf(this,E.value)};
_.f(x_,_.wO);var AKB=function(h,E,g,Z){ws(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",E,g,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z);h=_.G(h.adsControlFlowEventListeners);for(Z=h.next();!Z.done;Z=h.next())AKB(Z.value,E,g)};
_.p=x_.prototype;_.p.onOpportunityProcessedExternallyManaged=function(h,E,g,Z){ws(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",h,g,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z)};
_.p.onSlotReceivedExternallyManaged=function(h,E){Dk(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",h,E)};
_.p.onSlotEntered=function(h){if(l5(this.adsControlFlowManagerHelper,h)!=null){Dk(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",h);this.adsControlFlowManagerHelper.onSlotEntered(h);for(var E=_.G(this.adsControlFlowEventListeners),g=E.next();!g.done;g=E.next())g.value.onSlotEntered(h);if(l5(this.adsControlFlowManagerHelper,h)!=null&&l5(this.adsControlFlowManagerHelper,h).isOccupyingSlotType()&&rs(this.adsControlFlowManagerHelper,h)&&!Tvl(this.adsControlFlowManagerHelper,h)){var Z;mR(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",h,(Z=rs(this.adsControlFlowManagerHelper,h))!=null?Z:void 0);h=l5(this.adsControlFlowManagerHelper,h);h.slotLifecycleStage!=="entered"&&vv(h.slot,h.slotLifecycleStage,"enterLayoutForSlot");h.slotLifecycleStage="rendering";h.registeredLayoutRenderingAdapter.startRendering(h.layout)}}};
_.p.onSlotExited=function(h){if(l5(this.adsControlFlowManagerHelper,h)!=null){Dk(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",h);this.adsControlFlowManagerHelper.onSlotExited(h);for(var E=_.G(this.adsControlFlowEventListeners),g=E.next();!g.done;g=E.next())g.value.onSlotExited(h);l5(this.adsControlFlowManagerHelper,h)!=null&&l5(this.adsControlFlowManagerHelper,h).markedForUnscheduleAfterOutboundAdapterRequests&&bpH(this,h)}};
_.p.onLayoutReceivedExternallyManaged=function(h,E,g){h.managerLayer!=="core"&&mR(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",h,E,g)};
var uHH=function(h,E,g){if(l5(h.adsControlFlowManagerHelper,E)!=null){mR(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,g);h=_.G(h.adsControlFlowEventListeners);for(var Z=h.next();!Z.done;Z=h.next())uHH(Z.value,E,g)}};
x_.prototype.onLayoutExited=function(h,E,g){if(l5(this.adsControlFlowManagerHelper,h)!=null){mR(this.adEventLogger,Tdx(g),h,E);this.adsControlFlowManagerHelper.onLayoutExited(h,E);for(var Z=_.G(this.adsControlFlowEventListeners),M=Z.next();!M.done;M=Z.next())M.value.onLayoutExited(h,E,g);(g=rs(this.adsControlFlowManagerHelper,h))&&E.layoutId===g.layoutId&&QiM(this,h)}};
x_.prototype.disposeInternal=function(){var h=hXD(this.adsControlFlowManagerHelper);h=_.G(h);for(var E=h.next();!E.done;E=h.next())bpH(this,E.value);_.wO.prototype.disposeInternal.call(this)};
var bpH=function(h,E){if(l5(h.adsControlFlowManagerHelper,E)!=null)if(l5(h.adsControlFlowManagerHelper,E).JSC$30522_isSlotExitRequested()||l5(h.adsControlFlowManagerHelper,E).JSC$30522_isLayoutExitRequested())l5(h.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(l5(h.adsControlFlowManagerHelper,E).isOccupyingSlotType())l5(h.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0,QiM(h,E);else if(l5(h.adsControlFlowManagerHelper,E).JSC$30522_isSlotFillRequested())l5(h.adsControlFlowManagerHelper,
E).markedForUnscheduleAfterOutboundAdapterRequests=!0,l5(h.adsControlFlowManagerHelper,E)!=null&&(Dk(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",E),E=l5(h.adsControlFlowManagerHelper,E),E.fulfillmentLifecycleStage="fill_cancel_requested",E.registeredFulfillmentAdapter.cancelSlotFilling());else{var g=rs(h.adsControlFlowManagerHelper,E),Z;h.experimentApiProvider.get();(Z=_.J("h5_enable_layout_unscheduling_events"))&&(g?EHC(h,E,g):_.bv(Error("Rh"),E,g,void 0,!1));Dk(h.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",E);var M=l5(h.adsControlFlowManagerHelper,E),W=E.slotEntryTrigger,z=M.registeredSlotEntryTriggerAdapters.get(W.triggerId);z&&(z.unregisterTrigger(W),M.registeredSlotEntryTriggerAdapters.delete(W.triggerId));W=_.G(E.slotFulfillmentTriggers);for(z=W.next();!z.done;z=W.next()){z=z.value;var c=M.registeredFulfillmentTriggerAdapters.get(z.triggerId);c&&(c.unregisterTrigger(z),M.registeredFulfillmentTriggerAdapters.delete(z.triggerId))}W=_.G(E.slotExpirationTriggers);
for(z=W.next();!z.done;z=W.next())if(z=z.value,c=M.registeredExpirationTriggerAdapters.get(z.triggerId))c.unregisterTrigger(z),M.registeredExpirationTriggerAdapters.delete(z.triggerId);M.hasLayout()&&(W=M.layout,Hv(M,W.layoutExitNormalTriggers),Hv(M,W.layoutExitSkipTriggers),Hv(M,W.layoutExitMuteTriggers),Hv(M,W.layoutExitUserInputSubmittedTriggers),Hv(M,W.layoutExitUserCancelledTriggers));M.registeredFulfillmentAdapter=void 0;M.registeredSlotAdapter!=null&&(M.registeredSlotAdapter.release(),M.registeredSlotAdapter=
void 0);M.registeredLayoutRenderingAdapter!=null&&(M.registeredLayoutRenderingAdapter.release(),M.registeredLayoutRenderingAdapter=void 0);M=h.adsControlFlowManagerHelper;l5(M,E)&&(M=gHD(M,E.slotType+"_"+E.slotPhysicalPosition))&&M.delete(E.slotId);Dk(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);h=_.G(h.adsControlFlowEventListeners);for(M=h.next();!M.done;M=h.next())M=M.value,M.onSlotUnscheduled(E),g&&!Z&&EHC(M,E,g)}},EHC=function(h,E,g){mR(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
E,g);
mR(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",E,g);h=_.G(h.adsControlFlowEventListeners);for(var Z=h.next();!Z.done;Z=h.next())Z=Z.value,g&&EHC(Z,E,g)},QiM=function(h,E){if(l5(h.adsControlFlowManagerHelper,E)!=null&&l5(h.adsControlFlowManagerHelper,E).isOccupyingSlotType()){var g=rs(h.adsControlFlowManagerHelper,E);
if(g&&Tvl(h.adsControlFlowManagerHelper,E)){if(l5(h.adsControlFlowManagerHelper,E)!=null){var Z=h.adEventLogger,M;var W=((M=AEN.get("abandoned"))==null?void 0:M.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";mR(Z,W,E,g);h=l5(h.adsControlFlowManagerHelper,E);h.slotLifecycleStage!=="rendering"&&vv(h.slot,h.slotLifecycleStage,"exitLayout");h.slotLifecycleStage="rendering_stop_requested";h.registeredLayoutRenderingAdapter.stopRendering(g,"abandoned")}}else{Dk(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
E);try{Z=l5(h.adsControlFlowManagerHelper,E);if(!Z)throw new MT("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Z.slotLifecycleStage!=="enter_requested"&&Z.slotLifecycleStage!=="entered"&&Z.slotLifecycleStage!=="rendering"&&vv(Z.slot,Z.slotLifecycleStage,"exitSlot");Z.slotLifecycleStage="exit_requested";if(Z.registeredSlotAdapter===void 0)throw Z.slotLifecycleStage="scheduled",new MT("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
Z.registeredSlotAdapter.exit()}catch(z){z instanceof MT&&z.adsClientErrorMessage?(ZRl(h.adEventLogger,z.adsClientErrorMessage,E),_.bv(z,E,void 0,void 0,z.aggressivelySample)):(ZRl(h.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",E),_.bv(z,E))}}}};var $_=function(h,E,g,Z,M,W){_.wO.call(this);this.registry=h;this.experimentApiProvider=W;this.slotMap=new Map};
_.f($_,_.wO);var gHD=function(h,E){return(h=h.slotMap.get(E))?h:new Map},l5=function(h,E){return gHD(h,E.slotType+"_"+E.slotPhysicalPosition).get(E.slotId)},hXD=function(h){var E=[];
h.slotMap.forEach(function(g){g=_.G(g.values());for(var Z=g.next();!Z.done;Z=g.next())E.push(Z.value.slot)});
return E};
$_.prototype.onSlotEntered=function(h){h=l5(this,h);h.slotLifecycleStage!=="enter_requested"&&vv(h.slot,h.slotLifecycleStage,"onSlotEntered");h.slotLifecycleStage="entered"};
var Tvl=function(h,E){h=l5(h,E);return h.hasLayout()&&h.isRendering()},rs=function(h,E){(h=l5(h,E))?h.hasLayout()&&!h.layout&&_.bv("Unexpected empty layout",E):_.bv("Unexpected undefined slotState",E);
return(h==null?void 0:h.layout)||null};
$_.prototype.onSlotExited=function(h){h=l5(this,h);h.slotLifecycleStage!=="exit_requested"&&vv(h.slot,h.slotLifecycleStage,"onSlotExited");h.slotLifecycleStage="scheduled"};
$_.prototype.onLayoutExited=function(h,E){h=l5(this,h);h.isPrimaryLayout(E)&&(h.slotLifecycleStage!=="rendering_stop_requested"&&vv(h.slot,h.slotLifecycleStage,"onLayoutExited"),h.slotLifecycleStage="entered")};
var Hv=function(h,E){E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=h.registeredLayoutExitTriggerAdapters.get(g.triggerId);Z&&(Z.unregisterTrigger(g),h.registeredLayoutExitTriggerAdapters.delete(g.triggerId))}},vv=function(h,E,g){_.bv("Slot stage was "+E+" when calling method "+g,h)};var W$k=function(h){_.wO.call(this);this.deps=h;this.JSC$15456_adsControlFlowManager=MwC(this)};
_.f(W$k,_.wO);var MwC=function(h){var E=new x_(function(g,Z,M,W){return new $_(h.deps.registry,g,Z,M,W,h.deps.experimentApiProvider)},new Set(EoN(h.deps.registry).concat(h.deps.listeners)),h.deps.adEventLogger,h.deps.experimentApiProvider);
_.jf(h,E);return E};var veN=function(){};var pOA=function(h,E){_.wO.call(this);this.experimentApiProvider=h;this.eventLoggingSettingsProvider=E;this.eventCount=0;this.premiumAdSeenEventLogger=HZz()()};
_.f(pOA,_.wO);pOA.prototype.logEvent=function(h){ws(this,h)};
var Dk=function(h,E,g,Z){ws(h,E,void 0,void 0,void 0,g,void 0,void 0,void 0,g.adSlotLoggingData,void 0,void 0,Z)},mR=function(h,E,g,Z,M){ws(h,E,void 0,void 0,void 0,g,Z?Z:void 0,void 0,void 0,g.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0,void 0,M);
g=_.GF().resolve(_.pl(wQ))==null?void 0:DP();E=g==null?void 0:g.adsSeenHotConfig;g=g==null?void 0:g.adsHotConfig;(E==null?0:E.logOnAdsSeen)&&(g==null?0:g.webEnablePremiumAdsSeenLogging)&&G4f(h,Z?Z:void 0,M)},ZRl=function(h,E,g){ws(h,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,g,void 0,void 0,void 0,g.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:E})},ws=function(h,E,g,Z,M,W,z,c,I,B,U,L,d){d=d===void 0?0:d;
zXC(h.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"slot:",W,"layout:",z,"ping:",c,"Opportunity:",{opportunityType:g,associatedSlotId:Z,slotsFromOpportunity:M,triggerBundle:I,adSlotLoggingData:B,adLayoutLoggingData:U});try{var C=function(){h.experimentApiProvider.get();if(E!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){E||_.bv("Empty PACF event type",W,z);var q=h.eventLoggingSettingsProvider.get();var w;(w=q.alwaysIncludeDebugData)||(q.experimentApiProvider.get(),w=
!1);q=w;w={eventType:E,eventOrder:++h.eventCount};var r={};W&&(r.slotData=QB$(q,W));if(z){var v={type:z.layoutType,controlFlowManagerLayer:baZ.get(z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q&&(v.debugData={layoutId:z.layoutId});r.layoutData=v}c&&(r.pingData={pingDispatchStatus:c.dispatchStatus,serializedAdPingMetadata:c.ping.serializedAdPingMetadata,pingIndex:c.index});I&&(r.triggerData=ukz(I.trigger,I.category));g&&(r.opportunityData=hi$(q,g,Z,M));w.adClientData=r;B&&(w.serializedSlotAdServingData=
B.serializedSlotAdServingDataEntry);U&&(w.serializedAdServingData=U.serializedAdServingDataEntry);L&&(w.errorInfo=L);_.vT("adsClientStateChange",{adsClientEvent:w})}};
d&&d>0?_.xW(_.xu(),function(){return C()},d):C()}catch(q){zXC(h.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.xW(_.xu(),function(){_.bv(q instanceof Error?q:String(q),W,z,{pacf_message:"exception during pacf logging"})})}},G4f=function(h,E,g){if(E){var Z=E.adLayoutLoggingData;
_.xW(_.xu(),function(){h.premiumAdSeenEventLogger!=null&&Z&&_.vT("adsSeenClientLogging",{serializedAdServingDataEntry:Z.serializedAdServingDataEntry})},g!=null?g:0)}};var ahM=function(h,E){pOA.call(this,h,E)};
_.f(ahM,pOA);var c4F=function(){},zXC=function(h,E){return _.J(E)};var oHM=function(){var h=new iRM;this.JSC$15481_adsControlFlowManager=(new W$k(h)).JSC$15456_adsControlFlowManager},iRM=function(){_.wO.call(this);
var h=this;this.experimentApiProvider=new yKm(function(){return new c4F});
var E=new yKm(function(){return new Fvl(h.experimentApiProvider)});
this.adEventLogger=new ahM(this.experimentApiProvider,E);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.f(iRM,_.wO);var Ihf=function(){},RXB,K7=function(){RXB||(RXB=new Ihf);
return RXB},Ob=function(h){if(!h.JSC$15492_externallyManagedSlotAdapterCallback){var E=(new oHM).JSC$15481_adsControlFlowManager;
h.JSC$15492_externallyManagedSlotAdapterCallback=E}return h.JSC$15492_externallyManagedSlotAdapterCallback},Pal=function(h,E,g){var Z=E.opportunityType,M=Error("Sh");
if(Z!==void 0){var W=Ob(h);AKB(W,Z,void 0,g)}else _.bv(M,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});W=[];if(E.adSlotAndLayoutMetadata!==void 0){E=_.G(E.adSlotAndLayoutMetadata);for(var z=E.next();!z.done;z=E.next()){var c=z.value;if(z=c.adSlotMetadata)if(W.push(z),h.onSlotReceivedExternallyManaged(z,g),c.adLayoutMetadata){c=_.G(c.adLayoutMetadata);for(var I=c.next();!I.done;I=c.next())h.onLayoutReceivedExternallyManaged(z,I.value,g)}else g>0&&_.bv("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else g>0&&_.bv("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else g>0&&_.bv("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+Z,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(Z!==void 0)h.onOpportunityProcessedExternallyManaged(Z,W,void 0,g);else _.bv(M,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Ihf.prototype.onSlotReceivedExternallyManaged=function(h,E){h=Wg(h);if(h instanceof MT)_.bv(h,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Ob(this).onSlotReceivedExternallyManaged(h,E)};
Ihf.prototype.onLayoutReceivedExternallyManaged=function(h,E,g){h=Wg(h);E=ZEz(E);if(h instanceof MT)_.bv(h,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(E instanceof pu)_.bv(E,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Ob(this).onLayoutReceivedExternallyManaged(h,E,g)};
Ihf.prototype.onOpportunityProcessedExternallyManaged=function(h,E,g,Z){var M=[];E=_.G(E);for(var W=E.next();!W.done;W=E.next())W=Wg(W.value),W instanceof MT?_.bv(W,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):M.push(W);Ob(this).onOpportunityProcessedExternallyManaged(h,M,g,Z)};
var Bzn=function(h,E){E=Wg(E);if(E instanceof MT)_.bv(E,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var g=Ob(h);Dk(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",E);g=_.G(g.adsControlFlowEventListeners);for(var Z=g.next();!Z.done;Z=g.next())Z=l5(Z.value,E),Z.slotLifecycleStage!=="not_scheduled"&&vv(Z.slot,Z.slotLifecycleStage,"onSlotScheduled"),Z.slotLifecycleStage="scheduled";h=Ob(h);Dk(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",E);h=_.G(h.adsControlFlowEventListeners);
for(g=h.next();!g.done;g=h.next())g.value.onSlotEntered(E)}},Uek=function(h,E){E=Wg(E);
if(E instanceof MT)_.bv(E,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var g=Ob(h);Dk(g.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",E);g=_.G(g.adsControlFlowEventListeners);for(var Z=g.next();!Z.done;Z=g.next())Z.value.onSlotExited(E);h=Ob(h);Dk(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);h=_.G(h.adsControlFlowEventListeners);for(g=h.next();!g.done;g=h.next())g.value.onSlotUnscheduled(E)}},L$M=function(h,E,g){E=Wg(E);
g=ZEz(g);if(E instanceof MT)_.bv(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(g instanceof pu)_.bv(g,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var Z=Ob(h);mR(Z.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",E,g);Z=_.G(Z.adsControlFlowEventListeners);for(var M=Z.next();!M.done;M=Z.next())M.value.onLayoutScheduled(E,g);h=Ob(h);mR(h.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,g);h=_.G(h.adsControlFlowEventListeners);
for(Z=h.next();!Z.done;Z=h.next())uHH(Z.value,E,g)}},n7=function(h,E,g){E=Wg(E);
g=ZEz(g);if(E instanceof MT)_.bv(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(g instanceof pu)_.bv(g,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var Z=Ob(h);mR(Z.adEventLogger,Tdx("normal"),E,g);Z=_.G(Z.adsControlFlowEventListeners);for(var M=Z.next();!M.done;M=Z.next())M.value.onLayoutExited(E,g,"normal");h=Ob(h);h=_.G(h.adsControlFlowEventListeners);for(Z=h.next();!Z.done;Z=h.next())EHC(Z.value,E,g)}};_.Xu=_.O(function(h){var E=_.au(h,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});h=Object.assign({},E);var g=E.data;E=E.customCommandResolver;var Z=(delete h.data,delete h.customCommandResolver,h);h=_.c6({visibilityCallback:function(c,I){var B,U=(B=g().interaction)==null?void 0:B.onFirstVisible;c&&(U&&_.Tl(U),Z.setOnErrorHandler()&&MON(I))},
showOption:_.Nq});E=_.VS(function(){return g().interaction},E,function(){var c;
return(c=Z.listenToTapEvent)==null?void 0:c.call(Z)});
var M=_.G(_.Bm(!1,void 0,"wAC0Lc")),W=M.next().value,z=M.next().value;M=_.J7(function(c){var I;((I=Z.setTouchEndHandler)==null?0:I.call(Z))&&!W()&&(c.currentTarget.click(),z(!0),setTimeout(function(){z(!1)},100));
return!1});
return _.R("ad-image-view-model",{class:function(){var c,I=[((c=g().interaction)==null?0:c.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],B;((B=Z.isGridViewEnabled)==null?0:B.call(Z))&&I.push("ytwAdImageViewModelHostInGridView");return I.join(" ")},
el:_.zT(h,E),"on:touchend":M},_.R("div",{class:"ytwAdImageViewModelHostImageContainer"},_.R(_.pO,{data:function(){var c;return{sources:g().imageSources,contentMode:(c=g().imageProperties)==null?void 0:c.contentMode}},
alt:function(){var c,I;return((c=g().interaction)==null?void 0:(I=c.accessibility)==null?void 0:I.label)||""},
targetHeight:Z.targetHeight,targetWidth:Z.targetWidth,preserveHeight:Z.preserveHeight,preserveWidth:Z.preserveWidth,useWidth:Z.useWidth,style:function(){var c,I;return"vertical-align: bottom;"+(((c=g().background)==null?0:c.color)?"background-color:"+_.bU((I=g().background)==null?void 0:I.color)+";":"")},
className:function(){return Z.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var c,I;return(I=(c=Z.setDraggable)==null?void 0:c.call(Z))!=null?I:void 0}})))},"sb");var j3B=_.O(function(h){var E=h.data,g=h.listenToTapEvent,Z=function(){};
return _.R("ad-button-hover-overlay-view-model",{"on:click":_.J7(function(M){if(_.J("enable_web_home_top_landscape_image_layout_legacy_click_command")){var W,z=(W=E().interaction)==null?void 0:W.onTap;z&&_.Ra(M.currentTarget,"yt-navigate",{endpoint:_.kB(z)})}}),
class:function(){var M;return((M=E().interaction)==null?0:M.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(M){var W,z=(W=E().interaction)==null?void 0:W.onFirstVisible;M&&z&&_.Tl(z)},
showOption:_.Nq}),_.VS(function(){return E().interaction},void 0,function(){return!_.J("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(g==null?void 0:g())}))},function(){return _.J("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.R(_.Sv,{data:function(){return E().button}},{adButtonViewModel:function(M){return _.R(_.SV,{data:M.data,
customCommandResolver:Z})}}):_.R(_.Sv,{data:function(){return E().button}},{adButtonViewModel:_.SV})}())},"tb");var GK;_.I9(_.O(function(h){var E=h.data;h=_.c6({visibilityCallback:function(c,I){if(c){var B;(c=(B=E().interaction)==null?void 0:B.onFirstVisible)&&_.Tl(c);var U;if(B=(U=E().adLayoutData)==null?void 0:U.activeViewData)zK(I,B),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ad(I)})}else _.J("stop_av_measurement_on_detach")&&ad(I)},
showOption:_.Nq,hideOption:tY});var g=_.VS(function(){return E().interaction},void 0,function(){return!0}),Z=_.G(_.Bm(!1,void 0,"VNDDT")),M=Z.next().value,W=Z.next().value;
Z=_.J7(function(){W(!0)});
var z=_.J7(function(){W(!1)});
return _.R("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.zT(h,iEW,g),"on:mouseenter":Z,"on:mouseleave":z},_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.fO({"max-width":function(){return _.J("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.R("div",{class:function(){var c;
a:{var I;switch((c=_.e(E().thumbnailImage,RPn))==null?void 0:(I=c.imageProperties)==null?void 0:I.renderingAspect){case "RENDERING_ASPECT_SQUARE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}c=void 0}return c}},_.R(_.Sv,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(c){return _.R(_.Xu,
{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.J("enable_top_landscape_image_experiment_dom_id_web")})}})),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.P,{cond:function(){var c,I,B;
return(c=_.e(E().thumbnailImage,RPn))==null?void 0:(I=c.imageProperties)==null?void 0:(B=I.overlayIcon)==null?void 0:B.iconImage},
then:function(c){return _.R(_.pO,{data:c,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.R("div",{class:function(){return M()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.R(_.Sv,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(c){return _.R(j3B,
{data:c.data,
listenToTapEvent:!0})}}))),_.R("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.R(_.Sv,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.R(v0,{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.J("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;h=_.c6({visibilityCallback:function(c,I){if(c){var B;(c=(B=E().interaction)==null?void 0:B.onFirstVisible)&&_.Tl(c);var U;if(B=(U=E().adLayoutData)==null?void 0:U.activeViewData)zK(I,B),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ad(I)})}else _.J("stop_av_measurement_on_detach")&&ad(I)},
showOption:_.Nq,hideOption:tY});var g=_.VQ(_.sL),Z=_.VS(function(){return E().interaction}),M={},W={},z={};
return _.R("square-image-layout-view-model",{class:_.CO("ytwSquareImageLayoutViewModelHost",(M.ytwSquareImageLayoutViewModelHostColumn=g,M)),el:_.zT(h,ooO,Z)},_.R("div",{class:_.CO("ytwSquareImageLayoutViewModelHostImage",(W.ytwSquareImageLayoutViewModelHostColumnImage=g,W))},function(){return _.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(c){return _.R(_.Xu,{data:c.data,
isGridViewEnabled:g,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.R("div",{class:_.CO("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=g,z))},_.R(_.Sv,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:v0}),function(){return _.R(_.Sv,{data:function(){return E().adButton}},{adButtonViewModel:function(c){var I={};
return _.R(_.SV,{data:c.data,className:_.CO((I.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,I.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=g,I))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.noBottomMargin;var Z=h.typographyBump;h=_.c6({visibilityCallback:function(L,d){if(L){var C;(L=(C=E().interaction)==null?void 0:C.onFirstVisible)&&_.Tl(L);var q;if(C=(q=E().adLayoutData)==null?void 0:q.activeViewData)zK(d,C),_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&ad(d)})}else _.J("stop_av_measurement_on_detach")&&ad(d)},
showOption:_.Nq,hideOption:tY});var M=_.VS(function(){return E().interaction},void 0,function(){return _.J("enable_web_home_top_landscape_image_layout_level_click")}),W=function(){return E().interaction};
W!==void 0&&W!==null||_.Fn(Error("Th"));var z=function(){var L,d,C;return(L=_.e(E().thumbnailImage,RPn))==null?void 0:(d=L.background)==null?void 0:(C=d.backgroundImageSource)==null?void 0:C.imageSources};
W=_.G(_.Bm(!1,void 0,"NFjwje"));var c=W.next().value,I=W.next().value;W=_.J7(function(){I(!0)});
var B=_.J7(function(){I(!1)}),U=function(){return c()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.R("top-landscape-image-layout-view-model",{class:function(){var L;return((L=E().interaction)==null?0:L.onTap)&&_.J("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.zT(h,IuW,M),"on:mouseenter":W,"on:mouseleave":B},_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.R(_.P,{cond:function(){return z()&&z().length>0},
then:function(){return _.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.fO({top:"0","background-image":function(){return"url("+String(z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.R(_.P,{cond:function(){return!!E().adButtonHoverOverlay},
then:function(){return _.R("div",{class:U},_.R(_.Sv,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:j3B}))}}),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.R(_.Sv,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(L){return _.R(_.Xu,{data:L.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.J("enable_web_home_top_landscape_image_layout_level_click")})}})),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.R(_.pO,{data:{sources:[{clientResource:{imageName:_.J("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.R("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.R(_.Sv,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(L){return _.R(v0,{data:L.data,
noBottomMargin:function(){return g==null?void 0:g()},
listenToTapEvent:function(){return _.J("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return Z==null?void 0:Z()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.C6,
noBottomMargin:_.C6,typographyBump:_.C6}});var del=_.O(function(h){var E=h.data,g=_.c6({visibilityCallback:function(M){var W,z=(W=E().interaction)==null?void 0:W.onFirstVisible;M&&z&&_.Tl(z)},
showOption:_.Nq});h=_.VS(function(){return E().interaction},h.customCommandResolver);
var Z={};return _.R("ad-text-image-view-model",{class:_.CO("ytwAdTextImageViewModelHost",(Z.ytwAdTextImageViewModelHostDarkBackground=function(){return E().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},Z)),
el:_.zT(g,h),"aria-label":function(){var M,W;return(M=E().interaction)==null?void 0:(W=M.accessibility)==null?void 0:W.label}},_.R("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.R(_.dK,{text:function(){return E().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.R(_.P,{cond:function(){return E().overlayIcon},
then:function(M){return _.R("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.R(_.pO,{data:M,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"xb");var CaF=_.O(function(h){var E=h.data;return _.R("feed-ad-sitelink-view-model",{class:"ytwFeedAdSitelinkViewModelHost",el:_.zT(_.VS(function(){return E().interaction},h.customCommandResolver)),
"aria-label":function(){var g,Z;return(g=E().interaction)==null?void 0:(Z=g.accessibility)==null?void 0:Z.label}},_.R(_.dK,{text:function(){return E().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"yb");var J4B=_.O(function(h){var E=h.data;h={};return _.R("feed-ad-sitelinks-carousel-view-model",{el:_.zT(_.c6({visibilityCallback:function(g){var Z,M=(Z=E().interaction)==null?void 0:Z.onFirstVisible;g&&M&&_.Tl(M)},
showOption:_.Nq})),class:_.CO("ytwFeedAdSitelinksCarouselViewModelHost",(h.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return E().style==="FEED_AD_SITELINKS_STYLE_NONE"},h))},_.R(_.Sv,{data:function(){return E().sitelinks}},{feedAdSitelinkViewModel:CaF}))},"zb");_.I9(_.O(function(h){var E=h.data;h=_.c6({visibilityCallback:function(z,c){if(z){var I;(z=(I=E().interaction)==null?void 0:I.onFirstVisible)&&_.Tl(z);var B;(I=(B=E().adLayoutData)==null?void 0:B.activeViewData)&&zK(c,I)}},
showOption:_.Nq});var g=_.G(_.Bm(!1,void 0,"BzPhl")),Z=g.next().value,M=g.next().value;g=_.J7(function(){M(!0)});
var W=_.J7(function(){M(!1)});
return _.R("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.zT(h),"on:mouseenter":g,"on:mouseleave":W},_.R("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.R("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.R(_.Sv,{data:function(){return E().textImage}},{adTextImageViewModel:del})),_.R("div",{class:function(){return Z()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.R(_.Sv,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(z){return _.R(j3B,{data:z.data,
listenToTapEvent:!0})}}))),_.R("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.R(_.Sv,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(z){return _.R(v0,{data:z.data,
listenToTapEvent:!0})}}),_.R(_.Sv,{data:function(){return E().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:J4B})))},"Ab"),"text-image-no-button-layout-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.typographyBump;return _.R("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.zT(_.c6({visibilityCallback:function(Z,M){if(Z){var W;(Z=(W=E().interaction)==null?void 0:W.onFirstVisible)&&_.Tl(Z);var z;(W=(z=E().adLayoutData)==null?void 0:z.activeViewData)&&zK(M,W)}},
showOption:_.Nq,hideOption:tY}))},_.R("div",null,_.R(_.Sv,{data:function(){return E().videoLockup}},{lockupViewModel:function(Z){return _.R(_.H0,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:g})}})))},"Bb"),"video-display-button-group-layout-view-model",{props:{data:_.C6,
noBottomMargin:_.C6,typographyBump:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.className;var Z=h.typographyBump;return _.R("video-display-compact-button-group-layout-view-model",{el:_.zT(_.c6({visibilityCallback:function(M,W){if(M){var z;(M=(z=E().interaction)==null?void 0:z.onFirstVisible)&&_.Tl(M);var c;(z=(c=E().adLayoutData)==null?void 0:c.activeViewData)&&zK(W,z)}},
showOption:_.Nq})),class:_.CO("videoDisplayCompactButtonGroupLayoutViewModelHost",g)},_.R(_.Sv,{data:function(){return E().videoLockup}},{lockupViewModel:function(M){return _.R(_.H0,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"Cb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.C6,
className:_.C6,typographyBump:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.className;var Z=h.typographyBump;return _.R("video-display-compact-buttoned-layout-view-model",{el:_.zT(_.c6({visibilityCallback:function(M,W){if(M){var z;(M=(z=E().interaction)==null?void 0:z.onFirstVisible)&&_.Tl(M);var c;(z=(c=E().adLayoutData)==null?void 0:c.activeViewData)&&zK(W,z)}},
showOption:_.Nq})),class:_.CO("videoDisplayCompactButtonedLayoutViewModelHost",g)},_.R(_.Sv,{data:function(){return E().videoLockup}},{lockupViewModel:function(M){return _.R(_.H0,{data:M.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:Z})}}))},"Db"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.C6,
className:_.C6,typographyBump:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.className;var Z=h.typographyBump;var M=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},W=_.VQ(_.sL);
h=_.c6({visibilityCallback:function(B,U){if(B){var L=E();B=L.adLayoutData;var d;(L=(d=L.interaction)==null?void 0:d.onFirstVisible)&&_.Tl(L);(d=B==null?void 0:B.activeViewData)&&zK(U,d)}},
showOption:_.Nq});var z=_.Cw(function(){return{containerType:M()&&W()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),c=_.Cw(function(){return M()&&W()?"":M()?"168px":"50%"},void 0,"qNDzkb"),I=_.Cw(function(){return M()&&W()?9999:void 0},void 0,"Ikn8Kb");
return _.R("video-display-compact-layout-view-model",{el:_.zT(h),class:_.CO("videoDisplayCompactLayoutViewModelHost",g)},_.R(_.Sv,{data:function(){return E().videoLockup}},{lockupViewModel:function(B){return _.R(_.H0,{data:B.data,
containerLayoutConfig:z,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:c,thumbnailTargetWidth:I,typographyBump:Z})}}))},"Eb"),"video-display-compact-layout-view-model",{props:{data:_.C6,
className:_.C6,typographyBump:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=h.typographyBump;return _.R("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.zT(_.c6({visibilityCallback:function(Z,M){if(Z){var W;(Z=(W=E().interaction)==null?void 0:W.onFirstVisible)&&_.Tl(Z);var z;(W=(z=E().adLayoutData)==null?void 0:z.activeViewData)&&zK(M,W)}},
showOption:_.Nq,hideOption:tY}))},_.R("div",null,_.R(_.Sv,{data:function(){return E().videoLockup}},{lockupViewModel:function(Z){return _.R(_.H0,{data:Z.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:g})}})))},"Fb"),"video-display-full-layout-view-model",{props:{data:_.C6,
noBottomMargin:_.C6,typographyBump:_.C6}});_.eXM=_.O(function(h){var E=h.data;h=_.hf("ad-card-badge-view-model");return _.R("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:h},_.R(_.P,{cond:function(){return E().imageBadge},
then:function(g){return _.R(_.pO,{data:g,alt:""})}}))},"Gb");var q2m=_.O(function(h){var E=h.data;var g=h.customCommandResolver;return _.R("carousel-ad-card-image-view-model",{class:function(){var Z;return((Z=E().interaction)==null?0:Z.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g)),
"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(Z){return _.R(_.Xu,{data:Z.data,
customCommandResolver:g})}}),_.R("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.R(_.Sv,{data:function(){return E().badge}},{adCardBadgeViewModel:_.eXM})),_.R(_.rK,{model:{color:4}}))},"Hb");var fhM=_.O(function(h){var E=_.G(_.Bm(0,void 0,"JJ0QQc")),g=E.next().value;E.next();var Z=E.next().value,M=_.G(_.Bm(!1,void 0,"f6YICe"));E=M.next().value;var W=M.next().value,z;_.r9(function(){clearTimeout(z)});
M=_.J7(function(){var B;((B=h.animate)==null?0:B.call(h))?(W(!0),z=setTimeout(function(){W(!1);c()},200)):c();
return!1});
var c=function(){Z(function(B){return(B+h.numShownItems())%h.data().length})},I={};
return _.R("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.R("div",{class:_.CO("ytwHorizontalCarouselCarouselWrapper")},_.R("div",{class:_.CO("ytwHorizontalCarouselCarouselInnerWrapper",(I.ytwHorizontalCarouselAnimating=E,I))},_.R(_.SX,{each:h.data,keyBy:"INDEX"},function(B,U){return _.R("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.fO({"flex-basis":function(){return"calc((100% - (8px * "+(h.numShownItems()-1)+")) / "+h.numShownItems()+")"},
order:function(){var L=U-g();L<0&&(L+=h.data().length);return L}})},h.children(B,U))}))),_.R("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":M},h.nextButton()))},"Ib");var NzB=_.O(function(h){var E=h.data;var g=h.customCommandResolver;var Z=h.expansive;return _.R("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.zT(_.c6({visibilityCallback:function(M){var W,z=(W=E().interaction)==null?void 0:W.onFirstVisible;M&&z&&_.Tl(z)},
showOption:_.Nq}))},_.R(fhM,{data:function(){var M;return((M=E())==null?void 0:M.carouselAdCards)||[]},
nextButton:function(){return _.R(_.Sv,{data:function(){return E().nextButton}},{buttonViewModel:function(M){var W=M.data;
return _.R(_.$l,{data:function(){return(Z==null?0:Z())?Object.assign({},W(),{style:"mono"}):W()},
className:_.J("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(M){return _.R(_.Sv,{data:M},{carouselAdCardImageViewModel:function(W){return _.R(q2m,{data:W.data,customCommandResolver:g})}})}))},"Jb");var twH=_.O(function(h){var E=h.data;var g=h.customCommandResolver;var Z=h.className;var M=h.buttonClassName;var W=h.animationEntityKey;var z=h.expansive;return _.R("carousel-button-view-model",{class:_.CO("ytwCarouselButtonViewModelHost",Z)},_.R(_.Sv,{data:function(){return E().carousel}},{carouselAdCardCollectionViewModel:function(c){return _.R(NzB,{data:c.data,
customCommandResolver:g,expansive:z})}}),_.R(_.Sv,{data:function(){return E().button}},{adButtonViewModel:function(c){var I=c.data;
return _.R(_.SV,{data:function(){return(z==null?0:z())?Object.assign({},I(),{style:"AD_BUTTON_STYLE_TONAL"}):I()},
className:M,customCommandResolver:g,animationEntityKey:W})}}))},"Kb");_.S2f=_.O(function(h){var E=h.data;h=h.className;var g=_.hf("pivot-button-view-model");_.vJ(function(){var Z;((Z=E())==null?0:Z.backgroundColor)&&g.value.setAttribute("data-background-color",String(E().backgroundColor))});
return _.R("pivot-button-view-model",{el:g,class:_.CO("ytwPivotButtonViewModelHost",h)},_.R(_.lk,{command:function(){var Z=E();Z=Z.onClickCommand?_.kB(Z.onClickCommand):Z.contentDescription?_.cp(Z.contentDescription):void 0;return Z},
ariaLabel:function(){return E().contentDescription}},_.R(_.P,{cond:function(){return E().thumbnail},
then:function(Z){return _.R(_.pO,{data:Z,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.R(_.P,{cond:function(){return E().icon},
then:function(Z){return _.R(_.Ni,{icon:function(){return Z().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Lb");_.xeB=_.O(function(h){var E=h.data;var g=h.buttonShapeOverrideables;return _.R("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.R(_.Sv,{data:function(){return E().buttonViewModels}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
buttonOverrides:g})},
likeButtonViewModel:function(Z){return _.R(_.zj,{data:Z.data,buttonShapeOverrideables:g})},
dislikeButtonViewModel:function(Z){return _.R(_.Gj,{data:Z.data,buttonShapeOverrideables:g})},
toggleButtonViewModel:function(Z){return _.R(_.Z7,{data:Z.data,buttonShapeOverrides:g})}}))},"Mb");var wOM=_.O(function(h){var E=h.avatar;var g=h.headline;var Z=h.badge;var M=h.description;var W=h.expansive;h={};return _.R("yt-ad-metadata-shape",{class:_.CO("ytAdMetadataShapeHost",(h.ytAdMetadataShapeHostLarge=W,h))},_.R("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.R(_.P,{cond:E,then:function(z){return _.R(_.eiD,{data:function(){return(W==null?0:W())?Object.assign({},z(),{size:"AD_AVATAR_SIZE_M"}):z()}})}}),_.R("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.R(_.dK,{text:g,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.R(_.P,{cond:Z,then:function(z){return _.R(_.rS,{data:function(){return(W==null?0:W())?Object.assign({},z(),{style:"AD_BADGE_STYLE_STARK"}):z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.R("h2",{class:"ytAdMetadataShapeHostDescription"},_.R(_.dK,{text:M,
linkInheritColor:!0,isHeadline:function(){return W==null?void 0:W()}})))},"Nb");var Def=_.O(function(h){var E=h.data;var g=h.onShow;var Z=h.expansive;h=_.VS(function(){return E().interaction});
_.vJ(function(){var W,z=(W=E().animatedRenderingConfig)==null?void 0:W.delayedSecondsToVisible;if(z){var c=setTimeout(g,z*1E3);_.r9(function(){clearTimeout(c)})}});
var M={};return _.R("reels-ad-card-buttoned-view-model",{class:_.CO(function(){var W;return((W=E().interaction)==null?0:W.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(M.ytwReelsAdCardButtonedViewModelHostExpansive=Z,M)),
el:_.zT(h)},_.R(wOM,{avatar:function(){return _.e(E().avatar,iAD)},
headline:function(){return E().headline},
badge:function(){return _.e(E().adBadge,oDf)},
description:function(){return E().description},
expansive:Z}),_.R(_.Sv,{data:function(){return E().ctaButton}},{adButtonViewModel:function(W){var z=W.data;
return _.R(_.SV,{data:function(){return(Z==null?0:Z())?Object.assign({},z(),{style:"AD_BUTTON_STYLE_FILLED"}):z()}})}}))},"Ob");var lhB=_.O(function(h){var E=h.data;h=h.expansive;var g=_.J("web_ad_metadata_clickable")?_.VS(function(){return E().interaction},void 0,function(){return _.J("web_ad_metadata_clickable")}):void 0,Z={};
Z=_.v3("ytwReelsAdMetadataViewModelHost",(Z.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.J("web_ad_metadata_clickable"),Z));return _.R("reels-ad-metadata-view-model",{class:Z,el:_.zT(g)},_.R(wOM,{avatar:function(){return _.e(E().avatar,iAD)},
headline:function(){return E().headline},
badge:function(){return _.e(E().adBadge,oDf)},
description:function(){return E().description},
expansive:h}))},"Pb");var r4M={iconPosition:"icon-with-label",size:"L"},meF=_.O(function(h){var E=h.data;var g=h.overlayDensity;var Z=h.extractOverlay;var M=h.extractActionBar;h=_.hf("reels-player-overlay-layout-view-model");var W=_.zl(g,0),z=function(){var C;return(C=E().reelsAdCardButtonedEntityKey)!=null?C:""},c=function(){return z()+"/ad_button"},I=_.qI(WYz,z),B=function(){var C,q;
return(q=(C=I())==null?void 0:C.value)!=null?q:!1},U=_.VQ(Riq),L=function(){var C;
return Object.assign({},r4M,(U()||!((C=M==null?void 0:M())!=null&&C))&&{style:"overlay-dark"})};
g={};var d={};return _.R("reels-player-overlay-layout-view-model",{class:_.CO("ytwReelsPlayerOverlayLayoutViewModelHost",(g.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!E().extension},g.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},g.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return W()===1&&!(Z==null?0:Z())},g.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var C;
return(C=Z==null?void 0:Z())!=null?C:!1},g.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var C;
return(C=M==null?void 0:M())!=null?C:!1},g)),
"overlay-density":function(){return String(W())},
el:h},_.R("div",{class:_.CO("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(d.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},d))},_.R("div",{"aria-hidden":function(){return B()},
class:_.CO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.fO({"transition-duration":function(){return LU$(E())}})},_.R(_.Sv,{data:function(){return E().adMetadata}},{reelsAdMetadataViewModel:function(C){return _.R(lhB,{data:C.data,
expansive:function(){return W()===1}})}}),_.R(_.P,{cond:function(){return E().extension},
then:function(C){return _.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.R(_.Sv,{data:C},{adButtonViewModel:function(q){return _.R(_.SV,{data:q.data,animationEntityKey:c,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(q){return _.R(twH,{data:q.data,animationEntityKey:c,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return W()===1}})}}))}})),_.R("div",{"aria-hidden":function(){return!B()},
class:_.CO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return B()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.fO({"transition-duration":function(){return LU$(E())}})},_.R(_.Sv,{data:function(){return E().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(C){return _.R(Def,{data:C.data,
onShow:function(){_.Gl(_.xx("booleanEntity",z(),{key:z(),value:!0}))},
expansive:function(){return W()===1}})}}))),_.R("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.R(_.Sv,{data:function(){return E().actions}},{reelActionBarViewModel:function(C){return _.R(_.xeB,{data:C.data,
buttonShapeOverrideables:L})}}),_.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:function(C){return _.R(_.$l,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},L(),{type:"tonal"})}})}}),_.R(_.Sv,{data:function(){return E().pivotButton}},{pivotButtonViewModel:function(C){return _.R(_.S2f,{data:C.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Qb");_.I9(meF,"reels-player-overlay-layout-view-model",{props:{data:_.C6,overlayDensity:_.C6,extractOverlay:_.C6,extractActionBar:_.C6}});var Y_=function(){var h=_.D.apply(this,arguments)||this;h.noBottomMargin=!1;h.overlayDensity=0;h.extractOverlay=!1;h.extractActionBar=!1;return h};
_.f(Y_,_.D);_.p=Y_.prototype;
_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.J("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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.p.ready=function(){var h=this;rRM(function(){h.isAttached&&gH(h.JSC$15536_storedAdSlotMetadata,h.JSC$15536_storedAdLayoutMetadata,h.adSlotMetadata,h.adLayoutMetadata)&&n7(K7(),h.JSC$15536_storedAdSlotMetadata,h.JSC$15536_storedAdLayoutMetadata)})};
_.p.attached=function(){gH(this.JSC$15536_storedAdSlotMetadata,this.JSC$15536_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&L$M(K7(),this.JSC$15536_storedAdSlotMetadata,this.JSC$15536_storedAdLayoutMetadata)};
_.p.detached=function(){gH(this.JSC$15536_storedAdSlotMetadata,this.JSC$15536_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&n7(K7(),this.JSC$15536_storedAdSlotMetadata,this.JSC$15536_storedAdLayoutMetadata)};
_.p.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15536_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15536_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15536_storedAdLayoutMetadata!==void 0&&this.JSC$15536_storedAdSlotMetadata!==void 0&&n7(K7(),this.JSC$15536_storedAdSlotMetadata,this.JSC$15536_storedAdLayoutMetadata),L$M(K7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15536_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15536_storedAdSlotMetadata=this.adSlotMetadata)};
_.ze.Object.defineProperties(Y_.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.adLayoutMetadata}}});
Y_.prototype.onAdMetadataChanged=Y_.prototype.onAdMetadataChanged;Y_.prototype.onTypographyBumpChanged=Y_.prototype.onTypographyBumpChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Y_.prototype,"rendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Y_.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"noBottomMargin",void 0);_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"overlayDensity",void 0);_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"extractOverlay",void 0);_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"extractActionBar",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Y_.prototype,"typographyBump",void 0);
_.Y([_.S("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],Y_.prototype,"adLayoutMetadata",null);_.Y([_.x(),_.V("design:type",Object)],Y_.prototype,"adSlotMetadata",void 0);_.Y([_.Sg("ytd-video-display-full-buttoned-and-button-group-renderer"),_.V("design:type",HTMLElement)],Y_.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.Y([_.Nm("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y_.prototype,"onTypographyBumpChanged",null);_.Y([_.Nm("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Y_.prototype,"onAdMetadataChanged",null);_.Y([_.K({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Y_);
_.X(Y_,"ytd-in-feed-ad-layout-renderer",function(){if(CgD!==void 0)return CgD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return CgD=h},
{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var vHf;var HRB;_.I9(_.rS,"ad-badge-view-model",{props:{data:_.C6,hasDot:_.C6,customCommandResolver:_.c$,adRenderingContextType:_.c$,usedInMasthead:_.c$}});_.I9(_.SV,"ad-button-view-model",{props:{data:_.C6,customCommandResolver:_.c$,className:_.c$,delayedClassName:_.c$,animationEntityKey:_.c$,isCompactWidth:_.c$,isContentWidth:_.c$}});var sb=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return h};
_.f(sb,_.D);_.p=sb.prototype;_.p.computeHasLiveDescription=function(h){return!(h==null||!h.liveDescription)};
_.p.computeHasByline=function(h){return!(h==null||!h.byline)};
_.p.computeUsesAdButtonViewModel=function(h){return!!_.e(h==null?void 0:h.cta,IDC)};
_.p.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.p.onYtToggleButton=function(h){var E,g=(E=this.data)==null?void 0:E.videoReminderEntityKey;g&&this.ytdReduxBehavior.dispatch(_.xx("upcomingEventReminderStateEntity",g,{key:g,state:h.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.p.attached=function(){this.updateChannelBanner()};
_.p.dataChanged=function(){this.updateChannelBanner()};
_.p.videoReminderStateChanged=function(){var h;this.videoReminderState&&_.e((h=this.data)==null?void 0:h.cta,_.zh)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.p.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var h=_.R9(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);h&&(h.startsWith("//")&&(h="https:"+h),this.hostElement.classList.add("channel-banner"),_.Ja(this.hostElement,{"--ytvmh-channel-banner":"url("+h+")"}))}else _.J("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.p.onPlayerReady=function(){this.onIronResize()};
_.p.maybeFlushDebouncer=function(){_.J("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(h){var E;h=(E=h.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0];E6M(h==null?void 0:h.polymerController)})};
_.p.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var h=_.UB(this.hostElement).querySelector("#live-description"),E;h&&((E=this.data)==null?0:E.shortLiveDescription)&&h.clientWidth<h.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
sb.prototype.onIronResize=sb.prototype.onIronResize;sb.prototype.videoReminderStateChanged=sb.prototype.videoReminderStateChanged;sb.prototype.dataChanged=sb.prototype.dataChanged;sb.prototype.onYtToggleButton=sb.prototype.onYtToggleButton;_.Y([_.t(_.F3),_.V("design:type",Object)],sb.prototype,"ironResizableBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],sb.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],sb.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sb.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.videoReminderEntityKey"],selector:GIW}),_.V("design:type",Object)],sb.prototype,"videoReminderState",void 0);
_.Y([_.x({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.V("design:type",Boolean)],sb.prototype,"rounded",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.V("design:type",Boolean)],sb.prototype,"hasLiveDescription",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.V("design:type",Boolean)],sb.prototype,"hasByline",void 0);
_.Y([_.x({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.V("design:type",String)],sb.prototype,"adRenderingContextType",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],sb.prototype,"isMasthead",void 0);_.Y([_.x({computed:"computeUsesAdButtonViewModel(data)"}),_.V("design:type",Boolean)],sb.prototype,"usesAdButtonViewModel",void 0);
_.Y([_.x({reflectToAttribute:!0,value:_.J("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.V("design:type",Boolean)],sb.prototype,"resizableAdBannerSafariFix",void 0);_.Y([_.xA("yt-formatted-string"),_.V("design:type",Array)],sb.prototype,"formattedStrings",void 0);_.Y([_.Sg("#cta-button"),_.V("design:type",HTMLElement)],sb.prototype,"ctaButton",void 0);
_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sb.prototype,"onYtToggleButton",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sb.prototype,"dataChanged",null);_.Y([_.Nm("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sb.prototype,"videoReminderStateChanged",null);
_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sb.prototype,"onIronResize",null);_.Y([_.K({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],sb);
_.X(sb,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(HRB!==void 0)return HRB;var h=document.createElement("template");_.N(h,'\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      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\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]]" hidden="[[usesAdButtonViewModel]]" 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]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HRB=h},{mode:1});var $eF;var Vh=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};h.isLocked=!1;return h};
_.f(Vh,_.D);_.p=Vh.prototype;_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded&&_.U7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(h){h!==this&&(this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(h){this.isLocked=!0;h!==this&&(this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
Vh.prototype.onTap=Vh.prototype.onTap;Vh.prototype.onMouseOver=Vh.prototype.onMouseOver;Vh.prototype.onExpandedChanged=Vh.prototype.onExpandedChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Vh.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vh.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vh.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Vh.prototype,"expanded",void 0);_.Y([_.lq("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vh.prototype,"onExpandedChanged",null);_.Y([_.f3("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vh.prototype,"onMouseOver",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vh.prototype,"onTap",null);
_.Y([_.K({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Vh);
_.X(Vh,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if($eF!==void 0)return $eF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $eF=h},{mode:1});var K$k;var k_=function(){var h=_.D.apply(this,arguments)||this;h.buttonOverrides={style:"overlay"};h.useYtdPlayer=_.J("use_ytd_player_for_desktop_masthead");h.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};h.playbackFinished=!1;h.JSC$15550_playerManager=null;h.JSC$15550_mastheadCounter=new EZk;return h};
_.f(k_,_.D);_.p=k_.prototype;_.p.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.p.created=function(){this.JSC$15550_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15550_playerManager=new h6)};
_.p.ready=function(){var h=this;this.JSC$15550_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var E=_.UB(this.hostElement).querySelector("#player");this.useYtdPlayer?E.style.display="none":(this.ytdPlayer.style.display="none",KWF(this.JSC$15550_playerManager,E,function(){h.onPlaybackEnded()}),_.UB(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var g;
((g=h.data)==null?0:g.navigationEndpoint)&&_.Ra(h.hostElement,"yt-navigate",{endpoint:h.data.navigationEndpoint})}))};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15550_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.p.attached=function(){var h=this;_.hW(function(){h.maybePlayVideo()})};
_.p.maybePlayVideo=function(){var h=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$15550_playerManager.playVideo(),this.getPlayerPromise().then(function(){h.JSC$15550_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.p.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15550_playerManager.stopVideo()};
_.p.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var h,E={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((h=this.data.playbackStartMs)!=null?h:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else n6C(this.JSC$15550_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Ojn(this.JSC$15550_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.p.getPlayerPromise=function(){return this.JSC$15550_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(h){this.useYtdPlayer?this.toggleMute(h.detail.toggled):h.detail.toggled?this.JSC$15550_playerManager.mute():this.JSC$15550_playerManager.unMute()};
_.p.onYtNavigate=function(h){var E=FDu(h.detail.endpoint),g=AzZ(this.data.clickthroughReportingData);E&&g&&(h.detail.endpoint.watchEndpoint?h.detail.tempData=g:_.zG(E,g,30))};
_.p.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.p.onExpandedChanged=function(){this.expanded?(_.U7(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.p.onMouseOver=function(){this.maybeExpand()};
_.p.onTap=function(){this.maybeExpand()};
_.p.onExpandableTileExpanding=function(h){h!==this&&(this.stopVideo(),this.expanded=!1)};
_.p.onExpandableTileLockAndCollapse=function(h){h!==this&&(this.isLocked=!0,this.expanded=!1)};
_.p.onExpandableTileUnlock=function(){this.isLocked=!1};
_.p.lockAndCollapseExpandableTiles=function(){_.BX(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.p.unlockExpandableTiles=function(){_.BX(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.p.setupYtdPlayer=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.ytdPlayer.getPlayerPromise(),2);E=g.yieldResult;E.addEventListener("onStateChange",function(Z){h.onPlayerStateChange(Z)});
E.addEventListener("onCueRangeExit",function(Z){h.onCueRangeExit(Z)});
_.SK(g)})};
_.p.onPlayerStateChange=function(h){if(h===1&&(h=this.ytdPlayer.getPlayer())){var E=h.getCurrentTime(),g,Z,M=E+((Z=(g=this.data)==null?void 0:g.playbackDurationMs)!=null?Z:0)/1E3;h.addCueRange("playback",E,M);this.JSC$15550_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.p.onCueRangeExit=function(h){h==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.ytdPlayer.getPlayerPromise(),2);g=Z.yieldResult;h?g.mute():g.unMute();_.SK(Z)})};
k_.prototype.onTap=k_.prototype.onTap;k_.prototype.onMouseOver=k_.prototype.onMouseOver;k_.prototype.onExpandedChanged=k_.prototype.onExpandedChanged;k_.prototype.onYtNavigate=k_.prototype.onYtNavigate;k_.prototype.onYtToggleButton=k_.prototype.onYtToggleButton;k_.prototype.dataChanged=k_.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],k_.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],k_.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],k_.prototype,"expanded",void 0);_.Y([_.x(),_.V("design:type",Object)],k_.prototype,"buttonOverrides",void 0);
_.Y([_.x(),_.V("design:type",Object)],k_.prototype,"useYtdPlayer",void 0);_.Y([_.Sg("#ytd-player"),_.V("design:type",Object)],k_.prototype,"ytdPlayer",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k_.prototype,"dataChanged",null);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],k_.prototype,"onYtToggleButton",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],k_.prototype,"onYtNavigate",null);_.Y([_.lq("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k_.prototype,"onExpandedChanged",null);_.Y([_.f3("mouseover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k_.prototype,"onMouseOver",null);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k_.prototype,"onTap",null);_.Y([_.K({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],k_);
_.X(k_,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(K$k!==void 0)return K$k;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return K$k=h},{mode:1});var ORF;var yh=function(){return _.D.apply(this,arguments)||this};
_.f(yh,_.D);yh.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
yh.prototype.onShow=function(){var h=_.UB(this.hostElement).querySelector("#live-description"),E;h&&((E=this.data)==null?0:E.shortLiveDescription)&&h.clientWidth<h.scrollWidth&&this.hostElement.classList.add("short-live-description")};
yh.prototype.onYtToggleButton=function(h){var E,g=(E=this.data)==null?void 0:E.videoReminderEntityKey;g&&this.ytdReduxBehavior.dispatch(_.xx("upcomingEventReminderStateEntity",g,{key:g,state:h.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
yh.prototype.videoReminderStateChanged=function(){var h;this.videoReminderState&&_.e((h=this.data)==null?void 0:h.cta,_.zh)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
yh.prototype.videoReminderStateChanged=yh.prototype.videoReminderStateChanged;yh.prototype.onYtToggleButton=yh.prototype.onYtToggleButton;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yh.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],yh.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yh.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.videoReminderEntityKey"],selector:GIW}),_.V("design:type",Object)],yh.prototype,"videoReminderState",void 0);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yh.prototype,"onYtToggleButton",null);_.Y([_.Nm("videoReminderState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yh.prototype,"videoReminderStateChanged",null);
_.Y([_.K({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],yh);
_.X(yh,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(ORF!==void 0)return ORF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ORF=h},{mode:_.UQ("kevlar_poly_si_batch_j065")?1:2});var nHl;var Fu=function(){var h=_.D.apply(this,arguments)||this;h.useYtdPlayer=_.J("use_ytd_player_for_desktop_masthead");h.buttonOverrides={style:"overlay"};h.JSC$15558_playerManager=null;h.JSC$15558_mastheadCounter=new EZk;h.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return h};
_.f(Fu,_.D);_.p=Fu.prototype;_.p.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.p.created=function(){this.JSC$15558_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15558_playerManager=new h6)};
_.p.ready=function(){var h=this;this.JSC$15558_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var E;(E=this.embeddedPlayer)==null||E.remove()}else{var g;(g=this.ytdPlayer)==null||g.remove();KWF(this.JSC$15558_playerManager,this.embeddedPlayer,function(){h.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){h.data&&h.data.navigationEndpoint&&_.Ra(h.hostElement,"yt-navigate",{endpoint:h.data.navigationEndpoint})})}};
_.p.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15558_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.p.dataChanged=function(){var h=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var E=!this.data.disableAutoPlayback,g,Z={autoplay:E,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((g=this.data.playbackStartMs)!=null?g:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(E?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(Z);this.setupYtdPlayer()}else n6C(this.JSC$15558_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Ojn(this.JSC$15558_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15558_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.BX(h.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");h.JSC$15558_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.p.getPlayerPromise=function(){return this.JSC$15558_playerManager.getPlayerPromise()};
_.p.onYtToggleButton=function(h){this.useYtdPlayer?this.toggleMute(h.detail.toggled):h.detail.toggled?this.JSC$15558_playerManager.mute():this.JSC$15558_playerManager.unMute()};
_.p.onYtNavigate=function(h){var E=FDu(h.detail.endpoint),g=AzZ(this.data.clickthroughReportingData);E&&g&&(h.detail.endpoint.watchEndpoint?h.detail.tempData=g:_.zG(E,g,30))};
_.p.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15558_playerManager.stopVideo()};
_.p.setupYtdPlayer=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.ytdPlayer.getPlayerPromise(),2);E=g.yieldResult;E.addEventListener("onStateChange",function(Z){h.onPlayerStateChange(Z)});
E.addEventListener("onCueRangeExit",function(Z){h.onCueRangeExit(Z)});
_.SK(g)})};
_.p.onPlayerStateChange=function(h){if(h===1&&(h=this.ytdPlayer.getPlayer())){var E=h.getCurrentTime(),g,Z,M=E+((Z=(g=this.data)==null?void 0:g.playbackDurationMs)!=null?Z:0)/1E3;h.addCueRange("playback",E,M);_.BX(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15558_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.p.onCueRangeExit=function(h){h==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.p.toggleMute=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.ytdPlayer.getPlayerPromise(),2);g=Z.yieldResult;h?g.mute():g.unMute();_.SK(Z)})};
_.ze.Object.defineProperties(Fu.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var h,E;if(!((h=this.data)==null?0:(E=h.accessibilityData)==null?0:E.label))return"Ad primary link";var g,Z;return _.NH("AD_TITLE",{title:(g=this.data)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label})}}});
Fu.prototype.onYtMastheadHidden=Fu.prototype.onYtMastheadHidden;Fu.prototype.onYtNavigate=Fu.prototype.onYtNavigate;Fu.prototype.onYtToggleButton=Fu.prototype.onYtToggleButton;Fu.prototype.dataChanged=Fu.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Fu.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Fu.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Fu.prototype,"useYtdPlayer",void 0);_.Y([_.Sg("ytd-toggle-button-renderer"),_.V("design:type",Object)],Fu.prototype,"muteButton",void 0);_.Y([_.x(),_.V("design:type",Object)],Fu.prototype,"buttonOverrides",void 0);
_.Y([_.S("data.accessibilityData.label"),_.V("design:type",String),_.V("design:paramtypes",[])],Fu.prototype,"titleAriaLabel",null);_.Y([_.Sg("#replay-button"),_.V("design:type",Object)],Fu.prototype,"replayButton",void 0);_.Y([_.Sg("#player-container"),_.V("design:type",Object)],Fu.prototype,"playerContainer",void 0);_.Y([_.Sg("#player"),_.V("design:type",Object)],Fu.prototype,"embeddedPlayer",void 0);_.Y([_.Sg("#ytd-player"),_.V("design:type",Object)],Fu.prototype,"ytdPlayer",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fu.prototype,"dataChanged",null);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Fu.prototype,"onYtToggleButton",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Fu.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-masthead-hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fu.prototype,"onYtMastheadHidden",null);_.Y([_.K({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Fu);
_.X(Fu,"ytd-video-masthead-ad-primary-video-renderer",function(){if(nHl!==void 0)return nHl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return nHl=h},{mode:2});var XOf;var A$=function(){var h=_.D.apply(this,arguments)||this;h.collapsed=!1;h.impressionResolver=_.hU();h.JSC$15562_activeViewMeasurementDataResolver=_.hU();h.actionMap={"yt-mute-ad-action":"handleMuteAd"};return h};
_.f(A$,_.D);_.p=A$.prototype;_.p.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.ready=function(){var h=this;_.UB(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){h.expandAd()});
this.hostElement.addEventListener("yt-action",function(E){if(E.detail.actionName==="yt-service-request"){var g=E.detail.args[1];g.videoMastheadAdMuteCommand&&(h.collapseAd(g.videoMastheadAdMuteCommand.encryptedMastheadId),E.stopPropagation())}})};
_.p.attached=function(){var h=this;_.hW(function(){h.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(E){if(!h.collapsed){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,Tn(g.baseUrl,g.attributionSrcMode);h.data.impressionCommand=void 0}});
this.JSC$15562_activeViewMeasurementDataResolver.promise.then(function(E){h.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.dataChanged=function(){var h;((h=this.data.impressionCommand)==null?0:h.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var E;((E=this.data)==null?0:E.activeView)&&this.JSC$15562_activeViewMeasurementDataResolver.resolve(this.data.activeView);(h=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(h.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.p.computeWidescreen=function(h){var E;return!!(h&&((E=_.e(h,pQk))==null?0:E.isWidescreen))};
_.p.computeExpandable=function(h){return!!(h&&h.length>0)};
_.p.onIronResize=function(){if(this.expandable){var h=_.UB(this.hostElement).querySelector("#expandable-tile-container :first-child");h&&!h.expanded&&(h.expanded=!0)}};
_.p.handleMuteAd=function(){this.collapseAd(null)};
_.p.restoreCollapsedState=function(h){this.collapsed=_.xe().get("HIDDEN_MASTHEAD_ID")===h};
_.p.collapseAd=function(h){if(h){var E=_.xe();E.set("HIDDEN_MASTHEAD_ID",h);E.save()}(h=_.UB(this.hostElement).querySelector("#video"))&&_.Ra(h,"yt-masthead-hidden");this.collapsed=!0};
_.p.expandAd=function(){var h=_.xe();h.set("HIDDEN_MASTHEAD_ID",!1);h.save();location.reload()};
_.p.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
A$.prototype.onIronResize=A$.prototype.onIronResize;A$.prototype.dataChanged=A$.prototype.dataChanged;_.Y([_.t(_.F3),_.V("design:type",Object)],A$.prototype,"ironResizableBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],A$.prototype,"ytdActiveViewBehavior",void 0);_.Y([_.t(_.IF),_.V("design:type",Object)],A$.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],A$.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],A$.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],A$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],A$.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.V("design:type",Boolean)],A$.prototype,"widescreen",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.V("design:type",Boolean)],A$.prototype,"expandable",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],A$.prototype,"collapsed",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A$.prototype,"dataChanged",null);
_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A$.prototype,"onIronResize",null);_.Y([_.K({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],A$);
_.X(A$,"ytd-video-masthead-ad-v3-renderer",function(){if(XOf!==void 0)return XOf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XOf=h},{mode:2});var TU=function(){return _.D.apply(this,arguments)||this};
_.f(TU,_.D);_.p=TU.prototype;_.p.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.p.ready=function(){var h=this;rRM(function(){h.isAttached&&gH(h.JSC$15567_storedAdSlotMetadata,h.JSC$15567_storedAdLayoutMetadata,h.adSlotMetadata,h.adLayoutMetadata)&&n7(K7(),h.JSC$15567_storedAdSlotMetadata,h.JSC$15567_storedAdLayoutMetadata)})};
_.p.attached=function(){gH(this.JSC$15567_storedAdSlotMetadata,this.JSC$15567_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&L$M(K7(),this.JSC$15567_storedAdSlotMetadata,this.JSC$15567_storedAdLayoutMetadata)};
_.p.detached=function(){gH(this.JSC$15567_storedAdSlotMetadata,this.JSC$15567_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&n7(K7(),this.JSC$15567_storedAdSlotMetadata,this.JSC$15567_storedAdLayoutMetadata)};
_.p.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15567_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15567_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15567_storedAdLayoutMetadata!==void 0&&this.JSC$15567_storedAdSlotMetadata!==void 0&&n7(K7(),this.JSC$15567_storedAdSlotMetadata,this.JSC$15567_storedAdLayoutMetadata),L$M(K7(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15567_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15567_storedAdSlotMetadata=this.adSlotMetadata)};
_.ze.Object.defineProperties(TU.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.adLayoutMetadata}}});
TU.prototype.onAdMetadataChanged=TU.prototype.onAdMetadataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],TU.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],TU.prototype,"data",void 0);_.Y([_.S("data.adLayoutMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],TU.prototype,"adLayoutMetadata",null);
_.Y([_.x(),_.V("design:type",Object)],TU.prototype,"adSlotMetadata",void 0);_.Y([_.Nm("adLayoutMetadata","adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TU.prototype,"onAdMetadataChanged",null);_.Y([_.K({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],TU);
_.X(TU,"ytd-page-top-ad-layout-renderer",function(){if(vHf!==void 0)return vHf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return vHf=
h},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var Y2f;var b5=function(){var h=_.D.apply(this,arguments)||this;h.noBottomMargin=!1;h.overlayDensity=0;h.typographyBump=!1;h.extractOverlay=!1;h.extractActionBar=!1;return h};
_.f(b5,_.D);_.p=b5.prototype;
_.p.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},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]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.p.ready=function(){var h=this;rRM(function(){h.isAttached&&h.adSlotMetadata&&Uek(K7(),h.adSlotMetadata)})};
_.p.attached=function(){if(this.adSlotMetadata){var h;if(this.adSlotMetadata===((h=this.data)==null?void 0:h.adSlotMetadata))Bzn(K7(),this.adSlotMetadata);else{var E;_.O$(Error("Uh`"+this.adSlotMetadata+"`"+((E=this.data)==null?void 0:E.adSlotMetadata)))}}};
_.p.detached=function(){this.adSlotMetadata&&Uek(K7(),this.adSlotMetadata)};
_.p.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.p.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Uek(K7(),this.adSlotMetadata),Bzn(K7(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ze.Object.defineProperties(b5.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.zPF),Z;return(h=(Z=_.e(g==null?void 0:g.renderingContent,Gcm))==null?void 0:Z.layout)?h.toLowerCase().replace(/_/g,"-"):""}}});
b5.prototype.onAdSlotMetadataChanged=b5.prototype.onAdSlotMetadataChanged;b5.prototype.onTypographyBumpChanged=b5.prototype.onTypographyBumpChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],b5.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],b5.prototype,"rendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"noBottomMargin",void 0);_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"overlayDensity",void 0);_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"typographyBump",void 0);_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"extractOverlay",void 0);_.Y([_.x(),_.V("design:type",Object)],b5.prototype,"extractActionBar",void 0);
_.Y([_.Sg("ytd-in-feed-ad-layout-renderer"),_.V("design:type",HTMLElement)],b5.prototype,"inFeedAdLayoutRenderer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],b5.prototype,"layout",null);_.Y([_.Nm("typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b5.prototype,"onTypographyBumpChanged",null);
_.Y([_.Nm("data.adSlotMetadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],b5.prototype,"onAdSlotMetadataChanged",null);_.Y([_.K({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],b5);
_.X(b5,"ytd-ad-slot-renderer",function(){if(Y2f!==void 0)return Y2f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Y2f=h},{mode:_.UQ("kevlar_poly_si_batch_j077")?
1:2});var s3D;var ZF=function(){return _.D.apply(this,arguments)||this};
_.f(ZF,_.D);_.p=ZF.prototype;_.p.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p.maybeComputeHref=function(){return null};
_.p.onTap=function(){};
_.p.onThumbnailContainerClick=function(h){this.onClick(h)};
_.p.onClick=function(h){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;g&&_.e(g,_.MH)&&(this.ytSparklesClickLocationBehavior.handleClick(g,h,!1),h.stopPropagation())};
_.p.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var h=_.G(this.data.impressionUrls),E=h.next();!E.done;E=h.next())E=E.value,SQV(E,wKx(E));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ZF.JSC$15575_DEFAULT_CLICK_LOCATION_BEHAVIOR,ZF.JSC$15575_CLICK_LOCATION_ID_MAP);this.thumbnail&&(h=this.thumbnail.getElementsByTagName("a"),h.length>0&&(h=h.namedItem("thumbnail"))&&
h.removeAttribute("href"))}};
_.p.attached=function(){var h=this;_.J("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&h.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.p.detached=function(){_.J("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ze.Object.defineProperties(ZF.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
ZF.prototype.dataChanged=ZF.prototype.dataChanged;ZF.prototype.onTap=ZF.prototype.onTap;ZF.JSC$15575_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ZF.JSC$15575_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"}];_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.Y([_.t(z3),_.V("design:type",Object)],ZF.prototype,"ytdActiveViewBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ZF.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],ZF.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],ZF.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],ZF.prototype,"isGridViewEnabled",void 0);_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZF.prototype,"watchFeedBigThumbs",null);_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],ZF.prototype,"thumbnailWidth",null);_.Y([_.x(),_.V("design:type",Object)],ZF.prototype,"data",void 0);
_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],ZF.prototype,"thumbnail",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZF.prototype,"onTap",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZF.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],ZF);
_.X(ZF,"ytd-compact-promoted-video-renderer",function(){if(s3D!==void 0)return s3D;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return s3D=h},{mode:1});var VwH;_.$P("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var M1=function(){return _.D.apply(this,arguments)||this};
_.f(M1,_.D);M1.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],M1.prototype,"data",void 0);_.Y([_.K({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],M1);
_.X(M1,"ytd-search-pyv-renderer",function(){if(VwH!==void 0)return VwH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return VwH=h},{mode:1});var k4M;_.$P("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var We=function(){var h=_.D.apply(this,arguments)||this;h.roundedContainer=!0;h.JSC$15583_handleOpenPostCommentDialogActionAfterStamp=!1;h.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return h};
_.f(We,_.D);_.p=We.prototype;
_.p.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}}}},
"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.p.onStampFinished=function(){this.JSC$15583_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var h=_.UB(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");h?h.openDialog():this.JSC$15583_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.p.computeHideBorder=function(){return this.isInEngagementPanel};
_.p.computeIsCompact=function(){return this.isInEngagementPanel};
_.p.computeUsesCompactLockup=function(h){return h==="BACKSTAGE_SURFACE_TYPE_HOME"||h==="BACKSTAGE_SURFACE_TYPE_SEARCH"||h==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||h==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||h==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||h==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.p.computeUsesFullLockup=function(){var h,E=(h=this.data)==null?void 0:h.post,g;h=(g=_.e(E,jjl))==null?void 0:g.surface;var Z;g=(Z=_.e(E,JOD))==null?void 0:Z.originalPost;var M;if(Z=h||((M=_.e(g,jjl))==null?void 0:M.surface))return!this.computeUsesCompactLockup(Z)&&this.useUpdatedRepostUi;var W;return((W=_.e(E,JOD))==null?void 0:W.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ze.Object.defineProperties(We.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var h,E;return((E=_.e((h=this.data)==null?void 0:h.post,jjl))==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.useUpdatedRepostUi}}});
We.prototype.onYtCommentModerationPanelEmpty=We.prototype.onYtCommentModerationPanelEmpty;We.prototype.onStampFinished=We.prototype.onStampFinished;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],We.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],We.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],We.prototype,"roundedContainer",void 0);_.Y([_.x({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],We.prototype,"hideBorder",void 0);_.Y([_.x({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.V("design:type",Boolean)],We.prototype,"isCompact",void 0);
_.Y([_.x({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.V("design:type",Boolean)],We.prototype,"usesFullLockup",void 0);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],We.prototype,"onStampFinished",null);
_.Y([_.f3("ytd-comment-moderation-panel-empty"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],We.prototype,"onYtCommentModerationPanelEmpty",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],We.prototype,"isInEngagementPanel",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],We.prototype,"useUpdatedRepostUi",null);
_.Y([_.K({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],We);
_.X(We,"ytd-backstage-post-thread-renderer",function(){if(k4M!==void 0)return k4M;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return k4M=h},{mode:1});var y4M;var pn=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(pn,_.D);pn.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
pn.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var h=this.data.thumbnail.thumbnails;this.isDarkTheme&&(h=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(h=_.R9(h,24,void 0,"height"))?h:void 0}};
pn.prototype.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
pn.prototype.computeHasText=function(){var h;return!((h=this.data)==null||!h.text)};
_.ze.Object.defineProperties(pn.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Yr(this.bannerImageUrl))+'");'}}});
pn.prototype.computeHasText=pn.prototype.computeHasText;pn.prototype.computeBannerImageUrl=pn.prototype.computeBannerImageUrl;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],pn.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],pn.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],pn.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],pn.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",String)],pn.prototype,"bannerImageUrl",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.V("design:type",Boolean)],pn.prototype,"hasText",void 0);_.Y([_.Nm("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pn.prototype,"computeBannerImageUrl",null);
_.Y([_.Nm("data.text"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pn.prototype,"computeHasText",null);_.Y([_.S("bannerImageUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],pn.prototype,"bannerStyle",null);_.Y([_.K({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],pn);
_.X(pn,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(y4M!==void 0)return y4M;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return y4M=h},{mode:1});var F$l;var Gx=function(){return _.D.apply(this,arguments)||this};
_.f(Gx,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Gx.prototype,"data",void 0);_.Y([_.K({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Gx);
_.X(Gx,"ytd-backstage-zero-state-renderer",function(){if(F$l!==void 0)return F$l;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return F$l=h},{mode:1});var A4l;var zx=function(){return _.D.apply(this,arguments)||this};
_.f(zx,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zx.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],zx.prototype,"icon",void 0);_.Y([_.K({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],zx);
_.X(zx,"ytd-post-filter-zero-state-renderer",function(){if(A4l!==void 0)return A4l;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return A4l=h},{mode:1});var TzB;var bRD={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},ay=function(){return _.D.apply(this,arguments)||this};
_.f(ay,_.D);ay.prototype.configureRendererStamper=function(){return bRD};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ay.prototype,"rendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ay.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],ay.prototype,"icon",void 0);_.Y([_.K({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],ay);
_.X(ay,"ytd-post-scheduling-zero-state-renderer",function(){if(TzB!==void 0)return TzB;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return TzB=h},{mode:1});var uIC;var ce=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return h};
_.f(ce,_.D);ce.prototype.onTabsActivate=function(h){this.data&&this.data.tabs&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[h.detail.selected].navigationEndpoint})};
ce.prototype.shouldShowTotalCount=function(h){return h&&h.totalCount!==void 0};
ce.prototype.handleUpdatePostsTotalCountAction=function(h){var E=this.get(["data.tabs",1,"totalCount"]),g=this.get("updatePostsTotalCountAction.updateType",h);h=this.get("updatePostsTotalCountAction.number",h);E!==void 0&&g!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&h&&(g==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(E)+h):g==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(E)-h))};
_.ze.Object.defineProperties(ce.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var h=0,E=this.data.tabs.length;h<E;h++)if(this.data.tabs[h].selected)return h;return 0}}});
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ce.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ce.prototype,"rendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ce.prototype,"data",void 0);_.Y([_.S("data.tabs"),_.V("design:type",Number),_.V("design:paramtypes",[])],ce.prototype,"selected",null);_.Y([_.K({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],ce);
_.X(ce,"ytd-post-stream-filter-renderer",function(){if(uIC!==void 0)return uIC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return uIC=h},{mode:1});var Q3l;var i7=function(){return _.D.apply(this,arguments)||this};
_.f(i7,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],i7.prototype,"kevlarBehaviors",void 0);_.Y([_.x(),_.V("design:type",Object)],i7.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],i7);
_.X(i7,"ytd-channel-age-gate-renderer",function(){if(Q3l!==void 0)return Q3l;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Q3l=h},{mode:1});var hUA;_.$P("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var oy=function(){var h=_.D.apply(this,arguments)||this;h.data=null;return h};
_.f(oy,_.D);oy.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ze.Object.defineProperties(oy.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?0:(E=h.title)==null?0:(g=E.runs)==null?0:g.length)?147:160}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],oy.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],oy.prototype,"imageSizePx",null);_.Y([_.K({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],oy);
_.X(oy,"ytd-channel-owner-empty-state-renderer",function(){if(hUA!==void 0)return hUA;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return hUA=h},{mode:1});var EhH;var ghM;var Iy=function(){var h=_.D.apply(this,arguments)||this;h.boundSubmitSearch=function(){h.submitSearch()};
h.boundClearSearch=function(){h.clearSearch()};
return h};
_.f(Iy,_.D);_.p=Iy.prototype;_.p.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.p.toggleClearButton=function(){this.hideClearButton=vR4||!this.input.value};
_.p.submitOnEnterKeyUp=function(h){h.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.p.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.p.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.p.submit=function(){_.Ra(this.hostElement,"search-query-changed",this.input.value)};
Iy.prototype.toggleClearButton=Iy.prototype.toggleClearButton;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Iy.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Iy.prototype,"hideClearButton",void 0);_.Y([_.x(),_.V("design:type",Object)],Iy.prototype,"boundSubmitSearch",void 0);_.Y([_.x(),_.V("design:type",Object)],Iy.prototype,"boundClearSearch",void 0);_.Y([_.Sg("#input"),_.V("design:type",Object)],Iy.prototype,"input",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Iy.prototype,"toggleClearButton",null);
_.Y([_.K({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Iy);
_.X(Iy,"ytd-channel-switcher-search-box-renderer",function(){if(ghM!==void 0)return ghM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ghM=h},{mode:1});var Zyf;var Ry=function(){var h=_.D.apply(this,arguments)||this;h.boundSubmit=function(){h.submit()};
return h};
_.f(Ry,_.D);_.p=Ry.prototype;_.p.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p.ready=function(){var h=this;this.form.addEventListener("submit",function(E){return h.onSubmit(E)})};
_.p.onSubmit=function(h){h.preventDefault();return!1};
_.p.toggleClearButton=function(){this.hideClearButton=vR4||!this.input.value};
_.p.submitOnEnterKeyUp=function(h){h.keyCode===13&&this.submit()};
_.p.submit=function(){var h=this.data.endpoint,E=(0,_.Kt.unsafeClone)(h);_.e(E,_.tk)?_.e(E,_.tk).query=this.input.value:_.e(E,_.Sl)&&(_.e(E,_.Sl).query=this.input.value);var g=_.e(E.commandMetadata,_.qH);(g==null?0:g.url)?(g.url=_.YW(g.url,"query",this.input.value),_.Ra(this.hostElement,"yt-navigate",{endpoint:E})):_.e(E,EDk)?(_.e(E,EDk).channelSwitcherQuery=this.input.value,_.GF().resolve(_.zF).resolveCommand(E,{form:{element:this.hostElement}})):(h=Error("Vh`"+JSON.stringify(h)),_.$W(h))};
_.p.getUrl=function(h){return this.get("commandMetadata.webCommandMetadata.url",h)};
Ry.prototype.toggleClearButton=Ry.prototype.toggleClearButton;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ry.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ry.prototype,"hideClearButton",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ry.prototype,"boundSubmit",void 0);_.Y([_.Sg("#form"),_.V("design:type",HTMLFormElement)],Ry.prototype,"form",void 0);_.Y([_.Sg("#input"),_.V("design:type",Object)],Ry.prototype,"input",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ry.prototype,"toggleClearButton",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Ry);
_.X(Ry,"ytd-search-box-renderer",function(){if(Zyf!==void 0)return Zyf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Zyf=h},{mode:2});var Pe=function(){var h=_.D.apply(this,arguments)||this;h.showSearchBox=!0;return h};
_.f(Pe,_.D);Pe.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Pe.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Pe.prototype,"showSearchBox",void 0);_.Y([_.K({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Pe);
_.X(Pe,"ytd-channel-switcher-header-renderer",function(){if(EhH!==void 0)return EhH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return EhH=h},{mode:1});var MZl;var WGn;var Be=function(){var h=_.D.apply(this,arguments)||this;h.isDisplayed=!0;return h};
_.f(Be,_.D);_.p=Be.prototype;_.p.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.isDisplayed=!0};
_.p.computeType=function(h){return h||"UNKNOWN"};
_.p.onYtServiceRequestCompleted=function(h){h.stopPropagation();this.isDisplayed=!1};
_.p.onClose=function(){this.isDisplayed=!1};
Be.prototype.onYtServiceRequestCompleted=Be.prototype.onYtServiceRequestCompleted;Be.prototype.dataChanged=Be.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Be.prototype,"data",void 0);
_.Y([_.x({computed:"computeType(data.type)",reflectToAttribute:!0}),_.V("design:type",String)],Be.prototype,"type",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Be.prototype,"isDisplayed",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Be.prototype,"dataChanged",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Be.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],Be);
_.X(Be,"ytd-alert-with-button-renderer",function(){if(WGn!==void 0)return WGn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return WGn=h},{mode:1});var Uy=function(){var h=_.D.apply(this,arguments)||this;h.noResult=!1;h.enableAlertBanner=!1;h.dismissedAlertBanner=!1;h.hideCreateChannelButton=!1;h.boundDismissAlertBanner=function(){h.dismissAlertBanner()};
h.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return h};
_.f(Uy,_.D);_.p=Uy.prototype;_.p.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.p.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.p.updateChannelSwitcherAction=function(h){var E;h=(E=_.e(h,A2B))==null?void 0:E.page;_.e(h,F9F)!==void 0&&(this.data=_.e(h,F9F))};
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.searchQueryChanged=function(h,E){if(this.data&&this.data.contents&&this.data.contents.length){h=[];var g=[];this.hideCreateChannelButton=this.noResult=!1;for(var Z=document.querySelectorAll("ytd-account-item-renderer"),M=_.G(Z),W=M.next();!W.done;W=M.next())W=W.value,g.push(W),W.style.display="block";this.resetRightBorder(g);if(E){this.hideCreateChannelButton=!0;for(g=1;g<this.data.contents.length;g++)if(W=this.data.contents[g],_.e(W,uVB)){var z=void 0,c=void 0;M=(z=_.e(W,uVB))==null?void 0:(c=
z.accountName)==null?void 0:c.simpleText;c=z=void 0;W=(z=_.e(W,uVB))==null?void 0:(c=z.channelHandle)==null?void 0:c.simpleText;(z=Z[g-1])&&M&&_.IW(M,E)?h.push(z):_.J("enable_handle_search_on_channel_switcher")&&z&&W&&_.IW(W.toString(),E.toString())?h.push(z):z.style.display="none"}h.length===0&&(this.noResult=!0);this.resetRightBorder(h)}}};
_.p.resetRightBorder=function(h){for(var E=0;E<h.length;E++)h[E].style.borderRight=!this.hideCreateChannelButton&&(E+2)%3===0||this.hideCreateChannelButton&&(E+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.p.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.p.setShowSearchBox=function(h){if(h&&h.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var E=0;E<h.contents.length;E++)_.e(h.contents[E],_.Ec)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.p.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ze.Object.defineProperties(Uy.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null?0:h.contents)}}});
Uy.prototype.onContinuationItemsUpdated=Uy.prototype.onContinuationItemsUpdated;Uy.prototype.searchQueryChanged=Uy.prototype.searchQueryChanged;Uy.prototype.onDataChanged=Uy.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Uy.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],Uy.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Uy.prototype,"data",void 0);_.Y([_.Sg("ytd-channel-switcher-header-renderer"),_.V("design:type",Object)],Uy.prototype,"channelSwitcherHeaderRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],Uy.prototype,"noResult",void 0);
_.Y([_.x(),_.V("design:type",Object)],Uy.prototype,"enableAlertBanner",void 0);_.Y([_.x(),_.V("design:type",Object)],Uy.prototype,"dismissedAlertBanner",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Uy.prototype,"hideCreateChannelButton",void 0);_.Y([_.S("data.contents"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Uy.prototype,"isLoading",null);_.Y([_.x(),_.V("design:type",Object)],Uy.prototype,"boundDismissAlertBanner",void 0);
_.Y([_.x({computed:"computeButtonOverride()"}),_.V("design:type",Object)],Uy.prototype,"buttonOverride",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Uy.prototype,"onDataChanged",null);_.Y([_.f3("search-query-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],Uy.prototype,"searchQueryChanged",null);
_.Y([_.f3("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Uy.prototype,"onContinuationItemsUpdated",null);_.Y([_.K({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Uy);
_.X(Uy,"ytd-channel-switcher-page-renderer",function(){if(MZl!==void 0)return MZl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return MZl=h},{mode:1});var pdD;var GzC;var Ln=function(){var h=_.D.apply(this,arguments)||this;h.images=[];h.selectedImageIndex=0;return h};
_.f(Ln,_.D);_.p=Ln.prototype;
_.p.ready=function(){_.vK(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.vK(this.JSC$15628_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.vK(this.JSC$15628_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.vK(this.JSC$15628_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.p.onThumbnailClick=function(h){if(h=h.event_.detail)this.selectedImageIndex=this.images.indexOf(h)};
_.p.updateImageThumbnails=function(h){h=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:h.event_.detail});this.images.splice(this.selectedImageIndex,1,h);this.images=[].concat(_.$E(this.images))};
_.p.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Ra(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.p.saveImageRepositions=function(){this.selectedImageIndex=0;_.Ra(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ze.Object.defineProperties(Ln.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var h=this;return(this.images||[]).map(function(E,g){return{image:E,selected:g===h.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("ytd-backstage-image-preview-renderer"),_.V("design:type",Object)],Ln.prototype,"JSC$15628_imagePreviewContainer",void 0);_.Y([_.Sg(".thumbnail-images-container"),_.V("design:type",HTMLElement)],Ln.prototype,"thumbnailImagesContainer",void 0);_.Y([_.x(),_.V("design:type",Array)],Ln.prototype,"images",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ln.prototype,"repositionInstructions",void 0);_.Y([_.x(),_.V("design:type",Object)],Ln.prototype,"selectedImageIndex",void 0);_.Y([_.S("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],Ln.prototype,"thumbnailRendererDatas",null);_.Y([_.S("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ln.prototype,"selectedImageData",null);
_.Y([_.K({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Ln);
_.X(Ln,"ytd-backstage-multi-image-reposition-renderer",function(){if(GzC!==void 0)return GzC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GzC=h},{mode:1});var jG=function(h,E){_.ms.call(this);this.uploadUrl=h;this.channelId=E;this.imagesUploadData=[]};
_.f(jG,_.ms);jG.prototype.getAllUploadStatuses=function(){var h=this,E,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(zUC(h),2);E=M.yieldResult;g=E.get("succeed");Z=E.get("failed");return M.return(g.concat(Z))})};
var cHk=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(zUC(h),2);E=Z.yieldResult;g=E.get("failed");g.length>0&&aQf(h,g);return Z.return(h.getAllUploadStatuses())})},zUC=function(h){var E,g,Z,M,W,z,c;
return _.a(function(I){if(I.nextAddress==1)return E=new Map,I.yield(Promise.allSettled(h.imagesUploadData.map(function(B){return B.uploadPromise})),2);
g=I.yieldResult;Z=[];M=_.G(g);for(W=M.next();!W.done;W=M.next())z=W.value,z.status==="fulfilled"&&Z.push(z.value);c=h.imagesUploadData.map(function(B){return B.image}).filter(function(B){return Z.every(function(U){return U.id!==B.id})});
E.set("succeed",Z);E.set("failed",c);return I.return(E)})},aQf=function(h,E){E=_.G(E);
for(var g=E.next();!g.done;g=E.next()){var Z=h;g=g.value;iyA(Z,g.id)>=0&&Z.cancel(g.id);var M=new ohf(g),W=_.Ozn(Z.uploadUrl,{"X-YouTube-ChannelId":Z.channelId},g.imageBlob);M.transfer=W;M.uploadPromise=IQl(W,g);Z.imagesUploadData.push(M);W.run()}};
jG.prototype.cancel=function(h){var E=iyA(this,h);E!==-1&&((E=this.imagesUploadData[E].transfer)&&E.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(g){return g.image.id!==h}))};
var iyA=function(h,E){return h.imagesUploadData.findIndex(function(g){return g.image.id===E})},IQl=function(h,E){return new Promise(function(g,Z){h.listen("l",function(){var M=h.getResponseText();
M?(M=JSON.parse(M).encryptedBlobId,E.encryptedBlobId=M,g(E)):Z("upload failed")});
h.listen("n",function(){Z("upload failed")})})},ohf=function(h){this.image=h};var jQu=function(h,E,g,Z,M){this.id=h;this.imageBlob=E;this.localImageSrc=g;this.naturalWidth=Z;this.naturalHeight=M;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 RUn=[".jpeg",".jpg",".png"],dw=function(){var h=_.D.apply(this,arguments)||this;h.showImagesPreview=!1;h.pollOptions=[];h.errorMessage="";h.optionPlaceholderText="";h.optionDefaultText="";h.JSC$15639_imageId=0;h.maxFileSizeMb=0;h.maxAspectRatio=0;h.invalidFileSizeError="";h.invalidAspectRatioError="";h.invalidFileTypeError="";h.imageSelector=new wy(null,"single_file",RUn);return h};
_.f(dw,_.D);_.p=dw.prototype;_.p.ready=function(){_.vK(this.imageSelector,"j",this.onImageSelect,!1,this);_.vK(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.vK(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.p.dataChanged=function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.cellTemplate)==null?void 0:E.onEmptyCellTap,CMl);if(g&&g.uploadUrl&&g.channelId){var Z;this.maxFileSizeMb=((Z=g.imageValidationInfo)==null?void 0:Z.maxFileSizeMb)||0;var M;this.maxAspectRatio=((M=g.imageValidationInfo)==null?void 0:M.allowedMaxAspectRatio)||0;var W;this.invalidFileSizeError=this.getSimpleString((W=this.data)==null?void 0:W.invalidFileSizeError);var z;this.invalidAspectRatioError=this.getSimpleString((z=this.data)==
null?void 0:z.invalidAspectRatioError);var c;this.invalidFileTypeError=this.getSimpleString((c=this.data)==null?void 0:c.invalidFileTypeError);this.uploadManager=new jG(g.uploadUrl,g.channelId)}};
_.p.onEditorInfoChange=function(){this.optionPlaceholderText=_.Wp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Wp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.p.observeAddImageError=function(){this.errorMessage!==""&&_.Ra(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.p.onPollOptionsChange=function(){for(var h=!1,E=[],g=0;g<this.pollOptions.length;g++){var Z=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(g+1);this.pollOptions[g].placeholderText!==Z?(h=!0,E.push(Object.assign({},this.pollOptions[g],{placeholderText:Z}))):E.push(this.pollOptions[g])}h&&(this.pollOptions=E);this.isValid()?_.Ra(this.hostElement,"yt-commentbox-post-enable"):_.Ra(this.hostElement,"yt-commentbox-post-disable")};
_.p.createPollOptions=function(h){var E=[],g;h=(g=h==null?void 0:h.minPollOptions)!=null?g:0;for(g=0;g<h;g++)E.push(this.createPollOption());return E};
_.p.onImageSelect=function(h){var E=this,g,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1){if(E.selectedImageIndex===void 0)return I.jumpTo(0);g=h.files[0];E.errorMessage="";Z=E.validateImage(g);if(Z!=="")return E.errorMessage=Z,I.return();M=new ji(E.maxAspectRatio,!1,!0);return I.yield(M.transform(g),3)}if(I.nextAddress!=4)return W=I.yieldResult,W.transformedData?W.invalidAspectRatio?(E.errorMessage=E.invalidAspectRatioError,I.return()):I.yield(dE$(E.JSC$15639_imageId,h.files[0],W.transformedData),
4):(E.errorMessage=E.invalidFileTypeError,I.return());z=I.yieldResult;E.JSC$15639_imageId++;aQf(E.uploadManager,[z]);c=Object.assign({},E.pollOptions[E.selectedImageIndex],{image:z});E.pollOptions.splice(E.selectedImageIndex,1,c);E.refreshPollOptions();_.Ra(E.hostElement,"yt-backstage-poll-image-select");_.SK(I)})};
_.p.validateImage=function(h){return h.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.p.refreshPollOptions=function(){this.pollOptions=[].concat(_.$E(this.pollOptions))};
_.p.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.$E(this.pollOptions),[this.createPollOption()]))};
_.p.onRemovePollOption=function(h){var E=this.pollOptions[h.model.index];E&&E.image&&this.uploadManager.cancel(E.image.id);this.pollOptions.splice(h.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Ra(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.p.onTextInput=function(){this.refreshPollOptions()};
_.p.onImageButtonClick=function(h){this.selectedImageIndex=h.model.index;this.imageSelector.click()};
_.p.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.p.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.p.saveImageRepositions=function(h){h=h.event_.detail;for(var E=0,g=[],Z=_.G(this.pollOptions),M=Z.next();!M.done;M=Z.next())M=M.value,M.image!==void 0?(M=Object.assign({},M,{image:h[E]}),g.push(M),E++):g.push(M);this.showImagesPreview=!1;this.pollOptions=[].concat(_.$E(g))};
_.p.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var h=0,E=_.G(this.pollOptions),g=E.next();!g.done;g=E.next())if(g=g.value,g.optionText.trim()!==""||g.image!==void 0){if(!g.image||this.hasCustomOptionText&&g.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;h++}return h>=Number(this.editorInfo.minPollOptions)};
_.p.getAllUploadStatuses=function(){var h=this,E,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return W.yield(h.uploadManager.getAllUploadStatuses(),2);E=W.yieldResult;g=_.G(E);for(Z=g.next();!Z.done;Z=g.next())if(M=Z.value,M.encryptedBlobId===void 0)return W.return(cHk(h.uploadManager));return W.return(E)})};
_.p.getPostCreateOptions=function(){for(var h=[],E=_.G(this.pollOptions),g=E.next();!g.done;g=E.next())g=g.value,g.image!==void 0&&h.push({text:this.hasCustomOptionText?g.optionText:g.placeholderText,image:g.image});return h};
_.p.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.p.createButtonRenderer=function(h,E){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:h,accessibilityData:{accessibilityData:{label:this.getSimpleString(h)}},isDisabled:E}};
_.p.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.p.computeThumbnailRendererData=function(h){return h?{image:h,selected:!1}:void 0};
_.p.getSimpleString=function(h){return _.Wp(h)};
_.p.updateOptionTextFromBinding=function(h){if(h.target){var E=Array.from(_.UB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(h.target);if(E>=0){var g;this.pollOptions[E].optionText=(g=h.detail.value)!=null?g:""}}};
_.ze.Object.defineProperties(dw.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.pollOptions.length<((E=(h=this.editorInfo)==null?void 0:h.maxPollOptions)!=null?E:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(h){return h.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(h){return h.image}).map(function(h){return h.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(h){return h.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.data)==null?void 0:h.addOptionButtonText;return E?this.createButtonRenderer(E,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.data)==null?void 0:h.repositionImagesButtonLabel;return E?this.createButtonRenderer(E,!this.hasImages):void 0}}});
dw.prototype.onPollOptionsChange=dw.prototype.onPollOptionsChange;dw.prototype.observeAddImageError=dw.prototype.observeAddImageError;dw.prototype.onEditorInfoChange=dw.prototype.onEditorInfoChange;dw.prototype.dataChanged=dw.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("ytd-backstage-multi-image-reposition-renderer"),_.V("design:type",Object)],dw.prototype,"imageRepositionContainer",void 0);
_.Y([_.x(),_.V("design:type",Object)],dw.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],dw.prototype,"editorInfo",void 0);_.Y([_.x(),_.V("design:type",jG)],dw.prototype,"uploadManager",void 0);_.Y([_.x(),_.V("design:type",Object)],dw.prototype,"showImagesPreview",void 0);_.Y([_.x(),_.V("design:type",Array)],dw.prototype,"pollOptions",void 0);_.Y([_.x(),_.V("design:type",Object)],dw.prototype,"errorMessage",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dw.prototype,"dataChanged",null);_.Y([_.lq("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dw.prototype,"onEditorInfoChange",null);_.Y([_.Nm("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dw.prototype,"observeAddImageError",null);
_.Y([_.lq("pollOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dw.prototype,"onPollOptionsChange",null);_.Y([_.S("pollOptions","editorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"isAllowedToAddOption",null);_.Y([_.S("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"hasImages",null);
_.Y([_.S("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"imagesToReposition",null);_.Y([_.S("pollOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"hasCustomOptionText",null);_.Y([_.S("data","isAllowedToAddOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"addOptionButton",null);_.Y([_.S("data","hasImages"),_.V("design:type",Object),_.V("design:paramtypes",[])],dw.prototype,"repositionImagesButton",null);
_.Y([_.K({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],dw);
_.X(dw,"ytd-backstage-image-poll-editor-renderer",function(){if(pdD!==void 0)return pdD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return pdD=h},{mode:2});var PWl={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 BFD;var Cn=function(){var h=_.D.apply(this,arguments)||this;h.a11yConfig=PWl;h.imageDisplayOffsetTop=0;h.imageDisplayOffsetLeft=0;h.pickerDisplayOffsetTop=0;h.pickerDisplayOffsetLeft=0;h.showPreviewContainer=!0;h.startPicker=!1;h.repositionOptional=!1;h.editOnlyMode=!1;h.savedImageDisplayOffsetTop=0;h.savedImageDisplayOffsetLeft=0;return h};
_.f(Cn,_.D);_.p=Cn.prototype;_.p.created=function(){_.ZL.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(h){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){h.detail.keyboardEvent.preventDefault();var E=0,g=0,Z="";switch(h.detail.keyboardEvent.key){case "ArrowUp":C2z(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":C2z(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":C2z(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:g=this.imageWidth*.05*-1;break;case "ArrowRight":C2z(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:g=this.imageWidth*.05}Z&&_.NH(Z)&&_.Ra(this.hostElement,"iron-announce",{text:_.NH(Z)});if(g||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),h=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),h=_.NH(this.a11yConfig.imageVerticalPosition,{x_percent:""+h,y_percent:""+(100-h)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+g)),h=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),h=_.NH(this.a11yConfig.imageHorizontalPosition,{x_percent:""+h,y_percent:""+(100-h)})),h&&_.Ra(this.hostElement,"iron-announce",{text:h})}};
_.p.getPreviewPosition=function(h,E,g,Z){return Math.round(100*(h+E*.5-g)/Z)};
_.p.calculateDisplayPosition=function(){var h=this.imageData.naturalWidth,E=this.imageData.naturalHeight;this.displayScale=Math.max(200/h,200/E);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var g=h*this.displayScale*this.imageData.previewCoordinates.left,Z=E*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=E>h?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-g;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=h>E?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-Z;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=h*this.displayScale;this.imageHeight=E*this.displayScale};
_.p.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.p.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.p.getSignedPosition=function(h,E,g){return E==="X"&&_.nF("HTML_DIR")==="rtl"?g==="-"?h+"px":h*-1+"px":g==="-"?h*-1+"px":h+"px"};
_.p.pickerMove=function(h){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-h.clientX,g=this.pickerOffsetY-h.clientY;this.pickerOffsetX=h.clientX;this.pickerOffsetY=h.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
g)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.p.pickerMoveStart=function(h){this.startPicker=!0;this.pickerOffsetX=h.clientX;this.pickerOffsetY=h.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var h=this.generateCropPreview();h&&_.Ra(this.hostElement,"ytd-backstage-image-preview-coordinates-update",h)};
_.p.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Ra(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.p.deleteImage=function(){_.Ra(this.hostElement,"ytd-backstage-image-preview-delete")};
_.p.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.p.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var h=this.generateCropPreview();h&&_.Ra(this.hostElement,"ytd-backstage-image-preview-coordinates-save",h)};
_.p.getPreviewOffset=function(h,E,g){return E&&h?(g==="X"&&_.nF("HTML_DIR")==="rtl"?300/E*h:300/E*h*-1)+"px":"0px"};
_.p.getSimpleText=function(h){return h?_.Wp(h):""};
_.p.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.ze.Object.defineProperties(Cn.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var h=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.NH(this.a11yConfig.imageVerticalPosition,{x_percent:""+h,y_percent:""+(100-h)})+"\n"+_.NH(this.a11yConfig.verticalRepositionInstruction)}h=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.NH(this.a11yConfig.imageHorizontalPosition,{x_percent:""+h,y_percent:""+(100-h)})+"\n"+_.NH(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 h,E,g=(h=this.instruction)==null?void 0:(E=h.previewInstruction)==null?void 0:E.editButtonLabel;return g?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleText(g)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M=this.editOnlyMode?(h=this.instruction)==null?void 0:(E=h.editInstruction)==null?void 0:E.saveImagesButtonLabel:(g=this.instruction)==null?void 0:(Z=g.editInstruction)==null?void 0:Z.saveButtonLabel;return M?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleText(M)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.instruction)==null?void 0:(E=h.previewInstruction)==null?void 0:E.deleteButtonLabel;return g?{size:"SIZE_SMALL",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleText(g)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.instruction)==null?void 0:(E=h.editInstruction)==null?void 0:E.cancelButtonLabel;h=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return g?{style:h,size:"SIZE_SMALL",text:g,accessibilityData:{accessibilityData:{label:this.getSimpleText(g)}}}: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"}}});
Cn.prototype.onEditOnlyModeUpdate=Cn.prototype.onEditOnlyModeUpdate;Cn.prototype.onImageChange=Cn.prototype.onImageChange;_.Y([_.x(),_.V("design:type",jQu)],Cn.prototype,"imageData",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"instruction",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"a11yConfig",void 0);_.Y([_.x(),_.V("design:type",Number)],Cn.prototype,"imageWidth",void 0);_.Y([_.x(),_.V("design:type",Number)],Cn.prototype,"imageHeight",void 0);
_.Y([_.x(),_.V("design:type",Number)],Cn.prototype,"displayScale",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"imageDisplayOffsetTop",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"imageDisplayOffsetLeft",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"pickerDisplayOffsetTop",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"pickerDisplayOffsetLeft",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"showPreviewContainer",void 0);
_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"startPicker",void 0);_.Y([_.x(),_.V("design:type",Number)],Cn.prototype,"pickerOffsetX",void 0);_.Y([_.x(),_.V("design:type",Number)],Cn.prototype,"pickerOffsetY",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"repositionOptional",void 0);_.Y([_.x(),_.V("design:type",Object)],Cn.prototype,"editOnlyMode",void 0);_.Y([_.Sg("#picker-container"),_.V("design:type",HTMLElement)],Cn.prototype,"JSC$15652_pickerContainer",void 0);
_.Y([_.Sg("#picker"),_.V("design:type",HTMLElement)],Cn.prototype,"picker",void 0);_.Y([_.Sg("#preview-clipper"),_.V("design:type",HTMLElement)],Cn.prototype,"previewClipper",void 0);_.Y([_.Sg("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],Cn.prototype,"JSC$15652_imageInBackground",void 0);_.Y([_.Sg("#image-in-picker"),_.V("design:type",HTMLImageElement)],Cn.prototype,"JSC$15652_imageInPicker",void 0);
_.Y([_.Sg("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],Cn.prototype,"JSC$15652_imageInPreviewClipper",void 0);_.Y([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"altLabelForImage",null);_.Y([_.S("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],Cn.prototype,"pickerSize",null);
_.Y([_.S("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cn.prototype,"imageOrientationStyle",null);_.Y([_.S("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cn.prototype,"editButton",null);_.Y([_.S("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cn.prototype,"saveButton",null);_.Y([_.S("instruction"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cn.prototype,"deleteButton",null);
_.Y([_.S("instruction","editOnlyMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],Cn.prototype,"cancelButton",null);_.Y([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],Cn.prototype,"cropOffsetTop",null);_.Y([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],Cn.prototype,"cropOffsetLeft",null);
_.Y([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"pickerBackgroundStyle",null);_.Y([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"pickerDisplayStyle",null);_.Y([_.S("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"imageInPickerStyle",null);
_.Y([_.S("cropOffsetLeft","cropOffsetTop","pickerSize"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"previewClipperStyle",null);_.Y([_.lq("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cn.prototype,"onImageChange",null);_.Y([_.lq("editOnlyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cn.prototype,"onEditOnlyModeUpdate",null);
_.Y([_.S("showPreviewContainer"),_.V("design:type",String),_.V("design:paramtypes",[])],Cn.prototype,"pickerModeStyle",null);_.Y([_.K({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Cn);
_.X(Cn,"ytd-backstage-image-preview-renderer",function(){if(BFD!==void 0)return BFD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return BFD=h},{mode:1});var UUf;var LGl={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 jcn;var dUB;var Ju=function(){var h=_.D.apply(this,arguments)||this;h.a11yConfig=LGl;h.imageDisplayOffsetTop=0;h.imageDisplayOffsetLeft=0;h.pickerDisplayOffsetTop=0;h.pickerDisplayOffsetLeft=0;h.cropCoordinatesSaved=!1;h.previewSize=0;h.startPicker=!1;h.repositionOptional=!1;return h};
_.f(Ju,_.D);_.p=Ju.prototype;_.p.created=function(){_.ZL.requestAvailability()};
_.p.ready=function(){};
_.p.onArrowKeysDown=function(h){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){h.detail.keyboardEvent.preventDefault();var E=0,g=0,Z="";switch(h.detail.keyboardEvent.key){case "ArrowUp":Jdu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?Z=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":Jdu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?Z=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":Jdu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?Z=this.a11yConfig.reachRightOfImage:g=this.imageWidth*.05*-1;break;case "ArrowRight":Jdu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?Z=this.a11yConfig.reachLeftOfImage:g=this.imageWidth*.05}Z&&_.NH(Z)&&_.Ra(this.hostElement,"iron-announce",{text:_.NH(Z)});if(g||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),h=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),h=_.NH(this.a11yConfig.imageVerticalPosition,{x_percent:""+h,y_percent:""+(100-h)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+g)),h=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),h=_.NH(this.a11yConfig.imageHorizontalPosition,{x_percent:""+h,y_percent:""+(100-h)})),h&&_.Ra(this.hostElement,"iron-announce",{text:h})}};
_.p.getPreviewPosition=function(h,E,g,Z){return Math.round(100*(h+E*.5-g)/Z)};
_.p.displayImage=function(){var h=this.JSC$15663_pickerContainer.getBoundingClientRect().width,E=this.JSC$15663_pickerContainer.getBoundingClientRect().height,g=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),Z=this.JSC$15663_imageInBackground.naturalWidth,M=this.JSC$15663_imageInBackground.naturalHeight;this.displayScale=Math.max(g/Z,g/M);this.imageWidth=Z*this.displayScale;this.imageHeight=M*this.displayScale;this.pickerDisplayOffsetLeft=(h-g)/2;this.pickerDisplayOffsetTop=
(E-g)/2;this.imageDisplayOffsetLeft=M>Z?this.pickerDisplayOffsetLeft:(h-this.imageWidth)/2;this.imageDisplayOffsetTop=Z>M?this.pickerDisplayOffsetTop:(E-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.p.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15663_imageInBackground.src=this.imageData.toString(),this.JSC$15663_imageInPicker.src=this.imageData.toString(),this.JSC$15663_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.p.getSignedPosition=function(h,E,g){return E==="X"&&_.nF("HTML_DIR")==="rtl"?g==="-"?h+"px":h*-1+"px":g==="-"?h*-1+"px":h+"px"};
_.p.pickerMove=function(h){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-h.clientX,g=this.pickerOffsetY-h.clientY;this.pickerOffsetX=h.clientX;this.pickerOffsetY=h.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
g)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.p.pickerMoveStart=function(h){this.startPicker=!0;this.pickerOffsetX=h.clientX;this.pickerOffsetY=h.clientY};
_.p.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.p.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Ra(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.p.getPreviewOffset=function(h,E,g,Z){return E&&h&&g?(Z==="X"&&_.nF("HTML_DIR")==="rtl"?g/E*h:g/E*h*-1)+"px":"0px"};
_.p.getSimpleText=function(h){return h?_.Wp(h):""};
_.p.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var h=this.cropOffsetTop/this.imageHeight,E=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,g=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,Z=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.UB(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Ra(this.hostElement,"yt-img-crop-coordinates-update",{top:h,right:E,bottom:g,left:Z})}};
_.ze.Object.defineProperties(Ju.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var h=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.NH(this.a11yConfig.imageVerticalPosition,{x_percent:""+h,y_percent:""+(100-h)})+"\n"+_.NH(this.a11yConfig.verticalRepositionInstruction)}h=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.NH(this.a11yConfig.imageHorizontalPosition,{x_percent:""+h,y_percent:""+(100-h)})+"\n"+_.NH(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 h,E=(h=this.learnMore.runs[0])==null?void 0:h.navigationEndpoint,g;return((g=_.e(E,_.yX))==null?void 0:g.url)||void 0}}}});
Ju.prototype.onImageDataChange=Ju.prototype.onImageDataChange;_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"imageData",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"instruction",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"a11yConfig",void 0);_.Y([_.x(),_.V("design:type",Number)],Ju.prototype,"imageWidth",void 0);_.Y([_.x(),_.V("design:type",Number)],Ju.prototype,"imageHeight",void 0);_.Y([_.x(),_.V("design:type",Number)],Ju.prototype,"displayScale",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"imageDisplayOffsetTop",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"imageDisplayOffsetLeft",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"pickerDisplayOffsetTop",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"pickerDisplayOffsetLeft",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"cropCoordinatesSaved",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"previewSize",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"startPicker",void 0);_.Y([_.x(),_.V("design:type",Number)],Ju.prototype,"pickerOffsetX",void 0);_.Y([_.x(),_.V("design:type",Number)],Ju.prototype,"pickerOffsetY",void 0);_.Y([_.x(),_.V("design:type",Object)],Ju.prototype,"repositionOptional",void 0);_.Y([_.Sg("#picker-container"),_.V("design:type",HTMLElement)],Ju.prototype,"JSC$15663_pickerContainer",void 0);_.Y([_.Sg("#picker"),_.V("design:type",HTMLElement)],Ju.prototype,"picker",void 0);
_.Y([_.Sg("#image-in-picker-background"),_.V("design:type",HTMLImageElement)],Ju.prototype,"JSC$15663_imageInBackground",void 0);_.Y([_.Sg("#image-in-picker"),_.V("design:type",HTMLImageElement)],Ju.prototype,"JSC$15663_imageInPicker",void 0);_.Y([_.Sg("#image-in-preview-clipper"),_.V("design:type",HTMLImageElement)],Ju.prototype,"JSC$15663_imageInPreviewClipper",void 0);_.Y([_.Sg("#full-image-as-preview"),_.V("design:type",HTMLImageElement)],Ju.prototype,"imageAsPreview",void 0);
_.Y([_.S("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"altLabelForImage",null);_.Y([_.S("imageHeight","imageWidth"),_.V("design:type",Number),_.V("design:paramtypes",[])],Ju.prototype,"pickerSize",null);_.Y([_.S("imageHeight","imageWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ju.prototype,"imageOrientationStyle",null);
_.Y([_.S("instruction.previewInstruction.editButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ju.prototype,"editButton",null);_.Y([_.S("instruction.editInstruction.saveButtonLabel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ju.prototype,"saveButton",null);_.Y([_.S("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.V("design:type",Number),_.V("design:paramtypes",[])],Ju.prototype,"cropOffsetTop",null);
_.Y([_.S("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.V("design:type",Number),_.V("design:paramtypes",[])],Ju.prototype,"cropOffsetLeft",null);_.Y([_.S("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"pickerBackgroundStyle",null);_.Y([_.S("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"pickerDisplayStyle",null);
_.Y([_.S("cropOffsetLeft","cropOffsetTop"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"imageInPickerStyle",null);_.Y([_.S("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"previewClipperStyle",null);_.Y([_.Nm("imageData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ju.prototype,"onImageDataChange",null);
_.Y([_.S("cropCoordinatesSaved"),_.V("design:type",String),_.V("design:paramtypes",[])],Ju.prototype,"pickerModeStyle",null);_.Y([_.S("instruction.editInstruction.learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ju.prototype,"learnMore",null);_.Y([_.S("learnMore"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ju.prototype,"learnMoreUrl",null);_.Y([_.yc({is:"yt-img-crop-picker",disableElementRegistration:!0})],Ju);
_.X(Ju,"yt-img-crop-picker",function(){if(dUB===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;jcn===void 0&&(jcn=document.createElement("template"));var Z=jcn;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);dUB=h}h=dUB;return h},{mode:2});var eG=function(){var h=_.D.apply(this,arguments)||this;h.errorMessage="";h.hasPreview=!1;h.isBackstagePost=!1;h.dismissButtonOverrides={size:"XS"};return h};
_.f(eG,_.D);_.p=eG.prototype;_.p.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.detached=function(){this.removeOverlay()};
_.p.setPreview=function(h){_.UB(this.hostElement).querySelector("#preview-picker").imageData=h;this.hasPreview=!0;_.Ra(this.hostElement,"yt-backstage-image-select-preview")};
_.p.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var h=_.UB(this.hostElement).querySelector("#dropzone");h.classList.remove("dragover");h.classList.remove("error");_.Ra(this.hostElement,"yt-backstage-image-select-cancel")};
_.p.setupOverlay=function(){var h=this.imageUploadEndpoint;this.removeOverlay();if(h&&h.imageValidationInfo){var E=_.UB(this.hostElement).querySelector("#dropzone"),g=_.UB(this.hostElement).querySelector("#select");this.overlay=new CC(h.uploadUrl,h.channelId,h.imageValidationInfo.maxFileSizeMb,h.imageValidationInfo.allowedMaxAspectRatio,E,g,!0);_.vK(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.vK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.vK(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.vK(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.vK(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.p.removeOverlay=function(){this.overlay&&(_.r6(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.r6(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.r6(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.r6(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.r6(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.p.onDragOver=function(h){var E=_.UB(this.hostElement).querySelector("#dropzone");_.jg(E,"dragover",h.value)};
_.p.onPreview=function(h){this.setPreview(h.value)};
_.p.onImageError=function(h){if(h.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var E;h=(E=this.data)==null?void 0:E.fileSizeError}else if(h.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var g;h=(g=this.data)==null?void 0:g.invalidError}else if(h.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var Z;h=(Z=this.data)==null?void 0:Z.invalidAspectRatioError}else return;this.errorMessage=_.Wp(h);_.UB(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.p.onImageAlert=function(h){this.onImageError(h)};
_.p.uploadPromise=function(){var h=this,E=this.overlay&&this.overlay.uploadPromise();if(E)return E.catch(function(){throw Error(h.data?_.Wp(h.data.uploadFailureError):"");})};
_.ze.Object.defineProperties(eG.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var h,E;if((h=this.data)==null?0:(E=h.icon)==null?0:E.iconType)return _.CL(this.data.icon.iconType)}}});
eG.prototype.setupOverlay=eG.prototype.setupOverlay;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eG.prototype,"rendererStamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eG.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eG.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],eG.prototype,"imageUploadEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],eG.prototype,"errorMessage",void 0);
_.Y([_.x(),_.V("design:type",CC)],eG.prototype,"overlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],eG.prototype,"hasPreview",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],eG.prototype,"isBackstagePost",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eG.prototype,"selectionCancel",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eG.prototype,"previewCancel",null);
_.Y([_.S("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],eG.prototype,"icon",null);_.Y([_.x(),_.V("design:type",Object)],eG.prototype,"dismissButtonOverrides",void 0);_.Y([_.Nm("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eG.prototype,"setupOverlay",null);_.Y([_.K({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],eG);
_.X(eG,"ytd-backstage-image-select-renderer",function(){if(UUf!==void 0)return UUf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return UUf=h},{mode:1});var CWn;var JHB;var q1=function(){var h=_.D.apply(this,arguments)||this;h.selected=!1;return h};
_.f(q1,_.D);_.p=q1.prototype;_.p.computeSelected=function(h){return h==null?void 0:h.selected};
_.p.computeTransform=function(h,E,g){var Z,M,W=(M=(Z=this.imageContainer)==null?void 0:Z.getBoundingClientRect())!=null?M:{width:0,height:0};Z=Math.max(W.width/E,W.height/g);g=g*Z*h.top;return"translateX("+this.getSignedPosition(E*Z*h.left,"X","-")+") translateY("+this.getSignedPosition(g,"Y","-")+")"};
_.p.getSignedPosition=function(h,E,g){return E==="X"&&_.nF("HTML_DIR")==="rtl"?g==="-"?h+"px":h*-1+"px":g==="-"?h*-1+"px":h+"px"};
_.p.onClick=function(){var h;_.Ra(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(h=this.data)==null?void 0:h.image)};
_.p.onKeyPress=function(h){if(h.keyCode===13)this.onClick()};
_.ze.Object.defineProperties(q1.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.image)==null?void 0:E.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)!=null&&h.image){var E;h=(E=this.data)==null?void 0:E.image;return h.previewCoordinates.top!==0||h.previewCoordinates.left!==0?(E=this.computeTransform(h.previewCoordinates,h.naturalWidth,h.naturalHeight),h.naturalHeight>=h.naturalWidth?"width:inherit;transform:"+E+";":"height:inherit;transform:"+E+";"):h.naturalHeight>=h.naturalWidth?"width:inherit;":"height:inherit;"}}}});
q1.prototype.onKeyPress=q1.prototype.onKeyPress;_.Y([_.Sg(".image-container"),_.V("design:type",HTMLElement)],q1.prototype,"imageContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],q1.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.V("design:type",Object)],q1.prototype,"selected",void 0);_.Y([_.S("data.image"),_.V("design:type",Object),_.V("design:paramtypes",[])],q1.prototype,"thumbnailUrl",null);
_.Y([_.S("data.image","data.image.previewCoordinates"),_.V("design:type",Object),_.V("design:paramtypes",[])],q1.prototype,"thumbnailStyle",null);_.Y([_.f3("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],q1.prototype,"onKeyPress",null);_.Y([_.K({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],q1);
_.X(q1,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(JHB!==void 0)return JHB;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return JHB=h},{mode:2});var fn=function(h,E,g){g=g===void 0?!1:g;_.ms.call(this);var Z=this;this.dropZoneOverlay=new xc(h);this.selectOverlay=g?new wy(E,"multiple_file",["image/*"]):new wy(E,"single_file",["image/*"]);this.handler=new _.Pl(this);_.jf(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(E,"click",function(){Z.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.f(fn,_.ms);fn.prototype.onChange=function(h){var E;(E=h.files)!=null&&E.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:h.files}))};var N1=function(){var h=_.D.apply(this,arguments)||this;h.addImageErrorMessage="";h.errorMessage="";h.images=[];h.selectedImageIndex=0;h.modern=_.J("web_modern_buttons");h.maxNumImagesPerPost=_.cx("max_num_images_per_post_web_ui");h.JSC$15678_imageId=0;return h};
_.f(N1,_.D);_.p=N1.prototype;_.p.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Ra(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.p.observeDragToReorder=function(){var h=this;if(this.showImagesPreview){var E,g=weF(_.DI.getInstance(),(E=this.data)==null?void 0:E.dragToReorderTooltip);_.KP.addLowPriorityJob(function(){_.jj(h.hostElement,g,h.thumbnailDragDropArea)})}};
_.p.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.p.computeThumbnail=function(h){return(h==null?void 0:h.localImageSrc)||void 0};
_.p.onRendererstamperFinished=function(){_.L7n(this.ytReorderableBehavior,_.UB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.UB(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.p.handleDrop=function(h){var E=h.currDragItem;if(E!=null&&E.data){h=this.images[this.selectedImageIndex];var g=E.data.image,Z=this.images.indexOf(g)||0;E=_.O4(E.parentNode.children,E);this.images.splice(Z,1);this.images.splice(E,0,g);this.images=[].concat(_.$E(this.images));this.selectedImageIndex=this.images.indexOf(h)}};
_.p.setUpImagePicker=function(){var h=this.imageUploadEndpoint;h&&h.imageValidationInfo&&(this.uploadManager=new jG(h.uploadUrl,h.channelId),this.initialPicker||(this.initialPicker=new fn(this.dropzone,this.selectLink,!0),_.vK(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new fn(this.addImageButtonContainer,this.addImageSelectButton),_.vK(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.vK(this.JSC$15678_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.vK(this.JSC$15678_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.vK(_.UB(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.p.detached=function(){this.initialPicker&&(_.r6(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.r6(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.p.onInitialSelectImages=function(h){var E=this;return _.a(function(g){return g.yield(E.onSelectImages(h,!1),0)})};
_.p.onAddImage=function(h){var E=this;return _.a(function(g){return g.yield(E.onSelectImages(h,!0),0)})};
_.p.onSelectImages=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A;return _.a(function(E4){switch(E4.nextAddress){case 1:E?g.addImageErrorMessage="":(g.images=[],g.errorMessage="");Z=h.detail;M=g.validateImages([].concat(_.$E(Z)));if(M!=="")return E?g.addImageErrorMessage=M:g.errorMessage=M,E4.return();W=[].concat(_.$E(Z)).map(function(iO){return(new ji(g.maxAspectRatio,!1,!0)).transform(iO)});
return E4.yield(Promise.allSettled(W),2);case 2:z=E4.yieldResult,c=_.G(z.entries()),I=c.next();case 3:if(I.done){E4.jumpTo(5);break}B=I.value;U=_.G(B);L=U.next().value;d=U.next().value;C=L;q=d;if(q.status!=="fulfilled"){v=r=w=void 0;E?g.addImageErrorMessage=_.Wp((w=g.data)==null?void 0:w.invalidError):g.errorMessage=g.errorMessage===""?_.Wp((r=g.data)==null?void 0:r.invalidError):_.Wp((v=g.data)==null?void 0:v.multiFileError);E4.jumpTo(4);break}H=q.value;H.cropped&&_.Ra(g.hostElement,"yt-backstage-multi-image-cropped");
if(H.invalidAspectRatio){y=k=u=void 0;E?g.addImageErrorMessage=_.Wp((u=g.data)==null?void 0:u.invalidAspectRatioError):g.errorMessage=g.errorMessage===""?_.Wp((k=g.data)==null?void 0:k.invalidAspectRatioError):_.Wp((y=g.data)==null?void 0:y.multiFileError);E4.jumpTo(4);break}return E4.yield(dE$(g.JSC$15678_imageId,h.detail[C],H.transformedData),8);case 8:A=E4.yieldResult,g.images.push(A),g.JSC$15678_imageId++;case 4:I=c.next();E4.jumpTo(3);break;case 5:if(g.errorMessage!==""||g.addImageErrorMessage!==
"")return E4.return();E?aQf(g.uploadManager,[g.images[g.images.length-1]]):aQf(g.uploadManager,g.images);g.images=[].concat(_.$E(g.images));g.selectedImageIndex=E?Math.max(g.images.length-1,0):0;_.Ra(g.hostElement,"yt-backstage-multi-image-select");_.SK(E4)}})};
_.p.onThumbnailClick=function(h){if(h=h.event_.detail)this.selectedImageIndex=this.images.indexOf(h)};
_.p.validateImages=function(h){if(h.length>this.maxNumImagesPerPost){var E;return _.Wp((E=this.data)==null?void 0:E.multiImageExceedMaxImageCountError)}var g=1048576*this.maxFileSizeMb;h=h.filter(function(W){return W.size>g}).length;
if(h===0)return"";var Z,M;h=h>1?(Z=this.data)==null?void 0:Z.multiFileError:(M=this.data)==null?void 0:M.fileSizeError;return _.Wp(h)};
_.p.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.$E(this.images));this.selectedImageIndex=0};
_.p.repositionImage=function(h){this.images[this.selectedImageIndex].previewCoordinates=h.event_.detail;this.images=[].concat(_.$E(this.images))};
_.p.getAllUploadStatuses=function(){var h=this,E,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return W.yield(h.uploadManager.getAllUploadStatuses(),2);E=W.yieldResult;g=_.G(E);for(Z=g.next();!Z.done;Z=g.next())if(M=Z.value,M.encryptedBlobId===void 0)return W.return(cHk(h.uploadManager));return W.return(E)})};
_.p.hasImages=function(){return this.images.length>0};
_.p.cancel=function(){for(var h=this.uploadManager,E=_.G(h.imagesUploadData),g=E.next();!g.done;g=E.next())h.cancel(g.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Ra(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ze.Object.defineProperties(N1.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.imageUploadEndpoint)==null?void 0:(E=h.imageValidationInfo)==null?void 0:E.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.imageUploadEndpoint)==null?void 0:(E=h.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var h,E;if((h=this.data)==null?0:(E=h.icon)==null?0:E.iconType)return _.CL(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.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 h=this;return(this.images||[]).map(function(E,g){return{renderer:{image:E,selected:g===h.selectedImageIndex}}})}}});
N1.prototype.setUpImagePicker=N1.prototype.setUpImagePicker;N1.prototype.onRendererstamperFinished=N1.prototype.onRendererstamperFinished;N1.prototype.observeDragToReorder=N1.prototype.observeDragToReorder;N1.prototype.observeAddImageError=N1.prototype.observeAddImageError;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],N1.prototype,"rendererStamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.jlD),_.V("design:type",Object)],N1.prototype,"ytReorderableBehavior",void 0);_.Y([_.Sg("#dropzone"),_.V("design:type",HTMLElement)],N1.prototype,"dropzone",void 0);_.Y([_.Sg("#select-link"),_.V("design:type",HTMLElement)],N1.prototype,"selectLink",void 0);_.Y([_.Sg("#thumbnail-drag-drop-area"),_.V("design:type",HTMLElement)],N1.prototype,"thumbnailDragDropArea",void 0);_.Y([_.Sg("#add-image-button-container"),_.V("design:type",HTMLElement)],N1.prototype,"addImageButtonContainer",void 0);
_.Y([_.Sg("#add-image-button"),_.V("design:type",HTMLElement)],N1.prototype,"addImageSelectButton",void 0);_.Y([_.Sg("#image-preview-container"),_.V("design:type",Object)],N1.prototype,"JSC$15678_imagePreviewContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],N1.prototype,"addImageErrorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],N1.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],N1.prototype,"errorMessage",void 0);
_.Y([_.x(),_.V("design:type",Object)],N1.prototype,"imageUploadEndpoint",void 0);_.Y([_.x(),_.V("design:type",Array)],N1.prototype,"images",void 0);_.Y([_.x(),_.V("design:type",fn)],N1.prototype,"initialPicker",void 0);_.Y([_.x(),_.V("design:type",fn)],N1.prototype,"addImagePicker",void 0);_.Y([_.x(),_.V("design:type",jG)],N1.prototype,"uploadManager",void 0);_.Y([_.x(),_.V("design:type",Object)],N1.prototype,"selectedImageIndex",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],N1.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],N1.prototype,"maxNumImagesPerPost",void 0);_.Y([_.S("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],N1.prototype,"maxAspectRatio",null);_.Y([_.S("imageUploadEndpoint"),_.V("design:type",Number),_.V("design:paramtypes",[])],N1.prototype,"maxFileSizeMb",null);
_.Y([_.S("data.icon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],N1.prototype,"dropIcon",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],N1.prototype,"selectionCancel",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],N1.prototype,"previewCancel",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],N1.prototype,"dataForAddImageButton",null);
_.Y([_.S("errorMessage"),_.V("design:type",String),_.V("design:paramtypes",[])],N1.prototype,"dropzoneClass",null);_.Y([_.S("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N1.prototype,"showImagesPreview",null);_.Y([_.S("images"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N1.prototype,"containMaxImages",null);_.Y([_.Nm("addImageErrorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N1.prototype,"observeAddImageError",null);
_.Y([_.Nm("showImagesPreview"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N1.prototype,"observeDragToReorder",null);_.Y([_.S("images","selectedImageIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],N1.prototype,"selectedImageData",null);_.Y([_.S("images","selectedImageIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],N1.prototype,"thumbnailRenderers",null);
_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N1.prototype,"onRendererstamperFinished",null);_.Y([_.Nm("imageUploadEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],N1.prototype,"setUpImagePicker",null);_.Y([_.K({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],N1);
_.X(N1,"ytd-backstage-multi-image-select-renderer",function(){if(CWn!==void 0)return CWn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return CWn=h},{mode:1});var eUF;var qTf;var fQC;var tu=function(){var h=_.D.apply(this,arguments)||this;h.boundCaptureFocus=function(E){h.onCaptureFocus(E)};
return h};
_.f(tu,_.D);_.p=tu.prototype;_.p.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.p.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.p.onCaptureFocus=function(h){_.Gw(h).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.p.getIconType=function(h){return h?"yt-icons:"+h.toLowerCase():null};
_.p.onSelect=function(){var h;if((h=this.data)==null?0:h.onSelectCommand)if(_.J("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var E;((E=_.e(this.data.onSelectCommand.commandMetadata,_.qH))==null?0:E.url)?_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.GF().resolve(_.zF).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ze.Object.defineProperties(tu.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Wp(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}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],tu.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tu.prototype,"data",void 0);_.Y([_.Sg("#item"),_.V("design:type",HTMLElement)],tu.prototype,"item",void 0);_.Y([_.S("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],tu.prototype,"label",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],tu.prototype,"value",null);_.Y([_.K({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],tu);
_.X(tu,"ytd-privacy-dropdown-item-renderer",function(){if(fQC!==void 0)return fQC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fQC=h},{mode:1});var SG=function(){var h=_.D.apply(this,arguments)||this;h.value="";h.label="";h.disabled=!1;return h};
_.f(SG,_.D);_.p=SG.prototype;_.p.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.p.dataChanged=function(){this.reset()};
_.p.valueChanged=function(){var h;if(this.value&&(h=this.data)!=null&&h.entries){h=_.G(this.data.entries);for(var E=h.next();!E.done;E=h.next())if((E=this.getRendererForEntry(E.value))&&this.getItemRendererValue(E)===this.value){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}}};
_.p.setInitialLabel=function(){if(this.data&&this.data.entries)for(var h=_.G(this.data.entries),E=h.next();!E.done;E=h.next())if(E=this.getRendererForEntry(E.value)){if(E.isSelected){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}this.data.label&&(this.label=this.data.label)}};
_.p.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var h=_.G(this.data.entries),E=h.next();!E.done;E=h.next()){E=this.getRendererForEntry(E.value);var g=void 0;if((g=E)==null?0:g.isSelected)return this.getItemRendererValue(E)||-1}return-1};
_.p.getItemRendererValue=function(h){return"stringValue"in h||"int32Value"in h?h.stringValue||h.int32Value||null:null};
_.p.getRendererForEntry=function(h){return h.dropdownItemRenderer||h.privacyDropdownItemRenderer||h.navigationDropdownItemRenderer||null};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("value-changed",this.value))};
_.p.updateValueFromBinding=function(h){this.value=h.detail.value};
SG.prototype.valueChangedForBinding=SG.prototype.valueChangedForBinding;SG.prototype.valueChanged=SG.prototype.valueChanged;SG.prototype.dataChanged=SG.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],SG.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],SG.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],SG.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],SG.prototype,"value",void 0);_.Y([_.x(),_.V("design:type",Object)],SG.prototype,"label",void 0);_.Y([_.Sg("#entries"),_.V("design:type",Object)],SG.prototype,"entries",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],SG.prototype,"disabled",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SG.prototype,"dataChanged",null);
_.Y([_.lq("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SG.prototype,"valueChanged",null);_.Y([_.Nm("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SG.prototype,"valueChangedForBinding",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],SG);
_.X(SG,"ytd-flat-dropdown-renderer",function(){if(qTf!==void 0)return qTf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return qTf=h},{mode:1});var NFF;var xn=function(){var h=_.D.apply(this,arguments)||this;h.quizOptions=[];h.explanationPlaceholderText="";h.optionPlaceholderText="";h.correctAnswerIndex=-1;h.isMarkAnswerTooltipShown=!1;h.timer=0;return h};
_.f(xn,_.D);_.p=xn.prototype;_.p.dataChanged=function(){this.optionPlaceholderText=_.Wp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Wp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.p.onMarkCorrectAnswer=function(h){var E,g=((E=this.quizOptions[this.correctAnswerIndex])==null?void 0:E.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[h.model.index]=Object.assign({},this.quizOptions[h.model.index],{explanationText:g,isCorrect:!0});this.correctAnswerIndex=h.model.index;this.quizOptions=[].concat(_.$E(this.quizOptions))};
_.p.updatePlaceholderTexts=function(){for(var h=!1,E=[],g=0;g<this.quizOptions.length;g++){var Z=this.optionPlaceholderText+" "+(g+1),M=void 0;((M=this.quizOptions[g])==null?void 0:M.placeholderText)!==Z?(h=!0,E.push(Object.assign({},this.quizOptions[g],{placeholderText:Z}))):E.push(this.quizOptions[g])}h&&(this.quizOptions=E);this.isValid()?_.Ra(this.hostElement,"yt-commentbox-post-enable"):_.Ra(this.hostElement,"yt-commentbox-post-disable")};
_.p.getSimpleString=function(h){return _.Wp(h)};
_.p.createQuizOptions=function(h){var E=[],g;h=(g=h==null?void 0:h.minQuizOptions)!=null?g:0;for(g=0;g<h;g++)E.push(this.createQuizOption());return E};
_.p.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.$E(this.quizOptions),[this.createQuizOption()]))};
_.p.onInput=function(){this.quizOptions=[].concat(_.$E(this.quizOptions))};
_.p.onExplanationInput=function(){_.Ra(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.p.onRemoveQuizOption=function(h){this.quizOptions.splice(h.model.index,1);h.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:h.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.$E(this.quizOptions));this.quizOptions.length===0&&_.Ra(this.hostElement,"yt-quiz-attachment-dismiss")};
_.p.updateHintRenderer=function(){var h=this;clearTimeout(this.timer);this.timer=setTimeout(function(){h.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.p.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var h=0,E=0,g=_.G(this.quizOptions),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=void 0;if(((M=Z.optionText)==null?void 0:M.trim())!==""||Z.isCorrect){Z.isCorrect&&E++;M=void 0;if(this.hasCustomOptionText&&((M=Z.optionText)==null?void 0:M.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;h++}}return h>=
Number(this.editorInfo.minQuizOptions)&&E===1};
_.p.getPostCreateOptions=function(){for(var h=[],E=_.G(this.quizOptions),g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;((Z=g.optionText)==null?void 0:Z.trim())!==""&&h.push({pollOption:{text:g.optionText,explanation:g.explanationText},isCorrect:g.isCorrect})}return h};
_.p.getExplanationText=function(){var h;return((h=this.quizOptions[this.correctAnswerIndex])==null?void 0:h.explanationText)||""};
_.p.maybeDisplayMarkAnswerEduToolTip=function(){var h,E,g,Z,M,W,z;this.shouldShowMarkAnswerTooltip()&&((h=this.editorInfo)==null?0:(E=h.markAnswerButton)==null?0:(g=E.buttonRenderer)==null?0:(Z=g.hint)==null?0:(M=Z.hintRenderer)==null?0:(W=M.content)==null?0:(z=W.bubbleHintRenderer)==null?0:z.text)&&(_.DI.getInstance(),h=lc(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,(h==null?void 0:h.length)>0&&this.optionSelectors&&_.qB(h[0],this.optionSelectors[0]))};
_.p.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var h=0,E=_.G(this.quizOptions),g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;((Z=g.optionText)==null?void 0:Z.trim())!==""&&h++;if(g.isCorrect)return!1}return h<2?!1:!0};
_.p.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.p.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.p.updateOptionTextFromBinding=function(h){if(h.target){var E=Array.from(_.UB(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(h.target);if(E>=0){var g;this.quizOptions[E].optionText=(g=h.detail.value)!=null?g:""}}};
_.ze.Object.defineProperties(xn.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.editorInfo)==null?void 0:(E=h.addOptionButton)==null?void 0:E.buttonRenderer;g&&(g.style="STYLE_SUGGESTIVE",g.size="SIZE_SMALL",g.isDisabled=!this.isAllowedToAddOption);return(g==null?0:g.text)?g:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.quizOptions.length<((E=(h=this.editorInfo)==null?void 0:h.maxQuizOptions)!=null?E:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(h){var E;return(E=h.optionText)==null?void 0:E.trim()})}}});
xn.prototype.updatePlaceholderTexts=xn.prototype.updatePlaceholderTexts;xn.prototype.dataChanged=xn.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],xn.prototype,"editorInfo",void 0);_.Y([_.x(),_.V("design:type",Array)],xn.prototype,"quizOptions",void 0);_.Y([_.x(),_.V("design:type",Object)],xn.prototype,"explanationPlaceholderText",void 0);_.Y([_.xA(".option-selector-button"),_.V("design:type",Array)],xn.prototype,"optionSelectors",void 0);
_.Y([_.lq("editorInfo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xn.prototype,"dataChanged",null);_.Y([_.S("editorInfo","isAllowedToAddOption","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],xn.prototype,"addAnswerButton",null);_.Y([_.S("editorInfo","quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],xn.prototype,"isAllowedToAddOption",null);
_.Y([_.lq("quizOptions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xn.prototype,"updatePlaceholderTexts",null);_.Y([_.S("quizOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],xn.prototype,"hasCustomOptionText",null);_.Y([_.K({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],xn);
_.X(xn,"ytd-backstage-quiz-editor-renderer",function(){if(NFF!==void 0)return NFF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return NFF=h},{mode:2});var tZH;var STB=(dH.FIRSTDAYOFWEEK+1)%7;var xUk;var wdl=[],DUn=0,lQC=0;DUn=0;lQC=24;if(.25*(lQC-DUn)<0)xUk=[];else{for(var rHn=DUn;rHn<lQC;rHn+=.25)wdl.push(rHn);xUk=wdl}var mUD=xUk.map(function(h){h=h*60*60;return{secondsSinceMidnight:h,text:(new Z9(7)).format(new Date(0,0,0,0,0,h))}});var vhf;var ww=function(){var h=_.D.apply(this,arguments)||this;h.skipNextOpenDialog=!1;h.errorMessage="";h.previousMonthLabel=_.NH("PREVIOUS_MONTH_LABEL");h.nextMonthLabel=_.NH("NEXT_MONTH_LABEL");return h};
_.f(ww,_.D);_.p=ww.prototype;_.p.attached=function(){var h=this,E=new MutationObserver(function(){h.JSC$15721_calendarMain.scrollHeight>0&&(E.disconnect(),h.calendarConfig&&h.calendarConfig.selectedDate&&h.scrollToDate())});
E.observe(this.JSC$15721_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){E.disconnect()},1E3)};
_.p.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.p.onDateTextChange=function(){if(this.calendarConfig){var h=this.validateDateText();h.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(h.details)):this.textbox.setAttribute("invalid","")}};
_.p.handleDayClick=function(h){h.model.day.date&&(this.commitDate(h.model.day.date),this.dialog.close())};
_.p.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var h=DEO(this.calendarConfig.selectedDate,this.renderData);h!==void 0&&this.JSC$15721_calendarMain.scrollToIndex(h)}};
_.p.scrollToNextMonth=function(){this.JSC$15721_calendarMain.scrollToIndex(this.JSC$15721_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15721_calendarMain.firstVisibleIndex===0&&this.JSC$15721_calendarMain.scrollTo(0,0);this.JSC$15721_calendarMain.scrollToIndex(this.JSC$15721_calendarMain.firstVisibleIndex-1)};
_.p.onFormSubmit=function(h){h.preventDefault();this.calendarConfig&&(h=this.validateDateText(),h.isValid&&(this.commitDate(h.details),this.dialog.close()))};
_.p.onEscOrClickingOutside=function(h){h=h.detail.path&&!!h.detail.path.length&&h.detail.path[0];if(h.classList.contains("ytd-calendar-date-picker")){h===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var E=0;E<this.dropdownButton.children.length;E++)this.dropdownButton.children[E]===h&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}h=this.textbox.value!==this.dateText;E=this.validateDateText();h&&E.isValid&&this.commitDate(E.details);this.dialog.close();this.textbox.value=
this.dateText};
_.p.commitDate=function(h){this.calendarConfig&&(this.set("calendarConfig.selectedDate",h),_.Ra(this.hostElement,"ytd-calendar-date-selected",h))};
_.p.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var h=this.textbox.value;var E=new Date;h=(new bEz(2)).parse(h,E,{validate:!0})===h.length?xE4(E):void 0;if(!h)return this.errorMessage=_.NH("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};E=this.calendarConfig.start;var g=this.calendarConfig.end;if(qwd(h,E))return this.errorMessage=_.NH("ENTER_DATE_OR_LATER",{allowed_date:Swz(E)}),{isValid:!1,details:void 0};if(qwd(g,h))return this.errorMessage=
_.NH("ENTER_DATE_OR_EARLIER",{allowed_date:Swz(g)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:h}};
_.ze.Object.defineProperties(ww.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Swz(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var h=this.calendarConfig,E=[],g=0;g<7;g++)E.push(dH.NARROWWEEKDAYS[(g+STB)%7]);g=[];for(var Z=new Date(h.start.year,h.start.month);Z.getFullYear()<h.end.year||Z.getFullYear()===h.end.year&&Z.getMonth()<=h.end.month;){var M=g,W=M.push,z=Z.getFullYear(),c=Z.getMonth(),I=h,B=void 0,U=[],L=Object.freeze({extraCssClass:"invisible",debugClass:""}),d=new Date(z,c),C=xE4(d);d=d.getDay();for(var q=xE4(new Date);C.month===
c;){d!==STB&&B||(B=Array.from({length:7}).fill(L),U.push(B));var w={date:{year:z,month:c,day:C.day},extraCssClass:"",debugClass:""};I.selectedDate&&w.date&&eid(w.date,I.selectedDate)&&(w.extraCssClass+=" selected");if(qwd(C,I.start)||qwd(I.end,C))w.extraCssClass+=" disabled";eid(C,q)&&(w.extraCssClass+=" today");w.extraCssClass=w.extraCssClass.trim();B[(d-STB+7)%7]=w;C=NTd(C);d=(d+1)%7}W.call(M,{weeks:U,monthLabel:dH.SHORTMONTHS[c]+" "+z,year:z,month:c,monthLabelExtraCssClass:U[0][2]===L?"shift-down-label":
""});Z.setMonth(Z.getMonth()+1)}return{months:g,daysOfWeekLabel:E}}}}});
ww.prototype.onEscOrClickingOutside=ww.prototype.onEscOrClickingOutside;ww.prototype.scrollToDate=ww.prototype.scrollToDate;_.Y([_.x(),_.V("design:type",Object)],ww.prototype,"calendarConfig",void 0);_.Y([_.x(),_.V("design:type",Object)],ww.prototype,"skipNextOpenDialog",void 0);_.Y([_.x(),_.V("design:type",Object)],ww.prototype,"errorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],ww.prototype,"previousMonthLabel",void 0);
_.Y([_.x(),_.V("design:type",Object)],ww.prototype,"nextMonthLabel",void 0);_.Y([_.Sg("#textbox"),_.V("design:type",HTMLInputElement)],ww.prototype,"textbox",void 0);_.Y([_.Sg("#calendar-dialog"),_.V("design:type",Object)],ww.prototype,"dialog",void 0);_.Y([_.Sg("#calendar-main"),_.V("design:type",Object)],ww.prototype,"JSC$15721_calendarMain",void 0);_.Y([_.Sg("#date-picker"),_.V("design:type",HTMLElement)],ww.prototype,"dropdownButton",void 0);
_.Y([_.S("calendarConfig.selectedDate"),_.V("design:type",String),_.V("design:paramtypes",[])],ww.prototype,"dateText",null);_.Y([_.S("calendarConfig","calendarConfig.selectedDate"),_.V("design:type",Object),_.V("design:paramtypes",[])],ww.prototype,"renderData",null);_.Y([_.Nm("renderData","calendarConfig.selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ww.prototype,"scrollToDate",null);
_.Y([_.f3("iron-overlay-canceled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ww.prototype,"onEscOrClickingOutside",null);_.Y([_.yc({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],ww);
_.X(ww,"ytd-calendar-date-picker",function(){if(vhf!==void 0)return vhf;var h=document.createElement("template");_.N(h,'\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" label="[[previousMonthLabel]]" 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" label="[[nextMonthLabel]]" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vhf=h},{mode:2});var HyF=_.NH("UTC_OFFSET_FORMAT",{utc_offset:(new Z9("Z")).format(new Date)}),$UH=(new Date).getTimezoneOffset()*-60,KGD=new Date,OyM,nhF=gN(KGD.getTimezoneOffset());OyM=nAl(YBA(nhF,KGD));var XdM=_.NH("LOCAL_TIME_GMT_LABEL",{gmt_text:OyM.replace("+0","+").replace("-0","-").replace(":00","")}),DF=function(){var h=_.D.apply(this,arguments)||this;h.selectedTimeIndex=0;h.selectedTimezoneIndex=0;h.timeOfDayOptions=mUD;return h};
_.f(DF,_.D);_.p=DF.prototype;_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var h=tOa();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=h,this.selectedTimeIndex=0;else{var E=w8W(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},h,{selectedDate:E.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(g){return g.secondsSinceMidnight===E.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.p.onDatePicked=function(h){this.selectedDate=h.detail};
_.p.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Ra(this.hostElement,"ytd-date-time-selection-cancelled")};
_.p.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var h=this.selectedDate;h=new Date(h.year,h.month,h.day);_.Ra(this.hostElement,"ytd-date-time-selection-update",Math.floor(h.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+h.getTimezoneOffset()*60))}};
_.p.getTimezoneFormat=function(h){return h.localizedDisplayText?h.localizedDisplayText:_.NH("TIMEZONE_FORMAT",{utc_offset_text:""+h.localizedUtcOffset,city_name:""+h.localizedName})};
_.p.updateSelectedTimeIndexFromBinding=function(h){this.selectedTimeIndex=h.detail.value};
_.p.updateSelectedTimezoneIndexFromBinding=function(h){this.selectedTimezoneIndex=h.detail.value};
_.ze.Object.defineProperties(DF.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var h=this.data.timezoneOptions;var E={name:"Etc/Unknown",localizedName:_.NH("LOCAL_TIME_LABEL"),localizedUtcOffset:HyF,utcOffsetSec:""+$UH,localizedDisplayText:XdM};h?h.length&&h[0].name!==E.name&&(h[0].localizedDisplayText||(E.localizedDisplayText=""),h.unshift(E)):h=[E];return h}}},
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]}}});
DF.prototype.onDateTimeTimezoneChange=DF.prototype.onDateTimeTimezoneChange;DF.prototype.onDatePicked=DF.prototype.onDatePicked;DF.prototype.updateDefaultSelectedValue=DF.prototype.updateDefaultSelectedValue;_.Y([_.x(),_.V("design:type",Object)],DF.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],DF.prototype,"calendarConfig",void 0);_.Y([_.x(),_.V("design:type",Object)],DF.prototype,"selectedDate",void 0);_.Y([_.x(),_.V("design:type",Object)],DF.prototype,"selectedTimeIndex",void 0);
_.Y([_.x(),_.V("design:type",Object)],DF.prototype,"selectedTimezoneIndex",void 0);_.Y([_.Sg("#time-listbox"),_.V("design:type",Object)],DF.prototype,"timeListBox",void 0);_.Y([_.Sg("#timezone-listbox"),_.V("design:type",Object)],DF.prototype,"timezoneListBox",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],DF.prototype,"rendererStamperBehavior",void 0);_.Y([_.S("data.timezoneOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],DF.prototype,"timeZones",null);
_.Y([_.lq("data","timeZones"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DF.prototype,"updateDefaultSelectedValue",null);_.Y([_.S("selectedTimezoneIndex","timeZones"),_.V("design:type",Object),_.V("design:paramtypes",[])],DF.prototype,"selectedTimezone",null);_.Y([_.S("selectedTimeIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],DF.prototype,"selectedTime",null);
_.Y([_.f3("ytd-calendar-date-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],DF.prototype,"onDatePicked",null);_.Y([_.Nm("selectedTimezone","selectedTime","selectedDate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DF.prototype,"onDateTimeTimezoneChange",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],DF);
_.X(DF,"ytd-date-time-picker-renderer",function(){if(tZH!==void 0)return tZH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return tZH=h},{mode:1});var YTF;var l7=function(){var h=_.D.apply(this,arguments)||this;h.boundOnTapDismissButton=function(){h.dismissTapHandler()};
h.dismissButtonOverrides={size:"XS"};return h};
_.f(l7,_.D);l7.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}}}}}};
l7.prototype.dismissTapHandler=function(){_.Ra(this.hostElement,"yt-backstage-attachment-dismissed")};
l7.prototype.computeAttachmentType=function(h){return h?h.backstageImageRenderer?"image":h.videoRenderer?"video":"none":"none"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],l7.prototype,"attachmentPreview",void 0);_.Y([_.x(),_.V("design:type",Object)],l7.prototype,"dismissButton",void 0);_.Y([_.x(),_.V("design:type",Object)],l7.prototype,"boundOnTapDismissButton",void 0);
_.Y([_.x(),_.V("design:type",Object)],l7.prototype,"dismissButtonOverrides",void 0);_.Y([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.V("design:type",String)],l7.prototype,"attachmentType",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],l7);
_.X(l7,"ytd-backstage-dismissable-attachment",function(){if(YTF!==void 0)return YTF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return YTF=h},{mode:1});var sck;var rw=function(){var h=_.D.apply(this,arguments)||this;h.selectedVideoId=void 0;h.picker=void 0;h.dismissButtonOverrides={size:"XS"};h.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return h};
_.f(rw,_.D);_.p=rw.prototype;_.p.onServiceRequestCompleted=function(h){h.stopPropagation()};
_.p.handleAddVideoPreviewAction=function(h){h=this.get("addVideoPreviewAction",h);this.onGetVideoPreviewSuccess(h)};
_.p.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.p.onLaunchVideoPicker=function(h){var E=this,g=_.Wp(this.get("addVideoLinkAction.title",h)),Z=this.get("addVideoLinkAction.onePickHostId",h);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",h);Z&&(this.picker||(g=_.rlM(_.uJ$(Z).setTitle(g).addView(xdC()).addView(SqH()),function(M){E.onPickVideo(M)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",h)||g.addView("youtube"),this.picker=g.build()),this.picker.setVisible(!0))};
_.p.onPickVideo=function(h){if(h)if(h.action==="cancel")_.Ra(this.hostElement,"yt-video-link-button-cancel");else if(h.action==="picked"){h=h.docs;if(!h||h.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(h=(h==null?0:h.length)?h[0]:void 0)?h.id:void 0;this.setVideoPreview()}};
_.p.setVideoPreview=function(){var h=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){h.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.p.onGetVideoPreviewSuccess=function(h){if(h&&h.videoPreview&&h.cancelButton)this.videoPreview=h.videoPreview,this.cancelButton=h.cancelButton,_.Ra(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.p.onGetVideoPreviewError=function(){this.cancel()};
_.p.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Ra(this.hostElement,"yt-video-link-cancel")};
_.p.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
rw.prototype.onServiceRequestCompleted=rw.prototype.onServiceRequestCompleted;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],rw.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rw.prototype,"videoPreview",void 0);_.Y([_.x(),_.V("design:type",Object)],rw.prototype,"cancelButton",void 0);_.Y([_.x(),_.V("design:type",Object)],rw.prototype,"getVideoPreviewCommand",void 0);_.Y([_.x(),_.V("design:type",Object)],rw.prototype,"dismissButtonOverrides",void 0);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],rw.prototype,"onServiceRequestCompleted",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],rw);
_.X(rw,"ytd-backstage-video-link-attachment",function(){if(sck!==void 0)return sck;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return sck=h},{mode:1});var VZn;var kzn;var yHB;var mS=function(){return _.D.apply(this,arguments)||this};
_.f(mS,_.D);mS.prototype.dataChanged=function(){this.active=!1};
mS.prototype.onTap=function(){_.Ra(this.hostElement,"yt-select-emoji-suggestion",this.data)};
mS.prototype.identity=function(h){return h};
_.ze.Object.defineProperties(mS.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;if((h=this.data)==null?0:(E=h.image)==null?0:(g=E.thumbnails)==null?0:(Z=g[0])==null?0:Z.url)return h=this.data.image.thumbnails[0].url,h.startsWith("data:image/svg+xml")?vi(h):_.Yr(h)}}});
mS.prototype.dataChanged=mS.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],mS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],mS.prototype,"active",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mS.prototype,"dataChanged",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],mS.prototype,"imageSrc",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],mS);
_.X(mS,"ytd-emoji-suggestion",function(){if(yHB!==void 0)return yHB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return yHB=h},{mode:1});var FGl=/.*([:@#].*?)$/,ve=function(){var h=_.D.apply(this,arguments)||this;h.suggestions=[];h.suggestionIndex=-1;h.JSC$15749_lastSuggestionRange=null;return h};
_.f(ve,_.D);_.p=ve.prototype;_.p.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.p.getSuggestions=function(h){var E=[],g=d4C(this.emojiManager,h.substr(0,3));if(g)for(var Z in g)if(Z.toLocaleLowerCase().indexOf(h)===0){var M=g[Z];if(M&&M.emojiId){M=Rq(this.emojiManager,M.emojiId);var W=void 0,z=void 0,c=void 0,I=void 0,B=((W=M)==null?0:W.isCustomEmoji)?(z=M)==null?void 0:(c=z.shortcuts)==null?void 0:c[0]:(I=M)==null?void 0:I.emojiId;W=void 0;E.push({suggestion:{image:(W=M)==null?void 0:W.image,alt:B,text:Z}});if(E.length>=64)break}}return E?E.sort(function(U,L){return L.suggestion.text<
U.suggestion.text?-1:L.suggestion.text===U.suggestion.text?0:1}):null};
_.p.insertSuggestion=function(h){_.Ra(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15749_lastSuggestionRange,text:h.alt});this.dropdown.opened=!1};
_.p.updateSuggestionsAtCaret=function(h){this.updateSuggestions(h,this.retrieveTextBeforeRange(h))};
_.p.offsetStartOfRangeBy=function(h,E){h.startOffset>=E&&h.setStart(h.startContainer,h.startOffset-E)};
_.p.updateSuggestions=function(h,E){var g=this;this.JSC$15749_lastSuggestionRange&&(this.JSC$15749_lastSuggestionRange.detach(),this.JSC$15749_lastSuggestionRange=null);if((E=FGl.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2||E===":_")&&(this.offsetStartOfRangeBy(h,E.length),this.JSC$15749_lastSuggestionRange=h,(h=this.getSuggestions(E))&&h.length)){this.suggestions=h;_.pQ(this,function(){g.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(h.length-1);return}this.dropdown.opened=!1};
_.p.onKeyDown=function(h){if(this.dropdown.opened)switch(h.key){case "Escape":this.dropdown.opened=!1;h.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);h.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);h.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),h.preventDefault()}};
_.p.onKeyUp=function(h,E){switch(h.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(E);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(E)}};
_.p.onKeyPress=function(h){h.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),h.preventDefault())};
_.p.changeSuggestionIndex=function(h){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(h+this.suggestions.length)%this.suggestions.length,h=this.dropdownContent.children[this.suggestionIndex],h.active=!0,this.dropdownContent.scrollTop=h.offsetTop)};
_.p.retrieveTextBeforeRange=function(h){var E=h.startContainer;return E&&E.nodeType===Node.TEXT_NODE?E.textContent.substr(0,h.startOffset):""};
ve.prototype.onKeyPress=ve.prototype.onKeyPress;ve.prototype.onKeyUp=ve.prototype.onKeyUp;ve.prototype.onKeyDown=ve.prototype.onKeyDown;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Array)],ve.prototype,"suggestions",void 0);_.Y([_.x(),_.V("design:type",_.oq)],ve.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Number)],ve.prototype,"verticalSuggestionsOffset",void 0);
_.Y([_.Sg("#dropdown"),_.V("design:type",Object)],ve.prototype,"dropdown",void 0);_.Y([_.Sg("#dropdown-content"),_.V("design:type",HTMLDivElement)],ve.prototype,"dropdownContent",void 0);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],ve.prototype,"onKeyDown",null);_.Y([_.f3("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent,Range]),_.V("design:returntype")],ve.prototype,"onKeyUp",null);
_.Y([_.f3("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],ve.prototype,"onKeyPress",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-emoji-input"})],ve);
_.X(ve,"ytd-emoji-input",function(){if(kzn!==void 0)return kzn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kzn=h},{mode:2});var AHf;var He=function(){var h=_.D.apply(this,arguments)||this;h.hasMaxOptions=!1;return h};
_.f(He,_.D);_.p=He.prototype;_.p.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.p.setPrefilledChoices=function(h){var E=this;this.set("pollOptions",[]);var g;for(g=0;g<Math.min(h.length,this.data.maxPollOptions);g++)this.push("pollOptions",h[g].substring(0,this.data.maxPollOptionChars));for(;g<this.data.minPollOptions;g++)this.push("pollOptions","");this.hasMaxOptions=g>=this.data.maxPollOptions;_.pQ(this,function(){for(var Z=E.pollOptions,M=_.UB(E.hostElement).querySelectorAll(".poll-option-input"),W=0;W<M.length;W++)M[W].value=Z[W]})};
_.p.focusChanged=function(){_.Ja(this.hostElement)};
_.p.onInput=function(){var h=this;_.EQ(this,"onInput",function(){h.isValid()?_.Ra(h.hostElement,"yt-commentbox-post-enable"):_.Ra(h.hostElement,"yt-commentbox-post-disable")},300)};
_.p.setPollOptions=function(){var h=[],E,g=((E=this.data)==null?0:E.minPollOptions)?this.data.minPollOptions:0;for(E=0;E<g;E++)h.push("");return h};
_.p.addPollOption=function(){var h=this;_.Ra(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.KP.addLowPriorityJob(function(){var E;(E=_.UB(h.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||E.focus()})};
_.p.onRemovePollOption=function(h){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Ra(this.hostElement,"yt-poll-attachment-dismiss")):(h=this.repeat.indexForElement(h.target.parentNode),h!==null&&(this.splice("pollOptions",h,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Ra(this.hostElement,"yt-commentbox-post-enable"))))};
_.p.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.p.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var h=0,E=this.pollOptions.length;h<E;h++)if(this.pollOptions[h].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.p.getPollOptions=function(){return this.pollOptions};
_.p.setPollOptionsFromInputs=function(){for(var h=_.UB(this.hostElement).querySelectorAll(".poll-option-input"),E=0;E<h.length;E++)this.pollOptions[E]=h[E].value.trim()};
_.p.clearPollOptions=function(){var h=_.UB(this.hostElement).querySelectorAll(".poll-option-input");h=_.G(h);for(var E=h.next();!E.done;E=h.next())E.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.p.getSimpleString=function(h){return _.Wp(h)};
_.p.updateValueFromBinding=function(h){if(h.target&&this.pollOptions){var E=Array.from(_.UB(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(h.target);if(E>=0){var g;this.pollOptions[E]=(g=h.detail.value)!=null?g:"";this.notifyPath("pollOptions."+E)}}};
He.prototype.dataChanged=He.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],He.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],He.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],He.prototype,"pollOptions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],He.prototype,"hasMaxOptions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],He.prototype,"enableCreationBox",void 0);
_.Y([_.Sg("#repeat"),_.V("design:type",n3)],He.prototype,"repeat",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],He.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-poll-attachment"})],He);
_.X(He,"ytd-poll-attachment",function(){if(AHf!==void 0)return AHf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return AHf=h},{mode:2});var TFB;var byM;var uoM;var Qcf;var $n=function(){return _.D.apply(this,arguments)||this};
_.f($n,_.D);_.ze.Object.defineProperties($n.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$n.prototype,"rendererBehaviors",void 0);_.Y([_.x(),_.V("design:type",Object)],$n.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],$n.prototype,"focused",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("focused"),_.V("design:type",Object),_.V("design:paramtypes",[])],$n.prototype,"ariaSelected",null);_.Y([_.yc({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],$n);
_.X($n,"yt-user-mention-suggestion-renderer",function(){if(Qcf===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;uoM===void 0&&(uoM=document.createElement("template"));var Z=uoM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Qcf=h}h=Qcf;return h},{mode:2});var h0M;var Evm;var Kn=function(){var h=_.D.apply(this,arguments)||this;h.focusedSuggestionIndex=-1;return h};
_.f(Kn,_.D);_.p=Kn.prototype;_.p.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.p.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.p.setFocusedSuggestionIndex=function(h){!this.data||!this.data.suggestions||h<0||h>=this.data.suggestions.length||(this.focusedSuggestionIndex=h,h=this.getSuggestionId(h),this._setFocusedSuggestionId(h))};
_.p.advanceSuggestion=function(h){this.focusedSuggestionIndex===-1||h!==-1&&h!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+h),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.p.ensureSuggestionVisible=function(h){h=this.getSuggestionId(h);h=_.UB(this.hostElement).querySelector("[id="+h+"]");h!=null&&(h.offsetTop<this.hostElement.scrollTop?h.scrollIntoView(!0):h.offsetTop+h.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&h.scrollIntoView(!1))};
_.p.getSuggestionId=function(h){return"user-mention-suggestion-"+h};
_.p.onSuggestionTap=function(h){var E=_.e(h.model.item,IIf);this.ytRendererBehavior.logExplicitClick(E);_.Ra(this.hostElement,"yt-user-mention-suggestion-selected",{data:E,index:h.model.index})};
_.p.onSuggestionMouseMove=function(h){h.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(h.model.index)};
_.p.isSuggestionFocused=function(h,E){return h===E};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("focused-suggestion-id-changed",this.focusedSuggestionId))};
Kn.prototype.focusedSuggestionIdChangedForBinding=Kn.prototype.focusedSuggestionIdChangedForBinding;Kn.prototype.onDomChange=Kn.prototype.onDomChange;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Kn.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Kn.prototype,"focusedSuggestionIndex",void 0);_.Y([_.x({readOnly:!0}),_.V("design:type",String)],Kn.prototype,"focusedSuggestionId",void 0);
_.Y([_.f3("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Kn.prototype,"onDomChange",null);_.Y([_.Nm("focusedSuggestionId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kn.prototype,"focusedSuggestionIdChangedForBinding",null);_.Y([_.yc({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Kn);
_.X(Kn,"yt-user-mention-suggestions-dropdown",function(){if(Evm===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;h0M===void 0&&(h0M=document.createElement("template"));var Z=h0M;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Evm=h}h=Evm;return h},{mode:2});var Oy=function(){var h=_.D.apply(this,arguments)||this;h.suggestionsResponse=null;h.activeMention=null;h.selectionChangeListener=h.onSelectionChange.bind(h);h.handlesEnabled=_.J("enable_handles_in_mention_suggest_posts");h.handlesInMentionSuggestionsEnabled=_.J("handles_in_mention_suggest_posts");h.zeroPrefixMentionSuggestionEnabled=_.J("enable_zero_prefix_mention_suggestion_web");h.pendingQuery=null;h.flowNonce=null;return h};
_.f(Oy,_.D);_.p=Oy.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.p.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.p.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.p.hasSuggestions=function(h){return!!(h&&h.suggestions&&h.suggestions.length>0)};
_.p.onInput=function(){var h=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var E=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),g=this.activeMention.JSC$11350_getText().slice(-1)===" ",Z=this.activeMention.JSC$11350_getText().slice(-2,-1)===" ",M="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11350_getText().slice(-2,
-1))>=0;M=this.zeroPrefixMentionSuggestionEnabled&&M;if(this.activeMention.isCollapsed()||(E||Z||M)&&g)this.cancelActiveMention();else{var W=this.activeMention.JSC$11350_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.EQ(this,"requestSuggestions",function(){h.requestSuggestions(W)},100)}}}};
_.p.onServiceRequestSent=function(h){h.stopPropagation()};
_.p.onServiceRequestCompleted=function(h){h.stopPropagation();h=h.detail.data;h.query&&(!this.pendingQuery||this.pendingQuery!==h.query)||!this.zeroPrefixMentionSuggestionEnabled&&h.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=h,this.hasSuggestions(h)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.p.onServiceRequestError=function(h){h.stopPropagation()};
_.p.onUserMentionSuggestionSelected=function(h){this.selectSuggestion(h.detail.data,h.detail.index)};
_.p.onSelectionChange=function(){if(this.activeMention){var h=_.Pg(),E=this.activeMention.JSC$11350_containsRange(h);h=h&&this.containsHelper(this.dropdown,h.getContainer());E||h||this.cancelActiveMention()}};
_.p.containsHelper=function(h,E){var g;if(((g=window.ShadyDOM)==null?void 0:g.noPatch)===!0)return h.contains(E);for(;E;){if(E===h)return!0;E=E instanceof ShadowRoot?E.host:E.parentNode}return!1};
_.p.maybeStartSuggest=function(){var h=_.Pg();if(h&&h.isCollapsed()){var E=h.JSC$11350_getStartNode(),g=h.JSC$11350_getStartOffset();if(E instanceof Text&&!(g<1)){var Z=E.textContent;!(Z=Z&&Z.charAt(g-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(Z)<0||(this.activeMention=_.hX(E,g-1,h.JSC$11350_getEndNode(),h.JSC$11350_getEndOffset()),this.flowNonce=nQ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.p.updateActiveMention=function(){if(this.activeMention){var h=_.Pg();h&&h.isCollapsed()&&(this.activeMention=_.hX(this.activeMention.JSC$11350_getStartNode(),this.activeMention.JSC$11350_getStartOffset(),h.JSC$11350_getEndNode(),h.JSC$11350_getEndOffset()))}};
_.p.requestSuggestions=function(h){if(this.activeMention){var E={suggestions_query:h};this.pendingQuery=h;_.LZ(this.hostElement,[this.suggestionsEndpoint,E])}};
_.p.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.p.focusPreviousSuggestion=function(h){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),h.preventDefault())};
_.p.focusNextSuggestion=function(h){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),h.preventDefault())};
_.p.selectFocusedSuggestion=function(h){if(this.hasSuggestions(this.suggestionsResponse)){var E=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.e(E,IIf)&&(this.selectSuggestion(_.e(E,IIf),this.dropdown.focusedSuggestionIndex),h.preventDefault())}};
_.p.selectSuggestion=function(h,E){if(h){var g=this.activeMention;if(g){var Z=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&h.handle?_.kS(Z,"\u00a0\u2068@"+h.handle+"\u2069\u00a0"):this.handlesEnabled?_.kS(Z,"\u00a0"+h.displayName+"\u00a0"):_.kS(Z,"\u00a0@"+h.displayName+"\u00a0");yF(Z,"/channel/"+h.channelId);Z.classList.add("yt-formatted-string","yt-simple-endpoint");Z.setAttribute("spellcheck","false");g.isCollapsed()||g.JSC$11350_removeContents();g.insertNode(Z,!0);h=document.createTextNode(" ");
Z.parentNode.insertBefore(h,Z.nextSibling);window.getSelection().collapse(h,1);E={suggestionSelected:{suggestionIndex:E}};if(this.zeroPrefixMentionSuggestionEnabled){var M;E.suggestionSelected.isZeroPrefix=((M=this.suggestionsResponse)==null?void 0:M.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",E);this.cancelActiveMention();_.Ra(this.hostElement,"yt-mention-inserted")}}};
_.p.getPositionTarget=function(h){return h&&h.getBrowserRangeObject()};
_.p.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.p.onFocusedSuggestionIdChanged=function(h){var E=_.E_q(this.hostElement)[0];E&&(h.detail.value?E.setAttribute("aria-activedescendant",h.detail.value):E.removeAttribute("aria-activedescendant"))};
_.p.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.p.logGELEvent=function(h,E){h={eventType:h,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};E&&(h=Object.assign(h,E));_.vT("userMentionAutoCompleteBoxEvent",h)};
Oy.prototype.onDomChange=Oy.prototype.onDomChange;Oy.prototype.onUserMentionSuggestionSelected=Oy.prototype.onUserMentionSuggestionSelected;Oy.prototype.onServiceRequestError=Oy.prototype.onServiceRequestError;Oy.prototype.onServiceRequestCompleted=Oy.prototype.onServiceRequestCompleted;Oy.prototype.onServiceRequestSent=Oy.prototype.onServiceRequestSent;Oy.prototype.onInput=Oy.prototype.onInput;_.Y([_.t(_.Kf),_.V("design:type",Object)],Oy.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Oy.prototype,"suggestionsEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],Oy.prototype,"suggestionsResponse",void 0);_.Y([_.x(),_.V("design:type",Object)],Oy.prototype,"activeMention",void 0);_.Y([_.Sg("#dropdown"),_.V("design:type",Object)],Oy.prototype,"dropdown",void 0);_.Y([_.Sg("#iron-dropdown"),_.V("design:type",Object)],Oy.prototype,"ironDropdown",void 0);
_.Y([_.f3("input"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Oy.prototype,"onInput",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oy.prototype,"onServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oy.prototype,"onServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oy.prototype,"onServiceRequestError",null);_.Y([_.f3("yt-user-mention-suggestion-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oy.prototype,"onUserMentionSuggestionSelected",null);
_.Y([_.f3("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Oy.prototype,"onDomChange",null);_.Y([_.yc({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Oy);
_.X(Oy,"yt-user-mention-autosuggest-input",function(){if(byM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;TFB===void 0&&(TFB=document.createElement("template"));var Z=TFB;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);byM=h}h=byM;return h},{mode:2});var nn=null;
_.OB({is:"ytd-commentbox",_template:function(){if(VZn!==void 0)return VZn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VZn=h},
behaviors:[_.lk$.YtHostElementBehavior,_.Kf,_.Yl.YtActionHandlerBehavior,_.IU.YtComponentBehavior,_.wK.YtRendererstamperBehavior,_.OTf.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(h,E){return _.Jj(h.entities,"aadcGuidelinesStateEntityPayload",E)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(h,E){return _.Jj(h.entities,"commentboxStateEntity",E)},
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 _.PB}},
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:_.J("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.J("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",_.qm(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(h){this.fire(h?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(h){this.set("submitButtonDisabled",void 0);this.clear();h&&this.computeIsEmojiButtonDisplayed_(h)&&(h=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&h.updateEmojiCategories()},
observePrefilledImage_:function(h,E,g){this.isValidPrefilledImage_(h,E,g)&&(this.prefilledAttachment_="image",this.prefilledImageData_=E,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(h,E){this.isValidPrefilledVideo_(h,E)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(h){h&&h.pollData&&h.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(h.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.xi();this.focus()},
detached:function(){document.removeEventListener("tap",_.qm(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(h){h=h.detail;h=h.isCustomEmoji?h.shortcuts[0]:h.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,h);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var h=_.Pg();if(h){h=h.getBrowserRangeObject();for(var E=h.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return h;E=E.parentNode}}h=this.getEditableTextArea_();h=_.QI(h,h.childNodes.length);h.select();return h.getBrowserRangeObject()},
insertTextWithEmojis_:function(h,E,g){(E=this.emojiManager.createDocumentFragment(E,!0,!1,g===void 0?!0:g))&&E.childNodes.length!==0&&(h.collapsed||h.deleteContents(),g=E.lastChild,h.insertNode(E),_.zbB(g).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var h=_.Pg();if(h){var E=h.JSC$11350_getStartNode(),g=h.JSC$11350_getEndNode();if(luz(E)&&luz(g)){var Z=h.JSC$11350_getStartOffset(),M;if(_.UK&&E.nodeType===Node.ELEMENT_NODE&&(M=_.zCD(E)))_.QI(M,0).select();else{M=od(E)?E:_.Vw(E,od);var W=od(g)?g:_.Vw(g,od);if(M||W)if(h.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){h=!0;Z===E.length&&(h=!1);if(nn==="end"||nn==="right")h=!1;E=E.parentNode;h=[].concat(_.$E(E.parentNode.childNodes)).indexOf(E)+(h?0:1);_.QI(E.parentNode,
h).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.hX(g,h.JSC$11350_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),M.parentNode.insertBefore(E,M),_.hX(g,h.JSC$11350_getEndOffset(),E,0).select()):W&&(W.nextSibling&&W.nextSibling.length>0?_.hX(E,h.JSC$11350_getStartOffset(),W.nextSibling,1).select():(g=document.createTextNode("\u200b"),W.parentNode.insertBefore(g,W.nextSibling),_.hX(E,h.JSC$11350_getStartOffset(),g,g.length).select()));
nn=null}}else nn=null}else nn=null},
leftKeyPressed_:function(){nn="left"},
rightKeyPressed_:function(){nn="right"},
endKeyPressed_:function(){nn="end"},
maybeDeleteChip_:function(){var h=KUW(!0);if(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();_.Ff(g,E,h,h.childNodes.length).select()}},
maybeBackspaceChip_:function(){var h=KUW(!1);if(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();_.Ff(g,E,h,0).select()}},
maybeBackspaceChipWordMode_:function(h){var E=_.Pg();if(E.isCollapsed()){var g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();var Z=OE$(g,E,!0);Z&&(_.Ff(g,E,Z,0).select(),document.execCommand("delete"),h.preventDefault(),h.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(h){var E=_.Pg();if(E.isCollapsed()){var g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();var Z=OE$(g,E,!1);Z&&(_.Ff(g,E,Z,Z.childNodes.length).select(),document.execCommand("delete"),h.preventDefault(),h.stopImmediatePropagation())}},
onTap_:function(h){if(!h.defaultPrevented&&(h.currentTarget.tagName==="YTD-COMMENTBOX"&&od(h.target)&&h.preventDefault(),this.isEmojiPickerDisplayed)){var E=this.$$("#emojis"),g=this.$$("#emoji-button"),Z=this.getEditableTextArea_();if((h=h.path?h.path:h.composedPath&&h.composedPath())&&!h.includes(E)&&!h.includes(Z)&&!h.includes(g))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(h,E,g){return h==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E!==void 0&&E.encryptedBlobId!==null&&E.sourceExternalVideoId!==null&&g!==void 0&&g.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(h,E){return h==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!E&&!!E.videoRenderer&&!!E.videoRenderer.videoId},
isValidPrefilledAttachment_:function(h,E,g){return this.isValidPrefilledImage_(h,E,g)||this.isValidPrefilledVideo_(h,g)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.J("enable_multi_image_post_creation")){var h=this.$$("ytd-backstage-multi-image-select-renderer");h&&h.hasImages()&&h.cancel()}else(h=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&h.cancel();(h=this.$["poll-attachment"])&&this.hasPoll_&&h.clearPollOptions();(h=this.$["image-poll-attachment"])&&this.hasImagePoll_&&h.resetPollOptions();(h=this.$["quiz-attachment"])&&this.hasQuiz_&&h.resetQuizOptions();
(h=this.$["video-link-attachment"])&&this.hasVideo_&&h.cancel();(h=this.$["access-restrictions-selector"].firstElementChild)&&h.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 _.UB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.UB(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(h,E){h=mE4(h,this.emojiManager,E).cloneNode(!0);for(E=h.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var g=_.Op();_.BIk(g,E);E=g.nextSibling;break;case "DIV":(g=E.lastChild)&&E.nextSibling&&_.sp(_.Op(),g);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.YS(_.Op(),E);g&&g.nodeName==="BR"&&_.f8(g);g=E;E.hasChildNodes()?(E=E.firstChild,
_.UZm(g)):(E=E.nextSibling,_.f8(g));break;default:E=E.nextSibling}return no$(h)},
onAddImageError_:function(h){h.stopPropagation();this.errorMessage_=_.MR(h.detail)},
setTextAreaValue_:function(h){h||(h="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof h==="string"&&(h={runs:[{text:h}]});E.text=h},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();nn=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var h=this.getEditableTextArea_();h&&(_.QI(h,h.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.nF("HTML_DIR")==="rtl"){var h=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";h.setAttribute("dir",E)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var h;return wsM((h=this.$["quiz-attachment"])==null?void 0:h.getExplanationText())||wsM(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var h=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(h=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(h,!0);this.updateCharCount_();this.setSubmitButton_();h=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=h.scrollHeight>h.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var h=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:h})},
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(h){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(h)},
onPasteEmoji_:function(h){h.preventDefault();h.stopImmediatePropagation();h=h.clipboardData.getData("text/plain");this.insertText_(h,!1,!1)},
insertText_:function(h,E,g){E=E===void 0?!1:E;g=g===void 0?!0:g;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&h){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(E&&this.emojiInput.offsetStartOfRangeBy(Z,h.length),this.insertTextWithEmojis_(Z,h,g),rd$(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,h),this.updateSuggestionOffset_(Z)))}},
setSubmitButton_:function(){if(this.data){var h=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",E=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(h||E){var g=this.getTextAreaValue().trim();E=g===this.previousText_;g=!g||this.aboveCharLimit_;h&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(g=this.aboveCharLimit_);this.submitButtonDisabled=
E||g||!this.getTextLength();h&&_.J("enable_post_scheduling")&&(this.submitButtonDisabled=E&&!this.scheduledPublishTimeSec_||g)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Wp,computeCreationBoxClass_:function(h){return h?"focused":"not-focused"},
computeFooterMessageClass_:function(h,E){return E?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(h,E){return E?E:h},
computeFooterMessageHidden_:function(h,E){return!E&&!h},
computePlaceholderText_:function(h,E,g){return(g==="video"||g==="image")&&(h==null?0:h.prefilledPlaceholderText)?h==null?void 0:h.prefilledPlaceholderText:E==="poll"||E==="image-poll"?h==null?void 0:h.pollPostPlaceholderText:E==="quiz"?h==null?void 0:h.quizPostPlaceholderText:E==="image"?h==null?void 0:h.imagePostPlaceholderText:h==null?void 0:h.placeholderText},
computeHideAttachmentButtons_:function(h,E,g,Z){return h===void 0?!1:Z&&this.getSimpleString(Z)===this.getSimpleString(h.rateLimitErrorMessage)?!0:E!=="none"||g!=="none"||!h.videoLinkButton&&!h.pollButton&&!h.imagePollButton&&!h.quizButton&&!h.imageButton},
computeHideDismissableAttachment_:function(h){return h!=="image"&&h!=="video"},
computeHasVideo_:function(h){return h==="video"},
computeHasImage_:function(h){return h==="image"},
computeHasPoll_:function(h){return h==="poll"},
computeHasImagePoll_:function(h){return h==="image-poll"},
computeHasQuiz_:function(h){return h==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(h){return h&&h.backstageAttachment?h.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!h.backstageAttachment.quizRenderer&&!h.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(h){if(this.isValidPrefilledAttachment_(h.purpose,h.prefilledImageData,h.backstageAttachment))return h.backstageAttachment},
computeEditAttachment_:function(h){if(this.computePrefilledContent_(h)===void 0)return h.backstageAttachment},
computeAuthorThumbnailDimension_:function(h,E){return h&&!E?24:40},
computeImageUploadEndpoint_:function(h){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",h)},
computeRateLimitErrorCommands_:function(h){var E,g;return h==null?void 0:(E=h.advancedTierFeatures)==null?void 0:(g=E.rateLimit)==null?void 0:g.rateLimitCommands},
computeIsBackstageComment_:function(h){return!(!h||h!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(h){return this.get("submitButton.buttonRenderer.serviceEndpoint",h)||this.get("replyButton.buttonRenderer.serviceEndpoint",h)||this.get("postButton.buttonRenderer.serviceEndpoint",h)},
computeSubmitButtonOverride:function(){if(_.J("web_modern_buttons")){var h,E;return{segmentedPosition:this.dropdownSchedulePanel_||!((h=this.data)==null?0:(E=h.postOptionsMenu)==null?0:E.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.J("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(h,E){h=this.get("submitButton.buttonRenderer",h)||this.get("replyButton.buttonRenderer",h)||this.get("postButton.buttonRenderer",h);E&&(h=E);h&&(h=Object.assign({},h),h.serviceEndpoint=void 0,h.isDisabled=this.submitButtonDisabled);return h},
computeHasExternalLinksAccess_:function(h){if(_.J("enable_rfa_external_links")){var E,g,Z;return(Z=h==null?void 0:(E=h.advancedTierFeatures)==null?void 0:(g=E.externalLinks)==null?void 0:g.allowExternalLinks)!=null?Z:!0}return!0},
computeIsEmojiButtonDisplayed_:function(h){return h.emojiButton&&h.emojiPicker&&h.emojiPicker.emojiPickerRenderer&&h.emojiPicker.emojiPickerRenderer.categories?h.emojiPicker.emojiPickerRenderer.categories.find(function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(h){return h.charLimit?h.charLimit:null},
computeDropdownSchedulingPanel_:function(h,E){if(h==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E)return E},
computeInlineSchedulingPanel_:function(h,E){if(h==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E)return E},
computeHideAuthorThumbnail_:function(h,E){return h||this.computeUseIdentityChip_(E)},
computeHideIdentityChipRenderer_:function(h,E){return h||!this.computeUseIdentityChip_(E)},
computeUseIdentityChip_:function(h){return!!h&&!!h.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(h){var E,g,Z,M;(h==null?0:(E=h.detail)==null?0:(g=E.endpoint)==null?0:g.ypcGetOffersEndpoint)||(h==null?0:(Z=h.detail)==null?0:(M=Z.endpoint)==null?0:M.ypcOffersEndpoint)?(h.stopPropagation(),_.LZ(this,[h.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",h)&&(h.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(h){this.addedAttachment="video";this.selectedVideoId_=h.detail.videoId},
commentboxStateEntityChanged_:function(h){var E=this;(h==null?void 0:h.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(h==null?void 0:h.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){E.focus()})},
onYtServiceRequestSent_:function(h,E){if(E.actions)for(h=_.G(E.actions),E=h.next();!E.done;E=h.next())E.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(h){this.isLoading=!1;var E=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",h),g,Z,M,W=h==null?void 0:(g=h.detail)==null?void 0:(Z=g.data)==null?void 0:(M=Z.actionResult)==null?void 0:M.commentboxStateEntityKey;if(E)this.errorMessage_=E;else if(W){var z;this.dismissData_=h==null?void 0:(z=h.detail)==null?void 0:z.data;this.commentboxStateKey_=W}else{this.clear();var c;this.fire("yt-commentbox-dismiss",h==null?void 0:(c=h.detail)==
null?void 0:c.data)}},
onYtServiceRequestError_:function(h){h.stopPropagation();this.isLoading=!1;var E,g;if(((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((g=this.data)==null?void 0:g.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(E=this.get("detail.error.args",h)||[],E.length>1&&E[1].message){this.handlePostsServiceRequestError_(E[1].message);return}(h=this.get("detail.error.message",h))?this.errorMessage_=this.data.errorMessage||_.MR(h):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(h){if(_.J("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var E=_.G(this.rateLimitErrorCommands),g=E.next();!g.done;g=E.next())if(g=g.value,g.errorLabel===h){_.qB(g.command,this.hostElement);return}this.errorMessage_=_.MR(h)},
submitIfNotBackstagePost_:function(h){if(!this.isBackstagePost)this.onSubmit_(h)},
onSubmit_:function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r;return _.a(function(v){switch(v.nextAddress){case 1:h.stopPropagation();if(!E.serviceEndpoint||!E.isValidInput_())return v.return();if(E.shouldShowPostAadcNotice_())return E.showPostAadcNotice_(),v.return();if(E.shouldShowCommentAadcNotice_())return E.showCommentAadcNotice_(),v.return();if(!(E.$$("ytd-backstage-multi-image-select-renderer")&&E.hasImage_&&_.J("enable_multi_image_post_creation"))){v.jumpTo(2);break}g=E.$$("ytd-backstage-multi-image-select-renderer");
return v.yield(g.getAllUploadStatuses(),3);case 3:Z=v.yieldResult;if(!Z)return v.return();M=_.G(Z);for(W=M.next();!W.done;W=M.next())if(z=W.value,z.encryptedBlobId===void 0)return E.isLoading=!1,I=c=void 0,E.errorMessage_=(I=(c=E.imageUploadEndpoint_)==null?void 0:c.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?I:null,v.return();return v.return(E.submitForm_(void 0,void 0,void 0,void 0,g.images,E.taggedVideoId_));case 2:if(!E.hasImagePoll_||!E.$["image-poll-attachment"]){v.jumpTo(4);
break}return v.yield(E.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:B=v.yieldResult;if(!B)return v.return();U=_.G(B);for(L=U.next();!L.done;L=U.next())if(d=L.value,!d.encryptedBlobId)return E.isLoading=!1,C=void 0,E.errorMessage_=(C=E.data.errorMessage)!=null?C:null,v.return();case 4:w=(q=E.$$("ytd-backstage-image-select-renderer"))&&q.uploadPromise(),r=E.getSharedPostId_(),w?w.then(function(){E.submitForm_.apply(E,_.$E(_.VF.apply(0,arguments)))}).catch(function(H){E.isLoading=!1;
E.errorMessage_=_.MR(H.message)}):E.selectedVideoId_?E.submitForm_(void 0,E.selectedVideoId_):E.prefilledAttachment_==="image"?E.submitForm_(E.prefilledImageData_.encryptedBlobId,void 0,void 0,E.prefilledImageData_.sourceExternalVideoId,void 0,E.taggedVideoId_):E.prefilledAttachment_==="video"?E.submitForm_(void 0,E.data.backstageAttachment.videoRenderer.videoId):r?E.submitForm_(void 0,void 0,r):E.taggedVideoId_!==void 0?E.submitForm_(void 0,void 0,void 0,void 0,void 0,E.taggedVideoId_):E.submitForm_(),
_.SK(v)}})},
openSchedulingPanel:function(h){h&&h.scheduleButton&&h.scheduleButton.buttonRenderer&&(this.scheduleButton_=h.scheduleButton.buttonRenderer);h&&h.dateTimePicker&&this.set("data.schedulingDateTimePicker",h.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(h){h.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(h){h.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(h){h.stopPropagation();h.detail.alertMessage&&(this.alertMessage_=h.detail.alertMessage)},
onImageSelected_:function(h){h.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(h){h.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(h){h.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(h.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(h){h.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(h){var E=this.$["video-link-attachment"];E&&E.onLaunchVideoPicker(h)},
onAttachmentDismiss_:function(h){h.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"&&_.J("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.J("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 h;if(this.addedAttachment==="image-poll"&&((h=this.$["image-poll-attachment"])==null||!h.isValid()))return!1;var E;if(this.addedAttachment==="quiz"&&((E=this.$["quiz-attachment"])==null||!E.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;h=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(h=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")h=!0;return h||!!this.getTextAreaValue().trim()},
submitForm_:function(h,E,g,Z,M,W){var z=this.getTextAreaValue().trim(),c={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&z===this.previousText_&&(z=void 0);z!==void 0&&(c.comment_text=z);this.isLoading=!0;W!=void 0&&(c.tagged_video_id=W);h?(c.image_blob_id=h,this.imagePreviewCoordinates_&&(c.image_preview_coordinates=this.imagePreviewCoordinates_)):E?c.attached_video_id=E:g?c.shared_post_id=g:M&&M.length>0&&(c.images_data=M.map(function(I){return{encryptedBlobId:I.encryptedBlobId,
previewCoordinates:I.previewCoordinates}}));
Z&&(c.source_video_id=Z);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(c.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(c.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(c.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.J("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(c.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.J("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(c.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.LZ(this,[this.serviceEndpoint,c])},
onIsInputFocusChanged_:function(h,E){h?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(h){var E=this.getEditableTextArea_();[].concat(_.$E(h.dataTransfer.items)).forEach(function(g){g.kind==="string"&&g.type.match("^text/plain")&&g.getAsString(function(Z){E.appendChild(document.createTextNode(Z))})});
h.preventDefault()},
preventDefault_:function(h){h.preventDefault()},
onSuggestionInsert_:function(h){this.insertTextWithEmojis_(h.detail.range,h.detail.text)},
onEmojiSuggestionClick_:function(h){this.emojiInput.insertSuggestion(h.detail)},
computeSubmitButtonClass_:function(h,E){return!E||h?"":"with-options"},
updateSuggestionOffset_:function(h){if(this.emojiInput&&_.UB(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,g=h.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-g)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;h=h.getBoundingClientRect().left-E;_.UB(this.emojiInput).querySelector("#dropdown").style.marginLeft=h+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(h){if(_.J("enable_post_scheduling")&&this.data&&this.data.purpose){h=h.detail;if(Math.floor(Date.now()/1E3)>=h)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var E=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(E)||E!==h?this.scheduledPublishTimeSec_=h:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=h;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var h=["image-button","image-poll-button","poll-button"];_.J("enable_quiz_creation")&&h.push("quiz-button");_.J("auto_convert_posts_video_tag")||h.push("video-link-button");return h},
getButtonRenderer:function(h,E){if(h)switch(E){case "video-link-button":var g;return((g=h.videoLinkButton)==null?void 0:g.buttonRenderer)||void 0;case "image-button":var Z;return((Z=h.imageButton)==null?void 0:Z.buttonRenderer)||void 0;case "poll-button":var M;return((M=h.pollButton)==null?void 0:M.buttonRenderer)||void 0;case "image-poll-button":var W;return((W=h.imagePollButton)==null?void 0:W.buttonRenderer)||void 0;case "quiz-button":var z;return((z=h.quizButton)==null?void 0:z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var h;return(h=this.data)==null||!h.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var h,E;return!((h=this.data)==null||!h.openAadcDialog)&&!((E=this.aadcGuidelinesState_)==null||!E.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.nF("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var h;((h=this.data)==null?0:h.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sY("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(h){h.clickTrackingParams&&_.SQ().clickCommand(h);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.BX(this,"yt-close-popup-action")},
onHideIdentityChip:function(h){var E;this.set("data.placeholderText",(E=h.hideIdentityChipAction)==null?void 0:E.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var Xl=function(){var h=_.D.apply(this,arguments)||this;h.isOpen=!1;h.modern=_.J("web_modern_buttons");h.roundedContainer=!0;h.dropdownButtonOverride=_.J("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;h.inPopupContainer=!1;h.isCommentboxLoading=!1;var E=["image-button","image-poll-button","poll-button"];_.J("enable_quiz_creation")&&E.push("quiz-button");_.J("auto_convert_posts_video_tag")||E.push("video-link-button");h.attachmentButtonIds=E;h.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 h};
_.f(Xl,_.D);_.p=Xl.prototype;_.p.computeButtonOverride=function(){var h;return((h=this.data)==null?0:h.postOptionsMenu)&&_.J("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.p.configureRendererStamper=function(){var h={"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]]"}}}}};_.J("auto_convert_posts_video_tag")||(h["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return h};
_.p.ready=function(){var h=this,E=_.UB(this.hostElement).querySelector("#placeholder-area"),g=function(Z){h.onOpen(Z)};
E.addEventListener("tap",g);E.addEventListener("keypress",g)};
_.p.showButtonEduTooltip=function(){var h,E,g,Z,M,W,z;if(_.J("enable_quiz_creation")&&((h=this.data)==null?0:(E=h.quizButton)==null?0:(g=E.buttonRenderer)==null?0:(Z=g.hint)==null?0:(M=Z.hintRenderer)==null?0:(W=M.content)==null?0:(z=W.bubbleHintRenderer)==null?0:z.text)&&(_.DI.getInstance(),h=lc(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(h==null?void 0:
h.length)>0)){this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.quizButton}});return}var c;if((c=this.data)==null?0:c.imagePollButtonTooltip)if(_.DI.getInstance(),c=lc(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(c==null?void 0:c.length)>0){this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.imagePollButton}});return}var I;_.J("enable_multi_image_post_creation")&&
((I=this.data)==null?0:I.multiImageButtonTooltip)&&(_.DI.getInstance(),I=lc(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(I==null?void 0:I.length)>0&&this.ytComponentBehavior.resolveCommand(I[0],{form:{element:this.imageButton}}))};
_.p.onCreatePollAction=function(h){_.e(h,kcC)&&(this.JSC$15804_commentbox.addedAttachment="poll",this.openDialog())};
_.p.onAddVideoLinkAction=function(h){if(_.e(h,XQl))this.JSC$15804_commentbox.onAddVideoLink(h)};
_.p.onShowSchedulingPanelCommand=function(h){(h=_.e(h,B6C))&&this.openSchedulingPanel(h)};
_.p.onCreateImagePollCommand=function(h){_.e(h,asM)&&(this.JSC$15804_commentbox.openImagePollComponent(),this.openDialog())};
_.p.onCreateQuizCommand=function(h){_.e(h,cmf)&&(this.JSC$15804_commentbox.openQuizComponent(),this.openDialog())};
_.p.openSchedulingPanel=function(h){_.J("enable_post_scheduling")&&(this.openDialog(),this.JSC$15804_commentbox.openSchedulingPanel(h))};
_.p.onCreateCommentAction=function(h){this.get("createCommentAction.contents",h)&&(this.JSC$15804_commentbox.clear(),this.closeDialog())};
_.p.onOpen=function(h){h instanceof KeyboardEvent&&h.type==="keypress"&&h.keyCode!==13&&h.keyCode!==32||(this.data.prepareAccountEndpoint?_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.closeDialog()};
_.p.onYtCommentboxLoadingStart=function(h){h.stopPropagation();this.isCommentboxLoading=!0};
_.p.onYtCommentboxLoadingEnd=function(h){h.stopPropagation();this.isCommentboxLoading=!1};
_.p.onYtVideoLinkButtonCancel=function(h){h.stopPropagation();this.onOpen(h)};
_.p.onYtVideoLinkSelected=function(h){h.stopPropagation();this.onOpen(h)};
_.p.onIronSelect=function(h){h.stopPropagation();h.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=h.detail.item.value&&(this.accessRestriction?(this.accessRestriction=h.detail.item.value,this.onOpen(h)):this.accessRestriction=h.detail.item.value)};
_.p.onYtNavigate=function(h){this.get("detail.endpoint.backstageImageUploadEndpoint",h)&&(this.JSC$15804_commentbox.addedAttachment="image",this.JSC$15804_commentbox.submitButtonDisabled=!0,this.onOpen(h))};
_.p.onRequestSent=function(h){if(_.J("web_button_rework"))for(var E=_.G(h.detail),g=E.next();!g.done;g=E.next())_.e(g.value,CMl)&&(this.JSC$15804_commentbox.addedAttachment="image",this.JSC$15804_commentbox.submitButtonDisabled=!0,this.onOpen(h))};
_.p.openDialog=function(){this.JSC$15804_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15804_commentbox.focus()};
_.p.onPopupClosed=function(){_.DI.getInstance()};
_.p.computeCreationDisabled=function(h){return!!h};
_.p.computeIsCreationDialog=function(h){return!!h&&h==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.p.computeDisabledPostButton=function(h){if(!h)return null;h.isDisabled=!0;return h};
_.p.computeIsCreationDialogWithHeader=function(h){return!this.inPopupContainer&&!!h&&!!h.authorText&&h.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.p.computeIsHeaderHidden=function(h,E){return!h||E};
_.p.computeDropdownRendererClasses=function(h){return h?["text-secondary-style"]:[]};
_.p.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var h=_.UB(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;h&&h.reset()};
Xl.prototype.onPopupClosed=Xl.prototype.onPopupClosed;Xl.prototype.onRequestSent=Xl.prototype.onRequestSent;Xl.prototype.onYtNavigate=Xl.prototype.onYtNavigate;Xl.prototype.onIronSelect=Xl.prototype.onIronSelect;Xl.prototype.onYtVideoLinkSelected=Xl.prototype.onYtVideoLinkSelected;Xl.prototype.onYtVideoLinkButtonCancel=Xl.prototype.onYtVideoLinkButtonCancel;Xl.prototype.onYtCommentboxLoadingEnd=Xl.prototype.onYtCommentboxLoadingEnd;Xl.prototype.onYtCommentboxLoadingStart=Xl.prototype.onYtCommentboxLoadingStart;
Xl.prototype.onYtCommentboxDismiss=Xl.prototype.onYtCommentboxDismiss;Xl.prototype.showButtonEduTooltip=Xl.prototype.showButtonEduTooltip;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Xl.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Xl.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Xl.prototype,"isOpen",void 0);_.Y([_.x({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],Xl.prototype,"buttonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Xl.prototype,"modern",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Xl.prototype,"roundedContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],Xl.prototype,"dropdownButtonOverride",void 0);_.Y([_.x({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.V("design:type",Boolean)],Xl.prototype,"creationDisabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Xl.prototype,"enableCreationBox",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.V("design:type",Boolean)],Xl.prototype,"isCreationDialog",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Xl.prototype,"inPopupContainer",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.V("design:type",Boolean)],Xl.prototype,"isCreationDialogWithHeader",void 0);_.Y([_.x(),_.V("design:type",Object)],Xl.prototype,"accessRestriction",void 0);
_.Y([_.x({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.V("design:type",Array)],Xl.prototype,"dropdownRendererClasses",void 0);_.Y([_.x(),_.V("design:type",Object)],Xl.prototype,"isCommentboxLoading",void 0);_.Y([_.x(),_.V("design:type",Array)],Xl.prototype,"attachmentButtonIds",void 0);_.Y([_.Sg("#image-button"),_.V("design:type",HTMLElement)],Xl.prototype,"imageButton",void 0);
_.Y([_.Sg("#image-poll-button"),_.V("design:type",HTMLElement)],Xl.prototype,"imagePollButton",void 0);_.Y([_.Sg("#quiz-button"),_.V("design:type",HTMLElement)],Xl.prototype,"quizButton",void 0);_.Y([_.Sg("#commentbox"),_.V("design:type",Object)],Xl.prototype,"JSC$15804_commentbox",void 0);_.Y([_.Nm("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xl.prototype,"showButtonEduTooltip",null);
_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtCommentboxDismiss",null);_.Y([_.f3("yt-commentbox-loading-start"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtCommentboxLoadingStart",null);
_.Y([_.f3("yt-commentbox-loading-end"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtCommentboxLoadingEnd",null);_.Y([_.f3("yt-video-link-button-cancel"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtVideoLinkButtonCancel",null);
_.Y([_.f3("yt-video-link-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtVideoLinkSelected",null);_.Y([_.f3("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onIronSelect",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Xl.prototype,"onRequestSent",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xl.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],Xl);
_.X(Xl,"ytd-backstage-post-dialog-renderer",function(){if(eUF!==void 0)return eUF;var h=document.createElement("template");_.N(h,'\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 class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return eUF=h},{mode:1});var gvD;var ZBk;var Yn=function(){return _.D.apply(this,arguments)||this};
_.f(Yn,_.D);_.p=Yn.prototype;_.p.computeHeartButtonStyle=function(h){return(h==null?0:h.styleType)?h.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onYtButtonTap=function(){if(this.data.isEnabled){var h=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(h=this.getEndpoint(h))&&_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})}else(h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(h)};
_.p.toggle=function(h){this.set("data.isHearted",h!==void 0?h:!this.data.isHearted)};
_.p.getEndpoint=function(h){var E,g=(E=this.data)==null?void 0:E.heartEndpoint,Z;E=(Z=this.data)==null?void 0:Z.unheartEndpoint;if(g&&E)return h?E:g};
_.p.computeButtonAccessibility=function(h,E){var g,Z,M=h==null?void 0:(g=h.heartedAccessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label,W,z;h=h==null?void 0:(W=h.unheartedAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label;return E?M:h};
_.ze.Object.defineProperties(Yn.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 h;return _.J("kevlar_system_icons")&&!((h=this.data)==null||!h.isHearted)}}});
Yn.prototype.onYtButtonTap=Yn.prototype.onYtButtonTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Yn.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],Yn.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Yn.prototype,"data",void 0);_.Y([_.S("data.isHearted"),_.V("design:type",Object),_.V("design:paramtypes",[])],Yn.prototype,"heartTooltip",null);
_.Y([_.S("data.isHearted"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Yn.prototype,"iconFilled",null);_.Y([_.x({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.V("design:type",String)],Yn.prototype,"buttonAccessibility",void 0);_.Y([_.x({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],Yn.prototype,"heartButtonStyle",void 0);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yn.prototype,"onYtButtonTap",null);_.Y([_.K({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Yn);
_.X(Yn,"ytd-creator-heart-renderer",function(){if(ZBk!==void 0)return ZBk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ZBk=h},{mode:1});var sy=function(){var h=_.D.apply(this,arguments)||this;h.hasCreatorReply=!1;h.buttonOverrides={size:"S",iconPosition:"icon-only"};h.replyButtonOverrides={size:"S",type:"text"};h.forceIconButton=!_.J("web_modern_buttons");h.modern=_.J("web_modern_buttons");h.buttonTooltipPosition="bottom";h.systemIcons=_.J("kevlar_system_icons");h.replyDialog=null;return h};
_.f(sy,_.D);_.p=sy.prototype;
_.p.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.p.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.p.dataChange=function(){this.replyDialog&&_.UB(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var h,E,g;this.isLiked=this.systemIcons&&!!((h=this.data)==null?0:(E=h.likeButton)==null?0:(g=E.toggleButtonRenderer)==null?0:g.isToggled)};
_.p.computeShowVoteCountBeginning=function(h,E){return h===void 0||E===void 0?!0:h.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.p.computeShowVoteCountEnd=function(h,E){return h===void 0||E===void 0?!0:h.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.p.computeShowCommentCount=function(h,E){return h===void 0||E===void 0?!0:h.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.p.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.p.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.p.showReplyDialog=function(h){h&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.UB(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=h,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.p.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.p.onRequestSent=function(h){if(_.J("web_button_rework")){h=_.G(h.detail);for(var E=h.next();!E.done;E=h.next())(E=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",E.value))&&this.showReplyDialog(E)}};
_.p.onYtNavigate=function(h){var E,g;(h=(E=_.e(h.detail.endpoint,_.eRM))==null?void 0:(g=E.dialog)==null?void 0:g.commentReplyDialogRenderer)&&this.showReplyDialog(h)};
_.p.onYtServiceRequestSent=function(h,E){h.stopPropagation();if(E.actions)for(h=0;h<E.actions.length;h++){var g=_.e(E.actions[h],uYl);g&&this.handleUpdateCommentVoteAction(g)}};
_.p.handleUpdateCommentVoteAction=function(h){this.voteCount=h.voteCount||_.MR("0");h.voteStatus==="LIKE"?this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1):h.voteStatus==="DISLIKE"?this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15816_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15816_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.p.computeReplyButtonHidden=function(h){return h};
_.p.computeReplyButtonBeginning=function(h){return(h==null?0:h.replyButton)&&h.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?h.replyButton:void 0};
_.p.computeReplyButtonEnd=function(h){return(h==null?0:h.replyButton)&&h.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?h.replyButton:void 0};
_.p.computeActionButtonStyle=function(h){return(h==null?0:h.style)?h.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.p.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.p.onYtToggleButton=function(h){var E,g;this.isLiked=this.systemIcons&&!!((E=h.detail)==null?0:(g=E.actions)==null?0:g.like)};
sy.prototype.onYtToggleButton=sy.prototype.onYtToggleButton;sy.prototype.onButtonTooltipPositionChanged=sy.prototype.onButtonTooltipPositionChanged;sy.prototype.onYtServiceRequestSent=sy.prototype.onYtServiceRequestSent;sy.prototype.onYtNavigate=sy.prototype.onYtNavigate;sy.prototype.onRequestSent=sy.prototype.onRequestSent;sy.prototype.onYtCommentboxDismiss=sy.prototype.onYtCommentboxDismiss;sy.prototype.dataChange=sy.prototype.dataChange;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"voteCount",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"commentCount",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"replyThumbnail",void 0);
_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"hasCreatorReply",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],sy.prototype,"enableCreationBox",void 0);_.Y([_.x({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],sy.prototype,"actionButtonsStyle",void 0);_.Y([_.x({computed:"computeReplyButtonBeginning(data)"}),_.V("design:type",Object)],sy.prototype,"replyButtonBeginning",void 0);
_.Y([_.x({computed:"computeReplyButtonEnd(data)"}),_.V("design:type",Object)],sy.prototype,"replyButtonEnd",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"buttonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"replyButtonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"forceIconButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],sy.prototype,"useCommentIcon",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],sy.prototype,"modern",void 0);_.Y([_.x(),_.V("design:type",Object)],sy.prototype,"buttonTooltipPosition",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],sy.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],sy.prototype,"isLiked",void 0);_.Y([_.Sg("ytd-button-renderer"),_.V("design:type",Object)],sy.prototype,"ytdReplyButtonRenderer",void 0);
_.Y([_.Sg("#like-button"),_.V("design:type",Object)],sy.prototype,"JSC$15816_ytdLikeToggleButtonRenderer",void 0);_.Y([_.Sg("#dislike-button"),_.V("design:type",Object)],sy.prototype,"JSC$15816_ytdDislikeToggleButtonRenderer",void 0);_.Y([_.Sg("#reply-dialog"),_.V("design:type",HTMLElement)],sy.prototype,"replyDialogElement",void 0);_.Y([_.Sg("#reply-button"),_.V("design:type",HTMLElement)],sy.prototype,"replyButtonElement",void 0);
_.Y([_.Sg("#reply-button-end"),_.V("design:type",HTMLElement)],sy.prototype,"replyButtonEndElement",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sy.prototype,"dataChange",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sy.prototype,"onYtCommentboxDismiss",null);
_.Y([_.f3("yt-service-request-sent-button-renderer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sy.prototype,"onRequestSent",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sy.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],sy.prototype,"onYtServiceRequestSent",null);_.Y([_.Nm("buttonTooltipPosition"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sy.prototype,"onButtonTooltipPositionChanged",null);
_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],sy.prototype,"onYtToggleButton",null);_.Y([_.K({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],sy);
_.X(sy,"ytd-comment-action-buttons-renderer",function(){if(gvD!==void 0)return gvD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return gvD=h},{mode:1});var MHM;var VZ=function(){return _.D.apply(this,arguments)||this};
_.f(VZ,_.D);VZ.prototype.focus=function(){_.UB(this.hostElement).querySelector("#commentbox").focus()};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],VZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],VZ.prototype,"zeroStepChannelCreationRenderer",void 0);_.Y([_.K({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],VZ);
_.X(VZ,"ytd-comment-dialog-renderer",function(){if(MHM!==void 0)return MHM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return MHM=h},{mode:1});var W3M;var kn=function(){var h=_.D.apply(this,arguments)||this;h.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.J("enable_web_delhi_icons")};h.replyButtonOverrides={size:"S",type:"text"};return h};
_.f(kn,_.D);_.p=kn.prototype;_.p.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.p.detached=function(){this.replyBox&&this.replyBox.remove()};
_.p.showReplyDialog=function(h){if(h){var E=this.replyBox;E||(E=document.createElement("ytd-comment-reply-dialog-renderer"),E.id="replybox",_.UB(this.replyDialogDiv).appendChild(E));E.data=h;this.replyDialogDiv.hidden=!1;E.openDialog()}};
_.p.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.p.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var h,E=_.e((h=this.toolbarSurface)==null?void 0:h.subscribersOnlyDisclaimerSnackbarCommand,_.V1);E&&_.Ra(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:E})}};
_.p.onYtServiceRequestSent=function(h,E){h.stopPropagation();if(E.actions)for(var g=0;g<E.actions.length;g++){var Z=_.e(E.actions[g],uYl);Z?this.handleUpdateCommentVoteAction(Z):h.target===this.heartButton&&this.toggleHeartState()}};
_.p.handleUpdateCommentVoteAction=function(h){var E;(E=this.toolbarState)!=null&&E.key&&this.ytdReduxBehavior.dispatch(_.vg("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:h.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":h.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.p.toggleHeartState=function(){var h;(h=this.toolbarState)!=null&&h.key&&this.ytdReduxBehavior.dispatch(_.vg("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ze.Object.defineProperties(kn.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return(((h=this.toolbarState)==null?void 0:h.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(E=this.toolbarData)==null?void 0:E.likeCountLiked:(g=this.toolbarData)==null?void 0:g.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.toolbarSurface)==null?void 0:h.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.toolbarSurface)==null?void 0:h.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.toolbarSurface)==null?void 0:h.prepareAccountCommand)!==void 0&&!_.J("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E=_.e((h=this.toolbarSurface)==null?void 0:h.prepareAccountCommand,_.V1),g,Z,M,W,z,c,I,B,U;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((g=this.toolbarSharedData)==null||!g.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:E!=null?E:_.e((M=this.toolbarSurface)==null?void 0:M.likeCommand,_.V1),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.e((W=this.toolbarSurface)==null?void 0:W.unlikeCommand,_.V1),defaultCommand:this.isVisiblyDisabled?_.e((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.V1):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.likeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:I.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(B=this.toolbarData)==null?void 0:B.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(U=this.toolbarSharedData)==null?void 0:U.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E=_.e((h=this.toolbarSurface)==null?void 0:h.prepareAccountCommand,_.V1),g,Z,M,W,z,c,I,B,U,L;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((g=this.toolbarSharedData)==null||!g.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((Z=this.toolbarState)==null?void 0:Z.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.e((M=this.toolbarSurface)==null?void 0:M.dislikeCommand,_.V1),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.e((W=this.toolbarSurface)==null?void 0:W.undislikeCommand,_.V1),defaultCommand:this.isVisiblyDisabled?_.e((z=this.toolbarSurface)==null?void 0:z.commentDisabledActionCommand,_.V1):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.dislikeInactiveTooltip,toggledTooltip:(I=this.toolbarData)==null?void 0:
I.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(B=this.toolbarSharedData)==null?void 0:B.dislikeReplyButtonA11y:(U=this.toolbarSharedData)==null?void 0:U.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 h,E,g;if(((h=this.toolbarState)==null?void 0:h.heartState)!==void 0&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((g=this.toolbarState)==null?void 0:g.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var Z,M,W,z,c,I,B,U,L,d,C,q,w,r;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(Z=this.toolbarData)==null?void 0:Z.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((W=this.toolbarState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.e((I=this.toolbarSurface)==null?void 0:I.heartCommand,
_.V1),unheartEndpoint:this.isVisiblyDisabled?void 0:_.e((B=this.toolbarSurface)==null?void 0:B.unheartCommand,_.V1),disabledEndpoint:this.isVisiblyDisabled?_.e((U=this.toolbarSurface)==null?void 0:U.commentDisabledActionCommand,_.V1):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(L=this.toolbarData)==null?void 0:L.heartActiveTooltip,unheartedTooltip:(d=this.toolbarData)==null?void 0:d.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((C=
this.toolbarState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(q=this.toolbarSharedData)==null?void 0:q.unheartButtonA11y:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.toolbarSurface)==null||!h.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(h=this.commentStrings)==null?void 0:h.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.e((E=this.toolbarSurface)==null?void 0:E.replyCommand,_.V1),command:this.isVisiblyDisabled?_.e((g=this.toolbarSurface)==null?
void 0:g.commentDisabledActionCommand,_.V1):this.isSubsOnlyCommentsIneligibleUser?_.e((Z=this.toolbarSurface)==null?void 0:Z.subscribersOnlySnackbarCommand,_.V1):void 0}}}});
kn.prototype.onYtServiceRequestSent=kn.prototype.onYtServiceRequestSent;kn.prototype.hideReplyDialogDiv=kn.prototype.hideReplyDialogDiv;_.Y([_.x(),_.V("design:type",Object)],kn.prototype,"commentStrings",void 0);_.Y([_.x(),_.V("design:type",Boolean)],kn.prototype,"isReply",void 0);_.Y([_.x(),_.V("design:type",Object)],kn.prototype,"toolbarData",void 0);_.Y([_.x(),_.V("design:type",Object)],kn.prototype,"toolbarSharedData",void 0);
_.Y([_.x(),_.V("design:type",String)],kn.prototype,"toolbarStateKey",void 0);_.Y([_.x(),_.V("design:type",String)],kn.prototype,"toolbarSurfaceKey",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],kn.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],kn.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.fJ),_.V("design:type",Object)],kn.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.Sg("#reply-dialog"),_.V("design:type",HTMLElement)],kn.prototype,"replyDialogDiv",void 0);_.Y([_.Sg("#replybox"),_.V("design:type",Object)],kn.prototype,"replyBox",void 0);_.Y([_.Sg("ytd-creator-heart-renderer"),_.V("design:type",Object)],kn.prototype,"heartButton",void 0);_.Y([_.x({selector:function(h,E){return _.Jj(h.entities,"engagementToolbarStateEntityPayload",E)},
selectorArgs:["toolbarStateKey"]}),_.V("design:type",Object)],kn.prototype,"toolbarState",void 0);_.Y([_.x({selector:zdq,selectorArgs:["toolbarSurfaceKey"]}),_.V("design:type",Object)],kn.prototype,"toolbarSurface",void 0);_.Y([_.x(),_.V("design:type",Object)],kn.prototype,"buttonOverrides",void 0);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kn.prototype,"hideReplyDialogDiv",null);
_.Y([_.S("toolbarData","toolbarState"),_.V("design:type",String),_.V("design:paramtypes",[])],kn.prototype,"likeCount",null);_.Y([_.S("likeCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"showLikeCount",null);_.Y([_.S("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"isVisiblyDisabled",null);_.Y([_.S("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.Y([_.S("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"isSubsOnlyCommentsEligibleUser",null);_.Y([_.S("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"hasPrepareAccountCommand",null);_.Y([_.S("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],kn.prototype,"likeToggleButtonRenderer",null);
_.Y([_.S("isReply","toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],kn.prototype,"dislikeToggleButtonRenderer",null);_.Y([_.S("toolbarData","toolbarState","toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],kn.prototype,"creatorHeartSupportedRenderer",null);_.Y([_.S("toolbarSurface"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kn.prototype,"hasReplyCommand",null);
_.Y([_.S("toolbarSurface","commentStrings","isVisiblyDisabled"),_.V("design:type",Object),_.V("design:paramtypes",[])],kn.prototype,"replyButtonRenderer",null);_.Y([_.x(),_.V("design:type",Object)],kn.prototype,"replyButtonOverrides",void 0);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],kn.prototype,"onYtServiceRequestSent",null);_.Y([_.K({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],kn);
_.X(kn,"ytd-comment-engagement-bar",function(){if(W3M!==void 0)return W3M;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return W3M=h},{mode:1});var pHB;var yZ=function(){return _.D.apply(this,arguments)||this};
_.f(yZ,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yZ.prototype,"data",void 0);_.Y([_.K({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],yZ);
_.X(yZ,"ytd-comment-inline-thumbnail-renderer",function(){if(pHB!==void 0)return pHB;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return pHB=h},{mode:1});var G0k;var Fl=function(){return _.D.apply(this,arguments)||this};
_.f(Fl,_.D);Fl.prototype.onMessageTap=function(){if(this.onTapCommand){var h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);h&&this.ytdOpenPopupBehavior.openPopup(h)}};
_.ze.Object.defineProperties(Fl.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return(h=this.data)==null?void 0:(E=h.button)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.command}}});
_.Y([_.t(_.fJ),_.V("design:type",Object)],Fl.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Fl.prototype,"data",void 0);_.Y([_.S("data.button.buttonRenderer.command"),_.V("design:type",Object),_.V("design:paramtypes",[])],Fl.prototype,"onTapCommand",null);_.Y([_.K({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Fl);
_.X(Fl,"ytd-comment-pause-composer-renderer",function(){if(G0k!==void 0)return G0k;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return G0k=h},{mode:1});var z0A;var agM;var Au=function(){var h=_.D.apply(this,arguments)||this;h.isOpen=!1;return h};
_.f(Au,_.D);_.p=Au.prototype;_.p.dataChanged=function(){this.isOpen=!1};
_.p.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.p.focus=function(){this.JSC$15846_commentbox.focus()};
_.p.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.p.openDialog=function(){this.isOpen=!0;this.JSC$15846_commentbox.focus();this.JSC$15846_commentbox.maybeHeightChanged()};
Au.prototype.onYtCommentboxDismiss=Au.prototype.onYtCommentboxDismiss;Au.prototype.dataChanged=Au.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Au.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Au.prototype,"isOpen",void 0);_.Y([_.Sg("#commentbox"),_.V("design:type",Object)],Au.prototype,"JSC$15846_commentbox",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Au.prototype,"dataChanged",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Au.prototype,"onYtCommentboxDismiss",null);_.Y([_.K({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Au);
_.X(Au,"ytd-comment-reply-dialog-renderer",function(){if(agM!==void 0)return agM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return agM=h},{mode:1});var cql;var Tx=function(){return _.D.apply(this,arguments)||this};
_.f(Tx,_.D);_.ze.Object.defineProperties(Tx.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.icon)==null?void 0:E.iconType;return g?"yt-icons:"+g.toLowerCase():null}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Tx.prototype,"data",void 0);_.Y([_.x(),_.S("data.icon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tx.prototype,"icon",null);_.Y([_.K({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Tx);
_.X(Tx,"ytd-pinned-comment-badge-renderer",function(){if(cql!==void 0)return cql;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return cql=h},{mode:1});var iBf;var ovD={},Igl={input:!0,meta:!0,br:!0,link:!0,img:!0},b7=null;ovD.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(){b7==null&&(b7=document.createElement("tp-yt-paper-tooltip"),b7.offset=8,b7.fitToVisibleBounds=!0)},
onMouseOver_:function(h){if(h=_.Vw(h.target,function(M){return M==this||M.getAttribute&&M.getAttribute("shared-tooltip-text")}.bind(this),!0)){var E=h.getAttribute("shared-tooltip-text");
if(E){var g=this,Z=null;h!=this&&(h.tagName.toLowerCase()in Igl?g=h.parentElement:g=h,h.id&&(Z=h.id));this.polymerController.createTooltipIfRequired_();if(b7.parentElement!=g||b7.for!=Z)(0,_.C3)(b7).textContent=E,_.UB(g).appendChild(b7),b7.for=Z,b7.animationDelay=this.polymerController.sharedTooltipAnimationDelay,b7.position=this.polymerController.sharedTooltipPosition}}}};var u7=function(){return _.D.apply(this,arguments)||this};
_.f(u7,_.D);u7.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]]"}}}}}};
u7.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var h;((h=this.data)==null?0:h.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
u7.prototype.colorChanged=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.color)==null?void 0:(g=E.basicColorPaletteData)==null?void 0:g.foregroundBodyColor;Z&&(this.rgbBadgeColor=_.bU(Z));_.UB(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
u7.prototype.tooltipChanged=function(){var h;((h=this.data)==null?0:h.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
u7.prototype.tooltipChanged=u7.prototype.tooltipChanged;u7.prototype.colorChanged=u7.prototype.colorChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(ovD.YtSharedTooltipBehavior),_.V("design:type",Object)],u7.prototype,"ytSharedTooltipBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],u7.prototype,"data",void 0);
_.Y([_.x({value:"#4285F4"}),_.V("design:type",String)],u7.prototype,"rgbBadgeColor",void 0);_.Y([_.Nm("data.color"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],u7.prototype,"colorChanged",null);_.Y([_.Nm("data.tooltip"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],u7.prototype,"tooltipChanged",null);_.Y([_.K({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],u7);
_.X(u7,"ytd-sponsor-comment-badge-renderer",function(){if(iBf!==void 0)return iBf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return iBf=h},{mode:1});var R0A;var PDA;var QZ=function(){return _.D.apply(this,arguments)||this};
_.f(QZ,_.D);QZ.prototype.computeState=function(h){switch(h==null?void 0:h.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"}};
QZ.prototype.updateStateIdentifier=function(h){if(this.viewModel.triStateKey){var E=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.vg("triStateButtonStateEntityPayload",E,{key:E,stateIdentifier:h}))}};
QZ.prototype.onClick=function(){var h=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(){h.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){h.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ze.Object.defineProperties(QZ.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 h;return((h=this.data)==null?void 0:h.buttonText)||""}}});
_.Y([_.x(),_.V("design:type",Object)],QZ.prototype,"viewModel",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],QZ.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x({selector:am$,selectorArgs:["viewModel.triStateKey"]}),_.V("design:type",Object)],QZ.prototype,"triStateButtonStateEntity",void 0);
_.Y([_.x({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.V("design:type",String)],QZ.prototype,"state",void 0);_.Y([_.S("viewModel","state"),_.V("design:type",Object),_.V("design:paramtypes",[])],QZ.prototype,"data",null);_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],QZ.prototype,"buttonText",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],QZ);
_.X(QZ,"ytd-tri-state-button-view-model",function(){if(PDA!==void 0)return PDA;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return PDA=h},{mode:1});var B0k;var U7f;var hZ=function(){var h=_.D.apply(this,arguments)||this;h.defaultIconToFilled=!_.J("kevlar_fill_comment_chip_icon_killswitch");return h};
_.f(hZ,_.D);hZ.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
hZ.prototype.dataChanged=function(){if(this.data){var h,E;((h=this.data.chipColorPalette)==null?0:h.backgroundColor)&&((E=this.data.chipColorPalette)==null?0:E.foregroundTitleColor)&&_.Ja(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.uU(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.uU(this.data.chipColorPalette.foregroundTitleColor)});var g;((g=this.data)==null?0:g.command)?(_.Ja(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Ja(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}};
hZ.prototype.onTap=function(){var h;if(this.data&&(h=this.data)!=null&&h.command){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.command)}};
hZ.prototype.getIconSize=function(){return _.J("kevlar_fill_comment_chip_icon_killswitch")?24:12};
hZ.prototype.onTap=hZ.prototype.onTap;hZ.prototype.dataChanged=hZ.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],hZ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Kf),_.V("design:type",Object)],hZ.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hZ.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],hZ.prototype,"basePriceText",void 0);_.Y([_.x(),_.V("design:type",Object)],hZ.prototype,"chipIcon",void 0);_.Y([_.x(),_.V("design:type",Object)],hZ.prototype,"defaultIconToFilled",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hZ.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hZ.prototype,"onTap",null);
_.Y([_.yc({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],hZ);
_.X(hZ,"yt-pdg-comment-chip-renderer",function(){if(U7f===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;B0k===void 0&&(B0k=document.createElement("template"));var Z=B0k;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);U7f=h}h=U7f;return h},{mode:2});var EX=function(){var h=_.D.apply(this,arguments)||this;h.useSmallAvatars=_.J("small_avatars_for_comments");h.webWatchCompactComments=_.J("web_watch_compact_comments");h.editDialog=null;return h};
_.f(EX,_.D);_.p=EX.prototype;_.p.onShow=function(){_.Vp("cmv",void 0,"wn_comments")};
_.p.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.p.detached=function(){this.editDialog=null;this.expander.reset()};
_.p.updateBackgroundColor=function(){if(this.backgroundColor){var h={"--ytd-comment-paid-background-color":_.uU(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Ja(this.hostElement,h)}else _.Ja(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.p.resetExpander=function(){var h;(h=this.expander)==null||h.reset()};
_.p.openEditDialog=function(h){h.dialog&&(this.editDialog=h.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.p.onYtNavigate=function(h){var E=h.detail.endpoint;if(E=_.e(E,_.qrD)||_.e(E,_.fLH))h.stopPropagation(),this.openEditDialog(E)};
_.p.onYtCommentboxDismiss=function(){this.editDialog=null;_.Ja(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.p.onAuthorThumbnailClicked=function(){_.J("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.p.onYtCommentboxResize=function(h){var E;(h==null?0:(E=h.detail)==null?0:E.height)&&_.Ja(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":h.detail.height+"px"})};
_.ze.Object.defineProperties(EX.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 h,E=(h=this.commentEntity)==null?void 0:h.author;return E&&(E.isCreator||E.isVerified||E.isArtist)?{renderer:{authorEndpoint:E.channelPageEndpoint?_.e(E.channelPageEndpoint,_.V1):_.e(E.channelCommand,_.V1),authorText:{runs:[{text:E.displayName}]},color:E.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:E.isArtist?{iconType:"AUDIO_BADGE"}:
E.isVerified?{iconType:E.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:E.isArtist||E.isVerified?E.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.commentEntity)==null?void 0:h.author;return E!=null&&E.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:E.sponsorBadgeUrl}]},tooltip:E.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var h;return _.e((h=this.commentSurfaceEntity)==null?void 0:h.pdgCommentChip,_.htn)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var h;return this.voiceReplyContainerViewModel&&((h=this.voiceReplyContainerViewModel)==null?void 0:h.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var h;return _.e((h=this.commentSurfaceEntity)==null?void 0:h.voiceReplyContainerViewModel,G7F)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var h;return this.voiceReplyContainerViewModel&&(h=this.voiceReplyContainerViewModel)!=null&&h.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.commentSurfaceEntity)==null?void 0:h.commentBackgroundColor)!=null?E:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var h,E;return(((h=this.commentEntity)==null?void 0:(E=h.properties)==null?void 0:E.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var h,E;if(_.J("enable_profile_cards_on_comments")&&((h=this.commentEntity)==null?0:(E=h.author)==null?0:E.profileCardEndpoint)&&this.viewModel.allowProfileCard){var g,Z;return _.e((g=this.commentEntity)==null?void 0:(Z=g.author)==null?void 0:Z.profileCardEndpoint,_.V1)}var M,W;return _.e((M=this.commentEntity)==null?void 0:(W=M.avatar)==null?void 0:W.endpoint,_.V1)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var h,E;if(_.J("enable_profile_cards_on_comments")&&((h=this.commentEntity)==null?0:(E=h.author)==null?0:E.channelPageEndpoint)){var g,Z;return _.e((g=this.commentEntity)==null?void 0:(Z=g.author)==null?void 0:Z.channelPageEndpoint,_.V1)}var M,W;return _.e((M=this.commentEntity)==null?void 0:(W=M.avatar)==null?void 0:W.endpoint,_.V1)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M=(h=this.commentEntity)==null?void 0:(E=h.avatar)==null?void 0:(g=E.image)==null?void 0:(Z=g.sources)==null?void 0:Z[0];return M?{thumbnails:[{url:M.url,width:M.width,height:M.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.commentEntity)==null?0:(E=h.author)==null?0:E.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.commentEntity)==null?void 0:(E=h.author)==null?void 0:E.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.commentEntity)==null?void 0:(E=h.properties)==null?void 0:E.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var h;return _.e((h=this.commentSurfaceEntity)==null?void 0:h.publishedTimeCommand,_.V1)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var h,E;if(((h=this.commentEntity)==null?0:h.translatedContent)&&((E=this.translateButtonState)==null?void 0:E.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var g;if((g=this.voiceReplyContainerViewModel)==null?0:g.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var Z,M;return((Z=this.commentEntity)==null?void 0:(M=Z.properties)==null?void 0:M.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.commentSharedEntity)==null?void 0:(E=h.strings)==null?void 0:E.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.commentSharedEntity)==null?void 0:(E=h.strings)==null?void 0:E.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.commentEntity)==null||!h.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var h,E,g=(E=_.e((h=this.viewModel)==null?void 0:h.translateButton,p5D))!=null?E:{},Z,M,W,z,c,I,B,U,L,d,C;return Object.assign({},g,{untoggledStateData:Object.assign({},g.untoggledStateData,{buttonText:(Z=this.commentEntity)==null?void 0:(M=Z.translateData)==null?void 0:M.text}),togglingStateData:Object.assign({},g.togglingStateData,{buttonText:(W=this.commentSharedEntity)==null?
void 0:(z=W.strings)==null?void 0:z.translatingText}),toggledStateData:Object.assign({},g.toggledStateData,{buttonText:(c=this.commentSharedEntity)==null?void 0:(I=c.strings)==null?void 0:I.seeOriginalText}),transitionCommand:((B=this.commentEntity)==null?0:B.translatedContent)?void 0:_.e((U=this.commentEntity)==null?void 0:(L=U.translateData)==null?void 0:L.translateComment,_.V1),triStateKey:(d=this.commentEntity)==null?void 0:(C=d.properties)==null?void 0:C.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((E=_.e(_.e((h=this.toolbarSurface)==null?void 0:h.menuCommand,_.V1),Nyl))==null?void 0:(g=E.menu)==null?void 0:g.menuRenderer)||null}}});
EX.prototype.onYtCommentboxResize=EX.prototype.onYtCommentboxResize;EX.prototype.onYtCommentboxDismiss=EX.prototype.onYtCommentboxDismiss;EX.prototype.onYtNavigate=EX.prototype.onYtNavigate;EX.prototype.resetExpander=EX.prototype.resetExpander;EX.prototype.updateBackgroundColor=EX.prototype.updateBackgroundColor;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],EX.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],EX.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#author-thumbnail > button"),_.V("design:type",HTMLElement)],EX.prototype,"authorThumbnailAnchor",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EX.prototype,"linked",null);
_.Y([_.S("viewModel","linked"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"linkedCommentBadge",null);_.Y([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EX.prototype,"pinned",null);_.Y([_.S("viewModel","pinned"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"pinnedCommentBadge",null);
_.Y([_.S("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"authorCommentBadge",null);_.Y([_.x({reflectToAttribute:!0}),_.S("authorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"hasAuthorBadge",null);_.Y([_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"sponsorCommentBadge",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("sponsorCommentBadge"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"hasSponsorBadge",null);_.Y([_.S("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"pdgCommentChipRenderer",null);_.Y([_.x({reflectToAttribute:!0}),_.S("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"hasVoiceReply",null);
_.Y([_.S("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"voiceReplyContainerViewModel",null);_.Y([_.S("voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"voiceReplyUnavailableText",null);_.Y([_.x(),_.V("design:type",Object)],EX.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"viewModel",null);
_.Y([_.x({selector:function(h,E){return _.Jj(h.entities,"commentSharedEntityPayload",E)},
selectorArgs:["viewModel.sharedKey"]}),_.V("design:type",Object)],EX.prototype,"commentSharedEntity",void 0);_.Y([_.x({selector:function(h,E){return _.Jj(h.entities,"commentEntityPayload",E)},
selectorArgs:["viewModel.commentKey"]}),_.V("design:type",Object)],EX.prototype,"commentEntity",void 0);_.Y([_.x({selector:function(h,E){return _.Jj(h.entities,"commentSurfaceEntityPayload",E)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.V("design:type",Object)],EX.prototype,"commentSurfaceEntity",void 0);_.Y([_.x({selector:zdq,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.V("design:type",Object)],EX.prototype,"toolbarSurface",void 0);_.Y([_.x({selector:am$,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.V("design:type",Object)],EX.prototype,"translateButtonState",void 0);
_.Y([_.S("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"backgroundColor",null);_.Y([_.x({reflectToAttribute:!0}),_.S("viewModel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EX.prototype,"optimalReadingWidthComments",null);_.Y([_.Sg("ytd-expander"),_.V("design:type",Object)],EX.prototype,"expander",void 0);
_.Y([_.Nm("backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EX.prototype,"updateBackgroundColor",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EX.prototype,"useSmallAvatars",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EX.prototype,"webWatchCompactComments",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"isReply",null);
_.Y([_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"authorThumbnailEndpoint",null);_.Y([_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"authorNameEndpoint",null);_.Y([_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"authorThumbnail",null);_.Y([_.S("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],EX.prototype,"authorTextClass",null);
_.Y([_.S("commentEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],EX.prototype,"authorChannelName",null);_.Y([_.S("commentEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"publishedTime",null);_.Y([_.S("commentSurfaceEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"publishedTimeCommand",null);
_.Y([_.S("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"contentText",null);_.Y([_.Nm("contentText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EX.prototype,"resetExpander",null);_.Y([_.S("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EX.prototype,"shouldShowReadMoreInitially",null);
_.Y([_.S("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],EX.prototype,"expandText",null);_.Y([_.S("commentSharedEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],EX.prototype,"collapseText",null);_.Y([_.S("commentEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],EX.prototype,"shouldShowTranslateButton",null);
_.Y([_.S("commentEntity","commentSharedEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"translateButton",null);_.Y([_.S("toolbarSurface"),_.V("design:type",Object),_.V("design:paramtypes",[])],EX.prototype,"overflowMenuRenderer",null);_.Y([_.x(),_.V("design:type",Object)],EX.prototype,"editDialog",void 0);_.Y([_.Sg("ytd-comment-dialog-renderer"),_.V("design:type",Object)],EX.prototype,"editCommentDialogContainer",void 0);
_.Y([_.Sg("ytd-comment-reply-dialog-renderer"),_.V("design:type",Object)],EX.prototype,"editReplyDialogContainer",void 0);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EX.prototype,"onYtNavigate",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EX.prototype,"onYtCommentboxDismiss",null);
_.Y([_.f3("yt-commentbox-resize"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],EX.prototype,"onYtCommentboxResize",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-comment-view-model"})],EX);
_.X(EX,"ytd-comment-view-model",function(){if(R0A!==void 0)return R0A;var h=document.createElement("template");_.N(h,'\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"> </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          \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"> [[authorChannelName]] </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" recompute-on-resize="[[webWatchCompactComments]]" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return R0A=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});_.I9(_.O(function(h){var E={};return _.R("yt-sub-thread",{class:_.CO("ytSubThreadHost",(E.ytSubThreadHasButton=h.isButton,E))},_.R("div",{class:"ytSubThreadThreadline"},_.R("div",{class:"ytSubThreadConnection"}),_.R("div",{class:"ytSubThreadContinuation"}),_.R("div",{class:"ytSubThreadShadow"})),_.R("div",{class:"ytSubThreadSubThreadContent"},h.children))},"Rb"),"yt-sub-thread",{props:{isButton:_.C6}});var g8=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_modern_buttons");h.commentThreadingEnabled=_.J("web_delhi_comment_threads");h.isWatchGrid=_.J("kevlar_watch_grid");h.buttonOverrides=h.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};h.JSC$15892_spinnerEl=null;return h};
_.f(g8,_.D);_.p=g8.prototype;_.p.configureContinuationPathMap=function(){return _.J("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.shouldShowExpandedThreads=function(h,E){return this.commentThreadingEnabled&&E&&(h==null?void 0:h.length)>0};
_.p.shouldShowCollapsedThreads=function(h,E){return this.commentThreadingEnabled&&!E&&h};
_.p.computeThreadRenderer=function(h){return _.e(h,QjM)};
_.p.computeIsContinuationItem=function(h){return!!this.computeContinuationItemRenderer(h)};
_.p.computeButtonRenderer=function(h){return _.e(h,_.Gh)};
_.p.computeContinuationItemRenderer=function(h){return _.e(h,_.Ec)};
_.p.computeShowButton=function(h){var E;return!((E=this.computeContinuationItemRenderer(h))==null||!E.button)};
_.p.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.p.attached=function(){this.isShowRepliesVisible=!0};
_.p.dataChanged=function(){var h=this.expanderContents;h&&(h.hidden=!0);this.isLoading=!1};
_.p.endsInContinuation=function(h){return!!h&&h.length>0&&!!this.computeContinuationItemRenderer(h[h.length-1])};
_.p.computeShouldShowHideRepliesButton=function(h,E){return!h&&E};
_.p.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.p.isLoadingChanged=function(){this.isLoading&&!this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.UB(this.expanderContents).appendChild(this.JSC$15892_spinnerEl));this.JSC$15892_spinnerEl&&(this.JSC$15892_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var h;(h=this.contents)==null||h.classList.remove("reloading")}};
_.p.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var h=_.e(this.data.viewReplies,_.Gh);h&&this.ytRendererBehavior.logExplicitClick(h);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var h=_.e(this.data.hideReplies,_.Gh);h&&this.ytRendererBehavior.logExplicitClick(h);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.p.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var h=_.UB(this.hostElement).querySelector("#expander-contents");h&&(h.hidden=this.isShowRepliesVisible)}};
_.p.computeAlign=function(){if(this.modern){var h;return!((h=this.data)==null?0:h.viewRepliesCreatorThumbnail)}};
_.ze.Object.defineProperties(g8.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.endsInContinuation((h=this.data)==null?void 0:h.contents)||this.commentThreadingEnabled&&this.endsInContinuation((E=this.data)==null?void 0:E.subThreads)}}});
g8.prototype.isShowMoreChanged=g8.prototype.isShowMoreChanged;g8.prototype.isLoadingChanged=g8.prototype.isLoadingChanged;g8.prototype.triggerFirstContinuation=g8.prototype.triggerFirstContinuation;g8.prototype.dataChanged=g8.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Bv),_.V("design:type",Object)],g8.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],g8.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],g8.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],g8.prototype,"commentThreadingEnabled",void 0);_.Y([_.x(),_.V("design:type",Boolean)],g8.prototype,"expanded",void 0);
_.Y([_.x(),_.V("design:type",Function)],g8.prototype,"toggleExpanded",void 0);_.Y([_.x(),_.V("design:type",Array)],g8.prototype,"teasers",void 0);_.Y([_.x(),_.V("design:type",Boolean)],g8.prototype,"isLoading",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],g8.prototype,"isShowRepliesVisible",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],g8.prototype,"useNewFormatting",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],g8.prototype,"isWatchGrid",void 0);
_.Y([_.x(),_.V("design:type",Object)],g8.prototype,"buttonOverrides",void 0);_.Y([_.Sg("#expander-contents"),_.V("design:type",HTMLElement)],g8.prototype,"expanderContents",void 0);_.Y([_.Sg("ytd-continuation-item-renderer"),_.V("design:type",Object)],g8.prototype,"continuationItemRenderer",void 0);_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],g8.prototype,"contents",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g8.prototype,"dataChanged",null);_.Y([_.S("data.contents","data.subThreads.*"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],g8.prototype,"hasContinuation",null);_.Y([_.f3("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g8.prototype,"triggerFirstContinuation",null);
_.Y([_.Nm("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g8.prototype,"isLoadingChanged",null);_.Y([_.Nm("isShowRepliesVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g8.prototype,"isShowMoreChanged",null);_.Y([_.K({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],g8);
_.X(g8,"ytd-comment-replies-renderer",function(){if(z0A!==void 0)return z0A;var h=document.createElement("template");_.N(h,'\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="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="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-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return z0A=h},{mode:1});var L3l;var Z5=function(){var h=_.D.apply(this,arguments)||this;h.isOpen=!1;h.commentDialog=null;h.useSmallAvatars=_.J("small_avatars_for_comments");h.useSmallAvatarsEngagementPanelOnly=_.J("small_avatars_for_comments_ep");h.placeholderFocusListener=null;h.hasOpenedDialog=!1;h.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return h};
_.f(Z5,_.D);_.p=Z5.prototype;_.p.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.p.ready=function(){var h=this,E=_.UB(this.hostElement).querySelector("#placeholder-area"),g=_.UB(this.hostElement).querySelector("#simplebox-placeholder"),Z=function(M){M.stopPropagation();M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||h.openDialog()};
this.placeholderFocusListener=Z;g.addEventListener("focus",this.placeholderFocusListener);E.addEventListener("tap",Z);E.addEventListener("keypress",Z)};
_.p.maybeRemoveFocusEventListener=function(){var h;(h=this.data)!=null&&h.prepareAccountEndpoint&&!_.J("web_comments_simplebox_modal_focus_on_tap_ks")&&(h=_.UB(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(h.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.p.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.p.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.J("web_comment_simplebox_resolve_polymer_command_ks")?_.eQ.instance.resolveCommand(this.data.prepareAccountEndpoint):_.qB(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);h&&this.ytdOpenPopupBehavior.openPopup(h);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.UB(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.p.onYtCommentboxDismiss=function(h){h.stopPropagation();this.isOpen=!1};
_.p.onCreateCommentAction=function(h){this.get("createCommentAction.contents",h)&&(this.isOpen=!1)};
_.p.computeCommentDialog=function(h){return{placeholderText:h.placeholderText,authorThumbnail:h.authorThumbnail,submitButton:h.submitButton,imageButton:h.imageButton,cancelButton:h.cancelButton,emojiButton:h.emojiButton,emojis:h.emojis,emojiPicker:h.emojiPicker,aadcGuidelinesStateEntityKey:h.aadcGuidelinesStateEntityKey,openAadcDialog:h.openAadcDialog,unicodeEmojisUrl:h.unicodeEmojisUrl}};
_.p.onHideIdentityChip=function(h){_.e(h,yOM)&&this.set("data.placeholderText",_.e(h,yOM).placeholderText)};
Z5.prototype.onYtCommentboxDismiss=Z5.prototype.onYtCommentboxDismiss;Z5.prototype.dataChanged=Z5.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],Z5.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Z5.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Z5.prototype,"isOpen",void 0);_.Y([_.x(),_.V("design:type",Object)],Z5.prototype,"commentDialog",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Z5.prototype,"engagementPanel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Z5.prototype,"useSmallAvatars",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Z5.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Z5.prototype,"enableCreationBox",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Z5.prototype,"showCreateDialog",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z5.prototype,"dataChanged",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Z5.prototype,"onYtCommentboxDismiss",null);_.Y([_.K({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Z5);
_.X(Z5,"ytd-comment-simplebox-renderer",function(){if(L3l!==void 0)return L3l;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return L3l=h},{mode:1});var jsM;_.$P("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var Mz=function(){var h=_.D.apply(this,arguments)||this;h.addHoverEffect=_.J("swatcheroo_comments_hover_effect");h.useSmallAvatars=_.J("small_avatars_for_comments");h.scrollingEnabled=_.J("web_comment_threading_scroll_on_collapse");h.threadHovered=!1;h.expanded=!1;h.removed=!1;h.teasers=[];h.actionMap=h.configureActionMap();h.toggleExpanded=function(){h.expanded=!h.expanded;!h.expanded&&h.scrollingEnabled&&_.BX(h.hostElement,"yt-scroll-to-comment-element",[h.commentElement])};
return h};
_.f(Mz,_.D);_.p=Mz.prototype;_.p.configureActionMap=function(){return _.J("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.p.createCommentReplyAction=function(h){h=_.e(h,VJA);if(h!=null&&h.contents){var E=h.replyToCommentId,g=h.parentCommentId,Z,M=(Z=this.commentViewModel)==null?void 0:Z.commentId;(M===E||M===g&&!E)&&this.attachReply(h.contents)}};
_.p.attachReply=function(h){var E;((E=this.data)==null?0:E.replies)?(E=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+E+".continuationItemRenderer")?E===0?this.push("teasers",h):this.splice("data.replies.commentRepliesRenderer.subThreads",E,0,h):this.push("data.replies.commentRepliesRenderer.subThreads",h)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[h],viewReplies:{buttonRenderer:{text:_.iV("View replies"),
icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.p.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.$E(this.teasers))),this.set("teasers",[]))};
_.p.removeCommentAction=function(h){h=_.e(h,T6l);var E=h==null?void 0:h.commentId,g;E&&((g=this.commentViewModel)==null?void 0:g.commentId)===E&&this.maybeRemoveComment(h.actionResult)};
_.p.banAuthorAction=function(h){h=_.e(h,YjM);var E=h==null?void 0:h.commentId,g;E&&((g=this.commentViewModel)==null?void 0:g.commentId)===E&&this.maybeRemoveComment(h.actionResult)};
_.p.hideReportedCommentAction=function(h){h=_.e(h,irF);var E=h==null?void 0:h.commentId,g;E&&((g=this.commentViewModel)==null?void 0:g.commentId)===E&&this.maybeRemoveComment(h.actionResult)};
_.p.maybeRemoveComment=function(h){h&&h.status==="STATUS_SUCCEEDED"&&(this.feedbackText=h.feedbackText||_.iV("Reply removed"),this.removed=!0)};
_.p.onTap=function(h){if(this.addHoverEffect&&!this.engagementPanel&&!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||_.qB({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.p.attached=function(){var h=this;this.isSubThread&&(this.expanded=!0);var E;(E=this.commentThreadHitbox)==null||E.addEventListener("mouseover",function(){h.threadHovered=!0});
var g;(g=this.commentThreadHitbox)==null||g.addEventListener("mouseout",function(){h.threadHovered=!1});
var Z;(Z=this.commentThreadHitbox)==null||Z.addEventListener("click",function(){h.toggleExpanded()})};
_.ze.Object.defineProperties(Mz.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)!=null&&h.commentViewModel)return _.e(this.data.commentViewModel,W9M)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return _.J("web_delhi_comment_threads")&&!!((h=this.data)==null?0:(E=h.replies)==null?0:(g=E.commentRepliesRenderer)==null?0:g.subThreads)}}});
Mz.prototype.onTap=Mz.prototype.onTap;Mz.prototype.onAppendContinuationItemsActionFinished=Mz.prototype.onAppendContinuationItemsActionFinished;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Mz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Mz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Mz.prototype,"addHoverEffect",void 0);_.Y([_.x(),_.V("design:type",Object)],Mz.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Mz.prototype,"useSmallAvatars",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Mz.prototype,"scrollingEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Mz.prototype,"isSubThread",void 0);
_.Y([_.Sg(".thread-hitbox"),_.V("design:type",HTMLElement)],Mz.prototype,"commentThreadHitbox",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Mz.prototype,"threadHovered",void 0);_.Y([_.Sg("#comment"),_.V("design:type",HTMLElement)],Mz.prototype,"commentElement",void 0);_.Y([_.x(),_.V("design:type",Object)],Mz.prototype,"expanded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Mz.prototype,"removed",void 0);
_.Y([_.x(),_.V("design:type",Object)],Mz.prototype,"feedbackText",void 0);_.Y([_.x(),_.V("design:type",Array)],Mz.prototype,"teasers",void 0);_.Y([_.f3("yt-append-continuation-items-action-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Mz.prototype,"onAppendContinuationItemsActionFinished",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Mz.prototype,"commentViewModel",null);
_.Y([_.S("data.replies"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Mz.prototype,"hasSubThreading",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Mz.prototype,"engagementPanel",void 0);_.Y([_.f3("tap"),_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Mz.prototype,"onTap",null);_.Y([_.K({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Mz);
_.X(Mz,"ytd-comment-thread-renderer",function(){if(jsM!==void 0)return jsM;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return jsM=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var d7l;var WG=function(){var h=_.D.apply(this,arguments)||this;h.compactHeader=_.J("web_watch_compact_comments_header");h.hidePanelButton=!1;h.isPostSchedulingEnabled=_.J("enable_post_scheduling");h.hasFinishedStamping=!1;h.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!1;h.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return h};
_.f(WG,_.D);_.p=WG.prototype;
_.p.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.p.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.p.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.p.onYtServiceRequestSent=function(h,E){if(!_.J("kevlar_command_handler")&&E.actions)for(h=0;h<E.actions.length;h++){var g=E.actions[h];_.e(g,B6C)&&_.UB(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.e(g,B6C))}};
_.p.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var h;if(this.getPrefilledBackstagePostDialog((h=this.data)==null?void 0:h.actions)){_.UB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var E=_.UB(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;E&&_.pQ(this,function(){E.focus();E.openDialog&&E.openDialog()})}}else this.hasActionsChange=!0};
_.p.computeIsBackstage=function(h){return h};
_.p.onYtCommentboxDismiss=function(){_.UB(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.p.removePrefilledDialog=function(h){if(h==null?0:h.actions){for(var E=h.actions.length-1;E>=0;E--){var g=void 0;((g=_.e(h.actions[E],J0m))==null?0:g.dialog)&&delete h.actions[E]}this.set("data",void 0);this.set("data",h)}};
_.p.getPrefilledBackstagePostDialog=function(h){if(h)for(var E=0;E<h.length;E++){var g=h[E],Z=void 0;if((Z=_.e(g,J0m))==null?0:Z.dialog)return _.e(g,J0m).dialog}return null};
_.p.computeBackstagePostDialog=function(h){return h&&(this.getPrefilledBackstagePostDialog(h.actions)||h.createRenderer)};
_.p.dataChanged=function(){if(this.data){var h=this.data.customEmojis,E=this.data.unicodeEmojisUrl;_.PB.clear();E&&_.Pum(_.PB,E);h&&_.PB.load(h)}};
_.p.handleSignalActionOpenPostCommentDialogAction=function(){var h=_.UB(this.hostElement).querySelector("ytd-comment-simplebox-renderer");h?h.openDialog():this.JSC$15915_handleOpenPostCommentDialogActionAfterStamp=!0};
_.p.onPostHeaderTap=function(){var h;((h=this.data)==null?0:h.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.ze.Object.defineProperties(WG.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.J("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W,z;return!this.hidePanelButton&&_.J("kevlar_watch_comments_panel_button")&&((z=_.e((h=this.data)==null?void 0:(E=h.sortMenu)==null?void 0:(g=E.sortFilterSubMenuRenderer)==null?void 0:(Z=g.subMenuItems)==null?void 0:(M=Z[0])==null?void 0:(W=M.serviceEndpoint)==null?void 0:W.commandMetadata,_.qH))==null?void 0:z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.NH("MINIPLAYER_EXPAND_LABEL"),text:_.MR(_.NH("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
WG.prototype.dataChanged=WG.prototype.dataChanged;WG.prototype.onYtCommentboxDismiss=WG.prototype.onYtCommentboxDismiss;WG.prototype.observePrefilledBackstagePostDialog=WG.prototype.observePrefilledBackstagePostDialog;WG.prototype.onYtServiceRequestSent=WG.prototype.onYtServiceRequestSent;WG.prototype.onStampFinished=WG.prototype.onStampFinished;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],WG.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],WG.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],WG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WG.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],WG.prototype,"compactHeader",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],WG.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],WG.prototype,"hidePanelButton",void 0);_.Y([_.x({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.V("design:type",Boolean)],WG.prototype,"isBackstage",void 0);_.Y([_.x({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.V("design:type",Object)],WG.prototype,"backstagePostDialog",void 0);
_.Y([_.x(),_.V("design:type",Object)],WG.prototype,"isPostSchedulingEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],WG.prototype,"useSpaceBetween",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data","hidePanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],WG.prototype,"showCommentsPanelButton",null);
_.Y([_.S("data","showCommentsPanelButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],WG.prototype,"commentsPanelButtonData",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WG.prototype,"onStampFinished",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],WG.prototype,"onYtServiceRequestSent",null);
_.Y([_.Nm("data.actions"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WG.prototype,"observePrefilledBackstagePostDialog",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WG.prototype,"onYtCommentboxDismiss",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WG.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],WG);
_.X(WG,"ytd-comments-header-renderer",function(){if(d7l!==void 0)return d7l;var h=document.createElement("template");_.N(h,'\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" on-click="onPostHeaderTap" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return d7l=h},{mode:1});var CDB;var pj=function(){return _.D.apply(this,arguments)||this};
_.f(pj,_.D);_.Y([_.x(),_.V("design:type",Object)],pj.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.Y([_.K({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],pj);
_.X(pj,"ytd-destination-button-renderer",function(){if(CDB!==void 0)return CDB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return CDB=h},{mode:1});var JqM;var GS=function(){var h=_.D.apply(this,arguments)||this;h.isRichGrid=!1;h.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return h};
_.f(GS,_.D);_.p=GS.prototype;_.p.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.p.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.p.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.p.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var h;if((h=this.data)==null||!h.isExpanded){h=this.hostElement.clientWidth;var E;if(h&&(E=this.data)!=null&&E.destinationButtons){E=Math.floor((h+4)/214);h=this.data.destinationButtons.length;var g=Math.ceil(h/E);this.fullyVisibleRows=h%E===1&&g===2?1:Math.min(g,2);this.isShowMoreVisible=this.fullyVisibleRows<g}}}};
_.p.updateRichGridDestinationButtonsVisibility=function(){var h,E;if(this.isRichGrid&&((h=this.data)==null||!h.isExpanded)&&(E=this.data)!=null&&E.destinationButtons){h=this.richGridItemsPerRow+1;E=this.data.destinationButtons.length;var g=Math.ceil(E/h);this.fullyVisibleRows=E%h===1&&g===2?1:Math.min(g,2);this.isShowMoreVisible=this.fullyVisibleRows<g}};
_.p.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
GS.prototype.updateRichGridDestinationButtonsVisibility=GS.prototype.updateRichGridDestinationButtonsVisibility;_.Y([_.x(),_.V("design:type",Object)],GS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],GS.prototype,"fullyVisibleRows",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GS.prototype,"isShowMoreVisible",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],GS.prototype,"isRichGrid",void 0);
_.Y([_.x({selector:_.Y8,value:0}),_.V("design:type",Number)],GS.prototype,"richGridItemsPerRow",void 0);_.Y([_.x(),_.V("design:type",Object)],GS.prototype,"gridStateActionMap",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],GS.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],GS.prototype,"ytdReduxBehavior",void 0);_.Y([_.Nm("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GS.prototype,"updateRichGridDestinationButtonsVisibility",null);_.Y([_.K({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],GS);
_.X(GS,"ytd-destination-shelf-renderer",function(){if(JqM!==void 0)return JqM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return JqM=h},{mode:1});var e0m;var zS=function(){return _.D.apply(this,arguments)||this};
_.f(zS,_.D);zS.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zS.prototype,"data",void 0);_.Y([_.K({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],zS);
_.X(zS,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(e0m!==void 0)return e0m;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return e0m=h},{mode:1});var qSD;var a4=function(){var h=_.D.apply(this,arguments)||this;h.disableAnimation=!1;h.isSlimlineSurvey=!1;h.isSlimlineSurveyFollowUp=!1;h.isShortsStyle=!1;return h};
_.f(a4,_.D);a4.prototype.onTap=function(h){h.preventDefault();this.data&&_.Ra(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ze.Object.defineProperties(a4.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 h,E,g,Z,M;return((h=this.data)==null?0:h.checked)?(E=this.data)==null?void 0:(g=E.onStateIcon)==null?void 0:g.iconType:(Z=this.data)==null?void 0:(M=Z.defaultStateIcon)==null?void 0:M.iconType}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],a4.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],a4.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],a4.prototype,"disableAnimation",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a4.prototype,"isSlimlineSurvey",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a4.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],a4.prototype,"isShortsStyle",void 0);_.Y([_.S("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],a4.prototype,"isAnimatedIcon",null);
_.Y([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Number),_.V("design:paramtypes",[])],a4.prototype,"iconSize",null);_.Y([_.S("isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],a4.prototype,"isDarkTheme",null);_.Y([_.S("data.checked"),_.V("design:type",Object),_.V("design:paramtypes",[])],a4.prototype,"icon",null);_.Y([_.K({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],a4);
_.X(a4,"ytd-rating-survey-option-renderer",function(){if(qSD!==void 0)return qSD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return qSD=h},{mode:2});var fgM;var cG=function(){var h=_.D.apply(this,arguments)||this;h.firstResponseText=null;h.lastResponseText=null;h.selectedNonStarOption=null;h.hideOptions=!1;h.hideUndoButton=!0;h.disableAnimation=!1;h.showResponseRangeText=!1;h.selectedRatingIndex=-1;h.isSlimlineSurvey=!1;h.isSlimlineSurveyFollowUp=!1;h.isShortsStyle=!1;h.slimlineSurveyRatingSelectedIndex=-1;return h};
_.f(cG,_.D);_.p=cG.prototype;_.p.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.p.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.p.onOptionChange=function(h,E){var g=this;h=E.onStateIcon&&E.defaultStateIcon&&E.onStateIcon.iconType===E.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(z,c){z.responseText===E.responseText?g.isSlimlineSurvey?(g.selectedRatingIndex=c,g.ytdReduxBehavior.dispatch(BsD(c))):(g.setSurveyOptionValue(c,!0,"checked"),g.setSurveyOptionValue(c,!0,"selected")):(g.setSurveyOptionValue(c,!1,"checked"),g.setSurveyOptionValue(c,
!1,"selected"))});
else if(h)this.selectedNonStarOption=E,this.hideOptions=!0;else{var Z=this.ytRendererBehavior.getSimpleString(E.responseText),M=!0;this.getOptionRenderers().forEach(function(z,c){g.setSurveyOptionValue(c,M,"checked");g.setSurveyOptionValue(c,!1,"selected");g.ytRendererBehavior.getSimpleString(z.responseText)===Z&&(M=!1,g.setSurveyOptionValue(c,!0,"selected"))})}h=E.responseEndpoint;
var W;E.followUpCommand&&(W=_.e(E.followUpCommand,JBD));this.isSlimlineSurvey?(this.resetComponent(),_.BX(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.BX(this.hostElement,"ytd-inline-survey-rating-select-action",[h,W])};
_.p.showSelectedOption=function(){var h=this;_.KP.addJob(function(){var E=h.getOptionRenderers()[h.slimlineSurveyRatingSelectedIndex];h.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),E)},8,100)};
_.p.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(h){var E;return(E=_.e(h,qRB))!=null?E:{}}):[]};
_.p.onUndoClick=function(){this.resetComponent();_.BX(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.p.setSurveyOptionValue=function(h,E,g){this.notifyPath("data.ratings."+h+".ratingSurveyOptionRenderer."+g);this.set("data.ratings."+h+".ratingSurveyOptionRenderer."+g,E)};
_.p.resetComponent=function(){var h=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var E=this.getOptionRenderers(),g,Z;this.firstResponseText=(Z=(g=E[0])==null?void 0:g.responseText)!=null?Z:null;var M,W;this.lastResponseText=(W=(M=E[E.length-1])==null?void 0:M.responseText)!=null?W:null;E.forEach(function(z,c){h.setSurveyOptionValue(c,!1,"checked");h.setSurveyOptionValue(c,!1,"selected")})};
_.ze.Object.defineProperties(cG.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
cG.prototype.onOptionChange=cG.prototype.onOptionChange;cG.prototype.dataChanged=cG.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],cG.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"firstResponseText",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"lastResponseText",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"selectedNonStarOption",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"hideOptions",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"hideUndoButton",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"disableAnimation",void 0);
_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"showResponseRangeText",void 0);_.Y([_.x(),_.V("design:type",Object)],cG.prototype,"selectedRatingIndex",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cG.prototype,"isSlimlineSurvey",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cG.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cG.prototype,"isShortsStyle",void 0);_.Y([_.x({selector:function(h){return h.ui.slimlineSurveyRatingSelectedIndex}}),
_.V("design:type",Object)],cG.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.Y([_.S("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],cG.prototype,"isSingleSelect",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cG.prototype,"dataChanged",null);
_.Y([_.f3("ytd-rating-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],cG.prototype,"onOptionChange",null);_.Y([_.K({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],cG);
_.X(cG,"ytd-rating-survey-renderer",function(){if(fgM!==void 0)return fgM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fgM=h},{mode:1});var N0f;var tHC;var SSC;var FUx=(dH.FIRSTDAYOFWEEK+1)%7,x7D=function(h,E,g,Z){var M="";if(Z.selection&&sQV(Z.selection))Ua(h,Z.selection)&&(M+=" selected");else if(Z.selection&&VO$(Z.selection)){var W=Z.selection.selectionState||"START_DATE";Ua(h,Z.selection.start)&&(M+=" period-start ",W==="START_DATE"&&(M+="selected"));Ua(h,Z.selection.end)&&(M+=" period-end ",W==="END_DATE"&&(M+="selected"));Lu(h,Z.selection.start)||Lu(Z.selection.end,h)||(M+=" highlighted")}if(Lu(E,Z.start)||Lu(Z.end,E))M+=" disabled";Z.circleToday&&
Ua(E,g)&&(M+=" today");return M};var i6=function(){return _.D.apply(this,arguments)||this};
_.f(i6,_.D);_.p=i6.prototype;_.p.attached=function(){var h=this;_.pQ(this,function(){h.JSC$15949_calendarMain.scrollHeight>0&&(h.calendarConfig.selection?h.scrollToDate(kMV(h.calendarConfig.selection)):h.scrollToDate(h.calendarConfig.end))})};
_.p.updateSelection=function(h){h=Adq(Object.assign({},this.calendarConfig,{selection:h}),x7D);this.splice.apply(this,["renderData.months",0,h.length].concat(_.$E(h)))};
_.p.scrollToDate=function(h){this.renderData&&(h=TT$(h,this.renderData),h!==void 0&&this.JSC$15949_calendarMain.scrollToIndex(h))};
_.p.scrollToNextMonth=function(){this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex+1)};
_.p.scrollToPrevMonth=function(){this.JSC$15949_calendarMain.firstVisibleIndex===0&&this.JSC$15949_calendarMain.scrollTo(0,0);this.JSC$15949_calendarMain.scrollToIndex(this.JSC$15949_calendarMain.firstVisibleIndex-1)};
_.p.handleDayClick=function(h){_.BX(this.hostElement,"ytd-calendar-date-clicked",[h.model.day.date])};
_.p.handleDayMouseDown=function(h){h.preventDefault();_.BX(this.hostElement,"ytd-calendar-date-mousedown",[h.model.day.date])};
_.p.handleDayMouseUp=function(h){_.BX(this.hostElement,"ytd-calendar-date-mouseup",[h.model.day.date])};
_.p.handleDayMouseEnter=function(h){h.preventDefault();_.BX(this.hostElement,"ytd-calendar-date-mouseenter",[h.model.day.date])};
_.p.handleDayMouseLeave=function(h){_.BX(this.hostElement,"ytd-calendar-date-mouseleave",[h.model.day.date])};
_.ze.Object.defineProperties(i6.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var h=this.calendarConfig,E=x7D;E=E===void 0?x7D:E;for(var g=[],Z=0;Z<7;Z++)g.push(dH.NARROWWEEKDAYS[(Z+FUx)%7]);return{months:Adq(h,E),daysOfWeekLabel:g}}}});
_.Y([_.x(),_.V("design:type",Object)],i6.prototype,"calendarConfig",void 0);_.Y([_.Sg("#calendar-main"),_.V("design:type",Object)],i6.prototype,"JSC$15949_calendarMain",void 0);_.Y([_.S("calendarConfig"),_.V("design:type",Object),_.V("design:paramtypes",[])],i6.prototype,"renderData",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],i6);
_.X(i6,"ytd-scrollable-calendar",function(){if(SSC!==void 0)return SSC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return SSC=h},{mode:2});var wHm;var D7A;var o4=function(){var h=_.D.apply(this,arguments)||this;h.hideCharCounter=!1;h.hideLabel=!1;h.noLabelFloat=!1;h.autoValidate=!0;h.invalid=!1;h.disabled=!1;h.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return h};
_.f(o4,_.D);_.p=o4.prototype;_.p.reset=function(h){this.value=h&&this.data?this.data.value=h:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.p.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.p.focusTextInput=function(){this.input.focus()};
_.p.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.p.valueChanged=function(){var h,E;if(((h=this.data)==null?0:h.value)||((E=this.data)==null?void 0:E.value)==="")this.value=this.data.value;else{var g;((g=this.data)==null?void 0:g.value)!==void 0||this.value||(this.value="")}};
_.p.computeLabel=function(h,E){return E?"":_.Wp(h)};
_.p.computeAriaLabel=function(h,E){return E?_.Wp(h):""};
_.p.computeErrorMessage=function(h,E,g,Z){!h&&E?h=g||this.strings.REQUIRED_LABEL:(h=_.Wp(Z),h=_.oW(h,"&")?"document"in _.MN?QWH(h):hHf(h):h);return h};
_.p.computeType=function(h){return h==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.p.onTextValueChanged=function(h){this.value=h.detail.value;var E;(E=this.onValueChanged)==null||E.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.p.handleUpdateTextInputFormFieldRendererCommand=function(h){(h=_.e(h,sbB))&&this.data&&this.data.id===h.id&&(h.invalid!==void 0&&(this.invalid=h.invalid),h.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",h.invalidValueErrorMessage))};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("value-changed",this.value))};
_.p.updateInvalidFromBinding=function(h){this.invalid=h.detail.value};
_.ze.Object.defineProperties(o4.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var h;return!((h=this.data)==null||!h.isMultiline)}}});
o4.prototype.valueChangedForBinding=o4.prototype.valueChangedForBinding;o4.prototype.valueChanged=o4.prototype.valueChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],o4.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],o4.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],o4.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],o4.prototype,"value",void 0);_.Y([_.x(),_.V("design:type",String)],o4.prototype,"pattern",void 0);_.Y([_.x(),_.V("design:type",String)],o4.prototype,"errorMessage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],o4.prototype,"componentStyle",void 0);_.Y([_.x(),_.V("design:type",Object)],o4.prototype,"hideCharCounter",void 0);
_.Y([_.x(),_.V("design:type",Object)],o4.prototype,"hideLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],o4.prototype,"noLabelFloat",void 0);_.Y([_.x(),_.V("design:type",Function)],o4.prototype,"onValueChanged",void 0);_.Y([_.x(),_.V("design:type",Boolean)],o4.prototype,"isMultilineOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],o4.prototype,"autoValidate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],o4.prototype,"invalid",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],o4.prototype,"disabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],o4.prototype,"enableOverlayTheme",void 0);_.Y([_.x({value:{REQUIRED_LABEL:_.NH("REQUIRED_LABEL",void 0,"Required")}}),_.V("design:type",Object)],o4.prototype,"strings",void 0);_.Y([_.Sg("#input"),_.V("design:type",Object)],o4.prototype,"input",void 0);
_.Y([_.S("data","isMultilineOverride"),_.V("design:type",Object),_.V("design:paramtypes",[])],o4.prototype,"isMultiline",null);_.Y([_.lq("data.value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],o4.prototype,"valueChanged",null);_.Y([_.Nm("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],o4.prototype,"valueChangedForBinding",null);_.Y([_.yc({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],o4);
_.X(o4,"yt-text-input-form-field-renderer",function(){if(D7A===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;wHm===void 0&&(wHm=document.createElement("template"));var Z=wHm;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);D7A=h}h=D7A;return h},{mode:2});var I4=function(){var h=_.D.apply(this,arguments)||this;h.data=void 0;h.selectionState="START_DATE";h.isStartDateInvalid=!1;h.isEndDateInvalid=!1;h.autoapply=!1;h.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 h};
_.f(I4,_.D);_.p=I4.prototype;_.p.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.p.focus=function(){this.startDateInput.focus()};
_.p.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:jp(this.data.selection.start),end:jp(this.data.selection.end)})};
_.p.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Vk(this.selectionState)}};
_.p.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.p.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.p.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.p.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var h=this.calendar.calendarConfig,E=h.end;h=ueW({start:h.start,end:this.endDate||E},this.startDateInput.value||"");this.isStartDateInvalid=!h.isValid;h.isValid&&(h=h.value,this.selection=this.endDate?{start:h,end:this.endDate}:h,this.calendar.scrollToDate(h));this.updateInvalidState()}};
_.p.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var h=this.calendar.calendarConfig,E=h.start;h=ueW({start:this.startDate||E,end:h.end},this.endDateInput.value||"");this.isEndDateInvalid=!h.isValid;h.isValid&&(h=h.value,this.selection={start:this.startDate,end:h},this.calendar.scrollToDate(h));this.updateInvalidState()}};
_.p.handleCalendarDateClicked=function(h){var E=this.selection&&kMV(this.selection),g=this.selection&&ydu(this.selection);E&&!Lu(h,E)&&this.selectionState==="END_DATE"?(this.selection={start:E,end:h},this.selectionState="START_DATE"):(g&&!Lu(g,h)?this.selection={start:h,end:g}:this.selection=h,this.selectionState="END_DATE")};
_.p.handleCalendarDateMouseDown=function(h){this.selection&&!sQV(this.selection)&&(this.dragPivot=Ua(h,this.selection.start)?this.selection.end:Ua(h,this.selection.end)?this.selection.start:h)};
_.p.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.p.handleCalendarDateMouseEnter=function(h){this.dragPivot&&(this.selection={start:function(E,g){return Lu(E,g)?E:g}(this.dragPivot,h),
end:function(E,g){return Lu(E,g)?g:E}(this.dragPivot,h)},this.dragPivot||(this.selectionState="START_DATE"))};
_.p.handleCalendarDateMouseLeave=function(){};
_.p.handleCalendarSubmitDateRange=function(){this.selection&&!sQV(this.selection)&&_.BX(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.p.updateInvalidState=function(){var h=function(E,g){g?E.setAttribute("invalid",""):E.removeAttribute("invalid")};
h(this.startDateInput,this.isStartDateInvalid);h(this.endDateInput,this.isEndDateInvalid)};
_.p.updateDateStrings=function(){this.selection&&(sQV(this.selection)?YwN(this.selection):(YwN(this.selection.start),YwN(this.selection.end)))};
_.p.updateCalendarSelection=function(h){this.calendar.updateSelection(Object.assign({},h,{selectionState:this.selectionState}))};
_.p.updateIsStartDateInvalidFromBinding=function(h){this.isStartDateInvalid=h.detail.value};
_.p.updateIsEndDateInvalidFromBinding=function(h){this.isEndDateInvalid=h.detail.value};
_.p.updateStartDateStringFromBinding=function(){};
_.p.updateEndDateStringFromBinding=function(){};
_.ze.Object.defineProperties(I4.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:jp(this.data.dateRangeStart),end:jp(this.data.dateRangeEnd),selection:{start:jp(this.data.selection.start),end:jp(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&kMV(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&ydu(this.selection)}}});
I4.prototype.resetTextboxes=I4.prototype.resetTextboxes;I4.prototype.observeSelection=I4.prototype.observeSelection;I4.prototype.dataChanged=I4.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],I4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],I4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#calendar"),_.V("design:type",Object)],I4.prototype,"calendar",void 0);
_.Y([_.Sg("#start-date"),_.V("design:type",Object)],I4.prototype,"startDateInput",void 0);_.Y([_.Sg("#end-date"),_.V("design:type",Object)],I4.prototype,"endDateInput",void 0);_.Y([_.x(),_.V("design:type",Object)],I4.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],I4.prototype,"selection",void 0);_.Y([_.x(),_.V("design:type",String)],I4.prototype,"selectionState",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],I4.prototype,"calendarConfig",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],I4.prototype,"errorMessage",null);_.Y([_.S("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],I4.prototype,"startDate",null);_.Y([_.S("selection"),_.V("design:type",Object),_.V("design:paramtypes",[])],I4.prototype,"endDate",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I4.prototype,"dataChanged",null);
_.Y([_.Nm("selection","selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I4.prototype,"observeSelection",null);_.Y([_.Nm("selectionState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I4.prototype,"resetTextboxes",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],I4);
_.X(I4,"ytd-date-period-picker-renderer",function(){if(tHC!==void 0)return tHC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return tHC=h},{mode:1});var R4=function(){var h=_.D.apply(this,arguments)||this;var E={};h.actionMap=(E["ytd-date-period-picker-apply"]="handleDateRangeUpdated",E);return h};
_.f(R4,_.D);R4.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
R4.prototype.handleDateRangeUpdated=function(){};
_.Y([_.x(),_.V("design:type",Object)],R4.prototype,"data",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],R4.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],R4.prototype,"rendererstamperBehavior",void 0);_.Y([_.K({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],R4);
_.X(R4,"ytd-report-history-section-header-renderer",function(){if(N0f!==void 0)return N0f;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return N0f=h},{mode:1});var lgf;var rqM;var m7m;var PG=function(){return _.D.apply(this,arguments)||this};
_.f(PG,_.D);_.ze.Object.defineProperties(PG.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?0:(E=h.icon)==null?0:E.iconType)?_.CL(this.data.icon.iconType):""}}});
_.Y([_.x(),_.V("design:type",Object)],PG.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],PG.prototype,"icon",null);_.Y([_.K({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],PG);
_.X(PG,"ytd-report-history-table-text-cell-renderer",function(){if(m7m!==void 0)return m7m;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return m7m=h},{mode:1});var BG=function(){return _.D.apply(this,arguments)||this};
_.f(BG,_.D);BG.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BG.prototype,"data",void 0);_.Y([_.K({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],BG);
_.X(BG,"ytd-report-history-table-reason-cell-renderer",function(){if(rqM!==void 0)return rqM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return rqM=h},{mode:1});var UX=function(){return _.D.apply(this,arguments)||this};
_.f(UX,_.D);UX.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"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],UX.prototype,"rendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UX.prototype,"data",void 0);_.Y([_.K({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],UX);
_.X(UX,"ytd-report-history-table-cell-renderer",function(){if(lgf!==void 0)return lgf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return lgf=h},{mode:1});var vvn;var Lj=function(){var h=_.D.apply(this,arguments)||this;h.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 h};
_.f(Lj,_.D);Lj.prototype.onDataChanged=function(){var h;if((h=this.data)==null?0:h.style)this.componentStyle=this.getStyleName(this.data.style)};
Lj.prototype.getCellForColumn=function(h){return this.cells.find(function(E){var g;return((g=_.e(E==null?void 0:E.cell,tbM)||_.e(E==null?void 0:E.cell,Nhl))==null?void 0:g.columnId)===h.type})};
Lj.prototype.getClassForColumn=function(h){switch(h){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Lj.prototype.getStyleName=function(h){switch(h){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ze.Object.defineProperties(Lj.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.cells)||[]).map(function(E){return _.e(E,f4M)})}}});
Lj.prototype.onDataChanged=Lj.prototype.onDataChanged;_.Y([_.x(),_.V("design:type",Object)],Lj.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],Lj.prototype,"columnRenderData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Lj.prototype,"componentStyle",void 0);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],Lj.prototype,"cells",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lj.prototype,"onDataChanged",null);_.Y([_.K({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Lj);
_.X(Lj,"ytd-report-history-table-row-renderer",function(){if(vvn!==void 0)return vvn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vvn=h},{mode:1});var HBD;var $7A;var QQM={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},h4x={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var j4=function(){return _.D.apply(this,arguments)||this};
_.f(j4,_.D);j4.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"}}}}}};
j4.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ze.Object.defineProperties(j4.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.columns)?Wv$(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Zpd(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var h=this.tableSpec,E=QQM;E=E===void 0?h4x:E;E=M$a(h.columnDimensions,h.columnsToShow||[],E);h=0;E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,h+=g.minWidth+g.paddingLeft+g.paddingRight;return h}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.Y([_.t(_.Bv),_.V("design:type",Object)],j4.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],j4.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],j4.prototype,"tableSpec",null);_.Y([_.S("tableSpec"),_.V("design:type",Array),_.V("design:paramtypes",[])],j4.prototype,"columnRenderData",null);
_.Y([_.S("tableSpec"),_.V("design:type",Number),_.V("design:paramtypes",[])],j4.prototype,"totalMinWidth",null);_.Y([_.S("totalMinWidth"),_.V("design:type",String),_.V("design:paramtypes",[])],j4.prototype,"tableWidthStyle",null);_.Y([_.K({is:"ytd-table-renderer",disableElementRegistration:!0})],j4);
_.X(j4,"ytd-table-renderer",function(){if($7A!==void 0)return $7A;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $7A=h},{mode:1});var d8=function(){return _.D.apply(this,arguments)||this};
_.f(d8,_.D);d8.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}}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],d8.prototype,"data",void 0);_.Y([_.K({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],d8);
_.X(d8,"ytd-report-reason-history-modal-renderer",function(){if(HBD!==void 0)return HBD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HBD=h},{mode:1});var K3F;var OBH;var nvM;var Cj=function(){return _.D.apply(this,arguments)||this};
_.f(Cj,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cj.prototype,"data",void 0);_.Y([_.K({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Cj);
_.X(Cj,"ytd-profile-column-stats-entry-renderer",function(){if(nvM!==void 0)return nvM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return nvM=h},{mode:1});var XHD;var JZ=function(){return _.D.apply(this,arguments)||this};
_.f(JZ,_.D);JZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],JZ.prototype,"data",void 0);_.Y([_.K({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],JZ);
_.X(JZ,"ytd-profile-column-stats-renderer",function(){if(XHD!==void 0)return XHD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return XHD=h},{mode:1});var YSf;var e4=function(){return _.D.apply(this,arguments)||this};
_.f(e4,_.D);_.ze.Object.defineProperties(e4.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.useThumbnailSize)return 80;var E,g;h=(E=this.data)==null?void 0:(g=E.thumbnail)==null?void 0:g.thumbnails;var Z;return h&&((Z=h[0])==null?void 0:Z.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.useThumbnailSize)return 80;var E,g;h=(E=this.data)==null?void 0:(g=E.thumbnail)==null?void 0:g.thumbnails;var Z;return h&&((Z=h[0])==null?void 0:Z.height)||80}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],e4.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],e4.prototype,"componentStyle",void 0);_.Y([_.S("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],e4.prototype,"thumbnailWidth",null);
_.Y([_.S("data.useThumbnailSize"),_.V("design:type",Object),_.V("design:paramtypes",[])],e4.prototype,"thumbnailHeight",null);_.Y([_.K({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],e4);
_.X(e4,"ytd-profile-column-user-info-renderer",function(){if(YSf!==void 0)return YSf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return YSf=h},{mode:1});var qz=function(){return _.D.apply(this,arguments)||this};
_.f(qz,_.D);qz.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]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qz.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],qz.prototype,"componentStyle",void 0);_.Y([_.K({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],qz);
_.X(qz,"ytd-profile-column-renderer",function(){if(OBH!==void 0)return OBH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return OBH=h},{mode:1});var fj=function(){var h=_.D.apply(this,arguments)||this;h.componentStyle="NON_CENTERED_PROFILE";return h};
_.f(fj,_.D);fj.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
fj.prototype.getIcon=function(h){return h?"settings:"+h.toLowerCase():null};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fj.prototype,"data",void 0);_.Y([_.K({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],fj);
_.X(fj,"ytd-page-introduction-renderer",function(){if(K3F!==void 0)return K3F;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return K3F=h},{mode:1});var ssm;var Nz=function(){return _.D.apply(this,arguments)||this};
_.f(Nz,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Nz.prototype,"data",void 0);_.Y([_.K({is:"ytd-report-description-renderer",disableElementRegistration:!0})],Nz);
_.X(Nz,"ytd-report-description-renderer",function(){if(ssm!==void 0)return ssm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ssm=h},{mode:1});var VHl;var k0k;var tZ=function(){return _.D.apply(this,arguments)||this};
_.f(tZ,_.D);tZ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tZ.prototype,"data",void 0);_.Y([_.K({is:"ytd-video-report-renderer",disableElementRegistration:!0})],tZ);
_.X(tZ,"ytd-video-report-renderer",function(){if(k0k!==void 0)return k0k;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return k0k=h},{mode:1});var yql;_.$P("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.$P("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var S4=function(){return _.D.apply(this,arguments)||this};
_.f(S4,_.D);S4.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]]"}}}}}};
S4.prototype.computeMessageStyle=function(h){return h};
S4.prototype.computeButtonOverride=function(h){var E;if((h==null?0:(E=h.style)==null?0:E.value)&&h.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],S4.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],S4.prototype,"shelf",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],S4.prototype,"panel",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.V("design:type",Boolean)],S4.prototype,"componentStyle",void 0);_.Y([_.x({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],S4.prototype,"buttonOverride",void 0);_.Y([_.K({is:"ytd-message-renderer",disableElementRegistration:!0})],S4);
_.X(S4,"ytd-message-renderer",function(){if(yql!==void 0)return yql;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return yql=h},{mode:1});var x6=function(){return _.D.apply(this,arguments)||this};
_.f(x6,_.D);x6.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"}}}};
x6.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
x6.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ze.Object.defineProperties(x6.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!(((h=this.data)==null?0:h.header)&&((E=this.data)==null?0:E.table))}}});
x6.prototype.onRequestError=x6.prototype.onRequestError;_.Y([_.t(_.Bv),_.V("design:type",Object)],x6.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],x6.prototype,"data",void 0);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],x6.prototype,"isUnifiedReportHistory",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x6.prototype,"onRequestError",null);_.Y([_.K({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],x6);
_.X(x6,"ytd-report-history-section-renderer",function(){if(VHl!==void 0)return VHl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VHl=h},{mode:1});var F3f;var w8=function(){var h=_.D.apply(this,arguments)||this;h.answerExpanded=!1;return h};
_.f(w8,_.D);w8.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],w8.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w8.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],w8.prototype,"answerExpanded",void 0);_.Y([_.K({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],w8);
_.X(w8,"ytd-handles-claiming-faq-renderer",function(){if(F3f!==void 0)return F3f;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return F3f=h},{mode:1});var Aql;var T0F=function(){return _.D.apply(this,arguments)||this};
_.f(T0F,_.D);_.Y([_.x(),_.V("design:type",Object)],T0F.prototype,"data",void 0);_.Y([_.K({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],T0F);
_.X(T0F,"ytd-handles-claiming-faq-section-renderer",function(){if(Aql!==void 0)return Aql;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Aql=h},{mode:1});var bBl;var D5=function(){var h=_.D.apply(this,arguments)||this;h.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";h.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";h.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";h.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";h.leftSquiggly=h.leftSquigglyLight;h.rightSquiggly=h.rightSquigglyLight;
h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};h.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return h};
_.f(D5,_.D);_.p=D5.prototype;_.p.updateLeftSquigglyStyle=function(){_.Ja(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.p.updateRightSquigglyStyle=function(){_.Ja(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.p.ready=function(){var h=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(h)};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.set("isDarkTheme",h),h?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
D5.prototype.updateRightSquigglyStyle=D5.prototype.updateRightSquigglyStyle;D5.prototype.updateLeftSquigglyStyle=D5.prototype.updateLeftSquigglyStyle;_.Y([_.x(),_.V("design:type",Object)],D5.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],D5.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",String)],D5.prototype,"leftSquiggly",void 0);_.Y([_.x(),_.V("design:type",String)],D5.prototype,"rightSquiggly",void 0);
_.Y([_.Nm("leftSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D5.prototype,"updateLeftSquigglyStyle",null);_.Y([_.Nm("rightSquiggly"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D5.prototype,"updateRightSquigglyStyle",null);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],D5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],D5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],D5.prototype,"actionButtonOverride",void 0);_.Y([_.K({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],D5);
_.X(D5,"ytd-handles-claiming-header-renderer",function(){if(bBl!==void 0)return bBl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return bBl=h},{mode:1});var u7D;var l6=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};h.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";h.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";h.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";h.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
h.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";h.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";h.image0SquigglyBackground=h.image0LightSquigglyBackground;h.image1SquigglyBackground=h.image1LightSquigglyBackground;h.image3SquigglyBackground=h.image3LightSquigglyBackground;return h};
_.f(l6,_.D);_.p=l6.prototype;_.p.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.p.onDataChanged=function(){this.updateTitleAndImages()};
_.p.onThemeChanged=function(){this.updateTitleAndImages()};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.isDarkTheme=h)};
_.p.updateImage0SquigglyBackground=function(){_.Ja(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.p.updateImage1SquigglyBackground=function(){_.Ja(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.p.updateImage3SquigglyBackground=function(){_.Ja(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.p.updateTitleAndImages=function(){var h,E;((h=this.data)==null?void 0:(E=h.titleImages)==null?void 0:E.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))};
l6.prototype.updateImage3SquigglyBackground=l6.prototype.updateImage3SquigglyBackground;l6.prototype.updateImage1SquigglyBackground=l6.prototype.updateImage1SquigglyBackground;l6.prototype.updateImage0SquigglyBackground=l6.prototype.updateImage0SquigglyBackground;l6.prototype.onThemeChanged=l6.prototype.onThemeChanged;l6.prototype.onDataChanged=l6.prototype.onDataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],l6.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],l6.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"title0",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"title1",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"title2",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"title3",void 0);
_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"title4",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"image0",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"image1",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"image2",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"image3",void 0);_.Y([_.x(),_.V("design:type",Object)],l6.prototype,"image4",void 0);_.Y([_.x(),_.V("design:type",String)],l6.prototype,"image0SquigglyBackground",void 0);
_.Y([_.x(),_.V("design:type",String)],l6.prototype,"image1SquigglyBackground",void 0);_.Y([_.x(),_.V("design:type",String)],l6.prototype,"image3SquigglyBackground",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l6.prototype,"onDataChanged",null);_.Y([_.Nm("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l6.prototype,"onThemeChanged",null);
_.Y([_.Nm("image0SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l6.prototype,"updateImage0SquigglyBackground",null);_.Y([_.Nm("image1SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l6.prototype,"updateImage1SquigglyBackground",null);
_.Y([_.Nm("image3SquigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],l6.prototype,"updateImage3SquigglyBackground",null);_.Y([_.K({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],l6);
_.X(l6,"ytd-handles-claiming-title-images-section-renderer",function(){if(u7D!==void 0)return u7D;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return u7D=h},{mode:1});var Qsf;var r8=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(r8,_.D);r8.prototype.ready=function(){var h=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(h)};
r8.prototype.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&this.set("isDarkTheme",h)};
r8.prototype.onCopyButtonClick=function(){var h=this,E,g,Z;return _.a(function(M){return(E=h.data)!=null&&E.primaryChannelUrl?M.yield(navigator.clipboard.writeText(((g=h.data)==null?0:g.encodedChannelUrl)?h.data.encodedChannelUrl:"https://"+_.Wp((Z=h.data)==null?void 0:Z.primaryChannelUrl)),0):M.jumpTo(0)})};
_.Y([_.x(),_.V("design:type",Object)],r8.prototype,"data",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],r8.prototype,"isDarkTheme",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],r8.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.K({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],r8);
_.X(r8,"ytd-handles-claiming-update-social-renderer",function(){if(Qsf!==void 0)return Qsf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Qsf=h},{mode:1});var hxD;var mW=function(){var h=_.D.apply(this,arguments)||this;h.JSC$16043_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";h.JSC$16043_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};h.squigglyBackground=h.JSC$16043_squigglyBackgroundLight;return h};
_.f(mW,_.D);mW.prototype.updateSquigglyBackgroundStyle=function(){_.Ja(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
mW.prototype.ready=function(){var h=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",h);this.squigglyBackground=h?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight};
mW.prototype.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.set("isDarkTheme",h),this.squigglyBackground=h?this.JSC$16043_squigglyBackgroundDark:this.JSC$16043_squigglyBackgroundLight)};
mW.prototype.updateSquigglyBackgroundStyle=mW.prototype.updateSquigglyBackgroundStyle;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mW.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],mW.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mW.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],mW.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",String)],mW.prototype,"squigglyBackground",void 0);_.Y([_.Nm("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mW.prototype,"updateSquigglyBackgroundStyle",null);_.Y([_.K({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],mW);
_.X(mW,"ytd-handles-claiming-vanity-info-renderer",function(){if(hxD!==void 0)return hxD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return hxD=h},{mode:1});var EQH;var vG=function(){var h=_.D.apply(this,arguments)||this;h.JSC$16046_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";h.JSC$16046_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";h.squigglyBackground=h.JSC$16046_squigglyBackgroundLight;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(vG,_.D);_.p=vG.prototype;_.p.ready=function(){var h=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(h)};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.set("isDarkTheme",h),this.squigglyBackground=h?this.JSC$16046_squigglyBackgroundDark:this.JSC$16046_squigglyBackgroundLight)};
_.p.updateSquigglyBackgroundStyle=function(){_.Ja(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.p.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.p.detached=function(){this.stop()};
_.p.stop=function(){this.playerElement.stop()};
_.p.setupVideoPlayer=function(){var h=this,E,g;return _.a(function(Z){E=h.data.videoId;g="http://i1.ytimg.com/vi/"+E+"/maxresdefault.jpg";h.playerElement.loadVideoWithPlayerVars({video_id:E,iurlhq:g});_.SK(Z)})};
vG.prototype.onDataChanged=vG.prototype.onDataChanged;vG.prototype.updateSquigglyBackgroundStyle=vG.prototype.updateSquigglyBackgroundStyle;_.Y([_.x({value:!1}),_.V("design:type",Boolean)],vG.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",String)],vG.prototype,"squigglyBackground",void 0);_.Y([_.Sg("#player"),_.V("design:type",Object)],vG.prototype,"playerElement",void 0);_.Y([_.x(),_.V("design:type",Object)],vG.prototype,"data",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],vG.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.Nm("squigglyBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vG.prototype,"updateSquigglyBackgroundStyle",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vG.prototype,"onDataChanged",null);
_.Y([_.K({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],vG);
_.X(vG,"ytd-handles-claiming-video-item-renderer",function(){if(EQH!==void 0)return EQH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return EQH=h},{mode:1});var gQD;var $6=function(){var h=_.wD.apply(this,arguments)||this;h.dragging=!1;h.dragMouseStart=0;h.dragOffsetStart=0;h.containerWidthDiff=0;h.boundPrevClick=function(){h.set("offset",HG(h,h.offset-(h.scrollDistance||320)))};
h.boundNextClick=function(){h.set("offset",HG(h,h.offset+(h.scrollDistance||320)))};
h.boundScrollContainerMouseDown=function(E){h.dragMouseStart=E.clientX;h.dragOffsetStart=h.offset;h.dragging=!0};
h.boundScrollContainerDrag=function(E){h.dragging&&h.set("offset",HG(h,h.dragOffsetStart-(E.clientX-h.dragMouseStart)))};
h.boundMouseUp=function(){h.onMouseUp()};
h.boundWheelScroll=function(E){var g=0;Math.abs(E.deltaX)>=Math.abs(E.deltaY)?g=E.deltaX:E.shiftKey&&(g=E.deltaY);g!==0&&(h.offset+=g,E.stopPropagation(),E.preventDefault())};
h.boundChipCloudChipScrollIntoView=function(E){(E=E.detail)&&h.scrollChipIntoView(E)};
return h};
_.f($6,_.wD);$6.prototype.attached=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container");h.addEventListener("wheel",this.boundWheelScroll);h.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);h.style.touchAction="pan-y";h.addEventListener("pointerdown",this.boundScrollContainerMouseDown);h.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
$6.prototype.detached=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container");h.removeEventListener("wheel",this.boundWheelScroll);h.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);h.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);h.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
$6.prototype.reset=function(){this.set("offset",0);_.pQ(this,this.setContainerWidthDiff);Kj(this)};
var HG=function(h,E){return Math.min(Math.max(E,0),h.containerWidthDiff)};
$6.prototype.onMouseUp=function(){this.dragging=!1};
$6.prototype.transformContainer=function(){this.offset=HG(this,this.offset);var h=_.nF("HTML_DIR")==="rtl"?"":"-";_.UB(this.hostElement).querySelector("#chips").style.transform="translateX("+h+this.offset+"px)";Kj(this)};
var Kj=function(h){_.pQ(h,h.setButtonsState)};
$6.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=HG(this,this.offset));this.atStart=this.offset<=0};
$6.prototype.setContainerWidthDiff=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container"),E=_.UB(this.hostElement).querySelector("#chips");h&&E&&(this.containerWidthDiff=E.clientWidth-h.clientWidth)};
$6.prototype.scrollChipIntoView=function(h){var E=_.UB(this.hostElement).querySelector("#scroll-container");if(E){var g=this.atStart?0:106,Z=this.atEnd?0:106;h.offsetLeft<this.offset+g?this.offset=HG(this,h.offsetLeft-g):h.offsetLeft+h.clientWidth>this.offset+E.clientWidth-Z&&(this.offset=HG(this,h.offsetLeft+h.clientWidth+Z-E.clientWidth))}};
$6.prototype.transformContainer=$6.prototype.transformContainer;_.Y([_.x({value:0}),_.V("design:type",Number)],$6.prototype,"offset",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],$6.prototype,"atStart",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],$6.prototype,"atEnd",void 0);_.Y([_.x(),_.V("design:type",Number)],$6.prototype,"scrollDistance",void 0);
_.Y([_.Nm("offset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$6.prototype,"transformContainer",null);_.Y([_.DM()],$6);var ZhD;var M2f;var GXF=_.O(function(h){var E=h.data;h=_.G(_.Bm(!1,void 0,"icHmSe"));var g=h.next().value,Z=h.next().value;h={};h=_.CO("ytChipShapeChip",function(){a:switch(E==null?void 0:E().state){case 0:var W="ytChipShapeActive";break a;case 1:W="ytChipShapeDisabled";break a;default:W="ytChipShapeInactive"}return W},function(){var W=E().type===1||E().type===2,z=E();
return W||z!=null&&z.startIcon?z==null||!z.startIcon||z!=null&&z.text?W?"ytChipShapeEndIconPadding":(z==null?0:z.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(h.ytChipShapeFocused=function(){var W;
return g()&&((W=E())==null?void 0:W.state)!==1},h));
var M=function(W){if((E==null?void 0:E().state)!==1){var z,c;(c=(z=E()).onTap)==null||c.call(z,W)}};
return _.R("chip-shape",{class:"ytChipShapeHost","on:focusin":_.J7(function(){var W=_.GF().resolve(_.pl(_.DX));if(W){Z(W.isKeyBoardInUse());var z,c;(c=(z=E()).onFocusIn)==null||c.call(z)}return!1}),
"on:focusout":_.J7(function(){Z(!1);return!1})},_.R(W6D,{shouldWrapInButton:function(){return E().type!==2},
selected:function(){return E().state===0},
onClick:M,isDropdown:function(){return E().type===1},
accessibilityLabel:function(){return E().type===1?void 0:E().accessibilityLabel}},_.R("div",{class:h},_.R(_.P,{cond:function(){return E().startIcon},
then:function(){return _.R(_.Ni,{icon:function(){var W;return(W=E())==null?void 0:W.startIcon},
className:function(){return E().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return E().text},_.R(p7M,{shape:E,
onClick:M}),_.R(_.rK,{model:{borderRadius:"8px"}}))))},"Sb");
GXF.idomCompat=!0;var W6D=_.O(function(h){var E=_.J7(function(g){h.onClick(g);return!1});
return _.R(_.P,{cond:h.shouldWrapInButton,then:function(){return _.R("button",{class:"ytChipShapeButtonReset","on:click":E,role:function(){return h.isDropdown()?"combobox":"tab"},
"aria-label":h.accessibilityLabel,"aria-selected":h.selected},h.children)},
else:function(){return h.children}})},"Tb"),p7M=_.O(function(h){var E=h.shape;
var g=h.onClick;var Z=_.J7(function(M){g(M);return!1});
return _.R(_.DG,null,_.R(_.x3,{when:function(){return E().type===1}},function(){return _.R(_.Ni,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.R(_.x3,{when:function(){return E().type===2}},function(){return _.R("button",{class:"ytChipShapeButtonReset",
"on:click":Z},_.R(_.Ni,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.R(_.x3,{when:function(){return E().type===0}},function(){return _.R(_.zt,null)}))},"Ub");_.I9(GXF,"chip-shape",{props:{data:_.C6}});var OX=function(){var h=_.D.apply(this,arguments)||this;h.disableDeselectEvent=!1;h.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return h};
_.f(OX,_.D);_.p=OX.prototype;_.p.onSelectChipCommand=function(h){if(!this.selected&&this.data&&(h=_.e(h,r2l),h.targetId&&h.targetId===this.data.targetId))this.onTap()};
_.p.onFilterChipTransformCommand=function(h){if(!this.selected&&this.data){var E;(h=(E=_.e(h,N6D))==null?void 0:E.chipUniqueId)&&h===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.p.dataChanged=function(){var h=this;_.pQ(this,function(){h.data&&h.data.isSelected&&!h.selected&&(h.scrollChipIntoView(),h.onTap())})};
_.p.computeChipStyle=function(h){return h!=null?h:"STYLE_DEFAULT"};
_.p.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.BX(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.BX(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.p.onFocus=function(){var h=_.GF().resolve(_.pl(_.DX));h&&h.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.p.scrollChipIntoView=function(){_.Ra(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ze.Object.defineProperties(OX.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ip$({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
OX.prototype.onFocus=OX.prototype.onFocus;OX.prototype.onTap=OX.prototype.onTap;OX.prototype.dataChanged=OX.prototype.dataChanged;_.Y([_.t(_.X3),_.V("design:type",Object)],OX.prototype,"ironButtonState",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],OX.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],OX.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Kf),_.V("design:type",Object)],OX.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OX.prototype,"disableDeselectEvent",void 0);_.Y([_.x(),_.V("design:type",Object)],OX.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.icon"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OX.prototype,"hasIcon",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.uniqueId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OX.prototype,"isGnomeChip",null);_.Y([_.x({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.V("design:type",String)],OX.prototype,"chipStyle",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],OX.prototype,"selected",void 0);
_.Y([_.S("data","selected"),_.V("design:type",Object),_.V("design:paramtypes",[])],OX.prototype,"chipShapeData",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OX.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OX.prototype,"onTap",null);
_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OX.prototype,"onFocus",null);_.Y([_.yc({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],OX);
_.X(OX,"yt-chip-cloud-chip-renderer",function(){if(M2f===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;ZhD===void 0&&(ZhD=document.createElement("template"));var Z=ZhD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);M2f=h}h=M2f;return h},{mode:2});var nj=function(){var h=_.D.apply(this,arguments)||this;h.isDarkTheme=!1;h.notSticky=!1;h.transparentBackground=!1;h.shouldHide=!1;h.disableSticky=!1;h.fluidWidth=!1;h.isClipList=!1;h.defaultChipIndex=0;h.isPlaylist=!1;h.playlistVotingAnimationEnabled=_.J("web_enable_voting_animation");h.toolbarHeight=0;h.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return h};
_.f(nj,_.D);_.p=nj.prototype;
_.p.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.p.attached=function(){var h=this;document.addEventListener("scroll",_.qm(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var E;this.toolbarHeight=((E=document.querySelector("ytd-masthead"))==null?void 0:E.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(g){h.handleIntersect(g)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){h.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){var h;(h=this.intersectionObserver)==null||h.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect();document.removeEventListener("scroll",_.qm(this,this.updateChipBarWidthAndTop))};
_.p.dataChanged=function(){var h=this,E,g,Z;((Z=_.e((E=this.data)==null?void 0:(g=E.contents)==null?void 0:g[0],wtf))==null?void 0:Z.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var M=this.findSelectedChipIndex();this.selectedIndex!==M&&(this.selectedIndex=-1);_.pQ(this,function(){h.selectedIndex=M;h.updating=!1;h.ytScrollableChipCloudBehavior.reset()})};
_.p.findSelectedChipIndex=function(){var h;if((h=this.data)==null||!h.contents)return 0;h=this.data.contents;for(var E=0;E<h.length;E++){var g=void 0;if((g=_.e(h[E],wtf))==null?0:g.isSelected)return E}return 0};
_.p.computeStyle=function(h){return h};
_.p.handleChipCloudChipSelectAction=function(h){h=this.JSC$16067_chipsSelector.indexOf(h);h>-1&&this.JSC$16067_chipsSelector.selectIndex(h)};
_.p.handleChipCloudChipDeselectAction=function(){if(_.J("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],wtf))==null?void 0:g.navigationEndpoint;Z&&_.BX(this.hostElement,"yt-browse-section-list-reload-endpoint",[Z]);this.JSC$16067_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.p.onGuideIsExpandedChanged=function(){var h=this.ytScrollableChipCloudBehavior;_.pQ(h,h.setContainerWidthDiff);Kj(this.ytScrollableChipCloudBehavior)};
_.p.onResize=function(){var h=this.ytScrollableChipCloudBehavior;_.pQ(h,h.setContainerWidthDiff);Kj(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.p.handleIntersect=function(h){this.notSticky=this.isChannelPageGrid||this.disableSticky||h[0].intersectionRatio===1};
_.p.updateDimensions=function(){var h=this.ytRendererBehavior.parentComponent;if(h){var E,g=(E=h.headerElement)!=null?E:h;_.Ja(this.hostElement,{"--ytd-rich-grid-chips-bar-width":g.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.p.updateSelectedIndexFromBinding=function(h){this.selectedIndex=h.detail.value};
_.p.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var h;(h=this.sortFilterHeaderRendererElement)==null||h.setAttribute("is-playlist-page-with-filters","")}};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(j0l(!this.notSticky))};
_.ze.Object.defineProperties(nj.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 h,E,g=(h=this.data)==null?void 0:(E=h.contents)==null?void 0:E.find(function(Z){return _.e(Z,vTM)});
return{sortFilterHeaderRenderer:_.e(g,vTM)}}}});
nj.prototype.dispatchChipBarIsSticky=nj.prototype.dispatchChipBarIsSticky;nj.prototype.isPlaylistPageChanged=nj.prototype.isPlaylistPageChanged;nj.prototype.updateChipBarWidthAndTop=nj.prototype.updateChipBarWidthAndTop;nj.prototype.onResize=nj.prototype.onResize;nj.prototype.onGuideIsExpandedChanged=nj.prototype.onGuideIsExpandedChanged;nj.prototype.dataChanged=nj.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],nj.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],nj.prototype,"ironResizableBehavior",void 0);_.Y([_.t(),_.V("design:type",$6)],nj.prototype,"ytScrollableChipCloudBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],nj.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],nj.prototype,"data",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],nj.prototype,"selectedIndex",void 0);_.Y([_.x({value:320}),_.V("design:type",Number)],nj.prototype,"scrollDistance",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"notSticky",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"transparentBackground",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.V("design:type",String)],nj.prototype,"componentStyle",void 0);_.Y([_.x({selector:_.gm$}),_.V("design:type",Boolean)],nj.prototype,"guideIsExpanded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"shouldHide",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"disableSticky",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"fluidWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"isClipList",void 0);_.Y([_.x(),_.V("design:type",Object)],nj.prototype,"defaultChipIndex",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nj.prototype,"isPlaylist",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],nj.prototype,"playlistVotingAnimationEnabled",void 0);_.Y([_.Sg("#chips"),_.V("design:type",Object)],nj.prototype,"JSC$16067_chipsSelector",void 0);_.Y([_.Sg("ytd-sort-filter-header-renderer"),_.V("design:type",HTMLElement)],nj.prototype,"sortFilterHeaderRendererElement",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],nj.prototype,"updating",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"dataChanged",null);_.Y([_.Nm("guideIsExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"onGuideIsExpandedChanged",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"onResize",null);
_.Y([_.lq("isChannelPageGrid","disableSticky","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"updateChipBarWidthAndTop",null);_.Y([_.S("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],nj.prototype,"isChannelPageGrid",null);_.Y([_.S("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],nj.prototype,"isHashtagLandingPage",null);
_.Y([_.Nm("isPlaylistPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"isPlaylistPageChanged",null);_.Y([_.S("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],nj.prototype,"isPlaylistPage",null);_.Y([_.S("componentStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],nj.prototype,"isDisableDeselectEvent",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],nj.prototype,"sortFilterHeaderRendererData",null);_.Y([_.x({reflectToAttribute:!0,selector:_.aIa}),_.V("design:type",String)],nj.prototype,"frostedGlassMode",void 0);_.Y([_.Nm("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nj.prototype,"dispatchChipBarIsSticky",null);_.Y([_.K({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],nj);
_.X(nj,"ytd-feed-filter-chip-bar-renderer",function(){if(gQD!==void 0)return gQD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return gQD=h},{mode:1});var zxf;var anA=_.O(function(h){var E=h.data;var g=h.buttonIndex;var Z=h.selectedIndex;var M=h.onSelect;var W=function(){return g()===Z()},z=function(){var c,I;
return(I=(c=E().text)==null?void 0:c.content)!=null?I:""};
h=_.acW();return _.R("yt-toggleable-image-button-view-model",{class:function(){var c={};c=(c.toggleableImageButtonViewModelHost=!0,c[""]=!0,c.toggleableImageButtonViewModelSemiTransparent=Z()!==-1&&!W(),c);return _.v3(c)},
tabindex:0,"aria-label":z,"aria-pressed":W,role:"button","on:keydown":h,"on:click":_.J7(function(){M(E().onSubmitCommand);return!1})},_.R(_.P,{cond:function(){return E().logo},
then:function(c){return _.R(_.pO,{data:c,className:function(){var I={};I=(I.toggleableImageButtonViewModelImage=!0,I.toggleableImageButtonViewModelCircularRadius=!(!E().backgroundColor||!E().backgroundColorDarkMode),I.toggleableImageButtonViewModelGradientRing=!!(W()&&E().backgroundColor&&E().backgroundColorDarkMode),I);return _.v3(I)},
alt:z,useWidth:!1,style:function(){if(W()&&E().backgroundColor&&E().backgroundColorDarkMode){var I=QV(Number(E().backgroundColorDarkMode),"1");var B=QV(Number(E().backgroundColor),"1");I="background: linear-gradient(180deg,"+I+","+B+") border-box;"}else I="";return I}})}}),_.R(_.rK,{model:{borderRadius:"16px"}}),_.R("p",{class:function(){var c={};
c=(c.toggleableImageButtonViewModelLabel=!0,c.toggleableImageButtonViewModelBoldText=W(),c);return _.v3(c)}},_.R(_.dK,{text:function(){return E().text}})))},"Vb");
anA.idomCompat=!0;var ihm=_.O(function(h){var E=h.data;h=_.G(_.Bm({index:-1,command:{}},void 0,"GM3umb"));var g=h.next().value,Z=h.next().value;return _.R("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.R("div",{class:"nudgeFormViewModelFormOptions"},_.R(_.Sv,{data:function(){return E().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(M,W){return _.R(anA,{data:M.data,buttonIndex:W,selectedIndex:function(){return g().index},
onSelect:function(z){Z({index:W(),command:z})}})}})),_.R(_.dK,{text:function(){return E().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.R("div",{class:"nudgeFormViewModelSubmit"},_.R(_.Sv,{data:function(){return E().submitButton}},{buttonViewModel:function(M){return _.R(cFM,{data:M.data,
isDisabled:function(){return g().index===-1},
onClick:function(){_.Tl(g().command)}})}})))},"Wb");
ihm.idomCompat=!0;var cFM=_.O(function(h){var E=_.Cw(function(){return Object.assign({},h.data(),{state:h.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.R(_.$l,{data:E,onClick:h.onClick})},"Xb");_.I9(ihm,"yt-nudge-form-view-model",{props:{data:_.C6}});var X4=function(){var h=_.D.apply(this,arguments)||this;h.roundedContainer=!0;h.buttonUpdate=_.J("web_modern_buttons");h.isDarkMode=!1;h.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return h};
_.f(X4,_.D);_.p=X4.prototype;_.p.computeNudgeStyle=function(h){return h?"modernized-nudge":""};
_.p.handleDarkModeToggledAction=function(h){this.isDarkMode=h};
_.p.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.p.computeIsHorizontalButtons=function(h){return h?!!h.applyModernizedStyle&&!!h.enableHorizontalButtons&&!!h.secondaryButton:!1};
_.ze.Object.defineProperties(X4.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.data)==null?void 0:h.backgroundStyle)!=null?E:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.data)==null?void 0:h.contentsLocation)!=null?E:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null?0:h.lightIconImage)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],X4.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],X4.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("isHideEnclosingAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],X4.prototype,"isHidden",null);_.Y([_.x(),_.V("design:type",Object)],X4.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],X4.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],X4.prototype,"buttonUpdate",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.V("design:type",String)],X4.prototype,"nudgeStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.trimStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],X4.prototype,"trimStyle",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.backgroundStyle"),_.V("design:type",String),_.V("design:paramtypes",[])],X4.prototype,"backgroundStyle",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.contentsLocation"),_.V("design:type",String),_.V("design:paramtypes",[])],X4.prototype,"contentsLocation",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.disableDropShadow"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],X4.prototype,"noShadow",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.lightIconImage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],X4.prototype,"noIcon",null);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.V("design:type",Boolean)],X4.prototype,"isHorizontalButtons",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],X4.prototype,"isDarkMode",void 0);_.Y([_.K({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],X4);
_.X(X4,"ytd-feed-nudge-renderer",function(){if(zxf!==void 0)return zxf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zxf=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var oQM;var Inm;var Y6=function(){var h=_.D.apply(this,arguments)||this;h.collapsed=!1;h.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return h};
_.f(Y6,_.D);Y6.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"}}}};
Y6.prototype.handleRatingSelect=function(){var h;((h=this.data)==null?0:h.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Y6.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Y6.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Y6.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.iL),_.V("design:type",Object)],Y6.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Y6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Y6.prototype,"collapsed",void 0);_.Y([_.K({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Y6);
_.X(Y6,"ytd-slimline-survey-renderer",function(){if(Inm!==void 0)return Inm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Inm=h},{mode:1});var Rxk;var sX=function(){return _.D.apply(this,arguments)||this};
_.f(sX,_.D);sX.prototype.maybeGetBackgroundColor=function(h){return this.isDarkMode?h.section2Color:h.section3Color};
sX.prototype.colorPaletteChanged=function(){var h=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;h&&(h==null?0:h.secondaryTitleColor)&&this.maybeGetBackgroundColor(h)?(this.hostElement.style.backgroundColor=_.bU(this.maybeGetBackgroundColor(h)),this.hostElement.style.color=_.bU(h.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
sX.prototype.colorPaletteChanged=sX.prototype.colorPaletteChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],sX.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sX.prototype,"data",void 0);_.Y([_.x({selector:function(h){return h.ui.darkModeIsEnabled}}),
_.V("design:type",Boolean)],sX.prototype,"isDarkMode",void 0);_.Y([_.x(),_.V("design:type",Object)],sX.prototype,"lightColorPalette",void 0);_.Y([_.x(),_.V("design:type",Object)],sX.prototype,"darkColorPalette",void 0);_.Y([_.Nm("darkColorPalette","lightColorPalette","data","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sX.prototype,"colorPaletteChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],sX);
_.X(sX,"ytd-endorsement-header-renderer",function(){if(Rxk!==void 0)return Rxk;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Rxk=h},{mode:1});_.I9(_.W0,"yt-decorated-avatar-view-model",{props:{data:_.C6,className:_.C6}});_.Vr=new _.Ps("VIEW_TRANSITION_MANAGER_TOKEN");var k6=function(){var h=_.D.apply(this,arguments)||this;h.fullHeight=_.J("web_rich_grid_media_full_height");h.showChannelAvatar=!0;h.hasPlaylistThumbnail=!1;h.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};h.registerThumbnailForPageTransition=function(){_.J("web_thumbnail_to_watch_transition")&&_.PRf(_.GF().resolve(_.Vr),h.thumbnail)};
return h};
_.f(k6,_.D);_.p=k6.prototype;
_.p.configureRendererStamper=function(){return{lazyLoadMenu:su,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.shouldLazyLoadMenu=function(){var h=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.J("kevlar_modern_downloads_page")||!h};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16092_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.JSC$16092_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.p.getVideoPreviewOpts=function(){var h={},E;if((E=this.data)==null?0:E.multipleInlinePlaybackEndpoint)h=M$M;this.isRadio&&(h=ZpD);return h};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$16092_inlinePreviewHoverListener)==null||hN(h)};
_.p.getOwner=function(){var h,E,g;return((h=this.data)==null?void 0:(E=h.channelThumbnailSupportedRenderers)==null?void 0:E.channelThumbnailWithLinkRenderer)||_.e((g=this.data)==null?void 0:g.showProviderChannelThumbnail,$gm)};
_.p.updateLockupSize=function(){var h;((h=this.getOwner())==null?0:h.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.p.getFeedbackEndpoint=function(h){if(_.e(h,_.rE))return h;var E,g;h=(g=(E=_.e(h,_.CZ))==null?void 0:E.commands)!=null?g:[];E=_.G(h);for(g=E.next();!g.done;g=E.next())if(g=this.getFeedbackEndpoint(g.value))return g;return null};
_.p.computeNavigationEndpoint=function(h){return zR$(h==null?void 0:h.navigationEndpoint)};
_.p.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var h=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(h)!==JSON.stringify(this.data)&&this.set("data",h)}};
_.p.onDataChanged=function(){var h=this,E=this.getOwner();if(E){this.set("data.owner",E);var g,Z,M,W,z,c=((g=this.data)==null?void 0:(Z=g.shortBylineText)==null?void 0:(M=Z.runs)==null?void 0:(W=M[0])==null?void 0:W.text)||((z=E.name)==null?void 0:z.simpleText);this.set("data.owner.title",c)}var I,B,U,L,d,C;E=((I=this.data)==null?void 0:(B=I.thumbnailRenderer)==null?void 0:B.playlistVideoThumbnailRenderer)||((U=this.data)==null?void 0:(L=U.thumbnailRenderer)==null?void 0:L.playlistCustomThumbnailRenderer)||
((d=this.data)==null?void 0:(C=d.thumbnailRenderer)==null?void 0:C.showCustomThumbnailRenderer);var q;((q=this.data)==null?0:q.thumbnail)||!E||this.set("data.thumbnail",E.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){h.updateLockupSize()});
var w;if(I=((w=this.data)==null?void 0:w.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(I);var r;((r=this.dismissActionToReplayEntity)==null?0:r.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.p.onHiddenChanged=function(){this.updateLockupSize()};
_.p.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.BX(this.hostElement,"yt-terminate-video-preview-action");else{var h;(h=this.videoTitleLink)==null||h.focus()}};
_.p.metadataColorChanged=function(){var h;if(this.metadataColor&&((h=this.videoTitle)==null?0:h.style))this.videoTitle.style.color=_.bU(this.metadataColor);else{var E,g;!this.metadataColor&&((E=this.videoTitle)==null?0:(g=E.style)==null?0:g.color)&&(this.videoTitle.style.color="")}};
_.p.onDetailsClick=function(h){var E=this.computedNavigationEndpoint;E&&(_.MI(_.Gw(h),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Ra(this.hostElement,"yt-navigate",{endpoint:E}))};
_.p.onRendererTap=function(){this.registerThumbnailForPageTransition();var h,E,g=((h=this.data)==null?void 0:h.serviceEndpoint)||this.getFeedbackEndpoint((E=this.data)==null?void 0:E.navigationEndpoint);g&&_.e(g,_.rE)&&this.ytComponentBehavior.resolveCommand(g)};
_.p.onMouseDown=function(h){var E=h.target,g=this.computedNavigationEndpoint,Z;h=E.href||((Z=_.e(g==null?void 0:g.commandMetadata,_.qH))==null?void 0:Z.url);Z=E.data||g;h&&Z&&usZ(h,Z)};
_.p.computeVideoTitleText=function(){var h;if((h=this.data)==null?0:h.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.p.computeHasPlaylistThumbnail=function(h){var E,g,Z,M,W;if((((E=h.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((g=h.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer)||((Z=h.thumbnailRenderer)==null?0:Z.showCustomThumbnailRenderer)||((M=h.thumbnailRenderer)==null?0:M.playlistVideoThumbnailRenderer)||((W=h.thumbnailRenderer)==null?0:W.playlistCustomThumbnailRenderer))&&h.thumbnailOverlays)for(E=0;E<h.thumbnailOverlays.length;E++)if(g=void 0,(g=h.thumbnailOverlays[E])==
null?0:g.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ze.Object.defineProperties(k6.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.J("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var h;return(h=this.data)==null?void 0:h.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var h;return(h=this.data)==null?void 0:h.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$16092_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.lwa(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.videoId)||((E=this.data)==null?void 0:E.playlistId)||""}}});
k6.prototype.onMouseDown=k6.prototype.onMouseDown;k6.prototype.metadataColorChanged=k6.prototype.metadataColorChanged;k6.prototype.onIsDismissedChanged=k6.prototype.onIsDismissedChanged;k6.prototype.onHiddenChanged=k6.prototype.onHiddenChanged;k6.prototype.onDataChanged=k6.prototype.onDataChanged;k6.prototype.handleReloadDownloadsInfo=k6.prototype.handleReloadDownloadsInfo;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],k6.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],k6.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],k6.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],k6.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],k6.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],k6.prototype,"entitySelectorType",void 0);_.Y([_.x(),_.V("design:type",Boolean)],k6.prototype,"noEndpoints",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],k6.prototype,"isRadio",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],k6.prototype,"miniMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],k6.prototype,"fullHeight",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],k6.prototype,"showDarkVideoMetadata",void 0);_.Y([_.x(),_.V("design:type",Boolean)],k6.prototype,"showLightVideoMetadata",void 0);_.Y([_.x(),_.V("design:type",Number)],k6.prototype,"metadataColor",void 0);_.Y([_.x(),_.V("design:type",Object)],k6.prototype,"showChannelAvatar",void 0);_.Y([_.x(),_.V("design:type",Boolean)],k6.prototype,"hidden",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],k6.prototype,"showYtInteraction",void 0);
_.Y([_.x(),_.V("design:type",String)],k6.prototype,"dismissedContentId",void 0);_.Y([_.x({selectorArgs:["dismissedContentId"],selector:o0M}),_.V("design:type",Object)],k6.prototype,"dismissActionToReplayEntity",void 0);
_.Y([_.x({selectorArgs:["entitySelectorType","mediaId"],selector:function(h,E,g){if(_.J("kevlar_modern_downloads_page")&&g&&E&&E!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var Z=IIu(h,g);if(Z){E=_.y7(h,g);var M=Aj(h,g),W=fId(h,g);h=Ty(h,g);var z=p4M(Z,E,M,W);M=z.shortViewCountText;var c=z.publishedTimeText;z=z.badges;var I=h>0;W=M1u(Z,E,W,h);Z=_.D$(E)||E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!wZ(Z.policyEntity)?
void 0:pkz(g,h,Z.videoEntity.lengthSeconds);E==="TRANSFER_STATE_PAUSED_BY_USER"&&g&&!_.J("dl_resume_click_killswitch")&&(Z={offlineVideoEndpoint:{videoId:g,action:"ACTION_RESUME"}});g={shortViewCountText:M,publishedTimeText:c,badges:z,isWatched:I,navigationEndpoint:Z,thumbnailOverlays:W}}else g=void 0;return g;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(E=RFV(h,g))if(Z=_.FM(h,g),W=_.Pc$(h,g),Z!=="TRANSFER_STATE_UNKNOWN"){g=Wa4(E,Z,W,g,_.k8(h));break a}g=void 0}return g;default:_.O$(new _.xX("Error: entitySelectorType defined but not matched in selector.",
h,E))}}}),
_.V("design:type",Object)],k6.prototype,"entityDrivenState",void 0);_.Y([_.x({computed:"computeVideoTitleText(data)"}),_.V("design:type",Object)],k6.prototype,"videoTitleText",void 0);_.Y([_.x({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],k6.prototype,"hasPlaylistThumbnail",void 0);_.Y([_.x({computed:"computeNavigationEndpoint(data)"}),_.V("design:type",Object)],k6.prototype,"computedNavigationEndpoint",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],k6.prototype,"typographyBump",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("typographyBump"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],k6.prototype,"typographyBumpV2",null);_.Y([_.Sg("#video-title"),_.V("design:type",HTMLElement)],k6.prototype,"videoTitle",void 0);_.Y([_.Sg("#video-title-link"),_.V("design:type",HTMLElement)],k6.prototype,"videoTitleLink",void 0);
_.Y([_.Sg("#thumbnail"),_.V("design:type",HTMLElement)],k6.prototype,"thumbnail",void 0);_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],k6.prototype,"JSC$16092_dismissibleMedia",void 0);_.Y([_.S("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],k6.prototype,"lazyLoadMenu",null);_.Y([_.S("data.menu"),_.V("design:type",Object),_.V("design:paramtypes",[])],k6.prototype,"immediateLoadMenu",null);
_.Y([_.lq("entityDrivenState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"handleReloadDownloadsInfo",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"onDataChanged",null);_.Y([_.lq("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"onHiddenChanged",null);
_.Y([_.Nm("isDismissed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"onIsDismissedChanged",null);_.Y([_.Nm("metadataColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k6.prototype,"metadataColorChanged",null);_.Y([_.f3("mousedown"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],k6.prototype,"onMouseDown",null);
_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],k6.prototype,"isHovered",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],k6.prototype,"useAvatar",null);_.Y([_.S("data","entitySelectorType"),_.V("design:type",String),_.V("design:paramtypes",[])],k6.prototype,"mediaId",null);_.Y([_.K({is:"ytd-rich-grid-media",disableElementRegistration:!0})],k6);
var B7f=_.BK()(k6,"ytd-rich-grid-media",function(){if(oQM!==void 0)return oQM;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return oQM=h},{mode:_.UQ("kevlar_poly_si_batch_j072")?1:2});var UkB;var yr=function(){var h=_.D.apply(this,arguments)||this;h.removeMaxWidth=!0;h.insetMetadata=!1;return h};
_.f(yr,_.D);_.p=yr.prototype;_.p.configureRendererStamper=function(){return{innerMenu:su,outerMenu:Object.assign({},su,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onDataChanged=function(){var h,E=((h=this.data)==null?void 0:h.trackingParams)||"";E&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E));var g;((g=this.dismissActionToReplayEntity)==null?0:g.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16097_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.JSC$16097_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:WvB})};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$16097_inlinePreviewHoverListener)==null||hN(h)};
_.p.onRendererTap=function(){var h,E,g=(h=this.data)==null?void 0:(E=h.serviceEndpoints)==null?void 0:E[0];_.e(g,_.rE)&&this.componentBehavior.resolveCommand(g)};
_.p.onDetailsClick=function(h){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;g&&(_.MI(_.Gw(h),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(g))};
_.p.onShow=function(){var h=this.data;h.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(h.onFirstVisibleCommand),delete h.onFirstVisibleCommand)};
_.ze.Object.defineProperties(yr.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var h;return this.insetMetadata?void 0:(h=this.data)==null?void 0:h.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var h;return this.insetMetadata?(h=this.data)==null?void 0:h.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var h=this.data;if(h!=null&&h.badge&&(h=_.e(h.badge,etM))){var E,g,Z;return[{metadataBadgeRenderer:{label:((E=h.label)==null?void 0:(g=E.runs)==null?void 0:g[0].text)||((Z=h.label)==null?void 0:Z.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var h=this.data;return Object.assign({},h.headline,{accessibility:h.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return this.isSlimShort?(h=this.computedTitle)==null?void 0:(E=h.accessibility)==null?void 0:(g=E.accessibilityData)==null?void 0:g.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.J("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$16097_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
yr.prototype.onDataChanged=yr.prototype.onDataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],yr.prototype,"componentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yr.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],yr.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yr.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.iL),_.V("design:type",Object)],yr.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],yr.prototype,"ytdReduxBehavior",void 0);_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],yr.prototype,"thumbnail",void 0);_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],yr.prototype,"JSC$16097_dismissibleMedia",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],yr.prototype,"removeMaxWidth",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],yr.prototype,"insetMetadata",void 0);_.Y([_.x(),_.V("design:type",String)],yr.prototype,"dismissedContentId",void 0);_.Y([_.x({selectorArgs:["dismissedContentId"],selector:o0M}),_.V("design:type",Object)],yr.prototype,"dismissActionToReplayEntity",void 0);_.Y([_.S("insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"thumbnailObjectFit",null);
_.Y([_.S("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"innerMenu",null);_.Y([_.S("data","insetMetadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"outerMenu",null);_.Y([_.x(),_.V("design:type",Object)],yr.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],yr.prototype,"miniMode",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yr.prototype,"onDataChanged",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"shortsBadges",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yr.prototype,"isShort",null);
_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yr.prototype,"isSlimShort",null);_.Y([_.S("data","isShort"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"computedTitle",null);_.Y([_.S("isSlimShort","computedTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],yr.prototype,"computedAccessibilityLabel",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yr.prototype,"shouldForce2By3",null);_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yr.prototype,"isHovered",null);_.Y([_.K({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],yr);
_.X(yr,"ytd-rich-grid-slim-media",function(){if(UkB!==void 0)return UkB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UkB=h},{mode:_.UQ("kevlar_poly_si_batch_j063")?1:2});var L6H;var j7k;var F4=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(F4,_.D);F4.prototype.computeIcon=function(h){return h&&h.iconType?"yt-sys-icons:"+h.iconType.toLowerCase():""};
F4.prototype.onMouseEnter=function(){this.isHovered=!0};
F4.prototype.onMouseLeave=function(){this.isHovered=!1};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],F4.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],F4.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],F4.prototype,"isHovered",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],F4.prototype,"darkerDarkTheme",void 0);_.Y([_.K({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],F4);
_.X(F4,"ytd-expand-on-hover-card-renderer",function(){if(j7k!==void 0)return j7k;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return j7k=h},{mode:1});var dkD,CRn=function(){if(dkD!==void 0)return dkD;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return dkD=h};_.$P("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var AZ=function(){var h=_.D.apply(this,arguments)||this;h.compactStyle=!1;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(AZ,_.D);_.p=AZ.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.computeHideDot=function(h){return!(h&&h.subscriberCountText&&h.videoCountText)||this.compactStyle};
_.p.hasDualButtons=function(h){return h&&h.purchaseButton&&h.subscribeButton};
_.p.backgroundColorChanged=function(){if(this.data!==void 0){var h=this.data.backgroundColor;this.isDarkTheme&&(h=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=h!=null?_.bU(h):"transparent"}};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.onTap=function(h){var E,g,Z=((E=this.data)==null?void 0:E.navigationEndpoint)||((g=this.data)==null?void 0:g.serviceEndpoint);_.e(Z,_.Ea)&&(Z&&_.GF().resolve(_.zF).resolveCommand(Z,{form:{element:this.hostElement}}),h.preventDefault())};
_.p.computeChannelEndpoint=function(h){return _.e(h,_.Ea)?null:h};
_.p.computeHrefEndpoint=function(h){return _.e(h,_.Ea)?null:this.componentBehavior.computeHref_(h)};
_.p.computeChannelRendererStyle=function(h){return h};
_.p.computeIconSize=function(h){return h?108:136};
_.ze.Object.defineProperties(AZ,{template:{configurable:!0,enumerable:!0,get:function(){return CRn()}}});
AZ.prototype.backgroundColorChanged=AZ.prototype.backgroundColorChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],AZ.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],AZ.prototype,"componentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],AZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],AZ.prototype,"isDarkTheme",void 0);_.Y([_.x({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.V("design:type",String)],AZ.prototype,"channelRendererStyle",void 0);_.Y([_.x({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],AZ.prototype,"dualButtons",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],AZ.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],AZ.prototype,"biggerThumbStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],AZ.prototype,"compactStyle",void 0);_.Y([_.Nm("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],AZ.prototype,"backgroundColorChanged",null);_.Y([_.K({is:"ytd-channel-renderer",disableElementRegistration:!0})],AZ);_.X(AZ,"ytd-channel-renderer",function(){return CRn()},{mode:1});var JFM;var exl;_.$P("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var TS=function(){var h=_.D.apply(this,arguments)||this;h.displayItemCount=2;h.collections=_.J("web_modern_collections_v2");h.hasPlaylistThumbnail=!1;h.stackThumbnailSize="large";return h};
_.f(TS,_.D);_.p=TS.prototype;_.p.attached=function(){this.updateInlinePreviewHoverListeners()};
_.p.detached=function(){this.clearInlinePreviewHoverListeners()};
_.p.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.p.computeFirstVideos=function(h,E){return h&&E?h.slice(0,E):[]};
_.p.computeThumbnailWidth=function(h,E){return h?E==="BIG"?500:E==="MASSIVE"?600:E==="MEDIUM"?450:420:360};
_.p.computeThumbnailHeight=function(h,E){return h?E==="BIG"?280:E==="MASSIVE"?337:234:202};
_.p.clearInlinePreviewHoverListeners=function(){var h;(h=this.JSC$16110_inlinePreviewHoverListener)==null||hN(h)};
_.p.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16110_inlinePreviewHoverListener=Yx({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:M$M,thumbnailElement:this.thumbnail})};
_.p.computeHasPlaylistThumbnail=function(h){var E,g;if((((E=h.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((g=h.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&h.thumbnailOverlays)for(E=0;E<h.thumbnailOverlays.length;E++)if(g=void 0,(g=h.thumbnailOverlays[E])==null?0:g.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ze.Object.defineProperties(TS.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.JSC$16110_inlinePreviewHoverListener)==null?0:a_(h))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TS.prototype.dataChanged=TS.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],TS.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],TS.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],TS.prototype,"displayItemCount",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],TS.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],TS.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],TS.prototype,"collections",void 0);_.Y([_.x({computed:"computeHasPlaylistThumbnail(data)"}),_.V("design:type",Object)],TS.prototype,"hasPlaylistThumbnail",void 0);_.Y([_.x(),_.V("design:type",String)],TS.prototype,"stackThumbnailSize",void 0);_.Y([_.Sg("ytd-thumbnail"),_.V("design:type",HTMLElement)],TS.prototype,"thumbnail",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TS.prototype,"dataChanged",null);_.Y([_.S("lockupIsHovered"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],TS.prototype,"isHovered",null);_.Y([_.K({is:"ytd-radio-renderer",disableElementRegistration:!0})],TS);
_.X(TS,"ytd-radio-renderer",function(){if(exl!==void 0)return exl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return exl=h},{mode:_.UQ("kevlar_poly_si_batch_j058")?1:2});var qnn;_.$P("itemSectionRenderer","showRenderer","ytd-show-renderer");var b6=function(){return _.D.apply(this,arguments)||this};
_.f(b6,_.D);b6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
b6.prototype.computeThumbnailWidth=function(h){return h?360:246};
b6.prototype.computeUseProminentThumbs=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],b6.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],b6.prototype,"isSearch",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.V("design:type",Boolean)],b6.prototype,"useProminentThumbs",void 0);_.Y([_.K({is:"ytd-show-renderer",disableElementRegistration:!0})],b6);
_.X(b6,"ytd-show-renderer",function(){if(qnn!==void 0)return qnn;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return qnn=h},{mode:1});_.$P("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var u6=function(){var h=_.D.apply(this,arguments)||this;h.isRichGrid=!1;return h};
_.f(u6,_.D);u6.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"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],u6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],u6.prototype,"isRichGrid",void 0);_.Y([_.K({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],u6);
_.X(u6,"ytd-feed-entry-renderer",function(){if(JFM!==void 0)return JFM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return JFM=h},{mode:1});var fnk;var Qr=function(){return _.D.apply(this,arguments)||this};
_.f(Qr,_.D);Qr.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.Y([_.t(_.aF),_.V("design:type",Object)],Qr.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qr.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Qr.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qr.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Y8,value:3}),_.V("design:type",Number)],Qr.prototype,"itemsPerRow",void 0);
_.Y([_.K({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Qr);
_.X(Qr,"ytd-link-card-renderer",function(){if(fnk!==void 0)return fnk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fnk=h},{mode:1});var N7f;var h3=function(){return _.D.apply(this,arguments)||this};
_.f(h3,_.D);_.p=h3.prototype;_.p.configureRendererStamper=function(){return{"data.menu":su,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.p.onRendererTap=function(h){if(!this.ytdDismissibleItemBehavior.isDismissed){var E,g=(E=this.data)==null?void 0:E.navigationEndpoint;g&&!_.MI(_.Gw(h),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(g)?_.MI(_.Gw(h),this.hostElement,["A"])||_.Ra(this.hostElement,"yt-navigate",{endpoint:g}):this.ytComponentBehavior.resolveCommand(g,{}))}};
_.p.maybeComputeHref=function(h){return this.ytComponentBehavior.computeHref_(h,!0)};
_.p.getNavigationCommand=function(h){return this.isNavigationCommand(h)?h:null};
_.p.isNavigationCommand=function(h){return h?_.e(h,_.tk)||_.e(h,_.MH)||_.e(h,_.yX)?!0:!1:!1};
h3.prototype.onRendererTap=h3.prototype.onRendererTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],h3.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],h3.prototype,"data",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],h3.prototype,"onRendererTap",null);_.Y([_.K({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],h3);
_.X(h3,"ytd-lumiere-promo-item-image-renderer",function(){if(N7f!==void 0)return N7f;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return N7f=h},{mode:1});var t2C;var Ei=function(){return _.D.apply(this,arguments)||this};
_.f(Ei,_.D);Ei.prototype.computeLandscapeThumbnail=function(){var h;return((h=this.data)==null?void 0:h.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Ei.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ei.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],Ei.prototype,"miniMode",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Y8}),_.V("design:type",Number)],Ei.prototype,"itemsPerRow",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.V("design:type",Boolean)],Ei.prototype,"landscapeThumbnail",void 0);_.Y([_.K({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Ei);
_.X(Ei,"ytd-lumiere-shelf-details-renderer",function(){if(t2C!==void 0)return t2C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return t2C=h},{mode:_.UQ("kevlar_poly_si_batch_j076")?1:2});var Snk;var gL=function(){return _.D.apply(this,arguments)||this};
_.f(gL,_.D);gL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],gL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gL.prototype,"data",void 0);_.Y([_.K({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],gL);
_.X(gL,"ytd-primetime-promo-details-renderer",function(){if(Snk!==void 0)return Snk;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Snk=h},{mode:1});var xkD;var ZS=function(){return _.D.apply(this,arguments)||this};
_.f(ZS,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZS.prototype,"data",void 0);_.Y([_.K({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],ZS);
_.X(ZS,"ytd-panel-show-style-metadata-renderer",function(){if(xkD!==void 0)return xkD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return xkD=h},{mode:1});var w7B;var MS=function(){return _.D.apply(this,arguments)||this};
_.f(MS,_.D);_.p=MS.prototype;_.p.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.p.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.p.computeThumbnail=function(h){if(h)return h.smallFormFactorBackgroundThumbnail||h.largeFormFactorBackgroundThumbnail};
_.p.maybeComputeHref=function(h){return this.ytComponentBehavior.computeHref_(h,!0)};
_.p.isNavigationCommand=function(h){return h?_.e(h,_.tk)||_.e(h,_.MH)||_.e(h,_.yX)?!0:!1:!1};
_.p.getNavigationCommand=function(h){return this.isNavigationCommand(h)?h:null};
MS.prototype.onPanelTap=MS.prototype.onPanelTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],MS.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MS.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],MS.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0,value:_.J("web_modern_buttons")}),_.V("design:type",Boolean)],MS.prototype,"modernButtons",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MS.prototype,"onPanelTap",null);_.Y([_.K({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],MS);
_.X(MS,"ytd-primetime-promo-panel-renderer",function(){if(w7B!==void 0)return w7B;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return w7B=h},{mode:1});_.I9(_.O(function(h){h=_.au(h,{data:{},useFullWidth:!1});var E=h.data,g=h.useFullWidth;h={};return _.R("teaser-card-view-model",{class:_.CO("ytTeaserCardViewModelHost",(h.ytTeaserCardViewModelUseFullWidth=function(){return g()},h))},_.R(_.P,{cond:function(){return E().onTap},
then:function(Z){return _.R(_.lk,{className:"ytTeaserCardViewModelLink",command:Z},_.R("div",{class:"ytTeaserCardViewModelImageContainer"},_.R(_.P,{cond:function(){return E().image},
then:function(M){return _.R(_.pO,{data:M,className:"ytTeaserCardViewModelImage",alt:""})}})),_.R("p",{class:"ytTeaserCardViewModelCaption"},function(){return E().caption}))}}))},"Yb"),"teaser-card-view-model",{props:{data:_.C6,
useFullWidth:_.C6}});var DkM=new _.Ps("RICH_GRID_VIDEO_RENDERER_TOKEN");_.I9(_.O(function(h){var E=h.data;var g=h.showYtInteractionInContent;var Z=function(){return!!E().selectableFeedback};
h=_.G(_.Bm(!1,void 0,"qxtgaf"));var M=h.next().value,W=h.next().value;_.vJ(function(){var d=_.e(E().primaryButton,_.Ix);(d==null?0:d.isToggled)&&W(d.isToggled)});
h=_.J7(function(d){if(!Z())return!1;if(M()){var C;var q=(C=E().selectableFeedback)==null?void 0:C.onDeselect}else{var w;q=(w=E().selectableFeedback)==null?void 0:w.onSelect}q&&_.Tl(q,{form:{element:d.target}});W(!M());if(d=_.e(E().primaryButton,_.Ix))d.isToggled=M();return!1});
var z=function(){if(!Z()){var d,C=(d=E().loggingDirectives)==null?void 0:d.trackingParams;C&&_.KC(_.GF().resolve(_.gP),C)}},c=_.cGV(),I=function(){var d;
return Z()?(d=E().selectableFeedback)==null?void 0:d.a11yLabel:void 0},B=function(){return Z()?{toggled:M()}:{}},U=_.GF().resolve(_.pl(DkM)),L={};
return _.R("yt-feedback-item-renderer",{class:_.CO("ytFeedbackItemRendererHost",(L.ytFeedbackItemRendererSelectableFeedback=Z,L)),"on:click":h,"on:keydown":c,title:I,"aria-label":I,"aria-pressed":function(){return Z()?M():void 0},
tabindex:function(){return Z()?0:void 0},
role:function(){return Z()?"button":void 0}},_.R("div",{class:"ytFeedbackItemRendererContentContainer"},_.R(_.Sv,{data:function(){return E().content}},{videoRenderer:function(d){return _.R(U,{data:d.data,
showYtInteraction:g})},
lockupViewModel:function(d){return _.R(_.H0,{data:d.data,containerType:2})}})),_.R("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.R(_.Sv,{data:function(){return E().primaryButton}},{toggleButtonViewModel:function(d){return _.R(_.Z7,{data:d.data,
buttonShapeOverrides:B,disableExplicitClickLogging:!0,onToggle:z})}})))},"Zb"),"yt-feedback-item-renderer",{props:{data:_.C6,
showYtInteractionInContent:_.C6}});var W1=function(){var h=_.D.apply(this,arguments)||this;h.isShortsGrid=!1;h.isCompactGrid=!1;h.isShortsPanelGrid=!1;h.renderedFromRichGrid=!1;h.isInFirstColumn=!1;h.noGutterMargins=!1;h.noBottomMargin=!1;h.halfBottomMargin=!1;h.isInlineGroupItem=!1;h.insetMetadata=!1;h.noBottomMarginInAds=!0;h.force16By9ThumbnailAspectRatio=!1;h.useCompactList=!1;h.containerType=2;h.thumbnailTargetWidth=9999;h.isResponsiveGrid=!1;h.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};h.hoverListener=
h.hover.bind(h);h.leaveListener=h.leave.bind(h);h.highlighted=!1;h.JSC$16144_unsubscribeFromInlinePreviewIsActive=function(){};
return h};
_.f(W1,_.D);_.p=W1.prototype;_.p.computeContainerType=function(){return this.useCompactList?3:2};
_.p.itemWidthChanged=function(){var h;this.thumbnailTargetWidth=(h=this.itemWidth)!=null?h:9999};
_.p.updateIsInFirstColumn=function(){var h;this.isInFirstColumn=((h=this.data)==null?void 0:h.colIndex)===0};
_.p.observerContainerType=function(){if(this.lockup){var h=this.lockup;h.containerType=this.containerType;h.sizing=this.sizing;h.typographyBump=this.typographyBump;h.itemWidth=this.itemWidth}this.richGridMedia&&_.J("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.J("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.p.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.p.leave=function(h){h=h.relatedTarget;var E=document.querySelector("ytd-video-preview");h&&E&&_.L3(E).contains(h)||this.removeAndCleanupHighlight()};
_.p.hover=function(){var h;!this.highlighted&&(h=this.data)!=null&&h.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(h=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:h,boxShadow:"0 0 0 10px "+h})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.p.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.p.registerHoverHighlightListeners=function(){var h=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive=_.kT(_.Gv(),_.pZ4,function(E){h.highlighted&&!E&&h.removeAndCleanupHighlight()})};
_.p.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16144_unsubscribeFromInlinePreviewIsActive()};
_.p.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.p.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.p.getBackgroundColor=function(){var h,E,g=(h=this.data)==null?void 0:(E=h.onFocusEffect)==null?void 0:E.onFocusColor;if(g){if(document.documentElement.hasAttribute("dark")&&(g==null?0:g.darkTheme))return _.bU(g==null?void 0:g.darkTheme);if(g==null?0:g.lightTheme)return _.bU(g==null?void 0:g.lightTheme)}};
_.p.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var h=_.sH(),E,g,Z;h&&((E=this.data)==null?0:E.trackingParams)&&((g=this.data)==null?void 0:g.colIndex)!=null&&((Z=this.data)==null?void 0:Z.rowIndex)!=null&&_.Wn(h,_.rp(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.p.isSlimMediaRenderer=function(h){return!!_.e(h==null?void 0:h.content,_.hRk)||!!_.e(h==null?void 0:h.content,QMF)||!!_.e(h==null?void 0:h.content,_.pC)||!!_.e(h==null?void 0:h.content,d8n)};
_.p.isPostRenderer=function(){var h,E;return!!_.e((h=this.data)==null?void 0:h.content,C0l)||!!_.e((E=this.data)==null?void 0:E.content,JOD)};
_.p.computeIsGameCardShelf=function(){var h;return!!_.e((h=this.data)==null?void 0:h.content,rBB)};
_.p.computeIsMiniGameCardShelf=function(){var h,E;return!!_.e((h=this.data)==null?void 0:h.content,Fol)||!!_.e((E=this.data)==null?void 0:E.content,ABf)};
_.p.computeIsTeaserCard=function(){var h;return!!_.e((h=this.data)==null?void 0:h.content,ABf)};
_.p.computeIsSelectableFeedbackItem=function(){var h,E;return!((E=_.e((h=this.data)==null?void 0:h.content,bbM))==null||!E.selectableFeedback)};
_.p.computeContainsLumierePosters=function(){var h,E;return((E=_.e((h=this.data)==null?void 0:h.content,lDl))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.computeIsExpandOnHoverCardShelf=function(){var h;return!!_.e((h=this.data)==null?void 0:h.content,Dgm)};
_.p.computeIsLinkCardShelf=function(){var h;return!!_.e((h=this.data)==null?void 0:h.content,l7B)};
_.p.computeIsReelItemStyleAvatarCircle=function(h){var E;return((E=_.e(h==null?void 0:h.content,_.pC))==null?void 0:E.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.p.computeIsLinkCardFullWidth=function(h,E){var g;return((g=_.e(h==null?void 0:h.content,l7B))==null?void 0:g.useFullWidth)||E<=2};
_.ze.Object.defineProperties(W1.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&&_.J("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.onFocusEffect)||_.J("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}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var h;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:(h=this.data)==null?void 0:h.onFocusEffect}}}});
W1.prototype.richGridHoverHighlightChanged=W1.prototype.richGridHoverHighlightChanged;W1.prototype.observerContainerType=W1.prototype.observerContainerType;W1.prototype.updateIsInFirstColumn=W1.prototype.updateIsInFirstColumn;W1.prototype.itemWidthChanged=W1.prototype.itemWidthChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],W1.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],W1.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],W1.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],W1.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.V("design:type",Boolean)],W1.prototype,"isPost",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.V("design:type",Boolean)],W1.prototype,"containsLumierePosters",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.V("design:type",Boolean)],W1.prototype,"isSlimMedia",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.V("design:type",Boolean)],W1.prototype,"isGameCardShelf",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.V("design:type",Boolean)],W1.prototype,"isMiniGameCardShelf",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.V("design:type",Boolean)],W1.prototype,"isTeaserCard",void 0);_.Y([_.x({computed:"computeIsSelectableFeedbackItem(data)"}),_.V("design:type",Boolean)],W1.prototype,"isSelectableFeedbackItem",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isShortsGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],W1.prototype,"isSlimGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isCompactGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isShortsPanelGrid",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.V("design:type",Boolean)],W1.prototype,"isExpandOnHoverCardShelf",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.V("design:type",Boolean)],W1.prototype,"isLinkCardShelf",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Y8,value:3}),_.V("design:type",Number)],W1.prototype,"itemsPerRow",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"renderedFromRichGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isInFirstColumn",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"noGutterMargins",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"noBottomMargin",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"halfBottomMargin",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isInlineGroupItem",void 0);_.Y([_.x(),_.V("design:type",Object)],W1.prototype,"insetMetadata",void 0);_.Y([_.x(),_.V("design:type",Object)],W1.prototype,"noBottomMarginInAds",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],W1.prototype,"isShelfItem",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.V("design:type",Boolean)],W1.prototype,"isReelItemStyleAvatarCircle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.V("design:type",Boolean)],W1.prototype,"isLinkCardFullWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],W1.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"useCompactList",void 0);_.Y([_.x(),_.V("design:type",String)],W1.prototype,"sizing",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],W1.prototype,"typographyBump",void 0);_.Y([_.x(),_.V("design:type",Number)],W1.prototype,"itemWidth",void 0);_.Y([_.x(),_.V("design:type",Boolean)],W1.prototype,"isHomeShelf",void 0);_.Y([_.x(),_.V("design:type",Boolean)],W1.prototype,"isHomeGrid",void 0);
_.Y([_.Sg("yt-lockup-view-model"),_.V("design:type",HTMLElement)],W1.prototype,"lockup",void 0);_.Y([_.Sg("ytd-rich-grid-media"),_.V("design:type",HTMLElement)],W1.prototype,"richGridMedia",void 0);_.Y([_.Sg("ytd-ad-slot-renderer"),_.V("design:type",HTMLElement)],W1.prototype,"adSlotRenderer",void 0);_.Y([_.x({computed:"computeContainerType(useCompactList)"}),_.V("design:type",Object)],W1.prototype,"containerType",void 0);_.Y([_.x(),_.V("design:type",Object)],W1.prototype,"thumbnailTargetWidth",void 0);
_.Y([_.S("showYtInteractionOnRichItem"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W1.prototype,"showYtInteractionOnRichGridMedia",null);_.Y([_.S("isSelectableFeedbackItem","richGridHoverHighlight"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W1.prototype,"showYtInteractionOnRichItem",null);_.Y([_.S("typographyBump","isHomeGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W1.prototype,"richTypographyBump",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data","isShortsGrid","isCompactGrid"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],W1.prototype,"richGridHoverHighlight",null);_.Y([_.S("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],W1.prototype,"shortsLockupViewModelAspectRatio",null);_.Y([_.S("isInlineGroupItem"),_.V("design:type",Number),_.V("design:paramtypes",[])],W1.prototype,"shortsLockupViewModelScrimStyle",null);
_.Y([_.Nm("itemWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W1.prototype,"itemWidthChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W1.prototype,"updateIsInFirstColumn",null);_.Y([_.Nm("containerType","sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W1.prototype,"observerContainerType",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],W1.prototype,"isResponsiveGrid",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],W1.prototype,"lockupExperiments",null);_.Y([_.Nm("richGridHoverHighlight"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W1.prototype,"richGridHoverHighlightChanged",null);_.Y([_.K({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],W1);
_.lnD=_.BK()(W1,"ytd-rich-item-renderer",function(){if(L6H===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);L6H=h}h=L6H;return h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var jiq={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var lxx=_.MR(_.NH("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Cgd={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},e44={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},qON={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var rFD;var pY=function(){var h=_.D.apply(this,arguments)||this;h.useResponsiveGrid=!1;h.hidden=!1;h.isShowMoreHidden=!1;h.isShowLessHidden=!0;h.hasExpansionButton=!1;h.isInnerShelf=!1;h.allVideosCount=0;h.allPlaylistCount=0;h.haveSmartDownloadsCompleted=!1;h.restrictContentsOverflow=!1;h.firstShownIndex=0;h.horizontalOffset=0;h.atEnd=!0;h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
h.nextClick=function(){var E;(E=h.data)!=null&&E.contents&&(h.firstShownIndex+=h.currentElementsPerRow,h.updateHorizontalOffset(),h.updateHorizontalItemVisibility())};
h.previousClick=function(){var E;(E=h.data)!=null&&E.contents&&(h.firstShownIndex-=h.currentElementsPerRow,h.updateHorizontalOffset(),h.updateHorizontalItemVisibility())};
return h};
_.f(pY,_.D);_.p=pY.prototype;
_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.nF("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.p.attached=function(){this.requestElementsPerRow()};
_.p.refreshGridLayoutNew=function(){var h;if((h=this.data)!=null&&h.contents&&this.containerWidth){var E;((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize)?(h=_.v5N(this.data.responsiveContainerConfiguration,this.containerWidth),h=_.kx(Object.assign({},h,{standardUnitMinWidth:this.standardUnitMinWidth}))):h=_.kx({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=h.typographyBump;if(this.elementsPerRow!==
h.numItems||this.gutter!==h.gutter)this.elementsPerRow=h.numItems,this.gutter=h.gutter,this.itemWidth=h.itemWidth,_.Ja(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":h.gutter+"px"})}};
_.p.computeSizing=function(){if(!this.isLumiere){var h=_.WK4(this.data);return h?h:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.p.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.p.computeButton=function(h){var E=_.e(h,_.Gh);h=Object.assign({},_.e(h,_.Gh));return E?(h.text||(h.text={simpleText:h.tooltip}),h.style="STYLE_MONO_OUTLINE",h.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",h):E};
_.p.onRowIndexChange=function(){var h=_.sH(),E,g;((E=this.data)==null?0:E.trackingParams)&&((g=this.data)==null?void 0:g.rowIndex)!=null&&h&&_.Wn(h,_.rp(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.p.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var h,E=((h=this.getRichItemRenderers()[0])==null?void 0:h.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*E;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
_.p.onUpdateElementsPerRowAction=function(h,E,g,Z,M,W){if(this.containerWidth!==W&&(this.containerWidth=W,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&h&&E&&g&&Z&&M&&(this.elementsPerRow!==h||this.postsPerRow!==E||this.slimItemsPerRow!==g||this.gameCardsPerRow!==Z||this.miniGameCardsPerRow!==M)&&(this.elementsPerRow=h,this.postsPerRow=E,this.slimItemsPerRow=g,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=M,this.updateItemVisibility())};
_.p.isExpandedChanged=function(){var h=this.getRichItemRenderers(),E=this.isExpanded;h.forEach(function(g){g.halfBottomMargin=E})};
_.p.isCollapsedChanged=function(){var h=this.getRichItemRenderers(),E=this.isCollapsed;h.forEach(function(g){g.noBottomMargin=E})};
_.p.getRichItemRenderers=function(){return _.UB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.p.updateItemVisibility=function(){var h=this;if(this.data&&this.data.contents){var E=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(Z,M){var W;((W=h.data)==null?0:W.isExpanded)?(Z.hidden=M>E-1,Z.ytRendererBehavior.markDirty()):Z.hidden=M>h.currentElementsPerRow-1||M>E-1});
var g=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||g||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||g||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.p.setHeightToSingleRow=function(){var h=this.getRichItemRenderers(),E=Number.parseInt(getComputedStyle(h[0]).marginBottom,10)||0;h=h.slice(0,this.currentElementsPerRow).reduce(function(g,Z){return Math.max(g,Z.getBoundingClientRect().height+E)},0);
this.contents.style.height=h+"px"};
_.p.focusNextExpandedItem=function(){var h;((h=this.data)==null?0:h.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.p.focusItem=function(h,E){var g=this.getRichItemRenderers();if(g[h]&&(h=g[h].querySelector(".focus-on-expand"))){if(E){var Z;(Z=g[this.currentElementsPerRow])==null||Z.scrollIntoView({behavior:"smooth",block:"center"})}h.focus({preventScroll:!0})}};
_.p.onDataChange=function(){var h=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var E;if((E=this.data)==null?0:E.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.pQ(this,function(){h.updateItemVisibility()});
var g;if((g=this.data)==null?0:g.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Ja(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),E=0;E<this.data.contents.length;E++)g=_.e(this.data.contents[E],_.kc)||{},g.colIndex=E,g.rowIndex=this.data.rowIndex};
_.p.handleRerenderDownloadsData=function(){_.J("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.p.blockInlinePreview=function(h){var E=this,g;return _.a(function(Z){(g=E.inlinePreviewIsEnabled)&&E.ytdReduxBehavior.dispatch(_.LRM(!1));return Z.return(new Promise(function(M){h(function(){g&&E.ytdReduxBehavior.dispatch(_.LRM(!0));M()})}))})};
_.p.expandShelf=function(){var h=this;if(this.data){var E,g=(E=_.e(this.data.showMoreButton,_.Gh))==null?void 0:E.trackingParams;g&&_.KC(_.SQ(),g);this.set("data.isExpanded",!0);this.blockInlinePreview(function(Z){h.setHeightToSingleRow();h.updateItemVisibility();h.contents.style.height=h.contents.scrollHeight+"px";_.KP.addJob(function(){h.contents.style.height="auto";h.focusNextExpandedItem();Z()},2,200)})}};
_.p.collapseShelf=function(){var h=this;return _.a(function(E){if(E.nextAddress==1){if(!h.data)return E.return();h.set("data.isExpanded",!1);return E.yield(h.blockInlinePreview(function(g){h.contents.style.height=h.contents.scrollHeight+"px";h.setHeightToSingleRow();_.KP.addJob(function(){h.updateItemVisibility();h.contents.style.height="auto";g()},2,200)}),2)}_.Ra(h.hostElement,"yt-rich-shelf-renderer-collapse",h.data.trackingParams);
h.focusItem(0,!1);_.SK(E)})};
_.p.updateArrowButtonStatus=function(){var h=this.getRichItemRenderers().length;if(!_.J("web_rich_shelf_renderer_use_data_contents_killswitch")){var E,g;h=((E=this.data)==null?void 0:(g=E.contents)==null?void 0:g.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=h};
_.p.onChildElementFocus=function(h){this.hasChevronButtons&&(h=h.target.closest("#contents > *"),this.contents.contains(h)&&(h.offsetLeft<this.horizontalOffset?this.previousClick():h.offsetLeft+h.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.p.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.nF("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.p.updateHorizontalOffset=function(){var h=this.getRichItemRenderers(),E=h.length;if(!_.J("web_rich_shelf_renderer_use_data_contents_killswitch")){var g,Z;E=((g=this.data)==null?void 0:(Z=g.contents)==null?void 0:Z.length)||0}var M;h=((M=h[0])==null?void 0:M.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>E?this.firstShownIndex=E-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*h};
_.p.isSlimMediaShelfRenderer=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!(_.e(Z,_.hRk)||_.e(Z,QMF)||_.e(Z,_.pC)||_.e(Z,d8n))};
_.p.isGameCardShelf=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!_.e(Z,rBB)};
_.p.isGnomeShelf=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!_.e(Z,bbM)};
_.p.isMiniGameCardShelf=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!_.e(Z,Fol)||!!_.e(Z,ABf)};
_.p.hasGameBoxArtAvatarStyle=function(){var h;return((h=this.data)==null?void 0:h.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.p.hasRoundedGameBoxArtAvatarStyle=function(){var h;return((h=this.data)==null?void 0:h.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.p.isShortsShelf=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!_.e(Z,_.pC)||!!_.e(Z,d8n)};
_.p.isPostShelfRenderer=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!(!_.e(Z,C0l)&&!_.e(Z,JOD))};
_.p.isLumiereShelf=function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc);return!!_.e(g==null?void 0:g.content,lDl)};
_.p.isLumiereShelfWithPosters=function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc),Z;return((Z=_.e(g==null?void 0:g.content,lDl))==null?void 0:Z.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.p.isExpandOnHoverCardShelf=function(){var h,E,g,Z=(g=_.e((h=this.data)==null?void 0:(E=h.contents)==null?void 0:E[0],_.kc))==null?void 0:g.content;return!!_.e(Z,Dgm)};
_.p.computeHasFeaturedBadge=function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.badges)==null?void 0:E[0],_.uED);return g?g.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHasPaygatedFeaturedBadge=function(){var h,E,g=_.e((h=this.data)==null?void 0:(E=h.badges)==null?void 0:E[0],_.uED);return g?(g==null?void 0:g.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.p.computeHeaderHidden=function(){var h,E,g,Z,M,W;return!((h=this.data)==null?0:h.icon)&&!((E=this.data)==null?0:E.title)&&!((g=this.data)==null?0:g.subtitle)&&!((Z=this.data)==null?0:Z.thumbnail)&&!((M=this.data)==null?0:M.badges)&&!((W=this.data)==null?0:W.menu)};
_.p.showCtaButton=function(){var h;return!((h=this.data)==null||!h.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.p.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.p.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.p.computeForce16By9ThumbnailAspectRatio=function(){var h,E;return((h=this.data)==null?void 0:(E=h.responsiveContainerConfiguration)==null?void 0:E.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.p.onSectionReactiveDismissal=function(h,E,g){var Z,M;var W=(Z=this.data)==null?void 0:(M=Z.targetingContext)==null?void 0:M.targetGroupId;this&&W&&E.targetGroupId&&W.includes(E.targetGroupId)?(Z=this.rowIndex,h=Z===void 0?!1:!(E.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Z<=h)):h=!1;h&&(this.hidden=g)};
_.ze.Object.defineProperties(pY.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null?0:h.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var h=this.elementsPerRow;this.isPostShelfRenderer()?h=this.postsPerRow:this.isSlimMediaShelfRenderer()?h=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?h=this.slimItemsPerRow-1:this.isGameCardShelf()?h=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(h=this.miniGameCardsPerRow);return h}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.J("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null?0:h.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.previousButton)&&!((E=this.data)==null||!E.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 h;return((h=_.GF().resolve(_.p4).getCurrentPage())==null?void 0:h.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return!((h=this.data)==null?0:(E=h.thumbnail)==null?0:(g=E.accessibility)==null?0:(Z=g.accessibilityData)==null?0:Z.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
pY.prototype.onChildElementFocus=pY.prototype.onChildElementFocus;pY.prototype.handleRerenderDownloadsData=pY.prototype.handleRerenderDownloadsData;pY.prototype.onDataChange=pY.prototype.onDataChange;pY.prototype.isCollapsedChanged=pY.prototype.isCollapsedChanged;pY.prototype.isExpandedChanged=pY.prototype.isExpandedChanged;pY.prototype.onRowIndexChange=pY.prototype.onRowIndexChange;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],pY.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],pY.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],pY.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.V("design:type",Object)],pY.prototype,"useResponsiveGrid",void 0);_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],pY.prototype,"standardUnitMinWidth",void 0);_.Y([_.x({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],pY.prototype,"elementsPerRow",void 0);_.Y([_.x({value:3}),_.V("design:type",Number)],pY.prototype,"postsPerRow",void 0);
_.Y([_.x({value:6}),_.V("design:type",Number)],pY.prototype,"slimItemsPerRow",void 0);_.Y([_.x({value:6}),_.V("design:type",Number)],pY.prototype,"gameCardsPerRow",void 0);_.Y([_.x({value:6}),_.V("design:type",Number)],pY.prototype,"miniGameCardsPerRow",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],pY.prototype,"hidden",void 0);_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"isShowMoreHidden",void 0);
_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"isShowLessHidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],pY.prototype,"hasExpansionButton",void 0);_.Y([_.S("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"isExpanded",null);_.Y([_.S("data.isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"isCollapsed",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],pY.prototype,"isInnerShelf",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.V("design:type",Boolean)],pY.prototype,"isShorts",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.V("design:type",Boolean)],pY.prototype,"isLumiere",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],pY.prototype,"hasBoxArtThumbnailStyle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.V("design:type",Boolean)],pY.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.V("design:type",Boolean)],pY.prototype,"hasFeaturedBadge",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.V("design:type",Boolean)],pY.prototype,"hasPaygatedFeaturedBadge",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.V("design:type",Boolean)],pY.prototype,"isHeaderHidden",void 0);_.Y([_.x({selector:_.omV}),_.V("design:type",Object)],pY.prototype,"allVideosCount",void 0);_.Y([_.x({selector:mL$}),_.V("design:type",Object)],pY.prototype,"allPlaylistCount",void 0);_.Y([_.x({selector:Jcu}),_.V("design:type",Object)],pY.prototype,"haveSmartDownloadsCompleted",void 0);
_.Y([_.x({selectorArgs:["entitySelectorType"],selector:function(h,E){if(_.J("kevlar_modern_downloads_page")&&E&&E!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var g=h.entities;switch(E){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":E=_.Ke(g);h=Je(E);var Z=_.lV(E);g=_.ne(g);g=_.iV(Nvz(Z,g,E.length));return{contents:h,subtitle:g};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return g=_.Ke(g),{contents:Je(g)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return g=
_.Oo(g),{contents:Je(g)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return g=_.YUx(g),{contents:Je(g)};default:_.O$(new _.xX("Error: entitySelectorType defined but not matched in selector.",h,E))}}}}),
_.V("design:type",Object)],pY.prototype,"entityDrivenRichShelfData",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],pY.prototype,"hasTopCtaButton",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.V("design:type",Boolean)],pY.prototype,"hasBottomCtaButton",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.V("design:type",Boolean)],pY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],pY.prototype,"restrictContentsOverflow",void 0);_.Y([_.x({selector:_.GVN}),_.V("design:type",Boolean)],pY.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.x({computed:"computeSizing(data)"}),_.V("design:type",String)],pY.prototype,"sizing",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],pY.prototype,"typographyBump",void 0);_.Y([_.x(),_.V("design:type",Number)],pY.prototype,"itemWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"firstShownIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"horizontalOffset",void 0);_.Y([_.x(),_.V("design:type",Object)],pY.prototype,"atEnd",void 0);_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],pY.prototype,"contents",void 0);
_.Y([_.Nm("data.rowIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"onRowIndexChange",null);_.Y([_.Nm("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"isExpandedChanged",null);_.Y([_.Nm("isCollapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"isCollapsedChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"onDataChange",null);_.Y([_.Nm("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pY.prototype,"handleRerenderDownloadsData",null);_.Y([_.f3("focusin"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],pY.prototype,"onChildElementFocus",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data","isHomePage"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"isTruncated",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"showBottomDivider",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],pY.prototype,"hasChevronButtons",null);
_.Y([_.S("firstShownIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],pY.prototype,"previousButtonOverride",null);_.Y([_.S("atEnd"),_.V("design:type",Object),_.V("design:paramtypes",[])],pY.prototype,"nextButtonOverride",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"isHomePage",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],pY.prototype,"thumbnailAriaHidden",null);
_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],pY.prototype,"entitySelectorType",null);_.Y([_.K({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],pY);
_.mkC=_.BK()(pY,"ytd-rich-shelf-renderer",function(){if(rFD===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);rFD=h}h=rFD;return h},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var vQm;_.I9(_.xz,"yt-badge-view-model",{props:{data:_.C6,class:_.C6,workaroundShortsIsThumbnailBadge:_.C6,modern:_.C6,numBadgesInRow:_.C6}});_.I9(cdl,"yt-slimline-survey-view-model",{props:{data:_.C6}});var GO=function(){var h=_.D.apply(this,arguments)||this;h.tileLottieAnimationRef={};h.backgroundLottieAnimationRef={};h.isOnHoverBehaviorForLottieEnabled=!0;h.useBiggerShowcaseImage=_.J("enable_desktop_search_bigger_thumbs");h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return h};
_.f(GO,_.D);_.p=GO.prototype;_.p.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.p.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},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.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.p.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var h=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);h!==this.hasTile&&this.set("hasTile",h);h=this.hasLogo(this.data)||!!this.data.badgeText;h!==this.hasMetadata&&this.set("hasMetadata",h);h=this.data.overflowButton?!1:h;h!==this.showLogoImage&&this.set("showLogoImage",h);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.p.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.p.currentColorChanged=function(){this.updateButtonPalette()};
_.p.computeBackgroundStyle=function(h){if(h&&this.data){var E=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var g=_.P$((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);g&&E.push('background-image: url("'+g+'");')}var Z;((Z=h.basicColorData)==null?void 0:Z.backgroundColor)!==void 0&&E.push("background-color: "+_.uU(h.basicColorData.backgroundColor)+";");return E.join("")}};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&this.set("isDarkTheme",h)};
_.p.getCurrentLogo=function(h,E){if(h)return E?h.darkLogoImage:h.lightLogoImage};
_.p.getCurrentStaticTileImage=function(h,E){if(this.hasStaticTile(h))return h.darkTileImage?E?h.darkTileImage:h.tileImage:h.tileImage};
_.p.computeTitleStyle=function(h){if(this.data&&this.data.title&&h&&h.basicColorData&&h.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.bU(h.basicColorData.foregroundTitleColor)+";"};
_.p.computeSubtitleStyle=function(h){if(this.data&&this.data.subtitle&&h&&h.basicColorData&&h.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.bU(h.basicColorData.foregroundBodyColor)+";"};
_.p.computeSupplementalStyle=function(h){if(this.data&&this.data.supplementalText&&h&&h.supplementalTextColor!==void 0)return h=_.bU(h.supplementalTextColor),"color:"+h+";--yt-endpoint-color:"+h+";--yt-endpoint-hover-color:"+h+";--yt-endpoint-visited-color:"+h+";--yt-formatted-string-bold-font-weight:700;"};
_.p.computeDismissIconStyle=function(h){var E,g;if((h==null?0:(E=h.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(h==null?0:(g=h.dismissButtonColorData)==null?0:g.backgroundColor))return"--yt-button-color:"+_.uU(h.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uU(h.dismissButtonColorData.backgroundColor)+";"};
_.p.computeOverflowIconStyle=function(h){var E,g;if((h==null?0:(E=h.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(h==null?0:(g=h.dismissButtonColorData)==null?0:g.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.uU(h.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.uU(h.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.uU(h.dismissButtonColorData.foregroundTitleColor)+";"};
_.p.computeBannerStyle=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeLocation=function(h){switch(h==null?void 0:h.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.p.shouldShowTileSection=function(h,E,g){return!this.shouldExpandLogo(h,E,g)&&E};
_.p.shouldShowExpandedLogoSection=function(h,E,g){return this.shouldExpandLogo(h,E,g)&&h!==void 0&&this.hasLogo(h)};
_.p.shouldExpandLogo=function(h,E,g){return h&&E?!1:g>=2};
_.p.hasStaticTile=function(h){return!(h==null||!h.tileImage)};
_.p.hasTileLottie=function(h){var E;return!!(h==null?0:(E=h.tileLottie)==null?0:E.url)};
_.p.hasLogo=function(h){return this.getCurrentLogo(h,this.isDarkTheme)!==void 0};
_.p.getLogoHeight=function(h){return this.logoWithPadding(h)?"26":"20"};
_.p.getExpandedLogoHeight=function(h){return this.logoWithPadding(h)?"31":"24"};
_.p.getLogoImageId=function(h){return this.logoWithPadding(h)?"logo-image-with-padding":"logo-image"};
_.p.getMaxTitleFontSize=function(h){return h.overrideTitleMaxFontSize?String(h.overrideTitleMaxFontSize):"36"};
_.p.hasBackgroundLottie=function(h){var E;return!!(h==null?0:(E=h.backgroundLottie)==null?0:E.url)};
_.p.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var h,E;(h=this.tileLottieAnimationRef)==null||(E=h.lottieEl)==null||E.play();var g,Z;(g=this.backgroundLottieAnimationRef)==null||(Z=g.lottieEl)==null||Z.play()}};
_.p.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var h,E;(h=this.tileLottieAnimationRef)==null||(E=h.lottieEl)==null||E.pause();var g,Z;(g=this.backgroundLottieAnimationRef)==null||(Z=g.lottieEl)==null||Z.pause()}};
_.p.pauseLottie=function(){var h,E;(h=this.tileLottieAnimationRef)==null||(E=h.lottieEl)==null||E.pause();var g,Z;(g=this.backgroundLottieAnimationRef)==null||(Z=g.lottieEl)==null||Z.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.p.performPrimaryButtonAction=function(){var h,E,g;((h=this.data)==null?0:(E=h.primaryButton)==null?0:(g=E.buttonRenderer)==null?0:g.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
_.p.updateButtonPalette=function(){if(this.data&&this.currentColorData){var h;((h=this.data.dismissButton)==null?0:h.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 E;if((E=this.data.primaryButton)==null?0:E.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 g;if((g=this.data.secondaryButton)==
null?0:g.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 Z;((Z=this.data.primaryButton)==null?0:Z.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var M;((M=this.data.secondaryButton)==null?0:M.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var W;((W=this.data.primaryButton)==null?0:W.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.p.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var h=this.getTileLottieDataBasedOnTheme(),E,g;if(h.url!==((E=this.tileLottiePlayerProps)==null?void 0:(g=E.animationConfig)==null?void 0:g.path)){var Z,M;(Z=this.tileLottieAnimationRef)==null||(M=Z.lottieEl)==null||M.destroy();var W;this.isOnHoverBehaviorForLottieEnabled=!((W=h.settings)==null?0:W.autoplay);var z,c;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(c=(z=h.settings)==null?void 0:z.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(h.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof h.url==="string"?this.tileLottiePlayerProps.animationConfig.path=h.url:this.tileLottiePlayerProps.animationConfig.animationData=h.url}}};
_.p.getOverflowButton=function(h){return _.e(h.overflowButton,fsD)};
_.p.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var h=this.getBackgroundLottieDataBasedOnTheme(),E,g;if(h.url!==((E=this.backgroundLottiePlayerProps)==null?void 0:(g=E.animationConfig)==null?void 0:g.path)){var Z,M;(Z=this.backgroundLottieAnimationRef)==null||(M=Z.lottieEl)==null||M.destroy();var W;this.isOnHoverBehaviorForLottieEnabled=!((W=h.settings)==null?0:W.autoplay);var z,c;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(c=(z=h.settings)==null?void 0:z.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(h.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof h.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=h.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
h.url}}};
_.p.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var h;((h=this.tileLottieAnimationRef)==null?void 0:h.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var E;((E=this.backgroundLottieAnimationRef)==null?void 0:E.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.p.getTileLottieDataBasedOnTheme=function(){var h;if(this.isDarkTheme&&((h=this.data)==null?0:h.darkThemeTileLottie))return this.data.darkThemeTileLottie;var E;return((E=this.data)==null?0:E.tileLottie)?this.data.tileLottie:{}};
_.p.getBackgroundLottieDataBasedOnTheme=function(){var h;if(this.isDarkTheme&&((h=this.data)==null?0:h.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var E;return((E=this.data)==null?0:E.backgroundLottie)?this.data.backgroundLottie:{}};
_.p.onUpdateElementsPerRowAction=function(h){h&&this.elementsPerRow!==h&&(this.elementsPerRow=h)};
_.p.getLottieLoopValue=function(h){return h?h.loop!==void 0?h.loop:h.loopCount?h.loopCount-1:!0:!0};
_.p.logoWithPadding=function(h){var E,g,Z;return(h=(E=this.getCurrentLogo(h,this.isDarkTheme))==null?void 0:(g=E.thumbnails)==null?void 0:(Z=g[0])==null?void 0:Z.height)&&h%31===0?!0:!1};
GO.prototype.currentColorChanged=GO.prototype.currentColorChanged;GO.prototype.themeChanged=GO.prototype.themeChanged;GO.prototype.dataChanged=GO.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],GO.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],GO.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],GO.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"primaryButton",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"secondaryButton",void 0);
_.Y([_.x({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],GO.prototype,"elementsPerRow",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GO.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GO.prototype,"hasTile",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GO.prototype,"hasMetadata",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GO.prototype,"showLogoImage",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"currentColorData",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.V("design:type",String)],GO.prototype,"bannerStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.V("design:type",String)],GO.prototype,"location",void 0);
_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"tileLottiePlayerProps",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"tileLottieAnimationRef",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"backgroundLottiePlayerProps",void 0);_.Y([_.x(),_.V("design:type",Object)],GO.prototype,"backgroundLottieAnimationRef",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],GO.prototype,"useBiggerShowcaseImage",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],GO.prototype,"isHideEnclosingAction",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GO.prototype,"dataChanged",null);_.Y([_.lq("isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GO.prototype,"themeChanged",null);
_.Y([_.lq("currentColorData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GO.prototype,"currentColorChanged",null);_.Y([_.K({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],GO);
_.X(GO,"ytd-statement-banner-renderer",function(){if(vQm!==void 0)return vQm;var h=document.createElement("template");_.N(h,'\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="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="[[getMaxTitleFontSize(data)]]" 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.badge]]" 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 id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vQm=h},{mode:1});var HhD;var zO=function(){var h=_.D.apply(this,arguments)||this;h.isSearch=!1;h.hideShelfHeader=!1;h.engagementPanel=!1;h.disableMouseScroll=!0;h.useFloorScrolling=!0;return h};
_.f(zO,_.D);zO.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.NH("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.NH("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
zO.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
zO.prototype.onDataChanged=zO.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zO.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],zO.prototype,"hideShelfHeader",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],zO.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],zO.prototype,"disableMouseScroll",void 0);_.Y([_.x(),_.V("design:type",Object)],zO.prototype,"useFloorScrolling",void 0);_.Y([_.x(),_.V("design:type",Object)],zO.prototype,"data",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zO.prototype,"onDataChanged",null);
_.Y([_.K({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],zO);
_.X(zO,"ytd-reel-shelf-renderer",function(){if(HhD!==void 0)return HhD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HhD=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var $kf;var K6C;K6C=_.uz(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.OhB=_.BR(K6C);var nQD=_.O(function(h){var E=h.data;h=h.useSmallFont;var g={},Z={};return _.R("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.R(_.P,{cond:function(){return E().favicon},
then:function(M){return _.R(_.pO,{data:M,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.R("div",{class:"ytChannelExternalLinkViewModelContainer"},_.R(_.dK,{text:function(){return E().title},
className:_.CO("ytChannelExternalLinkViewModelTitle",(g.ytChannelExternalLinkViewModelTitleSmallFont=h,g)),ellipsisTruncate:!0,userInput:!0}),_.R(_.dK,{text:function(){return E().link},
className:_.CO("ytChannelExternalLinkViewModelLink",(Z.ytChannelExternalLinkViewModelLinkSmallFont=h,Z)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"$b");
nQD.idomCompat=!0;_.I9(nQD,"yt-channel-external-link-view-model",{props:{data:_.C6,useSmallFont:_.C6}});_.$P("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var aw=function(){var h=_.D.apply(this,arguments)||this;h.revealButtonClass="button";h.businessEmailDisplayState="HIDE_SECTION";return h};
_.f(aw,_.D);_.p=aw.prototype;_.p.refit=function(){var h=this;_.hW(function(){_.U7(h.hostElement,"yt-refit-popups-action")});
_.pQ(this,function(){_.U7(h.hostElement,"yt-refit-popups-action")})};
_.p.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.bC(_.OhB),this.businessEmailDisplayState="CAPTCHA")};
_.p.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.p.computeEmailHref=function(h){return"mailto:"+h};
_.p.computeSafeUrl=function(h){if(h)return _.Yr(h)};
_.p.linkEndpoint=function(h){return _.e(h.onTap,_.V1)};
_.p.linkEndpointToHref=function(h){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(h))};
_.p.onYtServiceRequestCompleted=function(h){var E;if((E=h.detail.data)==null?0:E.businessEmail)this.businessEmail=h.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var g;if((g=h.detail.data)==null?0:g.errorMessage)this.businessEmailErrorMessage=h.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var h=this.JSC$16258_captchaTextarea.value;if(h){h={recaptcha_response_token:h,channel_id:this.metadata.channelId};var E=_.e(this.metadata.onBusinessEmailRevealClickCommand,_.V1);E&&this.ytComponentBehavior.resolveCommand(E,{form:h})}}};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ze.Object.defineProperties(aw.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var h;return _.e((h=this.data)==null?void 0:h.metadata,HAD)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.e(this.metadata.businessEmailRevealButton,_.i_)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var h=new URL(this.metadata.canonicalChannelUrl);return h.host+h.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 _.e(this.metadata.learnMoreOnTap,_.V1)}}});
aw.prototype.onYtServiceRequestCompleted=aw.prototype.onYtServiceRequestCompleted;aw.prototype.businessEmailMetadataChanged=aw.prototype.businessEmailMetadataChanged;aw.prototype.refit=aw.prototype.refit;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],aw.prototype,"JSC$16258_captchaTextarea",void 0);_.Y([_.x(),_.V("design:type",Object)],aw.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],aw.prototype,"revealButtonClass",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],aw.prototype,"metadata",null);
_.Y([_.S("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],aw.prototype,"revealButton",null);_.Y([_.S("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],aw.prototype,"channelDisplayUrl",null);_.Y([_.lq("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aw.prototype,"refit",null);_.Y([_.S("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],aw.prototype,"formattedDescription",null);
_.Y([_.S("metadata","learnMoreCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],aw.prototype,"shouldRendereVerifiedPhoneStatus",null);_.Y([_.S("metadata"),_.V("design:type",Object),_.V("design:paramtypes",[])],aw.prototype,"learnMoreCommand",null);_.Y([_.x(),_.V("design:type",String)],aw.prototype,"businessEmailDisplayState",void 0);_.Y([_.x(),_.V("design:type",String)],aw.prototype,"businessEmail",void 0);
_.Y([_.x(),_.V("design:type",String)],aw.prototype,"businessEmailErrorMessage",void 0);_.Y([_.lq("metadata"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aw.prototype,"businessEmailMetadataChanged",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],aw.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],aw);
_.X(aw,"ytd-about-channel-renderer",function(){if($kf!==void 0)return $kf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return $kf=h},{mode:1});var X7f;var c1=function(){return _.D.apply(this,arguments)||this};
_.f(c1,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],c1.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],c1.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],c1);
_.X(c1,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(X7f!==void 0)return X7f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return X7f=h},{mode:1});var YnH;var iH=function(){return _.D.apply(this,arguments)||this};
_.f(iH,_.D);iH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],iH.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],iH.prototype,"aligment",void 0);_.Y([_.K({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],iH);
_.X(iH,"ytd-channel-list-sub-menu-renderer",function(){if(YnH!==void 0)return YnH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YnH=
h},{mode:1});var s7B;var ow=function(){return _.D.apply(this,arguments)||this};
_.f(ow,_.D);ow.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ow.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],ow);
_.X(ow,"ytd-channel-sub-menu-renderer",function(){if(s7B!==void 0)return s7B;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return s7B=h},{mode:1});var V2l;var kXM;var Iw=function(){var h=_.D.apply(this,arguments)||this;h.isCompact=!1;return h};
_.f(Iw,_.D);_.ze.Object.defineProperties(Iw.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var h,E;return((E=_.e((h=this.data)==null?void 0:h.endpoint,_.yX))==null?void 0:E.target)==="TARGET_NEW_WINDOW"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Iw.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Iw.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Iw.prototype,"isCompact",void 0);_.Y([_.S("isCompact"),_.V("design:type",Number),_.V("design:paramtypes",[])],Iw.prototype,"thumbnailWidth",null);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Iw.prototype,"openNewWindow",null);_.Y([_.K({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Iw);
_.X(Iw,"ytd-media-lockup-renderer",function(){if(kXM!==void 0)return kXM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kXM=h},{mode:1});var yFM;var Rw=function(){return _.D.apply(this,arguments)||this};
_.f(Rw,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Rw.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rw.prototype,"data",void 0);_.Y([_.K({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Rw);
_.X(Rw,"ytd-structured-description-channel-lockup-renderer",function(){if(yFM!==void 0)return yFM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return yFM=h},{mode:1});var F6C;var P1=function(){var h=_.D.apply(this,arguments)||this;h.isCompact=!1;h.collections=_.J("web_modern_collections_v2");h.collectionsStackColor=_.J("modernize_structured_description_playlist_lockups_v2");return h};
_.f(P1,_.D);P1.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:_.J("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.ze.Object.defineProperties(P1.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(h=this.data)==null?void 0:(E=h.thumbnail)==null?void 0:E.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(g=this.data)==null?void 0:(Z=g.thumbnail)==null?void 0:Z.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(M=this.data)==null?void 0:(W=M.thumbnail)==
null?void 0:W.vibrantColorPalette:void 0}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],P1.prototype,"componentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],P1.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],P1.prototype,"showSidePanelThumbnailOverlay",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],P1.prototype,"isCompact",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],P1.prototype,"collections",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],P1.prototype,"collectionsStackColor",void 0);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],P1.prototype,"twoLineTitle",null);
_.Y([_.S("data","collections","collectionsStackColor"),_.V("design:type",Object),_.V("design:paramtypes",[])],P1.prototype,"collectionStack",null);_.Y([_.K({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],P1);
_.X(P1,"ytd-structured-description-playlist-lockup-renderer",function(){if(F6C!==void 0)return F6C;var h=document.createElement("template");_.N(h,'\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)]]" aria-label$="[[getSimpleString(data.title)]]">\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return F6C=h},{mode:1});var AFM;var B1=function(){return _.D.apply(this,arguments)||this};
_.f(B1,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],B1.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],B1.prototype,"data",void 0);_.Y([_.K({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],B1);
_.X(B1,"ytd-structured-description-video-lockup-renderer",function(){if(AFM!==void 0)return AFM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return AFM=h},{mode:2});var Ui=function(){return _.D.apply(this,arguments)||this};
_.f(Ui,_.D);
Ui.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ui.prototype,"data",void 0);_.Y([_.K({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Ui);
_.X(Ui,"ytd-compact-infocard-renderer",function(){if(V2l!==void 0)return V2l;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return V2l=h},{mode:1});var T7f;var LY=function(){var h=_.D.apply(this,arguments)||this;h.useModernCollectionsV2=_.J("web_modern_collections_v2");return h};
_.f(LY,_.D);LY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ze.Object.defineProperties(LY.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],LY.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],LY.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],LY.prototype,"isGridViewEnabled",void 0);
_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],LY.prototype,"watchFeedBigThumbs",null);_.Y([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0,value:"168"}),_.V("design:type",String),_.V("design:paramtypes",[])],LY.prototype,"thumbnailWidth",null);_.Y([_.S("isGridViewEnabled","data"),_.x({reflectToAttribute:!0,value:"94"}),_.V("design:type",String),_.V("design:paramtypes",[])],LY.prototype,"customThumbnailSize",null);
_.Y([_.x(),_.V("design:type",Object)],LY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LY.prototype,"useModernCollectionsV2",void 0);_.Y([_.K({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],LY);
_.X(LY,"ytd-compact-playlist-renderer",function(){if(T7f!==void 0)return T7f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return T7f=h},{mode:1});var bhl;var jm=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.roundedContainer=!0;h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return h};
_.f(jm,_.D);_.p=jm.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.p.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.p.computeViewStyle=function(h){return h.style?h.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.p.onUpdateElementsPerRowAction=function(h){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&h===1};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
jm.prototype.dataChanged=jm.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jm.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],jm.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],jm.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],jm.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],jm.prototype,"hideThumbnail",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.V("design:type",String)],jm.prototype,"viewStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"darkerDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jm.prototype,"roundedContainer",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jm.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],jm);
_.X(jm,"ytd-compact-promoted-item-renderer",function(){if(bhl!==void 0)return bhl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return bhl=h},{mode:1});var uxm;var dL=function(){var h=_.D.apply(this,arguments)||this;h.collections=_.J("web_modern_collections_v2");return h};
_.f(dL,_.D);dL.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
dL.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
dL.prototype.onYtNavigate=function(h,E){var g=this;if(E.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",E)){var Z=this.get("watchEndpoint.videoId",E.endpoint),M=_.U7(this.hostElement,"yt-get-current-video-id-action")[0];_.J("kevlar_mix_handle_first_endpoint_different")&&Z&&M&&Z!==M||(h.stopPropagation(),_.aJ().getPlayerPromise().then(function(W){if(W.getPlayerState()===0&&g.data.secondaryNavigationEndpoint)var z=g.data.secondaryNavigationEndpoint;else{z=
Object.assign({},E.endpoint);var c=_.e(z.commandMetadata,_.qH);c&&(W=Math.floor(W.getCurrentTime()),c.url=_.hl(c.url,{t:W}),!_.J("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(c=_.e(z,_.MH)))&&(c.startTimeSeconds=W)}_.Ra(g.hostElement,"yt-navigate",{endpoint:z})}))}};
_.ze.Object.defineProperties(dL.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(h=this.data)==null?void 0:(E=h.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(g=this.data)==null?void 0:(Z=g.thumbnail)==null?void 0:Z.vibrantColorPalette,darkColorPalette:(M=this.data)==null?void 0:(W=M.thumbnail)==null?void 0:W.darkColorPalette,experimentEnabled:this.collections}}}});
dL.prototype.onYtNavigate=dL.prototype.onYtNavigate;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],dL.prototype,"ytEndpointBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],dL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],dL.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.LV),_.V("design:type",Object)],dL.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],dL.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],dL.prototype,"isGridViewEnabled",void 0);_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],dL.prototype,"watchFeedBigThumbs",null);
_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],dL.prototype,"thumbnailWidth",null);_.Y([_.x(),_.V("design:type",Object)],dL.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],dL.prototype,"collections",void 0);_.Y([_.S("data","collections"),_.V("design:type",Object),_.V("design:paramtypes",[])],dL.prototype,"collectionStack",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],dL.prototype,"onYtNavigate",null);_.Y([_.K({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],dL);
_.X(dL,"ytd-compact-radio-renderer",function(){if(uxm!==void 0)return uxm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uxm=h},{mode:1});var Q7M;var CY=function(){return _.D.apply(this,arguments)||this};
_.f(CY,_.D);CY.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
CY.prototype.computeRendererStyle=function(h){return h.style?h.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.Y([_.x(),_.V("design:type",Object)],CY.prototype,"data",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CY.prototype,"rendererBehavior",void 0);_.Y([_.x({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.V("design:type",String)],CY.prototype,"rendererStyle",void 0);_.Y([_.K({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],CY);
_.X(CY,"ytd-compact-text-promo-renderer",function(){if(Q7M!==void 0)return Q7M;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Q7M=h},{mode:1});var hKB;var J3=function(){var h=_.D.apply(this,arguments)||this;h.isShortsStyle=!1;return h};
_.f(J3,_.D);_.p=J3.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.p.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Ra(this.hostElement,"yt-disable-lockup-interaction"):_.Ra(this.hostElement,"yt-enable-lockup-interaction"))};
_.p.isMetaBlockEmpty=function(h){return!h||!h.longBylineText&&!h.shortBylineText&&!h.shortViewCountText&&!h.viewCountText};
_.p.computeHasOneLineTitle=function(h){return this.forceOneLineTitle||!(h==null||!h.buttons)};
_.p.computeDisableInteraction=function(){var h;return!((h=this.data)==null?0:h.navigationEndpoint)};
_.p.hasSingularTopStandaloneBadge=function(){var h;return!((h=this.data)==null||!h.topStandaloneBadge)};
_.ze.Object.defineProperties(J3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("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 h;return this.hasSingularTopStandaloneBadge()?[(h=this.data)==null?void 0:h.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var h;return this.shouldShowTopBadges?((h=this.data)==null?void 0:h.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
J3.prototype.disableInteractionChanged=J3.prototype.disableInteractionChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],J3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],J3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],J3.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],J3.prototype,"ytdLockupBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],J3.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.V("design:type",Boolean)],J3.prototype,"metaBlockEmpty",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],J3.prototype,"isGridViewEnabled",void 0);_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J3.prototype,"watchFeedBigThumbs",null);
_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],J3.prototype,"thumbnailWidth",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],J3.prototype,"isShortsStyle",void 0);_.Y([_.x(),_.V("design:type",Object)],J3.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.V("design:type",Boolean)],J3.prototype,"hasOneLineTitle",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],J3.prototype,"hideThumbnail",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J3.prototype,"forceOneLineTitle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.V("design:type",Boolean)],J3.prototype,"disableInteraction",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],J3.prototype,"musicMetadataVideoLockup",void 0);
_.Y([_.Nm("disableInteraction"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J3.prototype,"disableInteractionChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J3.prototype,"shouldShowTopBadges",null);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],J3.prototype,"topBadges",null);
_.Y([_.S("shouldShowTopBadges","data"),_.V("design:type",Array),_.V("design:paramtypes",[])],J3.prototype,"inlineMetadataBadges",null);_.Y([_.S("shouldShowTopBadges"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],J3.prototype,"shouldShowBadgesBelowMetadata",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],J3.prototype,"compactTitleClass",null);_.Y([_.K({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],J3);
_.X(J3,"ytd-compact-video-renderer",function(){if(hKB!==void 0)return hKB;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return hKB=h},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var EVf;_.$P("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var em=function(){return _.D.apply(this,arguments)||this};
_.f(em,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],em.prototype,"data",void 0);_.Y([_.K({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],em);
_.X(em,"ytd-counterfactual-renderer",function(){if(EVf!==void 0)return EVf;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return EVf=h},{mode:1});var gVC;var qS=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;return h};
_.f(qS,_.D);qS.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.GF().resolve(_.zF).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
qS.prototype.computeHidden=function(h){return!!h};
_.ze.Object.defineProperties(qS.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}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.V("design:type",Object)],qS.prototype,"hidden",void 0);_.Y([_.S("data.label"),_.V("design:type",String),_.V("design:paramtypes",[])],qS.prototype,"label",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],qS.prototype,"value",null);
_.Y([_.K({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],qS);
_.X(qS,"ytd-dropdown-item-renderer",function(){if(gVC!==void 0)return gVC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return gVC=h},{mode:1});var Zil;var M7D;var fY=function(){return _.D.apply(this,arguments)||this};
_.f(fY,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fY.prototype,"data",void 0);_.Y([_.x({computed:"getSimpleString(data.label)"}),_.V("design:type",String)],fY.prototype,"label",void 0);_.Y([_.K({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],fY);
_.X(fY,"ytd-navigation-dropdown-item-renderer",function(){if(M7D!==void 0)return M7D;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return M7D=h},{mode:1});var NS=function(){var h=_.D.apply(this,arguments)||this;h.disabled=!1;h.value="";h.noLabelFloat=!1;h.noUnderline=!1;h.usePrimaryColor=!1;h.hasBackground=!1;h.verticalAlign="top";h.autosize=!1;h.minAutosizeWidth=100;h.autosizeFont="14px Roboto";return h};
_.f(NS,_.D);_.p=NS.prototype;_.p.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.p.open=function(){this.inputEl.open()};
_.p.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.p.dataChanged=function(){this.reset()};
_.p.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("value-changed",this.value))};
_.p.stopPropagation=function(h){h.stopPropagation()};
_.p.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var h=this.canvas.getContext("2d");h&&(h.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(h.measureText(this.inputEl.value).width)+24)+"px")}};
_.p.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var h=0,E=this.data.entries.length;h<E;h++){var g=this.data.entries[h],Z;for(Z in g)if(g.hasOwnProperty(Z)){var M=g[Z];if("isSelected"in M&&M.isSelected)return"stringValue"in M?M.stringValue||"":"int32Value"in M?M.int32Value||0:0}}return null};
_.p.updateValueFromBinding=function(h){this.value=h.detail.value};
_.ze.Object.defineProperties(NS.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 h=0,E=this.data.entries.length;h<E;h++){var g=this.data.entries[h],Z;for(Z in g)if(g.hasOwnProperty(Z)){var M=g[Z];if("isSelected"in M&&M.isSelected&&"label"in M)return this.ytRendererBehavior.getSimpleString(M.label)}}return null}}});
NS.prototype.autoSizeLabel=NS.prototype.autoSizeLabel;NS.prototype.stopPropagation=NS.prototype.stopPropagation;NS.prototype.valueChangedForBinding=NS.prototype.valueChangedForBinding;NS.prototype.dataChanged=NS.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],NS.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NS.prototype,"disabled",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"value",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"noLabelFloat",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NS.prototype,"noUnderline",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],NS.prototype,"theme",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NS.prototype,"usePrimaryColor",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NS.prototype,"hasBackground",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"verticalAlign",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"autosize",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"minAutosizeWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],NS.prototype,"autosizeFont",void 0);
_.Y([_.Sg("#entries"),_.V("design:type",Object)],NS.prototype,"entries",void 0);_.Y([_.Sg("#input"),_.V("design:type",Object)],NS.prototype,"inputEl",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NS.prototype,"dataChanged",null);_.Y([_.lq("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NS.prototype,"valueChangedForBinding",null);
_.Y([_.f3("iron-overlay-opened"),_.f3("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NS.prototype,"stopPropagation",null);_.Y([_.f3("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NS.prototype,"autoSizeLabel",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],NS.prototype,"label",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],NS);
_.X(NS,"ytd-dropdown-renderer",function(){if(Zil!==void 0)return Zil;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Zil=h},{mode:1});var WLB;var t3=function(){var h=_.D.apply(this,arguments)||this;h.isConstrainedList=!1;return h};
_.f(t3,_.D);t3.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"}}}};
t3.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
t3.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
t3.prototype.computeViewAllHidden=function(h,E){return h||!E.viewAllEndpoint};
t3.prototype.fillRestIfNoShowMore=t3.prototype.fillRestIfNoShowMore;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],t3.prototype,"ytLazyListBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],t3.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],t3.prototype,"isConstrainedList",void 0);_.Y([_.lq("data","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],t3.prototype,"fillRestIfNoShowMore",null);_.Y([_.K({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],t3);
_.X(t3,"ytd-expanded-shelf-contents-renderer",function(){if(WLB!==void 0)return WLB;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return WLB=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var p2k;var Sm=function(){return _.D.apply(this,arguments)||this};
_.f(Sm,_.D);Sm.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Sm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Sm.prototype,"data",void 0);_.Y([_.K({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Sm);
_.X(Sm,"ytd-feed-channel-filter-header-renderer",function(){if(p2k!==void 0)return p2k;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return p2k=h},{mode:1});var GYl;var zKf;var arl;var xC=function(){return _.D.apply(this,arguments)||this};
_.f(xC,_.D);_.p=xC.prototype;_.p.onClick=function(h){var E,g=(E=this.data)==null?void 0:E.sectionEndpoint;!_.MI(_.Gw(h),this.hostElement,["A".toString()])&&g&&_.Ra(this.hostElement,"yt-navigate",{endpoint:g})};
_.p.computeHasSectionEndpoint=function(h){return(h==null?void 0:h.sectionEndpoint)!==void 0};
_.p.computeShowHeaderAsLink=function(h){return(h==null?void 0:h.header)!==void 0&&(h==null?void 0:h.sectionEndpoint)!==void 0};
_.p.computeShowSubheaderAsLink=function(h){return(h==null?void 0:h.subheader)!==void 0&&(h==null?void 0:h.sectionEndpoint)!==void 0&&(h==null?void 0:h.header)===void 0};
_.p.getHeaderAsLinkClass=function(h){var E=[],g;(h==null?0:(g=h.headerIcon)==null?0:g.iconType)&&E.push("header-link-active");return E.join(" ")};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xC.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],xC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xC.prototype,"data",void 0);
_.Y([_.x({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xC.prototype,"hasSectionEndpoint",void 0);_.Y([_.x({computed:"computeShowHeaderAsLink(data)"}),_.V("design:type",Boolean)],xC.prototype,"showHeaderAsLink",void 0);_.Y([_.x({computed:"computeShowSubheaderAsLink(data)"}),_.V("design:type",Boolean)],xC.prototype,"showSubheaderAsLink",void 0);_.Y([_.K({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],xC);
_.X(xC,"ytd-medical-panel-section-renderer",function(){if(arl!==void 0)return arl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return arl=h},{mode:1});var wL=function(){var h=_.D.apply(this,arguments)||this;h.isExpanded=!1;h.roundedContainer=!0;h.skipRoundingTop=!1;h.toggleExpandableSection=function(){h.isExpanded=!h.isExpanded};
return h};
_.f(wL,_.D);
wL.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]]"}}}}}};
wL.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
wL.prototype.dataChanged=wL.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wL.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],wL.prototype,"isExpanded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"roundedContainer",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wL.prototype,"skipRoundingTop",void 0);_.Y([_.x(),_.V("design:type",Object)],wL.prototype,"toggleExpandableSection",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wL.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],wL);
_.X(wL,"ytd-medical-panel-content-renderer",function(){if(zKf!==void 0)return zKf;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return zKf=h},{mode:1});_.$P("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var DS=function(){var h=_.D.apply(this,arguments)||this;h.roundedContainer=!0;h.extractOverlay=!1;h.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");h.hasTitle=!1;h.linkIcon="OPEN_IN_NEW";h.isDismissed=!1;return h};
_.f(DS,_.D);DS.prototype.onOverlayConditionsChange=function(){var h=_.UB(this.hostElement).querySelector("ytd-info-panel-content-renderer");h&&(h.set("extractOverlay",this.extractOverlay),h.set("roundedContainer",this.roundedContainer))};
DS.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]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
DS.prototype.computeHasTitle=function(h){return!(h==null||!h.title)};
DS.prototype.onClick=function(h){var E,g=(E=this.data)==null?void 0:E.headerEndpoint;!_.MI(_.Gw(h),this.hostElement,["BUTTON".toString()])&&g&&this.ytComponentBehavior.resolveCommand(g)};
_.ze.Object.defineProperties(DS.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 h;return((h=this.data)==null?void 0:h.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.disableBottomDivider)||!((E=this.data)==null?0:E.title)}}});
DS.prototype.onOverlayConditionsChange=DS.prototype.onOverlayConditionsChange;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],DS.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],DS.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],DS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],DS.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],DS.prototype,"extractOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],DS.prototype,"amsterdamEnabled",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Object)],DS.prototype,"hasTitle",void 0);
_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.background"),_.V("design:type",Object),_.V("design:paramtypes",[])],DS.prototype,"background",null);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],DS.prototype,"titleStyle",null);
_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data.titleStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],DS.prototype,"showLinkIcon",null);_.Y([_.x(),_.V("design:type",String)],DS.prototype,"linkIcon",void 0);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DS.prototype,"hideDivider",null);
_.Y([_.x({selectorArgs:["data.dismissStateEntityKey"],selector:function(h,E){h=_.Jj(h.entities,"dismissState",E);return(h==null?void 0:h.isDismissed)||(h==null?void 0:h.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(h==null?void 0:h.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.V("design:type",Object)],DS.prototype,"isDismissed",void 0);_.Y([_.Nm("roundedContainer","extractOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DS.prototype,"onOverlayConditionsChange",null);_.Y([_.K({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],DS);
_.X(DS,"ytd-info-panel-container-renderer",function(){if(GYl!==void 0)return GYl;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GYl=h},{mode:1});var c5M;_.$P("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var lH=function(){return _.D.apply(this,arguments)||this};
_.f(lH,_.D);lH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
lH.prototype.computeStyle=function(h){return h?h:""};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lH.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.V("design:type",String)],lH.prototype,"titleStyle",void 0);
_.Y([_.K({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],lH);
_.BK()(lH,"ytd-item-section-header-renderer",function(){if(c5M===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);c5M=h}h=c5M;return h},{allowedProps:["data"],
mode:1});var iil;var oVM,Irf=function(){return oVM!==void 0?oVM:oVM=document.createElement("template")};
document.head.appendChild(Irf().content);var RKD;_.rL=new _.Ps("VOTING_ANIMATION_CONTROLLER_TOKEN");var BiB=_.O(function(h){var E=h.data;var g=_.hf("div"),Z=_.hf("div");h=_.G(_.Bm("VOTE_STATUS_NONE",void 0,"YPH5mf"));var M=h.next().value,W=h.next().value,z=_.qI(HpM,function(){var d;return(d=E())==null?void 0:d.entityKey}),c=_.J("web_enable_voting_animation")||_.J("enable_music_web_cairo_voting_animation");
_.vJ(function(){var d;((d=E().initialState)==null?0:d.status)&&W(E().initialState.status)});
var I=function(){var d,C,q=(C=(d=E().initialState)==null?void 0:d.votes)!=null?C:0,w;d=(w=E().initialState)==null?void 0:w.status;return d==="VOTE_STATUS_UPVOTED"?q-1:d==="VOTE_STATUS_DOWNVOTED"?q+1:q},B=function(){return M()==="VOTE_STATUS_UPVOTED"?I()+1:M()==="VOTE_STATUS_DOWNVOTED"?I()-1:I()},U=function(d){var C=d?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
W(C);var q=B(),w=_.GF().resolve(_.pl(_.rL)),r=z();r&&(d&&(r==null?0:r.upvoteDefaultButtonOnTap)?_.Tl(r.upvoteDefaultButtonOnTap,{form:{element:g.value},disableClickTracking:!0}):(r==null?0:r.upvoteToggledButtonOnTap)&&_.Tl(r.upvoteToggledButtonOnTap,{form:{element:g.value},disableClickTracking:!0}));var v;d=(v=r==null?void 0:r.enableOptimisticReordering)!=null?v:E().enableOptimisticReordering;c&&w&&E().itemId&&d&&PZC(w,E().itemId,q,C)},L=function(d){var C=d?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
W(C);var q=B(),w=_.GF().resolve(_.pl(_.rL)),r=z();r&&(d&&(r==null?0:r.downvoteDefaultButtonOnTap)?_.Tl(r.downvoteDefaultButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}):(r==null?0:r.downvoteToggledButtonOnTap)&&_.Tl(r.downvoteToggledButtonOnTap,{form:{element:Z.value},disableClickTracking:!0}));var v;d=(v=r==null?void 0:r.enableOptimisticReordering)!=null?v:E().enableOptimisticReordering;c&&w&&E().itemId&&d&&PZC(w,E().itemId,q,C)};
h={};h=_.CO("ytVotingViewModelVoteCount",(h.ytVotingViewModelVoteCountDisabled=function(){return E().isDisabled},h));
return _.R("voting-view-model",{class:"ytVotingViewModelHost"},_.R("div",{el:g},_.R(_.Sv,{data:function(){var d=_.e(E().upvoteButton,_.Ix);return{toggleButtonViewModel:Object.assign({},d,{isToggled:M()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(d){return _.R(_.Z7,{data:d.data,
onToggle:U})}})),_.R("div",{class:h},function(){var d,C,q;
return M()==="VOTE_STATUS_UPVOTED"?(d=E().initialState)==null?void 0:d.compactVotesUpvoted:M()==="VOTE_STATUS_DOWNVOTED"?(C=E().initialState)==null?void 0:C.compactVotesDownvoted:(q=E().initialState)==null?void 0:q.compactVotes}),_.R("div",{el:Z},_.R(_.Sv,{data:function(){var d=_.e(E().downvoteButton,_.Ix);
return{toggleButtonViewModel:Object.assign({},d,{isToggled:M()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(d){return _.R(_.Z7,{data:d.data,
onToggle:L})}})))},"ac");_.I9(_.O(function(h){var E=h.data;return _.R("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.R("div",{class:_.CO("ytEngagementBarViewModelEngagementBarWrapper",h.className)},_.R(_.Sv,{data:function(){return E().actions}},{votingViewModel:BiB})))},"bc"),"engagement-bar-view-model",{props:{data:_.C6,
className:_.C6}});var m0=function(){var h=_.D.apply(this,arguments)||this;h.playlistVotingAnimationEnabled=_.J("web_enable_voting_animation");h.downloadProgress=0;h.transferState="TRANSFER_STATE_UNKNOWN";h.downloadState="DOWNLOAD_STATE_UNKNOWN";h.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";h.offlineVideoPolicyExpirationTimestamp=0;return h};
_.f(m0,_.D);_.p=m0.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.p.canReorderChanged=function(){this.persistentDragHandle=_.J("kevlar_playlist_drag_handles")&&this.canReorder};
_.p.onDrag=function(){if(this.thumbnail){var h=_.UB(this.thumbnail).querySelector("yt-image");h&&(h.shouldRenderLazy=!1)}};
_.p.onMenuOverlayChanged=function(h,E){this.menuOpened=E};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.p.onContentsTap=function(h){var E,g=(E=this.data)==null?void 0:E.serviceEndpoints;if(g&&g.length===1&&_.e(g[0],sBO)&&!_.MI(_.Gw(h),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(g[0]);else{var Z;(E=(Z=this.data)==null?void 0:Z.navigationEndpoint)&&_.J("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?UWC(_.GF().resolve(_.Yu),E):(_.sU().playlistSuggestionsShelfActivation=
!0,_.LLM(_.GF().resolve(_.Yu),E)):E&&!_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.J("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Ra(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))}};
_.p.computeStyle=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(h){return h==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.p.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=p4M(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.p.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.p.dataChanged=function(){if(this.data){var h,E,g,Z=((h=this.downloadRenderData)==null?void 0:h.badges)&&((E=this.downloadRenderData)==null?void 0:E.badges)!==((g=this.data)==null?void 0:g.badges),M,W,z;h=((M=this.downloadRenderData)==null?void 0:M.thumbnailOverlays)&&((W=this.downloadRenderData)==null?void 0:W.thumbnailOverlays)!==((z=this.data)==null?void 0:z.thumbnailOverlays);(!this.downloadRenderData||Z||h)&&this.downloadStateChanged()}};
_.p.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var h,E,g=(h=this.data.menu)==null?void 0:(E=h.menuRenderer)==null?void 0:E.items;if(g)for(h=_.G(g),E=h.next();!E.done;E=h.next())if(E=E.value,g=void 0,_.e((g=E.menuServiceItemRenderer)==null?void 0:g.serviceEndpoint,_.M8)){var Z=g=void 0,M=void 0;E=(g=E)==null?void 0:(Z=g.menuServiceItemRenderer)==null?void 0:(M=Z.serviceEndpoint)==null?void 0:M.playlistEditEndpoint;M=Z=void 0;if(g=(Z=E)==null?void 0:(M=Z.actions)==null?void 0:
M[0])Z=void 0,g.setVideoId=(Z=this.data)==null?void 0:Z.setVideoId;M=Z=g=void 0;if(E=(g=E)==null?void 0:(Z=g.clientActions)==null?void 0:(M=Z[0])==null?void 0:M.playlistRemoveVideosAction)g=void 0,E.setVideoIds=[(g=this.data)==null?void 0:g.setVideoId]}}};
_.ze.Object.defineProperties(m0.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
m0.prototype.setVideoIdChanged=m0.prototype.setVideoIdChanged;m0.prototype.dataChanged=m0.prototype.dataChanged;m0.prototype.downloadStateChanged=m0.prototype.downloadStateChanged;m0.prototype.onMenuOverlayChanged=m0.prototype.onMenuOverlayChanged;m0.prototype.canReorderChanged=m0.prototype.canReorderChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],m0.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],m0.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],m0.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],m0.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],m0.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"canReorder",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"menuOpened",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"handleIsHovered",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"persistentDragHandle",void 0);_.Y([_.x(),_.V("design:type",Object)],m0.prototype,"downloadRenderData",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],m0.prototype,"styleType",void 0);_.Y([_.x({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],m0.prototype,"thumbnailWidth",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"isDownloads",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],m0.prototype,"playlistVotingAnimationEnabled",void 0);
_.Y([_.x({selector:Aj,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"downloadProgress",void 0);_.Y([_.x(),_.V("design:type",Number)],m0.prototype,"relativeDateReference",void 0);_.Y([_.x({selector:_.y7,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"transferState",void 0);_.Y([_.x({selector:fId,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"downloadState",void 0);
_.Y([_.x({selector:cca,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"offlinePolicyAction",void 0);_.Y([_.x({selector:iSM,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.Y([_.x({selector:IIu,selectorArgs:["data.videoId"]}),_.V("design:type",Object)],m0.prototype,"entityInfo",void 0);_.Y([_.x({selector:_.so}),_.V("design:type",Boolean)],m0.prototype,"miniplayerIsActive",void 0);
_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],m0.prototype,"playlistVideoId",null);_.Y([_.Sg("#thumbnail"),_.V("design:type",Object)],m0.prototype,"thumbnail",void 0);_.Y([_.lq("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m0.prototype,"canReorderChanged",null);
_.Y([_.f3("yt-menu-overlay-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Boolean]),_.V("design:returntype")],m0.prototype,"onMenuOverlayChanged",null);_.Y([_.lq("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m0.prototype,"downloadStateChanged",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m0.prototype,"dataChanged",null);_.Y([_.lq("data.setVideoId"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m0.prototype,"setVideoIdChanged",null);_.Y([_.K({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],m0);
_.X(m0,"ytd-playlist-video-renderer",function(){if(RKD!==void 0)return RKD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);h.content.insertBefore(Irf().content.cloneNode(!0),h.content.firstChild);return RKD=h},{mode:1});var jrM;var v1=function(){return _.D.apply(this,arguments)||this};
_.f(v1,_.D);_.Y([_.x(),_.V("design:type",Object)],v1.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],v1.prototype,"rendererBehavior",void 0);_.Y([_.K({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],v1);
_.X(v1,"ytd-premium-browse-footer-renderer",function(){if(jrM!==void 0)return jrM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jrM=h},{mode:1});var dWH;var H1=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return h};
_.f(H1,_.D);_.p=H1.prototype;_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.handleDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.computeHeaderLogoThumbnail=function(h,E){if(h)return E?h.darkLogo:h.lightLogo};
_.p.computeHeaderLogoHeight=function(h,E){var g,Z,M;return(h=(g=this.computeHeaderLogoThumbnail(h,E))==null?void 0:(Z=g.thumbnails)==null?void 0:(M=Z[0])==null?void 0:M.height)&&h%31===0?"31":"24"};
_.p.computeHeaderLogoMarginBottom=function(h,E){return this.computeHeaderLogoHeight(h,E)==="24"?"0":"-7"};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],H1.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],H1.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],H1.prototype,"isDarkTheme",void 0);_.Y([_.x({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.V("design:type",Object)],H1.prototype,"themeLogo",void 0);
_.Y([_.x({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.V("design:type",String)],H1.prototype,"logoHeight",void 0);_.Y([_.x({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.V("design:type",String)],H1.prototype,"logoMarginBottom",void 0);_.Y([_.K({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],H1);
_.X(H1,"ytd-primetime-promo-header-renderer",function(){if(dWH!==void 0)return dWH;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dWH=h},{mode:1});var CZC;_.$C=_.O(function(h){var E=h.className;var g=h.data;var Z=h.isOverlay;var M=h.maxLinesOverride;var W=h.useMediumText;var z=function(){return g().alwaysShowTruncationText},c=function(){return g().truncationText},I=function(){return W!==void 0&&W()?"medium":"small"},B=function(){return Z!==void 0&&Z()?"overlay":"default"},U=function(){var q,w;
return(w=(q=_.e(g().rendererContext,_.te))==null?void 0:q.label)!=null?w:""};
h=_.G(_.Bm(!1,void 0,"OKr1o"));var L=h.next().value,d=h.next().value;h=_.J7(function(){g().expandOnTap&&d(!L());return!1});
var C={};return _.R("yt-description-preview-view-model",{el:_.zT(_.n4(function(){return g().rendererContext})),
class:_.CO("ytDescriptionPreviewViewModelHost",E,(C.ytDescriptionPreviewViewModelClickable=function(){var q;return!((q=_.e(g().rendererContext,dnZ))==null||!q.onTap)},C.ytDescriptionPreviewViewModelIsOverlay=Z,C)),
"on:click":h},_.R(_.P,{cond:function(){return g().description},
then:function(q){return _.R(_.P,{cond:L,then:function(){var w={};return _.R("div",{class:_.CO("ytDescriptionPreviewViewModelDescription",(w.ytDescriptionPreviewViewModelDescriptionMediumText=W,w))},_.R(_.dK,{text:q}))},
else:function(){return _.R(xED,{text:q,alwaysShowTruncationText:z,truncationText:c,maxLines:function(){var w;return(w=M==null?void 0:M())!=null?w:g().maxLines},
textStyle:B,accessibilityLabel:U,textSize:I})}})}}))},"cc");
_.$C.idomCompat=!0;var eKH=_.O(function(h){var E=_.J7(function(M){var W;(W=h.onClick)==null||W.call(h,M)}),g={},Z={};
return _.R("yt-shelf-header-layout",{class:_.CO("yt-shelf-header-layout",(g["yt-shelf-header-layout--disable-horizontal-padding"]=h.disableHorizontalPadding,g["yt-shelf-header-layout--disable-vertical-padding"]=h.disableVerticalPadding,g["yt-shelf-header-layout--responsive"]=h.useResponsiveLayout,g["yt-shelf-header-layout--narrow"]=function(){var M,W;return((M=h.useResponsiveLayout)==null?void 0:M.call(h))&&((W=h.forceSmallLayout)==null?void 0:W.call(h))},g["yt-shelf-header-layout--is-overlay"]=h.isOverlay,
g["yt-shelf-header-layout--tappable"]=h.isInteractive,g)),
"on:click":E,tabindex:function(){var M;return((M=h.isInteractive)==null?0:M.call(h))?0:void 0}},_.R("div",{class:"yt-shelf-header-layout__header-row"},_.R(_.P,{cond:h.leadingIcon,
then:function(M){return _.R("div",{class:"yt-shelf-header-layout__leading-icon"},_.R(_.Ni,{icon:M}))},
else:function(){return _.R(_.P,{cond:h.hasLeadingImage,then:function(){var M,W={};return _.R("div",{class:_.CO("yt-shelf-header-layout__leading-image",(W["yt-shelf-header-layout__leading-image--circular-image"]=h.circularImage,W))},(M=h.leadingImage)==null?void 0:M.call(h))}})}}),_.R("div",{class:"yt-shelf-header-layout__label-container"},_.R(_.P,{cond:h.hasSuperlabel,
then:function(){var M;return _.R("div",{class:"yt-shelf-header-layout__superlabel"},(M=h.superlabel)==null?void 0:M.call(h))}}),_.R("div",{class:"yt-shelf-header-layout__title-row"},_.R(J5f,{text:h.title,
className:_.CO("yt-shelf-header-layout__title",(Z["yt-shelf-header-layout__title--small-title"]=h.forceSmallLayout,Z)),tagLevel:h.tagLevel}),_.R(_.P,{cond:h.hasDetail,then:function(){var M;return _.R("div",{class:"yt-shelf-header-layout__detail"},(M=h.detail)==null?void 0:M.call(h))}})),_.R(_.P,{cond:h.hasSublabel,
then:function(){var M;return _.R("div",{class:"yt-shelf-header-layout__sublabel"},(M=h.sublabel)==null?void 0:M.call(h))}})),_.R(_.P,{cond:h.hasTrailingActions,
then:function(){var M;return _.R("div",{class:"yt-shelf-header-layout__trailing-actions"},(M=h.trailingActions)==null?void 0:M.call(h))}})),_.R(_.P,{cond:h.hasBottomAccessory,
then:function(){var M;return(M=h.bottomAccessory)==null?void 0:M.call(h)}}))},"dc");
eKH.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var J5f=_.O(function(h){var E=h.text;var g=h.className;var Z=h.tagLevel;return _.R(_.DG,null,_.R(_.x3,{when:function(){return(Z==null?void 0:Z())===0}},function(){return _.R("h2",{class:g},E())}),_.R(_.x3,{when:function(){return(Z==null?void 0:Z())===1}},function(){return _.R("h3",{class:g},E())}),_.R(_.x3,{when:function(){return(Z==null?void 0:Z())===2}},function(){return _.R("h4",{class:g},E())}),_.R(_.wX,null,function(){return _.R("h2",{class:g},E())}))},"ec");var Nif,qCB,frm;_.KY=_.O(function(h){var E=h.className;var g=h.data;var Z=h.disableHorizontalPadding;var M=h.disableVerticalPadding;var W=h.forceSmallLayout;var z=h.useResponsiveLayout;h=h.isOverlay;return _.R("yt-section-header-view-model",{class:_.CO("ytSectionHeaderViewModelHost",E),style:_.fO({"background-color":function(){return ep(g().backgroundColor)?_.uU(ep(g().backgroundColor)):void 0}})},_.R(eKH,{hasDetail:!1,
title:function(){return _.R(_.dK,{text:function(){return g().headline}})},
hasTitle:!0,sublabel:function(){return _.R(qCB,{data:g})},
hasSublabel:function(){return!!g().sublabel||!!g().bottomBadge},
superlabel:function(){return _.R(frm,{data:g})},
hasSuperlabel:function(){return!!g().superlabel||!!g().topBadge},
leadingImage:function(){return _.R(Nif,{leadingAccessory:function(){return g().leadingAccessory}})},
hasLeadingImage:function(){return!!g().leadingAccessory},
trailingActions:function(){return _.R(_.Sv,{data:function(){return g().trailingActions}},{flexibleActionsViewModel:_.pH})},
hasTrailingActions:function(){return!!g().trailingActions},
disableHorizontalPadding:Z,disableVerticalPadding:M,forceSmallLayout:W,useResponsiveLayout:z,isOverlay:h,isInteractive:function(){return!!_.K4(g().rendererContext)},
onClick:function(c){if(_.Oz(g().rendererContext)){var I=_.K4(g().rendererContext);I&&_.y1(I,{form:{element:c.target,event:c}})}},
bottomAccessory:function(){return _.R(_.Sv,{data:function(){return g().bottomAccessory}},{descriptionPreviewViewModel:_.$C})},
hasBottomAccessory:function(){return!!g().bottomAccessory}}))},"fc");
Nif=_.O(function(h){var E=h.leadingAccessory;return _.R(_.zt,null,_.R(_.P,{cond:function(){var g;return(g=E().image)!=null?g:_.yS(E().themedImage)},
then:function(g){return _.R(_.pO,{data:g,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.R(_.P,{cond:function(){return _.e(E().avatar,_.X5)},
then:function(g){return _.R(_.Mq,{data:g})}}))},"gc");
qCB=_.O(function(h){var E=h.data;return _.R(_.zt,null,_.R(_.P,{cond:function(){return _.e(E().bottomBadge,DJD)},
then:function(g){var Z={};return _.R(_.xz,{data:g,class:_.CO((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!g()&&!!E().sublabel},Z))})}}),_.R(_.P,{cond:function(){return E().sublabel},
then:function(g){return _.R(_.dK,{text:g})}}))},"hc");
frm=_.O(function(h){var E=h.data;return _.R(_.zt,null,_.R(_.P,{cond:function(){return _.e(E().topBadge,DJD)},
then:function(g){var Z={};return _.R(_.xz,{data:g,class:_.CO((Z.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!g()&&!!E().superlabel},Z))})}}),_.R(_.P,{cond:function(){return E().superlabel},
then:function(g){return _.R(_.dK,{text:g})}}))},"ic");_.I9(_.KY,"yt-section-header-view-model",{props:{data:_.C6,className:_.C6,disableHorizontalPadding:_.C6,disableVerticalPadding:_.C6,forceSmallLayout:_.C6,useResponsiveLayout:_.C6,isOverlay:_.C6}});_.$P("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Oi=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return h};
_.f(Oi,_.D);_.p=Oi.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.p.onDataChange=function(){var h=this;_.pQ(this,function(){h.updateItemVisibility()})};
_.p.onUpdateElementsPerRowAction=function(h){h&&this.elementsPerRow!==h&&(this.elementsPerRow=h,this.updateItemVisibility())};
_.p.updateItemVisibility=function(){var h=this;this.data&&this.data.panels&&_.UB(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(E,g){E.hidden=g>h.elementsPerRow-1})};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
Oi.prototype.onDataChange=Oi.prototype.onDataChange;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],Oi.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Oi.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Oi.prototype,"data",void 0);_.Y([_.x({value:3}),_.V("design:type",Number)],Oi.prototype,"elementsPerRow",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Oi.prototype,"onDataChange",null);_.Y([_.K({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Oi);
_.X(Oi,"ytd-primetime-promo-renderer",function(){if(CZC!==void 0)return CZC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return CZC=h},{mode:1});var t7f;var nY=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return h};
_.f(nY,_.D);nY.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
nY.prototype.handleButtonRefreshAction=function(h){if(h=_.e(h,ZAC))this.set("data.button",h.membershipButton),this.notifyPath("data.button")};
_.ze.Object.defineProperties(nY.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.avatars)==null?void 0:E.slice(0,8))||[]}}});
_.Y([_.x(),_.V("design:type",Object)],nY.prototype,"data",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],nY.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],nY.prototype,"rendererBehavior",void 0);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],nY.prototype,"avatars",null);
_.Y([_.K({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],nY);
_.X(nY,"ytd-recognition-shelf-renderer",function(){if(t7f!==void 0)return t7f;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return t7f=h},{mode:1});var SCF;var xWA;var XG=function(){var h=_.D.apply(this,arguments)||this;h.modernButtons=_.J("web_modern_buttons");return h};
_.f(XG,_.D);_.p=XG.prototype;
_.p.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.p.dataChanged=function(){this.collapsed=!0};
_.p.computeVisibleItems=function(h,E){return h!==void 0&&h.items?E?h.items.slice(0,this.data.collapsedItemCount):h.items:[]};
_.p.computeHideShowMore=function(h,E,g){return h>=E||!g};
_.p.computeHideShowAll=function(h,E,g){return!(h&&E)||g};
_.p.onMoreClick=function(){this.collapsed=!1};
_.ze.Object.defineProperties(XG.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.J("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.iN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.J("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
XG.prototype.dataChanged=XG.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],XG.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],XG.prototype,"isSearch",void 0);
_.Y([_.x({computed:"computeVisibleItems(data,collapsed)"}),_.V("design:type",Array)],XG.prototype,"visibleItems",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],XG.prototype,"collapsed",void 0);_.Y([_.x({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.V("design:type",Boolean)],XG.prototype,"hideShowMore",void 0);
_.Y([_.x({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.V("design:type",Boolean)],XG.prototype,"hideShowAll",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],XG.prototype,"modernButtons",void 0);_.Y([_.S("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],XG.prototype,"typographyBump",null);
_.Y([_.S("isSearch"),_.V("design:type",Object),_.V("design:paramtypes",[])],XG.prototype,"lockupExperiments",null);_.Y([_.S("isSearch"),_.V("design:type",String),_.V("design:paramtypes",[])],XG.prototype,"thumbnailWidth",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XG.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],XG);
_.X(XG,"ytd-vertical-list-renderer",function(){if(xWA!==void 0)return xWA;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return xWA=h},{mode:1});var w2M=_.uz(["#"]);_.$P("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var YC=function(){var h=_.D.apply(this,arguments)||this;h.isConstrainedList=!1;return h};
_.f(YC,_.D);_.p=YC.prototype;
_.p.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.p.computeThumbnailStyle=function(h){return h||""};
_.p.computePlaceAnnotationUnderTitle=function(){var h;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((h=this.data)==null?void 0:h.thumbnailStyle)||"")};
_.p.computeHrefWithDefault=function(h){return this.ytComponentBehavior.computeHref_(h)||_.ujO(w2M)};
_.p.computeIsPromoShelf=function(h){var E;return(h=h==null?void 0:(E=h[0])==null?void 0:E.metadataBadgeRenderer)?h.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.p.computePlaceBadgeBesideTitle=function(h){var E;return(h==null?0:(E=h[0])==null?0:E.metadataBadgeRenderer)?!this.computeIsPromoShelf(h):!1};
_.p.computeMenuIcon=function(h){return this.computeIsPromoShelf(h)?"yt-icons:more_vert":"yt-icons:more"};
_.p.onDataChange=function(){var h,E;((h=this.data)==null?0:(E=h.content)==null?0:E.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.p.onLockupRequested=function(h){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&h.detail&&h.detail.videoIds){for(var E=this.data.content.gridRenderer.items,g=new Set,Z=_.G(h.detail.videoIds),M=Z.next();!M.done;M=Z.next())g.add(M.value);h.detail.returnValue=E.filter(function(W){return W.gridVideoRenderer&&W.gridVideoRenderer.videoId&&g.has(W.gridVideoRenderer.videoId)}).map(function(W){return W.gridVideoRenderer})}};
_.p.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
YC.prototype.onLockupRequested=YC.prototype.onLockupRequested;YC.prototype.onDataChange=YC.prototype.onDataChange;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],YC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],YC.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],YC.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],YC.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],YC.prototype,"ironResizableBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],YC.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],YC.prototype,"isSearch",void 0);_.Y([_.x(),_.V("design:type",Object)],YC.prototype,"isConstrainedList",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("kevlar_fluid_dismiss")}}),
_.V("design:type",Boolean)],YC.prototype,"enableFluidDismiss",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.V("design:type",String)],YC.prototype,"thumbnailStyle",void 0);_.Y([_.x({computed:"computeMenuIcon(data.badges)"}),_.V("design:type",String)],YC.prototype,"menuIcon",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],YC.prototype,"onDataChange",null);
_.Y([_.f3("yt-lockup-requested"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],YC.prototype,"onLockupRequested",null);_.Y([_.K({is:"ytd-shelf-renderer",disableElementRegistration:!0})],YC);
_.X(YC,"ytd-shelf-renderer",function(){if(SCF!==void 0)return SCF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return SCF=h},{mode:1});var DWf;var si=function(){return _.D.apply(this,arguments)||this};
_.f(si,_.D);si.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ze.Object.defineProperties(si.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],si.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],si.prototype,"isPlaylist",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],si.prototype,"isClipList",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],si.prototype,"isPlaylistPageWithFilters",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],si.prototype,"hasTitle",null);_.Y([_.x(),_.S("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.V("design:type",Object),_.V("design:paramtypes",[])],si.prototype,"isRightAligned",null);
_.Y([_.K({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],si);
_.X(si,"ytd-sort-filter-header-renderer",function(){if(DWf!==void 0)return DWf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return DWf=h},{mode:1});var lrM;var VY=function(){var h=_.D.apply(this,arguments)||this;h.enableRightArrowHidden=_.J("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return h};
_.f(VY,_.D);VY.prototype.attached=function(){var h=this;this.enableRightArrowHidden&&(this.JSC$16387_throttledOnResize=new _.TD(function(){var E;(E=h.ytdHorizontalListBehavior)==null||E.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var E;
(E=h.JSC$16387_throttledOnResize)==null||E.fire()}),this.resizeObserver.observe(this.hostElement))};
VY.prototype.detached=function(){if(this.enableRightArrowHidden){var h;(h=this.resizeObserver)==null||h.disconnect();var E;(E=this.JSC$16387_throttledOnResize)==null||E.dispose()}};
VY.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]]"}}}}}};
VY.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ze.Object.defineProperties(VY.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.J("enable_creator_details_shelf_m2")){var h=[],E;((E=this.data)==null?0:E.creatorVideosButton)&&h.push(this.data.creatorVideosButton);var g;((g=this.data)==null?0:g.creatorAboutButton)&&h.push(this.data.creatorAboutButton);E=_.G(this.data.creatorCustomUrlButtons||[]);for(g=E.next();!g.done;g=E.next())h.push(g.value);return h}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.J("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],VY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],VY.prototype,"ytdHorizontalListBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],VY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],VY.prototype,"engagementPanel",void 0);
_.Y([_.x(),_.V("design:type",Object)],VY.prototype,"enableRightArrowHidden",void 0);_.Y([_.S("enableRightArrowHidden","atEnd"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VY.prototype,"hideRightArrow",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],VY.prototype,"creatorCustomUrlButtons",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data","creatorCustomUrlButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],VY.prototype,"showCreatorCustomUrlButtons",null);_.Y([_.S("showCreatorCustomUrlButtons"),_.V("design:type",Number),_.V("design:paramtypes",[])],VY.prototype,"channelAvatarSize",null);_.Y([_.K({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],VY);
_.X(VY,"ytd-video-description-infocards-section-renderer",function(){if(lrM!==void 0)return lrM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return lrM=h},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var r5l;var kC=function(){return _.D.apply(this,arguments)||this};
_.f(kC,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kC.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kC.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kC.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],kC.prototype,"infoIcon",void 0);_.Y([_.K({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],kC);
_.X(kC,"ytd-eom-settings-disclaimer-renderer",function(){if(r5l!==void 0)return r5l;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return r5l=h},{mode:1});var mWk;var yY=function(){return _.D.apply(this,arguments)||this};
_.f(yY,_.D);_.ze.Object.defineProperties(yY.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.suppressPaddingDisclaimer)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],yY.prototype,"componentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yY.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],yY.prototype,"suppressPaddingDisclaimer",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],yY);
_.X(yY,"ytd-product-list-header-renderer",function(){if(mWk!==void 0)return mWk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mWk=h},{mode:1});var vVM;var FG=function(){return _.D.apply(this,arguments)||this};
_.f(FG,_.D);FG.prototype.computeThumbnailStyle=function(h){if(h&&(h=_.bU(h)))return"background-color:"+h+";"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FG.prototype,"rendererBehaviors",void 0);_.Y([_.x(),_.V("design:type",Object)],FG.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],FG);
_.X(FG,"ytd-hashtag-tile-renderer",function(){if(vVM!==void 0)return vVM;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vVM=h},{mode:1});var HiD;var A3=function(){return _.D.apply(this,arguments)||this};
_.f(A3,_.D);A3.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],A3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],A3.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],A3);
_.X(A3,"ytd-sponsorships-alert-renderer",function(){if(HiD!==void 0)return HiD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HiD=h},{mode:1});var $Wl;var TO=function(){return _.D.apply(this,arguments)||this};
_.f(TO,_.D);TO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ze.Object.defineProperties(TO.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.J("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.J("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.Y([_.t(_.iL),_.V("design:type",Object)],TO.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],TO.prototype,"ytdLockupBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],TO.prototype,"isGridViewEnabled",void 0);
_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],TO.prototype,"watchFeedBigThumbs",null);_.Y([_.S("isGridViewEnabled"),_.x({reflectToAttribute:!0}),_.V("design:type",String),_.V("design:paramtypes",[])],TO.prototype,"thumbnailWidth",null);_.Y([_.x(),_.V("design:type",Object)],TO.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],TO);
_.X(TO,"ytd-compact-movie-renderer",function(){if($Wl!==void 0)return $Wl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return $Wl=h},{mode:1});var KLM;var Oil;var nVB=_.nF("HTML_DIR")==="rtl",bH=function(){var h=_.D.apply(this,arguments)||this;h.engagementPanel=!1;h.maxLines=2;h.expandButtonOffset=0;h.showExpandButton=!1;h.isTruncated=!1;h.isExpanded=!1;h.currentSnippetType=2;h.alwaysShowExpandButton=!1;h.JSC$16404_lastWidth=NaN;h.observer=null;h.left=0;h.right=0;h.mid=0;h.longestSnippetLength=0;h.isFinalSnippet=!1;h.isFirstMutation=!1;h.isResetMutation=!1;h.OVERFLOW_THRESHOLD=5;return h};
_.f(bH,_.D);_.p=bH.prototype;_.p.onClick=function(h){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;if((E=window.getSelection())==null||!E.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.p.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.p.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.p.updateTextOnSnippetTypeChange=function(){_.J("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.p.setUpBinarySearch=function(h){h=h*this.maxLines/8;this.left=0;var E,g;this.right=Math.min(h*2,(g=(E=this.simpleText)==null?void 0:E.length)!=null?g:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.p.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.p.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.O$(new _.xX("AttributedSnippet is empty when the description is not empty",this.text))};
_.p.mutationCallback=function(){if(this.observer!=null){var h=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var E=Math.floor(h*this.maxLines/8);this.setSnippetText(this.text,E);E!==0||this.attributedTextIsEmpty()||_.O$(new _.xX("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;h=h*this.maxLines/8;this.left=0;var g;this.right=Math.min(h*2,(g=(E=this.simpleText)==null?void 0:E.length)!=null?g:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.p.mutationObserve=function(h){var E=this;this.observer||(this.observer=new MutationObserver(function(){E.mutationCallback()}));
this.observer.observe(h,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.p.attached=function(){var h=this;_.pQ(this,function(){h.resize()})};
_.p.isExpandedChanged=function(){_.Ra(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.p.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.p.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var h="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((nVB?"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",h);this.snippetContainer.style.setProperty("mask-image",
h)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(nVB?"right":"left",this.expandButtonOffset+"px")};
_.p.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.p.setSnippetText=function(h,E){h||(h={});if(_.ZC(h)){var g=EL(h,E);g.attachmentRuns||g.commandRuns||g.decorationRuns||g.styleRuns||g.alignment||g.lineBreakMode?this.attributedSnippetTextEl?(_.J("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=EL(h,E),this.attributedSnippetTextEl.headerRuns=I8x(E,this.headerRuns)):this.attributedSnippetText={data:EL(h,E),headerRuns:I8x(E,this.headerRuns)},this.currentSnippetType=0):_.O$(new _.xX("Tried to set snippet text when HTML element was null",
h)):(this.plainSnippetText.textContent=Q1(h.content||"",E),this.currentSnippetType=2)}else{a:{g=$LW(h,E);if(g.runs){g=_.G(g.runs);for(var Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,Z.bold||Z.deemphasize||Z.italics||Z.strikethrough||Z.textColor||Z.navigationEndpoint||_.e(Z,YB)){g=!0;break a}}g=!1}g?this.formattedSnippetText?(this.formattedSnippetText.text=$LW(h,E),this.currentSnippetType=1):_.O$(new _.xX("Tried to set snippet text when HTML element was null",h)):(this.plainSnippetText.textContent=
Q1(_.Wp(h),E),this.currentSnippetType=2)}};
_.p.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.p.attributedTextIsEmpty=function(){var h=this.text;if(!_.ZC(h))return!0;var E;return((E=h.content)==null?void 0:E.length)===0?!0:!1};
_.p.resize=function(h){if(this.snippetText){if(h===void 0?0:h)this.JSC$16404_lastWidth=NaN;var E=this.hostElement.offsetWidth;if(E!==this.JSC$16404_lastWidth&&!this.isExpanded)if(this.JSC$16404_lastWidth=E,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;h=0;var g,Z;E=Math.min(E*this.maxLines/8*2,(Z=(g=this.simpleText)==null?void 0:g.length)!=null?Z:0)-1;for(g=0;h<=E;)Z=Math.floor(h+(E-h)/2),this.setSnippetText(this.text,Z),this.isOverflowing()?E=Z-1:(h=Z+1,g=Z);this.setSnippetText(this.text,g);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.p.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.p.onExpandClick=function(){var h=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.J("inline_expander_reset_focus_killswitch")||_.pQ(this,function(){var E;((E=_.GF().resolve(_.pl(_.DX)))==null?0:E.isKeyBoardInUse())&&_.h1(h.hostElement)});
_.Ra(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.p.onCollapseClick=function(){this.collapse();_.Ra(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.p.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.p.computeExpandButtonOffset=function(){var h=this.expandSizer;return h?nVB?h.offsetParent?h.offsetParent.offsetWidth-h.offsetWidth-h.offsetLeft:0:h.offsetLeft:0};
_.ze.Object.defineProperties(bH.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.ZC(this.text)?this.text.content||"":_.Wp(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 _.ZC(this.text)?!0:this.text&&_.J("web_replace_formatted_with_attributed_string")&&KF$(this.text)?(this.text=_.X8(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}}});
bH.prototype.onTextChanged=bH.prototype.onTextChanged;bH.prototype.updateMaskAndExpandButtonOffset=bH.prototype.updateMaskAndExpandButtonOffset;bH.prototype.updateSnippetContainerMaxHeight=bH.prototype.updateSnippetContainerMaxHeight;bH.prototype.isExpandedChanged=bH.prototype.isExpandedChanged;bH.prototype.updateTextOnSnippetTypeChange=bH.prototype.updateTextOnSnippetTypeChange;bH.prototype.updateIsFormattedExpanded=bH.prototype.updateIsFormattedExpanded;bH.prototype.updateIsAttributedExpanded=bH.prototype.updateIsAttributedExpanded;
bH.prototype.onClick=bH.prototype.onClick;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],bH.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"text",void 0);_.Y([_.x(),_.V("design:type",Array)],bH.prototype,"headerRuns",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bH.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"maxLines",void 0);
_.Y([_.x(),_.V("design:type",String)],bH.prototype,"expandLabel",void 0);_.Y([_.x(),_.V("design:type",String)],bH.prototype,"collapseLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"expandCommand",void 0);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"expandButtonOffset",void 0);_.Y([_.S("text"),_.V("design:type",String),_.V("design:paramtypes",[])],bH.prototype,"simpleText",null);
_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bH.prototype,"onClick",null);_.Y([_.S("text","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"expandedText",null);_.Y([_.S("headerRuns","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"expandedHeaderRuns",null);
_.Y([_.S("text"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bH.prototype,"hasAttributedStringText",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bH.prototype,"showExpandButton",void 0);_.Y([_.S("collapseLabel","isExpanded"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"showCollapseButton",null);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"isTruncated",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bH.prototype,"isExpanded",void 0);_.Y([_.x(),_.V("design:type",Boolean)],bH.prototype,"isAttributedExpanded",void 0);_.Y([_.Nm("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"updateIsAttributedExpanded",null);_.Y([_.x(),_.V("design:type",Boolean)],bH.prototype,"isFormattedExpanded",void 0);
_.Y([_.Nm("isExpanded","hasAttributedStringText"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"updateIsFormattedExpanded",null);_.Y([_.x(),_.V("design:type",Number)],bH.prototype,"currentSnippetType",void 0);_.Y([_.S("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"useAttributedSnippet",null);
_.Y([_.S("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"useFormattedSnippet",null);_.Y([_.S("currentSnippetType"),_.V("design:type",Object),_.V("design:paramtypes",[])],bH.prototype,"usePlainSnippet",null);_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"alwaysShowExpandButton",void 0);_.Y([_.Nm("currentSnippetType"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"updateTextOnSnippetTypeChange",null);
_.Y([_.x(),_.V("design:type",Object)],bH.prototype,"attributedSnippetText",void 0);_.Y([_.Sg("#snippet"),_.V("design:type",HTMLElement)],bH.prototype,"snippetContainer",void 0);_.Y([_.Sg("#snippet-text"),_.V("design:type",HTMLElement)],bH.prototype,"snippetText",void 0);_.Y([_.Sg("#plain-snippet-text"),_.V("design:type",HTMLElement)],bH.prototype,"plainSnippetText",void 0);_.Y([_.Sg("#formatted-snippet-text"),_.V("design:type",Object)],bH.prototype,"formattedSnippetText",void 0);
_.Y([_.Sg("#attributed-snippet-text"),_.V("design:type",Object)],bH.prototype,"attributedSnippetTextEl",void 0);_.Y([_.Sg("#expand"),_.V("design:type",HTMLElement)],bH.prototype,"expandButton",void 0);_.Y([_.Sg("#expand-sizer"),_.V("design:type",HTMLElement)],bH.prototype,"expandSizer",void 0);_.Y([_.lq("isExpanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"isExpandedChanged",null);
_.Y([_.Nm("isExpanded","maxLines"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"updateSnippetContainerMaxHeight",null);_.Y([_.Nm("isTruncated","showExpandButton","expandButtonOffset"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"updateMaskAndExpandButtonOffset",null);
_.Y([_.lq("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bH.prototype,"onTextChanged",null);_.Y([_.K({is:"ytd-text-inline-expander",disableElementRegistration:!0})],bH);
_.X(bH,"ytd-text-inline-expander",function(){if(Oil===void 0){var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);Oil=h}h=Oil;return h},{mode:2});var uH=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return h};
_.f(uH,_.D);uH.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
uH.prototype.handleUpdateDescriptionAction=function(h){if(h=_.e(h,_.MRD))if(h.attributedDescription)this.set("data.attributedDescriptionBodyText",h.attributedDescription);else if(h.description){var E;((E=this.data)==null?0:E.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.X8(h.description)):this.set("data.descriptionBodyText",h.description)}};
_.ze.Object.defineProperties(uH.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.attributedDescriptionBodyText)||!((E=this.data)==null||!E.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null?0:h.collapsedLineCount){var E;return(E=this.data)==null?void 0:E.collapsedLineCount}h=_.cx("web_watch_description_collapsed_default_lines",12);if(_.J("ww_desc_line_page_size_ks"))return h;E=Math.round(_.wN().height*_.cx("web_watch_description_screen_height_percentage",.5)/20);return Math.max(E,h)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return(g=(h=this.data)==null?void 0:h.descriptionBodyText)!=null?g:(E=this.data)==null?void 0:E.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.sourceAttributions}}});
uH.prototype.panelContentVisibleChanged=uH.prototype.panelContentVisibleChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],uH.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uH.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],uH.prototype,"panelContentVisible",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],uH.prototype,"engagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],uH.prototype,"shortsPanel",void 0);_.Y([_.Sg("#inline-expander"),_.V("design:type",Object)],uH.prototype,"inlineExpander",void 0);
_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uH.prototype,"panelContentVisibleChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uH.prototype,"hasDescriptionText",null);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],uH.prototype,"collapsedLines",null);
_.Y([_.S("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.V("design:type",Object),_.V("design:paramtypes",[])],uH.prototype,"descriptionText",null);_.Y([_.S("data","data.headerRuns"),_.V("design:type",Object),_.V("design:paramtypes",[])],uH.prototype,"headerRuns",null);_.Y([_.S("data","data.sourceAttributions"),_.V("design:type",Object),_.V("design:paramtypes",[])],uH.prototype,"sourceAttributions",null);
_.Y([_.K({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],uH);
_.X(uH,"ytd-expandable-video-description-body-renderer",function(){if(KLM!==void 0)return KLM;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return KLM=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var X2B;var YCD=_.O(function(h){var E=h.data;return _.R("factoid-renderer",{class:"ytwFactoidRendererHost"},_.R("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return E().accessibilityText}},_.R("span",{class:"ytwFactoidRendererValue"},_.R(_.dK,{text:function(){return E().value}})),_.R("span",{class:"ytwFactoidRendererLabel"},_.R(_.dK,{text:function(){return E().label}}))))},"jc");_.I9(YCD,"factoid-renderer",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;return _.R("upload-time-factoid-renderer",null,_.R(_.Sv,{data:function(){return E().factoid}},{factoidRenderer:YCD}))},"kc"),"upload-time-factoid-renderer",{props:{data:_.c$}});_.I9(_.O(function(h){var E=h.data;return _.R("view-count-factoid-renderer",null,_.R(_.Sv,{data:function(){return E().factoid}},{factoidRenderer:YCD}))},"lc"),"view-count-factoid-renderer",{props:{data:_.c$}});var QY=function(){var h=_.D.apply(this,arguments)||this;h.shortsPanel=!1;h.engagementPanel=!1;h.watchWhileSdp=_.J("shorts_desktop_watch_while_sdp");return h};
_.f(QY,_.D);QY.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"}}}}};
_.ze.Object.defineProperties(QY.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var h;return(h=this.data)==null?void 0:h.channel}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],QY.prototype,"componentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],QY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],QY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QY.prototype,"shortsPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QY.prototype,"engagementPanel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QY.prototype,"watchWhileSdp",void 0);_.Y([_.S("shortsPanel","engagementPanel","data.channel"),_.V("design:type",Object),_.V("design:paramtypes",[])],QY.prototype,"showChannelInfo",null);_.Y([_.K({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],QY);
_.X(QY,"ytd-video-description-header-renderer",function(){if(X2B!==void 0)return X2B;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return X2B=h},{mode:1});var srM;var hP=function(){return _.D.apply(this,arguments)||this};
_.f(hP,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],hP.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],hP.prototype,"noPadding",void 0);_.Y([_.x(),_.V("design:type",Object)],hP.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],hP);
_.X(hP,"ytd-list-item-view-model",function(){if(srM!==void 0)return srM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return srM=h},{mode:1});var V7f;var kYk;var y5D;var FLF;var E5=function(){var h=_.D.apply(this,arguments)||this;h.adaptiveFullWidth=!1;h.modernButtons=_.J("web_modern_buttons");h.buttonOverrides={style:"call-to-action",type:"filled"};h.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return h};
_.f(E5,_.D);E5.prototype.handleSetTimestamp_=function(h){this.data&&this.data.shortUrl&&(_.UB(this.hostElement).querySelector("#share-url").value=h.isSet?_.hO(this.data.shortUrl,"t",h.timestamp):this.data.shortUrl)};
E5.prototype.handleSignalActionCopyShareUrl_=function(h,E){(_.J("killswitch_copy_link_target_check")||_.UB(this.hostElement).querySelector("#copy-button")===E)&&this.copyUrlToClipboard()};
E5.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.UB(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
E5.prototype.computeStyle_=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],E5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],E5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],E5.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.V("design:type",String)],E5.prototype,"rendererStyle",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],E5.prototype,"adaptiveFullWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],E5.prototype,"modernButtons",void 0);_.Y([_.x(),_.V("design:type",Object)],E5.prototype,"buttonOverrides",void 0);_.Y([_.yc({is:"yt-copy-link-renderer",disableElementRegistration:!0})],E5);
_.X(E5,"yt-copy-link-renderer",function(){if(FLF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;y5D===void 0&&(y5D=document.createElement("template"));var Z=y5D;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);FLF=h}h=FLF;return h},{mode:2});_.$P("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var go=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return h};
_.f(go,_.D);_.p=go.prototype;_.p.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.p.attached=function(){this.keyboardFocused=!1};
_.p.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var h=_.GF().resolve(_.pl(_.DX));h&&(this.keyboardFocused=h.isKeyBoardInUse())}};
_.p.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.p.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.p.onChange_=function(){if(this.data){var h=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;h&&this.ytComponentBehavior.resolveCommand(h);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.p.handleUpdateToggleAction_=function(h){(h=_.e(h,Sfk))&&this.data&&h.targetId==this.data.targetId&&this.set("data.toggled",h.toggled)};
_.p.toBoolean_=function(h){return!!h};
_.p.reset=function(){};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("data-changed",this.data))};
_.p.updateDataToggledFromBinding=function(h){this.set("data.toggled",h.detail.value)};
go.prototype.dataChangedForBinding=go.prototype.dataChangedForBinding;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],go.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],go.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],go.prototype,"data",void 0);_.Y([_.x({computed:"computeDescription_(data.*)"}),_.V("design:type",Object)],go.prototype,"description_",void 0);_.Y([_.x({value:function(){return!!_.GF().resolve(_.pl(_.DX))&&_.J("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.V("design:type",Boolean)],go.prototype,"useKeyboardFocused",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],go.prototype,"keyboardFocused",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],go.prototype,"dataChangedForBinding",null);_.Y([_.yc({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],go);
_.X(go,"yt-toggle-form-field-renderer",function(){if(kYk===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;V7f===void 0&&(V7f=document.createElement("template"));var Z=V7f;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);kYk=h}h=kYk;return h},{mode:2});var A5l;var TiM;var ZO=function(){var h=_.D.apply(this,arguments)||this;h.isDarkTheme=!1;h.isSearch=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.noTopMargin=_.J("kevlar_watch_no_top_margin");h.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 h};
_.f(ZO,_.D);_.p=ZO.prototype;_.p.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.p.dataChanged=function(){var h=this.getSelectedIndex();if(h>0)this.selected=h;else{this.selected=0;var E,g;(E=this.ytScrollableChipCloudBehavior)==null||(g=E.reset)==null||g.call(E)}};
_.p.getSelectedIndex=function(){var h;if((h=this.data)==null||!h.chips)return-1;h=-1;for(var E,g=0;g<((E=this.data)==null?void 0:E.chips.length);g++){var Z=void 0,M=void 0;if((Z=this.data)==null?0:(M=Z.chips[g].chipCloudChipRenderer)==null?0:M.isSelected){h=g;break}}return h};
_.p.onResize=function(){var h=this.ytScrollableChipCloudBehavior;_.pQ(h,h.setContainerWidthDiff);Kj(this.ytScrollableChipCloudBehavior)};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.handleRelatedChipCommand=function(h,E){h=this.JSC$16431_chipsSelector.indexOf(E);h!==-1&&this.JSC$16431_chipsSelector.selectIndex(h)};
_.p.handleChipCloudChipSelectAction=function(h){h=this.JSC$16431_chipsSelector.indexOf(h);h>-1&&this.JSC$16431_chipsSelector.selectIndex(h)};
_.p.handleChipCloudChipDeselectAction=function(){var h=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16431_chipsSelector&&((h==null?0:h.continuationCommand)?_.LZ(this.hostElement,[h]):(h==null?0:h.searchEndpoint)?this.ytComponentBehavior.resolveCommand(h):h&&_.jj(this.hostElement,[h],this.hostElement),this.JSC$16431_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.p.updateSelectedFromBinding=function(h){this.selected=h.detail.value};
ZO.prototype.onResize=ZO.prototype.onResize;ZO.prototype.dataChanged=ZO.prototype.dataChanged;ZO.prototype.isSearchChanged=ZO.prototype.isSearchChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ZO.prototype,"actionHandlerBehavior",void 0);
_.Y([_.t(_.F3),_.V("design:type",Object)],ZO.prototype,"ironResizableBehavior",void 0);_.Y([_.t(),_.V("design:type",$6)],ZO.prototype,"ytScrollableChipCloudBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ZO.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZO.prototype,"data",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],ZO.prototype,"selected",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZO.prototype,"isDarkTheme",void 0);_.Y([_.x({value:160}),_.V("design:type",Number)],ZO.prototype,"scrollDistance",void 0);_.Y([_.x(),_.V("design:type",Object)],ZO.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZO.prototype,"darkerDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZO.prototype,"noTopMargin",void 0);
_.Y([_.Sg("#chips"),_.V("design:type",Object)],ZO.prototype,"JSC$16431_chipsSelector",void 0);_.Y([_.Nm("isSearch"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZO.prototype,"isSearchChanged",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZO.prototype,"dataChanged",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZO.prototype,"onResize",null);
_.Y([_.yc({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],ZO);
_.X(ZO,"yt-chip-cloud-renderer",function(){if(TiM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;A5l===void 0&&(A5l=document.createElement("template"));var Z=A5l;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);TiM=h}h=TiM;return h},{mode:2});var biF,u$B=function(){return biF!==void 0?biF:biF=document.createElement("template")};
document.head.appendChild(u$B().content);var QrC;var hSl=document.head,E1k=hSl.appendChild,g1l;if(QrC===void 0){var Zxk=document.createElement("template");_.N(Zxk,"");Zxk.content.insertBefore(u$B().content.cloneNode(!0),Zxk.content.firstChild);QrC=Zxk}g1l=QrC;E1k.call(hSl,g1l.content);var Mtl=_.O(function(h){var E=h.data;return _.R("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.R("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.R(_.P,{cond:function(){return _.yS(E().image)},
then:function(g){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.R(_.pO,{data:g,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.R("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.R(_.dK,{text:function(){return E().subtitle}})))),_.R(_.P,{cond:function(){var g;
return(g=E())==null?void 0:g.hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"mc");var WVB=_.O(function(h){var E=h.data;return _.R("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.R(_.Sv,{data:function(){var g;return(g=E().offerPlanDetailsItem)!=null?g:[]}},{offerPlanDetailsItemViewModel:function(g){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.R(Mtl,{data:g.data}))}})),_.R("div",null,_.R(_.P,{cond:function(){return E().hasBottomDivider},
then:function(){return _.R("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.R("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.R("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"nc");var prF=_.O(function(h){var E=h.data;h=_.G(_.Bm(!1,void 0,"OHF6Ec"));var g=h.next().value,Z=h.next().value,M=_.J7(function(){Z(!g());return!1}),W=function(){var z;
return(z=E().offerPlanDetailsContainer)!=null?z:[]};
return _.R("lp-complex-offer-card-details-view-model",null,_.R("div",null,_.R(_.P,{cond:function(){return g()},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":M,"aria-expanded":g},_.R(_.dK,{text:function(){return E().expandedTitle}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.R(_.Sv,{data:W},{offerPlanDetailsContainerViewModel:function(z){return _.R("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.R(WVB,{data:z.data}))}})),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.R(_.dK,{text:function(){return E().legalText}})))},
else:function(){return _.R("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":M,"aria-expanded":g},_.R(_.dK,{text:function(){return E().collapsedTitle}}),_.R("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.R(_.Ni,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"oc");var GkA=_.O(function(h){var E=h.data;return _.R("lp-complex-offer-card-option-view-model",null,_.R("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.R(_.P,{cond:function(){return E().topDividerText},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.R("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.R(_.dK,{text:function(){return E().topDividerText}}))))}}),_.R(_.P,{cond:function(){return E().description},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.R(_.dK,{text:function(){return E().description}}))}}),_.R(_.P,{cond:function(){return E().planPricingPrimary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.R(_.dK,{text:function(){return E().planPricingPrimary}}))}}),_.R(_.P,{cond:function(){return E().planPricingSecondary},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.R(_.dK,{text:function(){return E().planPricingSecondary}}))}}),_.R(_.P,{cond:function(){return E().primaryButton},
then:function(){return _.R("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.R(_.Sv,{data:function(){return E().primaryButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"pc");var zSM=_.O(function(h){var E=h.data;var g=function(){var W;return((W=E())==null?void 0:W.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
h={};var Z={},M={};return _.R("ytm-lp-complex-offer-card-view-model",null,_.R("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.R("div",{class:_.CO((h.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=g,h),"ytmLpComplexOfferCardViewModelCardContainer")},_.R(_.P,{cond:function(){var W;return(W=E())==null?void 0:W.bannerText},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.R("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.R(_.dK,{text:function(){return E().bannerText}})))}}),_.R(_.P,{cond:function(){return _.yS(E().logo)},
then:function(W){var z={};return _.R("div",{class:_.CO((z.ytmLpComplexOfferCardViewModelLogoAlignLeft=g,z),"ytmLpComplexOfferCardViewModelLogo")},_.R(_.pO,{data:W,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.R("div",{class:_.CO((Z.ytmLpComplexOfferCardViewModelTitleAlignLeft=g,Z),"ytmLpComplexOfferCardViewModelTitle")},_.R(_.dK,{text:function(){return E().title}})),_.R(_.P,{cond:function(){var W;
return(W=E())==null?void 0:W.subtitle},
then:function(){var W={};return _.R("div",{class:_.CO((W.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=g,W),"ytmLpComplexOfferCardViewModelSubtitle")},_.R(_.dK,{text:function(){return E().subtitle}}))}}),_.R(_.P,{cond:function(){return E().planPricingPrimary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.R(_.dK,{text:function(){return E().planPricingPrimary}}))}}),_.R(_.P,{cond:function(){return E().planPricingSecondary},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.R(_.dK,{text:function(){return E().planPricingSecondary}}))}}),_.R(_.P,{cond:function(){return E().purchaseButton},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.R(_.Sv,{data:function(){return E().purchaseButton}},{buttonViewModel:function(W){return _.R(_.$l,{data:W.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.R(_.P,{cond:function(){var W;
return(W=E())==null?void 0:W.offerOptions},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.R(_.Sv,{data:function(){return E().offerOptions}},{lpComplexOfferCardOptionViewModel:GkA}))}}),_.R("div",{class:_.CO((M.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=g,M),"ytmLpComplexOfferCardViewModelLegalText")},_.R(_.dK,{text:function(){return E().legalText}})),_.R(_.P,{cond:function(){var W;
return(W=E())==null?void 0:W.offerCardDetails},
then:function(){return _.R("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.R(_.Sv,{data:function(){return E().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:prF}))}}))))},"qc");var aZl=_.O(function(h){var E=h.data;var g=function(){var z;return((z=E())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
h={};var Z={},M={},W={};return _.R("ytm-lp-complex-offer-card-section-view-model",null,_.R("div",{class:_.CO("ytmLpComplexOfferCardSectionViewModelHost")},_.R("div",{class:_.CO((h.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=g,h),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.R("div",{class:_.CO((Z.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=g,Z),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.R("h2",{class:_.CO((M.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
g,M),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.R(_.dK,{text:function(){return E().title}}))),_.R(_.P,{cond:function(){var z;
return(z=E())==null?void 0:z.subtitle},
then:function(){var z={},c={};return _.R("div",{class:_.CO((z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=g,z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.R("div",{class:_.CO((c.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=g,c),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.R(_.dK,{text:function(){return E().subtitle}})))}}),_.R("div",{class:_.CO((W.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=g,W),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.R(_.Sv,{data:function(){var z;
return(z=E().offerPlans)!=null?z:[]}},{lpComplexOfferCardViewModel:function(z){return _.R("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.R(zSM,{data:z.data}))}})))))},"rc");var c8f=_.O(function(h){return _.R("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.R("div",{class:"ytLpCouponBannerViewModelIcon"},_.R(_.Ni,{icon:function(){return"price_tag"}})),_.R("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.R("div",{class:"ytLpCouponBannerViewModelContent"},_.R("div",{class:"ytLpCouponBannerViewModelHeading"},_.R(_.dK,{text:function(){var E;
return(E=h.data())==null?void 0:E.title}})),_.R("div",{class:"ytLpCouponBannerViewModelBody"},_.R(_.dK,{text:function(){var E;
return(E=h.data())==null?void 0:E.subtitle}})))))},"sc");
c8f.idomCompat=!0;_.Mt=Jtk.getInstance();var ixB;ixB=_.O(function(h){return _.R("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":h.shouldAriaHideContent},_.R("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:h.questionId},_.R(_.dK,{text:h.question})))},"tc");
_.o1k=_.O(function(h){var E=h.data;var g=h.themeOverride;h=_.G(_.Bm(!1,void 0,"pNli2b"));var Z=h.next().value,M=h.next().value;h=_.J7(function(){M(!Z());return!1});
var W=function(){return Z()?"EXPAND_LESS":"EXPAND_MORE"},z=("faq-container"+_.y$(_.Mt)).toString(),c="faq-question-and-answers-section-question"+_.y$(_.Mt),I={},B={};
return _.R("faq-entry-view-model",null,_.R("div",{class:_.CO("ytLpFaqEntryViewModelHost",(I.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return g==null?void 0:g().useDarkTheme},I))},_.R("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":h,role:"button","aria-expanded":Z,"aria-labelledby":c.toString(),"tab-index":"0"},_.R(ixB,{question:function(){return E().question},
questionId:c,shouldAriaHideContent:!0}),_.R(_.P,{cond:function(){return Z()!==void 0},
then:function(){return _.R("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.R(_.Ni,{icon:W,ariaHidden:!0}),_.R("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.R("div",{class:_.CO("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(B.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!Z()},B))},_.R("div",{id:z},_.R(_.SX,{each:function(){return E().answers||[]}},function(U){return _.R("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.R(_.dK,
{text:U}))})))))},"uc");
_.o1k.idomCompat=!0;var IZf=_.O(function(h){var E=h.data;var g=h.themeOverride;h={};return _.R("lp-faq-section-view-model",null,_.R("div",{class:_.CO("yt-lp-faq-section-view-model",(h["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},h["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(g==null||!g().useDarkTheme)},h))},_.R("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.R(_.P,{cond:function(){return E().header},
then:function(Z){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.R(_.dK,{text:Z}))}}),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.R(_.Sv,{data:function(){return E().faqs}},{faqEntryViewModel:function(Z){return _.R(_.o1k,{data:Z.data,
themeOverride:g})}})),_.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.R(_.SX,{each:function(){return E().footers||[]}},function(Z){return _.R(_.dK,{text:Z})})),_.R(_.P,{cond:function(){return E().legal},
then:function(Z){return _.R("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.R(_.dK,{text:Z}))}}))))},"vc");
IZf.idomCompat=!0;var RSm=_.O(function(h){var E=h.data;var g=h.themeOverride;_.vJ(function(){var z=E().gtmId;z&&_.Eh(z,_.nF("GL",""))});
var Z={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,c,I;return(I=(z=E().logo)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},M=_.GF().resolve(_.pl(_.gu)),W=function(){return M&&M()||(g==null?void 0:g().useDarkTheme)};
return _.R("lp-header-section-view-model",null,_.R("div",{class:function(){var z=E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",c=E().marginType==="LP_SECTION_MARGIN_TYPE_TOP",I=g==null?void 0:g().useDarkTheme,B=["lp-header-section-view-model"];z&&B.push("lp-header-section-view-model--ptc-layout-type");c&&B.push("lp-header-section-view-model__lp-header-section-margin");I&&B.push("lp-header-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.R(_.P,{cond:function(){return E().logo},
then:function(){return _.R("div",null,_.R(_.P,{cond:W,then:function(){return _.R(_.P,{cond:function(){var z;return(z=E().logo)==null?void 0:z.imageDark},
then:function(z){return _.R(_.pO,Object.assign({},{data:z},Z))}})},
else:function(){return _.R(_.P,{cond:function(){var z;return(z=E().logo)==null?void 0:z.imageLight},
then:function(z){return _.R(_.pO,Object.assign({},{data:z},Z))}})}}))}}),_.R(_.P,{cond:function(){return E().title},
then:function(z){return _.R("div",{class:"lp-header-section-view-model__lp-header-title"},_.R(_.dK,{text:z}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.R(_.P,{cond:function(){return E().subtitles},
then:function(z){return _.R(_.SX,{each:z},function(c){return _.R("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.R(_.dK,{text:c}))})}})),_.R(_.P,{cond:function(){return E().additionalInfo},
then:function(z){return _.R("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.R(_.dK,{text:z}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.R(_.P,{cond:function(){return E().primaryButton},
then:function(z){return _.R("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.R(_.Sv,{data:z},{buttonViewModel:_.$l}))}}),_.R(_.P,{cond:function(){return E().secondaryButton},
then:function(z){return _.R("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.R(_.Sv,{data:z},{buttonViewModel:_.$l}))}})),_.R(_.P,{cond:function(){return E().otherOffersInfo},
then:function(z){return _.R("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.R(_.dK,{text:z}))}}),_.R("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.R(_.P,{cond:function(){return E().billingInfo},
then:function(z){return _.R(_.SX,{each:z},function(c){return _.R("div",null,_.R(_.dK,{text:c}))})}}))))},"wc");
RSm.idomCompat=!0;var P$m=_.O(function(h){var E=h.data;var g=_.zl(h.themeOverride,{useDarkTheme:!1});h={};h=_.CO("ytmLpHeadlineSectionViewModelHost",(h.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return g().useDarkTheme},h));
return _.R("lp-headline-section-view-model",null,_.R("div",{class:h},_.R("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.R(_.dK,{text:function(){return E().title}})),_.R(_.P,{cond:function(){return E().subtitle},
then:function(Z){return _.R("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.R(_.dK,{text:Z}))}})))},"xc");var B4F=_.O(function(h){var E=h.data;var g=h.themeOverride;var Z=_.GF().resolve(_.pl(_.gu)),M=function(){return Z&&Z()||(g==null?void 0:g().useDarkTheme)},W=function(){var B,U;
var L=M()?(B=E().textBackgroundImage)==null?void 0:B.imageDark:(U=E().textBackgroundImage)==null?void 0:U.imageLight;return vyV((L==null?void 0:L.sources)||[])},z=function(){var B,U;
return M()?(B=E().featureImage)==null?void 0:B.imageDark:(U=E().featureImage)==null?void 0:U.imageLight},c=function(){return E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},I=function(){var B,U;
return M()?(B=E().logo)==null?void 0:B.imageDark:(U=E().logo)==null?void 0:U.imageLight};
return _.R("ytm-lp-large-feature-section-view-model",null,_.R("div",{class:function(){var B=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",U=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",L=(E().index||0)%2===1,d=g==null?void 0:g().useDarkTheme,C=["yt-lp-large-feature-section-view-model"];B?C.push("yt-lp-large-feature-section-view-model--music-feature-type"):U?C.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):L||C.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
d&&C.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return C.join(" ")}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.R(_.P,{cond:z,
then:function(){return _.R(_.pO,{data:function(){return z()},
alt:function(){var B,U,L;return(L=(B=E().featureImage)==null?void 0:(U=B.accessibilityData)==null?void 0:U.label)!=null?L:""},
contentMode:c})}})),_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var B;return((B=W())==null?0:B.url)?"background-image: url("+_.Yr(W().url)+");":""}},_.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.R(_.P,{cond:I,
then:function(){return _.R(_.pO,{data:function(){return I()},
alt:function(){var B,U,L;return(L=(B=E().logo)==null?void 0:(U=B.accessibilityData)==null?void 0:U.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"})}}),_.R(_.P,{cond:function(){return E().eyebrowText},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.R(_.dK,{text:function(){return E().eyebrowText}}))}}),_.R(_.P,{cond:function(){return E().title},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.R(_.dK,{text:function(){return E().title}}))}}),_.R(_.P,{cond:function(){return E().subtitles},
then:function(){return _.R("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.R(_.SX,{each:function(){return E().subtitles||[]}},function(B){return _.R(_.dK,{text:B})}))}})))))},"yc");
B4F.idomCompat=!0;var UXM=_.O(function(h){return _.R("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.R("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.R(_.Ni,{icon:function(){var E;return(E=h.data())==null?void 0:E.iconType},
className:function(){var E;switch((E=h.data())==null?void 0:E.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 E;return((E=h.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.R("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.R(_.dK,{text:function(){var E;
return(E=h.data())==null?void 0:E.text},
className:function(){var E;return((E=h.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"zc");var LVC=_.O(function(h){h=_.au(h,{config:void 0,themeOverride:void 0});var E=h.data,g=h.config,Z=h.themeOverride;h={};h=_.CO("ytmLpOfferCardOptionViewModelHost",(h.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var c;return(c=Z())==null?void 0:c.useDarkTheme},h));
var M=_.J7(function(){var c,I;(c=g())==null||(I=c.handleRadioButtonClick)==null||I.call(c,E());return!1}),W=function(){var c;
return(c=g())==null?void 0:c.shouldDisplayRadioButton},z=function(){var c;
return(c=E().featureListItems)!=null?c:[]};
return _.R("ytm-lp-offer-card-option-view-model",null,_.R("div",{class:h,"on:click":_.J7(function(){if(W()){var c,I;(c=g())==null||(I=c.handleRadioButtonClick)==null||I.call(c,E())}return!1})},_.R(_.P,{cond:W,
then:function(){return _.R("div",null,_.R("input",{type:"radio","on:click":M,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var c;return!((c=g())==null||!c.isOptionSelected)}}))}}),_.R("div",null,_.R("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.R(_.dK,{text:function(){return E().eyebrowText}})),_.R("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.R(_.dK,
{text:function(){return E().subtitle}})),_.R(_.P,{cond:function(){return z().length>0},
then:function(){return _.R("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.R(_.Sv,{data:z},{lpFeatureListItemViewModel:UXM}))}}),_.R("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.R(_.dK,{text:function(){return E().description}})))))},"Ac");
LVC.idomCompat=!0;var jXm=_.O(function(h){var E=h.data;var g=h.themeOverride;h=_.G(_.qi(function(){var W,z=(W=E().offerOptions)==null?void 0:W[0];return _.e(z,RtC)||{}}));
var Z=h.next().value,M=h.next().value;h={};return _.R("ytm-lp-offer-card-view-model",null,_.R("div",{class:_.CO("ytmLpOfferCardViewModelHost",(h.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(g==null||!g().useDarkTheme)},h))},_.R("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.R(_.P,{cond:function(){return E().titleIconType},
then:function(){return _.R("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.R(_.Ni,{icon:function(){var W;return((W=E().titleIconType)==null?void 0:W.toString())||""}}))}}),_.R("div",{class:"ytmLpOfferCardViewModelTitleText"},_.R(_.dK,{text:function(){return E().title}})),_.R(_.Sv,{data:function(){return E().titleBadge}},{badgeViewModel:function(W){return _.R("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.R(_.xz,{data:W.data}))}})),_.R("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.R(_.Sv,{data:function(){return E().offerOptions}},{lpOfferCardOptionViewModel:function(W){var z=W.data;
return _.R(_.zt,null,_.R("div",{class:"ytmLpOfferCardViewModelDivider"}),_.R(LVC,{data:z,config:function(){var c;return{shouldDisplayRadioButton:(E().offerOptions||[]).length>1,isOptionSelected:z().id===((c=Z())==null?void 0:c.id),handleRadioButtonClick:function(I){return void M(I)}}},
themeOverride:g}))}})),_.R("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.R(_.Sv,{data:function(){var W;
return(W=Z())==null?void 0:W.purchaseButtonOverride}},{buttonViewModel:_.$l}))))},"Bc");
jXm.idomCompat=!0;var dXH=_.O(function(h){var E=h.data;var g=h.themeOverride;h={};h=_.CO("ytmLpOfferCardSectionViewModelHost",(h.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var Z;return g==null?void 0:(Z=g())==null?void 0:Z.useDarkTheme},h));
return _.R("ytm-lp-offer-card-section-view-model",null,_.R("div",{class:h},_.R(_.P,{cond:function(){return E().title!==void 0},
then:function(){return _.R("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.R("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.R(_.dK,{text:function(){return E().title}})),_.R(_.P,{cond:function(){return E().subtitle},
then:function(){return _.R("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.R(_.dK,{text:function(){return E().subtitle}}))}}))}}),_.R("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.R(_.Sv,{data:function(){return E().offerCards}},{lpOfferCardViewModel:function(Z){return _.R("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.R(jXm,{data:Z.data,
themeOverride:g}))}})),_.R(_.P,{cond:function(){return E().footer},
then:function(){return _.R("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.R(_.dK,{text:function(){return E().footer}}))}})))},"Cc");var C$D=_.O(function(h){var E=h.data;return _.R("lp-offer-table-cell-content-view-model",null,_.R("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.R(_.DG,null,_.R(_.x3,{when:function(){return E().title}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return E().title}})}),_.R(_.x3,{when:function(){return E().subTitle}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return E().subTitle}})}),_.R(_.x3,{when:function(){return E().featureDescription}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.R(_.x3,{when:function(){return E().description}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return E().description}})}),_.R(_.x3,{when:function(){return E().iconType}},function(){return _.R("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.R(_.Ni,{icon:function(){return E().iconType.toString()}}))}),_.R(_.x3,{when:function(){return E().purchaseButton}},function(){return _.R(_.Sv,{data:function(){return E().purchaseButton}},{buttonViewModel:function(g){return _.R("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.R(_.$l,
{data:g.data}))}})}),_.R(_.x3,{when:function(){return E().note}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return E().note}})}),_.R(_.x3,{when:function(){return E().featureDetail}},function(){return _.R(_.dK,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return E().featureDetail}})}),_.R(_.x3,{when:function(){return E().badge}},function(){return _.R(_.Sv,{data:function(){return E().badge}},{badgeViewModel:_.xz})}))))},"Dc");
C$D.idomCompat=!0;var J8k=_.O(function(h){var E=h.data;return _.R("lp-offer-table-cell-view-model",null,_.R("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(E().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.R(_.Sv,{data:function(){return E().contents}},{lpOfferTableCellContentViewModel:C$D})))},
"Ec");
J8k.idomCompat=!0;var eSk=_.O(function(h){var E=h.data;var g=h.lpTableIsFirstRow;var Z=h.lpTableIsLastRow;var M=function(){return(g==null?0:g())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},W=function(){return(g==null?0:g())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(Z==null?0:Z())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.R("ytm-lp-offer-table-row-view-model",null,_.R("div",{class:"ytLpOfferTableRowViewModelHost"},_.R(_.Sv,{data:function(){return E().rowHeaderCell}},{lpOfferTableCellViewModel:function(z){return _.R("div",{class:M},_.R(J8k,{data:z.data}))}}),_.R(_.Sv,{data:function(){return E().contentCells}},{lpOfferTableCellViewModel:function(z){return _.R("div",{class:W},_.R(J8k,{data:z.data}))}})))},"Fc");
eSk.idomCompat=!0;var qmk=_.O(function(h){var E=h.data;var g=h.themeOverride;var Z=_.GF().resolve(_.pl(_.gu)),M=function(){return _.e(E().logo,myH)||{}};
h={};return _.R("ytm-lp-offer-table-section-view-model",null,_.R("div",{class:"ytLpOfferTableViewModelHost"},_.R(_.P,{cond:function(){var W,z;return Z&&Z()||(g==null?0:g().useDarkTheme)?(W=M())==null?void 0:W.imageDark:(z=M())==null?void 0:z.imageLight},
then:function(W){return _.R(_.pO,{data:W,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var z,c,I;return(I=(z=M())==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)!=null?I:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.R(_.dK,{text:function(){return E().subtitle}})),_.R(_.P,{cond:function(){return E().disclaimers},
then:function(W){return _.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.R(_.SX,{each:W},function(z){return _.R("div",null,_.R(_.dK,{text:z}))}))}}),_.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.R(_.Sv,{data:function(){return E().rows}},{lpOfferTableRowViewModel:function(W,z){return _.R(eSk,{data:W.data,
lpTableIsFirstRow:function(){return z()===0},
lpTableIsLastRow:function(){return z()===E().rows.length-1}})}})),_.R("div",{class:_.CO((h.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return E().hasFooterBackground},h))},_.R(_.P,{cond:function(){return E().footer},
then:function(){return _.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.R(_.dK,{text:function(){return E().footer}}))}}),_.R(_.P,{cond:function(){return E().footerTitle},
then:function(){return _.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.R(_.dK,{text:function(){return E().footerTitle}}))}}),_.R(_.P,{cond:function(){return E().footerDescription},
then:function(){return _.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.R(_.dK,{text:function(){return E().footerDescription}}))}}),_.R(_.P,{cond:function(){return E().footerDescriptions},
then:function(W){return _.R("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.R(_.SX,{each:W},function(z){return _.R("div",null,_.R(_.dK,{text:z}))}))}}))))},"Gc");
qmk.idomCompat=!0;var fZf=_.O(function(h){var E=h.data;var g=h.themeOverride;var Z=_.GF().resolve(_.pl(_.gu)),M=function(){var c;return g==null?void 0:(c=g())==null?void 0:c.useDarkTheme},W=function(){var c,I;
return Z&&Z()||M()?(c=E().image)==null?void 0:c.imageDark:(I=E().image)==null?void 0:I.imageLight};
h={};h=_.CO("ytmLpSmallFeatureSectionViewModelHost",(h.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=M,h));var z=function(){var c,I,B;return(B=(c=E().image)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label)!=null?B:""};
return _.R("ytm-lp-small-feature-section-view-model",{class:h},_.R(_.P,{cond:function(){return W()&&!x0W},
then:function(){return _.R("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.R(_.pO,{data:function(){return W()},
alt:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.R("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.R("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.R(_.P,{cond:function(){return E().title},
then:function(c){return _.R(_.dK,{text:c})}})),_.R("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.R(_.dK,{text:function(){return E().description}}))))},"Hc");
fZf.idomCompat=!0;var N4C=_.O(function(h){var E=h.data;var g=h.themeOverride;h={};return _.R("ytm-lp-small-feature-section-group-view-model",null,_.R("div",{class:_.CO("ytmLpSmallFeatureSectionGroupViewModelHost",(h.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(g==null||!g().useDarkTheme)},h))},_.R("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.R(_.Sv,{data:function(){return E().smallFeatures}},{lpSmallFeatureSectionViewModel:function(Z){return _.R("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.R(fZf,{data:Z.data,
themeOverride:g}))}}))))},"Ic");
N4C.idomCompat=!0;_.I9(_.O(function(h){var E=h.data;var g=function(){return E().forcedTheme==="USER_INTERFACE_THEME_DARK"},Z=function(){return E().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},M=function(){var z="",c,I;
var B=_.GF().resolve(_.pl(_.gu));B=g()||(B==null?0:B())?(c=E().themedImageViewModel)==null?void 0:c.imageDark:(I=E().themedImageViewModel)==null?void 0:I.imageLight;(c=vyV((B==null?void 0:B.sources)||[]))&&c.url&&(z=Z()?"background-image: linear-gradient(to bottom, transparent, "+(E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Yr(c.url)+");":"background-image: url("+_.Yr(c.url)+");");return z},W=function(){return{useDarkTheme:g()}};
h={};return _.R("yt-section-group-view-model",null,_.R("div",{class:_.CO("yt-lp-section-group-view-model",(h["yt-lp-section-group-view-model--premium-force-dark-mode"]=g,h["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},h))},_.R(_.P,{cond:function(){return M().length},
then:function(){var z={};return _.R("div",{class:_.CO("yt-lp-section-group-view-model__bg-image",(z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=Z,z)),style:M})}}),_.R("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.R(_.Sv,{data:function(){return E().sections}},{lpFaqSectionViewModel:function(z){return _.R(IZf,{data:z.data,
themeOverride:W})},
lpHeaderSectionViewModel:function(z){return _.R(RSm,{data:z.data,themeOverride:W})},
lpHeadlineSectionViewModel:function(z){return _.R(P$m,{data:z.data,themeOverride:W})},
lpLargeFeatureSectionViewModel:function(z){return _.R(B4F,{data:z.data,themeOverride:W})},
lpOfferCardSectionViewModel:function(z){return _.R(dXH,{data:z.data,themeOverride:W})},
lpComplexOfferCardSectionViewModel:function(z){return _.R(aZl,{data:z.data})},
lpOfferTableSectionViewModel:function(z){return _.R(qmk,{data:z.data,themeOverride:W})},
lpSmallFeatureSectionGroupViewModel:function(z){return _.R(N4C,{data:z.data,themeOverride:W})},
lpCouponBannerViewModel:function(z){return _.R(c8f,{data:z.data})}}))))},"Jc"),"yt-section-group-view-model",{props:{data:_.C6}});var n5x=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.ttD=_.O(function(h){function E(){if(n5x.has(h.data().displayType)){var B=!Z(),U;if((U=h.disableDeselection)==null||!U.call(h)||B){h.data().selected=B;U=Object.assign({},z(),{selected:B});c(U);var L;(L=h.callback)==null||L.call(h,U,B)}}}
var g=_.hf("chip-view-model"),Z=function(){var B,U;return!!(((B=h.selected)==null?void 0:B.call(h))!==void 0?(U=h.selected)==null?0:U.call(h):z().selected)},M=_.G(_.qi(h.data)),W=M.next().value;
M=M.next().value;var z=W,c=M,I=_.qI(OpN,function(){return h.data().chipEntityKey||""});
return _.R("chip-view-model",{class:"ytChipViewModelHost",el:g},_.R(GXF,{data:function(){var B,U=Object.assign({},z(),{selected:Z()}),L=I(),d=(B=h.disableDeselection)==null?void 0:B.call(h);a:switch(U.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":B=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":B=3;break a;default:B=0}return{text:(L==null?void 0:L.text)||U.text,state:U.disabled?1:U.selected?0:2,type:B,onTap:Xzz(U,g,E,d),
accessibilityLabel:U.accessibilityLabel||U.text}}}))},"Kc");
_.ttD.idomCompat={callbacks:{callback:!0}};_.SmH=_.O(function(h){var E=_.qI(KvO,function(){var z;return(z=h.data())==null?void 0:z.chipBarStateEntityKey}),g=function(){return h.data().disableDeselection},Z=_.G(_.qi(function(){var z;
if(((z=E())==null?void 0:z.selectedIndex)!=void 0)return E().selectedIndex;var c,I;z=_.G(((c=h.data())==null?void 0:(I=c.chips)==null?void 0:I.entries())||[]);for(c=z.next();!c.done;c=z.next()){c=_.G(c.value);I=c.next().value;c=c.next().value;var B=void 0;if((B=_.e(c,_.ox))==null?0:B.selected)return I}return-1})),M=Z.next().value,W=Z.next().value;
return _.R("chip-bar-view-model",{class:_.CO("ytChipBarViewModelHost",h.className),role:"tablist"},_.R(_.Sv,{data:function(){return h.data().chips}},{chipViewModel:function(z,c){return _.R("div",{class:"ytChipBarViewModelChipWrapper"},_.R(_.ttD,{data:z.data,
selected:function(){return c()===M()},
callback:function(I,B){I=!!B;B=c();W(I?B:-1);var U,L=(U=h.data())==null?void 0:U.chipBarStateEntityKey;L&&I&&_.Gl(_.xx("chipBarStateEntity",L,{key:L,selectedIndex:B}))},
disableDeselection:h.disableDeselection||g}))}}))},"Lc");_.I9(_.SmH,"chip-bar-view-model",{props:{data:_.c$,className:_.c$,disableDeselection:_.c$}});_.xXm=_.O(function(h){var E=h.data;h={};return _.R("divider-view-model",{class:_.CO("dividerViewModelHost",(h.dividerViewModelInsetThinPadding=function(){return E().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},h))},_.R("div",{class:_.CO("dividerViewModelBaseDivider",function(){return YOO(E().dividerStyle)}),
style:_.fO({"background-color":function(){return E().backgroundColor?_.bU(E().backgroundColor):void 0}})}))},"Mc");
_.xXm.idomCompat=!0;_.I9(_.xXm,"divider-view-model",{props:{data:_.C6}});var fu=new Map,qT=new Map,ksN=0,NT;var Qi$=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],gHd={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var wrf,DXM;wrf=function(h){return function(E){return function(){return(E==null?void 0:E())!==void 0?String(E())+h:void 0}}};
_.WE=wrf("px");DXM=wrf("s");var lZn=Ql4(function(h){return h.targetGroupId}).useUpdatableData;_.mXf=_.O(function(h){function E(E4){return function(){var iO=w().numItemsPerGridRow,RW=E4()*iO;iO=RW+iO;var NN,Cd;return(Cd=(NN=Z().contents)==null?void 0:NN.slice(RW,iO))!=null?Cd:[]}}
var g=_.au(h,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),Z=g.data,M=g.layoutContainerWidth,W=g.shouldUseOwnContainerSize,z=g.marginSettings,c=tCz(),I=_.G(lZn(function(){var E4,iO;return{targetGroupId:(E4=Z().targetingContext)==null?void 0:(iO=E4.targetGroupId)==null?void 0:iO[0]}})).next().value;
g=_.G(_.Bm(!0,void 0,"AA2Ctc"));var B=g.next().value,U=g.next().value,L=function(){var E4,iO=(E4=_.e(Z().showMoreButton,_.i_))==null?void 0:E4.trackingParams;iO&&_.KC(_.SQ(),iO);U(!1)},d=function(){var E4,iO=(E4=_.e(Z().showLessButton,_.i_))==null?void 0:E4.trackingParams;
iO&&_.KC(_.SQ(),iO);U(!0)};
g=_.hf("grid-shelf-view-model");var C=_.Mwz(g,{canHaveZeroSize:!1}),q=function(){var E4;return(E4=Z().contentAspectRatio)!=null?E4:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},w=_.Cw(function(){var E4=_.kx({containerWidth:W()&&C.width()>0?C.width()||M():M(),
sizing:"EXTRA_COMPACT",marginSettings:z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:E4.maxContainerWidth,numItemsPerGridRow:E4.numItems,contentPadding:W()?E4.margin:E4.contentMargin,itemWidth:E4.itemWidth,itemMargin:E4.gutter/2}},void 0,"IZAnPe"),r=function(){if(Z().enableVerticalExpansion){if(B())return v();
var E4,iO,RW=(iO=(E4=Z().contents)==null?void 0:E4.length)!=null?iO:0;return Math.ceil(RW/w().numItemsPerGridRow)}return w().numItemsPerGridRow<=2?2:1},v=function(){var E4;
return Math.ceil(((E4=Z().minCollapsedItemCount)!=null?E4:1)/w().numItemsPerGridRow)},H=function(){return Z().enableVerticalExpansion&&Z().showLessButton&&!B()&&r()>v()},u=function(){var E4,iO;
return Z().enableVerticalExpansion&&Z().showMoreButton&&B()&&((iO=(E4=Z().contents)==null?void 0:E4.length)!=null?iO:0)>w().numItemsPerGridRow*v()},k=function(){return!H()},y=function(){return!u()},A={};
return _.R("grid-shelf-view-model",{class:_.CO("ytGridShelfViewModelHost",h.className,(A.ytGridShelfViewModelHostHasBottomButton=function(){return H()||u()},A.ytGridShelfViewModelHostIsDismissed=function(){var E4,iO=(E4=I())!=null?E4:{};
E4=iO.behavior;var RW=iO.isDismissed,NN=iO.stamperContextTargetId;iO=iO.stamperIndex;if(!(_.J("mweb_see_fewer_shorts_group_dismissal")&&RW&&E4&&NN))return!1;var Cd;RW=c;for(var Ba,$$,Ha=((Ba=RW)==null?0:Ba.targetId)?_.Hm(($$=RW)==null?void 0:$$.targetId):void 0;((Cd=RW)==null?0:Cd.parent)&&Ha!==NN;)RW=RW.parent,$$=Ba=void 0,Ha=((Ba=RW)==null?0:Ba.targetId)?_.Hm(($$=RW)==null?void 0:$$.targetId):void 0;Cd=Ha===NN?RW:void 0;if(!Cd)return!1;var zf;NN=Cd==null?void 0:(zf=Cd.stamperIndex)==null?void 0:
zf.call(Cd);return E4==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||E4==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&NN!=null&&iO!=null&&NN>iO},A)),
el:g,style:_.fO({"margin-left":(0,_.WE)(function(){return w().contentPadding}),
"margin-right":(0,_.WE)(function(){return w().contentPadding})})},_.R(_.P,{cond:function(){return _.e(Z().header,krM)},
then:function(E4){return _.R(_.KY,{data:E4,disableHorizontalPadding:!0})}}),_.R("div",null,_.R(_.SX,{each:function(){return Array(r())}},function(E4,iO){return _.R(r8D,{className:h.className,
items:E(iO),responsiveGridShelfLayout:w,contentAspectRatio:q})})),_.R("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.R(_.Sv,{data:function(){return Z().showMoreButton}},{buttonViewModel:function(E4){return _.R("div",{hidden:y},_.R(_.$l,{data:E4.data,
onClick:L}))}}),_.R(_.Sv,{data:function(){return Z().showLessButton}},{buttonViewModel:function(E4){return _.R("div",{hidden:k},_.R(_.$l,{data:E4.data,
onClick:d}))}})))},"Nc");
_.mXf.idomCompat=!0;var r8D=_.O(function(h){var E=h.items;var g=h.responsiveGridShelfLayout;var Z=h.contentAspectRatio;h=h.className;var M=_.hf("div");V$x(M,function(){a:{var z=M.value;for(var c=E(),I=[],B=0;B<c.length;B++){var U=_.e(c[B],d8n);if(!U||U==null||!U.inlinePlayerData){z=null;break a}var L=z.children.item(B);if(!L){z=null;break a}I.push({thumbnailElement:L,videoData:U})}z={gridVideoPreviewData:{gridItems:I}}}return z});
var W=(0,_.WE)(function(){return-g().itemMargin});
return _.R("div",{el:M,class:_.CO("ytGridShelfViewModelGridShelfRow",h),style:_.fO({"margin-left":W,"margin-right":W})},_.R(_.Sv,{data:E,replacementWrapper:function(z){return _.R(v1f,{responsiveGridShelfLayout:g},z)}},{shortsLockupViewModel:function(z){return _.R(v1f,{responsiveGridShelfLayout:g},_.R(o5D,{data:z.data,
aspectRatio:function(){return Z()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.J("mweb_enable_one_line_title_on_shorts")?1:_.J("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))}}))},"Oc"),v1f=_.O(function(h){return _.R("div",{style:_.fO({width:(0,_.WE)(function(){return h.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+h.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},h.children)},"Pc");
_.mXf.idomCompat=!0;_.I9(_.mXf,"grid-shelf-view-model",{props:{data:_.C6,layoutContainerWidth:_.C6,shouldUseOwnContainerSize:_.C6,marginSettings:_.C6,className:_.C6}});_.HxB=_.O(function(h){var E=_.G(_.Bm(!1,void 0,"FVl30c")),g=E.next().value,Z=E.next().value;E={};return _.R("yt-alert-banner-view-model",{class:_.CO("ytAlertBannerViewModelHost",h.className,function(){var M;a:switch((M=h.data())==null?void 0:M.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":M="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":M="ytAlertBannerViewModelWarning";break a;default:M="ytAlertBannerViewModelInformational"}return M},(E.ytAlertBannerViewModelDismissed=
g,E.ytAlertBannerViewModelFullbleed=h.fullbleed,E.ytAlertBannerViewModelNarrow=h.narrow,E.ytAlertBannerViewModelIsInRichGrid=h.isInRichGrid,E))},_.R(_.P,{cond:function(){var M;
return!((M=h.data())==null?0:M.hideIcon)},
then:function(){return _.R("div",{class:"ytAlertBannerViewModelIcon"},_.R(_.Ni,{icon:function(){return"info_circle"}}))}}),_.R("div",{class:"ytAlertBannerViewModelOuterContainer"},_.R("div",{class:"ytAlertBannerViewModelContainer"},_.R("div",{class:"ytAlertBannerViewModelContent"},_.R("div",{class:"ytAlertBannerViewModelHeading"},_.R(_.dK,{text:function(){var M;
return(M=h.data())==null?void 0:M.heading}})),_.R("div",{class:"ytAlertBannerViewModelBody"},_.R(_.dK,{text:function(){var M;
return(M=h.data())==null?void 0:M.body}})))),_.R(_.Sv,{data:function(){var M;
return(M=h.data())==null?void 0:M.actionButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.R(_.Sv,{data:function(){var M;
return(M=h.data())==null?void 0:M.dismissButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var W;((W=h.data())==null?0:W.disableLocalDismissBehavior)||Z(!0)}})}}))},"Qc");_.I9(_.HxB,"yt-alert-banner-view-model",{props:{data:_.C6,fullbleed:_.C6,narrow:_.C6,isInRichGrid:_.C6,className:_.C6}});_.pN=_.O(function(h){var E=h.data;var g=h.callback;var Z=h.selectionBehavior;var M=h.disableChipsScrollAnimation;var W=_.MC("div");h=_.G(_.Bm(!0,void 0,"aUEsOc"));var z=h.next().value,c=h.next().value;h=_.G(_.Bm(!1,void 0,"V0aKld"));var I=h.next().value,B=h.next().value,U=!1,L=0;_.m1(function(){c(q());B(w())});
h=_.G(_.qi(function(){var E4={};return E().autoselectedChipIndex!=null?(E4[E().autoselectedChipIndex]=!0,E4):{}}));
var d=h.next().value,C=h.next().value,q=function(){var E4=W.value;return E4==null||E4.scrollLeft-1<=0},w=function(){var E4=W.value;
return E4==null?!1:E4.scrollLeft+1>=(E4==null?NaN:E4.scrollWidth)-(E4==null?NaN:E4.clientWidth)},r=function(){return E().isHorizontallyScrollable},v=function(E4){W.value!=null&&(_.nF("HTML_DIR")==="rtl"&&(E4=-E4),W.value.scrollBy({left:E4,
behavior:(M==null?0:M())?"instant":"smooth"}))},H=function(){v(-320)},u=function(){v(320)},k=_.J7(function(E4){U=!0;
L=E4.clientX}),y=_.J7(function(E4){if(U){E4=E4.clientX;
var iO=E4-L;L=E4;var RW;(RW=W.value)==null||RW.scrollBy({left:-iO})}}),A=_.J7(function(){var E4=q(),iO=w();
E4!==z()&&c(E4);iO!==I()&&B(iO)});
_.z$("pointerup",function(){U&&(U=!1)});
return _.R("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.R(_.lB,{contentId:function(){return E().contentId},
useModernStyle:!0},function(){var E4={},iO={};return _.R("div",null,_.R(_.P,{cond:function(){return E().title},
then:function(){return _.R("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.R("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return E().title}),_.R(_.Sv,{data:function(){return E().overflowButton}},{buttonViewModel:_.$l}))}}),_.R("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.R(_.P,{cond:function(){return E().previousButton},
then:function(){var RW={};return _.R("div",{class:_.CO("ytChipsShelfViewModelLeftArrowContainer",(RW.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return z()},RW))},_.R(_.Sv,{data:function(){return E().previousButton}},{buttonViewModel:function(NN){return _.R(_.$l,{data:NN.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:H})}}))}}),_.R("div",{el:W,
"on:pointerdown":k,"on:pointermove":y,"on:scroll":A,class:_.CO("ytChipsShelfViewModelChipsScrollContainer",(E4.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=r,E4))},_.R("div",{class:_.CO("ytChipsShelfViewModelChipsContainer",(iO.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=r,iO.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,iO)),role:"tablist"},_.R(_.Sv,{data:function(){return E().contents}},{chipViewModel:function(RW,NN){return _.R("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.R(_.ttD,{data:RW.data,
callback:function(Cd,Ba){var $$=NN(),Ha,zf=(Ha=Z==null?void 0:Z())!=null?Ha:0;zf===1||zf===2?(Ha={},C((Ha[$$]=Ba,Ha))):(Ha={},C(Object.assign({},d(),(Ha[$$]=Ba,Ha))));g==null||g(Cd,Ba,$$)},
disableDeselection:function(){return(Z==null?void 0:Z())===1},
selected:function(){return!!d()[NN()]}}))}}))),_.R(_.P,{cond:function(){return E().nextButton},
then:function(){var RW={};return _.R("div",{class:_.CO("ytChipsShelfViewModelRightArrowContainer",(RW.ytChipsShelfViewModelRightArrowContainerIsHidden=I,RW))},_.R(_.Sv,{data:function(){return E().nextButton}},{buttonViewModel:function(NN){return _.R(_.$l,{data:NN.data,
className:"ytChipsShelfViewModelRightArrow",onClick:u})}}))}})))}))},"Rc");
_.pN.idomCompat={callbacks:{callback:!0}};_.I9(_.pN,"chips-shelf-view-model",{props:{data:_.C6,callback:_.c$,selectionBehavior:_.C6,disableChipsScrollAnimation:_.C6}});_.I9(_.O(function(h){return _.R("yt-comment-filter-context-view-model",{class:_.CO("ytCommentFilterContextHost",h.className)},_.R(_.dK,{text:function(){return h.data().text}}))},"Sc"),"yt-comment-filter-context-view-model",{props:{data:_.C6,
className:_.c$}});var $Xl=_.O(function(h){h=_.au(h,{disabled:!1});var E=h.active,g=h.disabled;h={};h=_.CO("ytSwitchShapeTrack",(h.ytSwitchShapeTrackActive=function(){return E()},h.ytSwitchShapeTrackDisabled=function(){return g()},h));
var Z={};Z=_.CO("ytSwitchShapeKnob",(Z.ytSwitchShapeKnobActive=function(){return E()},Z));
return _.R("switch-shape",{class:"ytSwitchShapeHost"},_.R("div",{class:h}),_.R("div",{class:Z}))},"Tc");var KVk=_.O(function(h){var E=_.au(h,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),g=E.data;h=E.className;var Z=E.handleOnTapEventInParent,M=E.parentActive,W=E.onTap;E=_.G(_.qi(function(){var d;return(d=M())!=null?d:g().switchedOnByDefault||!1}));
var z=E.next().value,c=E.next().value,I=function(){return g().isDisabled},B=_.hf("button");
E=_.J7(function(d){return d.key==="Enter"?(d.preventDefault(),B.value.click(),!1):!0});
var U=_.J7(function(d){if(g().handleOnTapEventInParent||Z())return!0;if(I())return!1;if(W)return W(d),!0;pON(g(),z(),d);c(!z());return!1}),L={};
L=_.CO("ytSwitchButtonViewModelButton",(L.ytSwitchButtonViewModelTappable=function(){return!I()},L));
return _.R("switch-button-view-model",{class:_.CO("ytSwitchButtonViewModelHost",h)},_.R("button",{el:B,class:L,"on:click":U,"on:keydown":E,"aria-label":function(){return z()?g().a11yLabelSwitchedOn:g().a11yLabelSwitchedOff},
"aria-checked":z,"aria-disabled":I,role:"switch"},_.R($Xl,{active:z,disabled:I})))},"Uc");var Oxf=_.O(function(h){var E=h.data;var g=h.isLeading;var Z=h.hideSelectionTextChevron;var M=h.isToggled;var W=function(){return g()?E().leadingImage:E().trailingImage},z=function(){a:switch(E().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var U="expand_more";
break a;default:U="chevron_right"}return U};
h={};var c=_.CO("yt-list-item-view-model__image-container",(h["yt-list-item-view-model__leading"]=g,h["yt-list-item-view-model__trailing"]=function(){return!g()},h)),I=_.CO("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
h={};var B=_.CO("yt-list-item-view-model__accessory",(h["yt-list-item-view-model__leading"]=g,h["yt-list-item-view-model__trailing"]=function(){return!g()},h));
return _.R(_.P,{cond:function(){var U=E(),L=g();return!!(L&&(U.leadingImage||U.leadingAccessory)||!L&&(U.trailingImage||U.trailingButton||U.trailingButtons||U.selectionText))},
then:function(){return _.R(_.zt,null,_.R(_.P,{cond:W,then:function(U){return _.R("div",{class:c,"aria-hidden":"true"},_.R(_.pO,{data:U,alt:"",preserveWidth:!0,preserveHeight:!0,className:I,isToggled:M}))}}),_.R(_.P,{cond:function(){return g()&&E().leadingAccessory},
then:function(){return _.R("div",{class:c},_.R(_.Sv,{data:function(){return E().leadingAccessory}},{avatarViewModel:function(U){return _.R(_.Mq,{data:U.data,
avatarButtonCustomClassName:I})},
collectionThumbnailViewModel:function(U){return _.R(p8D,{data:U.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.R(_.P,{cond:function(){return!g()&&E().trailingButton},
then:function(){return _.R("div",{class:"yt-list-item-view-model__button-container"},_.R(_.Sv,{data:function(){return E().trailingButton}},{buttonViewModel:function(U){return _.R(_.$l,{data:U.data,
className:B})}}))}}),_.R(_.P,{cond:function(){var U;
return!g()&&((U=E().trailingButtons)==null?void 0:U.buttons)},
then:function(){return _.R("div",{class:"yt-list-item-view-model__button-container"},_.R(_.Sv,{data:function(){var U;return(U=E().trailingButtons)==null?void 0:U.buttons}},{buttonViewModel:function(U){return _.R(_.$l,{data:U.data,
className:B})},
accountLinkButtonViewModel:function(U){return _.R(TRD,{data:U.data,className:B})},
switchButtonViewModel:function(U){return _.R(KVk,{data:U.data,className:B})},
subscribeButtonViewModel:function(U){return _.R(_.Mb,{data:U.data,isOverlay:!1,animateWidth:!1,className:B})},
toggleButtonViewModel:function(U){return _.R(_.Z7,{data:U.data,className:B})}}))}}),_.R(_.P,{cond:function(){return!g()&&!!E().selectionText},
then:function(){return _.R(_.zt,null,_.R(_.dK,{text:function(){return E().selectionText},
className:_.CO("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.R(_.P,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.R(_.Ni,{icon:z,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Vc");var n1M=_.O(function(h){function E(){var C,q;I((q=(C=M)==null?void 0:C.isKeyBoardInUse())!=null?q:!1)}
function g(){I(!1)}
function Z(){var C;return c()?(C=h.focusedClassName)==null?void 0:C.call(h):""}
var M=_.GF().resolve(_.pl(_.DX)),W=_.G(_.Bm(!1,void 0,"zbdw0d")),z=W.next().value;W=W.next().value;var c=z,I=W,B=function(){var C,q;return((C=h.toggleable)==null?0:C.call(h))?(q=h.toggled)==null?void 0:q.call(h):void 0},U=_.J7(function(C){var q,w=(q=h.command)==null?void 0:q.call(h);
w&&_.GF().resolve(_.zF).resolveCommand(w);var r;(r=h.onClick)==null||r.call(h,C)}),L=_.J7(E),d=_.J7(g);
return _.R(_.P,{cond:function(){var C;if(C=h.command){C=h.command();C=yPx(C);var q=C.href;C=!(!C.navigatingCommand||!q)}return C},
then:function(){return _.R(_.lk,Object.assign({},{command:h.command,style:h.style,ariaDescribedby:h.ariaDescribedby,ariaHidden:h.ariaHidden,ariaLabel:h.ariaLabel,ariaLabelledby:h.ariaLabelledby,ariaSelected:h.ariaSelected,disabled:h.disabled,dir:h.dir,tabIndex:h.tabIndex,target:h.target,title:h.title,onClick:h.onClick},{className:_.CO("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",h.className,function(){return Z()}),
onFocusin:E,onFocusout:g,ariaCurrent:function(){var C,q;return(q=(C=h.ariaCurrent)==null?void 0:C.call(h))!=null?q:B()}}),h.children)},
else:function(){return _.R("button",{"on:click":U,"on:focusin":L,"on:focusout":d,class:_.CO("ytButtonOrAnchorHost","ytButtonOrAnchorButton",h.className,function(){return Z()}),
style:h.style,"aria-describedby":h.ariaDescribedby,"aria-hidden":h.ariaHidden,"aria-label":h.ariaLabel,"aria-labelledby":h.ariaLabelledby,"aria-pressed":B,dir:h.dir,disabled:h.disabled,tabindex:h.tabIndex,title:h.title},h.children)}})},"Wc");var Xrm=_.O(function(h){var E=h.data;var g=h.useButtonOrAnchor;var Z=h.onTap;var M=h.isTappableWithoutSelect;var W=h.isToggled;return _.R(_.P,{cond:function(){return E().title||E().subtitle},
then:function(){return _.R("div",{class:"yt-list-item-view-model__text-wrapper"},_.R(_.P,{cond:function(){return E().title},
then:function(z){return _.R("div",{class:"yt-list-item-view-model__title-wrapper"},_.R(_.P,{cond:function(){return(g==null?void 0:g())&&(M==null?void 0:M())},
then:function(){return _.R(n1M,{command:function(){return _.K4(E().rendererContext)},
onClick:Z,className:"yt-list-item-view-model__button-or-anchor",toggleable:W!==void 0,toggled:W},_.R(_.dK,{text:z,className:"yt-list-item-view-model__title"}))},
else:function(){return _.R(_.dK,{text:z,className:"yt-list-item-view-model__title"})}}))}}),_.R(_.P,{cond:function(){return E().subtitle},
then:function(z){return _.R(_.dK,{text:z,className:"yt-list-item-view-model__subtitle"})}}))}})},"Xc");var Ymm=_.O(function(h){var E=h.data;var g=h.hideSelectionTextChevron;var Z=h.TrailingAccessory;var M=h.isToggled;var W=h.disabled;var z=h.isSelectItem;var c=h.isCompact;var I=h.inPopup;var B=h.disableHorizontalPadding;var U=h.isTappableWithoutSelect;var L=h.useButtonOrAnchor;h=h.onTap;var d={};return _.R("div",{class:_.CO("yt-list-item-view-model__label",(d["yt-list-item-view-model__container"]=function(){return!(z==null?0:z())},d["yt-list-item-view-model__container--disabled"]=function(){return!!E().isDisabled||
!(W==null||!W())},d["yt-list-item-view-model__container--has-subtitle"]=function(){return!!E().subtitle},d["yt-list-item-view-model__container--compact"]=c,d["yt-list-item-view-model__container--tappable"]=U,d["yt-list-item-view-model__container--in-popup"]=I,d["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(B==null?void 0:B())&&!(z==null?0:z())},d))},_.R(Oxf,{data:E,
isLeading:!0,hideSelectionTextChevron:g,isToggled:M}),_.R(Xrm,{data:E,onTap:h,useButtonOrAnchor:L,isTappableWithoutSelect:U,isToggled:M}),_.R(_.P,{cond:function(){return!!Z},
then:function(){return _.R("div",{class:"yt-list-item-view-model__trailing"},Z&&_.R(Z,null))},
else:function(){return _.R(Oxf,{data:E,isLeading:!1,hideSelectionTextChevron:g,isToggled:M})}}))},"Yc");var VtA=_.O(function(h){var E=_.au(h,{checked:!1});h=E.name;var g=E.onChange,Z=E.onClick,M=E.checked,W=E.labelRenderable,z=E.hasLeadingLabel,c=E.labelClass,I=E.isCompact,B=E.selectElementClass;E=E.disableHorizontalPadding;var U="checkbox"+_.y$(_.Mt),L=_.J7(function(q){Z==null||Z(q);return!1}),d=_.J7(function(q){g==null||g(q);
return!1}),C={};
return _.R("checkbox-shape",null,_.R("label",{class:_.CO("ytCheckboxShapeHost",c,(C.ytCheckboxShapeHostCompact=I,C.ytCheckboxShapeDisableHorizontalPadding=E,C))},_.R("input",{class:"ytCheckboxShapeInput",id:U,checked:M,name:h,type:"checkbox","prop:checked":M,"on:change":d,"on:click":L}),_.R(_.P,{cond:function(){return!(z==null?0:z())},
then:function(){return _.R(sXD,{isLeading:!0,selectElementClass:B})}}),_.R(_.P,{cond:function(){return!!W},
then:function(){return _.R("div",{class:"ytCheckboxShapeLabel"},W==null?void 0:W())}}),_.R(_.P,{cond:z,
then:function(){return _.R(sXD,{isLeading:!1,selectElementClass:B})}})))},"Zc");
VtA.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sXD=_.O(function(h){var E=h.selectElementClass;h={};return _.R("div",{class:_.CO("ytCheckboxShapeCheckbox",E,(h.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(E==null?0:E())},h)),
"aria-hidden":"true"},_.R(_.Ni,{icon:_.J("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.R(_.Ni,{icon:_.J("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"$c");_.Go=_.O(function(h){var E=h.name;var g=h.onChange;var Z=h.onClick;var M=h.checked;var W=h.labelRenderable;var z=h.useCheckIcon;var c=h.hasLeadingLabel;var I=h.labelClass;var B=h.isCompact;var U=h.selectElementClass;var L=h.ariaLabel;h=h.className;var d="radio"+_.y$(_.Mt),C=_.hf("input"),q=_.J7(function(A){C.value.checked=!(M==null||!M());g==null||g(A);return!1}),w=_.J7(function(A){Z==null||Z(A);
return!1}),r=_.J7(function(A){_.J("enable_ios_webview_radio_button_responsiveness")&&(A.preventDefault(),C.value.click())}),v=_.G(_.Bm(!1,void 0,"TcCZlf")),H=v.next().value,u=v.next().value;
v=_.J7(function(){var A;((A=_.GF().resolve(_.pl(_.DX)))==null?0:A.isKeyBoardInUse())&&u(!0)});
var k=_.J7(function(){u(!1)}),y={};
return _.R("radio-shape",{class:_.CO("yt-radio-shape",h)},_.R("input",{el:C,class:"yt-radio-shape__input",id:d,"prop:checked":M,name:E,type:"radio","on:change":q,"on:click":w,"aria-label":L,"on:focusin":v,"on:focusout":k}),_.R("label",{class:_.CO("yt-radio-shape__label-container",I,(y["yt-radio-shape--compact"]=B,y["yt-radio-shape__label-container--keyboard-focused"]=H,y)),for:d,"on:click":r},_.R(_.P,{cond:function(){return!(c==null?0:c())},
then:function(){return _.R(kkD,{checked:M,useCheckIcon:z,isLeading:!0,selectElementClass:U})}}),_.R(_.P,{cond:function(){return!!W},
then:function(){return _.R("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(L==null?0:L())?"true":"false"}},W==null?void 0:W())}}),_.R(_.P,{cond:c,
then:function(){return _.R(kkD,{checked:M,useCheckIcon:z,isLeading:!1,selectElementClass:U})}})))},"ad");
_.Go.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var kkD=_.O(function(h){var E=h.useCheckIcon;var g=h.selectElementClass;h=function(){return(E==null?0:E())?"CHECK":_.J("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var Z={};return _.R("div",{class:_.CO("yt-radio-shape__radio",g,(Z["yt-radio-shape__radio--check-icon"]=E,Z["yt-radio-shape__radio--radio-default-style"]=function(){return!(g==null?0:g())},Z)),
"aria-hidden":"true"},_.R(_.Ni,{icon:h}),_.R(_.Ni,{icon:h,active:function(){return!(E==null?0:E())}}))},"bd");_.zo=_.O(function(h){var E=h.data;var g=h.isMenuItem;var Z=h.isCompact;var M=h.onTap;var W=h.trailingAccessory;var z=h.hideSelectionTextChevron;var c=h.disabled;var I=h.inPopup;var B=h.disableHorizontalPadding;var U=h.isOverlay;var L=h.isToggled;var d=h.ariaLabel;h=h.ariaPressed;var C=function(){return _.J("enable_web_shorts_captions_language_command")||_.J("web_shorts_audio_track_picker")?Object.assign({},E(),ah$(E())):E()},q=iRa(function(){return C().rendererContext}),w=function(){return!(C().isSelected===
void 0||!C().selectionStyle||C().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},r=function(){return(_.Oz(C().rendererContext)||M)&&!w()},v={},H=_.CO("yt-list-item-view-model__container",(v["yt-list-item-view-model__container--tappable"]=function(){return _.Oz(C().rendererContext)||w()},v["yt-list-item-view-model__container--compact"]=Z,v["yt-list-item-view-model__container--in-popup"]=I,v["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(B==null?void 0:
B())&&w()},v)),u=function(){return C().leadingImage||C().leadingAccessory},k=_.CO("yt-list-item-view-model__image-container",function(){return u()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
v=_.J7(function(Cd){NN||M==null||M(Cd)});
var y=_.acW(),A=_.G(_.Bm(!1,void 0,"Gqp0Kd")),E4=A.next().value,iO=A.next().value,RW=function(){return _.R(Ymm,{data:C,hideSelectionTextChevron:z,TrailingAccessory:W,isToggled:L,disabled:c,isSelectItem:w,isCompact:Z,inPopup:I,disableHorizontalPadding:B,isTappableWithoutSelect:r,useButtonOrAnchor:NN,onTap:M})},NN=_.J("web_button_or_anchor_list_item");
A={};return _.R("yt-list-item-view-model",{el:_.zT(_.n4(function(){return C().rendererContext},void 0,void 0,NN?["A".toString(),
"BUTTON".toString()]:[]),NN&&M?c4q(M):void 0,eQx(function(){return r==null?void 0:r()},{focusin:function(){var Cd;
((Cd=_.GF().resolve(_.pl(_.DX)))==null?0:Cd.isKeyBoardInUse())&&iO(!0)},
focusout:function(){iO(!1)}})),
class:_.CO("yt-list-item-view-model",(A["yt-list-item-view-model--is-overlay"]=U,A["yt-list-item-view-model--keyboard-focused"]=E4,A)),role:function(){return(g==null?0:g())?"menuitem":"listitem"},
tabindex:function(){var Cd=r();Cd=NN?void 0:M||Cd?0:void 0;return Cd},
"on:keydown":y,"on:click":v,"aria-label":function(){var Cd;return(d==null?void 0:d())||((Cd=q())==null?void 0:Cd.label)},
"aria-pressed":h},_.R(_.P,{cond:w,then:function(){return _.R(_.DG,null,_.R(_.x3,{when:function(){return C().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.R(VtA,{labelRenderable:RW,
isCompact:Z,checked:function(){return C().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:H,selectElementClass:k,disableHorizontalPadding:B})}),_.R(_.x3,{when:function(){return C().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.R(_.Go,{labelRenderable:RW,
isCompact:Z,checked:function(){return C().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:H,selectElementClass:k})}),_.R(_.x3,{when:function(){return C().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.R(_.Go,{labelRenderable:RW,
isCompact:Z,checked:function(){return C().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:H,selectElementClass:k,useCheckIcon:!0})}),_.R(_.wX,null,RW))},
else:RW}))},"cd");
_.zo.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.y8D=_.O(function(h){var E=h.data;var g=h.onTap;var Z=h.onSwitch;var M=h.overrideDisabled;h=h.disableHorizontalPadding;var W=_.G(_.qi(function(){var C;return((C=zXz(L()))==null?void 0:C.switchedOnByDefault)||!1})),z=W.next().value,c=W.next().value;
W=_.G(_.Bm(!1,void 0,"ZHBkbb"));var I=W.next().value,B=W.next().value,U=_.J("web_button_or_anchor_list_item"),L=function(){var C;if(!(C=E().switchButton)){var q=E();C=M==null?void 0:M();q={switchOnCommand:q.switchOnCommand,switchOffCommand:q.switchOffCommand,switchedOnByDefault:q.switchedOnByDefault,isDisabled:q.isDisabled,handleOnTapEventInParent:!U,a11yLabelSwitchedOn:q.a11yLabelSwitchedOn,a11yLabelSwitchedOff:q.a11yLabelSwitchedOff};C!==void 0&&(q.isDisabled=C);C={switchButtonViewModel:q}}return C},
d=function(C){var q=zXz(L());
!q||q.isDisabled||E().ignoreTapUntilCommandCompletes&&I()||(g==null||g(C),pON(q,z(),C,E().ignoreTapUntilCommandCompletes,B),c(!z()),Z==null||Z(z()))};
return _.R("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.R(_.zo,{data:function(){return{title:E().title,subtitle:E().attributedSubtitle,leadingImage:E().leadingImage,leadingAccessory:E().leadingAccessory,isDisabled:E().isDisabled}},
onTap:d,isToggled:U?z:void 0,trailingAccessory:function(){return _.R(_.Sv,{data:L},{switchButtonViewModel:function(C){return _.R(KVk,{data:C.data,parentActive:z,handleOnTapEventInParent:!!g&&!U,onTap:U?d:void 0})}})},
disableHorizontalPadding:h}))},"dd");var FVF=_.O(function(h){var E=_.G(_.qi(function(){var M,W;return!!((M=h.data())==null?0:(W=M.initialState)==null?0:W.isToggled)})),g=E.next().value,Z=E.next().value;
E=_.J7(function(){Z(!g())});
return _.R("toggleable-list-item-view-model",{el:_.zT(_.n4(function(){return h.data().rendererContext})),
class:_.CO("toggleableListItemViewModelHost",h.className),"on:click":E},_.R(_.P,{cond:function(){if(g()){var M=h.data().toggledListItem;M=_.e(M,_.Dd)}else M=h.data().defaultListItem,M=_.e(M,_.Dd);return M},
then:function(M){return _.R(_.zo,{data:M,isToggled:g,ariaLabel:function(){var W=g()?h.data().toggledListItem:h.data().defaultListItem,z;W=(z=_.e(W,_.Dd))==null?void 0:z.rendererContext;var c;return(c=_.e(W,_.te))==null?void 0:c.label},
ariaPressed:function(){return g()}})}}))},"ed");var A8F=_.NH("DOWNLOAD",{},"Download"),T4M=_.NH("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),bxf=_.NH("RETRY",{},"Retry"),ubn=_.NH("PAUSE_DOWNLOADING",{},"Pause downloading"),QXf=_.NH("RESUME_DOWNLOAD",{},"Resume download"),oHa={text:A8F,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Sp={text:T4M,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},PaO={text:bxf,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
IhZ={text:ubn,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},RX$={text:QXf,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var hMA=_.O(function(h){var E=function(){var c=h.data();c=_.K4(c.rendererContext);var I;return(I=_.e(c,_.JU))==null?void 0:I.videoId},g=_.VQ(function(c){var I=E(),B=L$$(h.data());
return I?_.y7(c,I):B?_.FM(c,B):"TRANSFER_STATE_UNKNOWN"}),Z=_.qI(_.qk$,E),M=_.VQ(function(c){return _.UPa(c,E(),L$$(h.data()))}),W=function(){return Uex(g(),Z(),_.K4(h.data().rendererContext),!!L$$(h.data()))},z=function(){return M()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.R("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:z},_.R(_.P,{cond:function(){return!z()},
then:function(){return _.R(_.P,{cond:W,then:function(c){return _.R(_.SX,{each:c},function(I){return _.R(_.zo,{data:I,isCompact:h.isCompact,isMenuItem:h.isMenuItem,inPopup:h.inPopup,disableHorizontalPadding:h.disableHorizontalPadding})})}})}}))},"fd");
hMA.idomCompat=!0;_.EGm=_.O(function(h){var E=h.data;var g=h.isCompact;var Z=h.hideSelectionTextChevron;var M=h.inPopup;var W=h.isOverlay;var z=h.disableHorizontalPadding;var c=function(){return j3$(E())&&(M==null?void 0:M())};
h={};return _.R("yt-list-view-model",{class:_.CO("ytListViewModelHost",(h.ytListViewModelHostKaiosSpatNav=x0W&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",h.ytListViewModelCollectionThumbnailClass=function(){return J4$(E())},h)),
role:function(){return c()?"menu":"list"},
style:_.fO({"max-height":function(){var I,B=(I=E())==null?void 0:I.visibleElementCount;if(B)return J4$(E())?(B+.5)*48+"px":(B+.5)*40+"px"}})},_.R(_.Sv,{data:function(){return E().listItems}},{listItemViewModel:function(I){return _.R(_.zo,{data:I.data,
isMenuItem:c,isCompact:g,hideSelectionTextChevron:Z,inPopup:M,isOverlay:W,disableHorizontalPadding:z})},
toggleableListItemViewModel:function(I){return _.R(FVF,{data:I.data})},
downloadListItemViewModel:function(I){return _.R(hMA,{data:I.data,isMenuItem:c,isCompact:g,inPopup:M,disableHorizontalPadding:z})},
switchListItemViewModel:function(I){return _.R(_.y8D,{data:I.data,disableHorizontalPadding:z})}}))},"gd");
_.EGm.idomCompat=!0;var gGB=_.O(function(h){var E=h.data;var g=h.isOverlay;h={};return _.R("yt-course-perks-view-model",{class:_.CO("ytwCoursePerksViewModelHost",(h.ytwCoursePerksViewModelHostOverlay=g,h))},_.R("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("div",null,_.R(_.P,{cond:function(){return E().perks},
then:function(Z){return _.R(_.EGm,{data:function(){return{listItems:Z()}},
isCompact:!0,isOverlay:g})}})))},"hd");_.I9(gGB,"yt-course-perks-view-model",{props:{data:_.c$,isOverlay:_.c$}});_.I9(_.O(function(h){var E=h.data;return _.R("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.R("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.R(_.dK,{text:function(){return E().progressSummary}})),_.R("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.R("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.fO({width:function(){return E().progressPercentage*100+"%"}})})))},"id"),"yt-course-progress-view-model",{props:{data:_.C6}});var ZcB=_.O(function(h){var E={};return _.R("yt-progress-view-model",{class:_.CO("ytwProgressViewModelHost",(E.ytwProgressViewModelHostOverlay=_.zl(h.isOverlay,!1),E))},_.R(_.P,{cond:function(){return h.data().progressSummary},
then:function(g){return _.R("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.R(_.dK,{text:g}))}}),_.R("div",{class:"ytwProgressViewModelHostProgressContainer"},_.R(_.P,{cond:function(){return h.data().leadingLabel},
then:function(g){return _.R("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.R(_.dK,{text:g}))}}),_.R("div",{class:"ytwProgressViewModelHostProgressBar"},_.R("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(h.data().progressPercentage||0)*100+"%"}}))))},"jd");var ah=_.O(function(h){var E=h.starNumber;var g=h.data;var Z=function(){var M;return((M=g())==null?void 0:M.rating)||0};
return _.R(_.P,{cond:function(){return E()},
then:function(M){return _.R(_.DG,null,_.R(_.x3,{when:function(){return Z()>=M()-.25}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.Ni,{icon:"STAR_FILLED"}))}),_.R(_.x3,{when:function(){return Z()>=M()-.75}},function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.Ni,{icon:"STAR_HALF"}))}),_.R(_.wX,null,function(){return _.R("div",{class:"ytStarRatingViewModelHostStar"},_.R(_.Ni,{icon:"STAR_BORDER"}))}))}})},"kd"),MoH=_.O(function(h){h=h.data;
return _.R("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.R(ah,{starNumber:1,data:h}),_.R(ah,{starNumber:2,data:h}),_.R(ah,{starNumber:3,data:h}),_.R(ah,{starNumber:4,data:h}),_.R(ah,{starNumber:5,data:h}))},"ld");_.I9(_.O(function(h){var E=_.au(h,{}).data;return _.R("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.R("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.R(_.dK,{text:function(){var g;return(g=E())==null?void 0:g.title}})),_.R("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.R(_.P,{cond:function(){return E().starProgressViewModels},
then:function(g){return _.R("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.R(_.Sv,{data:g},{progressViewModel:ZcB}))}}),_.R("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.R("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.R(_.dK,{text:function(){var g;
return(g=E())==null?void 0:g.averageRatingLabel}})),_.R(_.P,{cond:function(){return E().zeroStateText},
then:function(g){return _.R("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.R(_.dK,{text:g}))}}),_.R(_.P,{cond:function(){return E().starRatingViewModel},
then:function(g){return _.R("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.R(_.Sv,{data:g},{starRatingViewModel:MoH}))}}),_.R("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.R(_.dK,{text:function(){var g;
return(g=E())==null?void 0:g.totalRatingsCountLabel}})))))},"md"),"yt-course-ratings-view-model",{props:{data:_.c$}});var Wel;Wel={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.pyD=_.O(function(h){var E=_.hf("yt-learning-journey-loader-view-model"),g=_.d5();_.m1(function(){requestAnimationFrame(function(){var M;(M=g.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var W;(W=h.onLottieLoaded)==null||W.call(h)})});
var Z=h.data().browseEndpoint;Z&&_.Tl(Z)});
return _.R("yt-learning-journey-loader-view-model",{class:_.CO("learningJourneyLoaderViewModelHost",h.className),"data-target-id":function(){var Z;return((Z=h.data)==null?void 0:Z.call(h).targetId)||""},
el:E},_.R(_.sh,{className:_.CO("learningJourneyLoaderViewModelLoader",h.className),animationName:function(){return Wel.animationConfig.name},
data:Wel,animationRef:g}))},"nd");_.I9(_.pyD,"yt-learning-journey-loader-view-model",{props:{data:_.C6,className:_.c$,onLottieLoaded:_.c$}});var q2W=new Set,eXa=null;var zMM=_.O(function(h){var E=void 0,g=function(){return h.data()},Z=function(){var C=g();
var q=_.GF().resolve(_.pl(_.gu));C=q!=null&&q()?C.darkThemeColorPalette:C.lightThemeColorPalette;return{primaryTextColor:wH(C,0),secondaryTextColor:wH(C,1),optionColor:wH(C,2),backgroundColor:wH(C,3),videoBackgroundColor:wH(C,4)}},M=function(){return!!Z().optionColor},W=_.G(_.Bm(-1,void 0,"FNv5Ne")),z=W.next().value,c=W.next().value,I=function(C){return g().correctAnswerIndex===C},B=function(){return z()!==-1};
W=_.G(_.Bm("",void 0,"LFzaYe"));var U=W.next().value,L=W.next().value,d=function(C){return z()===g().correctAnswerIndex&&I(C)};
return _.R("learning-journey-quiz-view-model",{class:_.CO("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",h.className),style:_.fO({background:function(){return Z().backgroundColor}})},_.R("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},U),_.R(_.P,{cond:function(){return!!g().video},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.fO({background:function(){return Z().videoBackgroundColor}})},_.R(_.Sv,{data:function(){return g().video}},{lockupViewModel:function(C){return _.R(_.H0,{data:C.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.R("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.R(_.P,{cond:function(){return!!g().aiGeneratedQuizLabel},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.R(_.dK,{text:function(){return g().aiGeneratedQuizLabel}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.fO({"align-items":function(){return g().overflowMenu?"start":"center"}})},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.fO({"min-height":function(){return g().overflowMenu?"48px":"26px"}})},_.R("div",{class:"learningJourneyQuizYoututorText",
style:_.fO({color:function(){return Z().primaryTextColor}})},_.R(_.dK,{text:function(){return g().questionHeaderText}})))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.fO({color:function(){return Z().secondaryTextColor}})},_.R(_.dK,{text:function(){var C=g();
return B()?C.explanationText:C.questionSubheaderText}}))),_.R("div",{role:"group",
class:_.CO("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.R(_.SX,{each:function(){return g().optionsData||[]}},function(C,q){var w={};
return _.R("button",{class:_.CO("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(w.learningJourneyQuizViewModelHostQuizHover=function(){return!B()},w.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=M,w.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return B()&&I(q())},w.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var r;
if(r=z()!==g().correctAnswerIndex)r=q(),r=z()===r;return r},w)),
"on:click":_.J7(function(){if(B())return!1;c(q());var r,v;L(I(q())?((r=g().successTitle)==null?void 0:r.content)||"":((v=g().failureTitle)==null?void 0:v.content)||"");return!1}),
style:_.fO({background:"transparent"}),"aria-description":function(){var r,v;return B()?I(q())?(r=g().successTitle)==null?void 0:r.content:(v=g().failureTitle)==null?void 0:v.content:""},
"aria-disabled":B,el:_.zT(function(r){_.x7(271905,r,E,function(v){E=v})}),
"client-ve-type":271905},_.R("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.R(_.dK,{text:C.optionText}),_.R(_.P,{cond:function(){var r=q(),v;if(v=B())v=z()===r||I(r);return v},
then:function(){return _.R(GPH,{isOptionCorrect:I,optionIndex:q,isOptionSelectedAndCorrect:d,colors:Z})}})))}),_.R(_.P,{cond:B,
then:function(){return _.R("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.R("div",{class:"learningJourneyQuizYoututorExplanationText"},_.R(_.dK,{text:function(){return g().explanationHeaderText}})),_.R(_.dK,{text:function(){return g().optionsData[z()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"od"),GPH=_.O(function(h){var E={};
return _.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.CO("learningJourneyQuizYoututorOptionIconTrailing",(E.learningJourneyQuizViewModelHostQuizPulse=function(){return h.isOptionSelectedAndCorrect(h.optionIndex())},E.learningJourneyQuizYoututorIconIncorrectFill=function(){return!h.isOptionSelectedAndCorrect(h.optionIndex())&&!h.isOptionCorrect(h.optionIndex())},E.learningJourneyQuizYoututorIconCorrectFill=function(){return h.isOptionCorrect(h.optionIndex())},
E))},_.R("path",{d:function(){var g=h.optionIndex();
return h.isOptionCorrect(g)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"pd");
zMM.idomCompat=!0;var aBf;_.cJM=_.O(function(h){var E=null,g=null,Z=null,M=function(){return h.data()},W=function(){var k=M();
var y=_.GF().resolve(_.pl(_.gu));k=y!=null&&y()?k.darkThemeColorPalette:k.lightThemeColorPalette;return{primaryTextColor:Dq(k,0),secondaryTextColor:Dq(k,1),optionColor:Dq(k,2),backgroundColor:Dq(k,3),videoBackgroundColor:Dq(k,4)}},z=function(){return!!W().optionColor},c=_.G(_.Bm(-1,void 0,"QDu8Oe")),I=c.next().value,B=c.next().value,U=function(k){return I()===k},L=function(k){return M().correctAnswerIndex===k},d=function(){return I()!==-1},C=function(){return I()===M().correctAnswerIndex},q=function(){var k=
M(),y=d(),A=C();
return y?A?k.successTitle:k.failureTitle:k.questionHeaderText},w=function(){var k=d(),y=C();
return k?y?264685:264684:264683},r=function(){var k=M();
return d()?k.explanationText:k.questionSubheaderText},v=function(){return!!M().video},H=function(k){return C()&&L(k)},u=_.J7(function(){B(-1);
return!1});
return _.R(_.P,{cond:function(){return M().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.R(zMM,{data:function(){return M()}})},
else:function(){return _.R("learning-journey-quiz-view-model",{class:_.CO("learningJourneyQuizViewModelHost",h.className),style:_.fO({background:function(){return W().backgroundColor}})},_.R(_.P,{cond:v,
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.fO({background:function(){return W().videoBackgroundColor}})},_.R(_.Sv,{data:function(){return M().video}},{lockupViewModel:function(k){return _.R(_.H0,{data:k.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.R("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.R("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.R(_.P,{cond:function(){return!!M().aiGeneratedQuizLabel},
then:function(){return _.R("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.R(_.dK,{text:function(){return M().aiGeneratedQuizLabel}}))}}),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.fO({"align-items":function(){return M().overflowMenu?"start":"center"}})},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.fO({"min-height":function(){return M().overflowMenu?"48px":"26px"}})},_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.zT(function(k){_.x7(w(),k,E,function(y){E=y})}),
style:_.fO({color:function(){return W().primaryTextColor}}),
"client-ve-type":w},_.R(_.dK,{text:q}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.R(_.P,{cond:d,then:function(){return _.R("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.zT(function(k){_.x7(264687,k,g,function(y){g=y})}),
"on:click":u,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.fO({fill:function(){return W().primaryTextColor}})},_.R("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.R(_.Sv,{data:function(){return M().overflowMenu}},{buttonViewModel:function(k){return _.R(_.$l,{data:k.data})}}))),_.R("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.zT(function(k){_.x7(264688,k,Z,function(y){Z=y})}),
style:_.fO({color:function(){return W().secondaryTextColor}}),
"client-ve-type":264688},_.R(_.dK,{text:r}))),_.R("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.R(_.SX,{each:function(){return M().optionsData||[]}},function(k,y){var A={};
return _.R("button",{class:_.CO("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(A.learningJourneyQuizViewModelHostQuizHover=function(){return!d()},A.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=z,A.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return H(y())},A.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!C()&&U(y())},A.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return d()&&
!U(y())},A)),
"on:click":_.J7(function(){if(d())return!1;B(y());return!1}),
style:_.fO({background:function(){var E4=y();return d()&&U(E4)?"":z()?W().optionColor:"transparent"}}),
"aria-disabled":d,"client-ve-type":264686},_.R("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.R(_.P,{cond:d,then:function(){return _.R(aBf,{isOptionCorrect:L,optionIndex:y,isOptionSelectedAndCorrect:H,colors:W})}}),_.R(_.dK,{text:k.optionText})))})))))}})},"qd");
aBf=_.O(function(h){var E={};return _.R("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var g=h.optionIndex();return h.isOptionCorrect(g)?"0 0 24 24":"0 -960 960 960"},
class:_.CO("learningJourneyQuizViewModelHostQuizOptionIconLeading",(E.learningJourneyQuizViewModelHostQuizPulse=function(){return h.isOptionSelectedAndCorrect(h.optionIndex())},E)),
style:_.fO({fill:function(){return h.colors().primaryTextColor}})},_.R("path",{d:function(){var g=h.optionIndex();
return h.isOptionCorrect(g)?"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"}}))},"rd");
_.cJM.idomCompat=!0;_.I9(_.cJM,"learning-journey-quiz-view-model",{props:{data:_.C6,className:_.C6}});var icB=_.O(function(h){var E=_.G((0,_.xLD)(function(){var z;return{targetId:(z=h.data().config)==null?void 0:z.suspenseKey,contents:[h.data()]}})).next().value,g=_.GF().resolve(_.zF),Z=function(){var z=E().contents.length>0?E().contents[0]:void 0;
return z==null?void 0:z.config},M=function(){var z;
return(z=Z())==null?void 0:z.entityTriggerConfig},W=_.qI(H_q,function(){var z,c;
return(c=(z=M())==null?void 0:z.entityKey)!=null?c:""});
_.lX(function(){var z,c,I,B=(I=Number((z=M())==null?void 0:(c=z.invalidationTimestamp)==null?void 0:c.seconds))!=null?I:0,U,L,d;if(((d=Number((U=W())==null?void 0:(L=U.lastUpdated)==null?void 0:L.seconds))!=null?d:0)>B){var C;(z=(C=Z())==null?void 0:C.continuationCommand)&&g.resolveCommand(z)}},"FaC8z");
return _.R("yt-suspense-view-model",{class:_.CO("ytSuspenseViewModelHost")},_.R(_.Sv,{data:function(){var z;return(z=Z())==null?void 0:z.contents}},{lockupViewModel:_.H0}))},"sd");var oGD=_.O(function(h){var E=_.au(h,{palette:void 0,isLastItem:!1}),g=E.palette,Z=E.isLastItem,M=function(){return h.data().isHighlighted},W=function(){var I;
return Nz$((I=g())==null?void 0:I.iconDisabledColor)},z=function(){var I;
return Nz$((I=g())==null?void 0:I.primaryTitleColor)},c=function(){var I;
return Nz$((I=g())==null?void 0:I.secondaryTitleColor)};
E={};return _.R("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.zT(_.n4(function(){return h.data().rendererContext}))},_.R(_.Sv,{data:function(){return h.data().thumbnail}},{thumbnailViewModel:_.f0}),_.R("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.R("div",{class:_.CO("ytMacroMarkerListItemViewModelTimeDescription",(E.ytMacroMarkerListItemViewModelHighlighted=M,E)),
style:_.fO({"background-color":function(){return M()?z():W()},
color:function(){return M()?"":c()}})},_.R(_.dK,{text:function(){return h.data().timestamp}})),_.R("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.fO({"background-color":function(){return Z()?"transparent":W()}})}),_.R("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(M()?z():c())}},_.R(_.dK,{text:function(){return h.data().title}}))))},"td");_.cE=_.O(function(h){function E(pd){H("transform:translateX("+(_.nF("HTML_DIR")==="rtl"?"":"-")+pd+"px)")}
function g(pd){return Math.min(Math.max(pd,0),v()-E4())}
function Z(){var pd=y()+Cd();return M()?(Math.round(E4()/pd)||1)*pd:0}
var M=function(){return h.data().items||[]},W=function(){return h.data().previousButton},z=function(){return h.data().nextButton},c=function(){var pd,gB;
return(gB=(pd=h.disableArrows)==null?void 0:pd.call(h))!=null?gB:!1},I=function(){var pd;
return!((pd=h.forceNarrowLayout)==null||!pd.call(h))},B=_.Cw(function(){var pd;
return!((pd=h.centerAlignItems)==null||!pd.call(h))&&v()<=E4()},void 0,"Uto0kc"),U=_.hf("horizontal-shelf-view-model"),L=_.hf("div"),d=_.G(_.Bm(0,void 0,"G0xZB")),C=d.next().value,q=d.next().value;
d=_.G(_.Bm(0,void 0,"kqCYFf"));var w=d.next().value,r=d.next().value,v=w;w=_.G(_.Bm("",void 0,"Hh6Uye"));d=w.next().value;var H=w.next().value;w=_.G(_.Bm(0,void 0,"yMGBKb"));var u=w.next().value,k=w.next().value,y=u;w=_.G(_.Bm(0,void 0,"VChthd"));u=w.next().value;var A=w.next().value,E4=u;w=_.G(_.Bm(!1,void 0,"qJlhhe"));var iO=w.next().value,RW=w.next().value;w=_.G(_.Bm(0,void 0,"x7H94"));u=w.next().value;var NN=w.next().value,Cd=u;w=_.G(_.Bm(0,void 0,"ksuUee"));var Ba=w.next().value,$$=w.next().value;
w=_.G(_.Bm("50%",void 0,"uxCxde"));var Ha=w.next().value,zf=w.next().value,eF=function(){var pd,gB=(pd=h.data())==null?void 0:pd.responsiveContainerConfiguration,CD,E0;return gB?Ma4(gB==null?void 0:gB.responsiveSize):(E0=(CD=h.sizing)==null?void 0:CD.call(h))!=null?E0:"STANDARD"};
w=_.Cw(function(){return!c()&&C()>0},void 0,"XK60w");
u=_.Cw(function(){return!c()&&C()<v()-E4()},void 0,"D22LVd");
var Rm=function(){q(g(C()-Z()));E(C())},bO=function(){q(g(C()+Z()));
E(C())},jF=function(){U.value!==null&&ll()},PM;
_.vJ(function(){ll();window.ResizeObserver?(PM=new ResizeObserver(_.lY(jF,0)),PM.observe(U.value)):window.addEventListener("resize",jF)});
_.r9(function(){if(window.ResizeObserver){var pd;(pd=PM)==null||pd.disconnect()}else window.removeEventListener("resize",jF)});
var ll=function(){var pd=U.value.clientWidth,gB=h.includeMargin!==void 0?h.includeMargin():!1,CD;var E0=h.hasPeek!==void 0?h.hasPeek():!((CD=h.data())==null||!CD.hasPeek);pd=_.kx({containerWidth:pd,hasPeek:E0,sizing:eF(),marginSettings:gB?I()?4:1:0});NN(pd.gutter);$$(pd.margin);k(pd.itemWidth);RW(pd.maxContainerWidth<528||I());A(pd.maxContainerWidth);M()&&r((pd.itemWidth+pd.gutter)*M().length-pd.gutter);if(M()){var Im;if(((Im=h.thumbnailAspectRatio)==null?void 0:Im.call(h))!==void 0){var Qk;zf(y()/
aKq((Qk=h.thumbnailAspectRatio)==null?void 0:Qk.call(h))/2+"px")}else zf("50%")}},xU={},pU={};
return _.R("horizontal-shelf-view-model",{class:_.CO("ytwHorizontalShelfViewModelHost",h.className),el:U},_.R(_.P,{cond:function(){var pd;return h.data().header&&!((pd=h.horizontalShelfExperiments)==null?0:pd.call(h).hideHeader)},
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.fO({width:function(){return E4()+"px"},
padding:function(){return"0 "+Ba()+"px"}})},_.R(_.Sv,{data:function(){return h.data().header}},{sectionHeaderViewModel:function(pd){return _.R(_.KY,{data:pd.data,
disableHorizontalPadding:!0,forceSmallLayout:iO,useResponsiveLayout:!0})}}))}}),_.R("div",{class:_.CO("ytwHorizontalShelfViewModelOuterContainer",(xU.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return B()},xU)),
style:_.fO({"margin-top":function(){var pd,gB=h.data().header&&!((pd=h.horizontalShelfExperiments)==null?0:pd.call(h).hideHeader),CD;return(((CD=h.ensureMarginTop)==null?0:CD.call(h))&&!gB?12:0)+"px"}})},_.R("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.fO({width:function(){return E4()+"px"},
padding:function(){return"0 "+Ba()+"px"},
overflow:function(){return c()?"auto":"hidden"}})},_.R("div",{class:_.CO("ytwHorizontalShelfViewModelItems",(pU.ytwHorizontalShelfViewModelCenterAlignItems=function(){return B()},pU)),
el:L,style:d},_.R(_.Sv,{data:M},{macroMarkerListItemViewModel:function(pd,gB){return _.R("div",{style:_.fO({width:function(){return y()+"px"},
"margin-right":function(){return(gB()===M().length-1?0:Cd())+"px"}})},_.R(oGD,{data:pd.data,
palette:_.zl(h.palette),isLastItem:function(){return gB()===M().length-1}}))},
lockupViewModel:function(pd,gB){var CD=pd.data;return _.R("div",{style:_.fO({width:function(){return y()+"px"},
"margin-right":function(){return(gB()===M().length-1?0:Cd())+"px"}})},_.R(_.H0,{data:CD,
containerType:4,sizing:eF,protectBackground:h.protectBackground,thumbnailFixedWidth:function(){return twV(CD())+"px"},
thumbnailTargetWidth:function(){return twV(CD())}}))},
suspenseViewModel:function(pd,gB){return _.R("div",{style:_.fO({width:function(){return y()+"px"},
"margin-right":function(){return(gB()===M().length-1?0:Cd())+"px"}})},_.R(icB,{data:pd.data}))}}))),_.R(_.P,{cond:w,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.fO({top:function(){return Ha()}})},_.R(_.Sv,{data:W},{buttonViewModel:function(pd){return _.R(_.$l,{data:pd.data,
onClick:Rm})}}))}}),_.R(_.P,{cond:u,
then:function(){return _.R("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.fO({top:function(){return Ha()}})},_.R(_.Sv,{data:z},{buttonViewModel:function(pd){return _.R(_.$l,{data:pd.data,
onClick:bO})}}))}})))},"ud");
_.cE.idomCompat=!0;var IBA=_.O(function(h){var E=function(){return h.data().targetId||""},g=function(){var w;
return((w=h.data())==null?void 0:w.expansionEntityKey)||""},Z=_.qI(_.vIu,g),M=!0,W=function(){var w;
return((w=Z())==null?void 0:w.value)===E()},z=function(w){_.Gl(_.xx("stringEntity",g(),{key:g(),
value:w?E():""}))};
_.m1(function(){M=!1;h.data().isExpanded&&z(!0)});
var c=function(){if(W()){var w=!0;h.onCollapse!==void 0&&(w=h.onCollapse());w&&z(!1)}else z(!0)},I=_.J7(c),B=function(){var w;
return(((w=h.accordionStyle)==null?void 0:w.call(h))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},U=_.hf("div"),L=function(){var w,r;
return(r=(w=_.e(h.data().rendererContext,_.te))==null?void 0:w.label)!=null?r:""},d=function(){var w,r;
return{disabled:(w=h.hideIfNotExpanded)==null?void 0:w.call(h),ariaHidden:(r=h.hideIfNotExpanded)==null?void 0:r.call(h)}},C={},q={};
return _.R("yt-accordion-item-view-model",{class:_.CO("ytAccordionItemViewModelHost",h.className,(C.ytAccordionItemViewModelExpanded=function(){return W()},C.ytAccordionItemViewModelHidden=function(){var w;
return(w=h.hideIfNotExpanded)==null?void 0:w.call(h)},C.ytAccordionItemViewModelMini=B,C)),
"data-target-id":E},_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:"ytAccordionItemViewModelLeftSection","on:click":I,title:L,"aria-hidden":function(){var w;return(w=h.hideIfNotExpanded)==null?void 0:w.call(h)}},_.R(_.dK,{text:function(){return h.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:L})),_.R("div",{class:"ytAccordionItemViewModelRightSection"},_.R(_.Sv,{data:function(){return W()?h.data().expandButton:h.data().collapseButton}},{buttonViewModel:function(w){return _.R(_.$l,{data:w.data,
className:"ytAccordionItemViewModelToggleButton",onClick:c,buttonOverrides:d})}}))),_.R("div",{class:"ytAccordionItemViewModelContainer"},_.R("div",{class:_.CO("ytAccordionItemViewModelContent",(q.ytAccordionItemViewModelExpandedSubtitle=function(){return W()},q)),
el:U,style:_.fO({"max-height":function(){return M?"auto":W()?U.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!W()}},_.R(_.P,{cond:function(){return!B()},
then:function(){return _.R(_.dK,{text:function(){return h.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.R(_.Sv,{data:function(){return h.data().content}},{horizontalShelfViewModel:function(w){return _.R(_.cE,{data:w.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"vd");_.RMf=_.O(function(h){var E=_.G((0,_.xLD)(h.data)).next().value,g=function(){return h.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},Z=function(){return g()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},M=_.G(_.Bm(!0,void 0,"AbejLb")),W=M.next().value,z=M.next().value,c=function(){return Z()&&W()},I=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){z(!W())}}},B=_.J7(function(){E().onTitleTap&&_.Tl(E().onTitleTap||{})});
M={};return _.R("yt-accordion-view-model",{class:_.CO("ytAccordionViewModelHost",(M.ytAccordionViewModelMinimized=function(){return c()},M)),
"data-target-id":function(){return h.data().targetId||""}},_.R(_.P,{cond:function(){return Z()||!!E().title},
then:function(){return _.R("div",{class:"ytAccordionViewModelHeader"},_.R("div",{class:"ytAccordionViewModelTitleSection"},_.R("div",{class:"ytAccordionViewModelTitleWrapper"},_.R(_.P,{cond:function(){return!!h.data().headerIcon},
then:function(){return _.R(_.Ni,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var U;return(U=h.data().headerIcon)==null?void 0:U.iconType}})}}),_.R("div",{class:"ytAccordionViewModelTitle",
"on:click":B},_.R(_.dK,{className:"ytAccordionViewModelTitleText",text:function(){return E().title}})))),_.R("div",{class:"ytAccordionViewModelButtonSection"},_.R(_.P,{cond:Z,
then:function(){return _.R(_.H4,{data:I,iconName:function(){return c()?"chevron_down":"chevron_collapse"}})}})))}}),_.R("div",{class:"ytAccordionViewModelContent"},_.R(_.Sv,{data:function(){return E().contents}},{accordionItemViewModel:function(U){return _.R(IBA,{data:U.data,
className:"ytAccordionViewModelRow",accordionStyle:g,hideIfNotExpanded:c,onCollapse:function(){return Z()?(z(!0),!1):!0}})}})),_.R("div",null,_.R(_.P,{cond:function(){return!Z()&&(!!E().disclaimerFooter||!!E().footer)},
then:function(){return _.R("div",{class:"ytAccordionViewModelFooter"},_.R(_.dK,{text:function(){return E().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.R(_.Sv,{data:function(){return h.data().footer}},{flexibleActionsViewModel:function(U){return _.R(_.pH,{data:U.data,
layout:0})}}))}})))},"wd");_.I9(_.RMf,"yt-accordion-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=null,g=null,Z,M=(Z=_.GF().resolve(_.pl(_.gu)))==null?void 0:Z(),W=_.G(_.Bm(!1,void 0,"h3atzd"));Z=W.next().value;var z=W.next().value;W=_.G(_.Bm(!0,void 0,"UTh8db"));var c=W.next().value,I=W.next().value,B=_.hf("textarea",function(r){_.x7(264503,r,E,function(v){E=v})}),U=function(r){z(!0);
r={learningJourneyFormData:{query:r}};_.Tl(h.data().searchEndpoint||{},{form:{formData:r}});return!1},L=_.J7(function(r){r.target.closest("button-view-model")&&z(!0)});
W=_.J7(function(){I(B.value.value.length===0)});
var d=_.J7(function(r){if(r.key==="Enter"&&!r.shiftKey&&!c()){var v=r.target;r.preventDefault();U(v.value)}}),C={},q={},w={};
return _.R("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.R("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.R(_.pO,{data:function(){return h.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.R("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.R("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.R("div",{class:_.CO("ytLearningJourneyZeroStateSearchBar",(C.ytLearningJourneyZeroStateSearchBarDark=M,C))},_.R("textarea",{class:_.CO("ytLearningJourneyZeroStateTextInput",(q.ytLearningJourneyZeroStateTextInputDark=M,q)),el:B,"on:keyup":W,"on:keydown":d,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.R("div",{class:_.CO("ytLearningJourneyZeroStateSearchButtonContainer",(w.ytLearningJourneyZeroStateSearchButtonContainerDark=M,w))},_.R(_.$l,{data:function(){return _.e(h.data().searchButton,_.i_)},
className:"search-button",onClick:function(){return U(B.value.value)},
buttonOverrides:function(){return{disabled:c(),style:M?"mono-inverse":"mono",size:"XL"}}}))),_.R(_.P,{cond:function(){return!!h.data().errorBanner},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.zT(function(r){_.x7(264617,r,g,function(v){g=v})})},_.R(_.Sv,{data:function(){return h.data().errorBanner}},{alertBannerViewModel:function(r){return _.R(_.HxB,{data:r.data,
"client-ve-type":264617})}}))}})),_.R(_.P,{cond:Z,
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.R(_.Sv,{data:function(){return h.data().loader}},{learningJourneyLoaderViewModel:function(r){return _.R(_.pyD,{data:r.data})}}))},
else:function(){return _.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.R(_.P,{cond:function(){return!!h.data().learningJourneyShelf},
then:function(){return _.R("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return h.data().learningJourneySectionTitle}),_.R(_.Sv,{data:function(){return h.data().learningJourneyShelf}},{horizontalShelfViewModel:function(r){return _.R(_.cE,{data:r.data,
centerAlignItems:!0})}}))}}),_.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.R("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return h.data().suggestedJourneySectionTitle}),_.R("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":L},_.R(_.Sv,{data:function(){return h.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(r){return _.R(_.pH,{data:r.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"xd"),"yt-learning-journey-zero-state",{props:{data:_.C6}});var PbF=_.O(function(h){var E=h.data;return _.R("ytvl-live-leaderboard-item-action-content-view-model",{class:_.CO("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.R(_.dK,{text:function(){var g;return(g=E())==null?void 0:g.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.R(_.Sv,{data:function(){return E().actionButton}},{buttonViewModel:function(g){return _.R(_.$l,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:g.data})}}))},"yd");var B1M=_.O(function(h){var E=h.data;return _.R("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.CO("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.R(_.dK,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var g;return(g=E())==null?void 0:g.displayName},
ellipsisTruncate:!0}),_.R(_.Sv,{data:function(){return E().badge}},{buttonViewModel:function(g){return _.R(_.$l,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:g.data})}}))},"zd");_.I9(_.O(function(h){var E=h.data;return _.R("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.R("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.R(_.dK,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var g;return(g=E())==null?void 0:g.rank}})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq})),_.R("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.R(_.Sv,{data:function(){return E().content}},{liveLeaderboardItemChannelContentViewModel:B1M,
liveLeaderboardItemActionContentViewModel:PbF})),_.R(_.dK,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var g;return(g=E())==null?void 0:g.points}}))},"Ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;return _.R("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.R(_.dK,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var g,Z;return(g=E())==null?void 0:(Z=g.ranking)==null?void 0:Z.rank}}),_.R("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq})),_.R(_.dK,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var g,Z;return(g=E())==null?void 0:(Z=g.channelContent)==null?void 0:Z.channelName}}),_.R(_.dK,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var g;return(g=E())==null?void 0:g.points}}))},"Bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.C6}});var U5M=_.O(function(h){h=_.au(h,{wrapper:!1}).wrapper;return _.R(_.P,{cond:h,then:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.R("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.R("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Cd");
U5M.idomCompat=!0;var LeF=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],j6l=_.O(function(h){var E=h.data;var g=_.zT(),Z=_.Cw(function(){return E().command},void 0,"fyYsT");
_.lX(function(){Z()&&_.y1(Z(),{form:{element:g.value}})},"B0nxdb");
return _.R("div",{el:g,class:"YtQrCodeRendererHostContainer"},_.R(_.P,{cond:function(){return E().qrCodeImage},
then:function(M){return _.R(_.pO,{data:M,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.R(_.P,{cond:function(){return E().spinner},
then:function(){return _.R(U5M,null)}})}}),_.R(_.P,{cond:function(){return E().label},
then:function(M){return _.R(_.dK,{text:M,className:"YtQrCodeRendererHostLabel"})}}),_.R(_.P,{cond:function(){return E().labels},
then:function(M){return _.R("div",{class:"YtQrCodeRendererHostLabels"},_.R(_.SX,{each:M},function(W){return _.R(_.dK,{text:W})}))}}))},"Ed");_.I9(_.O(function(h){var E=h.data;var g=_.Cw(function(){return E().qrEntityKey},void 0,"M0PrY"),Z=_.Cw(function(){return E().deleteEntityOnDismiss},void 0,"QZa4g"),M=_.Cw(function(){return E().command},void 0,"wEOxUe"),W=_.qI(pVV,g);
h=_.Cw(function(){return E().qrCodeImage},void 0,"UO5oub");
var z=_.Cw(function(){return E().style&&LeF.includes(E().style)},void 0,"Op9kZd"),c=_.c6({visibilityCallback:function(I){I&&M()&&_.y1(M())},
showOption:{calledOnce:!0,state:"visible"}});_.vJ(function(){_.r9(function(){Z()&&g()&&_.pL().dispatch(_.xx("qrCodeEntity",g()))})});
return _.R("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.zT(c)},_.R(_.P,{cond:z,then:function(){return _.R(_.P,{cond:W,then:function(I){return _.R(j6l,{data:I})}})}}),_.R(_.P,{cond:h,
then:function(I){return _.R(_.pO,{data:I,alt:""})}}))},"Dd"),"yt-qr-code-renderer",{props:{data:_.C6}});var CbD=_.O(function(h){var E=function(){return _.uU(1728053247&(h.barColor!==void 0?ep(h.barColor()):4278190080))};
return _.R("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.R(d5D,{animationDelay:0,percentWidth:100,barColor:function(){return E()}}),_.R("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.R("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+E()}})),_.R(d5D,{animationDelay:0,
percentWidth:100,barColor:function(){return E()}}),_.R(d5D,{animationDelay:600,
percentWidth:60,barColor:function(){return E()}}))},"Fd"),d5D=_.O(function(h){return _.R("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+h.percentWidth()+"%"}},_.R("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var E=h.animationDelay(),g=h.barColor();return"animation-delay:"+E+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+g+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Gd");var JJl;_.eMB=_.O(function(h){function E(r){z(r)}
var g=h.data;var Z=_.hf("yt-video-overview-view-model"),M=_.MC("div");h=_.G(_.Bm(-1,void 0,"qaDSu"));var W=h.next().value,z=h.next().value;h=_.G(_.Bm(0,void 0,"Vz681c"));var c=h.next().value,I=h.next().value,B={},U=_.qI(S2u,function(){return g().asyncDataEntityKey}),L=function(){var r;
if((r=U())==null?0:r.videoOverviewViewModel){var v;return _.e((v=U())==null?void 0:v.videoOverviewViewModel,nTD)}return g()};
_.vJ(function(){I(Math.min((Z.value.clientWidth-24)/4-8,72))});
var d=function(r){z(r);(M==null?0:M.value)&&M.value.children[r]&&M.value.children[r].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
V$x(Z,function(){var r;if((r=L())==null||!r.inlinePlaybackEndpoint)return null;var v;r=B==null?void 0:(v=B.thumbnailElRef)==null?void 0:v.value;if(!r)return null;var H;v=(H=L())==null?void 0:H.inlinePlaybackEndpoint;H=_.e(v,cBA);return{multipleVideoPreviewData:{data:(H==null?0:H.playerDescriptors)&&(H==null?0:H.playerDescriptors.length)?H.playerDescriptors:[],thumbnailElement:r,trackingParams:"test",callbacks:{onPlaybackStarted:d},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var C=function(){var r;return((r=L())==null?void 0:r.headerSubtext)!==void 0?!0:!1},q=function(){var r,v=ep((r=L())==null?void 0:r.titleColor);
return v?"color: "+_.uU(v)+";":void 0},w=function(){var r,v=ep((r=L())==null?void 0:r.subtextColor);
return v?"color: "+_.uU(v)+";":void 0};
return _.R("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:Z,style:function(){var r,v=ep((r=L())==null?void 0:r.backgroundColor);return v?"background-color: "+_.uU(v)+";":void 0}},_.R(_.P,{cond:function(){var r;
return(r=L())==null?void 0:r.isLoading},
then:function(){return _.R(CbD,{barColor:function(){var r;return(r=L())==null?void 0:r.titleColor}})},
else:function(){return _.R(_.zt,null,_.R("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.R("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return q()}},_.R(_.dK,{text:function(){var r;
return(r=L())==null?void 0:r.headerText}})),_.R(_.P,{cond:C,
then:function(){return _.R("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.R("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return w()}},_.R(_.Ni,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.R("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return w()}},_.R(_.dK,{text:function(){var r;
return(r=L())==null?void 0:r.headerSubtext}})))}})),_.R("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.R(_.Sv,{data:function(){var r;
return(r=L())==null?void 0:r.thumbnail}},{thumbnailViewModel:function(r){return _.R(_.f0,{data:r.data,
aspectRatio:0,playbackRef:Y_$(B)})}})),_.R(_.P,{cond:function(){var r,v,H,u;
return((r=L())==null?void 0:(v=r.listItems)==null?void 0:v.length)!==void 0&&((H=L())==null?void 0:(u=H.listItems)==null?void 0:u.length)>0?!0:!1},
then:function(){return _.R("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:M},_.R(_.SX,{each:function(){var r;return(r=L())==null?void 0:r.listItems}},function(r,v){return _.R(JJl,{image:r.image,
index:v,isSelected:function(){return v()===W()},
onClick:E,itemWidth:c})}))}}),_.R("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.R("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return q()}},_.R(_.dK,{text:function(){var r,v,H,u,k,y,A;
return(A=(r=L())==null?void 0:(v=r.listItems)==null?void 0:(H=v[W()])==null?void 0:H.headline)!=null?A:(u=L())==null?void 0:(k=u.listItems)==null?void 0:(y=k[0])==null?void 0:y.headline}})),_.R("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return w()}},_.R(_.dK,{text:function(){var r,v,H,u,k,y,A;
return(A=(r=L())==null?void 0:(v=r.listItems)==null?void 0:(H=v[W()])==null?void 0:H.subtext)!=null?A:(u=L())==null?void 0:(k=u.listItems)==null?void 0:(y=k[0])==null?void 0:y.subtext}}))))}}))},"Hd");
JJl=_.O(function(h){var E=h.image;var g=h.itemWidth;var Z=h.index;var M=h.isSelected;var W=h.onClick;h=_.J7(function(){Z!==void 0&&W!==void 0&&W(Z());return!1});
var z={};return _.R("div",{class:_.CO("ytGenAiVideoOverviewViewModelCarouselItem",(z.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return M==null?void 0:M()},z)),
style:function(){return"width: "+g()+"px;"},
"on:click":h},_.R(_.pO,{data:E,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.R(_.P,{cond:function(){return M==null?void 0:M()},
then:function(){return _.R("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.R("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Id");
_.eMB.idomCompat=!0;_.I9(_.eMB,"yt-video-overview-view-model",{props:{data:_.C6}});_.qPA=_.O(function(h){var E=h.data;var g=h.topbarOffset;var Z,M=((Z=_.GF().resolve(_.pl(_.gu)))==null?void 0:Z())||!1;return _.R("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var W=E();var z,c,I=M?(z=W.config)==null?void 0:z.darkThemeBackgroundColor:(c=W.config)==null?void 0:c.lightThemeBackgroundColor;W=I?_.bU(I):void 0;W="background-color: "+W+";";g!==void 0&&(W+="top: -"+g()+"px;");return W},
"aria-hidden":!0},_.R(_.P,{cond:function(){var W,z,c;return!!((W=E().backgroundImageConfig)==null?0:(z=W.image)==null?0:(c=z.sources)==null?0:c.length)},
then:function(){return _.R(_.pO,{data:function(){var W;return(W=E().backgroundImageConfig)==null?void 0:W.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.R("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+xe$(M,E().gradientColorConfig)+";"}}))},"Jd");
_.qPA.idomCompat=!0;var fBF=_.O(function(h){var E=h.data;var g=h.isOverlay;return _.R("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.R("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.R(_.Sv,{data:function(){return E().header}},{sectionHeaderViewModel:function(Z){return _.R(_.KY,{data:Z.data,
isOverlay:g})}})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.R(_.Sv,{data:function(){return E().channelInfoButtons}},{flexibleActionsViewModel:_.pH})),_.R("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.R(_.Sv,{data:function(){return E().description}},{descriptionPreviewViewModel:function(Z){return _.R(_.$C,{data:Z.data,
isOverlay:g})}})))},"Kd");
fBF.idomCompat=!0;var N1f=_.O(function(h){var E=h.data;var g={};return _.R("factoid-view-model",{class:_.CO("ytwFactoidViewModelHost",(g.ytwFactoidViewModelHostOverlay=h.isOverlay,g))},_.R(_.dK,{text:function(){return E().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.R(_.dK,{text:function(){return E().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ld");
N1f.idomCompat=!0;var toM=_.O(function(h){var E=h.data;var g=h.isOverlay;return _.R("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.R(_.Sv,{data:function(){return E().factoids}},{factoidViewModel:function(Z){return _.R(N1f,{data:Z.data,
isOverlay:g})}}))},"Md");
toM.idomCompat=!0;_.SPH=_.O(function(h){var E=h.data;var g=h.isOverlay;return _.R("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.R(_.Sv,{data:function(){return E().items}},{channelInfoViewModel:function(Z){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(fBF,{data:Z.data,
isOverlay:g}))},
coursePerksViewModel:function(Z){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(gGB,{data:Z.data,isOverlay:g}))},
descriptionPreviewViewModel:function(Z){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(_.$C,{data:Z.data,isOverlay:g}))},
factoidsRowViewModel:function(Z){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(toM,{data:Z.data,isOverlay:g}))},
progressViewModel:function(Z){return _.R("div",{class:"ytwCourseMetadataViewModelHostItem"},_.R(ZcB,{data:Z.data,isOverlay:g}))}}))},"Nd");var x5B=_.O(function(h){return _.R("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.R(_.Sv,{data:function(){return h.data().content}},{courseMetadataViewModel:function(E){return _.R(_.SPH,{data:E.data,
isOverlay:h.isOverlay})},
progressViewModel:function(E){return _.R(ZcB,{data:E.data})}}))},"Od");var wyC=_.O(function(h){var E=h.data;h=h.className;var g=function(){var M;return _.Oz((M=E())==null?void 0:M.rendererContext)},Z={};
Z=(Z.dynamicTextViewModelHost=!0,Z.dynamicTextViewModelHostTappable=function(){return g()},Z);
return _.R("yt-dynamic-text-view-model",{el:_.zT(_.n4(function(){var M;return(M=E())==null?void 0:M.rendererContext})),
role:function(){return g()?"link":void 0},
tabindex:function(){return g()?0:void 0},
class:_.CO(h,Z)},_.R("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var M,W,z;return(z=(W=_.e((M=E())==null?void 0:M.rendererContext,_.te))==null?void 0:W.label)!=null?z:""}},_.R(_.dK,{text:function(){return E().text},
userInput:!0})))},"Pd");
wyC.idomCompat=!0;_.iy=_.O(function(h){var E=h.data;var g=h.isPositionRelative;var Z=_.Deu("(max-width: 527.9px)"),M=function(){var W,z;return(z=(W=E())==null?void 0:W.style)!=null?z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
h={};return _.R("yt-image-banner-view-model",{el:_.zT(_.n4(function(){var W;return(W=E())==null?void 0:W.rendererContext})),
class:_.CO((h.ytImageBannerViewModelHost=!0,h.ytImageBannerViewModelInset=function(){return lh$(M())},h.ytImageBannerViewModelPositionAbsolute=function(){return _.Hm(!0)&&!(g==null?0:g())},h.ytImageBannerViewModelSmallInset=function(){return lh$(M())&&Z()},h.ytImageBannerViewModelTappable=function(){var W;
return _.Oz((W=E())==null?void 0:W.rendererContext)},h))},_.R(_.P,{cond:function(){var W;
return(W=E())==null?void 0:W.image},
then:function(){return _.R(_.pO,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.R(_.Sv,{data:function(){var W;
return(W=E())==null?void 0:W.overlays}},{thumbnailHoverOverlayViewModel:Zf}))},"Qd");
_.iy.idomCompat=!0;var D5F;D5F=_.O(function(h){var E=h.condition;var g=h.content;return _.R(_.P,{cond:E,then:function(){return _.R("div",{class:"yt-page-header-view-model__scroll-container"},g())},
else:function(){return g()}})},"Rd");
_.lBB=_.O(function(h){var E=h.data;var g=h.noPadding;var Z=h.enableBanner;var M=h.cinematicContainerTopbarOffset;var W=h.allowCinematicContainerOverflow;var z=h.displayAsSidebar;var c=h.displayAsPanel;var I=h.alwaysUseMediumTextDescription;var B=r4$(),U=function(){return!!E().image||!!E().animatedImage},L=function(){return!!E().background},d=function(){return(z==null?0:z())||(c==null?0:c())?1:B()},C=function(){return d()===1},q=function(){return C()||d()===2},w=function(){return d()===4},r=function(){var Ba=
E();
var $$=!!E().heroImage;var Ha=d(),zf=meq(E()),eF=z==null?void 0:z(),Rm=!Ba.metadata,bO;if(bO=$$?_.e(Ba.heroImage,lXB):_.e(Ba.animatedImage||Ba.image,lXB)){Ba=bO.style;var jF=bO.layoutMode;if(jF!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(bO=LKq(U0a(bO)),$$)$$=wOa(Ha,Ba,jF,bO,eF);else b:if(Rm)$$=Ha===1?{size:48}:{size:72};else switch(Ha){case 1:$$={size:72};break b;case 2:$$={size:120};break b;default:$$=zf<4?{size:120}:{size:160}}else $$=void 0}else $$={size:0};return $$};
h={};h=_.CO((h["yt-page-header-view-model"]=!0,h["yt-page-header-view-model--no-padding"]=function(){return!(g==null||!g())},h["yt-page-header-view-model--small-top-padding"]=function(){return C()&&!E().actions&&!(c==null?0:c())||d()===2&&!(U()||E().heroImage)},h["yt-page-header-view-model--small-bottom-padding"]=function(){return q()&&!E().actions&&!(c==null?0:c())},h["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(W==null?0:W())},h["yt-page-header-view-model--display-as-sidebar"]=
z,h));
var v={},H=_.CO((v["yt-page-header-view-model__page-header-headline"]=!0,v["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var Ba;return(Ba=r())==null?void 0:Ba.allowFullWidth},v)),u=function(){var Ba;
return q()&&!((Ba=r())==null?0:Ba.allowFullWidth)},k=function(){return C()&&(!!E().heroImage||U())&&meq(E())>0},y=function(){return k()&&(c==null?void 0:c())};
v={};var A=_.CO((v["yt-page-header-view-model__page-header-title"]=!0,v["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!k()},v["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return k()&&!y()},v["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=y,v["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=L,v));
v={};var E4=_.CO((v["yt-page-header-view-model__page-header-headline-image"]=!0,v["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!E().heroImage&&q()},v));
v={};var iO=_.CO((v["yt-page-header-view-model__page-header-banner-container"]=Z,v["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var Ba;return(Z==null?void 0:Z())&&((Ba=_.e(E().banner,_.mJf))==null?void 0:Ba.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},v));
v={};var RW=_.CO((v["yt-page-header-view-model__page-header-content-metadata"]=!0,v["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=L,v));v={};var NN=_.CO((v["yt-page-header-view-model__page-header-flexible-actions"]=!0,v["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!E().metadata||q()},v["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!q()},v));
v={};var Cd=_.CO((v["yt-page-header-view-model__page-header-attribution"]=!0,v["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=L,v));return _.R("yt-page-header-view-model",{class:h},_.R(_.P,{cond:L,then:function(){return _.R("div",{class:"yt-page-header-view-model__page-header-background"},_.R(_.Sv,{data:function(){return E().background}},{cinematicContainerViewModel:function(Ba){return _.R(_.qPA,{data:Ba.data,
topbarOffset:M})}}))}}),_.R(D5F,{condition:function(){return!(z==null||!z())},
content:function(){return _.R("div",{class:"yt-page-header-view-model__page-header-content"},_.R(_.P,{cond:function(){return(Z==null?void 0:Z())&&E().banner},
then:function(){return _.R("div",{class:iO},_.R(_.Sv,{data:function(){return E().banner}},{imageBannerViewModel:_.iy}))}}),_.R("div",{class:H},_.R(_.P,{cond:U,
then:function(){return _.R(_.Sv,{data:function(){var Ba;if(!(Ba=E().animatedImage)){Ba=E();if(U()){var $$=Ba=Object.assign({},Ba),Ha=d(),zf=meq(E()),eF=$$.image,Rm=_.e(eF,r6D),bO=Rm==null?void 0:Rm.avatar,jF=_.e(bO,_.X5);if(eF&&bO&&jF){switch(Ha){case 1:jF.avatarImageSize="AVATAR_SIZE_XL";break;case 2:jF.avatarImageSize="AVATAR_SIZE_XXL";break;default:zf<4?jF.avatarImageSize="AVATAR_SIZE_XXL":jF.avatarImageSize="AVATAR_SIZE_XXXL"}_.nL(bO,_.X5,Object.assign({},jF));Rm.avatar=Object.assign({},bO);_.nL(eF,
r6D,Object.assign({},Rm));$$.image=Object.assign({},eF)}}Ba=Ba.image}return Ba}},{contentPreviewImageViewModel:function(Ba){return _.R(_.wS,{data:Ba.data,
className:E4,imageSizeConfig:r})},
decoratedAvatarViewModel:function(Ba){return _.R(_.W0,{data:Ba.data,className:E4})}})}}),_.R(_.P,{cond:function(){return!!E().heroImage&&!u()},
then:function(){return _.R(_.Sv,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(Ba){return _.R(_.wS,{data:Ba.data,
className:E4,imageSizeConfig:r})}})}}),_.R("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.R(_.P,{cond:function(){return!!E().heroImage&&u()},
then:function(){return _.R("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.R(_.Sv,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(Ba){return _.R(_.wS,{data:Ba.data,
className:E4,imageSizeConfig:r})}}))}}),_.R(_.Sv,{data:function(){return E().title}},{dynamicTextViewModel:function(Ba){return _.R(wyC,{data:Ba.data,
className:A})}}),_.R(_.Sv,{data:function(){return E().metadata}},{contentMetadataViewModel:function(Ba){return _.R(_.Df,{data:Ba.data,
layout:function(){return C()?1:0},
className:RW,isOverlay:L,useMediumText:w})}}),_.R(_.P,{cond:function(){return E().description&&!C()},
then:function(){return _.R(_.Sv,{data:function(){return E().description}},{descriptionPreviewViewModel:function(Ba){return _.R(_.$C,{data:Ba.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:L,maxLinesOverride:function(){return C()?void 0:1},
useMediumText:function(){return(I==null?void 0:I())||w()}})}})}}),_.R(_.P,{cond:function(){return E().attribution&&!q()},
then:function(){return _.R(_.Sv,{data:function(){return E().attribution}},{attributionViewModel:function(Ba){return _.R(RiF,{data:Ba.data,
className:Cd,useMediumText:w})}})}}),_.R(_.P,{cond:function(){return E().actions&&!q()},
then:function(){return _.R(_.Sv,{data:function(){return E().actions}},{flexibleActionsViewModel:function(Ba){return _.R(_.pH,{data:Ba.data,
layout:function(){return vHu(d())},
className:NN})}})}}))),_.R("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.R(_.P,{cond:function(){return E().description&&C()},
then:function(){return _.R(_.Sv,{data:function(){return E().description}},{descriptionPreviewViewModel:function(Ba){return _.R(_.$C,{data:Ba.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:L,maxLinesOverride:function(){return C()?void 0:1},
useMediumText:function(){return(I==null?void 0:I())||w()}})}})}}),_.R(_.P,{cond:function(){return E().attribution&&q()},
then:function(){return _.R(_.Sv,{data:function(){return E().attribution}},{attributionViewModel:function(Ba){return _.R(RiF,{data:Ba.data,
className:Cd,useMediumText:w})}})}}),_.R(_.P,{cond:function(){return E().actions&&q()},
then:function(){return _.R(_.Sv,{data:function(){return E().actions}},{flexibleActionsViewModel:function(Ba){return _.R(_.pH,{data:Ba.data,
layout:function(){return vHu(d())},
className:NN})}})}})),_.R("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.R(_.Sv,{data:function(){return E().bottomMetadataFlexibleContainer}},{flexibleContainer:function(Ba){return _.R(x5B,{data:Ba.data,
isOverlay:L})}})))}}))},"Sd");
_.lBB.idomCompat=!0;_.I9(_.O(function(h){var E=_.G(_.Bm(!1,void 0,"vvzTj")),g=E.next().value,Z=E.next().value;return _.R("yt-official-card-view-model",{class:_.CO("ytOfficialCardViewModelHost",h.className),style:_.fO({"background-color":function(){var M,W=ep((M=h.data())==null?void 0:M.backgroundColor);return W?_.uU(W):void 0}})},_.R(_.Sv,{data:function(){return h.data().header}},{pageHeaderViewModel:function(M){return _.R(_.lBB,{data:M.data,
noPadding:!0})}}),_.R(_.Sv,{data:function(){return h.data().contents}},{horizontalShelfViewModel:function(M){return _.R(_.cE,{data:M.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.R(_.P,{cond:g,
then:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandedContent"},_.R(_.Sv,{data:function(){return h.data().expandedContents}},{horizontalShelfViewModel:function(M){return _.R(_.cE,{data:M.data,
sizing:"MINI"})}}),_.R("div",{class:"ytOfficialCardViewModelCollapseButton"},_.R(_.Sv,{data:function(){return h.data().collapseButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
onClick:function(){Z(!g())}})}})))},
else:function(){return _.R("div",{class:"ytOfficialCardViewModelExpandButton"},_.R(_.Sv,{data:function(){return h.data().expandButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
onClick:function(){Z(!g())}})}}))}}))},"Td"),"yt-official-card-view-model",{props:{data:_.C6,
className:_.C6}});var rJf=_.O(function(h){var E,g=(E=_.GF().resolve(_.pl(_.gu)))==null?void 0:E();return _.R("ytw-search-friction-view-model",{class:_.CO("ytwSearchFrictionViewModelHost",h.className)},_.R("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.R("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.R(_.P,{cond:function(){return g&&h.data().darkThemeImage?h.data().darkThemeImage:h.data().image},
then:function(Z){return _.R(_.pO,{data:Z,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.R(_.Sv,{data:function(){return h.data().overflowMenuButton}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.R(_.dK,{text:function(){return h.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.R(_.SX,{each:function(){return h.data().bodyText||[]}},function(Z){return _.R(_.dK,{text:Z,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.R(_.Sv,{data:function(){return h.data().actions}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.R(_.dK,{text:function(){return h.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.R(_.dK,{text:function(){return h.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ud");
rJf.idomCompat=!0;_.I9(rJf,"ytw-search-friction-view-model",{props:{data:_.C6,className:_.C6}});_.oh=_.O(function(h){var E=_.hf("markdown-div"),g,Z=(g=_.GF().resolve(_.pl(_.gu)))==null?void 0:g();_.lX(function(){var M=E.value;var W=new bDm,z=new Map(W.JSC$9302_sanitizerTable.globalAttributePolicies);z.set("style",{policyAction:4});W.JSC$9302_sanitizerTable=new rk(W.JSC$9302_sanitizerTable.allowedElements,W.JSC$9302_sanitizerTable.elementPolicies,W.JSC$9302_sanitizerTable.allowedGlobalAttributes,z,W.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);var c=["data-time"];if(c===void 0)z=
new Set(W.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes),z.add("data-"),W.JSC$9302_sanitizerTable=new rk(W.JSC$9302_sanitizerTable.allowedElements,W.JSC$9302_sanitizerTable.elementPolicies,W.JSC$9302_sanitizerTable.allowedGlobalAttributes,W.JSC$9302_sanitizerTable.globalAttributePolicies,z);else{z=new Set(W.JSC$9302_sanitizerTable.allowedGlobalAttributes);c=_.G(c);for(var I=c.next();!I.done;I=c.next()){I=I.value;if(I.indexOf("data-")!==0)throw Error("ma`"+I);z.add(I)}W.JSC$9302_sanitizerTable=
new rk(W.JSC$9302_sanitizerTable.allowedElements,W.JSC$9302_sanitizerTable.elementPolicies,z,W.JSC$9302_sanitizerTable.globalAttributePolicies,W.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes)}z=new Set(W.JSC$9302_sanitizerTable.allowedGlobalAttributes);z.add("class");W.JSC$9302_sanitizerTable=new rk(W.JSC$9302_sanitizerTable.allowedElements,W.JSC$9302_sanitizerTable.elementPolicies,z,W.JSC$9302_sanitizerTable.globalAttributePolicies,W.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);
_.GH(M,_.kfD(W.build(),$eq(h.text())));K$x(E.value)},"OZ439c");
g={};return _.R("div",null,_.R("markdown-div",{class:_.CO("ytwMarkdownDivHost",(g.ytwMarkdownDivDark=Z,g.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var M;return((M=h.isSmallText)==null?void 0:M.call(h))||!1},g.ytwMarkdownDivHostWrapCodeBlocks=function(){var M;
return((M=h.wrapCodeBlocks)==null?void 0:M.call(h))||!1},g.ytwMarkdownDivHostEnableDefaultStyling=function(){var M;
return!((M=h.disableDefaultStyling)==null?0:M.call(h))},g)),
el:E}))},"Vd");
_.oh.idomCompat=!0;var m5k=_.O(function(h){var E=h.imageData;var g=_.zl(h.isInList,!1),Z=function(){return g()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.R("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.R(_.P,{cond:function(){return E().image},
then:function(M){return _.R(_.pO,{data:M,alt:function(){return Z().alt},
contentMode:function(){return Z().contentMode},
targetWidth:function(){return Z().targetWidth},
targetHeight:function(){return Z().targetHeight},
className:function(){return Z().className}})}}),_.R("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.R("div",{class:_.CO("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.R(_.dK,{text:function(){return E().title}})),_.R(_.SX,{each:function(){var M;
return(M=E().description)!=null?M:[]}},function(M){return _.R("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.R(Ih,{content:M}))})))},"Wd"),vGF=_.O(function(h){var E=h.list;
var g=function(){var Z;return(Z=E().items)!=null?Z:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelListContent"},_.R(_.P,{cond:function(){return E().title},
then:function(Z){return _.R("div",{class:_.CO("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.R(_.dK,{text:Z}))}}),_.R(_.P,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.R("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.R(_.SX,{each:g},function(Z){return _.R("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.R(Ih,{content:Z,isInList:!0}))}))}}),_.R(_.P,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.R("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.R(_.SX,{each:g},function(Z){return _.R("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.R(Ih,{content:Z,isInList:!0}))}))}}),_.R(_.P,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelImageList"},_.R(_.SX,{each:g},function(Z){return _.R("div",{class:"ytwGenAiRichTextViewModelListItem"},_.R(Ih,{content:Z,isInList:!0}))}))}}))},"Xd"),HcD=_.O(function(h){var E=h.table;
return _.R("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.R("thead",null,_.R("tr",null,_.R(_.SX,{each:function(){var g,Z;return(Z=(g=E().header)==null?void 0:g.cells)!=null?Z:[]}},function(g){return _.R("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.R(_.SX,{each:function(){return g.contents}},function(Z){return _.R(Ih,{content:Z})}))}))),_.R("tbody",null,_.R(_.SX,{each:function(){var g;
return(g=E().rows)!=null?g:[]}},function(g){return _.R("tr",null,_.R(_.SX,{each:function(){return g.cells}},function(Z){return _.R("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.R(_.SX,{each:function(){return Z.contents}},function(M){return _.R(Ih,{content:M})}))}))})))},"Yd"),Ih=_.O(function(h){var E=h.content;
var g=_.zl(h.isInList,!1),Z=function(){var M,W;return(W=(M=E().contentBlock)==null?void 0:M.contents)!=null?W:[]};
return _.R("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.R(_.P,{cond:function(){return E().text},
then:function(M){return _.R(_.dK,{className:"ytwGenAiRichTextViewModelText",text:M})}}),_.R(_.P,{cond:function(){return E().image},
then:function(M){return _.R(m5k,{imageData:M,isInList:g})}}),_.R(_.P,{cond:function(){return E().list},
then:function(M){return _.R(vGF,{list:M})}}),_.R(_.P,{cond:function(){return E().contentBlock},
then:function(){return _.R("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.R(_.SX,{each:Z},function(M){return _.R(Ih,{content:M,isInList:!1})}))}}),_.R(_.P,{cond:function(){return E().table},
then:function(M){return _.R(HcD,{table:M})}}))},"Zd"),$5B=_.O(function(h){var E={};
E=_.v3("ytwGenAiRichTextViewModelHost",(E.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.iN("search_overview_link_style")),E));return _.R("gen-ai-rich-text-view-model",{class:E},_.R(Ih,{content:function(){return h.data().content}}))},"$d");_.Kem=_.O(function(h){var E=h.data;var g=function(){var w;return((w=E().loadingUi)!=null?w:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},Z=function(){return E().isLoading&&(g()==="UNSPECIFIED"||g()==="GHOST_CARD")},M=function(){return!E().isLoading},W=function(){return!!E().content&&!E().contents},z=function(){return!!E().contents},c=function(){return!!E().nextQueryButtons},I=function(){return E().isLoading&&g()==="INVISIBLE"},B=function(){var w,r;
return(r=(w=E().headerIcon)==null?void 0:w.iconType)!=null?r:""},U=function(){var w;
return(w=E().content)!=null?w:""},L=function(){return!!E().sourcesSection},d,C=!((d=_.GF().resolve(_.pl(_.gu)))==null||!d()),q=_.Cw(function(){var w=[],r=E().contents;
if(r)for(var v=0;v<r.length;v++){var H=_.e(r&&r[v],OCH);H&&w.push(H)}return w},void 0,"gcCsZb");
_.vJ(function(){E().isLoading||_.s7("so_re",void 0,"search_overview_answer")});
return _.R("ytd-overview-answer-view-model",{class:function(){var w={};w=(w.ytdOverviewAnswerViewModelHost=!0,w.ytdOverviewAnswerViewModelDarkBackground=C&&!I(),w.ytdOverviewAnswerViewModelLightBackground=!C&&!I(),w);return _.v3(w)}},_.R(_.P,{cond:function(){return!I()},
then:function(){return _.R(_.zt,null,_.R("h2",null,_.R("div",{class:"ytdOverviewAnswerViewModelHeader"},_.R(_.P,{cond:B,then:function(w){return _.R("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.R(_.Ni,{icon:w}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.R("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return E().headerText}),_.R("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.R(_.dK,{text:function(){return E().headerSubtext}}))))),_.R(_.P,{cond:Z,
then:function(){return _.R(ORq,null)}}),_.R(_.P,{cond:M,
then:function(){return _.R(_.zt,null,_.R(_.P,{cond:W,then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelText"},_.R(_.oh,{text:U,isSmallText:!0}))}}),_.R(_.P,{cond:z,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelRichText"},_.R(_.SX,{each:q},function(w){return _.R($5B,{data:w})}))}}),_.R(_.P,{cond:c,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.R(_.Sv,{data:function(){return E().nextQueryButtons}},{buttonViewModel:function(w){return _.R(_.$l,{data:w.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.cE}))}}),_.R("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.R("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.R(_.P,{cond:function(){return!!_.e(E().likeButtonViewModel,_.EU)&&!!_.e(E().dislikeButtonViewModel,_.hm)},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.R(_.zj,{data:function(){return _.e(E().likeButtonViewModel,_.EU)},
disableIconAnimation:!0}),_.R(_.Gj,{data:function(){return _.e(E().dislikeButtonViewModel,_.hm)}}))}})),_.R(_.P,{cond:function(){var w;
return(w=E().sourcesSection)==null?void 0:w.headerText},
then:function(w){return _.R("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.R(_.dK,{text:w}))}})),_.R(_.P,{cond:L,
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelSources"},_.R(_.Sv,{data:function(){var w;return(w=E().sourcesSection)==null?void 0:w.sourcesShelf}},{buttonViewModel:_.$l,
horizontalShelfViewModel:function(w){return _.R(_.cE,{data:w.data,includeMargin:!0,hasPeek:!0})}}))}}),_.R(_.P,{cond:function(){return E().disclaimerText},
then:function(){return _.R("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.R(_.dK,{text:function(){return E().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"ae");var Ocf=_.O(function(h){var E=h.data;var g=h.active;var Z=_.hf("transcript-segment-view-model");_.lX(function(){var M,W,z,c=((M=_.GF().resolve(_.pl(_.gu)))==null?0:M())?(W=E())==null?void 0:W.darkThemeColorPalette:(z=E())==null?void 0:z.lightThemeColorPalette;c&&(c.additiveBackground&&Z.value.style.setProperty("--timestamp-active-background-color",_.uU(c.additiveBackground)),c.textSecondary&&Z.value.style.setProperty("--timestamp-active-color",_.bU(c.textSecondary)))},"TnVCnb");
h={};return _.R("transcript-segment-view-model",{class:_.CO("ytwTranscriptSegmentViewModelHost",(h.ytwTranscriptSegmentViewModelHostActive=g,h.ytwTranscriptSegmentViewModelHostModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),h)),el:Z},_.R(_.P,{cond:function(){var M;return(M=E())==null?void 0:M.timestamp},
then:function(M){var W={};return _.R("div",{class:_.CO("ytwTranscriptSegmentViewModelTimestamp",(W.ytwTranscriptSegmentViewModelTimestampActive=g,W)),"aria-label":function(){var z=M().split(":").map(Number),c=_.G(z.reverse());z=c.next().value;var I=c.next().value;c=c.next().value;return _.DPz({hours:c,minutes:I,seconds:z})}},M)}}),_.R(_.dK,{text:function(){var M,W,z;
return(z=(M=E())==null?void 0:M.attributedText)!=null?z:{content:(W=E())==null?void 0:W.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"be");var nGf=_.O(function(h){var E=h.data;return _.R("div",{class:"videoAttributesSectionViewModelHeader"},_.R("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.R("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return E().headerTitle}),_.R(_.P,{cond:function(){return E().headerInfoButton},
then:function(){return _.R(_.Sv,{data:function(){return E().headerInfoButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.R(_.P,{cond:function(){return E().headerSubtitle},
then:function(){return _.R("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return E().headerSubtitle})}}))},"ce"),XyF=_.O(function(h){function E(w){return Math.max(Math.min(w,0),B()-c())}
var g=h.data;var Z;h=_.hf("div",function(w){var r=function(){U(w.clientWidth)};
r();window.ResizeObserver&&(Z=new ResizeObserver(r),Z.observe(w))});
var M=_.hf("div",function(w){I(w.scrollWidth)}),W=_.G(_.Bm(0,void 0,"C3XQAe")),z=W.next().value;
W=W.next().value;var c=z,I=W;W=_.G(_.Bm(0,void 0,"db7y3"));z=W.next().value;W=W.next().value;var B=z,U=W;z=_.G(_.Bm(0,void 0,"RchC7"));var L=z.next().value,d=z.next().value;_.r9(function(){var w;(w=Z)==null||w.disconnect()});
var C=function(){d(E(L()+B()))},q=function(){d(E(L()-B()))};
return _.R("yt-video-attributes-section-view-model",null,_.R("div",{class:"videoAttributesSectionViewModelHost"},_.R(_.P,{cond:function(){return g().headerTitle},
then:function(){return _.R(nGf,{data:g})}}),_.R("div",{class:_.CO("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:h},_.R("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.fO({transform:function(){var w=L();_.nF("HTML_DIR")==="rtl"&&(w*=-1);return"translateX("+w+"px)"}}),
el:M},_.R(_.Sv,{data:function(){return g().videoAttributeViewModels}},{videoAttributeViewModel:lul}))),_.R(_.Sv,{data:function(){return g().footerButton}},{buttonViewModel:function(w){return _.R(_.$l,{data:w.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.R(_.P,{cond:function(){return L()<0&&g().previousButton},
then:function(){return _.R("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.R(_.Sv,{data:function(){return g().previousButton}},{buttonViewModel:function(w){return _.R(_.$l,{data:w.data,
onClick:C})}}))}}),_.R(_.P,{cond:function(){return L()>B()-c()&&g().nextButton},
then:function(){return _.R("div",{class:"videoAttributesSectionViewModelRightArrow"},_.R(_.Sv,{data:function(){return g().nextButton}},{buttonViewModel:function(w){return _.R(_.$l,{data:w.data,
onClick:q})}}))}})))},"de");
XyF.idomCompat=!0;var YPH=_.O(function(h){var E=h.data;var g=h.active;var Z={},M={};return _.R("timeline-item-view-model",{class:_.CO("ytwTimelineItemViewModelHost",(Z.ytwTimelineItemViewModelHostChapterChild=h.chapterChild,Z.ytwTimelineItemViewModelModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),Z))},_.R("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.R("div",{class:_.CO("ytwTimelineItemViewModelTimestamp",(M.ytwTimelineItemViewModelTimestampActive=
g,M))},function(){return E().timestamp})),_.R("div",{class:"ytwTimelineItemViewModelContentItems"},_.R(_.Sv,{data:function(){return E().contentItems}},{transcriptSegmentViewModel:function(W){return _.R(Ocf,{data:W.data,
active:g})},
videoAttributesSectionViewModel:XyF})))},"ee");var s6M=_.O(function(h){var E=h.data;h={};return _.R("timeline-chapter-view-model",{class:_.CO("ytwTimelineChapterViewModelHost")},_.R("div",{class:_.CO("ytwTimelineChapterViewModelTitle",(h.ytwTimelineChapterViewModelModern=_.J("enable_timeline_view_modern_transcript")||_.J("enable_timeline_view_modern_transcript_fe"),h))},function(){return E().title}),_.R(_.Sv,{data:function(){return E().contents}},{timelineItemViewModel:function(g){return _.R(YPH,{data:g.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(g){return _.R(XyF,{data:g.data})}}))},"fe");var Vof=_.O(function(h){var E=h.data;var g=_.hf("macro-markers-panel-item-view-model"),Z=_.qI(_.hG4,function(){var W;return(W=E().markersEngagementPanelSyncEntityKey)!=null?W:""}),M=function(){var W;
return((W=Z())==null?void 0:W.activeItemIndex)===E().index};
h=_.J7(function(W){var z,c,I,B,U;return _.a(function(L){if(L.nextAddress==1)return W.stopPropagation(),_.$x(_.H3(W),g.value,["A".toString(),"BUTTON".toString()])?L.return():(z=_.kB(E().onTap))?L.yield(_.L4(),2):L.return();c=L.yieldResult;B=(I=_.e(z,_.MH))==null?void 0:I.startTimeSeconds;B===void 0||(U=c)!=null&&U.seekTo(B,!0);_.SK(L)})});
return _.R("macro-markers-panel-item-view-model",{class:_.CO("ytwMacroMarkersPanelItemViewModelHost",{"is-active":M}),el:g,"on:click":h,tabindex:0},_.R(_.Sv,{data:function(){var W;return(W=E())==null?void 0:W.item}},{timelineChapterViewModel:function(W){return _.R(s6M,{data:W.data,
active:M})},
timelineItemViewModel:function(W){return _.R(YPH,{data:W.data,active:M})},
videoAttributeViewModel:lul}))},"ge");
Vof.idomCompat=!0;_.I9(Vof,"macro-markers-panel-item-view-model",{props:{data:_.C6}});_.I9(XyF,"yt-video-attributes-section-view-model",{props:{data:_.C6}});var kPB=_.O(function(h){var E=function(){var g,Z,M;return(M=(g=h.data().leadingLogoAccessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)!=null?M:""};
return _.R("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.R(_.P,{cond:function(){return h.data().leadingLogo},
then:function(g){return _.R(_.pO,{className:"ytwFantasySectionHeaderViewModelLogo",data:g,alt:E})}}),_.R("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.R(_.dK,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return h.data().title}}),_.R(_.dK,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return h.data().subtitle}})),_.R(_.Sv,{data:function(){return h.data().trailingButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"he");var yJf=_.O(function(h){var E={};E=_.CO("ytwFantasyTeamViewModelHost",(E.ytwFantasyTeamViewModelCompact=function(){var M;return!((M=h.compact)==null||!M.call(h))},E.ytwFantasyTeamViewModelUser=function(){return h.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},E.ytwFantasyTeamViewModelOpponent=function(){return h.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},E));
var g=function(){var M,W,z;return(z=(M=h.data().teamLogoAccessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)!=null?z:""},Z=_.qI(Z_W,function(){return h.data().teamEntityKey});
return _.R("ytw-fantasy-team-view-model",{class:E},_.R(_.P,{cond:function(){return h.data().teamLogo},
then:function(M){return _.R(_.pO,{className:"ytwFantasyTeamViewModelLogo",data:M,alt:g})}}),_.R("div",{class:"ytwFantasyTeamViewModelMetadata"},_.R("div",{class:"ytwFantasyTeamViewModelHeader"},_.R(_.dK,{className:"ytwFantasyTeamViewModelScore",
text:function(){var M;return(M=Z())==null?void 0:M.score}}),_.R(_.Ni,{icon:function(){var M;
return(M=Z())==null?void 0:M.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.R(_.dK,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var M;return(M=Z())==null?void 0:M.projectedScore}})),_.R(_.dK,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return h.data().primaryText}}),_.R(_.dK,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return h.data().secondaryText}}),_.R(_.dK,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return h.data().tertiaryText}})),_.R(_.dK,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var M;return(M=Z())==null?void 0:M.score}}))},"ie");_.I9(_.O(function(h){return _.R("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.R("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.R(_.Sv,{data:function(){return h.data().summaryHeader}},{fantasySectionHeaderViewModel:kPB})),_.R(_.Sv,{data:function(){return h.data().userTeam}},{fantasyTeamViewModel:yJf}),_.R(_.Sv,{data:function(){return h.data().opponentTeam}},{fantasyTeamViewModel:yJf}))},"je"),"fantasy-league-summary-view-model",{props:{data:_.C6}});var Fel=_.O(function(h){var E=_.au(h,{shape:{},useCustomTabRenderable:!1}),g=E.shape;E=E.useCustomTabRenderable;var Z=h.customTabRenderable,M=function(){return g().disabled},W=function(){return g().selected},z=function(){return g().title},c=function(){return g().icon},I=_.hf("yt-tab-shape");
h=_.J7(function(L){var d;if(!M()&&((d=g().aTagConfig)==null?0:d.onclick))g().aTagConfig.onclick(L);return!1});
var B=_.J7(function(L){if(L.key==="Enter"||L.key==="ArrowUp"||L.key==="ArrowDown")L.preventDefault(),I.value.click();return!1}),U={};
return _.R("yt-tab-shape",{class:_.CO("yt-tab-shape",function(){return g().className},(U["yt-tab-shape__tab--last-tab"]=function(){return g().isLastTab},U["yt-tab-shape--host-disabled"]=M,U["yt-tab-shape--host-clickable"]=!Z,U)),
role:Z?void 0:"tab","aria-selected":W!=null?W:!1,"aria-disabled":M,tabindex:Z?void 0:0,"on:click":h,"on:keydown":B,el:I,"tab-identifier":function(){return g().identifier},
"tab-title":z},_.R(_.P,{cond:E,then:function(){return Z()},
else:function(){var L={},d={};return _.R(_.zt,null,_.R("div",{class:_.CO("yt-tab-shape__tab",(L["yt-tab-shape__tab--tab-selected"]=W,L))},_.R(_.P,{cond:c,then:function(C){return _.R(_.Ni,{className:"yt-tab-shape__tab-icon",icon:function(){return C().iconType}})}}),z),_.R("div",{class:_.CO("yt-tab-shape__tab-bar",(d["yt-tab-shape__tab-bar--tab-bar-selected"]=W,d))}))}}))},"ke");
Fel.idomCompat={callbacks:{customTabRenderable:!0}};_.T1M=_.O(function(h){var E=h.shape;h=_.G(_.Bm(48,void 0,"rCewuf"));var g=h.next().value,Z=h.next().value;h=_.G(_.Bm(0,void 0,"aUUTWe"));var M=h.next().value,W=h.next().value,z=function(){return E().tabs},c=_.hf("yt-tab-group-shape"),I=function(){var B,U;
return(U=(B=z())==null?void 0:B.findIndex(function(L){return L.selected}))!=null?U:-1};
_.vJ(function(){var B=c.value.querySelectorAll("yt-tab-shape"),U=I()>-1?B[I()]:void 0;_.KP.addJob(function(){Z((U==null?void 0:U.getBoundingClientRect().width)||0)},8,0)});
_.lX(function(){var B=I(),U=_.KP.addJob(function(){var L,d=((L=c.value)==null?void 0:L.querySelectorAll("yt-tab-shape"))||[],C;Z(((C=B>-1?d[B]:void 0)==null?void 0:C.getBoundingClientRect().width)||0);for(C=L=0;C<B;C++)L+=d[C].offsetWidth+24;_.nF("HTML_DIR")==="rtl"&&(L=-L);W(L)},8,0);
_.r9(function(){_.KP.cancelJob(U)})},"DAb5Qb");
h={};return _.R("yt-tab-group-shape",{class:_.CO("tabGroupShapeHost",(h.tabGroupShapeOverflowHidden=function(){return E().isOverflowHidden},h)),
el:c},_.R(_.P,{cond:z,then:function(B){return _.R(_.zt,null,_.R("div",{class:"tabGroupShapeTabs",role:"tablist"},_.R(_.SX,{each:B},function(U,L){return _.R(Fel,{shape:function(){return Object.assign({},U,{isLastTab:L()===B().length-1})},
customTabRenderable:U.customTabRenderable,useCustomTabRenderable:!!U.customTabRenderable})})),_.R(AJn,{width:g,
sliderOffset:M}))}}))},"le");
_.T1M.idomCompat=!0;var AJn=_.O(function(h){var E=_.zl(h.sliderOffset,0),g=h.width;return _.R("div",{class:"tabGroupShapeSlider",style:_.fO({width:function(){return g()+"px"},
transform:function(){return"translateX("+E()+"px)"}})})},"me");var bcf=_.O(function(h){var E=function(){var W,z,c;return(c=(W=h.data().playerLogoAccessibility)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)!=null?c:""},g=_.qI(MW4,function(){return h.data().playerEntityKey}),Z={};
Z=_.CO("ytwFantasyPlayerViewModelHost",(Z.ytwFantasyPlayerViewModelPlaying=function(){var W;return!((W=g())==null||!W.isPlayerPlaying)},Z.ytwFantasyPlayerViewModelOnField=function(){var W;
return((W=g())==null?void 0:W.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},Z.ytwFantasyPlayerViewModelRedZone=function(){var W;
return((W=g())==null?void 0:W.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},Z));
var M=function(){var W,z,c,I=((W=_.GF().resolve(_.pl(_.gu)))==null?0:W())?(z=h.data().playerLogoBackgroundColor)==null?void 0:z.darkTheme:(c=h.data().playerLogoBackgroundColor)==null?void 0:c.lightTheme;return I===void 0?"":_.uU(I)};
return _.R("ytw-fantasy-player-view-model",{class:Z},_.R(_.P,{cond:function(){return h.data().playerLogo},
then:function(W){return _.R("div",{class:"ytwFantasyPlayerViewModelLogo"},_.R("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.R(_.pO,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.fO({"background-color":M}),data:W,alt:E})),_.R("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.R(_.Ni,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.R("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.R("div",{class:"ytwFantasyPlayerViewModelHeader"},_.R(_.dK,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var W;return(W=h.data())==null?void 0:W.playerNameText}}),_.R(_.dK,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var W;return(W=h.data())==null?void 0:W.playerDescriptionText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.dK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var W;return(W=g())==null?void 0:W.gamePeriodText}}),_.R(_.dK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var W;return(W=h.data())==null?void 0:W.opponentTeamText}}),_.R(_.dK,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var W;return(W=g())==null?void 0:W.gameStatusText}}),_.R(_.dK,{className:_.CO("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var W;return(W=g())==null?void 0:W.playerStatusText}})),_.R("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.R(_.dK,{text:function(){var W;
return(W=g())==null?void 0:W.playerStatsText}}))),_.R(_.dK,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var W;return(W=g())==null?void 0:W.fantasyScore}}))},"ne");var uOM=_.O(function(h){return _.R("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.R(_.P,{cond:function(){return h.data().players},
then:function(E){return _.R(_.Sv,{data:E},{fantasyPlayerViewModel:bcf})}}))},"oe");var Q6f=_.O(function(h){var E=_.G(_.qi(function(){var M;return(M=h.data().selectedTabIdentifierKey)!=null?M:""})),g=E.next().value,Z=E.next().value;
_.m1(function(){var M;(M=h.setSelectedTabSignal)==null||M.call(h,g)});
return _.R("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.R("div",{class:"ytTabbedViewModelTabGroup"},_.R(_.T1M,{shape:function(){var M=h.data(),W=[],z={tabs:W};if(!M.tabs)return z;M=_.G(M.tabs);for(var c=M.next(),I={};!c.done;I={tabViewModel:void 0},c=M.next())if(I.tabViewModel=_.e(c.value,EKm),I.tabViewModel){var B=c=void 0;W.push({aTagConfig:{onclick:function(U){return function(){var L;Z((L=U.tabViewModel.tabIdentifier)!=null?L:"")}}(I)},
identifier:I.tabViewModel.tabIdentifier,selected:g()===I.tabViewModel.tabIdentifier,title:(B=(c=I.tabViewModel.title)==null?void 0:c.content)!=null?B:""})}return z}})),_.R(_.Sv,{data:function(){var M,W=_.G((M=h.data().tabs)!=null?M:[]);
for(M=W.next();!M.done;M=W.next())if((M=_.e(M.value,EKm))&&M.tabIdentifier===g())return M.content}},{fantasyRosterViewModel:uOM}))},"pe");_.I9(_.O(function(h){var E=_.G(nHO()),g=E.next().value,Z=E.next().value;return _.R("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.R(_.dK,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return h.data().title}}),_.R(_.P,{cond:function(){return h.data().tabbedViewModel},
then:function(M){return _.R(_.Sv,{data:M},{tabbedViewModel:function(W){return _.R(Q6f,{data:W.data,setSelectedTabSignal:Z})}})}}),_.R(_.P,{cond:function(){var M,W=(M=_.e(h.data().tabbedViewModel,gKD))==null?void 0:M.tabs;
M=_.e(W==null?void 0:W[0],EKm);W=_.e(W==null?void 0:W[1],EKm);var z=M==null?void 0:M.tabIdentifier;if(g()===z){var c,I;if(!((c=_.e(M==null?void 0:M.content,CQm))==null?0:(I=c.players)==null?0:I.length))return h.data().noUserTeamPlayersText}else{var B,U;if(!((B=_.e(W==null?void 0:W.content,CQm))==null?0:(U=B.players)==null?0:U.length))return h.data().noOpponentTeamPlayersText}},
then:function(M){return _.R(_.dK,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:M})}}))},"qe"),"ytw-fantasy-matchup-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){return _.R("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.R(_.dK,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return h.data().title}}),_.R(_.P,{cond:function(){return h.data().matchupTeamPairs},
then:function(E){return _.R(_.SX,{each:E,keyBy:"INDEX"},function(g){return _.R("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.R(_.Sv,{data:function(){return[g().firstTeam,g().secondTeam]}},{fantasyTeamViewModel:function(Z){return _.R(yJf,{data:Z.data,
compact:!0})}}))})}}))},"re"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=function(){var M,W,z;return(z=(M=h.data().userLogoAccessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)!=null?z:""},g=function(){var M,W,z;
return(z=(M=h.data().opponentLogoAccessibility)==null?void 0:(W=M.accessibilityData)==null?void 0:W.label)!=null?z:""},Z=_.qI(gI$,function(){return h.data().entityKey});
return _.R("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.R(_.P,{cond:function(){return h.data().userLogo},
then:function(M){return _.R(_.pO,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:E})}}),_.R("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.R(_.dK,{text:function(){return h.data().title}})),_.R(_.P,{cond:function(){return h.data().opponentLogo},
then:function(M){return _.R(_.pO,{className:"ytwFantasyWinProbabilityViewModelLogo",data:M,alt:g})}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.dK,{text:function(){var M;
return(M=Z())==null?void 0:M.userWinNumberLabel}})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.R("div",{class:_.CO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.fO({flex:function(){var M,W;return(W=(M=Z())==null?void 0:M.userWinNumber)!=null?W:50}})}),_.R("div",{class:_.CO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.fO({flex:function(){var M,W;return(W=(M=Z())==null?void 0:M.opponentWinNumber)!=null?W:50}})})),_.R("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.R(_.dK,{text:function(){var M;
return(M=Z())==null?void 0:M.opponentWinNumberLabel}}))))},"se"),"fantasy-win-probability-view-model",{props:{data:_.C6}});var hmf={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},ERf=_.O(function(h){return _.R(_.Sv,{data:h.button},{buttonViewModel:function(E){return _.R(_.$l,{data:E.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"te"),gRf=_.O(function(h){return _.R("ytd-backstage-locked-post-view-model",{class:_.CO("ytdBackstageLockedPostViewModelHost",h.className)},_.R("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.R("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.R(_.Sv,
{data:function(){return h.data().authorAvatar}},{decoratedAvatarViewModel:_.W0})),_.R("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.R("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.R(_.dK,{text:function(){return h.data().authorText}})),_.R("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.R(_.dK,{text:function(){return h.data().publishedTimeText}}),_.R(_.Sv,{data:function(){return h.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(E){return _.R(Icn,
{data:E.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.R("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.R(_.dK,{text:function(){return h.data().contentText}})),_.R(_.DG,null,_.R(_.x3,{when:function(){return h.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.R("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.R(_.pO,{data:hmf,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.R(_.dK,{text:function(){return h.data().lockedText}}))}),_.R(_.x3,{when:function(){return h.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.R("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.R("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.R(_.pO,{data:hmf,
alt:""})),_.R(_.dK,{text:function(){return h.data().lockedText}}))})),_.R("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.R(ERf,{button:function(){return h.data().likeButton}}),_.R("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return h.data().voteCountA11y}},_.R(_.dK,{text:function(){return h.data().voteCount}})),_.R(ERf,{button:function(){return h.data().dislikeButton}}),_.R(ERf,{button:function(){return h.data().commentButton}}),_.R("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return h.data().commentCountA11y}},_.R(_.dK,{text:function(){return h.data().commentCount}}))))},"ue");
gRf.idomCompat=!0;_.I9(gRf,"ytd-backstage-locked-post-view-model",{props:{data:_.C6,className:_.C6}});_.$P("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Rh=function(){var h=_.D.apply(this,arguments)||this;h.darkerPanels=_.J("web_watch_darker_panels");h.commentsHidePanelButton=!1;h.isWatchGrid=!1;h.continuationShowButton=!1;h.isSearch=!1;h.isConstrainedList=!1;h.isWatch=!1;h.eligibleToSwitchToGrid=!1;h.useBigThumbs=!1;h.notSticky=!1;h.epRestyle=!1;h.isCarouselInFeed=!0;h.topSpacingZero=!1;h.continuationIsInitialLoad=!0;h.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");h.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");
h.mastheadHeight=0;h.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};h.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return h};
_.f(Rh,_.D);_.p=Rh.prototype;_.p.updateLockupContainerTypes=function(h){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||E.forEach(function(g){g.containerType=h})}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",
hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",
macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",
offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",
playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",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:_.J("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.J("kevlar_low_priority_continuation")}}};
_.p.created=function(){};
_.p.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.p.handleIntersect=function(h){this.notSticky=h[0].intersectionRatio===1};
_.p.attached=function(){var h=this,E=_.J("web_item_section_sticky_header_use_scroll_as_fallback");E||document.addEventListener("scroll",_.qm(this,this.updateHeaderState));var g;this.mastheadHeight=((g=document.querySelector("ytd-masthead"))==null?void 0:g.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(Z){h.handleIntersect(Z)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):E&&document.addEventListener("scroll",_.qm(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){h.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.p.detached=function(){document.removeEventListener("scroll",_.qm(this,this.updateHeaderState));var h;(h=this.intersectionObserver)==null||h.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect()};
_.p.updated=function(h){h.has("data")&&this.updateHeaderState()};
_.p.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(j0l(!this.notSticky))};
_.p.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var h=_.UB(this.hostElement).querySelector("ytd-comments-header-renderer");h&&(h.hidePanelButton=this.commentsHidePanelButton)}};
_.p.onRetrieveLocation=function(h,E){this.containsComments()&&(this.firstCommentsLoaded=E.hasComments=!0)};
_.p.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.p.onLoadReloadContinuation=function(h,E){var g=this;h.stopPropagation();this.isReloading=!0;_.Ra(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(Z){var M=_.GF().resolve(_.kY);Z=E(Z);M.postData(Z).then(function(W){g.onReloadContinuationData(W)})}})};
_.p.onReloadContinuationData=function(h){if(h=this.get("response.continuationContents.itemSectionContinuation",h)||this.get("response.contents.itemSectionRenderer",h)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",h)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",h))this.set("data.contents",h.contents||h.results),h.header&&this.set("data.header",h.header),this.set("data.continuations",
h.continuations||[]);this.isReloading=!1};
_.p.computeContentsClass=function(h){return h?"reloading":""};
_.p.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.p.computeSectionIdentifier=function(h){return h==null?void 0:h.sectionIdentifier};
_.p.computeFitContainer=function(h){return(h==null?void 0:h.sectionIdentifier)==="youchat-item-section"};
_.p.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.J("kevlar_disable_comments_auto_load")};
_.p.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.p.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeHasDestinationShelfRenderer=function(h){var E,g;return!!(h==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.destinationShelfRenderer)};
_.p.computeHasSectionGroupViewModel=function(h){var E,g;return!!(h==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.sectionGroupViewModel)};
_.p.computeHasQrCodeRenderer=function(h){var E,g;return!!(h==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.qrCodeRenderer)};
_.p.computeStaticCommentsHeader=function(h){return h&&this.containsComments()};
_.p.computeEpRestyle=function(h){return _.J("web_ep_restyling")&&h&&this.containsComments()};
_.p.computeIsContinuationCommentSection=function(h){return(h==null?void 0:h.targetId)==="shorts-engagement-panel-comments-section"||(h==null?void 0:h.targetId)==="comments-section"||(h==null?void 0:h.targetId)==="engagement-panel-comments-section"};
_.p.computeSuppressPaddingDisclaimer=function(){var h,E,g,Z;return!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:(Z=g.productListHeaderRenderer)==null?0:Z.suppressPaddingDisclaimer)};
_.p.computeHeaderStyle=function(h){switch(h==null?void 0:h.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.p.dataChanged=function(){this.firstCommentsLoaded=!1};
_.p.observeDataContentsLength=function(){var h,E;((h=this.data)==null?0:(E=h.contents)==null?0:E.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.p.onYtDismissibleItemDismissedChange=function(h){this._setItemDismissed(h.type==="yt-dismissible-item-dismissed")};
_.p.triggerContinuations=function(){for(var h=_.UB(this.hostElement).querySelector("#continuations").children,E=0;E<h.length;E++)h[E].trigger()};
_.p.triggerInitialContinuations=function(){for(var h=_.UB(this.hostElement).querySelector("#continuations").children,E=0;E<h.length;E++)h[E].triggerIfNotPreviouslyTriggered()};
_.p.handleYtItemSectionContinuation=function(h,E){var g;E&&((g=this.data)==null?void 0:g.sectionIdentifier)!==E||(this.set("data.continuations",[h]),this.triggerContinuations())};
_.p.handleYtItemSectionReplace=function(h,E){var g;E&&((g=this.data)==null?void 0:g.sectionIdentifier)!==E||(this.set("data.contents",h),this.set("data.continuations",[]))};
_.p.computeUseHeightHack=function(h){return h&&!_.J("kevlar_disable_height_hack")};
_.p.computeTopSpacingZero=function(h){return h};
_.p.continuationShowButtonChanged=function(){var h=_.UB(this.hostElement).querySelector("ytd-continuation-item-renderer");h&&(h.showButton=this.continuationShowButton)};
_.p.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("data-changed",this.data))};
_.ze.Object.defineProperties(Rh.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.J("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.J("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z,M,W,z;return!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:(Z=g.shelfRenderer)==null?0:(M=Z.content)==null?0:(W=M.gridRenderer)==null?0:(z=W.targetId)==null?0:z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E[0])==null?0:g.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.iN("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.J("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.J("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
Rh.prototype.dataChangedForBinding=Rh.prototype.dataChangedForBinding;Rh.prototype.continuationShowButtonChanged=Rh.prototype.continuationShowButtonChanged;Rh.prototype.onYtDismissibleItemDismissedChange=Rh.prototype.onYtDismissibleItemDismissedChange;Rh.prototype.observeDataContentsLength=Rh.prototype.observeDataContentsLength;Rh.prototype.dataChanged=Rh.prototype.dataChanged;Rh.prototype.onServiceRequestCompleted=Rh.prototype.onServiceRequestCompleted;Rh.prototype.onLoadReloadContinuation=Rh.prototype.onLoadReloadContinuation;
Rh.prototype.onRetrieveLocation=Rh.prototype.onRetrieveLocation;Rh.prototype.commentsHidePanelButtonChanged=Rh.prototype.commentsHidePanelButtonChanged;Rh.prototype.dispatchChipBarIsSticky=Rh.prototype.dispatchChipBarIsSticky;Rh.prototype.updateLockupContainerTypes=Rh.prototype.updateLockupContainerTypes;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],Rh.prototype,"ytLazyListBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],Rh.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.t(_.Bv),_.V("design:type",Object)],Rh.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Rh.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Rh.prototype,"darkerPanels",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],Rh.prototype,"engagementPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"commentsHidePanelButton",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"isWatchGrid",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"continuationShowButton",void 0);_.Y([_.x({computed:"computeIsContinuationCommentSection(data)"}),_.V("design:type",Boolean)],Rh.prototype,"continuationIsCommentsSection",void 0);
_.Y([_.x({value:!0}),_.V("design:type",Boolean)],Rh.prototype,"autoFill",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Rh.prototype,"continuationDisablePrescanVisibility",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Rh.prototype,"isReloading",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"isSearch",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"isConstrainedList",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"isWatch",void 0);
_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"eligibleToSwitchToGrid",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"useBigThumbs",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Rh.prototype,"notSticky",void 0);_.Y([_.x({selector:_.sL}),_.V("design:type",Object)],Rh.prototype,"isGridViewEnabled",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Object)],Rh.prototype,"epRestyle",void 0);_.Y([_.S("isWatch"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"hideShortsShelfHeader",null);_.Y([_.S("isSearch","isWatch"),_.V("design:type",String),_.V("design:paramtypes",[])],Rh.prototype,"thumbnailWidth",null);
_.Y([_.S("isSearch","containerWidth"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rh.prototype,"thumbnailTargetWidth",null);_.Y([_.S("isSearch","isWatch"),_.V("design:type",String),_.V("design:paramtypes",[])],Rh.prototype,"sizing",null);_.Y([_.S("isWatch","isGridViewEnabled","useBigThumbs","data"),_.x({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],Rh.prototype,"lockupContainerType",null);
_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"hasHeader",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"expFixPlaylistHeader",null);_.Y([_.Nm("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],Rh.prototype,"updateLockupContainerTypes",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Rh.prototype,"pageSubtype",void 0);_.Y([_.x({computed:"computeContainerWidth()"}),_.V("design:type",Number)],Rh.prototype,"containerWidth",void 0);_.Y([_.x(),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"isPlaylist",null);_.Y([_.x(),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"isClipList",null);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"isCarouselInFeed",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"isPlaylistVideoContainer",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"isSearchFrictionPage",null);_.Y([_.x({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.V("design:type",Boolean)],Rh.prototype,"useHeightHack",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.V("design:type",Object)],Rh.prototype,"topSpacingZero",void 0);_.Y([_.x({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.V("design:type",Boolean)],Rh.prototype,"showButton",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Rh.prototype,"firstCommentsLoaded",void 0);_.Y([_.x(),_.V("design:type",Object)],Rh.prototype,"continuationIsInitialLoad",void 0);
_.Y([_.x({reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],Rh.prototype,"itemDismissed",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.V("design:type",String)],Rh.prototype,"sectionIdentifier",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.V("design:type",String)],Rh.prototype,"fitContainer",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.V("design:type",Boolean)],Rh.prototype,"hasDestinationShelfRenderer",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.V("design:type",Boolean)],Rh.prototype,"staticCommentsHeader",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Rh.prototype,"enableSqueezebackPanels",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Rh.prototype,"enableAnchoredPanel",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.V("design:type",Boolean)],Rh.prototype,"hasSectionGroupViewModel",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.V("design:type",Boolean)],Rh.prototype,"hasQrCodeRenderer",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.V("design:type",Boolean)],Rh.prototype,"suppressDisclaimerSeparator",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.V("design:type",String)],Rh.prototype,"headerStyle",void 0);_.Y([_.S("isSearch"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rh.prototype,"lockupExperiments",null);
_.Y([_.S("isSearch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rh.prototype,"typographyBump",null);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],Rh.prototype,"header",void 0);_.Y([_.Nm("notSticky"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"dispatchChipBarIsSticky",null);
_.Y([_.Nm("commentsHidePanelButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"commentsHidePanelButtonChanged",null);_.Y([_.f3("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Rh.prototype,"onRetrieveLocation",null);
_.Y([_.f3("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Function]),_.V("design:returntype")],Rh.prototype,"onLoadReloadContinuation",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"onServiceRequestCompleted",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"dataChanged",null);
_.Y([_.lq("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"observeDataContentsLength",null);_.Y([_.f3("yt-dismissible-item-dismissed"),_.f3("yt-dismissible-item-undismissed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Rh.prototype,"onYtDismissibleItemDismissedChange",null);
_.Y([_.Nm("continuationShowButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"continuationShowButtonChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rh.prototype,"dataChangedForBinding",null);_.Y([_.K({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Rh);
_.X(Rh,"ytd-item-section-renderer",function(){if(iil!==void 0)return iil;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return iil=h},{mode:1});var ZoC;var s3d=_.MR(_.NH("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var MrA={},Y2Z=(MrA[0]={title:_.iV(_.NH("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.aY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},MrA[1]={title:_.iV(_.NH("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.aY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},MrA);_.$P("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var PE=function(){var h=_.D.apply(this,arguments)||this;h.allVideosCount=0;h.allPlaylistCount=0;h.isOnline=!1;h.shouldRenderDownloadsBanner=!1;h.shouldRenderDownloadsBannerUpsell=!1;h.hasOptedIntoSmartDownloads=!1;h.areAllSmartDownloadsDeleted=!1;h.smartDownloadsCompleted=!1;return h};
_.f(PE,_.D);PE.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
PE.prototype.attached=function(){this.downloadsToRenderChanged()};
PE.prototype.detached=function(){this.set("renderableData",{})};
PE.prototype.downloadsToRenderChanged=function(){var h=_.Gv().getState().entities,E=_.Ke(h),g=_.J("kevlar_playlist_dl_page_killswitch")?QxV(h):_.Oo(h),Z=_.khZ(h),M=_.TcM(h),W=_.lV(E);h=_.ne(h);this.set("renderableData",k4$(g,E,Z,M,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,W,h))};
PE.prototype.downloadsToRenderChanged=PE.prototype.downloadsToRenderChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],PE.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PE.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],PE.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],PE.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],PE.prototype,"renderableData",void 0);_.Y([_.x({selector:_.omV}),_.V("design:type",Object)],PE.prototype,"allVideosCount",void 0);_.Y([_.x({selector:mL$}),_.V("design:type",Object)],PE.prototype,"allPlaylistCount",void 0);_.Y([_.x({selector:_.k8}),_.V("design:type",Object)],PE.prototype,"isOnline",void 0);_.Y([_.x({selector:_.jSa}),_.V("design:type",Object)],PE.prototype,"shouldRenderDownloadsBanner",void 0);
_.Y([_.x({selector:_.eFq}),_.V("design:type",Object)],PE.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Y([_.x({selector:_.dPO}),_.V("design:type",Object)],PE.prototype,"hasOptedIntoSmartDownloads",void 0);_.Y([_.x({selector:_.Ccz}),_.V("design:type",Object)],PE.prototype,"areAllSmartDownloadsDeleted",void 0);_.Y([_.x({selector:Jcu}),_.V("design:type",Object)],PE.prototype,"smartDownloadsCompleted",void 0);
_.Y([_.lq("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],PE.prototype,"downloadsToRenderChanged",null);_.Y([_.K({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],PE);
_.X(PE,"ytd-offline-item-section-renderer",function(){if(ZoC!==void 0)return ZoC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ZoC=h},
{mode:1});var WkD;var pIM;var BE=function(){return _.D.apply(this,arguments)||this};
_.f(BE,_.D);
BE.prototype.onDataChanged=function(){if(this.JSC$16694_lastData){var h=this.getFilterClass(this.JSC$16694_lastData.status);h&&this.hostElement.classList.remove(h)}var E;(h=this.getFilterClass((E=this.data)==null?void 0:E.status))&&this.hostElement.classList.add(h);h==="selected"?_.UB(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.UB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");h==="disabled"?_.UB(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.UB(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16694_lastData=this.data};
BE.prototype.getFilterClass=function(h){switch(h){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
BE.prototype.onDataChanged=BE.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BE.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BE.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BE.prototype,"onDataChanged",null);_.Y([_.K({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],BE);
_.X(BE,"ytd-search-filter-renderer",function(){if(pIM!==void 0)return pIM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return pIM=h},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var U5=function(){return _.D.apply(this,arguments)||this};
_.f(U5,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],U5.prototype,"data",void 0);_.Y([_.K({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],U5);
_.X(U5,"ytd-search-filter-group-renderer",function(){if(WkD!==void 0)return WkD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return WkD=h},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var GWf;var LN=function(){return _.D.apply(this,arguments)||this};
_.f(LN,_.D);LN.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.xi());this.isCollapsed=!this.isCollapsed};
LN.prototype.navigateToAboutTheseResultsPage=function(){var h=_.nM("https://www.youtube.com/howyoutubeworks/product-features/search/");h?_.EZ(window,h,"_blank"):_.Vy(Error("$h"))};
LN.prototype.dataChanged=function(){this.isCollapsed=!0};
LN.prototype.computeShowBottomBorder=function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.button)==null?0:E.toggleButtonRenderer)||!((g=this.data)==null||!g.aboutTheseResultsButton)};
LN.prototype.dataChanged=LN.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],LN.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.V("design:type",Boolean)],LN.prototype,"showBottomBorder",void 0);_.Y([_.x(),_.V("design:type",Boolean)],LN.prototype,"renderCollapsibleMenu",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],LN.prototype,"isCollapsed",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LN.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],LN);
_.X(LN,"ytd-search-sub-menu-renderer",function(){if(GWf!==void 0)return GWf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GWf=h},{mode:1});var zmB;var aoF=new _.Ps("SECTION_LIST_RENDERER_TOKEN");var crC;var jh=function(){return _.D.apply(this,arguments)||this};
_.f(jh,_.D);jh.prototype.computeStyle=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jh.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],jh.prototype,"headerStyle",void 0);_.Y([_.K({is:"ytd-text-header-renderer",disableElementRegistration:!0})],jh);
_.X(jh,"ytd-text-header-renderer",function(){if(crC!==void 0)return crC;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return crC=h},{mode:1});var ioH;var CN=function(){return _.D.apply(this,arguments)||this};
_.f(CN,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],CN.prototype,"data",void 0);_.Y([_.K({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],CN);
_.X(CN,"ytd-minor-moment-header-renderer",function(){if(ioH!==void 0)return ioH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ioH=h},{mode:1});var oRD;var JP=function(){return _.D.apply(this,arguments)||this};
_.f(JP,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],JP.prototype,"data",void 0);_.Y([_.K({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],JP);
_.X(JP,"ytd-minor-moment-setting-alert-renderer",function(){if(oRD!==void 0)return oRD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return oRD=h},{mode:1});var Iof;var Rmk;var eh=function(){var h=_.D.apply(this,arguments)||this;h.booleanSettingById=!1;h.smartDownloadsEnabledVE=_.Uz(128287);h.smartDownloadsDisabledVE=_.Uz(128286);h.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return h};
_.f(eh,_.D);_.p=eh.prototype;_.p.attachSmartDownloadsSettingVes=function(){var h;this.activeVeForLogging||((h=this.data)==null?void 0:h.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.vt(_.SQ(),this.smartDownloadsEnabledVE),_.vt(_.SQ(),this.smartDownloadsDisabledVE))};
_.p.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Ra(this.hostElement,"yt-settings-switch-ready")};
_.p.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.p.onSwitchChange=function(h){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(h=_.zw(h).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.J("kevlar_settings_switch_resolve_command_killswitch")?_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(h)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.p.handleUpdateSettingsSwitch=function(h){(h=_.e(h,nsf))&&this.data&&this.data.id===h.id&&this.set("data.enabled",!!h.enabled)};
_.p.onToggleSettingsSwitch=function(h,E){this.data&&this.data.id===h&&this.set("data.enabled",E!=null?E:!this.data.enabled)};
_.p.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.q8.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.p.maybeLogSmartDownloadsSettingVisibility=function(){var h=_.sH(),E;h&&((E=this.data)==null?void 0:E.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Eo(h,[this.smartDownloadsEnabledVE]),_.gZ(h,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Eo(h,[this.smartDownloadsDisabledVE]),_.gZ(h,[this.smartDownloadsEnabledVE])))};
_.p.maybeLogSmartDownloadsSettingClick=function(){var h;((h=this.data)==null?void 0:h.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.$T(_.SQ(),this.activeVeForLogging)};
_.p.updateDataEnabledFromBinding=function(h){this.set("data.enabled",h.detail.value)};
_.ze.Object.defineProperties(eh.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var h=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!h&&(h=this.ytRendererBehavior.getSimpleString(this.data.title));return h}}});
eh.prototype.dataChanged=eh.prototype.dataChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],eh.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],eh.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],eh.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],eh.prototype,"data",void 0);_.Y([_.x({selector:function(h,E){if(Object.keys(h==null?void 0:h.entities).length)switch(E){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return hFx(h.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.V("design:type",Object)],eh.prototype,"booleanSettingById",void 0);_.Y([_.x(),_.V("design:type",Xa)],eh.prototype,"activeVeForLogging",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],eh.prototype,"toggleAriaLabel",null);_.Y([_.lq("data"),_.lq("booleanSettingById"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eh.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],eh);
_.X(eh,"ytd-settings-switch-renderer",function(){if(Rmk!==void 0)return Rmk;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Rmk=h},{mode:1});var qt=function(){return _.D.apply(this,arguments)||this};
_.f(qt,_.D);qt.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}}}}};
_.ze.Object.defineProperties(qt.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var h=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(h+=" remove-left-margin");this.data.extraBottomSpace&&(h+=" extra-bottom-space");return h}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],qt.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qt.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],qt.prototype,"contentsClassName",null);_.Y([_.K({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],qt);
_.X(qt,"ytd-minor-moment-setting-section-renderer",function(){if(Iof!==void 0)return Iof;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Iof=h},{mode:1});var PjF;var fN=function(){return _.D.apply(this,arguments)||this};
_.f(fN,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],fN.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fN.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],fN);
_.X(fN,"ytd-empty-product-details-renderer",function(){if(PjF!==void 0)return PjF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return PjF=h},{mode:1});var BJD;var UrD;var Nt=function(){var h=_.D.apply(this,arguments)||this;h.expanded=!0;return h};
_.f(Nt,_.D);Nt.prototype.getBadgeRowClass=function(h,E,g){for(var Z=_.G(this.hostElement.querySelectorAll("yt-img-shadow")),M=Z.next();!M.done;M=Z.next())M.value.onShow();h=h.selected;return g?h!==-1?h===E?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(h!==void 0?h:0)===E?"badge-line":"badge-hidden"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Nt.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Nt.prototype,"expanded",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],Nt);
_.X(Nt,"ytd-sponsorships-loyalty-badges-renderer",function(){if(UrD!==void 0)return UrD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UrD=h},{mode:1});var Lkm;var tP=function(){var h=_.D.apply(this,arguments)||this;h.expanded=!0;return h};
_.f(tP,_.D);tP.prototype.getContainerClasses=function(h,E){h=h?"expanded":"collapsed";E&&(h+=" item");return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],tP.prototype,"expanded",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],tP);
_.X(tP,"ytd-sponsorships-perk-renderer",function(){if(Lkm!==void 0)return Lkm;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Lkm=h},{mode:1});var jvH;var Sh=function(){var h=_.D.apply(this,arguments)||this;h.expanded=!0;return h};
_.f(Sh,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Sh.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Sh.prototype,"expanded",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Sh);
_.X(Sh,"ytd-sponsorships-perks-renderer",function(){if(jvH!==void 0)return jvH;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jvH=h},{mode:1});var xj=function(){var h=_.D.apply(this,arguments)||this;h.isCollapsed=!1;return h};
_.f(xj,_.D);xj.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
xj.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
xj.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var h;this.expandCollapseButton=_.e((h=this.data)==null?void 0:h.expandButton,_.Gh)}else{var E;this.expandCollapseButton=_.e((E=this.data)==null?void 0:E.collapseButton,_.Gh)}};
xj.prototype.updateExpandCollapseButton=xj.prototype.updateExpandCollapseButton;xj.prototype.onDataChanged=xj.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xj.prototype,"isCollapsed",void 0);_.Y([_.x(),_.V("design:type",Object)],xj.prototype,"expandCollapseButton",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xj.prototype,"onDataChanged",null);_.Y([_.lq("data","isCollapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xj.prototype,"updateExpandCollapseButton",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],xj);
_.X(xj,"ytd-sponsorships-expandable-perks-renderer",function(){if(BJD!==void 0)return BJD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return BJD=h},{mode:1});var drH;var wo=function(){return _.D.apply(this,arguments)||this};
_.f(wo,_.D);wo.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],wo.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wo.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],wo);
_.X(wo,"ytd-sponsorships-actionable-message-renderer",function(){if(drH!==void 0)return drH;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return drH=h},{mode:1});var CjM;var DO=function(){return _.D.apply(this,arguments)||this};
_.f(DO,_.D);_.p=DO.prototype;_.p.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.p.getExpansionIcon=function(h){return h?"COLLAPSE":"EXPAND"};
_.p.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.computeMessageContainerStyle=function(h){var E=h.expandableItems?" style-clickable":"";return h.messageContainerStyle?h.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+E:"style-unspecified"+E};
_.p.isSinglePerk=function(h){return!!h.messageContainerStyle&&(h.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||h.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.p.onExpandedChanged=function(){var h=this;if(this.expanded)for(var E=_.G(this.hostElement.querySelectorAll("yt-img-shadow")),g=E.next();!g.done;g=E.next())g.value.onShow();_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
DO.prototype.onDataChanged=DO.prototype.onDataChanged;DO.prototype.onExpandedChanged=DO.prototype.onExpandedChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],DO.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],DO.prototype,"expanded",void 0);
_.Y([_.Nm("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DO.prototype,"onExpandedChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DO.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],DO);
_.X(DO,"ytd-sponsorships-expandable-message-renderer",function(){if(CjM!==void 0)return CjM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return CjM=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var JrD;var ly=function(){return _.D.apply(this,arguments)||this};
_.f(ly,_.D);ly.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"}}}}};
ly.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.e(this.data.endButton,_.Gh).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
ly.prototype.onDataChanged=ly.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ly.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ly.prototype,"onDataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],ly);
_.X(ly,"ytd-sponsorships-heading-renderer",function(){if(JrD!==void 0)return JrD;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JrD=h},{mode:1});var emf;var ro=function(){return _.D.apply(this,arguments)||this};
_.f(ro,_.D);_.Y([_.x(),_.V("design:type",Object)],ro.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],ro);
_.X(ro,"ytd-sponsorships-links-renderer",function(){if(emf!==void 0)return emf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return emf=h},{mode:1});var qeA;var mF=function(){return _.D.apply(this,arguments)||this};
_.f(mF,_.D);_.p=mF.prototype;_.p.onDataChanged=function(){if(this.data&&this.data.expandableItems){var h;(h=_.UB(this.hostElement).querySelector("tp-yt-paper-button"))==null||h.setAttribute("role","button")}else{var E;(E=_.UB(this.hostElement).querySelector("tp-yt-paper-button"))==null||E.removeAttribute("role")}};
_.p.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.p.getExpansionIcon=function(h){return h?"COLLAPSE":"EXPAND"};
_.p.getTileClasses=function(h){return h?"tile expandable-tile":"tile"};
_.p.getButtonDisabled=function(h){return h?void 0:""};
mF.prototype.onDataChanged=mF.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mF.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],mF.prototype,"expanded",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mF.prototype,"onDataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],mF);
_.X(mF,"ytd-sponsorships-list-tile-renderer",function(){if(qeA!==void 0)return qeA;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return qeA=h},{mode:1});var fon;var NJn;var vE=function(){return _.D.apply(this,arguments)||this};
_.f(vE,_.D);vE.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vE.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vE.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],vE);
_.X(vE,"ytd-sponsorships-promotion-renderer",function(){if(NJn!==void 0)return NJn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return NJn=h},{mode:1});var trm;var HE=function(){return _.D.apply(this,arguments)||this};
_.f(HE,_.D);HE.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HE.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],HE.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],HE.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],HE);
_.X(HE,"ytd-sponsorships-purchase-option-renderer",function(){if(trm!==void 0)return trm;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return trm=h},{mode:1});var Sel;var xrD;var wIl=function(){return _.D.apply(this,arguments)||this};
_.f(wIl,_.D);_.Y([_.x(),_.V("design:type",Object)],wIl.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],wIl);
_.X(wIl,"ytd-ypc-offer-promo-renderer",function(){if(xrD!==void 0)return xrD;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return xrD=h},{mode:1});var KN=function(){return _.D.apply(this,arguments)||this};
_.f(KN,_.D);_.p=KN.prototype;
_.p.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.p.expansionCTA=function(h,E){return h&&(E?h.collapseCallToAction:h.expansionCallToAction)};
_.p.getExpansionIcon=function(h){return h?"COLLAPSE":"EXPAND"};
_.p.expansionCallToActionTap=function(){var h=this;this.expanded=!this.expanded;_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit")})};
_.p.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var h,E=(h=this.data)==null?void 0:h.onVisible;E&&this.ytComponentBehavior.resolveCommand(E)};
_.p.computeDisplayTitle=function(h){return!(!h||this.titledisplaystatus!=="show")};
_.p.computeDisplaySeparator=function(){return!1};
_.p.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
KN.prototype.onDataChanged=KN.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],KN.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],KN.prototype,"data",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],KN.prototype,"expanded",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],KN.prototype,"purchaseButtonClicked",void 0);_.Y([_.x({reflectToAttribute:!0,value:"show"}),_.V("design:type",String)],KN.prototype,"titledisplaystatus",void 0);_.Y([_.x({computed:"computeDisplayTitle(data.title)"}),_.V("design:type",Boolean)],KN.prototype,"displayTitle",void 0);
_.Y([_.x({computed:"computeDisplaySeparator(data)"}),_.V("design:type",Boolean)],KN.prototype,"displaySeparator",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KN.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],KN);
_.X(KN,"ytd-sponsorships-tier-renderer",function(){if(Sel!==void 0)return Sel;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Sel=h},{mode:2});var O5=function(){return _.D.apply(this,arguments)||this};
_.f(O5,_.D);
O5.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],O5.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],O5);
_.X(O5,"ytd-sponsorships-management-renderer",function(){if(fon!==void 0)return fon;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return fon=h},{mode:1});var DrM;var nN=function(){return _.D.apply(this,arguments)||this};
_.f(nN,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],nN.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],nN);
_.X(nN,"ytd-open-in-native-app-view-model",function(){if(DrM!==void 0)return DrM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return DrM=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var lok;var rrM;var mrk=_.uz(["top-"]),vRD=_.uz(["bottom-"]),Hof=_.uz(["left-"]),$rH=_.uz(["right-"]),Kkn={},Oom=function(h,E,g){h.removeAttribute("top-"+g);h.removeAttribute("bottom-"+g);h.removeAttribute("left-"+g);h.removeAttribute("right-"+g);E&&(E.top&&_.zH([_.of(mrk)],h,"top-"+g,E.top),E.bottom&&_.zH([_.of(vRD)],h,"bottom-"+g,E.bottom),E.left&&_.zH([_.of(Hof)],h,"left-"+g,E.left),E.right&&_.zH([_.of($rH)],h,"right-"+g,E.right))};
Kkn.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(h){var E,g=_.UB((E=this.hostElement)!=null?E:this),Z;E=this.cardItemBoxBehaviorMarginTargetId&&g?g.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(Z=this.hostElement)!=null?Z:this;Oom(E,h,"margin")},
cardItemContainerPaddingChanged_:function(h){var E,g=_.UB((E=this.hostElement)!=null?E:this),Z;E=this.cardItemBoxBehaviorPaddingTargetId&&g?g.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(Z=this.hostElement)!=null?Z:this;Oom(E,h,"padding")}}];var Xv={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 nRD;var XIM;var Yj=function(){return _.D.apply(this,arguments)||this};
_.f(Yj,_.D);Yj.prototype.textColorChanged_=function(){this.hostElement.style.color=Xv[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Yj.prototype.textColorChanged_=Yj.prototype.textColorChanged_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(Kkn.YtCardItemBoxBehavior),_.V("design:type",Object)],Yj.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Yj.prototype,"data",void 0);_.Y([_.Nm("data.textColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yj.prototype,"textColorChanged_",null);
_.Y([_.yc({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Yj);
_.X(Yj,"yt-card-item-text-renderer",function(){if(XIM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;nRD===void 0&&(nRD=document.createElement("template"));var Z=nRD;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);XIM=h}h=XIM;return h},{mode:2});var Yen;var svM;var s5=function(){return _.D.apply(this,arguments)||this};
_.f(s5,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],s5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],s5.prototype,"data",void 0);_.Y([_.yc({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],s5);
_.X(s5,"yt-card-item-badge-renderer",function(){if(svM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Yen===void 0&&(Yen=document.createElement("template"));var Z=Yen;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);svM=h}h=svM;return h},{mode:2});var Vrf;var kWl;var Vs=function(){return _.D.apply(this,arguments)||this};
_.f(Vs,_.D);Vs.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vs.prototype,"data",void 0);_.Y([_.yc({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Vs);
_.X(Vs,"yt-card-item-text-collection-renderer",function(){if(kWl===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Vrf===void 0&&(Vrf=document.createElement("template"));var Z=Vrf;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);kWl=h}h=kWl;return h},{mode:2});var yrC;var Fkk;var kj=function(){return _.D.apply(this,arguments)||this};
_.f(kj,_.D);kj.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]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],kj.prototype,"iconSize",void 0);_.Y([_.yc({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],kj);
_.X(kj,"yt-card-item-text-with-button-renderer",function(){if(Fkk===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;yrC===void 0&&(yrC=document.createElement("template"));var Z=yrC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Fkk=h}h=Fkk;return h},{mode:2});var ys=function(){return _.D.apply(this,arguments)||this};
_.f(ys,_.D);ys.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ys.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ys.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],ys);
_.X(ys,"ytd-commerce-cart-summary-line-item-renderer",function(){if(rrM!==void 0)return rrM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return rrM=h},{mode:1});_.$P("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Fv=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;return h};
_.f(Fv,_.D);_.p=Fv.prototype;_.p.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.p.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.p.updateSummary=function(){var h=this.commerceCartCheckoutButtonEntity,E;if(((E=this.data)==null?0:E.cartButton)&&h.checkoutSummaryText){var g,Z=rH((g=this.data)==null?void 0:g.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+Z+".cardItemTextRenderer.text",mq(h.checkoutSummaryText));if(h.checkoutDetailText){var M;g=rH((M=this.data)==null?void 0:M.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",mq(h.checkoutDetailText))}if(h.checkoutAdditionalMetadataText){var W;
M=rH((W=this.data)==null?void 0:W.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+M+".cardItemTextRenderer.text",mq(h.checkoutAdditionalMetadataText))}}else h.estimatedTotalPrice&&(W=rH((Z=this.data)==null?void 0:Z.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",mq(h.estimatedTotalPrice)))};
_.p.updateIsHidden=function(){var h,E=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.isHidden;E!==void 0&&(this.hidden=E)};
_.p.updateCheckoutButton=function(){var h,E=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.isDisabled;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",E);var g;h=(g=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:g.innertubeCommand;h!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",h);var Z;g=(Z=this.commerceCartCheckoutButtonEntity)==null?void 0:Z.checkoutButtonText;g!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:g})};
Fv.prototype.entityChanged=Fv.prototype.entityChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],Fv.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Fv.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Fv.prototype,"fullWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],Fv.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Fv.prototype,"compact",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Fv.prototype,"hidden",void 0);
_.Y([_.x({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ciq}),_.V("design:type",Object)],Fv.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Y([_.Nm("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fv.prototype,"entityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Fv);
_.X(Fv,"ytd-commerce-cart-checkout-button-renderer",function(){if(lok!==void 0)return lok;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return lok=h},{mode:2});var Arf;_.TJf={};
_.TJf.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",_.qm(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.qm(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(h){!this.tappableItemBehaviorTapEnabled||h.keyCode!==13&&h.keyCode!==32||h.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var h=this.data.onTap;h.ypcGetCartEndpoint?(_.LZ(this.hostElement,[h]),this.tappableItemBehaviorTapEnabled=!1):h.ypcOffersEndpoint?_.LZ(this.hostElement,[h]):_.jj(this.hostElement,[h],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(h){this.tappableItemBehaviorTapEnabled=!!h},
tappableItemBehaviorOnTapEnabledChanged_:function(){var h=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(h.setAttribute("tabIndex",0),h.setAttribute("role","button")):(h.removeAttribute("tabIndex"),h.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(h){h.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var boC;var uSD;var AP=function(){return _.D.apply(this,arguments)||this};
_.f(AP,_.D);AP.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.KO("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.KO("sharingToggleButtonAndDefaultButton")}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],AP.prototype,"data",void 0);_.Y([_.yc({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],AP);
_.X(AP,"yt-card-item-actions-renderer",function(){if(uSD===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;boC===void 0&&(boC=document.createElement("template"));var Z=boC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);uSD=h}h=uSD;return h},{mode:2});var Qvn;var h5k;var EbM;var gbF;var Z9f;var MUA;var To=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return h};
_.f(To,_.D);To.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
To.prototype.handleDarkModeToggledAction_=function(h){this.isDarkTheme_=h};
To.prototype.computeThemeImage_=function(h,E){if(!h||!h.imageLight)return!1;this.isCircular_=h.isCircular;h.imageWidth&&(this.hostElement.style.width=h.imageWidth+"px");h.imageHeight&&(this.hostElement.style.height=h.imageHeight+"px");h.borderWidth&&(this.image.style.borderWidth=h.borderWidth+"px",this.image.style.borderStyle="solid");h.borderColor&&(this.image.style.borderColor=_.uU(h.borderColor));return E&&h.imageDark?h.imageDark:h.imageLight};
To.prototype.computeThemeIcon_=function(h){var E,g;if(!(h==null?0:(E=h.themedIcon)==null?0:(g=E.icon)==null?0:g.iconType))return!1;this.icon.style.color=Xv[h.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(h.imageWidth||18)+"px";this.icon.style.height=(h.imageHeight||18)+"px";return _.CL(h.themedIcon.icon.iconType)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(Kkn.YtCardItemBoxBehavior),_.V("design:type",Object)],To.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],To.prototype,"data",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],To.prototype,"fit",void 0);_.Y([_.x(),_.V("design:type",Boolean)],To.prototype,"isDarkTheme_",void 0);_.Y([_.x({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.V("design:type",Object)],To.prototype,"themeImage_",void 0);_.Y([_.x({computed:"computeThemeIcon_(data)"}),_.V("design:type",Object)],To.prototype,"themeIcon_",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Object)],To.prototype,"isCircular_",void 0);
_.Y([_.Sg("#image"),_.V("design:type",Object)],To.prototype,"image",void 0);_.Y([_.Sg("#icon"),_.V("design:type",Object)],To.prototype,"icon",void 0);_.Y([_.yc({is:"yt-themed-image-renderer",disableElementRegistration:!0})],To);
_.X(To,"yt-themed-image-renderer",function(){if(MUA===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Z9f===void 0&&(Z9f=document.createElement("template"));var Z=Z9f;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);MUA=h}h=MUA;return h},{mode:2});var by=function(){return _.D.apply(this,arguments)||this};
_.f(by,_.D);by.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"}}}}};
by.prototype.computeImagePlacement_=function(h){return h||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],by.prototype,"data",void 0);_.Y([_.x({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.V("design:type",String)],by.prototype,"imagePlacement",void 0);
_.Y([_.yc({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],by);
_.X(by,"yt-card-item-text-with-image-renderer",function(){if(gbF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;EbM===void 0&&(EbM=document.createElement("template"));var Z=EbM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);gbF=h}h=gbF;return h},{mode:2});var uy=function(){return _.D.apply(this,arguments)||this};
_.f(uy,_.D);uy.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"}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uy.prototype,"data",void 0);_.Y([_.yc({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],uy);
_.X(uy,"yt-card-item-error-renderer",function(){if(h5k===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Qvn===void 0&&(Qvn=document.createElement("template"));var Z=Qvn;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);h5k=h}h=h5k;return h},{mode:2});var WBk;var pYM;_.$P("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Qs=function(){return _.D.apply(this,arguments)||this};
_.f(Qs,_.D);_.p=Qs.prototype;
_.p.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.p.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.p.backgroundColorChanged_=function(){var h,E=(h=this.data)==null?void 0:h.backgroundColor;h=Xv[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.UB(this.hostElement).querySelector("#main-content").style.backgroundColor=h};
_.p.headerPromoBackgroundColorChanged_=function(){var h,E=(h=this.data)==null?void 0:h.headerPromoBackgroundColor;h=Xv[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.UB(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=h};
_.p.errorRendererVisibilityChanged_=function(){var h=this.isExpanded_,E;this.isErrorRendererVisible_=!((E=this.data)==null||!E.errorRenderer)&&!h};
_.p.onYtToggleButton_=function(h,E){this.isExpanded_=E.toggled};
Qs.prototype.onYtToggleButton_=Qs.prototype.onYtToggleButton_;Qs.prototype.errorRendererVisibilityChanged_=Qs.prototype.errorRendererVisibilityChanged_;Qs.prototype.headerPromoBackgroundColorChanged_=Qs.prototype.headerPromoBackgroundColorChanged_;Qs.prototype.backgroundColorChanged_=Qs.prototype.backgroundColorChanged_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(Kkn.YtCardItemBoxBehavior),_.V("design:type",Object)],Qs.prototype,"ytCardItemBoxBehavior",void 0);_.Y([_.t(_.TJf.YtTappableItemBehavior),_.V("design:type",Object)],Qs.prototype,"ytTappableItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qs.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Qs.prototype,"isExpanded_",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Qs.prototype,"isErrorRendererVisible_",void 0);_.Y([_.Nm("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qs.prototype,"backgroundColorChanged_",null);_.Y([_.Nm("data.headerPromoBackgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qs.prototype,"headerPromoBackgroundColorChanged_",null);
_.Y([_.Nm("data.errorRenderer","isExpanded_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qs.prototype,"errorRendererVisibilityChanged_",null);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],Qs.prototype,"onYtToggleButton_",null);_.Y([_.yc({is:"yt-card-item-renderer",disableElementRegistration:!0})],Qs);
_.X(Qs,"yt-card-item-renderer",function(){if(pYM===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;WBk===void 0&&(WBk=document.createElement("template"));var Z=WBk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);pYM=h}h=pYM;return h},{mode:2});_.$P("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var hv=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;return h};
_.f(hv,_.D);_.p=hv.prototype;_.p.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.p.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var h,E=(h=this.commerceCartHeaderEntity)==null?void 0:h.isHidden;E!==void 0&&(this.hidden=E)}};
_.p.updateTitle=function(){var h=this.commerceCartHeaderEntity.isDisabled,E,g,Z=(g=_.e((E=this.data)==null?void 0:E.item,xym))==null?void 0:g.headingRenderer;Z&&(E=rH(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".0.cardItemTextRenderer.textColor",h?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.p.updateSummaryText=function(){var h=this.commerceCartHeaderEntity;if(this.compact){var E,g,Z=(g=_.e((E=this.data)==null?void 0:E.item,xym))==null?void 0:g.headingRenderer;Z&&(E=rH(Z,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".1.cardItemTextRenderer.text",h.shortHeaderSummaryText?mq(h.shortHeaderSummaryText):h.headerSummaryText?mq(h.headerSummaryText):""))}else{var M;if(E=(M=_.e((Z=this.data)==null?void 0:Z.item,xym))==null?void 0:M.additionalInfoRenderer)E=rH(E,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".text",h.headerSummaryText?mq(h.headerSummaryText):"")}};
_.p.updateCheckoutButton=function(){var h=this.commerceCartHeaderEntity,E,g,Z=(g=_.e((E=this.data)==null?void 0:E.item,xym))==null?void 0:g.additionalInfoRenderer;E=rH(Z,"buttonRenderer");var M;g=(M=this.commerceCartHeaderEntity)==null?void 0:M.isButtonDisabled;var W;M=(W=this.commerceCartHeaderEntity)==null?void 0:W.isButtonHidden;g!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.isDisabled",g);M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
M);var z;h=(z=h.checkoutButtonCommand)==null?void 0:z.innertubeCommand;h!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.command",h)};
hv.prototype.entityChanged=hv.prototype.entityChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],hv.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hv.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],hv.prototype,"compact",void 0);_.Y([_.x({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(h,E){return _.Jj(h.entities,"commerceCartHeaderEntity",E)}}),
_.V("design:type",Object)],hv.prototype,"commerceCartHeaderEntity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],hv.prototype,"hidden",void 0);_.Y([_.Nm("commerceCartHeaderEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hv.prototype,"entityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],hv);
_.X(hv,"ytd-commerce-cart-header-renderer",function(){if(Arf!==void 0)return Arf;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Arf=h},{mode:1});var GJA;var z5M=_.lY(function(h,E){var g;return(g=h.onChangeCallback)==null?void 0:g.call(h,E)},1E3),ajH=_.O(function(h){var E=h.data;
var g=h.iconMinus;h=h.iconPlus;var Z=function(){return!!E().disabled},M=_.G(_.Bm(0,void 0,"mKh0af")),W=M.next().value,z=M.next().value;
M=_.J7(function(){if(W()===1){var L,d;(d=(L=E()).onRemoveCommand)==null||d.call(L)}L=W()>E().maxValue?E().maxValue:W()-1;z(L);z5M(E(),L);return!1});
var c=_.J7(function(){if(W()===E().maxValue)return!1;var L=W()+1;z(L);z5M(E(),L);return!1});
_.m1(function(){z(E().value)});
var I={},B={},U={};return _.R("quantity-incrementer-shape",null,_.R("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.R("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return W()===(E().onRemoveCommand?0:1)||Z()},
"aria-label":function(){return W()!==1?E().minusLabel:E().minimumReachedLabel},
"on:click":M},_.R(_.rK,{model:{circular:!0}}),_.R("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.R("div",{class:_.CO("ytSpecQuantityIncrementerShapeIcon",(I.ytSpecQuantityIncrementerShapeIconDisabled=function(){return Z()||W()===(E().onRemoveCommand?0:1)},I))},g()))),_.R("div",{class:_.CO("ytSpecQuantityIncrementerShapeText",(B.ytSpecQuantityIncrementerShapeTextInvalid=function(){return W()>E().maxValue},B.ytSpecQuantityIncrementerShapeTextDisabled=Z,B))},W),_.R("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return W()>=E().maxValue||Z()},
"aria-label":function(){return W()!==E().maxValue?E().plusLabel:E().maximumReachedLabel},
"on:click":c},_.R(_.rK,{model:{circular:!0}}),_.R("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.R("div",{class:_.CO("ytSpecQuantityIncrementerShapeIcon",(U.ytSpecQuantityIncrementerShapeIconDisabled=function(){return W()>=E().maxValue||Z()},U))},h())))))},"ve");_.I9(_.O(function(h){function E(){g().onRemoveCommand&&_.Tl(g().onRemoveCommand)}
var g=h.data;var Z=_.qI(kaM,function(){return g().quantityIncrementerEntityKey});
return _.R("yt-quantity-incrementer-view-model",null,_.R(ajH,{data:function(){var M=g(),W;var z=Z()?!((W=Z())==null||!W.disabled):!1;var c;W=Z()?(c=Z())==null?void 0:c.quantity:g().quantity;return A4O(M,z,E,W)},
iconMinus:function(){return _.R(_.Ni,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.R(_.Ni,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"we"),"yt-quantity-incrementer-view-model",{props:{data:_.C6}});var EA=function(){var h=_.D.apply(this,arguments)||this;h.compact=!1;h.hasQuantityIncrementer=!1;return h};
_.f(EA,_.D);EA.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"}}}};
EA.prototype.computeHasQuantityIncrementer=function(){var h;return!!_.e((h=this.data)==null?void 0:h.picker,rgF)};
EA.prototype.onLabelClick=function(){var h;(h=this.dropdownEl)==null||h.open()};
_.Y([_.Sg("ytd-dropdown-renderer"),_.V("design:type",Object)],EA.prototype,"dropdownEl",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EA.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],EA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],EA.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],EA.prototype,"quantityColor",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EA.prototype,"compact",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.V("design:type",Object)],EA.prototype,"hasQuantityIncrementer",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],EA);
_.X(EA,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(GJA!==void 0)return GJA;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GJA=h},{mode:1});var cwM;var i9l;var gY=function(){return _.D.apply(this,arguments)||this};
_.f(gY,_.D);gY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
gY.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
gY.prototype.updateTitle=function(){var h=this.disabledCartItemEntity;h.disableActionName&&this.set("data.title",mq(h.disableActionName))};
gY.prototype.updateButton=function(){var h,E=(h=this.disabledCartItemEntity.undoCommand)==null?void 0:h.innertubeCommand;E!==void 0&&(this.set("data.actionButton.buttonRenderer.command",E),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
gY.prototype.entityChanged=gY.prototype.entityChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],gY.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(h,E){return _.Jj(h.entities,"disabledCartItemEntity",E)}}),
_.V("design:type",Object)],gY.prototype,"disabledCartItemEntity",void 0);_.Y([_.x(),_.V("design:type",Object)],gY.prototype,"data",void 0);_.Y([_.Nm("disabledCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gY.prototype,"entityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],gY);
_.X(gY,"ytd-disabled-cart-item-renderer",function(){if(i9l!==void 0)return i9l;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return i9l=h},{mode:1});_.$P("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Z8=function(){var h=_.D.apply(this,arguments)||this;h.compact=!1;h.hidden=!1;h.errorHidden=!1;h.noOnTap=!1;return h};
_.f(Z8,_.D);_.p=Z8.prototype;
_.p.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.p.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.p.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var h=this.firstButtonElement;h.alignByText=!0;h.iconAlignByText=!0}};
_.p.computeNoOnTap=function(h){return!h};
_.p.updateQuantityColor=function(){if(this.pickerElement){var h,E=(h=this.commerceCartItemEntity)==null?void 0:h.quantityColor;this.pickerElement.quantityColor=E}};
_.p.updateTotalPriceColor=function(){var h,E=(h=this.commerceCartItemEntity)==null?void 0:h.totalPriceColor;if(E){var g;h=_.e((g=this.data)==null?void 0:g.quantityPicker,Dyn);if(g=_.e(h==null?void 0:h.price,wBl))g.textColor=E}};
_.p.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var h,E=(h=this.commerceCartItemEntity)==null?void 0:h.isHidden;E!==void 0&&(this.hidden=E)}};
_.p.updateHideErrorMessage=function(){var h,E=(h=this.commerceCartItemEntity)==null?void 0:h.hideErrorMessage;E!==void 0&&(this.errorHidden=E)};
_.p.updateQuantity=function(){var h=this,E,g=(E=this.commerceCartItemEntity)==null?void 0:E.quantity,Z;E=(Z=this.commerceCartItemEntity)==null?void 0:Z.totalPrice;if(g){this.updateTotalPriceColor();this.updateQuantityColor();var M;Z=_.e((M=this.data)==null?void 0:M.quantityPicker,Dyn);if(M=_.e(Z==null?void 0:Z.price,wBl))M.text=E?{simpleText:E.content}:void 0;if(E=_.e(Z==null?void 0:Z.picker,rgF))E.quantity=g;var W;if(M=(W=_.e(Z==null?void 0:Z.picker,D8M))==null?void 0:W.entries){W=!1;E=void 0;M=
_.G(M);for(Z=M.next();!Z.done;Z=M.next())Z=Z.value,Z.dropdownItemRenderer&&(E||(E=Z.dropdownItemRenderer),Z.dropdownItemRenderer.isSelected=!1,g===Z.dropdownItemRenderer.int32Value&&(W=!0,Z.dropdownItemRenderer.isSelected=!0));!W&&E&&(E.isSelected=!0)}_.pQ(this,function(){var z;h.set("data.quantityPicker",_.Kt.unsafeClone((z=h.data)==null?void 0:z.quantityPicker))})}};
Z8.prototype.onYtRendererstamperFinished=Z8.prototype.onYtRendererstamperFinished;Z8.prototype.entityChanged=Z8.prototype.entityChanged;_.Y([_.x(),_.V("design:type",Object)],Z8.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Z8.prototype,"compact",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Z8.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Z8.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Z8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(h,E){return _.Jj(h.entities,"commerceCartItemEntity",E)}}),
_.V("design:type",Object)],Z8.prototype,"commerceCartItemEntity",void 0);_.Y([_.x(),_.V("design:type",Object)],Z8.prototype,"quantityPicker",void 0);_.Y([_.x(),_.V("design:type",Object)],Z8.prototype,"compactQuantityPicker",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Z8.prototype,"hidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Z8.prototype,"errorHidden",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.V("design:type",Object)],Z8.prototype,"noOnTap",void 0);_.Y([_.Sg("ytd-commerce-cart-item-quantity-picker-renderer"),_.V("design:type",Object)],Z8.prototype,"pickerElement",void 0);_.Y([_.Sg("yt-button-renderer"),_.V("design:type",Element)],Z8.prototype,"firstButtonElement",void 0);
_.Y([_.Nm("commerceCartItemEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"entityChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z8.prototype,"onYtRendererstamperFinished",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],Z8);
_.X(Z8,"ytd-commerce-cart-item-renderer",function(){if(cwM!==void 0)return cwM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return cwM=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var obl;var Ijn;var MY=function(){return _.D.apply(this,arguments)||this};
_.f(MY,_.D);MY.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}}}}}};
MY.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
MY.prototype.updateCheckoutLineItems=function(){var h,E=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.checkoutLineItems;E&&(h=E.map(function(g){a:{var Z=g.price,M=g.description;switch(g.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":g={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:mq(M),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:mq(Z),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:g={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:mq(M),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:mq(Z),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 g}),this.set("data.summaryLineItems",h))};
MY.prototype.updateIsHidden=function(){var h,E=(h=this.commerceCartCheckoutButtonEntity)==null?void 0:h.isHidden;E!==void 0&&(this.hostElement.hidden=E)};
MY.prototype.entityChanged=MY.prototype.entityChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],MY.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],MY.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],MY.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:ciq}),_.V("design:type",Object)],MY.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Y([_.Nm("commerceCartCheckoutButtonEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MY.prototype,"entityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],MY);
_.X(MY,"ytd-commerce-cart-summary-renderer",function(){if(Ijn!==void 0)return Ijn;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Ijn=h},{mode:1});var R5k={};R5k.InjectBehavior=[xxx.InjectBehavior];var PTl;var B3l;var Wj=function(){return _.D.apply(this,arguments)||this};
_.f(Wj,_.D);
Wj.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:_.KO("menuRenderer")}}};
Wj.prototype.onMenuTap=function(h){h.stopPropagation()};
_.ze.Object.defineProperties(Wj.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 h,E;return!(((h=this.data)==null||!h.sectionHeading)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var h,E;return!(((h=this.data)==null||!h.image)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var h,E;return!(((h=this.data)==null||!h.menu)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.TJf.YtTappableItemBehavior),_.V("design:type",Object)],Wj.prototype,"ytTappableItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Wj.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.accessibilityData"),_.V("design:type",String),_.V("design:paramtypes",[])],Wj.prototype,"ariaLabel",null);_.Y([_.S("data.sectionHeading","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wj.prototype,"sectionHeadingVisible",null);_.Y([_.S("data.image","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wj.prototype,"imageVisible",null);
_.Y([_.S("data.menu","data.layout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Wj.prototype,"menuVisible",null);_.Y([_.yc({is:"yt-activity-item-renderer",disableElementRegistration:!0})],Wj);
_.X(Wj,"yt-activity-item-renderer",function(){if(B3l===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;PTl===void 0&&(PTl=document.createElement("template"));var Z=PTl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);B3l=h}h=B3l;return h},{mode:2});var UFC;var LBF;var jLk;var dFk;var pv=function(){return _.D.apply(this,arguments)||this};
_.f(pv,_.D);
pv.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"}}}}};
pv.prototype.backgroundColorChanged_=function(){var h,E=(h=this.data)==null?void 0:h.backgroundColor;this.hostElement.style.backgroundColor=Xv[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
pv.prototype.backgroundColorChanged_=pv.prototype.backgroundColorChanged_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pv.prototype,"data",void 0);
_.Y([_.Nm("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pv.prototype,"backgroundColorChanged_",null);_.Y([_.yc({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],pv);
_.X(pv,"yt-offer-item-upsell-renderer",function(){if(dFk===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;jLk===void 0&&(jLk=document.createElement("template"));var Z=jLk;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);dFk=h}h=dFk;return h},{mode:2});_.$P("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var GB=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};h.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return h};
_.f(GB,_.D);_.p=GB.prototype;
_.p.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.KO("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.p.computeContainerStyle_=function(h){return h};
_.p.computeContainerIsHidden_=function(h){return h&&!!h.isHidden};
_.p.computeShowSpinner_=function(h,E){return h&&E==="in-progress"};
_.p.computeShowMoreContentsButton_=function(h,E,g,Z,M){return!(!(Z&&Z.length||M&&M.length&&g)||!h||E)};
_.p.onToggleButton_=function(h){var E=this;h.stopPropagation();this.isExpanded_=h.detail&&h.detail.toggled;var g,Z;this.isExpanded_&&!this.data.continuationSection.length&&((g=this.data)==null?0:(Z=g.continuation)==null?0:Z.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Ra(this.hostElement,"yt-load-next-continuation",function(M){return E.getContinuationUrl_(E.data.continuation.onClickContinuationData,M)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.LZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.p.onShowMoreContentsButtonClicked_=function(h){var E=this;h.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Ra(this.hostElement,"yt-load-next-continuation",function(g){return E.getContinuationUrl_(E.data.continuations[0].nextContinuationData,g)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.LZ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.p.getContinuationUrl_=function(h,E){var g=h.continuation;h=h.clickTrackingParams;var Z=_.sH();h&&Z&&_.Z$(Z,_.rp(h));return _.hl(E,{continuation:g})};
_.p.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var h=_.UB(this.hostElement).querySelector("#continuation-section");h&&(h=h.querySelectorAll("ytmusic-item-section-renderer"))&&h.forEach(function(E){return E.classList.add("memberships-and-purchases")})};
_.p.dataChanged_=function(){var h;this.isExpanded_=!((h=this.data)==null||!h.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.p.updateCardOnClickCommand_=function(h){h=_.e(h,CeF);var E,g;this.data&&((E=this.data)==null?0:E.targetId)&&h&&h.targetId===((g=this.data)==null?void 0:g.targetId)&&h.onClickCommand&&(this.data.onClickCommand=h.onClickCommand,this.isOnClickCommand_=!0)};
_.p.backgroundColorChanged_=function(){var h,E=(h=this.data)==null?void 0:h.backgroundColor;this.hostElement.style.backgroundColor=Xv[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
GB.prototype.backgroundColorChanged_=GB.prototype.backgroundColorChanged_;GB.prototype.dataChanged_=GB.prototype.dataChanged_;GB.prototype.nextContinuationDataUpdated_=GB.prototype.nextContinuationDataUpdated_;GB.prototype.onToggleButton_=GB.prototype.onToggleButton_;_.Y([_.t(_.Bv),_.V("design:type",Object)],GB.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],GB.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],GB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],GB.prototype,"ytNextContinuationBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(R5k.InjectBehavior),_.V("design:type",Object)],GB.prototype,"injectBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GB.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GB.prototype,"compact",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],GB.prototype,"isExpanded_",void 0);_.Y([_.x({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.V("design:type",String)],GB.prototype,"containerStyle_",void 0);_.Y([_.x({value:"not-started"}),_.V("design:type",String)],GB.prototype,"continuationStatus_",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.V("design:type",Boolean)],GB.prototype,"showSpinner_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],GB.prototype,"isOnClickCommand_",void 0);_.Y([_.x({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.V("design:type",Boolean)],GB.prototype,"showMoreContentsButton_",void 0);
_.Y([_.x({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(h,E){return!E||h.entities?null:_.Jj(h.entities,"cardItemContainerEntity",E)}}),
_.V("design:type",Object)],GB.prototype,"cardItemContainerEntity_",void 0);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],GB.prototype,"onToggleButton_",null);_.Y([_.f3("yt-next-continuation-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GB.prototype,"nextContinuationDataUpdated_",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GB.prototype,"dataChanged_",null);_.Y([_.Nm("data.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GB.prototype,"backgroundColorChanged_",null);_.Y([_.yc({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],GB);
_.X(GB,"yt-card-item-container-renderer",function(){if(LBF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;UFC===void 0&&(UFC=document.createElement("template"));var Z=UFC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);LBF=h}h=LBF;return h},{mode:2});var zB=function(){return _.D.apply(this,arguments)||this};
_.f(zB,_.D);zB.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"}}}};
zB.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
zB.prototype.computeLoadingHidden=function(){var h;return!((h=this.commerceCartPageStateEntity)==null?0:h.cartActionInProgress)};
zB.prototype.updateNotification=function(){var h,E=(h=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:h.summaryText;E&&this.set("data.cartNotification",mq(E))};
zB.prototype.notificationEntityChanged=zB.prototype.notificationEntityChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],zB.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],zB.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zB.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],zB.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(h,E){return _.Jj(h.entities,"commerceCartExpandableNotificationEntity",E)}}),
_.V("design:type",Object)],zB.prototype,"commerceCartExpandableNotificationEntity",void 0);_.Y([_.x({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(h,E){return _.Jj(h.entities,"commerceCartPageStateEntity",E)}}),
_.V("design:type",Object)],zB.prototype,"commerceCartPageStateEntity",void 0);_.Y([_.Sg("#spinner"),_.V("design:type",HTMLElement)],zB.prototype,"spinner",void 0);_.Y([_.Nm("commerceCartExpandableNotificationEntity","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zB.prototype,"notificationEntityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],zB);
_.X(zB,"ytd-commerce-cart-renderer",function(){if(obl!==void 0)return obl;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return obl=h},{mode:1});var CTD;var ak=function(){var h=_.D.apply(this,arguments)||this;h.bigImage=!1;return h};
_.f(ak,_.D);_.ze.Object.defineProperties(ak.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.placeholderImageUrl}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ak.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ak.prototype,"bigImage",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ak.prototype,"placeholderImageUrl",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],ak);
_.X(ak,"ytd-empty-product-shelf-renderer",function(){if(CTD!==void 0)return CTD;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return CTD=h},{mode:1});var JwA;var cj=function(){var h=_.D.apply(this,arguments)||this;h.itemStyle="link-item";h.watchMetadataRefresh=!1;h.skinnyMode=!1;h.metaPanel=!1;h.inStructuredDescription=!1;h.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};h.updateOnResizeDebouncer=null;return h};
_.f(cj,_.D);_.p=cj.prototype;_.p.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.p.attachVEs=function(h){h.trackingParams&&_.SQ().graftServerVe(h.trackingParams)};
_.p.handleUpdateMerchShelfAction=function(h){var E=this,g=_.e(h.updateMerchandiseShelfAction.merchandiseShelf,_.u3l);g&&(g.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){E.attachVEs(g);E.data=g},Number(g.renderDelayMs))):(this.attachVEs(g),this.data=g))};
_.p.updateOnResize=function(){if(this.JSC$16862_scrollContainer!==void 0&&this.JSC$16862_scrollContainer.clientWidth!==0&&this.items!==void 0){var h=this.JSC$16862_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-h));this.ytdHorizontalListBehavior.reposition_();var E;switch((E=this.data)==null?void 0:E.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var g,
Z;((g=this.data)==null?void 0:(Z=g.items)==null?void 0:Z.length)===1?this.itemStyle="cta-item":this.itemStyle=h>=740?"large-item":"small-item"}}};
_.p.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.qu(this.updateOnResizeDebouncer,_.o1.after(100),this.updateOnResize)};
cj.prototype.debouncedUpdateOnResize=cj.prototype.debouncedUpdateOnResize;cj.prototype.dataChanged=cj.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],cj.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],cj.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],cj.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cj.prototype,"itemStyle",void 0);_.Y([_.x({value:6}),_.V("design:type",Number)],cj.prototype,"initialCount",void 0);
_.Y([_.x({value:"data.items"}),_.V("design:type",String)],cj.prototype,"itemsPath",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cj.prototype,"watchMetadataRefresh",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cj.prototype,"skinnyMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cj.prototype,"metaPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cj.prototype,"inStructuredDescription",void 0);
_.Y([_.Sg("#items"),_.V("design:type",HTMLDivElement)],cj.prototype,"items",void 0);_.Y([_.Sg("#scroll-container"),_.V("design:type",HTMLDivElement)],cj.prototype,"JSC$16862_scrollContainer",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cj.prototype,"dataChanged",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cj.prototype,"debouncedUpdateOnResize",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],cj);
_.X(cj,"ytd-merch-shelf-renderer",function(){if(JwA!==void 0)return JwA;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JwA=h},{mode:2});var e5m;var ok=function(){var h=_.D.apply(this,arguments)||this;h.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 h};
_.f(ok,_.D);_.p=ok.prototype;
_.p.addBackstagePostAction=function(h){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(h=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",h))&&(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:h}):this.set("data.contents",[{backstagePostThreadRenderer:h}]))};
_.p.addBackstageCommentAction=function(h){var E=this.get("addBackstageCommentAction.parentId",h);h=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",h);if(E&&h){E=this.postIdToIndices(E);for(var g=0;g<E.length;g++){var Z=E[g];if(Z<0)break;Z="data.contents."+Z+".backstagePostThreadRenderer.comments";this.get(Z)&&(this.get(Z+".backstageCommentsRenderer.contents")&&this.push(Z+".backstageCommentsRenderer.contents",{commentThreadRenderer:h}),this.get(Z+".backstageCommentsRenderer.teaserContents")?
this.push(Z+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:h}):this.set(Z+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:h}]))}}};
_.p.addBackstageReplyAction=function(h){var E=this.get("addBackstageReplyAction.parentId",h);h=this.get("addBackstageReplyAction.renderer.commentRenderer",h);E&&h&&this.setCreatorReply(E,h)};
_.p.banAuthorAction=function(h){var E=this.get("banAuthorAction.commentId",h);E&&(h=this.get("banAuthorAction.parentCommentId",h)||this.getParentPostId(E),this.removeFromStream(E,h))};
_.p.hideReportedCommentAction=function(h){var E=this.get("hideReportedCommentAction.commentId",h);E&&((h=this.get("hideReportedCommentAction.parentCommentId",h))||(h=this.getParentPostId(E)),this.removeFromStream(E,h))};
_.p.replaceBackstageCommentAction=function(h){var E=this.get("replaceBackstageCommentAction.commentId",h),g=this.get("replaceBackstageCommentAction.parentId",h);h=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",h);if(E&&g&&h){g=this.postIdToIndices(g);for(var Z=0;Z<g.length;Z++){var M=g[Z];if(M<0)break;var W=this.commentIdToIndex(E,M,!1);if(W>=0){var z=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+W+".commentThreadRenderer.replies.commentRepliesRenderer");
z&&(h.replies={commentRepliesRenderer:z});this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",W,1,{commentThreadRenderer:h})}W=this.commentIdToIndex(E,M,!0);if(W>=0){if(z=this.get("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(W+".commentThreadRenderer.replies.commentRepliesRenderer")))h.replies={commentRepliesRenderer:z};this.splice("data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
W,1,{commentThreadRenderer:h})}}}};
_.p.replaceBackstagePostAction=function(h){var E=this.get("replaceBackstagePostAction.itemId",h);if(E){E=this.postIdToIndices(E);for(var g=0;g<E.length;g++){var Z=E[g];if(Z<0)break;var M=this.getPostRendererType(Z),W=this.get("replaceBackstagePostAction.renderer."+M,h);if(!W&&M!=="sharedPostRenderer")break;var z=!1;W||(z=!0,W=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",h));if(!W)break;var c={};z?(_.nL(c,jjl,W),this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
c)):(_.nL(c,new _.I2(M),W),this.set("data.contents."+Z+".backstagePostThreadRenderer.post",c))}}};
_.p.replaceBackstageReplyAction=function(h){var E=this.get("replaceBackstageReplyAction.replyId",h),g=this.get("replaceBackstageReplyAction.parentId",h);h=this.get("replaceBackstageReplyAction.renderer.commentRenderer",h);E&&h&&g&&this.setCreatorReply(g,h)};
_.p.removeCommentAction=function(h){var E=this.get("removeCommentAction.commentId",h);if(E){var g=this.get("removeCommentAction.parentCommentId",h);g&&this.get("removeCommentAction.isCreatorReply",h)?this.setCreatorReply(g,void 0):(g||(g=this.getParentPostId(E)),this.removeFromStream(E,g))}};
_.p.setCreatorReply=function(h,E){var g=this.getParentPostId(h);if(g){g=this.postIdToIndices(g);for(var Z=0;Z<g.length;Z++){var M=g[Z];if(M<0)break;var W=this.commentIdToIndex(h,M,!1);if(W>=0){var z="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+W;W=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";z+=".commentThreadRenderer.replies";E==void 0?(this.set(z,{}),this.set(W,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),
this.set(z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(W,!0))}W=this.commentIdToIndex(h,M,!0);W>=0&&(W="data.contents."+M+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+W,M=W+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",W+=".commentThreadRenderer.replies",E==void 0?(this.set(W,{}),this.set(M,!1)):(this.set(W,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),this.set(M,!0)))}}};
_.p.removeFromStream=function(h,E){if(E){E=this.postIdToIndices(E);for(var g=0;g<E.length;g++){var Z=E[g];if(Z<0)break;var M=this.commentIdToIndex(h,Z,!1);M>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",M,1);M=this.commentIdToIndex(h,Z,!0);M>=0&&this.splice("data.contents."+Z+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",M,1);Z="data.contents."+Z+".backstagePostThreadRenderer.post.backstagePostRenderer";
M=Z+".backstageAttachment.pollRenderer.votedCommentId";this.get(M)===h&&(this.set(M,null),this.set(Z+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(E=this.postIdToIndices(h).reverse(),g=0;g<E.length;g++){Z=E[g];if(Z<0)break;M=this.getPostRendererType(Z);var W=this.get("backstagePostThreadRenderer.post."+M,this.data.contents[Z]);W.postId===h?this.splice("data.contents",Z,1):M==="sharedPostRenderer"&&this.set("data.contents."+Z+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);W.scheduledPublishTimeSec&&_.BX(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.p.postIdToIndices=function(h){for(var E=[],g=0;g<this.data.contents.length;g++){var Z=this.getPostRendererType(g);this.get("backstagePostThreadRenderer.post."+Z+".postId",this.data.contents[g])===h&&E.push(g);if(Z==="sharedPostRenderer"){var M=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.backstagePostRenderer.postId",this.data.contents[g]);Z=this.get("backstagePostThreadRenderer.post."+Z+".originalPost.postRenderer.postId",this.data.contents[g]);M!==h&&Z!==h||E.push(g)}}return E};
_.p.commentIdToIndex=function(h,E,g){if(E<0)return-1;var Z,M,W,z,c=_.e((Z=this.data)==null?void 0:(M=Z.contents)==null?void 0:(W=M[E])==null?void 0:(z=W.backstagePostThreadRenderer)==null?void 0:z.comments,UgM);return(E=g?c==null?void 0:c.teaserContents:c==null?void 0:c.contents)&&E.length?E.findIndex(function(I){return _.e(I,QjM).comment.commentRenderer.commentId===h}):-1};
_.p.getParentPostId=function(h){h=h.split(".");if(h[1])return h[0]};
_.p.getPostRendererType=function(h){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[h])?"sharedPostRenderer":"backstagePostRenderer"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ok.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ok.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-backstage-items"})],ok);
_.X(ok,"ytd-backstage-items",function(){if(e5m!==void 0)return e5m;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return e5m=
h},{mode:1});var qMH;var fjC={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},Ik=function(){var h=_.D.apply(this,arguments)||this;h.disablePrescanVisibility=!0;h.canScheduleJobs=!0;h.engagementPanel=!1;h.hidePanelButton=!1;h.isWatchGrid=
!1;h.hasShownSubscribersOnlyDisclaimer=!1;h.scrollParent=null;h.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","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_"};h.TEST_ONLY=void 0;return h};
_.f(Ik,_.D);_.p=Ik.prototype;_.p.created=function(){this.initCommentsCsi_();_.J("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.J("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.p.contentsChanged_=function(){var h;(h=this.data)!=null&&h.contents&&this.tickForCommentsTimer_("cml")};
_.p.headerChanged_=function(){var h;(h=this.data)!=null&&h.header&&this.tickForCommentsTimer_("cmhl")};
_.p.initCommentsCsi_=function(){_.Ye("wn_comments");var h=_.sH();h&&_.nZ({clientScreenNonce:h},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.p.createCommentAction_=function(h){h=_.Kt.unsafeClone(h);var E,g;if(h=(E=_.e(h,sjf))==null?void 0:(g=E.contents)==null?void 0:g.commentThreadRenderer){var Z,M,W,z,c,I;!this.isBackstage&&((Z=this.data)==null?0:(M=Z.header)==null?0:(W=M.commentsHeaderRenderer)==null?0:(z=W.createRenderer)==null?0:(c=z.commentSimpleboxRenderer)==null?0:(I=c.zeroStep)==null?0:I.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var B,
U,L;this.isBackstage&&_.e((B=this.data)==null?void 0:(U=B.header)==null?void 0:(L=U.commentsHeaderRenderer)==null?void 0:L.zeroStateMessage,dgD)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(h)}};
_.p.doReplyInsert_=function(h,E,g,Z){Z?this.splice(h,Z,0,E):this.push(h,E)};
_.p.getRepliesPath_=function(h){return"data.contents."+h+".commentThreadRenderer.replies"};
_.p.getRepliesContentsPath_=function(h,E){h=this.getRepliesPath_(h);return E?h+".commentRepliesRenderer.teaserContents":h+".commentRepliesRenderer.contents"};
_.p.showSubscribersOnlyDisclaimer_=function(h){(h=h.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(h=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(h))&&(_.BX(this.hostElement,"yt-open-popup-action",[h,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.p.createCommentReplyAction_=function(h){h=_.Kt.unsafeClone(h);var E=_.e(h,VJA);if(h=E==null?void 0:E.contents){var g=this.commentIdToIndex_(E==null?void 0:E.parentCommentId);if(!(g<0)){var Z=this.getRepliesPath_(g);if(this.get(Z)){E=E.replyToCommentId;Z=this.getRepliesContentsPath_(g,!1);if(this.get(Z)){var M=this.get(Z).length,W=Z+"."+(M-1)+".continuationItemRenderer";this.get(W+".button")?(W=this.replyIdToIndex_(E,g,!1),this.doReplyInsert_(Z,h,W,M-1)):this.get(W)||(M=this.replyIdToIndex_(E,g,
!1),this.doReplyInsert_(Z,h,M,null))}Z=this.getRepliesContentsPath_(g,!0);this.get(Z)?(g=this.replyIdToIndex_(E,g,!0),(!E||g>=0)&&this.doReplyInsert_(Z,h,g,null)):this.set(Z,[h])}else this.set(Z,{commentRepliesRenderer:{teaserContents:[h]}})}}};
_.p.hideReportedCommentAction_=function(h){var E=_.e(h,irF);if(h=E==null?void 0:E.commentId)(E=this.get("parentCommentId",E))||(E=this.getParentCommentId_(h)),this.remove_(h,E)};
_.p.getParentCommentId_=function(h){h=h.split(".");if(h[1])return h[0]};
_.p.removeCommentAction_=function(h){var E=_.e(h,T6l);if(h=E==null?void 0:E.commentId)E=(E==null?void 0:E.parentCommentId)||this.getParentCommentId_(h),this.remove_(h,E)};
_.p.pinCommentAction_=function(h){h=_.Kt.unsafeClone(h);var E=_.e(h,AOH);E!=null&&E.commentId&&(h=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",h))&&(this.remove_(E.commentId),this.insert_(h,!0))};
_.p.unpinCommentAction_=function(h){h=_.Kt.unsafeClone(h);h=_.e(h,bAm);if(h!=null&&h.commentId){var E,g,Z=(E=h.actionResult)==null?void 0:(g=E.update)==null?void 0:g.commentThreadRenderer;Z&&(this.remove_(h.commentId),this.insert_(Z))}};
_.p.banAuthorAction_=function(h){var E=_.e(h,YjM);E!=null&&E.commentId&&(h=E.commentId,E=E.parentCommentId||this.getParentCommentId_(h),this.remove_(h,E))};
_.p.handleScrollToCommentElement_=function(h){this.scrollParent||(this.scrollParent=Tz$(h));this.isCommentVisibleInScrollParent(h)||h.scrollIntoView({behavior:"smooth",block:"start"})};
_.p.isCommentVisibleInScrollParent=function(h){if(!this.scrollParent)return!1;h=h.getBoundingClientRect();var E=this.scrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.scrollParent.getBoundingClientRect();return h.top>=E.top&&h.bottom<=E.bottom};
_.p.commentIdToIndex_=function(h){var E;return h&&(E=this.data)!=null&&E.contents?this.data.contents.findIndex(function(g){g=g.commentThreadRenderer;var Z;return h===((g==null?void 0:g.commentViewModel)&&((Z=_.e(g.commentViewModel,W9M))==null?void 0:Z.commentId))}):-1};
_.p.insert_=function(h,E){E=E===void 0?!1:E;var g,Z;if((g=this.data)==null?0:(Z=g.contents)==null?0:Z.some(function(W){return!!W.commentThreadRenderer}))for(g=0,Z=this.data.contents.length;g<Z;g++){var M=this.data.contents[g].commentThreadRenderer;
if(fjC[h.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=fjC[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){E&&fjC[h.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===fjC[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",g,1,{commentThreadRenderer:h}):this.splice("data.contents",g,0,{commentThreadRenderer:h});break}}else this.set("data.contents",[{commentThreadRenderer:h}])};
_.p.doReplyRemove_=function(h,E,g){h=this.replyIdToIndex_(h,E,g);h<0||(E=this.getRepliesContentsPath_(E,g),this.splice(E,h,1))};
_.p.remove_=function(h,E){E=this.commentIdToIndex_(E);E<0?(E=this.commentIdToIndex_(h),E<0||this.splice("data.contents",E,1)):_.J("web_delhi_comment_threads")||(this.doReplyRemove_(h,E,!1),this.doReplyRemove_(h,E,!0))};
_.p.replyIdToIndex_=function(h,E,g){if(E<0)return-1;E=this.getRepliesContentsPath_(E,g);E=this.get(E);if(!E||!E.length)return-1;g=0;for(var Z=E.length;g<Z;g++){var M=void 0,W=void 0;if(((M=E[g])==null?void 0:(W=M.commentViewModel)==null?void 0:W.commentId)===h)return g}return-1};
_.p.tickForCommentsTimer_=function(h){_.Vp(h,void 0,"wn_comments")};
_.p.reloadComments_=function(h){h=_.e(h,Zrf);_.e(h==null?void 0:h.command,_.yQ)&&_.LZ(this.hostElement,[h==null?void 0:h.command])};
_.ze.Object.defineProperties(Ik.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.data)==null?0:(E=h.header)==null?0:(g=E.commentsHeaderRenderer)==null?0:g.isBackstageContent)}}});
_.ze.Object.defineProperties(Ik,{template:{configurable:!0,enumerable:!0,get:function(){if(qMH===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);qMH=h}h=qMH;return h}}});
Ik.prototype.showSubscribersOnlyDisclaimer_=Ik.prototype.showSubscribersOnlyDisclaimer_;Ik.prototype.headerChanged_=Ik.prototype.headerChanged_;Ik.prototype.contentsChanged_=Ik.prototype.contentsChanged_;_.Y([_.t(_.fJ),_.V("design:type",Object)],Ik.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.lk$.YtHostElementBehavior),_.V("design:type",Object)],Ik.prototype,"ytHostElementBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",Function)],Ik.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ik.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.header.commentsHeaderRenderer.isBackstageContent"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ik.prototype,"isBackstage",null);_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"disablePrescanVisibility",void 0);_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"canScheduleJobs",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ik.prototype,"engagementPanel",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"hidePanelButton",void 0);_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"isWatchGrid",void 0);_.Y([_.x(),_.V("design:type",Object)],Ik.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.Y([_.Nm("data.contents"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ik.prototype,"contentsChanged_",null);
_.Y([_.Nm("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ik.prototype,"headerChanged_",null);_.Y([_.f3("yt-show-subscribers-only-disclaimer"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ik.prototype,"showSubscribersOnlyDisclaimer_",null);_.Y([_.K({is:"ytd-comments"})],Ik);var Rk=function(){return _.wD.apply(this,arguments)||this};
_.f(Rk,_.wD);_.p=Rk.prototype;_.p.bindIf=function(h,E,g){return h?E:g};
_.p.bindIfDefined=function(h,E){return h!==void 0?h:E};
_.p.booleanString=function(h){return(!!h).toString()};
_.p.equals=function(){for(var h=_.VF.apply(0,arguments),E=h[0],g=1;g<h.length;g++)if(E!=h[g])return!1;return!0};
_.p.isGreaterThan=function(h,E){return h>E};
_.p.isLessThan=function(h,E){return h<E};
_.p.logicalAND=function(){for(var h=_.VF.apply(0,arguments),E=!!h[0],g=1;g<h.length;g++)E=E&&!!h[g];return E};
_.p.logicalOR=function(){for(var h=_.VF.apply(0,arguments),E=!!h[0],g=1;g<h.length;g++)E=E||!!h[g];return E};
_.p.toBool=function(h){return!!h};
Rk.prototype.toBool=Rk.prototype.toBool;Rk.prototype.logicalOR=Rk.prototype.logicalOR;Rk.prototype.logicalAND=Rk.prototype.logicalAND;Rk.prototype.isLessThan=Rk.prototype.isLessThan;Rk.prototype.isGreaterThan=Rk.prototype.isGreaterThan;Rk.prototype.equals=Rk.prototype.equals;Rk.prototype.booleanString=Rk.prototype.booleanString;Rk.prototype.bindIfDefined=Rk.prototype.bindIfDefined;Rk.prototype.bindIf=Rk.prototype.bindIf;_.Y([_.DM()],Rk);_.N3m=[Rk.prototype];var tUC;var SMf;var Pj=function(){return _.D.apply(this,arguments)||this};
_.f(Pj,_.D);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()};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Pj.prototype,"data",void 0);_.Y([_.yc({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Pj);
_.X(Pj,"yt-header-with-back-renderer",function(){if(SMf===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;tUC===void 0&&(tUC=document.createElement("template"));var Z=tUC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);SMf=h}h=SMf;return h},{mode:2});var xFl;var wYM;var Bj=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(Bj,_.D);_.p=Bj.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&(this.isDarkTheme=h,this.setUrl())};
_.p.dataChanged=function(){var h=this;if(this.data){var E=this.setUrl();E&&_.iY({destination:window,iframe:this.iframe,origin:_.grm(E.toString()),channelName:"yt-iframe",onMessage:function(g){(g=h.getCommunicationCommand(g.data))&&h.ytComponentBehavior.resolveCommand(g)},
onEstablished:function(){}})}};
_.p.setUrl=function(){if(this.data&&this.data.iframeUrl){var h=_.OY(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(h)return _.hh(this.iframe,h),h}};
_.p.getCommunicationCommand=function(h){var E;if((E=this.data)!=null&&E.onCommunicationCommandsMap){E=this.data.onCommunicationCommandsMap.find(function(M){return M.key===h});
if(E==null?0:E.value)return E==null?void 0:E.value;try{var g=oKA(_.Qx(h)),Z=this.data.onCommunicationCommandsMap.find(function(M){return M.key===(g==null?void 0:g.getMethodName())});
if(Z==null?0:Z.value)return Z==null?void 0:Z.value}catch(M){}}};
Bj.prototype.dataChanged=Bj.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Bj.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Bj.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Bj.prototype,"data",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Bj.prototype,"isDarkTheme",void 0);_.Y([_.Sg("#iframe"),_.V("design:type",HTMLIFrameElement)],Bj.prototype,"iframe",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bj.prototype,"dataChanged",null);_.Y([_.yc({is:"yt-iframe-renderer",disableElementRegistration:!0})],Bj);
_.X(Bj,"yt-iframe-renderer",function(){if(wYM===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;xFl===void 0&&(xFl=document.createElement("template"));var Z=xFl;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);wYM=h}h=wYM;return h},{mode:2});_.UA=function(h){_.wO.call(this);this.callback=h;this.bezier=new u8f(0,0,.4,0,.2,1,1,1);this.delay=new _.iC(this.next,window,this);this.JSC$16903_animating=!1;_.jf(this,this.delay)};
_.f(_.UA,_.wO);_.UA.prototype.isAnimating=function(){return this.JSC$16903_animating};
_.UA.prototype.start=function(h,E,g){this.config={from:h,to:E,duration:g,startTime:(0,_.zn)()};this.JSC$16903_animating=!0;this.next()};
_.UA.prototype.stop=function(){this.delay.stop();this.JSC$16903_animating=!1;this.config=void 0};
_.UA.prototype.next=function(){if(this.config){var h=this.config,E=h.from,g=h.to,Z=h.duration;h=h.startTime;var M=(0,_.zn)()-h;h=this.bezier;Z=hzk(h,M/Z);if(Z==0)h=h.y0;else if(Z==1)h=h.y3;else{M=mI(h.y0,h.y1,Z);var W=mI(h.y1,h.y2,Z);h=mI(h.y2,h.y3,Z);M=mI(M,W,Z);W=mI(W,h,Z);h=mI(M,W,Z)}h=_.vw(h,0,1);this.callback(E+(g-E)*h);h<1?this.delay.start():this.JSC$16903_animating=!1}};_.Lv=new _.Ps("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var DFl={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},rwm=function(h,E,g,Z){_.wO.call(this);this.JSC$16914_miniAppId=h;this.localReleaseId=E;this.derivedDeviceInterface=g;this.isForeground=Z;this.JSC$16914_playNonceResolver=new _.dN;this.playPingTimerId=NaN;this.playPingIntervalMs=_.cx("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.cx("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.J("enable_displaying_ppn");this.JSC$16914_miniAppClientDataProvider=_.GF().resolve(_.Lv);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ljC(this);var M=setTimeout(function(){_.O$(new _.xX("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16914_playNonceResolver.promise.then(function(){clearTimeout(M)})};
_.f(rwm,_.wO);var vbn=function(h,E){h.JSC$16914_playNonceResolver.resolve(E!=null?E:nQ(8));h.enableDisplayingPpn&&mFB(h).then(function(g){h.JSC$16914_miniAppClientDataProvider.clientData.set("post_play_nonce",g)})},mFB=function(h){return _.a(function(E){return E.nextAddress==1?E.yield(h.JSC$16914_playNonceResolver.promise,2):E.return(E.yieldResult)})},ljC=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$16914_playNonceResolver.promise,2);E=Z.yieldResult;g={miniAppInfo:{externalPostId:h.JSC$16914_miniAppId,localReleaseId:h.localReleaseId,postPlayNonce:E,derivedDeviceInterface:h.derivedDeviceInterface}};_.nZ(g);_.SK(Z)})},$FM=function(h){h.state!==0?_.O$(new _.xX("[MiniAppPlayLogger] recordPlayStart failed with state "+DFl[h.state])):(h.state=1,jT(h,"ma_cl"),dY(h,"PLAY_EVENT_TYPE_PLAY_START"),H9m(h))},KBH=function(h){h.isForeground=!1;
dY(h,"PLAY_EVENT_TYPE_PLAY_PAUSE")},O9k=function(h){h.state!==1&&h.state!==2?_.O$(new _.xX("[MiniAppPlayLogger] recordPlayEnd failed with state "+DFl[h.state])):(h.state=3,window.clearInterval(h.playPingTimerId),h.playPingTimerId=NaN,qJ$(),dY(h,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},nbl=function(h,E){h.state===2&&h.gameReady&&(h.firstClickRecorded?Date.now()-h.clickRecordedMs<h.playClickIntervalMs||(h.clickRecordedMs=Date.now(),dY(h,"PLAY_EVENT_TYPE_PLAY_CLICK")):E&&(jT(h,"ma_fua"),dY(h,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),h.firstClickRecorded=!0,h.clickRecordedMs=Date.now()))};
rwm.prototype.logError=function(h){var E=this,g;_.a(function(Z){if(Z.nextAddress==1)return h.metadata.externalPostId=E.JSC$16914_miniAppId,g=h.metadata,Z.yield(Promise.race([E.JSC$16914_playNonceResolver.promise,new Promise(function(M){setTimeout(function(){M("")},3E4)})]),2);
g.postPlayNonce=Z.yieldResult;h.metadata.localReleaseId=E.localReleaseId;h.loggingError.level="WARNING";_.$W(h.loggingError,h.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:h.metadata});_.SK(Z)})};
var XYC=function(h,E,g,Z){var M,W,z,c,I,B;_.a(function(U){if(U.nextAddress==1)return U.yield(h.JSC$16914_playNonceResolver.promise,2);M=U.yieldResult;W={externalPostId:h.JSC$16914_miniAppId,localReleaseId:h.localReleaseId,postPlayNonce:M,sdkVersion:g,api:E};Z!==void 0&&(W.networkRequestsMeasurement={networkRequests:_.i4(Z,1),cachedRequests:_.i4(Z,2),transferredBytes:_.i4(Z,3)},(z=Z)==null?0:_.eP(z,Pk,6))&&(W.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((c=_.iK(Z,
Pk,6))==null?void 0:HW(c,1))||"0",cacheHits:((I=_.iK(Z,Pk,6))==null?void 0:HW(I,2))||"0",cachedBytes:((B=_.iK(Z,Pk,6))==null?void 0:HW(B,3))||"0"});_.vT("miniAppSdkUsage",W);_.SK(U)})},sLf=function(h,E,g){var Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H;
_.a(function(u){if(u.nextAddress==1)return u.yield(h.JSC$16914_playNonceResolver.promise,2);Z=u.yieldResult;M={externalPostId:h.JSC$16914_miniAppId,localReleaseId:h.localReleaseId,postPlayNonce:Z,sdkVersion:g,measurementWindow:{startTimestampMs:String(l3(E,1)),endTimestampMs:String(l3(E,2))},frameRate:{averageFrameTimeDeltaMs:rr(E,3),averageFrameIdleTimeMs:rr(E,4)}};_.eP(E,Bk,5)&&(M.networkRequests={networkRequests:(W=ec(E))==null?void 0:_.i4(W,1),cachedRequests:(z=ec(E))==null?void 0:_.i4(z,2),transferredBytes:(c=
ec(E))==null?void 0:_.i4(c,3),sameOriginStatusCodeToCounts:YMl((I=ec(E))==null?void 0:NIx(I,4)),crossOriginStatusCodeToCounts:YMl((B=ec(E))==null?void 0:NIx(B,5))},(U=ec(E))==null?0:_.eP(U,Pk,6))&&(M.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((L=ec(E))==null?void 0:(d=_.iK(L,Pk,6))==null?void 0:HW(d,1))||"0",cacheHits:((C=ec(E))==null?void 0:(q=_.iK(C,Pk,6))==null?void 0:HW(q,2))||"0",cachedBytes:((w=ec(E))==null?void 0:(r=_.iK(w,Pk,6))==null?void 0:HW(r,3))||"0"});_.eP(E,
IEH,7)&&(M.gameCapture={averageFrameTimeDeltaMs:(v=_.iK(E,IEH,7))==null?void 0:rr(v,1),averageFrameIdleTimeMs:(H=_.iK(E,IEH,7))==null?void 0:rr(H,2)});_.vT("miniAppPerformanceMetrics",M);_.SK(u)})},VUf=function(h,E){var g,Z;
return _.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$16914_playNonceResolver.promise,2);g=M.yieldResult;Z={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:h.JSC$16914_miniAppId,postPlayNonce:g,miniAppReleaseId:h.localReleaseId},derivedDeviceInterface:h.derivedDeviceInterface,adTriggerType:E,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.vT("miniAppAdEvent",Z);_.SK(M)})};
rwm.prototype.disposeInternal=function(){_.wO.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var dY=function(h,E,g,Z){g=g===void 0?{}:g;Z=Z===void 0?!1:Z;var M,W,z,c;_.a(function(I){if(I.nextAddress==1)return M=h.isForeground,W=h.beforeReady,I.yield(h.JSC$16914_playNonceResolver.promise,2);z=I.yieldResult;c={externalPostId:h.JSC$16914_miniAppId,localReleaseId:h.localReleaseId,derivedDeviceInterface:h.derivedDeviceInterface,postPlayNonce:z,type:E};g.sequenceGroup=z;c.playState=W?"PLAY_STATE_NOT_READY":M?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.vT("miniAppPlayEvent",c,
g);Z&&_.HT();_.SK(I)})},jT=function(h,E){var g;
_.a(function(Z){if(Z.nextAddress==1)return g=(0,_.zn)(),Z.yield(h.JSC$16914_playNonceResolver.promise,2);_.s7(E,g);_.SK(Z)})},H9m=function(h){isNaN(h.playPingTimerId)&&(h.playPingTimerId=_.Uq(function(){h.state!==1&&h.state!==2?_.O$(new _.xX("[MiniAppPlayLogger] reportPlayPing failed with state "+DFl[h.state])):dY(h,"PLAY_EVENT_TYPE_PLAY_PING")},h.playPingIntervalMs))},YMl=function(h){return Array.from(h.entries()).map(function(E){var g=_.G(E);
E=g.next().value;g=g.next().value;return{key:E,value:g}})};var kJA=function(){},ywf=function(h,E){h.showMiniAppAdCommand=E.showMiniAppAdCommand;
h.isEmbeddedInWebview=E.isEmbeddedInWebview;h.playLogger=E.playLogger},AwF=function(h,E){var g;
return _.a(function(Z){if(Z.nextAddress==1){if(!h.showMiniAppAdCommand||!h.isEmbeddedInWebview)return Z.return(FBF(h,E));h.adResolver=new _.dN;var M=new FA;g=_.oI(M,3,E);Ku(h.showMiniAppAdCommand,k1n(g));return Z.yield(h.adResolver.promise,2)}return Z.return(Z.yieldResult)})};
kJA.prototype.onAdFinished=function(h){h=VPF(h);var E;(E=this.adResolver)==null||E.resolve(h)};
var FBF=function(h,E){var g;return _.a(function(Z){if(Z.nextAddress==1)Z=Z.yield((g=h.playLogger)==null?void 0:VUf(g,ZyZ(E)),2);else{var M=Z.return;var W=new sVM;W=_.oI(W,1,2);Z=M.call(Z,W)}return Z})};var T3C=new _.Ps("INNERTUBE_MANAGER_TOKEN");var b9M=function(){this.callbacks={}};
b9M.prototype.initialize=function(h){var E=this;this.callbacks=h;window.youtubewebview?window.youtubewebview.onmessage=function(g){u6f(E,g)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(g){u6f(E,g)})};
var u6f=function(h,E){if(E.data)try{var g=oKA(E.data);if(_.JC(_.Js(g,1))!=null){var Z=Obl(_.mj(g,2));switch(g.getMethodName()){case "yt-mini-app-load-audio-state":var M,W;(W=(M=h.callbacks).onAudioStateLoaded)==null||W.call(M,_.DW(Z,fI(Z,yi,1)));break;case "yt-mute-mini-app":var z,c;(c=(z=h.callbacks).onMuteMiniApp)==null||c.call(z);break;case "yt-unmute-mini-app":var I,B;(B=(I=h.callbacks).onUnmuteMiniApp)==null||B.call(I);break;case "yt-playable-exit":var U,L;(L=(U=h.callbacks).onExit)==null||L.call(U);
break;case "yt-post-play-nonce":var d,C;(C=(d=h.callbacks).onPostPlayNonceReceived)==null||C.call(d,$g(Z,2,yi));break;case "yt-confirm-exit-mini-app":var q,w;(w=(q=h.callbacks).confirmExitMiniApp)==null||w.call(q);break;case "yt-confirm-exit-mini-app-edu":var r,v;(v=(r=h.callbacks).confirmExitMiniAppEdu)==null||v.call(r);break;case "yt-benchmarking-response":var H,u;(u=(H=h.callbacks).onNativeBenchmarkingMessageReceived)==null||u.call(H,$g(Z,2,yi));break;case "yt-mini-app-load-3p-consent-state":var k,
y;(y=(k=h.callbacks).multiplayer3pAckStateLoaded)==null||y.call(k,_.DW(Z,fI(Z,yi,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var A,E4;(E4=(A=h.callbacks).exitMiniAppSeenStateLoaded)==null||E4.call(A,_.DW(Z,fI(Z,yi,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var iO,RW;(RW=(iO=h.callbacks).onNavigateToNewMiniApp)==null||RW.call(iO);break;case "yt-game-data-available":var NN,Cd;(Cd=(NN=h.callbacks).onGameDataAvailable)==null||Cd.call(NN,$g(Z,2,yi));break;case "yt-pause-mini-app":var Ba,
$$;($$=(Ba=h.callbacks).onPauseMiniApp)==null||$$.call(Ba);break;case "yt-resume-mini-app":var Ha,zf;(zf=(Ha=h.callbacks).onResumeMiniApp)==null||zf.call(Ha);break;case "yt-playable-ad-finished":var eF,Rm;(Rm=(eF=h.callbacks).onAdFinished)==null||Rm.call(eF,$g(Z,2,yi))}}else _.O$(Error("ai"))}catch(bO){_.$W(Error("bi"))}else _.O$(Error("ci"))};var WGM=function(h){this.rpcErrorCode=h};var Cv=function(h,E,g){this.intervalMs=h;this.apiFunc=E;this.type=g;this.schedulerReady=!0};
Cv.prototype.call=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1){if(E.type!==1&&h===E.cachedValue)return Z.return();E.pendingApiRequestResolver||(E.pendingApiRequestResolver=new _.dN);g=E.pendingApiRequestResolver.promise;E.cachedValue=h;return Z.yield(QLn(E),2)}return Z.return(g)})};
Cv.prototype.flush=function(h){h=h===void 0?!1:h;var E=this;return _.a(function(g){return E.cachedValue===void 0?g.return():g.yield(E.apiFunc(E.cachedValue,h),0)})};
var QLn=function(h){var E,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!h.schedulerReady||!h.pendingApiRequestResolver)return M.return();h.schedulerReady=!1;E=h.pendingApiRequestResolver;h.pendingApiRequestResolver=void 0;_.CX(M,2);if(h.cachedValue===void 0){M.jumpTo(4);break}return M.yield(h.apiFunc(h.cachedValue),5);case 5:g=M.yieldResult,E.resolve(g);case 4:_.bN(M,3);break;case 2:Z=_.th(M),E.reject(Z);case 3:setTimeout(function(){return _.a(function(W){h.schedulerReady=!0;return W.yield(QLn(h),
0)})},h.intervalMs),_.SK(M)}})};var zUz=window.location.origin+"/miniapp_cloudsaves",pd4=[400,401],hvB=_.cx("cloud_save_game_data_rate_limit_ms",3E3),ZKM=function(h){var E=this;this.JSC$16958_miniAppId=h;this.loadAttempts=0;this.cloudSaveIntervalMs=hvB;this.initialDownloadDataSucceeded=!1;this.JSC$16958_playNonceResolver=new _.dN;this.scottyUploadRateLimiter=new Cv(this.cloudSaveIntervalMs,function(g,Z){return E4f(E,g,Z)},2);
this.downloadDataPromise=g4k(this);this.downloadDataPromise.then(function(){E.initialDownloadDataSucceeded=!0}).catch(function(){})},M5A=function(h,E){E.then(function(g){return h.JSC$16958_playNonceResolver.resolve(g)})},W4F=function(h){return _.a(function(E){return h.cachedData===void 0?E.return(h.downloadDataPromise):E.return(h.cachedData)})},pND=function(h,E){return _.a(function(g){h.cachedData=E;
if(!h.initialDownloadDataSucceeded)throw Error("di");return g.yield(h.scottyUploadRateLimiter.call(E),0)})},G6M=function(){return new Promise(function(h){setTimeout(h,1E3,"")})},zvM=function(h,E){var g,Z;
return _.a(function(M){if(M.nextAddress==1)return g=h.JSC$16958_miniAppId,M.yield(Promise.race([h.JSC$16958_playNonceResolver.promise,G6M()]),2);Z={"X-YouTube-MiniAppId":g,"X-YouTube-PostPlayNonce":M.yieldResult};"DELEGATED_SESSION_ID"in _.KF&&ATa(E,Z);return M.return(Z)})},E4f=function(h,E,g){g=g===void 0?!1:g;
return _.a(function(Z){return MZz()?_.J("enable_cloud_save_error_popup_after_retry")?Z.return(new Promise(function(M,W){var z,c,I,B,U;return _.a(function(L){switch(L.nextAddress){case 1:z=0,c=!0,B=I=null;case 2:if(!(c&&z++<2)){L.jumpTo(4);break}_.CX(L,5);return L.yield(aHF(h,E,g),7);case 7:I=L.yieldResult;c=I.ok?!1:!pd4.includes(I.status);_.bN(L,2);break;case 5:B=U=_.th(L);c=Gzz(B);L.jumpTo(2);break;case 4:I?I.ok?(Jv(h,hvB),M()):(Jv(h,h.cloudSaveIntervalMs*2),W(Error("ei`"+String(I.status),{cause:{rpcErrorCode:I.status}}))):
(Jv(h,h.cloudSaveIntervalMs*2),W(B||Error("fi"))),_.SK(L)}})})):Z.return(new Promise(function(M,W){var z,c;
return _.a(function(I){if(I.nextAddress==1){if(h.JSC$16958_miniAppId==="")return W(Error("gi")),I.return();_.CX(I,2);return I.yield(aHF(h,E,g),4)}if(I.nextAddress!=2)return z=I.yieldResult,z.ok?(Jv(h,hvB),M()):(Jv(h,h.cloudSaveIntervalMs*2),W(Error("ei`"+String(z.status),{cause:{rpcErrorCode:z.status}}))),_.bN(I,0);c=_.th(I);Jv(h,h.cloudSaveIntervalMs*2);W(c);_.SK(I)})})):Z.return()})},aHF=function(h,E,g){g=g===void 0?!1:g;
var Z,M,W;return _.a(function(z){if(z.nextAddress==1)return Z=_.lJ((new TextEncoder).encode(E)),M=aQZ(),z.yield(zvM(h,M),2);W=z.yieldResult;return z.return(fetch(M,{method:"POST",body:new Blob([Z]),headers:W,keepalive:g}))})},g4k=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1){if(!MZz())return Z.return("");if(h.JSC$16958_miniAppId==="")throw Error("gi");if(h.loadAttempts>2)return Z.return(h.downloadDataPromise);_.CX(Z,2);return Z.yield(cyM(h),4)}if(Z.nextAddress!=2)return E=Z.yieldResult,Z.return(E);g=_.th(Z);if(Gzz(g)&&++h.loadAttempts<2)return Z.return(g4k(h));throw g;})},cyM=function(h){var E,g,Z,M,W;
return _.a(function(z){switch(z.nextAddress){case 1:return _.CX(z,2),E=aQZ(),z.yield(zvM(h,E),4);case 4:return g=z.yieldResult,z.yield(fetch(E,{method:"GET",headers:g}),5);case 5:return Z=z.yieldResult,Z.ok?z.yield(Z.text(),6):z.return(Promise.reject(Error("hi`"+String(Z.status),{cause:new WGM(Z.status)})));case 6:return M=z.yieldResult,z.return((new TextDecoder).decode(_.Qx(M)));case 2:return W=_.th(z),z.return(Promise.reject(W))}})},Jv=function(h,E){h.cloudSaveIntervalMs=E;
h.scottyUploadRateLimiter.intervalMs=h.cloudSaveIntervalMs};
ZKM.prototype.flush=function(){var h=this;return _.a(function(E){return h.initialDownloadDataSucceeded?E.yield(h.scottyUploadRateLimiter.flush(!0),0):E.return()})};var iKF=C1(dy(1),L1(1)),o4f=C1(dy(1),L1(3)),eT=function(h){this.callbacks=h};
_.p=eT.prototype;_.p.onAudioToggled=function(h,E){(E===void 0||E)&&_.Xt("yt-mini-app-is-audio-enabled",h,2592E3)};
_.p.onPause=function(){this.onAudioToggled(!1,!1)};
_.p.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.p.returnNativeBenchmarkingMessage=function(){};
_.p.sendGameData=function(){};
_.p.sendStartGameFrameCapture=function(){};
var cHx=function(h,E,g){this.callbacks=h;var Z=this;this.sdkVersion=new _.dN;this.channel=new WZH(_.iY({destination:window,iframe:E,origin:(new URL(g.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var M=qY;var W=dy(5);var z=new h7M;z=_.OK(z,1,1E4);W=_.No(W,4,z7F,z);M(Z,W);Z.onAudioToggled(Z.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){Z.sdkVersion.resolve("")},1E4)};
_.f(cHx,eT);_.p=cHx.prototype;_.p.onAudioToggled=function(h,E){eT.prototype.onAudioToggled.call(this,h,E===void 0?!0:E);E=qY;var g=dy(2),Z=new uWB;h=_.Ph(Z,1,h);h=_.No(g,3,z7F,h);E(this,h)};
_.p.onPause=function(){eT.prototype.onPause.call(this);qY(this,dy(3))};
_.p.onResume=function(){eT.prototype.onResume.call(this);qY(this,dy(4))};
_.p.returnNativeBenchmarkingMessage=function(h){var E=qY,g=dy(6);var Z=L1(_.eP(h,Mg,1)?1:2);h=_.eP(h,Mg,1)?h:null;Z=_.No(Z,5,jc,h);E(this,C1(g,Z))};
_.p.sendGameData=function(h){var E=qY,g=dy(7);h=_.No(g,5,z7F,h);E(this,h)};
_.p.sendStartGameFrameCapture=function(){qY(this,dy(9))};
var fv=function(h,E,g){var Z,M,W;return _.a(function(z){if(z.nextAddress==1)return Z=h.callbacks,M=Z.onSdkCalled,W=E,z.yield(h.sdkVersion.promise,2);M.call(Z,W,z.yieldResult,g);_.SK(z)})};
cHx.prototype.onMessage=function(){var h=this;return zVA(qM,function(E){var g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO,RW,NN,Cd,Ba,$$,Ha,zf,eF,Rm,bO,jF,PM,ll,xU,pU,pd,gB,CD,E0,Im,Qk,TN,hC;return _.a(function(cM){switch(cM.nextAddress){case 1:if(!UGm(E.data))return _.O$(Error("ii")),cM.return();g=_.vW(E.data,1);_.J("enable_iframe_message_get_type_via_fields")&&(Z=E.data,g=M=_.vW(Z,1));switch(g){case 8:if(E.data.hasMetadata()){var FC=h.sdkVersion,jx=FC.resolve;var wB=E.data.getMetadata();wB=_.mj(wB,
1);jx.call(FC,wB);clearTimeout(h.sdkVersionTimeoutId)}break;case 6:return cM.jumpTo(2);case 16:if(!_.qv(E.data,izf,14,f1))return cM.return();W=_.KW(E.data,izf,14,f1);(c=(z=h.callbacks).onGameFrameReceived)==null||c.call(z,W);return cM.return();case 17:if(!_.qv(E.data,coM,15,f1))return cM.return();(B=(I=h.callbacks).onGameAudioReceived)==null||B.call(I,_.KW(E.data,coM,15,f1));return cM.return();case 1:if(FC=_.KW(E.data,ZzA,2,f1))switch(_.vW(FC,1)){case 1:h.callbacks.onFirstFrameReady();if(_.J("enable_network_request_logging_on_game_events")&&
_.eP(FC,Bk,4)){fv(h,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.iK(FC,Bk,4));break}fv(h,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(wB=(jx=h.callbacks).onGameReady)==null||wB.call(jx);if(_.J("enable_network_request_logging_on_game_events")&&_.eP(FC,Bk,4)){fv(h,"MINI_APP_SDK_API_GAME_READY",_.iK(FC,Bk,4));break}fv(h,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.qv(FC,Ur,3,MIl))h.callbacks.onResourceLoaded(_.KW(FC,Ur,3,MIl))}return cM.return();case 3:return cM.jumpTo(3);case 4:return cM.jumpTo(4);
case 2:return cM.jumpTo(5);case 9:return cM.jumpTo(6);case 10:return h.callbacks.onClick(),cM.return();case 5:return cM.jumpTo(7);case 11:if(!_.qv(E.data,IR,9,f1))return cM.return();U=_.KW(E.data,IR,9,f1);(d=(L=h.callbacks).onBenchmarkingMessageReceived)==null||d.call(L,U);FC=E.reply;jx=dy(1);wB=L1(1);var fD=new IR;var U0=new Uint8Array(e5W(U,fI(U,ysl,6))|0);fD=dQ(fD,5,ysl,_.xM(U0,!1));wB=_.No(wB,5,jc,fD);FC.call(E,C1(jx,wB));return cM.return();case 12:return cM.jumpTo(8);case 13:return cM.jumpTo(9);
case 15:if(!_.J("enable_open_yt_content"))return E.reply(o4f),cM.return();if(!_.qv(E.data,aED,12,f1))return E.reply(C1(dy(1),L1(2))),cM.return();FC=_.KW(E.data,aED,12,f1);C=_.mj(FC,1);h.callbacks.onOpenYTContent(C);E.reply(iKF);return cM.return();case 14:return cM.jumpTo(10);default:return cM.return()}cM.jumpTo(0);break;case 2:if(!_.qv(E.data,J0,5,f1))return cM.return();jx=E.data;FC=fI(jx,f1,5);jx=jx.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=wcW(jx,jx[_.pD]|0,J0,FC)||J0[ll$]||(J0[ll$]=
rn4(J0));FC=_.aD(q,RR,1,_.ch());w=_.G(FC);r=w.next();case 12:if(r.done){cM.jumpTo(14);break}v=r.value;H=new _.xX;H.level=_.vW(v,2)===1?"WARNING":"ERROR";u=ohu(v.getSource());return cM.yield(h.sdkVersion.promise,15);case 15:k={source:u,sdkVersion:cM.yieldResult};_.ZR(_.Js(v,6))!=null?(H.message=v.getMessage(),H.stack=_.mj(v,5),k.sdkErrorType=IQz(_.vW(v,6)),_.ZR(_.Js(v,7))!=null&&(k.sdkApi=RUM(_.vW(v,7)))):H.stack=void 0;A=y=void 0;(A=(y=h.callbacks).onError)==null||A.call(y,{loggingError:H,metadata:k});
r=w.next();cM.jumpTo(12);break;case 14:return cM.return();case 3:return _.CX(cM,16),FC=cM.yield,jx=h.callbacks,wB=jx.onSave,fD=_.KW(E.data,QVC,4,f1),fD=_.mj(fD,1),FC.call(cM,wB.call(jx,fD),18);case 18:E.reply(iKF);_.bN(cM,17);break;case 16:return E4=_.th(cM),iO=Oa,RW=E4,NN=h.callbacks,Cd="MINI_APP_SDK_API_SAVE_DATA",cM.yield(h.sdkVersion.promise,19);case 19:iO(RW,NN,Cd,cM.yieldResult),E.reply(o4f);case 17:return cM.yield(fv(h,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return cM.return();case 4:return _.CX(cM,
21),cM.yield(h.callbacks.onLoad(),23);case 23:Ba=cM.yieldResult;FC=E.reply;jx=dy(1);wB=L1(1);fD=new QVC;fD=_.ln(fD,1,Ba);wB=_.No(wB,3,jc,fD);FC.call(E,C1(jx,wB));_.bN(cM,22);break;case 21:return $$=_.th(cM),Ha=Oa,zf=$$,eF=h.callbacks,Rm="MINI_APP_SDK_API_LOAD_DATA",cM.yield(h.sdkVersion.promise,24);case 24:Ha(zf,eF,Rm,cM.yieldResult),E.reply(o4f);case 22:return cM.yield(fv(h,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return cM.return();case 5:_.CX(cM,26);h.callbacks.onSendHighScore(Ot(_.KW(E.data,
PYF,3,f1).getValue()));E.reply(C1(dy(1),L1(1)));_.bN(cM,27);break;case 26:return bO=_.th(cM),jF=Oa,PM=bO,ll=h.callbacks,xU="MINI_APP_SDK_API_SEND_SCORE",cM.yield(h.sdkVersion.promise,28);case 28:jF(PM,ll,xU,cM.yieldResult),E.reply(o4f);case 27:return cM.yield(fv(h,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return cM.return();case 6:if(!_.qv(E.data,BkD,8,f1)){cM.jumpTo(30);break}FC=cM.yield;jx=_.KW(E.data,BkD,8,f1);jx=_.vW(jx,1);return FC.call(cM,fv(h,RUM(jx)),30);case 30:return cM.return();case 7:return FC=
E.reply,jx=dy(1),wB=L1(1),fD=h.callbacks.getLanguage(),wB=dQ(wB,4,jc,CU(fD)),FC.call(E,C1(jx,wB)),cM.yield(fv(h,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return cM.return();case 8:if(!_.qv(E.data,R7F,10,f1))return cM.return();pU=_.KW(E.data,R7F,10,f1);pd=h.callbacks;gB=pd.onSdkPerformanceUpdate;return cM.yield(h.sdkVersion.promise,33);case 33:return gB.call(pd,pU,cM.yieldResult),cM.return();case 9:FC=E.data;jx=fI(FC,f1,11);if(_.JC(_.Js(FC,jx))==null)return E.reply(C1(dy(1),L1(2))),cM.return();
CD=$g(E.data,11,f1);h.callbacks.onShareInviteCode(CD);E.reply(iKF);return cM.yield(fv(h,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return cM.return();case 10:if(_.qv(E.data,bWM,13,f1)){cM.jumpTo(35);break}return cM.yield(h.callbacks.onShowMiniAppAd(2),36);case 36:return E0=cM.yieldResult,E.reply(C1(dy(1),pFn(E0))),cM.yield(fv(h,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return cM.return();case 35:FC=_.KW(E.data,bWM,13,f1);a:switch(_.vW(FC,1)){case 1:FC={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:FC={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:FC={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Im=FC;Qk=Im.adType;TN=Im.sdkApi;FC=cM.yield;jx=h.callbacks;wB=jx.onShowMiniAppAd;fD=_.KW(E.data,bWM,13,f1);fD=_.mj(fD,2);return FC.call(cM,wB.call(jx,Qk,fD||void 0),38);case 38:return hC=cM.yieldResult,E.reply(C1(dy(1),pFn(hC))),cM.yield(fv(h,TN),39);case 39:return cM.return()}})})};
var qY=function(h,E){_.a(function(g){h.channel.send(E);_.SK(g)})},nu=function(h,E,g){this.callbacks=h;
var Z=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;h=YG$(E,(new URL(g.toString())).origin);this.gameSnacks=new COk(h);this.gameSnacks.page.onReady(function(){Z.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){Z.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var M,W;(W=(M=Z.callbacks).onGameReady)==null||W.call(M)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(M,W){try{Z.callbacks.onSendHighScore(W)}catch(z){Oa(z,Z.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(M,W){var z;return _.a(function(c){if(c.nextAddress==1)return _.CX(c,2),c.yield(Z.callbacks.onSave(Z.decoder.decode(W)),4);if(c.nextAddress!=2)return _.bN(c,0);z=_.th(c);Oa(z,Z.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return c.return()})});
this.gameSnacks.storage.onLoad(function(){var M,W;return _.a(function(z){if(z.nextAddress==1)return _.CX(z,2),z.yield(Z.callbacks.onLoad(),4);if(z.nextAddress!=2)return M=z.yieldResult,z.return(Z.encoder.encode(M));W=_.th(z);Oa(W,Z.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return z.return(Z.encoder.encode(""))})});
this.gameSnacks.init()};
_.f(nu,eT);nu.prototype.onAudioToggled=function(h,E){eT.prototype.onAudioToggled.call(this,h,E===void 0?!0:E);var g;(g=this.gameSnacks)==null||g.audio.update(h)};
nu.prototype.onPause=function(){eT.prototype.onPause.call(this);var h;(h=this.gameSnacks)==null||h.game.pause()};
nu.prototype.onResume=function(){eT.prototype.onResume.call(this);var h;(h=this.gameSnacks)==null||h.game.resume()};var IHn=PWz,RvM=_.O(function(h){var E=h.data;var g=h.loadingProgress;var Z=h.forPaused;h=_.G(_.Bm("",void 0,"LYYTdd"));var M=h.next().value,W=h.next().value;h=_.G(_.Bm(!1,void 0,"K0waae"));var z=h.next().value,c=h.next().value,I=[],B=function(){return"transform: scaleX("+(_.Hm(g)||0)+")"},U=null,L=function(){return E()&&U!==null&&U!==void 0?U:U=E().showAnniversaryAnimation?6:IHn()};
_.lX(function(){var w;if(E().timeOutMessages&&((w=E().timeOutMessages)==null?0:w.length)){U=null;w=_.G(I);for(var r=w.next();!r.done;r=w.next())clearTimeout(r.value);I.length=0;BFd(E().timeOutMessages,I,W,c)}},"BNu9j");
var d=function(){return!!E().persistentErrorMessageTitle},C=function(){return g!==void 0},q=function(){return E().title};
return _.R("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.R("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.R("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.R("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var w,r=(w=E().backgroundImage)==null?void 0:w.sources,v;return(r==null?0:r.length)?"background-image: url("+((v=r[0])==null?void 0:v.url)+")":""}}),_.R("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.R(_.P,{cond:function(){return!d()&&!(Z==null?0:Z())},
then:function(){var w={};return _.R("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.R("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.R(_.sh,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+L()},
data:function(){var r="loading_animation_"+L();return{animationConfig:{name:r,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+r+".json",loop:!0,autoplay:!0}}}})),_.R("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.R(_.P,{cond:q,
then:function(){return _.R("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},q)}}),_.R("p",{class:_.CO("miniAppSplashScreenViewModelTimeoutMessage",(w.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return z()},w)),
"aria-live":"polite"},M),_.R(_.P,{cond:C,then:function(){return _.R("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.R("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:B}))}})))}}),_.R(_.P,{cond:d,
then:function(){return _.R("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.R("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return E().persistentErrorMessageTitle}),_.R(_.P,{cond:function(){return!!E().persistentErrorMessageDescription},
then:function(){return _.R("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return E().persistentErrorMessageDescription})}}))}}),_.R(_.P,{cond:Z,
then:function(){return _.R("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.R("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.R("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},q))}})))},"xe");var PSM=new _.Ps("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var BjF=gX;gX=function(h){function E(g){if(g){var Z,M;(Z=g.__spec)==null||(M=Z.didUnmount)==null||M.call(Z);for(Z=0;Z<g.childNodes.length;Z++)E(g.childNodes[Z])}}
BjF==null||BjF(h);KL(function(){for(var g=0;g<h.length;g++)E(h[g])})};var UQA=_.O(function(h){var E=h.data;var g=h.score;var Z=h.formattedScore;var M=h.onScoreChanged;var W=h.isEmbeddedInWebview;var z=_.MC("yt-mini-app-score-button-view-model"),c=function(){var C;return _.e(E==null?void 0:(C=E())==null?void 0:C.buttonViewModel,_.i_)},I=function(){var C;
return(g==null?void 0:g())||Number(E==null?void 0:(C=E())==null?void 0:C.lastScore)||0},B=function(){var C;
return(Z==null?void 0:Z())||((C=c())==null?void 0:C.title)||""},U,L=1;
if(h=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))h=Number(h),L=isNaN(h)?1:h/100;_.lX(function(){M==null||M(I());var C;var q=_.kB((C=c())==null?void 0:C.onTap);if(q){C=_.e(q,t1F);var w,r,v;C=_.e(C==null?void 0:(w=C.panelLoadingStrategy)==null?void 0:(r=w.inlineContent)==null?void 0:(v=r.dialogViewModel)==null?void 0:v.customContent,yBk)}else C=void 0;if(w=C)w.score=B()},"Aekez");
h=_.J7(function(){var C,q,w=E==null?void 0:(C=E())==null?void 0:(q=C.loggingDirectives)==null?void 0:q.trackingParams;w&&_.KC(_.GF().resolve(_.gP),w);return!1});
_.vJ(function(){if(z.value){var C=z.value.querySelector("button"),q=c();C&&q&&UUu(C,q);_.z$("yt-share-playable-with-high-score",function(){var w=I().toString(),r=E==null?void 0:E().onShareHighScoreCommand,v=E==null?void 0:E().highScoreShareClientParamIdentifier,H=W==null?void 0:W();r&&(H?(v=new ccM,w=_.ln(v,2,w),Ku(r,w.JSC$12374_serializeBinary())):v&&(_.GF().resolve(PSM).clientParams.set(v,{miniAppClientParams:{highScore:w}}),Q3z(r,!1)))})}});
var d=function(){var C=c();C&&(g==null?0:g())&&C.accessibilityText&&(C.accessibilityText=C.accessibilityText.replace(U,B()));U=B();return{numberValue:I(),numberText:B(),heightPx:36,fontSizeMultiplier:L,shouldAnimate:!(g==null||!g())&&!0}};
return _.R("yt-mini-app-score-button-view-model",{class:function(){var C={};return _.v3("miniAppScoreButtonViewModelHost",(C.miniAppScoreButtonViewModelIsVisible=I()!==0,C))},
el:z,"on:click":h},Lg4(!1,function(){return _.R("span",{style:"display:none;"},I)}),_.R(_.Sv,{data:function(){var C;
return E==null?void 0:(C=E())==null?void 0:C.buttonViewModel}},{buttonViewModel:function(C){return _.R(_.$l,{data:C.data,
animatedTextProps:d})}}))},"ye");var JyA=_.O(function(h){var E,g=(E=_.YY("yt-mini-app-is-theater-mode-enabled"))!=null?E:!1,Z=_.J("enable_playable_container_save_button"),M=_.J("enable_play_next_destination_page_in_toolbar");E={};return _.R("ytm-mini-app-top-bar-view-model",null,_.R("div",{class:_.CO("yt-mini-app-top-bar-view-model",(E["yt-mini-app-top-bar-view-model--mobile"]=!1,E["yt-mini-app-top-bar-view-model--desktop"]=!0,E))},_.R("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.R(_.P,{cond:function(){var W;return!!h.data().backButtonEdu&&
!((W=h.isExitMiniAppSeen)==null?0:W.call(h))},
then:function(){return _.R(_.Sv,{data:function(){return h.data().backButtonEdu}},{buttonViewModel:_.$l})},
else:function(){return _.R(_.Sv,{data:function(){return h.data().backButton}},{buttonViewModel:_.$l})}}),_.R(_.P,{cond:function(){return h.data().viewAllButton&&!0},
then:function(){return _.R(_.Sv,{data:function(){return h.data().viewAllButton}},{buttonViewModel:_.$l})}}),_.R(_.P,{cond:function(){return h.data().title&&!0},
then:function(){return _.R("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return h.data().title})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.R(_.P,{cond:function(){var W;
return(W=h.isDesktopPlayPage)==null?void 0:W.call(h)},
then:function(){return _.R(_.zt,null,_.R(L4M,{highScoreButton:function(){return h.data().highScoreButton},
score:h.score,formattedScore:h.formattedScore,onScoreChanged:h.onScoreChanged,isEmbeddedInWebview:h.isEmbeddedInWebview}),_.R(jzM,{enableSaveButton:function(){return _.Hm(Z)},
saveButton:function(){return h.data().saveButton},
isSaved:h.isSaved,onSaveToggled:function(){return h.onSaveToggled}}),_.R(dQM,{menuButton:function(){return h.data().menuButton}}))},
else:function(){return _.R(_.P,{cond:function(){return!1},
then:function(){return _.R(_.Sv,{data:function(){return h.data().playPageButton}},{buttonViewModel:function(W){return _.R(_.$l,{data:W.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.R(L4M,{highScoreButton:function(){return h.data().highScoreButton},
score:h.score,formattedScore:h.formattedScore,onScoreChanged:h.onScoreChanged,isEmbeddedInWebview:h.isEmbeddedInWebview})}})}})),_.R("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.R(_.Sv,{data:function(){return h.data().muteButton}},{toggleButtonViewModel:function(W){var z=W.data;
return _.R(_.Z7,{data:function(){var c,I;return Object.assign({},z(),{isToggled:(I=(c=h.isAudioEnabled)==null?void 0:c.call(h))!=null?I:!0})},
onToggle:h.onAudioToggled,useOutlinedIcon:!0})}}),_.R(_.Sv,{data:function(){return h.data().theatreModeButton}},{toggleButtonViewModel:function(W){var z=W.data;
return _.R("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.R(_.Z7,{data:function(){return Object.assign({},z(),{isToggled:g})},
useOutlinedIcon:!0}))}}),_.R(CSk,{fullscreenButton:function(){return h.data().fullscreenButton}}),_.R(_.P,{cond:function(){return _.Hm(M)&&h.data().viewAllButton&&!1},
then:function(){return _.R(_.Sv,{data:function(){return h.data().viewAllButton}},{buttonViewModel:_.$l})}}),_.R(_.P,{cond:function(){var W;
return!((W=h.isDesktopPlayPage)==null?0:W.call(h))},
then:function(){return _.R(_.zt,null,_.R(jzM,{enableSaveButton:function(){return _.Hm(Z)},
saveButton:function(){return h.data().saveButton},
isSaved:h.isSaved,onSaveToggled:function(){return h.onSaveToggled}}),_.R(dQM,{menuButton:function(){return h.data().menuButton}}))}}))))},"ze");
JyA.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var dQM=_.O(function(h){return _.R(_.Sv,{data:h.menuButton},{buttonViewModel:_.$l})},"Ae"),jzM=_.O(function(h){var E=h.enableSaveButton;
var g=h.saveButton;var Z=h.isSaved;var M=h.onSaveToggled;return _.R(_.P,{cond:function(){return E()&&!(g==null||!g())},
then:function(){return _.R(_.Sv,{data:function(){var W=_.e(g==null?void 0:g(),_.Ix),z;return{toggleButtonViewModel:Object.assign({},W,{isToggled:(z=Z==null?void 0:Z())!=null?z:!(W==null||!W.isToggled)})}}},{toggleButtonViewModel:function(W){return _.R(_.Z7,{data:W.data,
onToggle:M})}})}})},"Be"),L4M=_.O(function(h){var E=h.highScoreButton;
var g=h.score;var Z=h.formattedScore;var M=h.onScoreChanged;var W=h.isEmbeddedInWebview;return _.R(_.Sv,{data:E},{miniAppScoreButtonViewModel:function(z){return _.R(UQA,{data:z.data,score:g,formattedScore:Z,onScoreChanged:M,isEmbeddedInWebview:W})}})},"Ce"),CSk=_.O(function(h){h=h.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.R(_.zt,null):_.R(_.Sv,{data:h},{buttonViewModel:_.$l})},"De");_.evD=new _.Ps("DESKTOP_CURRENT_PAGE");var xQD=_.O(function(h){var E=h.data;var g=_.J("force_active_time_logging_webview"),Z=!1,M=new b9M,W=void 0,z=void 0,c=_.GF().resolve(T3C),I=new kJA,B=void 0,U=void 0,L=[],d=void 0,C=void 0,q=!1,w=!1,r=!1,v=!1,H=new _.dN,u=_.GF().resolve(PSM),k=_.GF().resolve(_.Lv),y=_.GF().resolve(_.pl(VW)),A,E4=(A=_.GF().resolve(_.pl(_.evD)))==null?void 0:A.getCurrentPage(),iO=!1,RW=0,NN=function(Fz){Fz.preventDefault();return Fz.returnValue=""},Cd;
h=_.G(_.Bm(!((Cd=_.YY("yt-mini-app-is-audio-enabled"))!=null&&!Cd),void 0,"WhYQTd"));var Ba=h.next().value,$$=h.next().value,Ha;Cd=_.G(_.Bm(!((Ha=_.YY("exit-mini-app-seen-state"))==null||!Ha),void 0,"jxhCJb"));var zf=Cd.next().value,eF=Cd.next().value;Ha=_.G(_.Bm(!1,void 0,"MuvDfe"));var Rm=Ha.next().value,bO=Ha.next().value;Ha=_.G(_.Bm(void 0,void 0,"u9DLoc"));var jF=Ha.next().value,PM=Ha.next().value;Ha=_.G(_.Bm(void 0,void 0,"rykyJb"));var ll=Ha.next().value,xU=Ha.next().value;Ha=_.G(_.Bm(!0,void 0,
"d8FUvf"));var pU=Ha.next().value,pd=Ha.next().value;Ha=_.G(_.Bm(!1,void 0,"x9XwUb"));var gB=Ha.next().value,CD=Ha.next().value;Ha=_.G(_.Bm(!1,void 0,"bcquyc"));var E0=Ha.next().value,Im=Ha.next().value;Ha=_.G(_.Bm(void 0,void 0,"FMAC5b"));var Qk=Ha.next().value,TN=Ha.next().value;Ha=_.G(_.Bm(0,void 0,"HUGJEb"));var hC=Ha.next().value,cM=Ha.next().value,FC=_.hf("mini-app-container-view-model"),jx=function(){return E().isEmbeddedInWebview},wB=function(){return E().hasPlayNextShelf};
_.z$("yt-page-type-changed",function(Fz){if(_.J("enable_is_mini_app_page_active_bugfix"))Fz.detail.newPageSubtype==="mini_app"&&Fz.detail.newPageType==="ytd-browse"||!pU()||QF();else if(Fz=_.VaO()==="mini_app",Fz!==pU())if(pd(Fz),Fz){var dI;Fz=(dI=E().playableId)==null?void 0:dI.toString();Fz!==void 0&&window.location.href.includes(Fz)&&!w&&(v=!0,fD(),dU.value&&tb(dU.value))}else Fz||QF()});
_.z$("yt-action",function(Fz){Fz.detail.actionName==="yt-engagement-panel-visible-changed"&&Fz.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Fz.detail.args[2]==="PAmini_app_panel"&&QF();_.J("enable_is_mini_app_page_active_bugfix")?Fz.detail.actionName==="yt-history-load"&&!pU()&&(E4==null?0:E4.active)?(pd(!0),fD(),dU.value&&tb(dU.value)):Fz.detail.actionName==="yt-history-load"&&pU()&&!E().isEmbeddedInWebview&&XC():pU()&&Fz.detail.actionName==="yt-history-load"&&(v?v=!1:E().isEmbeddedInWebview||
XC())});
_.r9(function(){U0()});
_.lX(function(){fD()},"bLMzme");
var fD=function(){var Fz=E().playableId,dI=E().localReleaseId,nU=E().derivedDeviceInterface;if(w)_.O$(new _.xX("[MiniAppContainerViewModel] onEnter was called more than once"));else{w=!0;W=new rwm(Fz,dI,nU,document.visibilityState==="visible");$FM(W);z=new ZKM(Fz);qNM(c,Fz);ywf(I,{showMiniAppAdCommand:E().showMiniAppAdCommand,isEmbeddedInWebview:E().isEmbeddedInWebview,playLogger:W});mw$()&&(C=document.body.style.backgroundColor,_.FV(document.body,"background-color","black"));A1();rI();H=new _.dN;
if(E().isEmbeddedInWebview){if(Fz=(new URLSearchParams(window.location.search)).get("postPlayNonce"))vbn(W,Fz),iO=!0;M.initialize({onAudioStateLoaded:function(zp){mO(zp)},
onMuteMiniApp:function(){mO(!1)},
onUnmuteMiniApp:function(){mO(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(zp){iO||(vbn(W,zp),iO=!0)},
confirmExitMiniApp:function(){var zp,If,Ab;return _.a(function(Yd){if(Yd.nextAddress==1)return E().confirmExitMiniAppCommand?Yd.yield(Promise.race([H.promise,Promise.resolve(!1)]),2):Yd.return();(zp=Yd.yieldResult)?!E().confirmExitMiniAppCommandEdu||(Ab=(If=zf)==null?void 0:If())!=null&&Ab?j8(E().confirmExitMiniAppCommand):(j8(E().confirmExitMiniAppCommandEdu),_.Xt("exit-mini-app-seen-state","true",2592E6)):j8(E().closeMiniAppCommand);_.SK(Yd)})},
onNativeBenchmarkingMessageReceived:function(zp){zp=AsF(_.uoa(zp));if(_.qv(zp,_.Hg,3,kZk)){var If=_.KW(zp,_.Hg,3,kZk),Ab=hUN();var Yd=Ot(Ab.getSeconds())-Ot(If.getSeconds());If=_.i4(Ab,2)-_.i4(If,2);Yd<0&&If>0?(Yd+=1,If-=1E9):Yd>0&&If<0&&(--Yd,If+=1E9);Yd=(new Mg).setSeconds(Yd);Yd=_.hL(Yd,2,_.MZ(If),0);_.fM(zp,1,Yd)}var bs;(bs=U)==null||bs.returnNativeBenchmarkingMessage(zp)},
multiplayer3pAckStateLoaded:function(zp){XC(zp)},
exitMiniAppSeenStateLoaded:function(zp){E().confirmExitMiniAppCommandEdu&&eF(zp)},
onNavigateToNewMiniApp:function(){j8(E().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(zp){zp=new URLSearchParams(zp);var If=void 0;zp.has("invite_code")&&(If=new gSD,zp=zp.get("invite_code"),If=_.ln(If,1,zp));if(zp=If){var Ab;(Ab=U)==null||Ab.sendGameData(zp)}},
onPauseMiniApp:function(){Z=!0;RG()},
onResumeMiniApp:function(){Z=!0;Db()},
onAdFinished:function(zp){I.onAdFinished(zp)}});
E().showMultiplayer3pConsentDialogCommand||H.resolve(!0);j8(E().onContainerReadyCommand)}else vbn(W),H.resolve(!0);M5A(z,mFB(W));mFB(W).then(function(zp){zp={miniAppPlayData:{postPlayNonce:zp}};var If,Ab=(If=E().loggingDirectives)==null?void 0:If.trackingParams;Ab&&_.SQ().stateChanged(Ab,zp)});
Fz=E().showSignInDialogCommand;!MZz()&&Fz&&(_.Xt("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),j8(Fz));E().confirmExitMiniAppCommand&&y&&(Fz=bR4(E().confirmExitMiniAppCommand))&&(y.customConfirmationCommand=Fz)}},U0=function(){C&&_.FV(document.body,"background-color",C);
q=!1;d&&d.release();z.flush().catch(function(Fz){_.O$(Fz)});
c.flush().catch(function(Fz){_.O$(Fz)});
O9k(W);j6();U=void 0;fHf(u)},QF=function(){pd(!1);
U0();bO(!1);TN(void 0);PM(void 0);xU(void 0);RW=0;cM(0);w=!1},RG=function(){var Fz;
(Fz=U)==null||Fz.onPause();d&&d.release();z.flush().catch(function(dI){_.O$(dI)});
c.flush().catch(function(dI){_.O$(dI)});
KBH(W);CD(!0)},Db=function(){var Fz;
(Fz=U)==null||Fz.onResume();rI();Fz=W;Fz.isForeground=!0;dY(Fz,"PLAY_EVENT_TYPE_PLAY_RESUME");CD(!1)},mO=function(Fz){var dI;
(dI=U)==null||dI.onAudioToggled(Fz);$$(Fz)},XC=function(Fz){E().showMultiplayer3pConsentDialogCommand&&(E().isEmbeddedInWebview&&Fz!==void 0&&H.resolve(Fz),!Fz&&_.VaO()==="mini_app"&&j8(E().showMultiplayer3pConsentDialogCommand))},$U=function(){var Fz,dI,nU,zp;
return _.a(function(If){if(If.nextAddress==1){!E().isLivestream||E().disableVideoCapture||(Fz=U)!=null&&Fz.sendStartGameFrameCapture();dI=(new URL(window.location.href)).searchParams;if(dI.has("invite_code")){var Ab=new gSD,Yd=dI.get("invite_code");nU=_.ln(Ab,1,Yd);(zp=U)==null||zp.sendGameData(nU)}Rm()||(bO(!0),Ab=W,Ab.state!==1?_.O$(new _.xX("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+DFl[Ab.state])):(_.oC("mini_app_ids_without_game_ready").includes(Ab.JSC$16914_miniAppId)&&(Ab.gameReady=
!0),Ab.state=2,Ab.beforeReady=!1,jT(Ab,"ma_ffr"),dY(Ab,"PLAY_EVENT_TYPE_PLAY_READY")));return If.yield(H.promise,2)}j8(E().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();E().isEmbeddedInWebview||XC();_.SK(If)})},kU=function(){var Fz=W;
Fz.gameReady=!0;jT(Fz,"ma_gr")},zN=function(Fz){var dI;
return _.a(function(nU){if(nU.nextAddress==1)return _.CX(nU,2),nU.yield(pND(z,Fz),4);if(nU.nextAddress!=2)return _.bN(nU,0);dI=_.th(nU);j8(E().showSavingErrorPopupCommand);throw dI;})},IC=function(){var Fz,dI;
return _.a(function(nU){if(nU.nextAddress==1)return _.CX(nU,2),nU.yield(W4F(z),4);if(nU.nextAddress!=2)return Fz=nU.yieldResult,nU.return(Fz);dI=_.th(nU);j8(E().showLoadingErrorDialogCommand);throw dI;})},QL=function(Fz){W.logError(Fz)},Fi=function(Fz,dI,nU){XYC(W,Fz,dI,nU)},Ro=function(Fz,dI){sLf(W,Fz,dI)},HA=function(){!g&&E().isEmbeddedInWebview||_.Gq();
nbl(W,!0);q||(window.addEventListener("beforeunload",NN,{capture:!0}),q=!0)},xL=function(Fz){var dI,nU,zp,If,Ab,Yd,bs;
return _.a(function(f4){if(f4.nextAddress==1)return c&&(!B||B<Fz)&&Fz>0?f4.yield(NjD(c,Fz),3):f4.jumpTo(0);dI=f4.yieldResult;nU=_.G(dI);zp=nU.next().value;If=nU.next().value;Ab=zp;Yd=If;((bs=Ab)==null?0:bs.displayString)&&Yd&&(PM(Yd),xU(Ab.displayString));_.SK(f4)})},tM=function(Fz){var dI=E().onBenchmarkingMessageReceivedCommand;
if(dI){var nU=hUN();_.No(Fz,3,kZk,nU);Ku(dI,TrD(Fz))}},Kd=function(Fz){var dI=E().onGameFrameReceivedCommand;
if(dI){var nU=new FA;var zp=new XsA;var If=l3(Fz,1);zp=_.t1(zp,1,If);Fz=_.mj(Fz,2);Fz=_.ln(zp,2,Fz);nU=_.fM(nU,2,Fz);Ku(dI,k1n(nU))}},k$=function(Fz){var dI=E().onGameAudioDataReceivedCommand;
if(dI){var nU=new FA;var zp=new s2D;Fz=_.mj(Fz,1);zp=_.ln(zp,1,Fz);nU=_.fM(nU,4,zp);Ku(dI,k1n(nU))}},LD=function(){var Fz=new URLSearchParams(window.location.search);
if(E().isEmbeddedInWebview&&Fz&&Fz.get("override_hl")==="true"&&Fz.get("hl"))return Fz.get("hl");Fz=document.documentElement.lang;return Fz!==""?Fz:bV},Pc=function(Fz){var dI=E().onShareInviteCodeCommand;
if(dI)if(E().isEmbeddedInWebview){var nU=new ccM;Fz=_.ln(nU,1,Fz);Ku(dI,omH(Fz))}else nU=E().inviteCodeShareClientParamIdentifier,u.clientParams.set(nU,{miniAppClientParams:{inviteCode:Fz}}),j8(dI)},D0=function(Fz){var dI,nU,zp;
return _.a(function(If){if(If.nextAddress==1)return dI=E().onMiniAppOpenYtContentRequested,c&&_.J("enable_open_yt_content")&&dI?If.yield(t5A(c,Fz),3):If.jumpTo(0);nU=If.yieldResult;if(nU==="OK")if(E().isEmbeddedInWebview){var Ab=new $lk;zp=dQ(Ab,2,yi,CU(Fz));Ku(dI,nFf(zp))}else k.clientData.set("video_id",Fz),j8(dI);_.SK(If)})},ex=function(Fz){RW+=_.i4(Fz,3);
Fz=Math.min(Math.log(1+RW/15E6*9)/Math.log(10),.99);cM(Fz);qA(Fz)},qA=_.lY(function(Fz){var dI=E().updateLoadingProgressCommand;
if(dI){var nU=new $lk;Fz=dQ(nU,3,yi,_.kM(Fz));Ku(dI,nFf(Fz))}},100),Jn=function(Fz){return AwF(I,Fz)},rI=function(){var Fz,dI;
((Fz=_.xkd())==null?void 0:(dI=Fz.wakeLock)==null?void 0:dI.request)!=null&&_.xkd().wakeLock.request("screen").then(function(nU){d=nU}).catch(function(){})},dU=_.MC("iframe");
_.lX(function(){E().isSupportedCountry&&(MZz()||_.J("enable_sign_in_promo")||!E().showSignInDialogCommand?dU.value&&tb(dU.value):j8(E().onMiniAppReadyCommand))},"ASuFde");
var UD=function(){return _.R("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Rm()?0:-1},
el:dU})},tb=function(Fz,dI){dI=dI===void 0?!1:dI;
var nU=Oq();nU&&(dI||nU.toString()!==Fz.getAttribute("src"))&&(U=iyN(E().source,{isAudioEnabled:Ba,onFirstFrameReady:$U,onGameReady:kU,onSave:zN,onLoad:IC,onError:QL,onSdkCalled:Fi,onSdkPerformanceUpdate:Ro,onClick:HA,onSendHighScore:xL,onBenchmarkingMessageReceived:tM,getLanguage:LD,onShareInviteCode:Pc,onResourceLoaded:ex,onOpenYTContent:D0,onShowMiniAppAd:Jn,onGameFrameReceived:Kd,onGameAudioReceived:k$},Fz,nU),D6(Fz,"load",function(){jT(W,"ma_il");D6(Fz,"load",function(){tb(Fz,!0)})}),_.hh(Fz,
nU))},Oq=function(){var Fz=E().url;
if(Fz&&(Fz=_.OY(Fz),Fz!==null)){if(E().source&&E().source==="MINI_APP_SOURCE_GAMESNACKS")Fz=_.U6(Fz,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.J("enable_origin_query_parameter_bugfix")){var dI=_.S6(_.nOV(Fz.toString()));dI=new URLSearchParams(dI||"");dI.set("origin",window.location.origin);dI=dI.toString();Fz=_.lx(Fz).toString();Fz=_.wU(uCf.exec(Fz)[0]+(dI.trim()?"#"+dI:""))}return Fz}},KM=function(){var Fz={};
Fz=_.CO("yt-mini-app-container-view-model__loading-screen",(Fz["yt-mini-app-container-view-model__loading-screen--fade-out"]=Rm,Fz));var dI=function(){return Rm()?1:hC()};
return _.R("div",{class:Fz},_.R(_.Sv,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(nU){return _.R(RvM,{data:nU.data,
loadingProgress:dI})}}))},s9=function(){var Fz={};
return _.R("div",{class:_.CO("yt-mini-app-container-view-model__pause-interstitial",(Fz["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!gB()},Fz["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=gB,Fz))},_.R(_.Sv,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(dI){return _.R(RvM,{data:dI.data,
forPaused:!0})}}))},A1=function(){L=[];
L.push(_.vK(window,"visibilitychange",function(){r||Z&&jx()||(document.visibilityState==="visible"?Db():RG())}));
L.push(_.vK(window,"pagehide",function(){U0()}));
L.push(_.vK(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&FC.value.dispatchEvent(new Event("tap"))},0)}));
L.push(_.vK(FC.value,"pointerdown",function(){nbl(W,!1)},!0));
L.push(_.vK(FC.value,"pause",function(){r=!0;RG()}));
L.push(_.vK(FC.value,"play",function(){r=!1;Db()}));
L.push(_.vK(FC.value,"exit",function(){U0()}));
var Fz=navigator.keyboard,dI=Fz&&Fz.lock;L.push(_.vK(window,i3M,function(){Im(IMM());IMM()?(E().hasPlayNextShelf&&JI("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),gG("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),dI&&Fz.lock(["Escape"])):(E().hasPlayNextShelf&&gG("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),JI("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),dI&&Fz.unlock())}));
E().showMultiplayer3pConsentDialogCommand&&L.push(_.vK(window,"yt-playables-ack-3p-data-usage",function(){SNl(c)}));
E().confirmExitMiniAppCommandEdu&&L.push(_.vK(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Xt("exit-mini-app-seen-state","true",2592E6)}));
E().onGameAudioDataReceivedCommand&&L.push(_.vK(window,"message",function(nU){nU=nU.event_;var zp,If=(zp=dU.value)==null?void 0:zp.src;if(If&&nU.origin===(new URL(If)).origin&&nU.data&&nU.data.type==="GAME_AUDIO"&&nU.data.audio&&nU.data.audio.length>0)if(_.J("enable_sending_unwrapped_game_audio_as_serialized_metadata"))gha(E().onGameAudioDataReceivedCommand,nU.data.audio);else{var Ab=new FileReader;Ab.onload=function(){var Yd=new FA;var bs=new s2D;bs=_.ln(bs,1,Ab.result);Yd=_.fM(Yd,4,bs);Ku(E().onGameAudioDataReceivedCommand,
k1n(Yd))};
Ab.readAsDataURL(new Blob([nU.data.audio]))}}))},j6=function(){L.forEach(function(Fz){ls(Fz)});
window.removeEventListener("beforeunload",NN,{capture:!0})},j8=function(Fz){Fz&&Q3z(Fz,E().isEmbeddedInWebview||!1)},gG=function(Fz,dI){Fz=_.G(FC.value.getElementsByClassName(Fz));
for(var nU=Fz.next();!nU.done;nU=Fz.next())nU.value.classList.add(dI)},JI=function(Fz,dI){Fz=_.G(FC.value.getElementsByClassName(Fz));
for(var nU=Fz.next();!nU.done;nU=Fz.next())nU.value.classList.remove(dI)};
return function(){var Fz={};Fz=_.CO("yt-mini-app-container-view-model",(Fz["yt-mini-app-container-view-model--desktop"]=!0,Fz["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Fz["yt-mini-app-container-view-model--ios-web-view"]=mw$(),Fz["yt-mini-app-container-view-model--no-top-bar"]=function(){return!E().topBar},Fz["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return E().hasPlayNextShelf},Fz["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return E().hasPlayNextShelf},Fz["yt-mini-app-container-view-model--show-peek-below"]=function(){return!E0()&&E().hasPlayNextShelf},Fz));
var dI={};dI=_.CO("yt-mini-app-container-view-model__content",(dI["yt-mini-app-container-view-model__content--desktop-content"]=!0,dI["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},dI["yt-mini-app-container-view-model--desktop-play-page"]=function(){return E().hasPlayNextShelf},dI));
return _.R("mini-app-container-view-model",{el:FC},_.R("div",{class:Fz},_.R(_.P,{cond:function(){return E().topBar&&!E0()},
then:function(){return _.R(_.Sv,{data:function(){return E().topBar}},{miniAppTopBarViewModel:function(nU){return _.R(JyA,{data:nU.data,
isAudioEnabled:Ba,onAudioToggled:function(zp){mO(zp)},
score:jF,formattedScore:ll,onScoreChanged:function(zp){B=zp},
isEmbeddedInWebview:jx,isSaved:Qk,onSaveToggled:function(zp){TN(zp)},
isExitMiniAppSeen:zf,isDesktopPlayPage:wB})}})}}),_.R("div",{class:dI},_.R(_.P,{cond:pU,
then:function(){return UD()}}),_.R(_.P,{cond:function(){return E().isLivestream},
then:function(){return s9()}}),_.R(_.P,{cond:function(){return!E().isEmbeddedInWebview},
then:function(){return KM()}}))))}()},"Ee");
xQD.idomCompat=!0;_.I9(xQD,"mini-app-container-view-model",{props:{data:_.C6}});var wNM=_.O(function(h){var E=h.data;return _.R("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.R("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.J7(function(){var g=E().onTap;g&&_.Tl(g)})},_.R(_.P,{cond:function(){return E().icon},
then:function(g){return _.R(_.Ni,{icon:function(){return g().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.R("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return E().title})))},"Fe");
wNM.idomCompat=!0;var DQH=_.O(function(h){var E=_.hf("div"),g=_.G(_.Bm(void 0,void 0,"dg3xff")),Z=g.next().value,M=g.next().value;g=_.G(_.Bm(void 0,void 0,"AgHNfc"));var W=g.next().value,z=g.next().value;g=_.G(_.Bm(void 0,void 0,"fuTKCc"));var c=g.next().value,I=g.next().value,B=function(){var v=Z();return v!==void 0?Math.abs(v):void 0},U=function(){var v=B();
return v===void 0||v<=3},L=function(){var v=B();
var H=W(),u=c();v=v!==void 0&&H!==void 0&&u!==void 0?H-u-v:void 0;return v===void 0||v<=3},d=function(v){E.value&&E.value.scrollBy({top:0,
left:(_.nF("HTML_DIR")==="rtl"?-1:1)*v*E.value.clientWidth,behavior:"smooth"})},C=function(){var v;
M((v=E.value)==null?void 0:v.scrollLeft);var H;z((H=E.value)==null?void 0:H.scrollWidth);var u;I((u=E.value)==null?void 0:u.clientWidth)},q=function(){d(-.5)},w=function(){d(.5)};
g=_.J7(function(){C()});
_.m1(function(){C();if(E.value&&window.ResizeObserver){var v=new ResizeObserver(C);v.observe(E.value);_.r9(function(){v.disconnect()})}});
var r={};return _.R("yt-sponsorships-scrollable-shelf",{class:_.CO("ytdSponsorshipsScrollableShelfHost",h.className)},_.R("div",{class:_.CO("ytdSponsorshipsScrollableShelfContent",(r.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return h.data().previousButton&&h.data().nextButton&&!U()&&!L()},r.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return h.data().previousButton&&!U()&&L()},r.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return h.data().nextButton&&
U()&&!L()},r)),
el:E,"on:scroll":g},h.children),_.R(_.P,{cond:function(){return!U()},
then:function(){return _.R(_.Sv,{data:function(){return h.data().previousButton}},{buttonViewModel:function(v){return _.R(_.$l,{data:v.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:q})}})}}),_.R(_.P,{cond:function(){return!L()},
then:function(){return _.R(_.Sv,{data:function(){return h.data().nextButton}},{buttonViewModel:function(v){return _.R(_.$l,{data:v.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:w})}})}}))},"Ge");
DQH.idomCompat=!0;var rym=_.O(function(h){var E=h.data;h={};return _.R("yt-sponsorships-hub",{class:_.CO("ytdSponsorshipsHubHost",(h.ytdSponsorshipsHubHostIndented=function(){return E().indented},h))},_.R("div",{class:"ytdSponsorshipsHubHeader"},_.R("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.R("div",{class:"ytdSponsorshipsHubAvatar"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq})),_.R(_.P,{cond:function(){return E().badgeImage},
then:function(g){return _.R("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.R("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.R("div",{class:"ytdSponsorshipsHubBadge"},_.R(_.pO,{data:g,targetWidth:24,targetHeight:24,alt:""}))))}})),_.R("div",{class:"ytdSponsorshipsHubDetails"},_.R("div",{class:"ytdSponsorshipsHubTierName"},function(){return E().tierName}),_.R("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return E().membershipType}),_.R("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return E().membershipDurationOrExpiry})),_.R("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.R(_.Sv,{data:function(){return E().manageButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.R(_.Sv,{data:function(){return E().actionMenuButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.R("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return E().perksTitle}),_.R(DQH,{data:function(){return{previousButton:E().previousPerkButton,
nextButton:E().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.R("div",{class:"ytdSponsorshipsHubPerkCards"},_.R(_.Sv,{data:function(){return E().perkCards}},{sponsorshipsHubPerkCardViewModel:wNM}),_.R(_.P,{cond:function(){return E().viewAllPerksButton},
then:function(g){return _.R(lHC,{data:g})}}))))},"He");
rym.idomCompat=!0;var lHC=_.O(function(h){var E=h.data;return _.R("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.R(_.Sv,{data:function(){return E().button}},{buttonViewModel:_.$l}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.R("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return E().title}),_.R("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return E().subtitle})))},"Ie");
lHC.idomCompat=!0;_.I9(rym,"yt-sponsorships-hub",{props:{data:_.C6}});_.mQf=_.O(function(h){var E=h.data;return _.R("yt-dual-avatar-view-model",{class:_.CO("ytDualAvatarViewModelHost",h.className),style:_.fO({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var g;return((g=E().badgeCutoutRadius)!=null?g:14)+"px"}})},_.R("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.R(_.Sv,{data:function(){return E().startAvatar}},{avatarViewModel:_.Mq}),_.R(_.Sv,{data:function(){return E().endAvatar}},{avatarViewModel:_.Mq})),_.R(_.Sv,{data:function(){return E().badge}},
{contentPreviewImageViewModel:function(g){return _.R("div",{class:"ytDualAvatarViewModelBadge"},_.R(_.wS,{data:g.data}))}}))},"Je");
_.mQf.idomCompat=!0;var HKn=_.O(function(h){var E=h.data;var g,Z=!((g=_.GF().resolve(_.pl(_.gu)))==null||!g());h=_.Cw(function(){var U,L,d=Z?(U=E().header)==null?void 0:U.backgroundColorDarkMode:(L=E().header)==null?void 0:L.backgroundColorLightMode;if(d!==void 0)return _.uU(d)},void 0,"TDdh7d");
g=_.Cw(function(){var U,L;return Z?(U=E().header)==null?void 0:U.backgroundImagePart1Dark:(L=E().header)==null?void 0:L.backgroundImagePart1Light},void 0,"X0peMe");
var M=_.Cw(function(){var U,L;return Z?(U=E().header)==null?void 0:U.backgroundImagePart2Dark:(L=E().header)==null?void 0:L.backgroundImagePart2Light},void 0,"an0Hzd"),W=_.Cw(function(){return _.nF("HTML_DIR")==="rtl"},void 0,"BltEgb"),z=_.hf("yt-sponsorships-perks-list"),c=!1,I=function(){var U=z.value;
if(U&&!c){var L,d=(L=U.parentElement)==null?void 0:L.parentElement;if(d)for(U=U.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),L=0;L<U.length;++L){var C=U[L];if(C instanceof HTMLElement){d.scrollTo({top:C.offsetTop+C.clientHeight/2-d.clientHeight/2,behavior:"smooth"});c=!0;break}}}};
_.vJ(function(){var U=z.value;if(U&&window.ResizeObserver){var L=new ResizeObserver(I);L.observe(U);_.r9(function(){L.disconnect()})}});
var B={};return _.R("yt-sponsorships-perks-list",{el:z,class:_.CO("ytdSponsorshipsPerksListHost",(B.ytdSponsorshipsPerksListHorizontalPadding=function(){return E().horizontalPaddingEnabled},B))},_.R("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.R("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.fO({"background-color":h})},_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.R(_.P,{cond:g,then:function(U){var L={};return _.R("div",{class:_.CO((L.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,L.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,L.ytdSponsorshipsPerksListFlipped=W,L))},_.R(_.pO,{data:U,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.R(_.P,{cond:M,
then:function(U){var L={};return _.R("div",{class:_.CO((L.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=Z,L.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!Z,L.ytdSponsorshipsPerksListFlipped=W,L))},_.R(_.pO,{data:U,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.R("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.R(_.Sv,{data:function(){var U;
return(U=E().header)==null?void 0:U.dualAvatar}},{dualAvatarViewModel:_.mQf})))),_.R("div",{class:"ytdSponsorshipsPerksListBody"},_.R("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return E().title}),_.R(_.P,{cond:function(){return E().perks},
then:function(U){return _.R(_.SX,{each:U},function(L,d){var C={};return _.R("div",{class:_.CO("ytdSponsorshipsPerksListPerkContainer",(C.ytdSponsorshipsPerksListSelectedPerk=function(){var q=d(),w=E().selectedPerkIndex;return q===w},C))},_.R(_.P,{cond:function(){return d()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.R(_.P,{cond:function(){return L.icon},
then:function(q){return _.R(_.Ni,{icon:function(){return q().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.R("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.R("div",{class:"ytdSponsorshipsPerksListPerkTitle"},L.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.R(_.dK,{text:L.description})),_.R(_.P,{cond:function(){return L.instructions},
then:function(){var q,w;return _.R("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(q=L.instructions)==null?void 0:q.title),_.R("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.R(_.dK,{text:(w=L.instructions)==null?void 0:w.text})))}}))),_.R(_.P,{cond:function(){return L.emoji},
then:function(q){return _.R("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.R(_.SX,{each:function(){return q()}},function(w){return _.R(_.pO,{data:w,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.R(v4l,{data:L}))})}})))},"Ke");
HKn.idomCompat=!0;var v4l=_.O(function(h){var E=h.data;var g=function(z,c){return z===c},Z=function(){var z=E();
z=_.e(z==null?void 0:z.badgesShelf,BWk);return z!==void 0&&z!==null?z:{previousButton:{},nextButton:{}}},M=_.MC("div"),W=function(){var z=M.value;
if(z){var c=z.parentElement;if(c){z=z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var I=0;I<z.length;++I){var B=z[I];if(B instanceof HTMLElement){c.scrollTo({left:B.offsetLeft+B.clientWidth/2-c.clientWidth/2,behavior:"instant"});break}}}}};
_.vJ(function(){var z=M.value;if(z){var c=new ResizeObserver(W);c.observe(z);_.r9(function(){c.disconnect()})}});
return _.R("div",null,_.R(_.P,{cond:function(){return E().badges},
then:function(z){return _.R(DQH,{data:Z},_.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:M},_.R(_.SX,{each:function(){return z()}},function(c,I){var B={},U={},L={};
return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.R(_.P,{cond:function(){return I()>0},
then:function(){return _.R("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.R("div",{class:_.CO("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(B.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return g(I(),E().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!g(I(),E().currentBadgeIndex)},B))},_.R("div",{class:_.CO("ytdSponsorshipsPerksListLoyaltyBadge",(U.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return g(I(),
E().currentBadgeIndex)},U.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!g(I(),E().currentBadgeIndex)},U))},_.R(_.P,{cond:function(){return c.image},
then:function(d){var C={};return _.R("div",{class:_.CO((C.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return g(I(),E().currentBadgeIndex)},C.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!g(I(),E().currentBadgeIndex)},C))},_.R(_.pO,{data:d,
alt:""}))}})),_.R("div",{class:_.CO("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(L.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return g(I(),E().currentBadgeIndex)},L))},c.title)))})))}}))},"Le");
v4l.idomCompat=!0;_.I9(HKn,"yt-sponsorships-perks-list",{props:{data:_.C6}});_.I9(_.O(function(h){return _.R("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.R(_.P,{cond:function(){return h.data().image},
then:function(E){return _.R(_.pO,{className:"ytwFantasyEmptyStateViewModelImage",data:E,ariaHidden:!0,alt:""})}}),_.R(_.dK,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return h.data().title}}),_.R(_.dK,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return h.data().subtitle}}),_.R(_.Sv,{data:function(){return h.data().primaryButton}},{buttonViewModel:function(E){return _.R(_.$l,{data:E.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Me"),"ytw-fantasy-empty-state-view-model",{props:{data:_.C6}});var $Ql;var K4n=_.O(function(h){var E=h.data;var g=h.uniqueId;var Z=h.overrides;h=_.Cw(function(){var M,W=((M=E().timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:g(),timings:W,experimentEnabled:W.length>0,enabled:W.length>0}},void 0,"hiuXI");
return _.R("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.R(wLF,{settings:h},_.R(_.Sv,{data:function(){return E().buttonRenderer}},{buttonRenderer:function(M){return _.R(_.dS,{data:M.data,
buttonOverrides:Z})}})))},"Ne");
K4n.idomCompat=!0;_.I9(K4n,"timed-animation-button-renderer",{props:{data:_.C6,uniqueId:_.C6,overrides:_.C6}});var NY=function(){var h=_.D.apply(this,arguments)||this;h.hideJoinButtonBeforeSubscribed=_.J("hide_join_button_before_subscribed");h.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return h};
_.f(NY,_.D);_.p=NY.prototype;_.p.hasShowDialogCommand=function(h){return!!_.e(h,t1F)};
_.p.configureRendererStamper=function(){return{"data.avatarStack":{id:"avatar-stack",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model"}}},"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.updateJoinButtonOverrides=function(){var h,E;(h=_.UB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(E=h.polymerController)==null||E.set("overrides",this.joinButtonOverrides);if(h=_.UB(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))h.overrides=this.joinButtonOverrides};
_.p.handleButtonRefreshAction=function(h){if(h=_.e(h,ZAC))this.set("data.membershipButton",h.membershipButton),this.notifyPath("data.membershipButton")};
_.p.onYtServiceRequestError=function(h){_.uv(this.hostElement,h.detail.error.message)};
_.p.onKeydown=function(h){if(h.key==="Enter"){var E;(E=this.data)!=null&&E.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.p.handleUnsubscribeAction=function(){var h,E,g;((h=this.data)==null?void 0:(E=h.membershipButton)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.style)==="STYLE_PRIMARY"&&_.UB(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ze.Object.defineProperties(NY.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.subscriptionStateEntity)==null||!h.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.data)==null?void 0:h.membershipButton,g;h=(E==null?void 0:E.buttonRenderer)||_.e(E==null?void 0:(g=E.timedAnimationButtonRenderer)==null?void 0:g.buttonRenderer,_.Gh);return(h==null?void 0:h.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(h==null?void 0:h.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(h==null?void 0:h.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var h;if(this.hasShowDialogCommand((h=this.data)==null?void 0:h.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var h;if(this.hasShowDialogCommand((h=this.data)==null?void 0:h.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.attributedTitle)}}});
NY.prototype.onYtServiceRequestError=NY.prototype.onYtServiceRequestError;NY.prototype.updateJoinButtonOverrides=NY.prototype.updateJoinButtonOverrides;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],NY.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],NY.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],NY.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Td),_.V("design:type",Object)],NY.prototype,"ironButtonState",void 0);_.Y([_.x(),_.V("design:type",Object)],NY.prototype,"data",void 0);_.Y([_.S("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"hideJoin",null);
_.Y([_.x(),_.V("design:type",String)],NY.prototype,"subscribeKey",void 0);_.Y([_.x({selectorArgs:["subscribeKey"],selector:W7q}),_.V("design:type",Object)],NY.prototype,"subscriptionStateEntity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NY.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.Y([_.S("subscriptionStateEntity"),_.x({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"subscribed",null);
_.Y([_.S("subscribed","data.membershipButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"joinButtonOverrides",null);_.Y([_.S("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"channelNameTabIndex",null);_.Y([_.S("data.navigationEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],NY.prototype,"channelNameRole",null);
_.Y([_.S("data.attributedTitle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],NY.prototype,"hasAttributedTitle",null);_.Y([_.Nm("joinButtonOverrides"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NY.prototype,"updateJoinButtonOverrides",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NY.prototype,"onYtServiceRequestError",null);
_.Y([_.K({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],NY);
var OKD=_.BK()(NY,"ytd-video-owner-renderer",function(){if($Ql===void 0){var h=document.createElement("template");_.N(h,'\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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden$="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" 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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);$Ql=h}h=$Ql;return h},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.I9(_.O(function(h){var E=h.data;var g;h=_.G(_.Bm(!((g=_.YY("yt-mini-app-is-theater-mode-enabled"))==null||!g),void 0,"i2pjVd"));var Z=h.next().value,M=h.next().value;g=_.G(_.Bm(!1,void 0,"ga7V5c"));var W=g.next().value,z=g.next().value;_.vJ(function(){var B=_.vK(window,i3M,function(){z(IMM())});
_.r9(function(){ls(B)})});
var c;g=(c=_.GF().resolve(_.pl(aoF)))!=null?c:function(){return _.R("div",null)};
_.QX("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){M(!0);_.Xt("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.QX("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){M(!1);_.Xt("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
c={};h={};var I={};return _.R("mini-app-play-page-renderer",{class:_.CO("miniAppPlayPageRendererHost",(c.miniAppPlayPageRendererHostDetailsView=function(){return!Z()},c))},_.R("div",{class:_.CO("miniAppPlayPageRendererGameContainer",(h.miniAppPlayPageRendererGameContainerDetailsView=function(){return!Z()},h))},_.R(_.Sv,{data:function(){return E().containerViewModel}},{miniAppContainerViewModel:xQD}),_.R(_.P,{cond:function(){return E().channel&&E().subscribeButton},
then:function(){var B={};return _.R("div",{class:_.CO("miniAppPlayPageRendererChannelContainer",(B.miniAppPlayPageRendererHideVisibility=function(){return W()},B))},_.R(_.Sv,{data:function(){return E().channel}},{videoOwnerRenderer:function(U){return _.R(OKD,{data:U.data})}}),_.R(_.Sv,{data:function(){return E().subscribeButton}},{subscribeButtonViewModel:function(U){return _.R(_.Mb,{data:U.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.R(_.P,{cond:function(){return!Z()&&E().description},
then:function(){var B={};return _.R("div",{class:_.CO("miniAppPlayPageRendererMiniAppDescriptionWrapper",(B.miniAppPlayPageRendererHideVisibility=function(){return W()},B))},_.R("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return E().description}))}})),_.R("div",{class:_.CO("miniAppPlayPageRendererPlayNextContainer",(I.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!Z()},I.miniAppPlayPageRendererHideVisibility=function(){return W()},I))},_.R(_.Sv,{data:function(){return E().sectionList}},
{sectionListRenderer:g})))},"Oe"),"mini-app-play-page-renderer",{props:{data:_.C6}});var tv=function(){var h=_.D.apply(this,arguments)||this;h.isSearch=!1;h.isConstrainedList=!1;h.hasChipsBar=!1;h.inReplyPanel=!1;h.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"}};h.monitorScroll=!0;h.SCROLL_ANIMATION_DURATION_MS=300;h.nextContinuation={continuationType:"sectionListContinuation"};return h};
_.f(tv,_.D);_.p=tv.prototype;
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(h){switch(h.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-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:_.J("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.J("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.p.created=function(){var h=this;this.JSC$17053_scrollAnimation=new _.UA(function(E){h.hostElement.scrollTop=E})};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.p.getItemsPath=function(){return"data.contents"};
_.p.replacePrimaryContent=function(h){this.set("data.contents",h)};
_.p.computeHasSortFilter=function(h){return!!h&&!!h.sortFilterSubMenuRenderer};
_.p.computeShouldScrollInPanel=function(h){var E;return!!(h==null?0:(E=h.scrollPaneStyle)==null?0:E.scrollable)};
_.p.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.jg(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.p.scrollToTop=function(){this.hostElement.scrollTop=0};
_.p.scrollToItemSection=function(h){if(h=this.getItemByIdentifier(h))h=this.getScrollPositionForItem(h),this.hostElement.scrollTop!==h&&this.JSC$17053_scrollAnimation.start(this.hostElement.scrollTop,h,this.SCROLL_ANIMATION_DURATION_MS)};
_.p.getItemByIdentifier=function(h){var E=this.contents.querySelectorAll("ytd-item-section-renderer");if(E&&E.length!==0){var g=Array.from(E).findIndex(function(Z){return Z.sectionIdentifier===h});
return E[g===-1?0:g]}};
_.p.getScrollPositionForItem=function(h){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===h)return 0;h=_.s6(h).y+this.hostElement.scrollTop-_.s6(this.hostElement).y;return Math.min(h,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ze.Object.defineProperties(tv.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.targetId)==="browse-feedFEclips"}}});
tv.prototype.onScroll=tv.prototype.onScroll;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],tv.prototype,"ytLazyListBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],tv.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.t(_.N3m),_.V("design:type",Object)],tv.prototype,"ytBooleanLogicBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],tv.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tv.prototype,"data",void 0);_.Y([_.x({value:2}),_.V("design:type",Number)],tv.prototype,"initialCount",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],tv.prototype,"autoFill",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.V("design:type",Boolean)],tv.prototype,"hasSortFilter",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.V("design:type",Boolean)],tv.prototype,"hideBottomSeparator",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.V("design:type",Boolean)],tv.prototype,"shouldScrollInPanel",void 0);
_.Y([_.x(),_.V("design:type",Object)],tv.prototype,"isSearch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],tv.prototype,"isConstrainedList",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],tv.prototype,"responsiveSizing",void 0);_.Y([_.x(),_.V("design:type",Object)],tv.prototype,"hasChipsBar",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],tv.prototype,"pageSubtype",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],tv.prototype,"engagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],tv.prototype,"liveChatEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],tv.prototype,"inReplyPanel",void 0);_.Y([_.Sg("#action-button"),_.V("design:type",HTMLElement)],tv.prototype,"actionButton",void 0);_.Y([_.x(),_.V("design:type",Object)],tv.prototype,"scrollUpButtonData",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],tv.prototype,"engagementPanelDropdown",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],tv.prototype,"engagementPanelDialog",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],tv.prototype,"isClipList",null);_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],tv.prototype,"monitorScrollElement",void 0);_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],tv.prototype,"contents",void 0);
_.Y([_.f3("scroll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tv.prototype,"onScroll",null);_.Y([_.K({is:"ytd-section-list-renderer",disableElementRegistration:!0})],tv);
var n4D=_.BK()(tv,"ytd-section-list-renderer",function(){if(zmB===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);zmB=h}h=zmB;return h},{mode:1});var XNn;var YNM;var szf;var V5C;var ST=function(){return _.D.apply(this,arguments)||this};
_.f(ST,_.D);ST.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
ST.prototype.onLikeButtonClick=function(h){h.stopPropagation();h.preventDefault()};
_.ze.Object.defineProperties(ST.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)!=null&&h.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)})}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ST.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],ST.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ST.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ST.prototype,"data",void 0);
_.Y([_.x({selectorArgs:["data.likeStatusEntityKey"],selector:kP}),_.V("design:type",Object)],ST.prototype,"likeStatusEntity",void 0);_.Y([_.S("data","likeStatusEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],ST.prototype,"likeButtonRenderer",null);_.Y([_.K({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],ST);
_.X(ST,"ytd-slim-metadata-toggle-button-renderer",function(){if(V5C!==void 0)return V5C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return V5C=h},{mode:1});var xy=function(){var h=_.D.apply(this,arguments)||this;h.minimizePipBreakages=_.J("web_pip_minimize_breakages");h.showEqualizer=_.J("web_enable_playlist_video_lockup_equalizer");h.watchColorUpdate=_.J("kevlar_watch_color_update");h.actionMap={};return h};
_.f(xy,_.D);_.p=xy.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.p.computeEditableClass=function(h){return h&&h.menu?"editable":""};
_.p.computeSelected=function(h){return!(h==null||!h.selected)};
_.p.computeUseColorPalette=function(h){return!!((h==null?0:h.lightColorPalette)&&(h==null?0:h.darkColorPalette))};
_.p.computeLargerPlaylistThumbs=function(h,E){return _.J("web_enable_playlist_bigger_thumbnails")&&!E};
_.p.computeShowPlayIcon=function(h){return!!h&&_.J("web_use_play_icon_for_playlist_panel_video_renderer")};
_.p.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.p.onYtServiceRequestSent=function(h,E){E.endpoint&&this.isHideEnclosingAction(E.endpoint)&&!this.selected&&TsD(_.Uk(),this.data.videoId)};
_.p.isHideEnclosingAction=function(h){var E=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",h);h=this.get("likeEndpoint.status",h)==="INDIFFERENT";return E||h};
_.p.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.p.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ze.Object.defineProperties(xy.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var h;return!!(this.withinMiniplayer&&((h=this.data)==null?0:h.actionButtons))}}});
xy.prototype.onYtServiceRequestSent=xy.prototype.onYtServiceRequestSent;xy.prototype.canReorderChanged=xy.prototype.canReorderChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],xy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],xy.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.LV),_.V("design:type",Object)],xy.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xy.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"withinMiniplayer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xy.prototype,"minimizePipBreakages",void 0);_.Y([_.x({computed:"computeSelected(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"selected",void 0);
_.Y([_.x({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"useColorPalette",void 0);_.Y([_.x({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"largerPlaylistThumbs",void 0);_.Y([_.x(),_.V("design:type",Object)],xy.prototype,"showEqualizer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"canReorder",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"touchPersistentDragHandle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"handleIsHovered",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xy.prototype,"watchColorUpdate",void 0);_.Y([_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],xy.prototype,"reorderIcon",null);
_.Y([_.x({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.V("design:type",Boolean)],xy.prototype,"showPlayIcon",void 0);_.Y([_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],xy.prototype,"playIcon",null);_.Y([_.S("largerPlaylistThumbs"),_.V("design:type",Number),_.V("design:paramtypes",[])],xy.prototype,"thumbnailWidth",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xy.prototype,"showActionButtons",null);
_.Y([_.lq("canReorder"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xy.prototype,"canReorderChanged",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],xy.prototype,"onYtServiceRequestSent",null);_.Y([_.K({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],xy);
_.X(xy,"ytd-playlist-panel-video-renderer",function(){if(szf!==void 0)return szf;var h=document.createElement("template");_.N(h,'\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      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return szf=h},{mode:2});var wY=function(){return _.D.apply(this,arguments)||this};
_.f(wY,_.D);wY.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wY.prototype,"data",void 0);_.Y([_.K({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],wY);
_.X(wY,"ytd-playlist-panel-supported-items",function(){if(YNM!==void 0)return YNM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YNM=
h},{mode:1});PsH=!0;ref("\\P{N}");var jcM;var k6D=_.NH("END_OF_PLAYLIST",void 0,"End of playlist"),yyl=_.NH("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),D8=function(){var h=_.D.apply(this,arguments)||this;h.minimizePipBreakages=_.J("web_pip_minimize_breakages");h.hideHeaderText=!1;h.useColorPalette=!1;h.collapsed=!1;h.collapsedPreServerOverride="not_tracked";h.isHovered=!1;h.modernPanels=_.J("kevlar_watch_modern_panels");h.expandLabel=_.NH("MINIPLAYER_EXPAND_LABEL");h.collapseLabel=_.NH("MINIPLAYER_COLLAPSE_LABEL");
h.isFloating=!1;h.metaPanel=!1;h.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};h.currentIndex=void 0;return h};
_.f(D8,_.D);_.p=D8.prototype;
_.p.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.created=function(){this.scrollThrottle=new _.TD(this.onThrottledScroll,1E3,this)};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.computeOverflowMenuData=function(h){return h&&h.menu?h.menu:null};
_.p.computeCollapsible=function(h){return!h};
_.p.computeHasPlaylistButtons=function(h){return!(!h||!h.playlistButtons)};
_.p.computeHasSeparateSaveButton=function(h){return!(!h||!h.saveButton)};
_.p.computeHasToolbarButton=function(h,E){return!(!h||!(E||h.saveButton||h.menu))};
_.p.computePlaylistType=function(h){if(h&&h.playlistId)return h.playlistId.substring(0,4)};
_.p.computeCanReorder=function(h){return h?h.playlistId&&h.playlistId.startsWith("TLPQ")?!0:!!h.isEditable&&!h.isInfinite:!1};
_.p.attached=function(){var h=this;try{_.GF().resolve(_.oS).setPlaylistComponent(this.hostElement)}catch(E){if(_.J("kevlar_park_on_playlist_token_killswitch"))throw E;_.RS().parkOrScheduleJob(function(){_.GF().resolve(_.oS).setPlaylistComponent(h.hostElement)},2,"ci")}_.oa(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.p.detached=function(){_.Ia(this.hostElement)};
_.p.computeTrailingIcon=function(h,E,g){return g?E?"yt-icons:collapse":"yt-icons:close":E?"yt-icons:expand":_.J("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.p.computeIndexMessage=function(h,E){return JH$(h+1)+" / "+JH$(E)};
_.p.onRenderStamperFinished=function(){if(this.scrollForStampDom){var h=!0;this.isHovered&&(h=!1);if(this.collapsed||this.hidden)h=!1;h&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.p.collapseChanged=function(){var h=this;this.collapsed||(_.Pw(this.ytTaskEmitterBehavior.getTaskManager(),function(){h.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.p.hiddenChanged=function(){var h=this;this.hidden||_.Pw(this.ytTaskEmitterBehavior.getTaskManager(),function(){h.scrollToCurrentVideo()})};
_.p.setupReordering=function(){var h=_.UB(this.hostElement).querySelector("#items");f5l?_.L7n(this.ytReorderableBehavior,h,h,"playlist-drag-handle"):_.L7n(this.ytReorderableBehavior,h,h)};
_.p.scrollToCurrentVideo=function(){var h=this;_.KP.addJob(function(){var E=_.UB(h.hostElement).querySelector("#items");E&&(E.style.setProperty("padding-bottom",""),(E=_.UB(h.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]"))&&h.maybeScrollIntoContainerView(E))},8)};
_.p.maybeScrollIntoContainerView=function(h){if(this.minimizePipBreakages){var E=_.Yp(h);if(!w2(E).getWindow()||!E)return}E=h.parentElement||_.$S(document);var g=E||_.$S(document);var Z=_.s6(h),M=_.s6(g),W=_.Y0F(g);if(g==_.$S(document)){var z=Z.x-g.scrollLeft;Z=Z.y-g.scrollTop}else z=Z.x-M.x-W.left,Z=Z.y-M.y-W.top;h=Kik(h);M=g.clientHeight-h.height;W=g.scrollLeft;var c=g.scrollTop;W+=z-(g.clientWidth-h.width)/2;g=new _.nt(W,c+(Z-M/2));E.scrollLeft=g.x;E.scrollTop=g.y};
_.p.dataChanged=function(){var h=this;_.UDM(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.pQ(this,function(){_.xW(h.ytTaskEmitterBehavior.getTaskManager(),function(){h.ytRendererBehavior.markDirty();h.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.p.onFullBleedPlayerChanged=function(){_.J("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.onFullscreenChanged=function(){_.J("web_watch_imax_theater_mode")||_.J("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.p.updateNowPlayingOverlay=function(){_.J("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.p.onPlaylistLockupNowPlaying=function(h,E){E&&(this.activeNowPlayingRenderer=E);this.updateNowPlayingOverlay()};
_.p.onScroll=function(){this.scrollThrottle.fire()};
_.p.onThrottledScroll=function(){var h=this;_.xW(this.ytTaskEmitterBehavior.getTaskManager(),function(){h.ytRendererBehavior.markDirty()})};
_.p.onToggleExpanded=function(h){!this.collapsible||h&&(_.zw(h).tagName==="A"||_.MI(_.Gw(h),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.p.setCollapsed=function(h){this.collapsible&&(this.collapsed=h,_.U7(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.p.handleCollapsedFromData=function(h){if(h){var E=h.playlistPanelCollapseState;E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||E==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),E=E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==E&&this.setCollapsed(E)):this.currentPlaylistId!==h.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(E=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==E&&this.setCollapsed(E),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=h.playlistId}};
_.p.handleDrop=function(h){var E=h.currDragItem;h=E.data.playlistSetVideoId;var g=_.O4(E.parentNode.childNodes,E),Z=void 0;g>0&&(Z=E.parentNode.childNodes[g-1].data.playlistSetVideoId);E=_.Uk();if(E.responsePlaylistData&&E.responsePlaylistData.contents){var M=f7O(h,E.responsePlaylistData);E.responsePlaylistData=(0,_.Kt.unsafeClone)(E.responsePlaylistData);waZ(E.responsePlaylistData.contents,M,g);E.queueProxy?fkD(E.queueProxy,M,g,h,Z):E.playlistProxy&&fkD(E.playlistProxy,M,g,h,Z);_.LS(E,_.jn(E,E.response?
E.response.autoplayRenderer:void 0))}};
_.p.handleDarkModeChange=function(h){h!==this.isDarkTheme&&(this.isDarkTheme=h)};
_.p.colorPaletteChanged=function(){var h,E=((h=this.data)==null?void 0:h.contents)||[],g;h=_.G(E);for(E=h.next();!E.done;E=h.next()){E=E.value;var Z=void 0;if((Z=E.playlistPanelVideoRenderer)==null?0:Z.selected){h=E.playlistPanelVideoRenderer;Z=E=void 0;(g=this.isDarkTheme?(E=h)==null?void 0:E.darkColorPalette:(Z=h)==null?void 0:Z.lightColorPalette)&&_.v$(this.hostElement,g);break}}this.useColorPalette=!!g};
_.ze.Object.defineProperties(D8.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.moveThreeDotsMenuToMainHeader)&&_.J("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var h=_.GF().resolve(_.pl(_.oS)),E;if(((E=this.data)==null?0:E.contents)&&(h==null?0:h.hasAutoplayData())){var g;if(((g=this.playlistLoopStateEntity)==null?void 0:g.state)==="PLAYLIST_LOOP_STATE_ONE"){if(h=this.data.currentIndex,h!==void 0){var Z,M;var W=(Z=this.data.contents[h])==null?void 0:(M=Z.playlistPanelVideoRenderer)==null?void 0:M.title}}else{var z,c=(z=_.e(h.getAutoplayEndpoint(),_.MH))==null?void 0:z.videoId,I,B;W=(I=this.data.contents.find(function(U){var L;
return((L=U.playlistPanelVideoRenderer)==null?void 0:L.videoId)===c}))==null?void 0:(B=I.playlistPanelVideoRenderer)==null?void 0:B.title}return W}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)!=null&&h.nextVideoLabel?this.nextVideoTitle?_.Wp(this.data.nextVideoLabel)+":":k6D:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var h;if(((h=this.data)==null?0:h.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.J("web_mix_long_byline_from_data"))return _.MR(yyl);var E;return(E=this.data)==null?void 0:E.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.playlistButtons)==null?void 0:(g=E.menuRenderer)==null?void 0:g.topLevelButtons;if(Z)for(h=_.G(Z),E=h.next();!E.done;E=h.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var h;return!!(this.collapsed&&((h=this.data)==null?0:h.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
D8.prototype.colorPaletteChanged=D8.prototype.colorPaletteChanged;D8.prototype.onPlaylistLockupNowPlaying=D8.prototype.onPlaylistLockupNowPlaying;D8.prototype.updateNowPlayingOverlay=D8.prototype.updateNowPlayingOverlay;D8.prototype.onFullscreenChanged=D8.prototype.onFullscreenChanged;D8.prototype.onFullBleedPlayerChanged=D8.prototype.onFullBleedPlayerChanged;D8.prototype.dataChanged=D8.prototype.dataChanged;D8.prototype.hiddenChanged=D8.prototype.hiddenChanged;D8.prototype.collapseChanged=D8.prototype.collapseChanged;
D8.prototype.onRenderStamperFinished=D8.prototype.onRenderStamperFinished;D8.prototype.onMouseLeave=D8.prototype.onMouseLeave;D8.prototype.onMouseEnter=D8.prototype.onMouseEnter;_.Y([_.t(_.F3),_.V("design:type",Object)],D8.prototype,"ironResizableBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(Pil.YtPlaylistPanelBehavior),_.V("design:type",Object)],D8.prototype,"ytPlaylistPanelBehavior",void 0);_.Y([_.t(_.NJ.YtTaskEmitterBehavior),_.V("design:type",Object)],D8.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.t(_.jlD),_.V("design:type",Object)],D8.prototype,"ytReorderableBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],D8.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],D8.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"autoplayData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],D8.prototype,"withinMiniplayer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"minimizePipBreakages",void 0);
_.Y([_.x({computed:"setMenuData_(data)"}),_.V("design:type",Object)],D8.prototype,"menuRendererData",void 0);_.Y([_.x({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],D8.prototype,"overflowMenuDataTopRow",void 0);_.Y([_.x({computed:"computeOverflowMenuData(data)"}),_.V("design:type",Object)],D8.prototype,"overflowMenuData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"hideHeaderText",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"useColorPalette",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.V("design:type",Boolean)],D8.prototype,"collapsible",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"collapsed",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],D8.prototype,"hidden",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.V("design:type",Boolean)],D8.prototype,"hasPlaylistButtons",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.V("design:type",Boolean)],D8.prototype,"hasSeparateSaveButton",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.V("design:type",Boolean)],D8.prototype,"hasToolbar",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.V("design:type",String)],D8.prototype,"playlistType",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"isHovered",void 0);_.Y([_.x({selectorArgs:["playlistLoopStateEntityKey"],selector:_.isa}),_.V("design:type",Object)],D8.prototype,"playlistLoopStateEntity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"modernPanels",void 0);
_.Y([_.x({value:56}),_.V("design:type",Number)],D8.prototype,"scrollMargin",void 0);_.Y([_.x({computed:"computeCanReorder(data)"}),_.V("design:type",Boolean)],D8.prototype,"canReorder",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"expandLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"collapseLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"isFloating",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],D8.prototype,"metaPanel",void 0);_.Y([_.x({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.V("design:type",String)],D8.prototype,"trailingIcon",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],D8.prototype,"isDarkTheme",void 0);_.Y([_.x({selector:_.so}),_.V("design:type",Boolean)],D8.prototype,"miniplayerIsActive",void 0);_.Y([_.x({selector:function(h){return h.watch.playerState}}),
_.V("design:type",Number)],D8.prototype,"playerState",void 0);_.Y([_.x({selector:_.YP}),_.V("design:type",Boolean)],D8.prototype,"isFullscreen",void 0);_.Y([_.x({selector:_.XN}),_.V("design:type",Boolean)],D8.prototype,"isTheaterMode",void 0);_.Y([_.x(),_.V("design:type",Object)],D8.prototype,"activeNowPlayingRenderer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],D8.prototype,"moveThreeDotMenuToTopRow",null);
_.Y([_.S("data","autoplayData","playlistLoopStateEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],D8.prototype,"nextVideoTitle",null);_.Y([_.S("data","nextVideoTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],D8.prototype,"nextVideoLabel",null);_.Y([_.S("collapsed"),_.V("design:type",String),_.V("design:paramtypes",[])],D8.prototype,"buttonAriaLabel",null);
_.Y([_.S("data","playlistId","longBylineText"),_.V("design:type",Object),_.V("design:paramtypes",[])],D8.prototype,"mixLongByLine",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],D8.prototype,"playlistLoopStateEntityKey",null);_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"onMouseEnter",null);
_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"onMouseLeave",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],D8.prototype,"showNextVideoHeader",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"onRenderStamperFinished",null);
_.Y([_.Nm("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"collapseChanged",null);_.Y([_.Nm("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"hiddenChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"dataChanged",null);
_.Y([_.S("isTheaterMode","isFullscreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],D8.prototype,"isFullBleedPlayer",null);_.Y([_.Nm("isTheaterMode","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"onFullBleedPlayerChanged",null);_.Y([_.Nm("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"onFullscreenChanged",null);
_.Y([_.Nm("playerState","miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"updateNowPlayingOverlay",null);_.Y([_.f3("yt-playlist-lockup-now-playing-active"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],D8.prototype,"onPlaylistLockupNowPlaying",null);
_.Y([_.Nm("data","isDarkTheme"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],D8.prototype,"colorPaletteChanged",null);_.Y([_.K({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],D8);
_.F4f=_.BK()(D8,"ytd-playlist-panel-renderer",function(){if(XNn===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);XNn=h}h=XNn;return h},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var AyM;var lt=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework");return h};
_.f(lt,_.D);lt.prototype.computeShouldButtonBeVertical=function(h,E){return h||E};
lt.prototype.onYtServiceRequestSent=function(h,E){(h=_.e(E.endpoint,_.XD))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.xx("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:h.status})):this.handleLikeEndpoint(h))};
lt.prototype.computelikeStatusEntityKey=function(h){return h==null?void 0:h.likeStatusEntityKey};
lt.prototype.handleLikeEndpoint=function(h){h.status==="LIKE"?this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1):h.status==="DISLIKE"?this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17079_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17079_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ze.Object.defineProperties(lt.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var h;return NFq(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(h=this.likeStatusEntity)==null?void 0:h.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var h;if(this.data&&((h=this.data)==null||!h.hideDislikeButton)){var E;return NFq(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(E=this.likeStatusEntity)==null?void 0:E.likeStatus)}}}});
lt.prototype.onYtServiceRequestSent=lt.prototype.onYtServiceRequestSent;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lt.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lt.prototype,"vertical",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],lt.prototype,"textTransform",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lt.prototype,"useShortsIcon",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lt.prototype,"underIconLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lt.prototype,"modern",void 0);_.Y([_.x({value:"left"}),_.V("design:type",String)],lt.prototype,"buttonTooltipPosition",void 0);
_.Y([_.x(),_.V("design:type",Object)],lt.prototype,"overrides",void 0);_.Y([_.Sg("#like-button"),_.V("design:type",Object)],lt.prototype,"JSC$17079_ytdLikeToggleButtonRenderer",void 0);_.Y([_.Sg("#dislike-button"),_.V("design:type",Object)],lt.prototype,"JSC$17079_ytdDislikeToggleButtonRenderer",void 0);_.Y([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],lt.prototype,"likeButton",null);
_.Y([_.S("data","likeStatusEntity.likeStatus","useShortsIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],lt.prototype,"dislikeButton",null);_.Y([_.x({computed:"computelikeStatusEntityKey(data)"}),_.V("design:type",String)],lt.prototype,"likeStatusEntityKey",void 0);_.Y([_.x({selectorArgs:["likeStatusEntityKey"],selector:kP}),_.V("design:type",Object)],lt.prototype,"likeStatusEntity",void 0);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],lt.prototype,"onYtServiceRequestSent",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],lt);
var Tjm=_.BK()(lt,"ytd-like-button-renderer",function(){if(AyM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);AyM=h}h=AyM;return h},{mode:1});_.bKM={};
_.bKM.YtConditionalRendererBehavior=[_.T.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(h,E){var g=this,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:if(!E)return g.hidden=!0,g.showSpinner=!1,W.return();if((Z=h)==null?0:(M=Z.visibilityCondition)==null?0:M.mode)switch(h.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return W.jumpTo(5);default:return W.jumpTo(6)}g.showSpinner=
!1;g.hidden=!0;return W.yield(g.shouldShow_(h),4);case 4:g.hidden=!W.yieldResult;W.jumpTo(0);break;case 5:return W.yield(g.shouldShow_(h),8);case 8:g.showSpinner=W.yieldResult;g.hidden=!1;W.jumpTo(0);break;case 6:return g.showSpinner=!1,W.yield(g.shouldShow_(h),9);case 9:g.hidden=!W.yieldResult,_.SK(W)}})},
shouldShow_:function(h){return h&&h.supportedDatas&&h.supportedDatas.rendererVisibilityConditionData&&h.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(h.supportedDatas.rendererVisibilityConditionData.showIf):h&&h.visibilityCondition&&h.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(h.visibilityCondition.showIf):h&&h.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(h.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(h){switch(h){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(h){switch(h){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var h=_.BX(this.hostElement,"yt-get-mdx-status");return h.length==1&&h[0].connected},
isLocationPermissionGranted_:function(){var h;return _.a(function(E){return E.nextAddress==1?navigator.permissions?E.yield(navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2):E.nextAddress!=2?(h=E.yieldResult,E.return(Promise.resolve(h.state==="granted"))):E.return(Promise.resolve(!1))})}}];var u1B=function(h,E){E=E===void 0?{}:E;var g=function(Z){var M=document.createElement(h),W;var z=(W=M.polymerController)!=null?W:M;CHz(M,z,Z,E);return M};
g.debugName=h+" (CoW wrapped)";return g}("yt-icon",{callbackProps:["onKeydown"]}),Qzl=_.J("kevlar_use_wil_icons")?_.O(function(h){var E=h.icon;
var g=h.active;var Z=h.className;var M=h.style;var W=h.dataSelected;var z=h.dataDisabled;var c=h.role;var I=h.themeOverride;var B=h.animateIcon;var U=h.ariaHidden;var L=h.ariaExpanded;var d=h.ariaLabel;var C=h.tabindex;var q=h.id;var w=h.iconFilter;var r=h.onKeydown;var v=function(){var k=E==null?void 0:E(),y=null,A=void 0;k&&(k=FpC(k),k=A3x(k),k.length&&(y=k[1],A=k[0]));return{iconName:y,iconSetName:A}},H=function(){return Avk(v().iconName,g==null?void 0:g(),void 0,void 0,v().iconSetName,_.GF().resolve(_.JW))},
u=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:w==null?void 0:w()}};
return _.R(_.P,{cond:B,then:function(){return _.R(u1B,{icon:E,active:g,className:Z,style:M,dataSelected:W,dataDisabled:z,role:c,themeOverride:I,ariaHidden:U,ariaExpanded:L,ariaLabel:d,tabindex:C,id:q,iconFilter:w,onKeydown:r})},
else:function(){return _.R(_.P,{cond:H,then:function(k){return _.R("span",{class:_.CO("ytIconWrapperHost",Z),role:c,"aria-label":d,"aria-hidden":U,tabindex:function(){return isNaN(Number(C==null?void 0:C()))?void 0:Number(C==null?void 0:C())},
id:q,style:M,"on:keydown":_.J7(function(y){return void(r==null?void 0:r(y))})},_.R(j$O,{data:k,
options:u}))}})}})},"Pe"):u1B;var hVG=function(h){var E=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];gPO();_.Wu("ytglobal.ytUtilActivityCallback_",function(){_.U7(h,"yt-user-activity")});
new pI(function(){return E.JSC$17095_onMouseMove});
document.addEventListener("scroll",function(){return E.onScroll});
window.addEventListener("resize",function(){return E.onResize})},E$C=function(h,E,g){E in h.eventJobIds||(g=_.xu().addLowPriorityJob(function(){_.Gq();
delete h.eventJobIds[E]},g),h.eventJobIds[E]=g)};
hVG.prototype.onScroll=function(h){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):h.target===document&&E$C(this,"scroll",200)};
hVG.prototype.onResize=function(){E$C(this,"resize",200)};
hVG.prototype.JSC$17095_onMouseMove=function(){E$C(this,"mousemove",100)};
_.tS=function(h){h.scrollEventsToIgnore+=1;h.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){h.scrollEventsToIgnore--},500))};var g$i=function(h){this.element=h;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
g$i.prototype.showFeedbackDialog=function(h,E,g,Z){var M=ZdI();if(!M)return!1;var W=$UV();W.productId=M;E&&(W.flow="submit",W.report={description:E});g&&(ZdI()==="59"?W.callback=_.k3(function(){_.vT("userFeedbackEvent",{});g()}):W.callback=_.k3(g));
W.bucket=Z||_.nF("GOOGLE_FEEDBACK_BUCKET","Other");MqC(W);h=WZC(this,"GFEEDBACK",h);try{_.kbD(W,h)}catch(z){return _.Vy(z),!1}return!0};
g$i.prototype.showHelpDialog=function(h,E,g){var Z=this,M=ZdI();if(!M)return!1;var W={helpCenterPath:"/youtube",productData:WZC(this,"GUIDED_HELP",g)};MqC(W);var z=$UV();z.context=h||W.productData.context||"default";z.defaultHelpArticleId=E;z.enableSendFeedback=!0;(_.yy("gapi.load")||function(c,I){return I()})("client",function(){try{var c=U6m(M,W);
if(_.J("web_always_load_chat_support")&&!Z.chatSupportLoaded)try{c.JSC$9976_loadChatSupport(z),Z.chatSupportLoaded=!0}catch(I){}c.startHelp(z)}catch(I){_.Vy(I)}})};
var ZdI=function(){var h=_.nF("GOOGLE_FEEDBACK_PRODUCT_ID");h||_.Vy(Error("mi"));return h},MqC=function(h){h&&(h.locale=_.J("kevlar_help_use_locale")?_.nF("INNERTUBE_CONTEXT_HL","en"):_.nF("HTML_LANG","en"))},WZC=function(h,E,g){var Z=h.productData;
delete Z.origin;Z.device=_.jq();var M;a:{if(M=document.createElement("canvas")){var W=M.getContext("experimental-webgl",{stencil:!0});if(W){var z=W.getExtension("WEBGL_debug_renderer_info");if(z){M=W.getParameter(z.UNMASKED_RENDERER_WEBGL);break a}}if(W=M.getContext("webgl")){M=W.getParameter(W.RENDERER);break a}}M=null}Z.gpu=M;Z.isSDC=!!_.nF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(M=_.nF("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Kt.extend(Z,M);_.vhu(E,Z);_.Hyq(Z);(h=_.U7(h.element,"yt-get-autonav-pause-debug-state"))&&
h.length&&(Z.autonav_pause_state=h[0]);h=_.S8();Z.browser_resolution=h.width+"\u00d7"+h.height+"@"+(window.devicePixelRatio||1)+"x";g&&_.Kt.extend(Z,g);return Z};
g$i.prototype.resetProductData=function(){this.productData={}};var paC=function(h){this.feedbackManager=new g$i(h)};
paC.prototype.showFeedbackDialog=function(h,E,g,Z){return this.feedbackManager.showFeedbackDialog(h,E,g,Z)};
paC.prototype.showHelpDialog=function(h,E,g){return this.feedbackManager.showHelpDialog(h,E,g)};var Guc=function(){this.baseUrl="";this.aTag=document.createElement("a")},J_M=function(h,E,g){g=g===void 0?{}:g;
g.pbj||(g.pbj=1);g=_.O4W(E,g);h.baseUrl&&g&&!_.Eq(g)[1]&&!_.gf(g)&&(E=h.baseUrl,zu(E,"/")&&(E=E.slice(0,-1)),_.Gu(g,"/")&&(g=g.slice(1)),g=E+"/"+g);yF(h.aTag,_.nM(g||""));return h.aTag.href};
Guc.prototype.fetchData=function(h){return _.xUx(h)};
Guc.prototype.postData=function(h,E){var g={method:"POST"};if(E){for(var Z=_.G(Object.keys(E)),M=Z.next();!M.done;M=Z.next()){M=M.value;var W=E[M];_.yx(W)&&(E[M]=JSON.stringify(W))}g.postParams=E}return _.xUx(h,g)};
_.eDf=function(h,E,g,Z,M){h=J_M(h,E,g);if(!h)throw Z=Error("ni"),Object.assign(Z,{params:E}),Z;return _.xUx(h,M,Z)};
Guc.prototype.requestDataForServiceEndpoint=function(h,E){if(_.e(h,_.Q$$))return this.fetchData("/getAccountSwitcherEndpoint");E=E||{};var g=_.e(h,Vif);g?E.se=g.base64EncodedServiceEndpoint:E.sej=JSON.stringify(h);(g=_.sH())&&_.J("enable_service_ajax_csn")&&(E.csn=g);E.theme=_.Hp();_.e(h,b_W)&&_.nF("DELEGATION_CONTEXT")&&(E.delegation_context=JSON.stringify(_.nF("DELEGATION_CONTEXT")));g=null;for(var Z in h)if(zu(Z,"Endpoint")||zu(Z,"Command")){g=Z;break}if(!g){var M=Error("oi");Object.assign(M,{params:h});
_.H4d(M,"WARNING");return new _.jM(function(z,c){c(M)})}Z={name:g};
var W;(g=(W=_.e(h,_.ej))==null?void 0:W.signal)&&(Z.signal=g);(W=_.uI(window.location.href))&&W.internalcountrycode&&(Z.internalcountrycode=W.internalcountrycode);W="/service_ajax";_.J("debug_forward_web_query_parameters")&&(W=_.QaO(W,window.location.search));W=_.hl(W,Z);h.clickTrackingParams&&_.zG(W,{itct:h.clickTrackingParams});return this.postData(W,E)};_.zVZ=new _.Ps("GFEEDBACK_TOKEN");var azG;var cMR;var idU;var o$x;var rY=function(){var h=_.D.apply(this,arguments)||this;h.compact=!1;h.dismissButtonDisabled=!1;return h};
_.f(rY,_.D);rY.prototype.computeHasIcon_=function(h){return!!h};
rY.prototype.isSignInIcon_=function(h){return h=="yt-icons:prompted_sign_in"};
rY.prototype.onDismissButtonClick=function(){var h;this.data.disableOnClick&&!this.dismissButtonDisabled&&(h=this.data.dismissButton)!=null&&h.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.bKM.YtConditionalRendererBehavior),_.V("design:type",Object)],rY.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rY.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],rY.prototype,"icon_",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.V("design:type",Boolean)],rY.prototype,"hasIcon_",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.V("design:type",Boolean)],rY.prototype,"signInIcon_",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rY.prototype,"compact",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rY.prototype,"dismissButtonDisabled",void 0);
_.Y([_.yc({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],rY);
_.X(rY,"yt-player-error-message-renderer",function(){if(o$x===void 0){var h=document.createElement("template");_.N(h,'\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\n<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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;idU===void 0&&(idU=document.createElement("template"));var Z=idU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);o$x=h}h=o$x;return h},{mode:2});var Izp;var RVi;var mp=function(){return _.D.apply(this,arguments)||this};
_.f(mp,_.D);mp.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mp.prototype.computeIcon_=function(h){return h?"yt-icons:"+h.iconType.toLowerCase():"error_outline"};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mp.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],mp.prototype,"icon_",void 0);_.Y([_.yc({is:"yt-player-kav-renderer",disableElementRegistration:!0})],mp);
_.X(mp,"yt-player-kav-renderer",function(){if(RVi===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Izp===void 0&&(Izp=document.createElement("template"));var Z=Izp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);RVi=h}h=RVi;return h},{mode:2});var nhq=_.uz(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.I9(_.O(function(h){var E=_.hf("div"),g=_.G(_.Bm(0,void 0,"jxh75d")),Z=g.next().value,M=g.next().value;g=_.G(_.Bm(null,void 0,"F5Zm8"));var W=g.next().value,z=g.next().value;_.vJ(function(){Xd$(E.value,M,z);E.value.scrollIntoView()});
g=YTq.bind(null,h.data,Z);_.z$("resize",function(){var c=W();if(Z()===1&&c!==null){var I;(I=window.grecaptcha)==null||I.reset(c)}});
return _.R("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.R("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.R("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var c,I;return(c=h.data().accessibility)==null?void 0:(I=c.accessibilityData)==null?void 0:I.label}),_.R(_.dK,{text:g,
className:_.CO("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.R("div",{el:E,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Qe"),"yt-player-captcha-view-model",{props:{data:_.c$}});var scx=!1;_.POU=_.O(function(h){var E=h.data;return _.R("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.R(_.P,{cond:function(){return E().icon},
then:function(g){return _.R("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.R(_.pO,{data:g,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.R(_.P,{cond:function(){return E().title},
then:function(g){return _.R("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.R(_.dK,{text:g}))}}),_.R(_.P,{cond:function(){return E().description},
then:function(g){return _.R("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.R(_.dK,{text:g}))}}),_.R(_.Sv,{data:function(){return E().primaryButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"interstitialViewModelFlexItem"})}}),_.R(_.Sv,{data:function(){return E().secondaryButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"interstitialViewModelFlexItem"})}}))},"Re");
_.POU.idomCompat=!0;var B$J=_.O(function(h){var E=h.data;_.k7();return _.R("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.R("div",{class:"playerInterstitialRendererScrim"},_.R(_.Sv,{data:function(){return E().content}},{interstitialViewModel:_.POU})))},"Se");
B$J.idomCompat=!0;_.I9(B$J,"yt-player-interstitial-renderer",{props:{data:_.C6}});var vj=function(){var h=_.D.apply(this,arguments)||this;h.noBackground=!1;h.compact=!1;h.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return h};
_.f(vj,_.D);vj.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"}}}};
vj.prototype.onUpdatePlayerErrorMessageCommand_=function(h){if(_.e(h,MiA)){var E;if(h=(E=_.e(h,MiA))==null?void 0:E.newPlayerErrorMessageRenderer)this.data=h}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],vj.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vj.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],vj.prototype,"status",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vj.prototype,"noBackground",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vj.prototype,"compact",void 0);_.Y([_.yc({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],vj);
var UNX=_.BK()(vj,"yt-playability-error-supported-renderers",function(){if(cMR===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;azG===void 0&&(azG=document.createElement("template"));var Z=azG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);cMR=h}h=cMR;return h},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var VZM=void 0,yH$=void 0;var TF$=new gZB;var LZp=function(h){this.store=h;this.ayk=new _.WEA},toa=function(h,E,g){var Z,M;
if(!(M=((Z=E.playabilityStatus)==null?void 0:Z.status)!=="OK")){h=h.store;var W;M=E.offlineState&&((W=E.videoDetails)==null?0:W.videoId)?_.J("enable_pl_r_c_cd")?Bcz(h.getState().entities,E.videoDetails.videoId):!!sx$(h.getState().entities,E.videoDetails.videoId):!1}if(M)return!0;M=EvW(E);if(M===1){if(_.J("ab_v_vid_sig")){var z,c=(z=E.videoDetails)==null?void 0:z.videoId;if(!c||!g||c!==g){var I;E=new _.xX("282054944_vid",{cGG:g,kwU:(I=E.videoDetails)==null?void 0:I.videoId});_.$W(E)}}return!0}zsz=
0;var B,U;I=(c=E.auxiliaryUi)==null?void 0:(B=c.messageRenderers)==null?void 0:(U=B.bkaEnforcementMessageViewModel)==null?void 0:U.displayType;if(M!==3&&(I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||I==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;I={reason:_.iV(_.NH("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.J("ks_something_wrong_learn_more")?PgO("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.iV(_.NH("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:_.iV("282054944")};jWi(E,{playerErrorMessageRenderer:I});return!1},SPV=function(h,E){if(fwx(E)){_.qR(1,!0);
var g=(g=fwx(E))&&_.kzM()?g:void 0;g?(jWi(E,{enforcementMessageViewModel:g}),h.ayk.increment("IN_PLAYER"),_.qR(5)):(h.ayk.increment("SKIP_DISPLAY"),_.qR(2))}},jWi=function(h,E){h.playabilityStatus=Object.assign({},h.playabilityStatus,{status:"ERROR",
errorScreen:E});h.videoDetails=void 0};
LZp.prototype.handleResponse=function(h,E){if(h.playabilityStatus){var g,Z,M,W=(E==null?void 0:(g=E.innerTubeRequest)==null?void 0:g.videoId)||(E==null?void 0:(Z=E.innerTubeRequest)==null?void 0:(M=Z.playerRequest)==null?void 0:M.videoId);toa(this,h,W)&&SPV(this,h)}};
LZp[R2]=[G5];var fBq=new _.Ps("ADBLOCK_DETECTION_SERVICE_TOKEN");var TK=function(h){this.htg=h};
TK.prototype.bindInnertubeChallengeFetcher=function(h){this.htg.bicf(h)};
TK.prototype.registerChallengeFetchedCallback=function(h){this.htg.bcr(h)};
TK.prototype.getLatestChallengeResponse=function(){return this.htg.blc()};var dNX;dNX=_.uz(["https://static.doubleclick.net/instream/ad_status.js"]);_.COG=_.BR(dNX);var fzG;_.Hj=function(h,E,g){var Z=this;this.network=h;this.options=E;this.networkStatusManager=g;this.oT=null;if(E.useBotguardEverywhere){var M=new _.dN;this.oT=M.promise;_.MN.ytAtRC&&_.lv(_.KP,function(){var W,z;return _.a(function(c){if(c.nextAddress==1){if(!_.MN.ytAtRC)return c.return();W=JMU(null);return c.yield(Z.im(W),2)}z=c.yieldResult;_.MN.ytAtRC&&_.MN.ytAtRC(JSON.stringify(z));_.SK(c)})});
pH$().then(function(W){var z,c,I,B;return _.a(function(U){if(U.nextAddress==1)return W.bindInnertubeChallengeFetcher(function(L){return Z.im(JMU(L))}),U.yield(xaM(),2);
z=U.yieldResult;c=W.getLatestChallengeResponse();I=c.challenge;if(!I)throw Error("pi");B={challenge:I,zY:Ae(I),vm:z,bgChallenge:new yK};M.resolve(B);W.registerChallengeFetchedCallback(function(L){L=L.challenge;if(!L)throw Error("qi");L={challenge:L,zY:Ae(L),vm:z,bgChallenge:new yK};Z.oT=Promise.resolve(L)});
_.SK(U)})})}else E.preload&&eVx(this,new Promise(function(W){_.xW(_.KP,function(){W(q4I(Z))},0)}))};
fzG=function(h){var E={preload:!0,useBotguardEverywhere:!0},g=!1;if(typeof E==="boolean")var Z={preload:E};else typeof E==="undefined"?Z={preload:!0}:(Z=E,g=!!E.zYu);E=g?void 0:new _.bK;_.Hj.instance=new _.Hj(h,Z,E);return _.Hj.instance};
_.Hj.prototype.rOD=function(){var h=this;return _.a(function(E){return E.nextAddress==1?E.yield(Promise.race([h.oT,null]),2):E.return(!!E.yieldResult)})};
_.Hj.prototype.i7h=function(h,E,g){var Z=this,M,W,z;return _.a(function(c){Z.oT===null&&eVx(Z,q4I(Z));M=!1;W={};z=function(){var I,B,U;return _.a(function(L){switch(L.nextAddress){case 1:return L.yield(Z.oT,2);case 2:I=L.yieldResult;W.challenge=I.challenge;if(!I.vm){"c1a"in I.zY&&(W.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");L.jumpTo(3);break}B=Object.assign({},{c:I.challenge,e:h},E);_.CX(L,4);M=!0;return L.yield(I.vm.snapshot({bS:B}),6);case 6:(U=L.yieldResult)?W.webResponse=U:W.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.bN(L,3);break;case 4:_.th(L),W.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(h==="ENGAGEMENT_TYPE_PLAYBACK"){var d=I.zY,C={};if(d.c6a){var q=Number(_.nF("DCLKSTAT",0));C.reportingStatus=String(Number(d.c)^(isNaN(q)?0:q))}d.c6b&&(C.broadSpectrumDetectionResult=String(Number(d.c)^Number(_.nF("CATSTAT",0))));W.adblockReporting=C}return L.return(W)}})};
return c.return(Promise.race([z(),N$0(g,function(){var I=Object.assign({},W);M&&(I.error="ATTESTATION_ERROR_VM_TIMEOUT");return I})]))})};
var JMU=function(h){var E={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};h&&(E.interpreterHash=h);return E},q4I=function(h,E){E=E===void 0?0:E;
var g,Z,M,W,z,c,I,B,U,L,d,C;return _.a(function(q){switch(q.nextAddress){case 1:g=JMU(phD().z7T);if(_.J("att_fet_ks"))return _.CX(q,7),q.yield(h.im(g),9);_.CX(q,4);return q.yield(tqU(h,g),6);case 6:z=q.yieldResult;M=z.k8X;W=z.jKZ;Z=z;_.bN(q,3);break;case 4:return _.th(q),_.O$(Error("ri`"+E)),S4G(h,864E5),q.return({challenge:"",zY:{},vm:void 0,bgChallenge:void 0});case 9:Z=q.yieldResult;if(!Z)throw Error("si");if(!Z.challenge)throw Error("ti");M=Z.challenge;W=Ae(M);if("c1a"in W&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("ui");
_.bN(q,3);break;case 7:c=_.th(q);_.O$(c);E++;if(E>=5)return _.O$(Error("ri`"+E)),S4G(h,864E5),q.return({challenge:"",zY:{},vm:void 0,bgChallenge:void 0});I=1E3*Math.pow(2,E-1)+Math.random()*1E3;return q.return(new Promise(function(w){_.xW(_.KP,function(){w(q4I(h,E))},I)}));
case 3:B=W3a(W);S4G(h,B*1E3);U=void 0;if(!("c1a"in W&&Z.bgChallenge)){q.jumpTo(10);break}L=MHa(Z.bgChallenge);_.CX(q,11);return q.yield(zlB(phD(),L),13);case 13:_.bN(q,12);break;case 11:return d=_.th(q),_.O$(d),q.return({challenge:M,zY:W,vm:U,bgChallenge:L});case 12:return _.CX(q,14),U=new _.yP({challenge:L,vCS:{n3:"aGIf"}}),q.yield(U.cuq,16);case 16:_.bN(q,10);break;case 14:C=_.th(q),_.O$(C),U=void 0;case 10:return q.return({challenge:M,zY:W,vm:U,bgChallenge:L})}})};
_.Hj.prototype.im=function(h){var E=this,g;return _.a(function(Z){g=E.networkStatusManager;if(!g||g.isNetworkAvailable())return Z.return(E.network.im(h));_.ke("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(M){g.listenOnce("publicytnetworkstatus-online",function(){E.network.im(h).then(M)})}))})};
var xNU=function(h){if(!h)throw Error("si");if(!h.challenge)throw Error("ti");var E=h.challenge,g=Ae(E);if("c1a"in g&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("ui");return Object.assign({},h,{k8X:E,jKZ:g})},tqU=function(h,E){var g,Z,M,W,z;
return _.a(function(c){switch(c.nextAddress){case 1:g=void 0,Z=0,M={};case 2:if(!(Z<5)){c.jumpTo(4);break}if(!(Z>0)){c.jumpTo(5);break}M.rv2=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return c.yield(new Promise(function(I){return function(B){_.xW(_.KP,function(){B(void 0)},I.rv2)}}(M)),5);
case 5:return _.CX(c,7),c.yield(h.im(E),9);case 9:return W=c.yieldResult,c.return(xNU(W));case 7:g=z=_.th(c),z instanceof Error&&_.O$(z);case 8:Z++;M={rv2:void 0};c.jumpTo(2);break;case 4:throw g;}})},eVx=function(h,E){h.oT=E},wai=function(h){var E,g,Z;
return _.a(function(M){if(M.nextAddress==1)return M.yield(Promise.race([h.oT,null]),2);E=M.yieldResult;var W=q4I(h);h.oT=W;(g=E)==null||(Z=g.vm)==null||Z.dispose();_.SK(M)})},S4G=function(h,E){var g=Date.now()+E,Z=function(){var M;
return _.a(function(W){M=g-Date.now();return M<1E3?W.yield(wai(h),0):(_.xW(_.KP,Z,Math.min(M,6E4)),W.jumpTo(0))})};
Z()},N$0=function(h,E){return new Promise(function(g){_.xW(_.KP,function(){g(E())},h)})};var DNR=function(){};
DNR.prototype.processContext=function(h){var E=_.Hj.instance;if(!E)return _.LC();var g=ovd(h);return g?new UU(E.i7h(g,ag$(h),500).then(function(Z){var M;(h==null?0:(M=h.innerTubeRequest)==null?0:M.context)||(h.innerTubeRequest.context={});M=h.innerTubeRequest.context;M.request||(M.request={});M.request.attestationResponseData=Z})):_.LC()};var lzp=function(h){this.innertubeTransportService=h};
lzp.prototype.im=function(h){_.ke("att_fsr",void 0,"attestation_challenge_fetch");return _.ic(this.innertubeTransportService,h,_.zv(_.zsl)).then(function(E){_.ke("att_frr",void 0,"attestation_challenge_fetch");return E})};_.rMR=function(h){this.innertubeTransportService=h};var mNI=new _.Ps("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var v$X=function(){},$NG=function(h,E,g,Z,M){var W=_.nF("YPC_MB_URL");
_.bBO(W).then(function(){HdJ(W,h,E,g,Z,M)})},HdJ=function(h,E,g,Z,M,W){try{var z=_.gE.payments.business.integration,c=_.gE.payments.business.integration.Style.create().withMaterialDesignStyle(),I=z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.J("enable_window_constrained_buy_flow_dialog")&&(I=I.usingPopupStyle("windowConstrained"));W&&(I=I.usingCloseCallback(W));var B=g?g:_.nF("YPC_GB_LANGUAGE"),U=_.nF("SESSION_INDEX");z.bootstrap.fromPaymentsUrl(h);z.bootstrap.asMashupMode(I).usingGaiaIndex(U).usingLocale(B).usingStyle(c).usingDefaultActivityStatusChangeHandler().inStandaloneContext(z.standaloneContextAuthId.forGaia()).purchaseManager(E,function(L){Z&&Z(L)}).load(void 0,M)}catch(L){throw M&&M(L),_.$W(L),L;
}};var KZ0=new _.Ps("PURCHASE_MANAGER_TOKEN");var OdR=function(){var h=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return h.videos},
getContinuationsPresent:function(){return h.continuationsPresent},
setVideos:function(E){h.videos=E},
getRecommendedVideos:function(){return h.recommendedVideos},
setRecommendedVideos:function(E){h.recommendedVideos=E}}};
OdR.prototype.addVideos=function(h){h&&(this.videos=h.filter(function(E){return!!_.R0N(E)}).map(function(E){var g=_.R0N(E);
a:{var Z;if(E.playlistVideoRenderer&&((Z=E.playlistVideoRenderer)==null?0:Z.voteSortTiebreaker))var M=E.playlistVideoRenderer.voteSortTiebreaker;else{if(_.e(E,u1)){var W;if(Z=(M=_.e(E,u1))==null?void 0:(W=M.playlistItemData)==null?void 0:W.voteSortTiebreaker){M=Z;break a}}M=""}}return{itemId:g,videoId:_.U7Z(E),voteCount:_.L3O(E),voteSortTiebreaker:M}}),this.continuationsPresent=!!_.e(h[h.length-1],_.Ec))};
var n$C=function(h,E){return h.videos.findIndex(function(g){return g.itemId===E})},Xai=function(h,E){return h.recommendedVideos.findIndex(function(g){return g.itemId===E})},Y4G=function(h){h={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:h}}}}};_.GF().resolve(_.zF).resolveCommand(h)};var sWp=function(){OdR.apply(this,arguments)};
_.f(sWp,OdR);
var PZC=function(h,E,g,Z){if(!h.parentElem)throw Error("zi");var M=n$C(h,E);M===-1&&(M=Xai(h,E),M=M!==-1?M+h.videos.length:-1);if(M===-1)throw Error("Ai");var W=M>=h.videos.length?h.recommendedVideos[M-h.videos.length]:h.videos[M];W.voteCount=g;W.voteSortTiebreaker=Date.now().toString();M>=h.videos.length?h.recommendedVideos.splice(M-h.videos.length,1):h.videos.splice(M,1);var z=h.videos;for(var c=0,I=z.length-1;c<=I;){var B=Math.floor((c+I)/2);if(z[B].voteCount<W.voteCount)I=B-1;else if(z[B].voteCount>W.voteCount)c=
B+1;else{a:{var U=W.voteSortTiebreaker;var L=z[B].voteSortTiebreaker;if(U.length!==L.length)U=U.length>L.length;else{for(var d=0;d<U.length;d++){var C=U.charCodeAt(d),q=L.charCodeAt(d);if(C>q){U=!0;break a}if(C<q)break}U=!1}}U?I=B-1:c=B+1}}z=c;if(z===-1)throw Error("Bi");h.videos.splice(z,0,W);M!==z&&VqC(h,M,z,E,g,Z)},VqC=function(h,E,g,Z,M,W){var z,c=(z=h.parentElem)==null?void 0:z.children,I=Math.min(E,g),B=Math.max(E,g);
if(c)for(z=I;z<=B;z++)c[z].style.viewTransitionName="item-"+String(z);document.startViewTransition(function(){if(h.parentElem){var U=h.parentElem.children;if(!(!U||E<0||E>=U.length||g<0||g>=U.length)){var L=U[E];if(L){L.remove();h.showRefreshPill=g>=h.videos.length-1&&h.continuationsPresent;if(!h.showRefreshPill){U=U[g]||null;var d;(d=h.parentElem)==null||d.insertBefore(L,U)}_.Ra(h.parentElem,"yt-update-video-data-voting-animation",{toIdx:g,itemId:Z,newVoteCount:M,voteStatus:W,hideItem:h.showRefreshPill})}}}}).finished.then(function(){if(c)for(var U=
I;U<=B;U++)c[U].style.viewTransitionName="";
if(h.showRefreshPill)Y4G(_.NH("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var L;if(L=U=(L=h.parentElem)==null?void 0:L.children[g])L=U.getBoundingClientRect(),U=L.bottom,L=!(L.top>=0&&U<=h.clientHeight);L&&(L=_.tT(E>g?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(E-g)),Y4G(L))}})};var FZR=function(h,E){var g=this;h?this.innertubeTransportServicePromise=Promise.resolve(h):E&&(this.innertubeTransportServicePromise=E(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Cv(3E3,function(Z){return kuJ(g,Z)},0);
this.validateMiniAppVideoIdRateLimiter=new Cv(3E3,function(Z){return yMi(g,Z)},1)},qNM=function(h,E){h.JSC$17207_miniAppId=E;
h.reportMiniAppValueRateLimiter=new Cv(3E3,function(g){return kuJ(h,g)},0);
h.validateMiniAppVideoIdRateLimiter=new Cv(3E3,function(g){return yMi(h,g)},1)},NjD=function(h,E){var g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.reportMiniAppValueRateLimiter.call(E),2);g=Z.yieldResult;return Z.return([g,E])})},kuJ=function(h,E){var g,Z,M,W,z,c,I;
return _.a(function(B){switch(B.nextAddress){case 1:return B.yield(h.innertubeTransportServicePromise,2);case 2:return g=B.yieldResult,Z=_.zv(RYD),M=Date.now(),W={externalPostId:h.JSC$17207_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(M/1E3),nanos:Math.round(M%1E3*1E6)},intValue:""+E}},_.CX(B,3),B.yield(_.ic(g,W,Z),5);case 5:z=B.yieldResult;_.bN(B,4);break;case 3:throw c=_.th(B),c;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("Ci`"+
z.errorMetadata.status);if(I=z.userStatResult)return B.return(I);throw Error("Di");}throw Error("Ei");}})},SNl=function(h){var E,g,Z,M,W;
_.a(function(z){switch(z.nextAddress){case 1:return z.yield(h.innertubeTransportServicePromise,2);case 2:return E=z.yieldResult,g=_.zv(RYD),Z={externalPostId:h.JSC$17207_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.CX(z,3),z.yield(_.ic(E,Z,g),5);case 5:M=z.yieldResult;_.bN(z,4);break;case 3:throw W=_.th(z),W;case 4:if(M==null)throw Error("Ei");if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("Ci`"+M.errorMetadata.status);_.SK(z)}})};
FZR.prototype.flush=function(){var h=this;return _.a(function(E){return E.nextAddress==1?E.yield(h.reportMiniAppValueRateLimiter.flush(),2):E.yield(h.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var t5A=function(h,E){return _.a(function(g){return g.nextAddress==1?g.yield(h.validateMiniAppVideoIdRateLimiter.call(E),2):g.return(g.yieldResult)})},yMi=function(h,E){var g,Z,M,W,z,c;
return _.a(function(I){switch(I.nextAddress){case 1:return I.yield(h.innertubeTransportServicePromise,2);case 2:return g=I.yieldResult,Z=_.zv(pPk),M={videoId:E},_.CX(I,3),I.yield(_.ic(g,M,Z),5);case 5:W=I.yieldResult;_.bN(I,4);break;case 3:throw z=_.th(I),z;case 4:if(W){if("error"in W&&W.error)throw W.error;if(W.errorMetadata)throw Error("Ci`"+W.errorMetadata.status);if(c=W.playabilityStatus)return I.return(c.status);throw Error("Fi");}throw Error("Ei");}})};
FZR[R2]=[_.pl(_.yV),_.pl(n_k)];var AMJ=function(){this.clientData=new Map};
AMJ.prototype.getData=function(h){return this.clientData.get(h)};var T$p=function(h){this.store=h};
T$p.prototype.handleResponse=function(h){(h=_.e(h.frameworkUpdates,g5))&&_.tj(h,this.store)};
T$p[R2]=[_.c4];var bdG=new _.Ps("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var uzJ={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var QWC=new _.Ps("ICON_SET_TOKEN"),hHi=new _.Ps("ICON_URL_PROVIDER_TOKEN"),EMC=new _.Ps("PREFETCH_ICONS_TOKEN"),gMJ=new _.Ps("ICON_MAP_FN_TOKEN");var $y={},ZDC=($y.ACCESS_TIME="clock",$y.ACCOUNT_BOX="person_account",$y.ACCOUNT_BOX_CAIRO="person_account_cairo",$y.ACCOUNT_CIRCLE="person_circle",$y.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",$y.ACCOUNT_LINKED="account_link_success",$y.ACCOUNT_UNLINKED="account_link",$y.ADD_FRIEND="people",$y.ADD_MODERATOR="shield_add",$y.ADD_TO_LIBRARY="bookmark",$y.ADD_TO_PLAYLIST="add",$y.ADD_TO_QUEUE_TAIL="list_queue",$y.ADD_TO_REMOTE_QUEUE="list_music",$y.ADD_TO_WATCH_LATER="clock",$y.ADD_VIDEO_LINK="film_strip_add",
$y.ALERT_WARN_RED="alert_triangle",$y.ARROW_BACK="arrow_left",$y.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",$y.ARROW_DROP_DOWN="chevron_down",$y.ARROW_DROP_UP="chevron_up",$y.ARROW_FORWARD="arrow_right",$y.AUDIOTRACK="audio",$y.AUTO_AWESOME="sparkle",$y.AVATAR_ANONYMOUS="person_circle",$y.AVATAR_LOGGED_OUT="person_circle",$y.BACK="arrow_left",$y.BAR_CHART="bar_graph",$y.BLOCK="slash_circle_left",$y.BLOCK_USER="slash_circle_left",$y.BOOKMARK_BORDER="bookmark",$y.BREAKING_NEWS_ALT_1="article_alert",
$y.BROADCAST_CAIRO="podcast_cairo",$y.BUG_REPORT="bug",$y.CAMERA_ALT="camera",$y.CAMPAIGN="megaphone",$y.CANCEL="x_circle",$y.CAPTIONS="closed_caption",$y.CAST_OUTLINE="chromecast",$y.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",$y.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",$y.CHAT="message_bubble_left",$y.CHAT_BUBBLE="message_bubble_empty",$y.CHAT_SPARK="spark_message_bubble_left",$y.CHECK_BOX_OUTLINE_BLANK="box_empty",$y.CHECK_CIRCLE_OUTLINE="check_circle",$y.CHECK_CIRCLE_THICK="check_circle",$y.CLARIFY=
"article_clarify",$y.CLOSED_CAPTION_SELECTED="closed_caption",$y.CLOSE="x_mark",$y.CLOUD_UPLOAD="cloud_arrow_up",$y.COLLAPSE="chevron_up",$y.COLLAPSE_CAIRO="chevron_up_cairo",$y.COLLECTION="layers",$y.COLOR_LENS="palette",$y.COMMENT="message_bubble_right",$y.CONSENT_SHIELD="person_shield",$y.CONTENT_CUT="scissors",$y.CONTENT_CUT_CAIRO="scissors_cairo",$y.COURSE=_.J("web_enable_course_icon_update")?"creator_academy":"lightbulb",$y.COURSE_CAIRO=_.J("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",$y.CREATION_LIVE="radar_live",$y.CREATION_POST="box_pencil",$y.CREATION_UPLOAD="my_videos",$y.CREATION_UPLOAD_RED="upload",$y.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",$y.CREATOR_STUDIO="youtube_studio",$y.DASHBOARD="grid_asymmetrical",$y.DELETE="trash_can",$y.DELETE_SWEEP="trash_can",$y.DESKTOP="laptop",$y.DISLIKE="thumb_down",$y.DISLIKE_SELECTED="thumb_down",$y.DISMISSAL="x_mark",$y.DISMISS_QUEUE="list_remove",$y.DONE_ALL="check_double",$y.DOWN_ARROW="arrow_down",$y.DO_NOT_DISTURB=
"slash_circle_left",$y.DRAFT="paper_corner_folded",$y.DRAG_HANDLE="bars_2",$y.EDIT="pencil",$y.EMOJI="face_very_happy",$y.EMOJI_FLAGS="flag",$y.EMOJI_OBJECTS="lightbulb",$y.EMOJI_PEOPLE="face_very_happy",$y.EMOJI_RECENT="clock",$y.EMPTY_HEART="heart",$y.EMPTY_LIKE="thumb_up",$y.ERROR_BLACK="alert_circle",$y.ERROR_OUTLINE="alert_circle",$y.EXIT_APP="arrow_in",$y.EXIT_TO_APP="arrow_in",$y.EXPAND="chevron_down",$y.EXPAND_ALL="chevron_expand",$y.EXPAND_CAIRO="chevron_down_cairo",$y.EXPAND_LESS="chevron_up",
$y.EXPAND_MORE="chevron_down",$y.EXPLORE="compass",$y.EXPLORE_DESTINATION="compass",$y.EXTERNAL_LINK="open_new",$y.FAB_UPLOAD="upload",$y.FACE_HAPPY_OUTLINE="face_happy",$y.FACT_CHECK="article_check",$y.FASHION_LOGO="fashion",$y.FASHION_LOGO_CAIRO="fashion_cairo",$y.FAVORITE="heart",$y.FEEDBACK="message_bubble_alert",$y.FEEDBACK_CAIRO="message_bubble_alert_cairo",$y.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",$y.FILL_ARROW_SOLID_UP_16="arrow_solid_up",$y.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
$y.FILTER="menu_filter",$y.FIRST_PAGE="chevron_first",$y.FLAG="flag",$y.FULL_HEART="heart",$y.GAME_CONSOLE_DPAD="game_console_dpad",$y.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",$y.GAMING_LOGO="gaming",$y.GAMING_LOGO_CAIRO="gaming_cairo",$y.GO_TO_PAGE="arrow_right",$y.GROUPS="people_group",$y.HAPPY="face_happy",$y.HEALTH_AND_SAFETY="shield_plus",$y.HELP="question_circle",$y.HELP_CAIRO="question_circle_cairo",$y.HELP_OUTLINE="question_circle",$y.HIDE="slash_circle_left",$y.IMAGE="image",
$y.INFINITY_ICON="infinity",$y.INFO="info_circle",$y.INFO_OUTLINE="info_circle",$y.INSERT_CHART="bar_graph_box_vertical",$y.INSERT_CHART_OUTLINED="bar_graph_box_vertical",$y.INSERT_PHOTO="image",$y.KEEP="pin",$y.KEEP_OFF="pin_off",$y.KEYBOARD="keyboard",$y.KEYBOARD_ARROW_DOWN="chevron_down",$y.KEYBOARD_ARROW_UP="chevron_up",$y.KIDS_BLOCK="slash_circle_left",$y.LANGUAGE="globe",$y.LAST_PAGE="chevron_last",$y.LAUNCH="open_new",$y.LEARNING="lightbulb",$y.LEARNING_CAIRO="lightbulb_cairo",$y.LIBRARY_ADD=
Jqa("library_add"),$y.LIBRARY_OUTLINE="library",$y.LIBRARY_REMOVE=Jqa(),$y.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",$y.LIKES_PLAYLIST="thumb_up",$y.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",$y.LIKE="thumb_up",$y.LIKE_SELECTED="thumb_up",$y.LIVE="radar_live",$y.LIVE_CAIRO="radar_live_cairo",$y.LIVE_UNLISTED="link",$y.LOCATION_ON="location_point",$y.LOCATION_PIN="location_point",$y.LOOP="arrow_repeat",$y.LOOP_ACTIVE="arrow_repeat",$y.LOOP_ONE="arrow_repeat_1",$y.LOOP_ONE_ACTIVE="arrow_repeat_1",$y.MEH=
"face_meh",$y.MEMBERS_ONLY_MODE_OFF="message_bubble_left",$y.MESSAGE="message_bubble_left",$y.MICROPHONE_ON="mic",$y.MIX="youtube_mix",$y.MONETIZATION_ON="dollar_sign_circle",$y.MONEY_FILL="dollar_sign_container",$y.MONEY_FILL_JPY="yen_sign_container",$y.MONEY_HEART="dollar_sign_heart",$y.MORE_HORIZ="overflow_horizontal",$y.MORE_VERT="overflow_vertical",$y.MUSIC="audio",$y.MUSIC_CAIRO="audio_cairo",$y.MUSIC_NOTE_SYMBOL="music",$y.MUSIC_SHUFFLE="arrow_shuffle",$y.MY_CHANNEL="person_circle",$y.MY_LOCATION=
"location_point",$y.NEWS_STORY="news",$y.NEXT="chevron_right",$y.NOTIFICATIONS="bell",$y.NOTIFICATIONS_ACTIVE="bell_on",$y.NOTIFICATIONS_CAIRO="bell_cairo",$y.NOTIFICATIONS_DONE_CHECKMARK="check",$y.NOTIFICATIONS_INBOX="bell",$y.NOTIFICATIONS_NONE="bell",$y.NOTIFICATIONS_OFF="bell_off",$y.NOT_INTERESTED="slash_circle_left",$y.OFFICIAL_ARTIST_BADGE="audio",$y.OFFLINE_CLOUD="cloud_off",$y.OFFLINE_DOWNLOAD="download",$y.OFFLINE_DOWNLOAD_CAIRO="download_cairo",$y.OFFLINE_PAUSE="pause",$y.OPEN_IN_NEW=
"open_new",$y.OUTLINE_ADJUST="adjust",$y.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",$y.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",$y.OUTLINE_BAG="bag",$y.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",$y.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",$y.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",$y.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",$y.PAID="dollar_sign",$y.PAUSE_OUTLINED="pause",$y.PAYMENT="credit_card",$y.PERSON_RADAR_FILLED="person_radar",$y.PHONE_DOWNLOAD="mobile_download",
$y.PLAYABLES_LOGO="tic_tac_toe",$y.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",$y.PLAYLISTS="list_play_arrow",$y.PLAYLISTS_CAIRO="list_play_arrow_cairo",$y.PLAYLIST_ADD=Jqa("list_add"),$y.PLAYLIST_ADD_CHECK=Jqa("list_check"),$y.PLAYLIST_PLAY="list_play_arrow",$y.PLAY_ALL="play_arrow",$y.PLAY_CIRCLE="play_arrow_circle",$y.PLAY_OUTLINED="play_arrow_circle",$y.PRIVACY_INFO="shield",$y.PRIVACY_PRIVATE="lock",$y.PRIVACY_PUBLIC="earth",$y.PRIVACY_UNLISTED="link",$y.PROMOTE="megaphone",$y.PURCHASES="price_tag",
$y.PURCHASE_SUPER_CHAT="super_chat",$y.PURCHASE_SUPER_STICKER="super_sticker",$y.QUESTION_ANSWER="message_bubble_question",$y.QUEUE_PLAY_LAST="list_queue_last",$y.QUEUE_PLAY_NEXT="list_play_arrow",$y.REMIX_FILLED="youtube_shorts_remix",$y.REMOVE="bar_circle",$y.REMOVE_CIRCLE="bar_circle",$y.REMOVE_CIRCLE_OUTLINE="bar_circle",$y.REMOVE_DONE="check_double_off",$y.REMOVE_FROM_HISTORY="bar_circle",$y.REMOVE_FROM_PLAYLIST="bar_circle",$y.REMOVE_MODERATOR="shield_off",$y.REPLAY="arrow_circle",$y.REPLAY_10=
"skip_back_10",$y.REPORT_PROBLEM="alert_triangle",$y.SAD="face_sad",$y.SAVE_PLAYLIST="bookmark",$y.SCHEDULE="clock",$y.SCHOOL="creator_academy",$y.SCREEN_FULLSCREEN="screen_full",$y.SEARCH_HISTORY="arrow_time",$y.SELL="price_tag",$y.SETTINGS="gear",$y.SETTINGS_CAIRO="gear_cairo",$y.SETTINGS_LIGHT="gear",$y.SETTINGS_MATERIAL="gear",$y.SHARE_ARROW="share",$y.SHIELD_WITH_AVATAR="person_shield",$y.SHOPPING_BAG="bag",$y.SHOPPING_BAG_CAIRO="bag_cairo",$y.SHOPPING_CART="cart",$y.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
$y.SHORTS_DISLIKE="youtube_shorts_thumb_down",$y.SHORTS_LIKE="youtube_shorts_thumb_up",$y.SHORTS_SHARE="youtube_shorts_share",$y.SHUFFLE="arrow_shuffle",$y.SLOW_MODE_OFF="message_bubble_left",$y.SOCIAL="people",$y.SORT="menu_sort",$y.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",$y.SPEED_1X="1x",$y.SPEED_1_POINT_2X="1_point_2x",$y.SPEED_1_POINT_5X="1_point_5x",$y.SPEED_1_POINT_8X="1_point_8x",$y.SPEED_2X="2x",$y.SPEED_POINT_2X="point_2x",$y.SPEED_POINT_8X="point_8x",$y.SPONSORSHIP_STAR="star_circle",
$y.STAFF_PICK="spotlight",$y.START_DVR="add",$y.STAR_BORDER="star",$y.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",$y.STICKER_EMOTICON="face_happy",$y.STOP_DVR="stop",$y.SUBSCRIBE="youtube_logo_icon",$y.SUBSCRIBE_PLUS="add_cairo",$y.SUBSCRIPTION_MANAGER="gear",$y.SUPERVISOR_ACCOUNT="people",$y.SUPER_CHAT_FOR_GOOD="hands_heart",$y.SWAP_HORIZ="arrow_swap_horizontal",$y.SWITCH_ACCOUNTS="person_account",$y.TAB_ACCOUNT="person",$y.TAB_ACTIVITY="bell",$y.TAB_BOOKMARK="bookmark",$y.TAB_EXPLORE="compass",
$y.TAB_HOME="home",$y.TAB_HOME_CAIRO="home_cairo",$y.TAB_INBOX="mail",$y.TAB_LIKED="thumb_up",$y.TAB_MUSIC_PREMIUM="youtube_music",$y.TAB_SHORTS="youtube_shorts",$y.TAB_SHORTS_CAIRO="youtube_shorts_cairo",$y.TAB_SUBSCRIPTIONS="subscriptions",$y.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",$y.TAB_TRENDING="fire",$y.TIMER="stopwatch",$y.TRAILER="youtube_originals",$y.TRENDING="fire",$y.TRENDING_CAIRO="fire_cairo",$y.TRENDING_UP="rating_up",$y.TROPHY="trophy",$y.TROPHY_CELEBRATIONS="fireworks",$y.TUNE=
"adjust",$y.UNBLOCK_USER="bar_circle",$y.UNLIMITED="youtube_logo_icon",$y.UNPLUGGED_LIVE_GUIDE="radar_live",$y.UNPLUGGED_SPORTS="eye_off",$y.UPLOADS="library",$y.UP_ARROW="arrow_up",$y.VERTICAL_ALIGN_BOTTOM="download",$y.VERY_HAPPY="face_very_happy",$y.VERY_SAD="face_very_sad",$y.VIDEOGAME_ASSET="gaming",$y.VIDEOS="play_arrow_circle",$y.VIDEO_CALL="video_camera_add",$y.VIDEO_LIBRARY_WHITE="library",$y.VIDEO_YOUTUBE="youtube_logo_icon",$y.VIEW_LIST="list_view",$y.VIEW_LIST_CAIRO="list_view_cairo",
$y.VISIBILITY="eye",$y.VISIBILITY_OFF="eye_off",$y.VOLUME_MUTE="volume_off",$y.VOLUME_UP="volume_on",$y.WALLPAPER="image",$y.WARNING="alert_triangle",$y.WATCH_HISTORY="arrow_time",$y.WATCH_HISTORY_CAIRO="arrow_time_cairo",$y.WATCH_LATER="clock",$y.WATCH_LATER_CAIRO="clock_cairo",$y.WATCH_RELATED_MIX="youtube_mix",$y.WHAT_TO_WATCH="home",$y.YOUTUBE_MUSIC_MONOCHROME="youtube_music",$y.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",$y.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
$y.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",$y.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",$y.YT_OUTLINE_MUSIC_24="music",$y);var Kv={},MFJ=(Kv.ACCESS_TIME="clock",Kv.ACCOUNT_BOX="person_square",Kv.ACCOUNT_BOX_CAIRO="person_square",Kv.ACCOUNT_CIRCLE="person_circle",Kv.ACCOUNT_CIRCLE_CAIRO="person_circle",Kv.ACCOUNT_LINKED="account_link",Kv.ACCOUNT_UNLINKED="account_link",Kv.ADD_CIRCLE="add_circle",Kv.ADD_CIRCLE_OUTLINE="add_circle",Kv.ADD_FRIEND="person_child",Kv.ADD_MODERATOR="shield_add",Kv.ADD_TO_LIBRARY="bookmark",Kv.ADD_TO_PLAYLIST="add",Kv.ADD_TO_QUEUE_TAIL="queue",Kv.ADD_TO_REMOTE_QUEUE="playlist_audio",Kv.ADD_TO_WATCH_LATER=
"clock",Kv.ADD_VIDEO_LINK="film_strip_add",Kv.ADMIN_PANEL_SETTINGS="person_gear",Kv.ALERT_WARN_RED="alert_triangle",Kv.ALIGN_LEFT="text_align_left",Kv.ARROWS_ALERT="arrow_split_alert",Kv.ARROW_BACK="arrow_left",Kv.ARROW_CIRCLE="arrow_counterclockwise",Kv.ARROW_CIRCLE_PLAY="replay",Kv.ARROW_CIRCLE_RIGHT="arrow_clockwise",Kv.ARROW_DIAGONAL="arrow_up_left",Kv.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Kv.ARROW_DROP_DOWN="triangle_down",Kv.ARROW_DROP_UP="triangle_up",Kv.ARROW_FORWARD="arrow_right",Kv.ARROW_PAUSE=
"pause_history",Kv.ARROW_UNDO="undo",Kv.ARTICLE="text_page",Kv.ARTICLE_ALERT="text_page_alert",Kv.ARTICLE_CHECK="text_page_check",Kv.ARTICLE_CLARIFY="text_page_info",Kv.AUDIOTRACK="audio",Kv.AUDIO_BADGE="audio_badge",Kv.AUDIO_SURROUND="surround_sound",Kv.AUTO_AWESOME="sparkles",Kv.AVATAR_ANONYMOUS="person_circle",Kv.AVATAR_LOGGED_OUT="person_circle",Kv.BACK="arrow_left",Kv.BAR_CHART="chart_bar",Kv.BAR_CIRCLE="minus_circle",Kv.BAR_HORIZONTAL="minus",Kv.BLOCK="circle_slash",Kv.BLOCK_USER="circle_slash",
Kv.BOOKMARK_BORDER="bookmark",Kv.BOX_OPEN_CHECK="quiz",Kv.BOX_PENCIL="square_pencil",Kv.BOX_STACK_3="square3_stack",Kv.BREAKING_NEWS_ALT_1="text_page_alert",Kv.BROADCAST="podcast",Kv.BROADCAST_CAIRO="podcast",Kv.BUG_REPORT="bug",Kv.CAMERA_ALT="camera",Kv.CAMPAIGN="megaphone",Kv.CANCEL="x_circle",Kv.CAPTIONS="closed_captions",Kv.CAST_ICON="chromecast",Kv.CAST_OUTLINE="chromecast",Kv.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Kv.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Kv.CHAT="text_bubble",
Kv.CHAT_BUBBLE="bubble",Kv.CHECK_BOX="check_square",Kv.CHECK_BOX_OUTLINE_BLANK="square",Kv.CHECK_CIRCLE_FILLED="check_circle",Kv.CHECK_CIRCLE_OUTLINE="check_circle",Kv.CHECK_CIRCLE_THICK="check_circle",Kv.CHECK_DOUBLE="check_done",Kv.CHECK_DOUBLE_OFF="check_done_slash",Kv.CHEVRON_LEFT="chevron_left",Kv.CHEVRON_RIGHT="chevron_right",Kv.CHEVRON_RIGHT_CAIRO="chevron_right",Kv.CIRCLES_OVERLAP="account_link",Kv.CLAPPERBOARD_CAIRO="clapperboard",Kv.CLARIFY="text_page_info",Kv.CLOCK_ARROWS="clock_split",
Kv.CLOCK_ARROWS_ALERT="clock_split_alert",Kv.CLOSED_CAPTION="closed_captions",Kv.CLOSED_CAPTION_SELECTED="closed_captions",Kv.CLOSE="x",Kv.CLOUD_UPLOAD="cloud_arrow_up",Kv.COLLAPSE="chevron_up",Kv.COLLAPSE_CAIRO="chevron_up",Kv.COLLECTION="square3d_stack",Kv.COLOR_LENS="paint_palette",Kv.COMMENT="text_bubble",Kv.CONSENT_SHIELD="person_shield",Kv.CONTENT_CUT="scissors",Kv.CONTENT_CUT_CAIRO="scissors",Kv.COURSE="graduation_cap",Kv.COURSE_CAIRO="graduation_cap",Kv.CREATION_LIVE="live",Kv.CREATION_POST=
"square_pencil",Kv.CREATION_UPLOAD="video",Kv.CREATION_UPLOAD_RED="upload",Kv.CREATOR_ACADEMY="graduation_cap",Kv.CREATOR_STUDIO="youtube_studio",Kv.DARK_THEME="theme",Kv.DELETE="trash_can",Kv.DELETE_SWEEP="trash_can",Kv.DESKTOP="laptop",Kv.DISLIKE="thumb_down",Kv.DISLIKE_SELECTED="thumb_down",Kv.DISMISSAL="x",Kv.DISMISS_QUEUE="playlist_x",Kv.DOGFOOD="pawprint",Kv.DOLLAR_SIGN="dollar_sign_circle",Kv.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Kv.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Kv.DOWN_ARROW=
"arrow_down",Kv.DO_NOT_DISTURB="circle_slash",Kv.DRAFT="document",Kv.DRAG_HANDLE="equal",Kv.EARTH="globe",Kv.EDIT="pencil",Kv.EMOJI="face_very_happy",Kv.EMOJI_FLAGS="flag",Kv.EMOJI_OBJECTS="lightbulb",Kv.EMOJI_PEOPLE="face_very_happy",Kv.EMOJI_RECENT="clock",Kv.EMPTY_HEART="heart",Kv.EMPTY_LIKE="thumb_up",Kv.ERROR_BLACK="alert_circle",Kv.ERROR_OUTLINE="alert_circle",Kv.ERROR_WHITE="alert_circle",Kv.EXIT_APP="arrow_in",Kv.EXIT_TO_APP="arrow_in",Kv.EXPAND="chevron_down",Kv.EXPAND_ALL="chevron_expand",
Kv.EXPAND_CAIRO="chevron_down",Kv.EXPAND_LESS="chevron_up",Kv.EXPAND_MORE="chevron_down",Kv.EXPLORE="compass",Kv.EXPLORE_DESTINATION="compass",Kv.EXTERNAL_LINK="arrow_up_right",Kv.EYE_OFF="eye_slash",Kv.FAB_UPLOAD="upload",Kv.FACE_HAPPY_OUTLINE="face_happy",Kv.FACE_MEH="face_neutral",Kv.FACT_CHECK="text_page_check",Kv.FASHION_LOGO="fashion",Kv.FASHION_LOGO_CAIRO="fashion",Kv.FAVORITE="thumb_up",Kv.FEEDBACK="alert_bubble",Kv.FEEDBACK_CAIRO="alert_bubble",Kv.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Kv.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Kv.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Kv.FLAG_CAIRO="flag",Kv.FLASH_OFF="flash_slash",Kv.FLASH_ON="flash",Kv.FULL_HEART="heart",Kv.GAMING_LOGO="gaming",Kv.GAMING_LOGO_CAIRO="gaming",Kv.GO_TO_PAGE="arrow_right",Kv.GROUPS="person3",Kv.HAND_SWIPE_LEFT="gesture_swipe_left",Kv.HAND_SWIPE_RIGHT="gesture_swipe_right",Kv.HAPPY="face_happy",Kv.HEALTH_AND_SAFETY="shield_health",Kv.HEART_BOX="heart_cube",Kv.HELP="help_circle",Kv.HELP_CAIRO="help_circle",
Kv.HELP_OUTLINE="help_circle",Kv.HIDE="circle_slash",Kv.INCOGNITO_CAIRO="incognito",Kv.INFINITY_ICON="infinity",Kv.INFO="info_circle",Kv.INFO_OUTLINE="info_circle",Kv.INSERT_CHART="chart_bar_square",Kv.INSERT_CHART_OUTLINED="chart_bar_square",Kv.INSERT_PHOTO="image",Kv.KEEP="pin",Kv.KEEP_OFF="pin_slash",Kv.KEYBOARD="keyboard",Kv.KEYBOARD_ARROW_DOWN="chevron_down",Kv.KEYBOARD_ARROW_UP="chevron_up",Kv.KIDS_BLOCK="circle_slash",Kv.LANGUAGE="globe",Kv.LAUNCH="arrow_up_right",Kv.LEARNING="lightbulb",Kv.LEARNING_CAIRO=
"lightbulb",Kv.LIBRARY_ADD="bookmark",Kv.LIBRARY_IMAGE="image_stack",Kv.LIBRARY_MUSIC="audio_square_stack",Kv.LIBRARY_OUTLINE="play_square_stack",Kv.LIBRARY_REMOVE="bookmark",Kv.LIBRARY_SAVED="check_square_stack",Kv.LIKES_PLAYLIST="thumb_up",Kv.LIKES_PLAYLIST_CAIRO="thumb_up",Kv.LIKE="thumb_up",Kv.LIKE_SELECTED="thumb_up",Kv.LIST_QUEUE="queue",Kv.LIVE_CAIRO="live",Kv.LIVE_UNLISTED="link",Kv.LOCATION_ON="location_pin",Kv.LOCATION_PIN="location_pin",Kv.LOCATION_POINT="location_pin",Kv.LOOP="repeat",
Kv.LOOP_ACTIVE="repeat",Kv.LOOP_ONE="repeat1",Kv.LOOP_ONE_ACTIVE="repeat1",Kv.MEET="google_meet",Kv.MEH="face_neutral",Kv.MEMBERSHIPS="memberships",Kv.MEMBERS_ONLY_MODE_OFF="text_bubble",Kv.MENU_FILTER="filter",Kv.MESSAGE="text_bubble",Kv.MESSAGE_BUBBLE_GEAR="bubble_gear",Kv.MESSAGE_BUBBLE_LEFT="text_bubble",Kv.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Kv.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Kv.MESSAGE_BUBBLE_QUESTION="help_bubble",Kv.MICROPHONE_ON="mic",Kv.MONETIZATION_ON="dollar_sign_circle",
Kv.MONEY_FILL="dollar_sign_rectangle",Kv.MONEY_FILL_JPY="yen_sign_rectangle",Kv.MONEY_HAND="dollar_sign_circle_hand",Kv.MONEY_HEART="dollar_sign_heart",Kv.MOON_Z="sleep_timer",Kv.MORE_HORIZ="overflow_horizontal",Kv.MORE_VERT="overflow_vertical",Kv.MUSIC="audio",Kv.MUSIC_CAIRO="audio",Kv.MUSIC_EXPLICIT_BADGE="explicit",Kv.MUSIC_NEW_RELEASE="audio_badge",Kv.MUSIC_NOTE_SYMBOL="audio",Kv.MUSIC_SCISSORS="audio_scissors",Kv.MUSIC_SHUFFLE="shuffle",Kv.MY_CHANNEL="person_circle",Kv.MY_LOCATION="location_pin",
Kv.MY_VIDEOS="video",Kv.MY_VIDEOS_CAIRO="video",Kv.NEWS_CAIRO="news",Kv.NEWS_STORY="news",Kv.NEXT="chevron_right",Kv.NOTE_ADD="bubble_pencil",Kv.NOTIFICATIONS="bell",Kv.NOTIFICATIONS_ACTIVE="bell_waves",Kv.NOTIFICATIONS_CAIRO="bell",Kv.NOTIFICATIONS_DONE_CHECKMARK="check",Kv.NOTIFICATIONS_INBOX="bell",Kv.NOTIFICATIONS_NONE="bell",Kv.NOTIFICATIONS_OFF="bell_slash",Kv.NOT_INTERESTED="circle_slash",Kv.OFFICIAL_ARTIST_BADGE="audio",Kv.OFFLINE_CLOUD="cloud_slash",Kv.OFFLINE_DOWNLOAD="download",Kv.OFFLINE_DOWNLOAD_CAIRO=
"download",Kv.OFFLINE_PAUSE="pause",Kv.OPEN_IN_NEW="arrow_up_right",Kv.OUTLINE_ADJUST="adjust",Kv.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Kv.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Kv.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Kv.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Kv.OUTLINE_BAG="bag",Kv.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Kv.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Kv.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Kv.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Kv.PAID=
"dollar_sign_circle",Kv.PAUSE_OUTLINED="pause",Kv.PAYMENT="credit_card",Kv.PEOPLE="person_child",Kv.PEOPLE_2="person2_rectangle",Kv.PEOPLE_GROUP="person3",Kv.PEOPLE_NOTE="bubble_asterisk",Kv.PERSON_2="person2",Kv.PERSON_ACCOUNT="person_square_stack",Kv.PERSON_MINUS="person_x",Kv.PERSON_MUSIC="person_audio",Kv.PERSON_RADAR="person_waves",Kv.PERSON_RADAR_FILLED="person_waves",Kv.PERSON_SETTING="person_gear",Kv.PHONE="phone",Kv.PHONE_DOWNLOAD="mobile_arrow_down",Kv.PICTURE_IN_PICTURE="picture_in_picture",
Kv.PLAYABLES_LOGO="playables",Kv.PLAYABLES_LOGO_CAIRO="playables",Kv.PLAYLISTS="playlist",Kv.PLAYLISTS_CAIRO="playlist",Kv.PLAYLIST_ADD_CHECK="bookmark",Kv.PLAY_ALL="play",Kv.PLAY_ARROW="play",Kv.PLAY_ARROW_CIRCLE="play_circle",Kv.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Kv.PLAY_CIRCLE="play_circle",Kv.PLAY_OUTLINED="play_circle",Kv.PODCAST_ADD="podcast_add",Kv.PODCAST_CHECK="podcast_check",Kv.PRIVACY_INFO="shield_x",Kv.PRIVACY_PRIVATE="lock",Kv.PRIVACY_PUBLIC="globe",Kv.PRIVACY_UNLISTED=
"link",Kv.PROMOTE="megaphone",Kv.PURCHASES="price_tag",Kv.PURCHASE_SUPER_CHAT="super_chat",Kv.PURCHASE_SUPER_STICKER="super_sticker",Kv.QUESTION_ANSWER="help_bubble",Kv.QUESTION_CIRCLE="help_circle",Kv.QUEUE_PLAY_LAST="queue_last",Kv.QUEUE_PLAY_NEXT="queue_next",Kv.QUOTATION_MARK="quote",Kv.RADAR_LIVE="live",Kv.REMOVE="minus_circle",Kv.REMOVE_CIRCLE="minus_circle",Kv.REMOVE_CIRCLE_OUTLINE="minus_circle",Kv.REMOVE_FROM_HISTORY="minus_circle",Kv.REMOVE_FROM_PLAYLIST="minus_circle",Kv.REMOVE_MODERATOR=
"shield_slash",Kv.REPLAY="arrow_counterclockwise",Kv.REPLAY_10="skip10_back",Kv.REPLAY_ARROW="replay",Kv.REPORT_PROBLEM="alert_triangle",Kv.RSS_OFF="rss_slash",Kv.SAD="face_sad",Kv.SAVE_PLAYLIST="bookmark",Kv.SCHEDULE="clock",Kv.SCHOOL="graduation_cap",Kv.SCREEN_DEFAULT="player_default",Kv.SCREEN_FULLSCREEN="player_full_enter",Kv.SCREEN_LIGHT="ambient_mode",Kv.SCREEN_ROTATION="rotate_portrait",Kv.SCREEN_SWITCH="player_switch",Kv.SCREEN_THEATRE="player_theater",Kv.SEARCH_CAIRO="search",Kv.SEARCH_HISTORY=
"history",Kv.SELL="price_tag",Kv.SETTINGS="gear",Kv.SETTINGS_CAIRO="gear",Kv.SETTINGS_LIGHT="gear",Kv.SETTINGS_MATERIAL="gear",Kv.SETTINGS_REMOTE="remote_waves",Kv.SHARE="share",Kv.SHARE_ARROW="share",Kv.SHARE_CAIRO="share",Kv.SHIELD="shield_x",Kv.SHIELD_OFF="shield_slash",Kv.SHIELD_WITH_AVATAR="person_shield",Kv.SHOPPING_BAG="bag",Kv.SHOPPING_BAG_CAIRO="bag",Kv.SHOPPING_CART="cart",Kv.SHORTS_COMMENT="text_bubble",Kv.SHORTS_DISLIKE="thumb_down",Kv.SHORTS_LIKE="thumb_up",Kv.SHORTS_SHARE="share",Kv.SKIP_FORWARD_30=
"skip30_forward",Kv.SLASH_CIRCLE_RIGHT="circle_slash",Kv.SLOW_MODE="bubble_slow",Kv.SLOW_MODE_OFF="text_bubble",Kv.SOCIAL="person_child",Kv.SPARKLE="sparkles",Kv.SPARK_IMAGE="image_spark",Kv.SPARK_RADAR="spark_waves",Kv.SPARK_VIDEO="video_spark",Kv.SPEAKER_GROUP="speaker_stack",Kv.SPEAKER_OFF="speaker_slash",Kv.SPEED_1X="n1x",Kv.SPEED_1_POINT_2X="n1point2x",Kv.SPEED_1_POINT_5X="n1point5x",Kv.SPEED_1_POINT_8X="n1point8x",Kv.SPEED_2X="n2x",Kv.SPONSORSHIP_STAR="star_circle",Kv.SPORTS="basketball",Kv.SPOTLIGHT=
"spotlight",Kv.STAFF_PICK="spotlight",Kv.START_DVR="add",Kv.STAR_BORDER="star",Kv.STAR_CIRCLE_RIBBON="memberships_gift",Kv.STAR_HALF="star_half_filled",Kv.STAR_SHOOTING="hype",Kv.STICKER="sticker",Kv.STICKER_EMOTICON="face_happy",Kv.STOP_DVR="stop",Kv.SUBSCRIBE="youtube",Kv.SUBSCRIBE_PLUS="add",Kv.SUBSCRIPTION_MANAGER="gear",Kv.SUPERSTAR="super_star",Kv.SUPERVISOR_ACCOUNT="person_child",Kv.SUPER_CHAT_FOR_GOOD="hands_heart",Kv.SWAP_HORIZ="arrow_swap_horizontal",Kv.SWITCH_ACCOUNTS="person_square_stack",
Kv.TAB_ACCOUNT="person",Kv.TAB_ACTIVITY="bell",Kv.TAB_BOOKMARK="bookmark",Kv.TAB_EXPLORE="compass",Kv.TAB_HOME="home",Kv.TAB_HOME_CAIRO="home",Kv.TAB_INBOX="mail",Kv.TAB_LIKED="thumb_up",Kv.TAB_MUSIC_PREMIUM="youtube_music",Kv.TAB_SHORTS="shorts",Kv.TAB_SHORTS_CAIRO="shorts",Kv.TAB_SUBSCRIPTIONS="subscriptions",Kv.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Kv.TAB_TRENDING="trending",Kv.TARGET="target",Kv.TARGET_ADD="target_add",Kv.TEMPLATE_ADD="template_add",Kv.TEXT="font",Kv.TIMER="stopwatch",Kv.TRENDING_CAIRO=
"trending",Kv.TRENDING_UP="arrow_trend_up",Kv.TROPHY_CAIRO="trophy",Kv.TROPHY_CELEBRATIONS="fireworks",Kv.TROPHY_STAR="star_trophy",Kv.TUNE="adjust",Kv.TV_OFF="tv_slash",Kv.UNBLOCK_USER="minus_circle",Kv.UNFAVORITE="thumb_down",Kv.UNLIMITED="youtube",Kv.UNPLUGGED_LIVE_GUIDE="live",Kv.UNPLUGGED_SPORTS="eye_slash",Kv.UPLOADS="play_square_stack",Kv.UP_ARROW="arrow_up",Kv.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Kv.VERTICAL_ALIGN_TOP="chevron_up_end",Kv.VERY_HAPPY="face_very_happy",Kv.VERY_SAD="face_very_sad",
Kv.VIDEOS="play_circle",Kv.VIDEO_CALL="video_camera_add",Kv.VIDEO_LIBRARY_WHITE="play_square_stack",Kv.VIDEO_QUALITY_4K="n4k",Kv.VIDEO_QUALITY_8K="n8k",Kv.VIDEO_YOUTUBE="youtube",Kv.VIEW_LIST_CAIRO="view_list",Kv.VIEW_MODULE="view_column3_row2",Kv.VISIBILITY="eye",Kv.VISIBILITY_OFF="eye_slash",Kv.VOLUME_DOWN="volume_min",Kv.VOLUME_MUTE="volume_mute",Kv.VOLUME_OFF="volume_mute",Kv.VOLUME_STABLE="stable_volume",Kv.VOLUME_UP="volume_max",Kv.WALLPAPER="image",Kv.WARNING="alert_triangle",Kv.WATCH_HISTORY=
"history",Kv.WATCH_HISTORY_CAIRO="history",Kv.WATCH_LATER="clock",Kv.WATCH_LATER_CAIRO="clock",Kv.WATCH_RELATED_MIX="mix",Kv.WHAT_TO_WATCH="home",Kv.YOUTUBE_LINKED_TV="tv_mobile",Kv.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Kv.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Kv.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Kv.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Kv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Kv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Kv.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Kv);var Wfi={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,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,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,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,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,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,13,24],[1,13,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:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,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,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
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,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,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,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,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,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,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,2,24],[1,2,24]]};var pMJ={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],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,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,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,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,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_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,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:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],
hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,
8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[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]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,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,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,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,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],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,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,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,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],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]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],
text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,
4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,
2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,
3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,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_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,
2,24],[1,2,24]]};var Gfx={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},OA=function(h){this.iconUrlProvider=h};
OA.prototype.resolveIcon=function(h,E){var g=Gfx[h.iconName.toUpperCase()];g&&(h.iconName=g);var Z=h.iconName;Z=Z.replace(/-/g,"_");h=Object.assign({},h,{iconName:this.mapIconTypeToStandardName(Z,!!g)||Z.toLowerCase()});if(_.J("enable_web_delhi_icons")||g){var M;return d7O(pMJ,h,((M=this.iconUrlProvider)==null?void 0:M.getYtStandardUrl)||qS4,E)}var W;return d7O(Wfi,h,((W=this.iconUrlProvider)==null?void 0:W.getYtStandardUrl)||e0W,E)};
OA.prototype.mapIconTypeToStandardName=function(h,E){return _.J("enable_web_delhi_icons")||E?MFJ[h.toUpperCase()]:ZDC[h.toUpperCase()]};
OA[R2]=[_.pl(hHi)];var zHC=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),alJ=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),cnU=function(h){this.urlProvider=this.iconUrlProvider=h};
_.f(cnU,OA);
cnU.prototype.resolveIcon=function(h,E){h.iconName==="youtube_logo"&&(h.iconName="yt-logo-updated");if(h.iconName==="youtube_premium_logo"||h.iconName==="youtube_red_logo")h.iconName="yt-logo-red-updated";var g=Object.assign({},h);h.iconName==="menu"&&(_.J("enable_web_delhi_icons")||(g.iconName="bars_3"),g.iconStyle="youtube_outline");h.iconSetName==="socialNetworksRound"&&(h.iconName==="mail"&&(g.iconName="email"),h.iconName==="embed"&&(g.iconSize=60));h.iconName==="more"&&(g.iconName="overflow_horizontal");
h.iconName==="fullscreen"&&(g.iconName="screen_full");h.iconName==="premium_standalone"&&(g.iconName="premium_standalone_cairo");_.J("enable_connect_icon_update_web")&&h.iconName==="account_linked"&&(g.iconName="circles_overlap_check",g.iconStyle="youtube_fill");_.J("enable_connect_icon_update_web")&&h.iconName==="account_unlinked"&&(g.iconName="circles_overlap",g.iconStyle="youtube_outline");zHC.has(h.iconName)&&(g.iconStyle="youtube_fill");_.J("enable_web_delhi_icons")&&(h.iconName==="playlist_add"&&
(g.iconName="bookmark"),h.iconName==="offline_pin"&&(g.iconName="arrow_down_circle",g.iconStyle="youtube_fill"),alJ.has(h.iconName)&&(g.iconName+="_updated"));h=Object.assign({},g,{iconName:(OA.prototype.mapIconTypeToStandardName.call(this,g.iconName)||g.iconName).toLowerCase()});var Z;return(h=d7O(uzJ,h,((Z=this.urlProvider)==null?void 0:Z.getUrl)||fga,E))?h:OA.prototype.resolveIcon.call(this,g,E)};
cnU[R2]=[_.pl(hHi)];_.iDi=1;var nv=function(h,E){this.JSC$17238_commandHandler=h;this.innertubeTransportService=E};
_.f(nv,o0);nv.prototype.resolveCommand=function(h,E){var g=this,Z,M,W;return _.a(function(z){return(Z=_.e(h,TkD))?z.return(oMX(g,Z,(M=E)==null?void 0:(W=M.form)==null?void 0:W.element)):z.return()})};
var oMX=function(h,E,g){E={profileCardContext:E.profileCardContext,profileOwnerExternalChannelId:E.profileOwnerExternalChannelId};var Z=_.zv(sFH);return _.ic(h.innertubeTransportService,E,Z).then(function(M){if(!M)throw new _.xX("GetProfileCard failed");if(M=M.popupCommand){h.JSC$17238_commandHandler.resolveCommand(M,{form:{element:g}});_.mw(_.SQ(),66557);M=M==null?void 0:M.clickTrackingParams;var W=_.YN();M&&W&&_.SQ().graftServerVe(M,W)}})};
nv[R2]=[_.zF,_.yV];var XP=function(){};
_.f(XP,o0);XP.prototype.resolveCommand=function(h){var E,g;return _.a(function(Z){E=_.e(h,MJA);if(!E)return Z.return();g=Number(E.enableDelayedPacfLoggingTvMs);if(isNaN(g)){var M=K7();Pal(M,E,0)}else Pal(K7(),E,g);_.SK(Z)})};_.Yy=function(){};
_.f(_.Yy,o0);
_.Yy.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B;return _.a(function(U){Z=_.e(h,Wsf);W=(M=E.form)==null?void 0:M.element;c=(z=W)==null?void 0:z.closest("ytd-enforcement-message-view-model");if(!Z||!c)return U.return();g.allowAdsAction||(I=Z.fundingChoiceInstructionPageUrl,g.allowAdsAction=new CIM(window,_.OY(I)));var L=g.allowAdsAction;L.wallElement=c;L.allowAdsPopup.style.setProperty("display","flex","important");var d=L.scrollManager;d.originalBodyOverflow=d.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow;d.JSC$10001_domHelper.JSC$9327_document_.body.style.overflow=
"hidden";L.wallElement.style.setProperty("display","none","important");laf(L.accessibilityManager,L.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((B=g.allowAdsAction.allowAdsPopup)&&B instanceof HTMLElement)for(L=_.G(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),d=L.next();!d.done;d=L.next()){var C=_.G(d.value);d=C.next().value;C=C.next().value;B.style.setProperty(d,C)}_.SK(U)})};
_.Yy.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var sA=function(){};
_.f(sA,o0);sA.prototype.resolveCommand=function(h){var E;return _.a(function(g){E=_.e(h,hFk);if(!E)return g.return();gyz(h);_.SK(g)})};var Vd=function(h){this.JSC$17253_commandHandler=h};
_.f(Vd,o0);
Vd.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1){g=_.e(h,Srf);if((Z=g)==null||!Z.text||!navigator.clipboard)return U.return();_.CX(U,2);return U.yield(navigator.clipboard.writeText(g.text),4)}if(U.nextAddress!=2){if(!g.successActions||g.successActions.length===0)return U.return();M=_.G(g.successActions);for(W=M.next();!W.done;W=M.next())z=W.value,E.JSC$17253_commandHandler.resolveCommand(z);return _.bN(U,0)}_.th(U);if(!g.failureActions||g.failureActions.length===
0)return U.return();c=_.G(g.failureActions);for(I=c.next();!I.done;I=c.next())B=I.value,E.JSC$17253_commandHandler.resolveCommand(B);_.SK(U)})};
Vd[R2]=[_.zF];var ky=function(h){this.JSC$17257_commandHandler=h};
_.f(ky,o0);
ky.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){switch(C.nextAddress){case 1:Z=_.e(h,GVA);if(!Z)return C.return();_.CX(C,2);if(!Z.imageBytes&&!Z.imageUrl)throw Error("Gi");if(!Z.imageUrl){if(Z.imageBytes){W=Z.imageBytes;z=W.replace(/-/g,"+").replace(/_/g,"/");var q=SSz(z);M=_.sG(q)}C.jumpTo(4);break}return C.yield(fetch(Z.imageUrl),5);case 5:return c=C.yieldResult,C.yield(c.blob(),6);case 6:I=C.yieldResult,M=_.sG(I);case 4:L=(B=E)==null?void 0:(U=B.form)==
null?void 0:U.element;d=document.createElement("a");yF(d,M);L.appendChild(d);d.download="";d.click();L.removeChild(d);URL.revokeObjectURL(_.$r(M));Z.successCommand&&g.JSC$17257_commandHandler.resolveCommand(Z.successCommand);_.bN(C,0);break;case 2:_.th(C),Z.errorCommand&&g.JSC$17257_commandHandler.resolveCommand(Z.errorCommand),_.SK(C)}})};
ky[R2]=[_.zF];var yd=function(h){this.store=h};
_.f(yd,o0);yd.prototype.resolveCommand=function(h){var E=this,g,Z,M;return _.a(function(W){Z=(g=_.e(h,_.ReC))==null?void 0:g.entityBatchUpdate;if(!Z)return W.jumpTo(0);M=Object.assign({},Z,{mutations:[].concat(_.$E(Z.mutations||[]))});return W.yield(_.tj(M,E.store),0)})};var IlG=function(h){this.JSC$17264_commandHandler=h;this.feedbackDialogMap=new Map};
IlG.prototype.openDialog=function(h,E){(h=this.feedbackDialogMap.get(h))&&this.JSC$17264_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:h}},E)};
IlG[R2]=[_.zF];var FP=new _.Ps("FEEDBACK_CONTROLLER_TOKEN");var Av=new _.Ps("APP_STORE_TOKEN");var TB=function(h,E){this.store=h;this.controller=E};
_.f(TB,o0);TB.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k;return _.a(function(y){if(y.nextAddress==1){Z=_.e(h,_.rE);if(W=(M=Z)==null?void 0:M.contentId)for(c=_.G(((z=Z)==null?void 0:z.actions)||[]),I=c.next();!I.done;I=c.next())B=I.value,RHC(g,B,W);d=(U=E)==null?void 0:(L=U.form)==null?void 0:L.element;return y.yield(_.LZ(d,[h,{impression:(C=E)==null?void 0:C.disableClickTracking}]).catch(function(){}),2)}q=y.yieldResult;
((w=q)==null?0:(r=w.data)==null?0:(v=r.feedbackResponses)==null?0:v.length)&&(u=(H=q.data.feedbackResponses[0])==null?void 0:H.followUpDialog)&&W&&(k=g.controller)!=null&&k.feedbackDialogMap.set(W,u);_.SK(y)})};
var RHC=function(h,E,g){var Z=_.e(E,_.CZ);if(Z){Z=_.G(Z.commands||[]);for(var M=Z.next();!M.done;M=Z.next())RHC(h,M.value,g)}_.e(E,_.Or)&&h.store.dispatch(_.xx("commandEntity",JEu(g),{key:g,command:E}));_.e(E,gDl)&&h.store.dispatch(_.xx("commandEntity",JEu(g),{key:g,command:E}))};
TB[R2]=[Av,FP];var bt=function(h){this.controller=h};
_.f(bt,o0);bt.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z;return _.a(function(c){Z=_.e(h,_.VX);W=(M=Z)==null?void 0:M.targetId;if(((z=Z)==null?void 0:z.signal)!=="TELL_US_WHY"||!W)return c.return();g.controller.openDialog(W,E);_.SK(c)})};
bt[R2]=[FP];var ut=function(h){this.store=h};
_.f(ut,o0);ut.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B;return _.a(function(U){Z=_.e(h,RSW);W=(M=Z)==null?void 0:M.contentId;I=(z=E)==null?void 0:(c=z.form)==null?void 0:c.element;B=_.LZ(I,[h]);W&&g.undo(W);return U.yield(B,0)})};
ut.prototype.undo=function(h){this.store.dispatch(_.xx("commandEntity",JEu(h),{key:h,command:void 0}))};
ut[R2]=[Av];var Qd=function(h){this.JSC$17279_commandHandler=h};
_.f(Qd,o0);Qd.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B;return _.a(function(U){g=_.e(h,wsn);Z=g.flowStateKey;M=g.validationFailureCommand;W=g.submitValidFormCommand;z=l5q(_.QK,[Z||""]);c=_.e(z,l4k);((I=c)==null?0:I.isValid)&&W&&E.JSC$17279_commandHandler.resolveCommand(W);((B=c)==null?0:B.isValid)||!M||E.JSC$17279_commandHandler.resolveCommand(M);_.SK(U)})};
Qd[R2]=[_.zF];var hI=function(h){this.innertubeTransportService=h};
_.f(hI,o0);hI.prototype.resolveCommand=function(h,E){var g=this,Z;return _.a(function(M){return M.yield(_.QQ(g.innertubeTransportService,h,(Z=E)==null?void 0:Z.form).then(function(W){var z,c;E==null||(z=E.commandController)==null||(c=z.onSuccess)==null||c.call(z,h,W)},function(W){var z,c;
E==null||(z=E.commandController)==null||(c=z.onServerError)==null||c.call(z,h,W)}),0)})};
hI[R2]=[_.yV];var Es=function(){};
_.f(Es,o0);Es.prototype.resolveCommand=function(h){var E,g,Z,M;return _.a(function(W){if(E=_.e(h,_.dyA)){if(g=E.gtmId)Z=_.nF("GL",""),_.Eh(g,Z);(M=E.gtmData)&&_.gK(M)}_.SK(W)})};var gq=function(h,E,g){this.innertubeTransportService=h;this.JSC$17290_actionRouter=E;this.JSC$17290_screenManager=g};
_.f(gq,o0);gq.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){g=_.e(h,tJf);if(!g)return M.return();Z=g.command;if(!Z)return M.return();E.JSC$17290_actionRouter.triggerAction("yt-insert-rich-section-action",g);return M.yield(_.QQ(E.innertubeTransportService,Z,{disableCache:!0}).then(function(W){h.clickTrackingParams&&(W==null?0:W.trackingParams)&&E.JSC$17290_screenManager.graftServerVe(W.trackingParams,_.rp(h.clickTrackingParams))}),0)})};
gq[R2]=[_.yV,ei,_.gP];wHW.bind(null,I0);var Plp=wHW.bind(null,DLf);lgu.bind(null,I0);var BBU=lgu.bind(null,DLf);m7W.bind(null,I0);var UAX=m7W.bind(null,DLf);var Zy=function(){};
_.f(Zy,o0);
Zy.prototype.resolveCommand=function(h){var E,g,Z,M,W,z,c,I,B,U;return _.a(function(L){E=_.e(h,osn);if(!E)return L.return();Z=((g=E.operations)==null?void 0:g.operations)||[];M=_.G(Z);for(W=M.next();!W.done;W=M.next())if(z=W.value,z.insertItemSectionContent){var d=z.insertItemSectionContent,C=d.contents||[];d.insertByPositionInSection?Plp(d.insertByPositionInSection.sectionTargetId,C,d.insertByPositionInSection.position):d.insertByRelativePositionInSection&&d.insertByRelativePositionInSection.sectionTargetId&&d.insertByRelativePositionInSection.itemTargetId&&
BBU(d.insertByRelativePositionInSection.sectionTargetId,d.insertByRelativePositionInSection.itemTargetId,C,d.insertByRelativePositionInSection.relativePosition)}else z.replaceSection?(d=z.replaceSection,C={},d.replaceByTargetId?C=d.replaceByTargetId:d.replaceByGroupId&&(C={targetId:d.replaceByGroupId.groupId,newContent:d.replaceByGroupId.newContent,undoKey:""}),C.newContent&&mLM(C.targetId,{continuationItems:[C.newContent]})):z.removeItem?(d=z.removeItem,d.removeByTargetId&&d.sectionTargetId&&UAX(d.sectionTargetId,
d.removeByTargetId.targetIds||[])):z.removeSection&&(z.removeSection.removeByTargetId?(c=void 0,LfJ(((c=z.removeSection)==null?void 0:c.removeByTargetId.targetIds)||[])):z.removeSection.removeByGroupId&&(I=void 0,LfJ(((I=z.removeSection)==null?void 0:I.removeByGroupId.groupIds)||[])));U=((B=E.operations)==null?void 0:B.scrollConfig)||{};jmX(U);_.SK(L)})};
var LfJ=function(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next())mLM(E.value,{continuationItems:[]})},jmX=function(h){if(h.scrollToItem){var E=h.scrollToItem.item||{},g=E.itemTargetId;
E=E.sectionTargetId;if(g&&E){var Z=document.querySelector("[data-target-id="+E+"]"),M=Z==null?void 0:Z.querySelector("[data-target-id="+g+"]");Z&&M&&setTimeout(function(){var W=M.offsetTop-Z.offsetTop,z;if(((z=h.scrollToItem)==null?void 0:z.scrollPosition)==="SCROLL_POSITION_CENTER")W-=Z.offsetHeight/2,W+=M.offsetHeight/2;else{var c;((c=h.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_END"&&(W-=Z.offsetHeight,W+=M.offsetHeight)}Z.scroll({top:W,behavior:"smooth"})},100)}}};var Mj=new _.Ps("CLIENT_NAME_TOKEN");var dAX=new _.Ps("DEFAULT_STORE_EXPIRATION_TOKEN");var N1u=new _.Ps("CLIENT_LOCATION_SERVICE_TOKEN");var Wq=function(h,E,g){this.clientName=h||_.nF("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=E||_.O8.getInstance();this.JSC$17318_commandHandler=g||_.eQ.instance};
_.f(Wq,o0);Wq.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){Z=(g=_.e(h,s1B))==null?void 0:g.onComplete;E.clientLocationService.clearLocationPlayabilityToken(E.clientName);Z&&E.JSC$17318_commandHandler.resolveCommand(Z);_.SK(M)})};
Wq[R2]=[Mj,N1u,_.zF];var p5=function(h){this.innertubeTransportService=h};
_.f(p5,o0);p5.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z;return _.a(function(c){W=(Z=E)==null?void 0:(M=Z.form)==null?void 0:M.element;return c.yield(_.QQ(g.innertubeTransportService,h,(z=E)==null?void 0:z.form).then(function(I){Ygx(W,new CustomEvent("yt-service-request-completed"),{data:I},_.nF("openPopupConfig"))}),0)})};
p5[R2]=[_.yV];var GQ=function(){};
_.f(GQ,o0);GQ.prototype.resolveCommand=function(h){var E,g;return _.a(function(Z){E=_.e(h,Hbf);g=document.querySelector("mini-app-container-view-model");if(!E||!g)return Z.return();E.isPlaying?g.dispatchEvent(new Event("play")):g.dispatchEvent(new Event("pause"));_.SK(Z)})};var zQ=function(){};
_.f(zQ,o0);zQ.prototype.resolveCommand=function(h){var E,g,Z,M,W,z,c;return _.a(function(I){E=_.e(h,R_H);if((g=E)==null||!g.paramKeys)return I.return();Z=E.paramKeys;M=_.T8(window.location.href);W=_.G(Z);for(z=W.next();!z.done;z=W.next())c=z.value,M.JSC$10033_queryData_.remove(c);window.history.replaceState(window.history.state,document.title,M.toString());_.SK(I)})};var ClR=function(){this.dropdownMap=new Map};_.Jni=new _.Ps("DROPDOWN_CONTROLLER_TOKEN");var aZ=function(h){this.controller=h};
_.f(aZ,o0);aZ.prototype.resolveCommand=function(h){var E=this,g,Z,M,W;return _.a(function(z){g=_.e(h,y6M);if(!g)return z.return();Z=g;M=Z.dropdownId;W=Z.selectedOptionIndex;if(M===void 0||W===void 0)return z.return();var c=E.controller.dropdownMap.get(M);c&&c(W);_.SK(z)})};
aZ[R2]=[_.Jni];var cq=function(h){this.controller=h};
_.f(cq,o0);cq.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){return(g=_.e(h,Mzn))?Z.yield(E.controller.closeDialog(),0):Z.return()})};
cq[R2]=[_.Eu];var iE=function(h){this.controller=h};
_.f(iE,o0);iE.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){g=_.e(h,nJn);if(!g)return M.return();var W,z=g.panelIdentifier||((W=g.identifier)==null?void 0:W.tag);if(!z)throw Error("Hi");return(Z=z)?M.yield(E.controller.hidePanel(Z),0):M.jumpTo(0)})};
iE[R2]=[_.QW];var oZ=function(h){this.controller=h};
_.f(oZ,o0);oZ.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){return(g=_.e(h,fXM))?Z.yield(E.controller.closeSheet(),0):Z.return()})};
oZ[R2]=[_.hz];var IZ=function(h,E){this.innertubeTransportService=h;this.controller=E};
_.f(IZ,o0);IZ.prototype.resolveCommand=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return g=_.e(h,XUf),(Z=g)!=null&&Z.panelId?z.yield(E.controller.getReloadContinuation(g.panelId),2):z.return();if(z.nextAddress!=3)return(M=z.yieldResult)?z.yield(_.QQ(E.innertubeTransportService,h,{continuation:M}),3):z.return();W=z.yieldResult;return z.yield(E.controller.updatePanel(g.panelId,W.content,!1),0)})};
IZ[R2]=[_.yV,_.QW];var RZ=function(h,E,g){this.innertubeTransportService=h;this.JSC$17358_screenManager=E;this.JSC$17358_commandHandler=g};
_.f(RZ,o0);
RZ.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1){g=_.e(h,_.DMB);if(!g)return I.return();if(g.commands)for(Z=_.G(g.commands),M=Z.next();!M.done;M=Z.next())W=M.value,E.JSC$17358_commandHandler.resolveCommand(W,{disableClickTracking:!0});z=_.rp(h.clickTrackingParams);_.mw(E.JSC$17358_screenManager,21760,z,{layer:7,parentLayer:0});return I.yield(_.QQ(E.innertubeTransportService,h),2)}c=I.yieldResult;if(!c)return I.return();E.JSC$17358_screenManager.graftServerVe(c.trackingParams,z,
7);_.SK(I)})};
RZ[R2]=[_.yV,_.gP,_.zF];var Pq=new _.Ps("PANEL_LOADING_STRATEGY_TOKEN");var Bq=function(h,E){this.controller=h;this.panelLoadingStrategy=E};
_.f(Bq,o0);
Bq.prototype.resolveCommand=function(h,E){var g=this,Z,M,W;return _.a(function(z){Z=_.e(h,t1F);if((M=Z)==null||!M.panelLoadingStrategy)return z.return();W=function(c){var I,B,U,L,d,C,q,w,r,v;return _.a(function(H){B=_.e((I=c.dialogViewModel)==null?void 0:I.header,FaH);U={viewModel:c.dialogViewModel};L={};if(q=_.J("web_enable_dialog_header_label")?(d=B)==null?void 0:(C=d.headline)==null?void 0:C.content:void 0)L.ariaLabel=q;Z.dismissOnBackgroundTap===!1&&(L.isModal=!0);return c.dialogViewModel?H.yield(g.controller.openDialog(U,
(v=(w=E)==null?void 0:(r=w.form)==null?void 0:r.element)!=null?v:document.body,L),0):H.return()})};
return z.yield(g.panelLoadingStrategy.execute({command:h,data:Z.panelLoadingStrategy,renderFn:W,createScreenConfig:{layer:4}}),0)})};
Bq[R2]=[_.Eu,Pq];var Us=function(h,E,g){this.innertubeTransportService=h;this.controller=E;this.JSC$17378_screenManager=g};
_.f(Us,o0);
Us.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q;return _.a(function(w){switch(w.nextAddress){case 1:Z=_.e(h,_.lz);if(!Z)return w.return();var r,v=Z.panelIdentifier||((r=Z.identifier)==null?void 0:r.tag);if(!v)throw Error("Hi");M=v;return w.yield(g.controller.isVisible(M,!0),2);case 2:if((W=w.yieldResult)&&Z.blockIfPanelOpen)return w.return();I=(c=(z=g.controller).getPanelContent)==null?void 0:c.call(z,M);if(!(r=I))if(Z){var H;r=((H=Z.globalConfiguration)==null?void 0:
H.initialState)||Z.engagementPanel;if(H=!r)H=!!(Z==null?0:(v=Z.engagementPanelPresentationConfigs)==null?0:v.engagementPanelPopupPresentationConfig);H&&(r=_.vvM(Z.panelIdentifier,Z.identifier))}else r=void 0;B=r;U=Z.engagementPanelPresentationConfigs;L=Z.engagementPanelExtras;return w.yield(g.controller.showPanel(M,B,U,L,(d=E)==null?void 0:(C=d.form)==null?void 0:C.element),3);case 3:if(!Z.globalConfiguration){w.jumpTo(0);break}_.mw(g.JSC$17378_screenManager,32633);return w.yield(_.QQ(g.innertubeTransportService,
h),5);case 5:return q=w.yieldResult,g.JSC$17378_screenManager.graftServerVe(q.trackingParams),w.yield(g.controller.updatePanel(M,q.content,!0,L,void 0,q.updatePanelContinuationData),0)}})};
Us[R2]=[_.yV,_.QW,_.gP];var L5=function(h,E){this.controller=h;this.panelLoadingStrategy=E};
_.f(L5,o0);L5.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I;return _.a(function(B){Z=_.e(h,_.w5);if((M=Z)==null||!M.panelLoadingStrategy)return B.return();c=eHX(g.controller,(W=E)==null?void 0:(z=W.form)==null?void 0:z.element);I=function(U){return _.a(function(L){return U.sheetViewModel?L.yield(g.controller.openSheet({viewModel:U.sheetViewModel},c),0):L.return()})};
return B.yield(g.panelLoadingStrategy.execute({command:h,data:Z.panelLoadingStrategy,renderFn:I,createScreenConfig:{layer:0}}),0)})};
L5[R2]=[_.hz,Pq];var j9=function(h,E){this.controller=h;this.JSC$17385_commandHandler=E};
_.f(j9,o0);j9.prototype.resolveCommand=function(h,E){var g=this,Z,M,W;return _.a(function(z){if(z.nextAddress==1){Z=_.e(h,kdF);var c=_.e(Z.showCommand,_.lz),I,B,U=(B=c==null?void 0:c.panelIdentifier)!=null?B:c==null?void 0:(I=c.identifier)==null?void 0:I.tag;if(!U)throw Error("Ii");M=U;return z.yield(g.controller.isVisible(M),2)}return(W=z.yieldResult)?z.yield(g.controller.hidePanel(M),0):z.yield(g.JSC$17385_commandHandler.resolveCommand(Z.showCommand,E),0)})};
j9[R2]=[_.QW,_.zF];var dq=function(h,E,g){this.innertubeTransportService=h;this.controller=E;this.JSC$17388_screenManager=g};
_.f(dq,o0);
dq.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4;return _.a(function(iO){switch(iO.nextAddress){case 1:return Z=g=_.e(h,y0C),M=Z.targetPanelIdentifier,W=Z.contentSourcePanelIdentifier,z=Z.globalConfiguration,((c=M)==null?0:c.tag)&&((I=W)==null?0:I.tag)?z?iO.yield(E.controller.showPanel(M.tag,_.vvM(M.tag,M),void 0,void 0,void 0),5):iO.yield((d=(L=E.controller).getPanel)==null?void 0:d.call(L,W.tag),4):iO.return();case 4:C=iO.yieldResult;B=(q=C)==null?
void 0:(r=(w=q).getPanelContent)==null?void 0:r.call(w);iO.jumpTo(3);break;case 5:return iO.yield(_.QQ(E.innertubeTransportService,h),6);case 6:v=iO.yieldResult,((H=v)==null?0:H.trackingParams)&&E.JSC$17388_screenManager.graftServerVe(v.trackingParams),B=(u=v)==null?void 0:u.content,U=(k=v)==null?void 0:k.updatePanelContinuationData;case 3:if(A=(y=B)==null?void 0:y.engagementPanelSectionListRenderer)return iO.yield(E.controller.showPanel(M.tag,void 0,void 0,void 0,void 0,{content:A.content,secondaryHeaderContent:(E4=
A.header)!=null?E4:{},targetId:A.targetId},U),0);iO.jumpTo(0)}})};
dq[R2]=[_.yV,_.QW,_.gP];var C5=function(){};
_.f(C5,o0);C5.prototype.resolveCommand=function(h){var E,g,Z;return _.a(function(M){if(M.nextAddress==1)return(E=_.e(h,hrM))?M.yield(_.L4(),2):M.return();g=M.yieldResult;if(!g)return M.return();var W=g,z=(Z=E)==null?void 0:Z.languageCode,c;(W==null?0:(c=W.isReady)==null?0:c.call(W))&&(z=HB4(W,z))&&W.setAudioTrack(z);_.SK(M)})};var e9=function(){};
_.f(e9,o0);var qDi=function(h){var E;return _.a(function(g){E=_.nF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;h.JSC$17397_mainAppPlayer=new JS(E);document.addEventListener("yt-page-data-updated",h.JSC$17397_pauseOnNavigation.bind(h));_.SK(g)})};
e9.prototype.JSC$17397_pauseOnNavigation=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return E=h.JSC$17397_mainAppPlayer,Z.yield(E.api,2);g=Z.yieldResult;g.pauseVideo();_.SK(Z)})};
var flG=function(h,E,g){var Z;return _.a(function(M){Z=h.JSC$17397_mainAppPlayer;return M.yield(Z.loadVideoWithPlayerVars({videoId:E,audio_only:"1",player_params:g}),0)})};
e9.prototype.pauseVideo=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return E=h.JSC$17397_mainAppPlayer,Z.yield(E.api,2);g=Z.yieldResult;g.pauseVideo();_.SK(Z)})};
e9.prototype.playVideo=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return E=h.JSC$17397_mainAppPlayer,Z.yield(E.api,2);g=Z.yieldResult;g.playVideo();_.SK(Z)})};
var NBX=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return E=h.JSC$17397_mainAppPlayer,Z.yield(E.api,2);g=Z.yieldResult;g.mute();_.SK(Z)})},tFJ=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1)return E=h.JSC$17397_mainAppPlayer,Z.yield(E.api,2);g=Z.yieldResult;g.unMute();_.SK(Z)})},SDi=function(h,E){return _.a(function(g){switch(g.nextAddress){case 1:switch(E){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return g.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return g.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return g.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return g.jumpTo(5)}g.jumpTo(0);break;case 2:return g.yield(h.playVideo(),7);case 7:g.jumpTo(0);break;case 3:return g.yield(h.pauseVideo(),8);case 8:g.jumpTo(0);break;case 4:return g.yield(NBX(h),9);case 9:g.jumpTo(0);break;case 5:return g.yield(tFJ(h),10);case 10:g.jumpTo(0)}})};
e9.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){return C.nextAddress==1?(g=_.e(h,w5f),((Z=g)==null?0:Z.newPlaybackParams)||((M=g)==null?0:M.controlAction)?E.JSC$17397_mainAppPlayer?C.jumpTo(2):C.yield(qDi(E),2):C.return()):((W=g)==null?0:W.newPlaybackParams)?(I=(z=g)==null?void 0:(c=z.newPlaybackParams)==null?void 0:c.externalVideoId,d=(L=(B=g)==null?void 0:(U=B.newPlaybackParams)==null?void 0:U.playerParams)!=null?L:"",I?C.yield(flG(E,I,d),0):C.return()):
C.yield(SDi(E,g.controlAction),0)})};var qj=function(h){this.JSC$17404_commandHandler=h};
_.f(qj,o0);
qj.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return(g=_.e(h,EJH))?I.yield(_.L4(),2):I.return();Z=I.yieldResult;if(!Z)return I.return();var B=Z,U=(M=g)==null?void 0:M.languageCode,L=(W=g)==null?void 0:W.isAutoTranslated;B.getVideoData&&_.K3q(B).length&&((U=nv$(B,U,L))?B.setOption("captions","track",U):(B.setOption("captions","stickyLoading",{}),B.setOption("captions","track",{})));z=Z.isSubtitlesOn()?_.NH("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.NH("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");c=_.cp(z);E.JSC$17404_commandHandler.resolveCommand(c);_.SK(I)})};
qj[R2]=[_.zF];var f5=function(h,E){this.shortsPlayerPromise=h;this.JSC$17408_commandHandler=E};
_.f(f5,o0);
f5.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1)return(g=_.e(h,jRM))?U.yield(E.shortsPlayerPromise,2):U.return();Z=U.yieldResult;var L=XH4(Z);L!=null&&L.length||(Z.loadModule("captions"),L=XH4(Z));M=L;if((W=M)==null||!W.length)return z=_.NH("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.cp(z),E.JSC$17408_commandHandler.resolveCommand(c),U.return();Z.toggleSubtitles();I=Z.isSubtitlesOn()?_.NH("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.NH("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");B=_.cp(I);E.JSC$17408_commandHandler.resolveCommand(B);_.SK(U)})};
f5[R2]=[_.i7m,_.zF];var Nj=function(h){this.JSC$17411_actionRouter=h;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(E,g){E.triggerAction("yt-dismiss-shopping-timely-shelf-action",g)}]])};
_.f(Nj,o0);Nj.prototype.resolveCommand=function(h){var E=this,g,Z,M;return _.a(function(W){g=_.e(h,Wdn);if((Z=g)==null||!Z.overlayId)return W.return();M=E.dismissPlayerOverlayActions.get(g.overlayId);if(!M)throw Error("Ji`"+g.overlayId);M(E.JSC$17411_actionRouter,g);_.SK(W)})};
Nj[R2]=[ei];var tI=function(h){this.JSC$17415_playerPromise=h};
_.f(tI,o0);tI.prototype.resolveCommand=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return(g=_.e(h,sMM))?z.yield(E.JSC$17415_playerPromise,2):z.return();Z=z.yieldResult;M=Z.getVideoData().video_id;g.videoId===M&&(W=Number(g.offsetFromVideoStartMilliseconds),W>=0&&Z.seekTo(W/1E3));_.SK(z)})};
tI[R2]=[_.IJ];var xAC=_.jD("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),S9=function(h){this.store=h};
_.f(S9,o0);
var wMi=function(h){var E,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return E=_.nF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,g=_.nF("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,Z=E||g,h.JSC$17419_mainAppPlayer=new JS(Z),W.yield(h.JSC$17419_mainAppPlayer.api,2);M=W.yieldResult;M.addEventListener("onStateChange",h.JSC$17419_playerStateChangeListener.bind(h));document.addEventListener("yt-page-data-updated",h.JSC$17419_pauseOnNavigation.bind(h));window.addEventListener("state-navigatestart",
h.JSC$17419_pauseOnNavigation.bind(h));_.SK(W)})};
S9.prototype.JSC$17419_playerStateChangeListener=function(h){switch(h){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"}DAR(this)};
var DAR=function(h){h.store.dispatch(_.xx("sfvAudioItemCurrentlyPlayingEntity",xAC,{key:xAC,externalVideoId:h.externalVideoId,sfvAudioItemPlaybackState:h.playbackState,nowPlayingEntityValue:h.nowPlayingEntityValue}))};
S9.prototype.JSC$17419_pauseOnNavigation=function(){var h=this,E,g,Z,M;return _.a(function(W){if(W.nextAddress==1){if(!h.JSC$17419_mainAppPlayer){var z=new _.xX("Error: mainAppPlayer is unavailable",h.JSC$17419_mainAppPlayer);_.$W(z);return W.return()}return W.yield(h.JSC$17419_mainAppPlayer.api,2)}E=W.yieldResult;Z=(g=E)==null?void 0:g.getPlayerState();Z!==1||(M=E)!=null&&M.pauseVideo();_.SK(W)})};
S9.prototype.playVideo=function(h,E,g){var Z=this,M,W;return _.a(function(z){if(z.nextAddress==1)return z.yield((M=Z.JSC$17419_mainAppPlayer)==null?void 0:M.api,2);W=z.yieldResult;if(!Z.JSC$17419_mainAppPlayer||!W){var c=new _.xX("Error: mainAppPlayer is unavailable",Z.JSC$17419_mainAppPlayer);_.$W(c);return z.return()}return z.yield(Z.JSC$17419_mainAppPlayer.loadVideoWithPlayerVars({videoId:Z.externalVideoId,audio_only:"1",start:h/1E3,end:h/1E3+E,player_params:g}),0)})};
S9.prototype.pauseVideo=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1){if(!h.JSC$17419_mainAppPlayer){var M=new _.xX("Error: mainAppPlayer is unavailable",h.JSC$17419_mainAppPlayer);_.$W(M);return Z.return()}return Z.yield(h.JSC$17419_mainAppPlayer.api,2)}E=Z.yieldResult;(g=E)==null||g.pauseVideo();_.SK(Z)})};
S9.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k;return _.a(function(y){if(y.nextAddress==1)return g=_.e(h,P_n),M=(Z=g)==null?void 0:Z.nowPlayingEntityValue,z=(W=g)==null?void 0:W.externalVideoId,L=Number((U=(c=g)==null?void 0:(I=c.defaultStartPoints)==null?void 0:(B=I[0])==null?void 0:B.offsetMs)!=null?U:"0"),v=Number((r=(d=g)==null?void 0:(C=d.defaultStartPoints)==null?void 0:(q=C[0])==null?void 0:(w=q.duration)==null?void 0:w.seconds)!=null?r:"15"),k=(u=
(H=g)==null?void 0:H.playerParams)!=null?u:"",M&&z?E.JSC$17419_mainAppPlayer?y.jumpTo(2):y.yield(wMi(E),2):y.return();if(y.nextAddress!=6){if(E.nowPlayingEntityValue&&M===E.nowPlayingEntityValue)return E.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?y.yield(E.pauseVideo(),0):y.yield(E.playVideo(L,v,k),0);E.externalVideoId=z;E.nowPlayingEntityValue=M;E.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return y.yield(E.playVideo(L,v,k),6)}DAR(E);return y.jumpTo(0)})};
S9[R2]=[G5];var xq=function(h){this.JSC$17437_commandHandler=h};
_.f(xq,o0);xq.prototype.resolveCommand=function(h,E){var g=this,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return(Z=_.e(h,gJl))?z.yield(_.L4(),2):z.return();M=z.yieldResult;if(!M)return z.return();(W=YSu(M))&&g.JSC$17437_commandHandler.resolveCommand(W,E);_.SK(z)})};
xq[R2]=[_.zF];var wq=function(h){this.JSC$17443_commandHandler=h};
_.f(wq,o0);wq.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return(Z=_.e(h,ZfD))?I.yield(_.L4(),2):I.return();M=I.yieldResult;if(!M)return I.return();(W=F3u(M))?g.JSC$17443_commandHandler.resolveCommand(W,E):(z=_.NH("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.cp(z),g.JSC$17443_commandHandler.resolveCommand(c));_.SK(I)})};
wq[R2]=[_.zF];var Dy=function(h){this.JSC$17446_playerPromise=h};
_.f(Dy,o0);Dy.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){g=_.e(h,Vzf);if(!g)return c.return();Z=g.overlayRenderer;return Z?(M=_.e(Z,a7D))?c.yield(E.JSC$17446_playerPromise,3):c.jumpTo(0):c.return()}W=c.yieldResult;W.renderChapterSeekingAnimation(1,_.Wp(M.text),(z=M.icon)==null?void 0:z.iconType);_.SK(c)})};
Dy[R2]=[_.IJ];var lE=function(h){this.store=h};
_.f(lE,o0);
lE.prototype.resolveCommand=function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1){g=_.e(h,D$B);if(!g)return W.return();Z="";(M=E.store.getState().collabInviteLink)&&g.id===M.playlistId?Z=M.inviteLinkURL:g.shortUrl&&(Z=g.shortUrl);return Z?W.yield(navigator.clipboard.writeText(Z),3):W.jumpTo(0)}var z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.NH("COPY_LINK_SUCCESS_TOAST")}}}}};_.GF().resolve(_.zF).resolveCommand(z);_.SK(W)})};
lE[R2]=[Av];var rq=function(h,E){this.innertubeTransportService=h;this.JSC$17456_commandHandler=E};
_.f(rq,o0);rq.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){if(C.nextAddress==1)return(Z=_.e(h,_.ct))?C.yield(_.QQ(g.innertubeTransportService,h,(M=E)==null?void 0:M.form),2):C.return();(W=C.yieldResult)&&W.errorMetadata&&(z=W,c=_.cp(z.error.message),g.JSC$17456_commandHandler.resolveCommand(c));I=W;if((B=I)==null?0:B.actions)for(U=_.G(I.actions),L=U.next();!L.done;L=U.next())d=L.value,g.JSC$17456_commandHandler.resolveCommand(d);_.SK(C)})};
rq[R2]=[_.yV,_.zF];var mA=function(){};
_.f(mA,o0);mA.prototype.resolveCommand=function(h){var E;return _.a(function(g){E=_.e(h,CGf);if(!E)return g.return();(new a5B(E)).show();_.SK(g)})};_.vq=new _.Ps("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Hq=function(h,E,g,Z){this.store=h;this.innertubeTransportService=E;this.controller=g;this.JSC$17464_commandHandler=Z};
_.f(Hq,o0);
Hq.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO,RW,NN,Cd,Ba;return _.a(function($$){if($$.nextAddress==1){Z=_.e(h,_.M8);if(!Z)return $$.return();if(Z.clientActions){M=_.G(Z.clientActions);for(W=M.next();!W.done;W=M.next())z=W.value,g.JSC$17464_commandHandler.resolveCommand(z);var Ha,zf=E==null?void 0:(Ha=E.form)==null?void 0:Ha.element;zf&&_.Ra(zf,"yt-dismissible-item-action",Z.clientActions)}return $$.yield(_.QQ(g.innertubeTransportService,h,(c=
E)==null?void 0:c.form),2)}if(I=$$.yieldResult)I.errorMetadata?(B=I,U=_.cp(B.error.message),g.JSC$17464_commandHandler.resolveCommand(U),"error"in I&&((L=E)==null?0:(d=L.commandController)==null?0:d.onServerError)&&((C=E)==null||(q=C.commandController)==null||q.onServerError(h,I))):(w=E)==null||(r=w.commandController)==null||(H=(v=r).onSuccess)==null||H.call(v,h,I);u=I;((k=u)==null?0:k.collaborationInviteLink)&&Z.playlistId&&(_.J("web_enable_invite_collaborators_link")||_.J("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
g.store.dispatch(_.RY({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:Z.playlistId,inviteLinkUrl:u.collaborationInviteLink}}));((y=u)==null?0:y.redirectEndpoint)&&g.JSC$17464_commandHandler.resolveCommand(u.redirectEndpoint);((A=u)==null?0:(E4=A.newHeader)==null?0:E4.playlistHeaderRenderer)?llI(g.controller,u.newHeader.playlistHeaderRenderer):((iO=u)==null?0:(RW=iO.newHeader)==null?0:RW.musicEditablePlaylistDetailHeaderRenderer)&&llI(g.controller,u.newHeader.musicEditablePlaylistDetailHeaderRenderer);
g.controller.playlistVideoListElement&&((NN=u)==null?0:(Cd=NN.playlistEditResults)==null?0:(Ba=Cd[0])==null?0:Ba.playlistEditVideoAddedResultData)&&((zf=g.controller.playlistVideoListElement)==null||zf.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:u.playlistEditResults[0].playlistEditVideoAddedResultData})));_.SK($$)})};
Hq[R2]=[Av,_.yV,_.vq,_.zF];var $q=function(h,E){this.controller=h;this.JSC$17474_commandHandler=E};
_.f($q,o0);$q.prototype.resolveCommand=function(h,E){var g=this,Z,M,W;return _.a(function(z){Z=_.e(h,lYC);g.controller.showRefreshPill&&((M=Z)==null?0:M.command)&&(g.JSC$17474_commandHandler.resolveCommand((W=Z)==null?void 0:W.command,E),g.controller.showRefreshPill=!1);_.SK(z)})};
$q[R2]=[_.rL,_.zF];var K5=function(h,E){this.store=h;this.JSC$17478_commandHandler=E||_.eQ.instance};
_.f(K5,o0);K5.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){Z=_.e(h,y2f);M=g.store.getState().radioButtonGroup;if((W=Z)==null?0:W.command)g.JSC$17478_commandHandler.resolveCommand((z=Z)==null?void 0:z.command,E);else if(M&&((c=Z)==null?void 0:c.formId)===M.currentFormId)for(I=Object.values(M.commandsMap),B=_.G(I),U=B.next();!U.done;U=B.next())L=U.value,(d=_.kB(L))&&g.JSC$17478_commandHandler.resolveCommand(d,E);_.SK(C)})};
K5[R2]=[_.c4];var Os=new _.Ps("USER_PREFS");var n5=function(h){this.JSC$17483_prefCookie=h};
_.f(n5,o0);n5.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){(g=_.e(h,IYn))&&typeof g.useListView==="boolean"&&(_.wC(0,155,g.useListView),E.JSC$17483_prefCookie.save());_.SK(Z)})};
n5[R2]=[Os];var X0=function(h){this.JSC$17487_prefCookie=h};
_.f(X0,o0);X0.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z;return _.a(function(c){g=_.e(h,epM);if((Z=g)==null||!Z.gl)return c.return();M=g.gl;W={persist_gl:"1",gl:M};E.JSC$17487_prefCookie.set("gl",M);E.JSC$17487_prefCookie.save();z=a0D(W);_.gD(z);_.SK(c)})};
X0[R2]=[Os];var Yq=function(h){this.JSC$17491_prefCookie=h};
_.f(Yq,o0);Yq.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){g=_.e(h,m$f);if(!g)return M.return();Z=!1;g.flagNum&&typeof g.value==="boolean"?(_.wC(0,g.flagNum,g.value),Z=!0):g.key&&typeof g.stringValue==="string"&&(E.JSC$17491_prefCookie.set(g.key,g.stringValue),Z=!0);Z&&E.JSC$17491_prefCookie.save();_.SK(M)})};
Yq[R2]=[Os];var ss=new _.Ps("PREF_STORAGE_PROMISE_TOKEN");var Vt=function(h){this.JSC$17495_prefStoragePromise=h};
_.f(Vt,o0);Vt.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return(g=_.e(h,Hrk))?M.yield(E.JSC$17495_prefStoragePromise,2):M.return();Z=M.yieldResult;return Z===void 0||g.key===void 0||g.value===void 0?M.return():M.yield(Z.set(g.key,g.value),0)})};
Vt[R2]=[ss];var rn0=function(h){this.innertubeTransportService=h};
_.f(rn0,o0);rn0.prototype.resolveCommand=function(h,E){var g=this,Z,M;return _.a(function(W){(Z=_.e(h,_.KwD))&&Z&&Z.isFirstRequest&&(_.Ye("search_overview_answer"),_.s7("so_rq",void 0,"search_overview_answer"));return W.yield(_.QQ(g.innertubeTransportService,h,(M=E)==null?void 0:M.form),0)})};
rn0[R2]=[_.yV];var mAi=function(){};
_.f(mAi,o0);
mAi.prototype.resolveCommand=function(h){var E,g,Z,M,W,z,c,I,B;return _.a(function(U){E=_.e(h,YJf);if((g=E)==null?0:g.sectionIdentifier){if(E.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(M=(Z=document.getElementsByTagName(E.sectionIdentifier))==null?void 0:Z.item(0))M.scrollIntoView({behavior:"smooth"}),(W=FTd(M))&&W.focus({preventScroll:!0});return U.return()}z=document.querySelector("[section-identifier="+E.sectionIdentifier+"]");c=document.querySelector("[section-identifier="+E.referenceSectionIdentifier+
"]");if(!z)return U.return();I=E.verticalScrollOffsetDp?E.verticalScrollOffsetDp:0;c&&(I-=c.offsetTop);window.scrollTo({top:z.offsetTop+I,behavior:"smooth"});(B=FTd(z))&&B.focus({preventScroll:!0})}_.SK(U)})};var kq=function(h){this.JSC$17507_commandHandler=h};
_.f(kq,o0);
kq.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I;return _.a(function(B){if(B.nextAddress==1){g=_.e(h,zFn);if(!g||!g.imageBytes||!navigator.clipboard)return B.return();if(g.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.$W(Error("Li")),B.return();_.CX(B,2);M=(Z=g)==null?void 0:Z.imageBytes;W=M.replace(/-/g,"+").replace(/_/g,"/");z=SSz(W);c={};I=[new ClipboardItem((c[z.type]=z,c))];return B.yield(navigator.clipboard.write(I),4)}if(B.nextAddress!=2)return g.successCommand&&
E.JSC$17507_commandHandler.resolveCommand(g.successCommand),_.bN(B,0);_.th(B);g.errorCommand&&E.JSC$17507_commandHandler.resolveCommand(g.errorCommand);_.SK(B)})};
kq[R2]=[_.zF];var F0=function(h,E){this.innertubeTransportService=h;this.JSC$17511_commandHandler=E};
_.f(F0,o0);F0.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return(Z=_.e(h,aIM))?I.yield(_.QQ(g.innertubeTransportService,h,(M=E)==null?void 0:M.form),2):I.return();(W=I.yieldResult)&&W.errorMetadata&&Z.onFailureCommand&&g.JSC$17511_commandHandler.resolveCommand(Z.onFailureCommand);z=W;((c=z)==null?0:c.shareCommand)&&g.JSC$17511_commandHandler.resolveCommand(z.shareCommand,E);_.SK(I)})};
F0[R2]=[_.yV,_.zF];var AI=function(){};
_.f(AI,o0);AI.prototype.resolveCommand=function(h){var E,g;return _.a(function(Z){E=_.e(h,x$M);if(!E||!navigator.share)return Z.return();g={url:E.url};try{return Z.return(navigator.share(g))}catch(M){}_.SK(Z)})};var TQ=function(){};
_.f(TQ,o0);TQ.prototype.resolveCommand=function(){return _.a(function(h){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.SK(h)})};var bE=function(h){this.JSC$17521_navigationConfirmationService=h};
_.f(bE,o0);bE.prototype.resolveCommand=function(){var h=this;return _.a(function(E){h.JSC$17521_navigationConfirmationService.cancelPendingNavigation();_.SK(E)})};
bE[R2]=[VW];var uE=function(h){this.JSC$17524_screenManager=h};
_.f(uE,o0);uE.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B;return _.a(function(U){M=(Z=E.form)==null?void 0:Z.event;z=(W=E.form)==null?void 0:W.element;if(!M)throw new _.xX("Event not passed in when resolving command");c=_.G(M.composedPath());for(I=c.next();!I.done;I=c.next())if(B=I.value,B.tagName==="YT-COPY-LINK-RENDERER")return B.copyUrlToClipboard(),z&&_.TT(g.JSC$17524_screenManager,z),U.return();_.SK(U)})};
uE[R2]=[_.gP];var Qt=function(){this.JSC$17528_miniAppClientDataProvider=_.GF().resolve(_.Lv)};
_.f(Qt,o0);Qt.prototype.resolveCommand=function(){var h=this,E,g;return _.a(function(Z){if(h.JSC$17528_miniAppClientDataProvider.clientData.has("video_id")){var M=h.JSC$17528_miniAppClientDataProvider,W=M.clientData.get("video_id");W&&M.clientData.delete("video_id");E="https://youtube.com/watch?v="+W;g=_.nM(E);if(g===void 0)throw Error("Mi`"+E);_.EZ(window,g)}_.SK(Z)})};var h_=function(){};
_.f(h_,o0);h_.prototype.resolveCommand=function(){return _.a(function(h){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.SK(h)})};var Eg=function(){};
_.f(Eg,o0);Eg.prototype.resolveCommand=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.xuN(window.document.documentElement),2);(h=document.querySelector("mini-app-container-view-model iframe"))&&h.focus();_.SK(E)})};var gV=function(h){this.JSC$17535_navigationConfirmationService=h};
_.f(gV,o0);
gV.prototype.resolveCommand=function(){var h=this;return _.a(function(E){var g=h.JSC$17535_navigationConfirmationService,Z=_.GF().resolve(_.TV),M;if(((M=g.navigateParams)==null?void 0:M.data)!==void 0){var W;_.otD(Z,g.navigateParams.endpoint,g.navigateParams.data,(W=g.navigateParams.navigationType)!=null?W:1,g.navigateParams.tempData,g.navigateParams.isMiniplayer,void 0,!0);g.navigateParams=void 0;g.customConfirmationCommand=void 0}else g.navigateParams&&(Z.navigate(g.navigateParams.endpoint,g.navigateParams.reload,
g.navigateParams.params,g.navigateParams.tempData,g.navigateParams.requestType,g.navigateParams.createScreenConfig,!0),g.navigateParams=void 0,g.customConfirmationCommand=void 0);_.SK(E)})};
gV[R2]=[VW];var ZK=function(){};
_.f(ZK,o0);ZK.prototype.resolveCommand=function(){return _.a(function(h){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.SK(h)})};var M4=function(h){this.JSC$17540_prefStorage=h};
_.f(M4,o0);M4.prototype.resolveCommand=function(){var h=this,E,g;return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(h.JSC$17540_prefStorage,2);case 2:return(E=Z.yieldResult)?Z.yield(E.set("sfvle",!1),3):Z.return();case 3:return Z.yield(E.set("sfvles",!0),4);case 4:g=_.xe(),_.wC(0,203,!1),_.wC(0,204,!0),g.save(),_.SK(Z)}})};
M4[R2]=[ss];var Wf=function(h){this.JSC$17543_prefStorage=h};
_.f(Wf,o0);Wf.prototype.resolveCommand=function(){var h=this,E,g;return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(h.JSC$17543_prefStorage,2);case 2:return(E=Z.yieldResult)?Z.yield(E.set("sfvle",!0),3):Z.return();case 3:return Z.yield(E.set("sfvles",!0),4);case 4:g=_.xe(),_.wC(0,203,!0),_.wC(0,204,!0),g.save(),_.SK(Z)}})};
Wf[R2]=[ss];_.vMi=new _.Ps("SNACKBAR_CONTROLLER_TOKEN");_.HDX=new _.Ps("SHOULD_SHOW_PIVOT_BAR_TOKEN");var pG=function(h){this.controller=h};
_.f(pG,o0);pG.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){g=_.e(h,NKl);if(!g)return Z.return();var M=E.controller;M.closeSnackbarFn&&M.closeSnackbarFn();_.SK(Z)})};
pG[R2]=[_.vMi];var GL=function(h,E){this.controller=h;this.sheetController=E};
_.f(GL,o0);GL.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I;return _.a(function(B){Z=_.e(h,ShF);if(!Z)return B.return();z=eHX(g.sheetController,(M=E)==null?void 0:(W=M.form)==null?void 0:W.element);c=_.e(Z.content,YhA);if(!c)return B.return();var U=g.controller,L=c,d=(I=Z.animationStyle)!=null?I:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(U.showSnackbarFn)U.showSnackbarFn({snackbarViewModel:L,animationStyle:d,durationMs:Z.durationSeconds*1E3,target:z});else throw Error("vj");_.SK(B)})};
GL[R2]=[_.vMi,_.hz];var zL=function(){};
_.f(zL,o0);zL.prototype.resolveCommand=function(h){var E;return _.a(function(g){E=_.e(h,vsk);if(!E||typeof E.key!=="string"||typeof E.value!=="string")return g.return();window.localStorage.setItem(E.key,E.value);_.SK(g)})};var aA=function(h){this.store=h};
_.f(aA,o0);aA.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){g=_.e(h,IZu);if(!g||!g.stepId||!g.token)return Z.return();E.store.dispatch(RWB({stepId:g.stepId,token:g.token,isSelected:!1}));_.SK(Z)})};
aA[R2]=[Av];var cf=function(h,E,g){this.innertubeTransportService=h;this.store=E;this.JSC$17562_screenManager=g};
_.f(cf,o0);
cf.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y,A,E4,iO;return _.a(function(RW){g=_.e(h,SjF);if(!g||(Z=g.stepIds)==null||!Z.length)return RW.return();M=E.store.getState().talkToRecs;W=[];z=[];c=_.G(g.stepIds);for(I=c.next();!I.done;I=c.next())for(B=I.value,U=void 0,(L=(U=M.stepStates[B])==null?void 0:U.userQuery)&&z.push({userQuery:L.userQuery,userQueryToken:L.token}),d=void 0,C=(d=M.stepStates[B])==null?void 0:d.selectionStates,q=_.G(Object.entries(C)),w=
q.next();!w.done;w=q.next())r=w.value,v=_.G(r),H=v.next().value,u=v.next().value,k=H,y=u,y.isSelected&&W.push(k);A={selectedChipTokens:W,userQueries:z,submittedStepIds:g.stepIds};E4={browseTalk2recsFormData:A};g.browseEndpoint?(iO=h,_.nL(iO,_.tk,g.browseEndpoint)):g.command&&(iO=g.command);return iO?RW.yield(_.QQ(E.innertubeTransportService,iO,{formData:E4,disableCache:!0}).then(function(NN){(NN==null?0:NN.trackingParams)&&E.JSC$17562_screenManager.graftServerVe(NN==null?void 0:NN.trackingParams)}),
0):RW.return()})};
cf[R2]=[_.yV,Av,_.gP];var iu=function(h){this.store=h};
_.f(iu,o0);iu.prototype.resolveCommand=function(h){var E=this,g;return _.a(function(Z){g=_.e(h,o1x);if(!g||!g.stepId||!g.token)return Z.return();E.store.dispatch(RWB({stepId:g.stepId,token:g.token,isSelected:!0}));_.SK(Z)})};
iu[R2]=[Av];var oA=function(h){this.store=h};
_.f(oA,o0);oA.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c;return _.a(function(I){Z=_.e(h,xgM);if(!Z||!Z.stepId||!Z.userQueryToken)return I.return();c=(z=(M=E)==null?void 0:(W=M.form)==null?void 0:W.userQuery)!=null?z:"";g.store.dispatch(_.RY({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:Z.stepId,userQueryToken:Z.userQueryToken,userQuery:c}}));_.SK(I)})};
oA[R2]=[Av];_.$AU=new _.Ps("TIMELY_ACTIONS_CONTROLLER_TOKEN");var IA=function(h){this.controller=h};
_.f(IA,o0);IA.prototype.resolveCommand=function(h){var E=this,g,Z,M,W;return _.a(function(z){g=_.e(h,OfD);if(!g)return z.return();Z=g;M=Z.id;W=Z.isVisible;if(M===void 0||W===void 0)return z.return();var c;(c=E.controller.timelyActionsMap.get(M))==null||c(M,W);_.SK(z)})};
IA[R2]=[_.$AU];var KfC=function(){this.timelyActionsMap=new Map};var RA=function(h){this.JSC$17588_commandHandler=h};
_.f(RA,o0);RA.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z;return _.a(function(c){g=_.e(h,_.K1);if(!g)return c.return();W=(Z=g.item)==null?void 0:(M=Z.notificationTextRenderer)==null?void 0:M.successResponseText;if(!W)return c.return();z=_.at(W);E.JSC$17588_commandHandler.resolveCommand(z);_.SK(c)})};
RA[R2]=[_.zF];var Pf=function(h,E){this.innertubeTransportService=h;this.JSC$17593_playerApiPromise=E};
_.f(Pf,o0);
Pf.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U;return _.a(function(L){if(L.nextAddress==1)return L.yield(E.JSC$17593_playerApiPromise,2);g=L.yieldResult;Z=g.getOption("captions","track");M=Object.assign({},_.e(h,_.MbF));(z=(W=g.getVideoData())==null?void 0:W.video_id)?M.externalVideoId=z:_.Fn(Error("Ni"));if((c=Z)==null?0:c.languageCode)M.languageCode=Z.languageCode;if((I=Z)==null?0:I.kind)M.kind=Z.kind;if((B=Z)==null?0:B.name)M.name=Z.name;U=Object.assign({},h,{getTranscriptEndpoint:M});return L.yield(_.QQ(E.innertubeTransportService,
U),0)})};
Pf[R2]=[_.yV,_.IJ];var Bf=function(){};
_.f(Bf,o0);Bf.prototype.resolveCommand=function(h){var E,g,Z,M,W,z,c,I;return _.a(function(B){E=_.e(h,k7B);if((g=E)==null||!g.paramKeyValuePairs)return B.return();Z=window.location.href;M=_.G(E.paramKeyValuePairs);for(W=M.next();!W.done;W=M.next())z=W.value,z.key&&z.value&&(c={},Z=_.Qy(Z,(c[z.key]=z.value,c)));I=_.GF().resolve(_.XJ);_.nV(I,Z);_.SK(B)})};var Ug=function(h,E){this.JSC$17600_commandHandler=h;this.innertubeTransportService=E};
_.f(Ug,o0);
Ug.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u;return _.a(function(k){switch(k.nextAddress){case 1:return(W=(Z=E)==null?void 0:(M=Z.form)==null?void 0:M.element)&&_.sa(W),z=_.xe().get("hl"),c="",_.CX(k,2),k.yield(u7d(z),4);case 4:c=k.yieldResult;_.bN(k,3);break;case 2:return _.th(k),W&&_.VK(W),_.$W(Error("Pi"),"ERROR"),k.return();case 3:I=_.e(h,Uyf);if(!I)return W&&_.VK(W),k.return();(L=(B=I.commerceActionConfig)==null?void 0:(U=B.commandLifeCycleConfig)==null?
void 0:U.onStartCommand)&&g.JSC$17600_commandHandler.resolveCommand(L);return k.yield(_.QQ(g.innertubeTransportService,h,{client_data:{paymentsClientToken:{token:c}}}),5);case 5:(d=k.yieldResult)?(W&&_.VK(W),((r=d)==null?0:r.command)&&g.JSC$17600_commandHandler.resolveCommand(d.command),(u=(v=I.commerceActionConfig)==null?void 0:(H=v.commandLifeCycleConfig)==null?void 0:H.onSuccessCommand)&&g.JSC$17600_commandHandler.resolveCommand(u)):(W&&_.VK(W),_.$W(Error("Qi")),(w=(C=I.commerceActionConfig)==
null?void 0:(q=C.commandLifeCycleConfig)==null?void 0:q.onFailureCommand)&&g.JSC$17600_commandHandler.resolveCommand(w)),_.SK(k)}})};
Ug[R2]=[_.zF,_.yV];var LG=function(h,E,g){this.store=h;this.JSC$17616_commandHandler=E;this.innertubeTransportService=g};
_.f(LG,o0);
LG.prototype.resolveCommand=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L;return _.a(function(d){Z=_.e(h,LlM);M=Z.googlePaymentPayload;Z.onStartCommand&&g.JSC$17616_commandHandler.resolveCommand(Z.onStartCommand);W=M.encryptedPurchaseParams;z=M.ypcLogWalletAnalyticDataEndpoint;c=Z.serializedTransactionFlowLoggingParams;I=M.serializedPaymentsClientParams;B=Z.ypcCujContext;L=EQV(g.innertubeTransportService,(U=E)==null?void 0:U.form,W,z,c,I,B);return d.return(L.then(function(C){QsZ(E==null?void 0:E.form,
!1);var q=g.store,w=g.JSC$17616_commandHandler,r=C.integratorData;r==null||r===""||C.error!=null?(String(C.error)==="-1"&&Z.onDismissCommand?w.resolveCommand(Z.onDismissCommand):String(C.error)!=="-1"&&Z.onFailureCommand&&w.resolveCommand(Z.onFailureCommand),String(C.error)!=="-1"&&String(C.error)!=="132"&&_.$W(Error("Ri"),"ERROR")):(Z.googlePaymentEntityKey&&q.dispatch(_.xx("commerceAcquisitionClientPayloadEntity",Z.googlePaymentEntityKey,{key:Z.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:r,
fundsGuaranteeCallbackClientData:C.integratorClientCallbackData}}})),Z.onSuccessCommand&&w.resolveCommand(Z.onSuccessCommand));_.dC()},function(C){QsZ(E==null?void 0:E.form,!1);
_.$W(C,"ERROR");Z.onFailureCommand&&g.JSC$17616_commandHandler.resolveCommand(Z.onFailureCommand)}))})};
LG[R2]=[G5,_.zF,_.yV];var jC=function(h,E){this.JSC$17620_commandHandler=h;this.purchaseManager=E};
_.f(jC,o0);
jC.prototype.resolveCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U;return _.a(function(L){g=_.e(h,jqM);((Z=g)==null?0:(M=Z.commandLifeCycleConfig)==null?0:M.onStartCommand)&&E.JSC$17620_commandHandler.resolveCommand(g.commandLifeCycleConfig.onStartCommand);if(!((W=g)==null?0:(z=W.googlePaymentPurchaseManagerPayload)==null?0:z.securePayloadBytes))return _.$W(Error("Si"),"ERROR"),L.return();c=OmM(_.Qx(g.googlePaymentPurchaseManagerPayload.securePayloadBytes));I=_.xe().get("hl");B=_.hU();$NG(c.serialize(),
I,function(d){B.resolve(d)},function(d){B.reject(d)},B.resolve);
U=B.promise;return L.return(U.then(function(d){if(d)if(d==null?0:d.errorCode){_.$W(Error("Ti`"+d.errorCode),"ERROR");var C,q;((C=g)==null?0:(q=C.commandLifeCycleConfig)==null?0:q.onFailureCommand)&&E.JSC$17620_commandHandler.resolveCommand(g.commandLifeCycleConfig.onFailureCommand)}else if(d==null?0:d.isCancelled){var w,r;((w=g)==null?0:(r=w.commandLifeCycleConfig)==null?0:r.onCancelCommand)&&E.JSC$17620_commandHandler.resolveCommand(g.commandLifeCycleConfig.onCancelCommand)}else{var v,H;((v=g)==
null?0:(H=v.commandLifeCycleConfig)==null?0:H.onSuccessCommand)&&E.JSC$17620_commandHandler.resolveCommand(g.commandLifeCycleConfig.onSuccessCommand)}},function(d){_.$W(d,"ERROR");
var C,q;((C=g)==null?0:(q=C.commandLifeCycleConfig)==null?0:q.onFailureCommand)&&E.JSC$17620_commandHandler.resolveCommand(g.commandLifeCycleConfig.onFailureCommand)}))})};
jC[R2]=[_.zF,KZ0];var ODJ=function(h,E){this.JSC$17628_commandHandler=h;this.commandAllowlistOverride=E;var g;this.commandAllowlist=(g=this.commandAllowlistOverride)!=null?g:Ez};
ODJ.prototype.handleResponse=function(h,E,g){var Z,M=E==null?void 0:(Z=E.config)==null?void 0:Z.command;if(!M||this.commandAllowlist.some(function(W){return!!_.e(M,W)})){E=void 0;
g!==void 0&&(E={form:{element:g}});h.onResponseReceivedCommand&&this.JSC$17628_commandHandler.resolveCommand(h.onResponseReceivedCommand,E);h.onResponseReceivedAction&&this.JSC$17628_commandHandler.resolveCommand(h.onResponseReceivedAction,E);h.onResponseReceivedEndpoint&&this.JSC$17628_commandHandler.resolveCommand(h.onResponseReceivedEndpoint,E);h.command&&this.JSC$17628_commandHandler.resolveCommand(h.command,E);if(h.onResponseReceivedCommands)for(g=_.G(h.onResponseReceivedCommands),Z=g.next();!Z.done;Z=
g.next())this.JSC$17628_commandHandler.resolveCommand(Z.value,E);if(h.onResponseReceivedActions)for(g=_.G(h.onResponseReceivedActions),Z=g.next();!Z.done;Z=g.next())this.JSC$17628_commandHandler.resolveCommand(Z.value,E);if(h.onResponseReceivedEndpoints)for(g=_.G(h.onResponseReceivedEndpoints),Z=g.next();!Z.done;Z=g.next())this.JSC$17628_commandHandler.resolveCommand(Z.value,E);if(h.actions)for(h=_.G(h.actions),g=h.next();!g.done;g=h.next())this.JSC$17628_commandHandler.resolveCommand(g.value,E)}};
ODJ[R2]=[_.zF,_.pl(ZTq)];var nM0=new _.Ps("INNERTUBE_TOKEN_SERVICE");var XMC=new _.Ps("SCHEDULER_TOKEN");var YDc=function(h){this.scheduler=h;h={};this.tokenMap=(h.app={},h.user={},h)};
YDc.prototype.handleResponse=function(h,E){if(!E)throw Error("Ui");var g;if(h=(g=h.responseContext)==null?void 0:g.innertubeTokenJar){if(h.appTokens){var Z,M,W;g=(Z=E.innerTubeRequest.context)==null?void 0:(M=Z.request)==null?void 0:(W=M.innertubeTokenJar)==null?void 0:W.appTokens;smJ(this,h.appTokens,this.tokenMap.app,g)}if(h.userTokens){var z,c,I;E=(z=E.innerTubeRequest.context)==null?void 0:(c=z.request)==null?void 0:(I=c.innertubeTokenJar)==null?void 0:I.userTokens;smJ(this,h.userTokens,this.tokenMap.user,
E)}}};
YDc.prototype.processContext=function(h){h.request||(h.request={});var E=Object.keys(this.tokenMap.app).length,g=Object.keys(this.tokenMap.user).length;if(E||g)h.request.innertubeTokenJar={},E&&(h.request.innertubeTokenJar.appTokens=[].concat(_.$E(Object.values(this.tokenMap.app).flat()))),g&&(h.request.innertubeTokenJar.userTokens=[].concat(_.$E(Object.values(this.tokenMap.user).flat())))};
var smJ=function(h,E,g,Z){E=_.G(E);for(var M=E.next(),W={};!M.done;W={token$jscomp$139:void 0},M=E.next()){W.token$jscomp$139=M.value;if(W.token$jscomp$139.type===void 0)throw new _.xX("InnerTube token has no type",W.token$jscomp$139);if(W.token$jscomp$139.clearTokens)g[W.token$jscomp$139.type]=[];else if(W.token$jscomp$139.value!==void 0){g[W.token$jscomp$139.type]||(g[W.token$jscomp$139.type]=[]);if(Z!==void 0&&Z.length){M=_.G(Z);for(var z=M.next(),c={};!z.done;c={requestToken:void 0},z=M.next())c.requestToken=
z.value,z=g[W.token$jscomp$139.type].findIndex(function(I){return function(B){return B===I.requestToken||(0,_.Kt.equals)(B,I.requestToken)}}(c)),z>-1&&g[W.token$jscomp$139.type].splice(z,1)}g[W.token$jscomp$139.type].push(W.token$jscomp$139);
W.token$jscomp$139.maxAgeSeconds&&Number(W.token$jscomp$139.maxAgeSeconds)>0&&h.scheduler.addLowPriorityJob(function(I){return function(){var B=g[I.token$jscomp$139.type].indexOf(I.token$jscomp$139);B>-1&&g[I.token$jscomp$139.type].splice(B,1)}}(W),Number(W.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.xX("InnerTube token has no value",W.token$jscomp$139);
}};
YDc[R2]=[XMC];var VFi=new _.Ps("LOCAL_INNERTUBE_ROUTER_TOKEN"),kf0=new _.Ps("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var dV=function(h){this.serviceMap=h};
dV.prototype.shouldPreferLocalResponse=function(h,E){return(h=ynI(this,h))?h.shouldPreferLocalResponse(E):!1};
dV.prototype.localInnertubeResponse=function(h,E){var g=this,Z;return _.a(function(M){return(Z=ynI(g,h))?M.return(Z.localInnertubeResponse(E)):M.return(Promise.reject(Error("Vi")))})};
dV.prototype.canProvideFallbackResponse=function(h,E){return(h=ynI(this,h))?h.canProvideFallbackResponse(E):!1};
dV.prototype.localFallbackInnertubeResponse=function(h,E){var g=this,Z;return _.a(function(M){return(Z=ynI(g,h))?M.return(Z.localFallbackInnertubeResponse(E)):M.return(Promise.reject(Error("Vi")))})};
var ynI=function(h,E){E=_.jy(E);return E?(h=h.serviceMap[E])?h:null:null};
dV[R2]=[kf0];var qh=function(){};
qh.prototype.shouldPreferLocalResponse=function(){return!1};
qh.prototype.localInnertubeResponse=function(){return _.a(function(h){return h.return(Promise.reject(Error("Wi")))})};
qh.prototype.canProvideFallbackResponse=function(){return!0};
qh.prototype.localFallbackInnertubeResponse=function(){var h,E,g;return _.a(function(Z){h=Cu("CLOSE_POPUP");E={openPopupAction:Zhd()};g={actions:[h,E]};return Z.return(g)})};var Zxx=function(h,E){this.JSC$17678_upliftPromise=h;this.store=E};
_.p=Zxx.prototype;_.p.shouldPreferLocalResponse=function(h){var E=h.videoId,g;if(g=E)g=Bcz(this.store.getState().entities,h.videoId);return g&&U8a(this.store.getState().entities,E)?W6d(this.store.getState().entities,h.playlistId):!1};
_.p.localInnertubeResponse=function(h){var E=this,g;return _.a(function(Z){return(g=E.getPlayerResponse(h))?Z.return(Promise.resolve(g)):Z.return(Promise.reject(Error("Xi")))})};
_.p.canProvideFallbackResponse=function(h){return!!h.videoId};
_.p.localFallbackInnertubeResponse=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.JSC$17678_upliftPromise,2);g=E.getPlayerResponse(h);var M;g?M=Z.return(Promise.resolve(g)):M=mM(E.store.getState().entities,h.videoId)?Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iV(_.NH("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Bvd()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
Z.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iV(_.NH("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:PgO()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return M})};
_.p.getPlayerResponse=function(h){return sx$(this.store.getState().entities,h.videoId)};var e6=function(h,E){this.localPlayerService=h;this.localWatchNextService=E};
e6.prototype.shouldPreferLocalResponse=function(h){var E=h.playerRequest;h=h.watchNextRequest;return!!(E&&this.localPlayerService.shouldPreferLocalResponse(E)&&h&&this.localWatchNextService.shouldPreferLocalResponse(h))};
e6.prototype.localInnertubeResponse=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){g=h.playerRequest;Z=h.watchNextRequest;if(!g||!Z)throw new _.xX("Missing streaming request",h);return z.yield(E.localPlayerService.localInnertubeResponse(g),2)}if(z.nextAddress!=3)return M=z.yieldResult,z.yield(E.localWatchNextService.localInnertubeResponse(Z),3);W=z.yieldResult;return z.return({playerResponse:M,watchNextResponse:W})})};
e6.prototype.canProvideFallbackResponse=function(h){var E=h.playerRequest;h=h.watchNextRequest;return!!(E&&this.localPlayerService.canProvideFallbackResponse(E)&&h&&this.localWatchNextService.canProvideFallbackResponse(h))};
e6.prototype.localFallbackInnertubeResponse=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return g=h.playerRequest,Z=h.watchNextRequest,g&&Z?z.yield(E.localPlayerService.localFallbackInnertubeResponse(g),2):z.return(Promise.reject(new _.xX("Missing streaming request",h)));if(z.nextAddress!=3)return M=z.yieldResult,z.yield(E.localWatchNextService.localFallbackInnertubeResponse(Z),3);W=z.yieldResult;return z.return({playerResponse:M,watchNextResponse:W})})};var dE=function(h){this.JSC$17688_persistentStorePromiseAccessor=h};
dE.prototype.shouldPreferLocalResponse=function(){return!1};
dE.prototype.localInnertubeResponse=function(){return _.a(function(h){return h.return(Promise.reject(Error("Yi")))})};
dE.prototype.canProvideFallbackResponse=function(){return!0};
dE.prototype.localFallbackInnertubeResponse=function(){var h=this,E,g;return _.a(function(Z){return Z.nextAddress==1?Z.yield(h.JSC$17688_persistentStorePromiseAccessor(),2):Z.nextAddress!=3?(E=Z.yieldResult)?Z.yield(E.get("service:guide:fallback"),3):Z.return(Promise.reject(Error("Zi"))):(g=Z.yieldResult)&&_.Ww(g)?Z.return(p7$(_.Ww(g))):Z.return(Promise.reject(Error("$i")))})};var f$=function(){};
f$.prototype.shouldPreferLocalResponse=function(){return!1};
f$.prototype.localInnertubeResponse=function(){return _.a(function(h){return h.return(Promise.reject(Error("aj")))})};
f$.prototype.canProvideFallbackResponse=function(){return!0};
f$.prototype.localFallbackInnertubeResponse=function(){var h,E,g;return _.a(function(Z){h=Cu("CLOSE_POPUP");E={openPopupAction:Zhd()};g={actions:[h,E]};return Z.return(g)})};var L$=function(){this.urlMap=FfG;this.fallbackCommand=_.VU};
L$.prototype.shouldPreferLocalResponse=function(h){return(h=h.url)?!!AnG(this,h):!1};
L$.prototype.localInnertubeResponse=function(h){var E=this,g;return _.a(function(Z){return(g=h.url)?Z.return(TBJ(h,AnG(E,g))):Z.return(Promise.reject(Error("bj")))})};
L$.prototype.canProvideFallbackResponse=function(){return!0};
L$.prototype.localFallbackInnertubeResponse=function(h){var E=this,g,Z,M,W,z,c,I;return _.a(function(B){g=h.url;if(!g)return B.return(TBJ(h,E.fallbackCommand));if(Z=AnG(E,g))return B.return(TBJ(h,Z));M=void 0;W=_.jy(g);W==="/watch"&&(z=_.FR(g,"v"))&&(I=(c=_.FR(g,"list"))!=null?c:void 0,M=_.cn(z,I));M||(M=E.fallbackCommand);return B.return(TBJ(h,M))})};
var AnG=function(h,E){if(E)return h.urlMap[_.QE(E)]},TBJ=function(h,E){E&&h.parentTrackingParams&&(E.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:h.parentTrackingParams}},E.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:E})};var C$=function(h,E,g){this.JSC$17698_upliftPromise=h;this.store=E;this.JSC$17698_persistentStorePromiseAccessor=g};
C$.prototype.shouldPreferLocalResponse=function(){return!1};
C$.prototype.localInnertubeResponse=function(){return _.a(function(h){return h.return(Promise.reject(Error("cj")))})};
C$.prototype.canProvideFallbackResponse=function(){return!0};
C$.prototype.localFallbackInnertubeResponse=function(){var h=this;return _.a(function(E){return E.return(bDG(h))})};
var bDG=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(Mh(h.JSC$17698_upliftPromise,h.store),2);E=Z.yieldResult;g={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[M2Z(E)]}}}};return Z.return(uCi(h,g))})},uCi=function(h,E){var g,Z;
return _.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$17698_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return g=M.yieldResult,M.yield(p$(g),3);Z=M.yieldResult;return M.return({responseContext:{},contents:E,topbar:Z})})};var Bw=function(h,E,g){this.JSC$17705_upliftPromise=h;this.store=E;this.JSC$17705_persistentStorePromiseAccessor=g};
Bw.prototype.shouldPreferLocalResponse=function(h){var E=h.videoId;return E&&Bcz(this.store.getState().entities,E)&&U8a(this.store.getState().entities,E)?W6d(this.store.getState().entities,h.playlistId):!1};
Bw.prototype.localInnertubeResponse=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return(g=h.videoId)?M.yield(E.JSC$17705_upliftPromise,2):M.return(Promise.reject(Error("dj")));if(M.nextAddress!=3)return M.yield(QmC(E,h,g),3);Z=M.yieldResult;return M.return(hCJ(E,Z,g))})};
Bw.prototype.canProvideFallbackResponse=function(h){return h.videoId?!0:!1};
Bw.prototype.localFallbackInnertubeResponse=function(h){var E=this,g,Z,M,W;return _.a(function(z){switch(z.nextAddress){case 1:return(g=h.videoId)?z.yield(E.JSC$17705_upliftPromise,2):z.return(Promise.reject(Error("dj")));case 2:return z.yield(QmC(E,h,g),3);case 3:Z=z.yieldResult;if(mM(E.store.getState().entities,g)){z.jumpTo(4);break}return z.yield(Mh(E.JSC$17705_upliftPromise,E.store),5);case 5:return M=z.yieldResult,z.return(EUi(Z,M));case 4:return Bcz(E.store.getState().entities,g)&&U8a(E.store.getState().entities,
g)?z.return(hCJ(E,Z,g)):(W={title:_.iV(_.NH("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Bvd()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},z.return(EUi(Z,W)))}})};
var QmC=function(h,E,g){var Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return Z=E.playlistId,M=_.cn(g,Z),I.yield(h.JSC$17705_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return W=I.yieldResult,I.yield(p$(W),3);z=I.yieldResult;c={responseContext:{},currentVideoEndpoint:M,topbar:z};return I.return(c)})},hCJ=function(h,E,g){if(h=mM(h.store.getState().entities,g)){var Z;
g=h.videoEntity;var M,W={title:oY(g.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.IY((Z=g.localizedStrings)==null?void 0:Z.viewCount),viewCount:_.IY((M=g.localizedStrings)==null?void 0:M.viewCount)}}};g.publishedTimestampMillis&&(W.dateText=_.IY(Kux(new Date(Number(g.publishedTimestampMillis)))));Z={videoPrimaryInfoRenderer:W};M=h.videoEntity;h=h.channelEntity;h={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:oY(_.NH("SHOW_MORE",void 0,"Show more")),
showLessText:oY(_.NH("SHOW_LESS",void 0,"Show less")),description:M.formattedDescription,owner:{videoOwnerRenderer:{title:oY(h.title),thumbnail:h.avatar}}}};E.contents={twoColumnWatchNextResults:{results:{results:{contents:[Z,h]}}}}}return E},EUi=function(h,E){h.contents={singleColumnWatchNextResults:{results:{results:{contents:[M2Z(E)]}}}};
return h};var JN=function(h,E,g){this.JSC$17710_upliftPromise=h;this.store=E;this.JSC$17710_persistentStorePromiseAccessor=g};
JN.prototype.shouldPreferLocalResponse=function(){return!1};
JN.prototype.localInnertubeResponse=function(){return _.a(function(h){return h.return(Promise.reject(Error("ej")))})};
JN.prototype.canProvideFallbackResponse=function(){return!0};
JN.prototype.localFallbackInnertubeResponse=function(){var h=this,E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return W.yield(h.JSC$17710_persistentStorePromiseAccessor(),2);case 2:return E=W.yieldResult,W.yield(p$(E),3);case 3:return g=W.yieldResult,Z={responseContext:{},topbar:g},W.yield(h.JSC$17710_upliftPromise,4);case 4:return W.yield(Mh(h.JSC$17710_upliftPromise,h.store),5);case 5:return M=W.yieldResult,Z.watchStatus={backgroundPromoRenderer:M},W.return(Z)}})};_.gUI=new _.Ps("ENDPOINT_MAP");var ZUI=function(){var h=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return h.sequenceMap}}},zDM=function(h,E,g){var Z,M=(Z=E.config)==null?void 0:Z.sequenceStrategy;
if(!M)return g();h.sequenceMap.has(M.sequenceKey)||h.sequenceMap.set(M.sequenceKey,[]);h=h.sequenceMap.get(M.sequenceKey);switch(M.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Mxi(h,E,g);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Wic(h,E,g);default:throw new _.xX("Request could not be sequenced",E);}},Mxi=function(h,E,g){var Z,M,W;
return _.a(function(z){h.length>0?(M=h[h.length-1],Z=M.responsePromise.then(function(){return g()})):Z=g();
W={request:E,responsePromise:Z};h.push(W);pcI(h,W);return z.return(W.responsePromise)})},Wic=function(h,E,g){g=g();
if(h.length>0)for(var Z=_.G(h),M=Z.next();!M.done;M=Z.next())M.value.responsePromise=g;var W={request:E,responsePromise:g};h.push(W);pcI(h,W);return Promise.resolve().then(function(){return h.indexOf(W)>0?W.responsePromise.then(function(z){return Object.assign({},z,{sequenceMetaData:{skipProcessing:!0}})}):W.responsePromise})},pcI=function(h,E){E.responsePromise.then(function(){var g=h.indexOf(E);
g>-1&&h.splice(g,1)})};var Gpp=new _.Ps("REQUEST_SEQUENCING");var CG=function(){};
_.f(CG,Ok);CG.prototype.getApiPaths=function(){return[]};
CG.prototype.getExtension=function(h){return _.e(h,FIl)};
CG.prototype.JSC$13116_buildRequest=function(h,E){h.recaptchaToken=E.recaptchaToken};
CG.prototype.getApiUrl=function(){return"/das_captcha"};var J_=function(){};
_.f(J_,Ok);J_.prototype.getApiPaths=function(){return PLB};
J_.prototype.getExtension=function(h){return _.e(h,ePA)};
J_.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.createBackstagePostParams&&(h.createBackstagePostParams=E.createBackstagePostParams);g.comment_text&&(h.commentText=g.comment_text);if(g.attached_video_id)h.videoAttachment={videoId:g.attached_video_id};else if(g.image_poll_options)h.pollAttachmentData={options:g.image_poll_options};else if(g.poll_options)h.pollAttachment={choices:g.poll_options};else if(g.quiz_options)h.quizAttachmentData={options:g.quiz_options};else if(g.image_blob_id)h.imageAttachment=
{encryptedBlobId:g.image_blob_id},g.source_video_id&&(h.imageAttachment.sourceExternalVideoId=g.source_video_id),g.image_preview_coordinates&&(h.imageAttachment.previewCoordinates=JSON.parse(g.image_preview_coordinates));else if(g.images_data)h.imagesAttachment={imagesData:g.images_data};else if(g.clip_external_video_id!==void 0||g.clip_offset_ms!==void 0||g.clip_duration_ms!==void 0){var Z,M,W,z,c;h.clipAttachment={externalVideoId:(W=g.clip_external_video_id)!=null?W:"",offsetMs:(z=(Z=g.clip_offset_ms)==
null?void 0:Z.toString())!=null?z:"",durationMs:(c=(M=g.clip_duration_ms)==null?void 0:M.toString())!=null?c:""}}else g.shared_post_id&&(h.sharedPostAttachment={postId:g.shared_post_id});g.tagged_video_id&&(h.postCreationData={taggedVideoId:g.tagged_video_id});g.access_restrictions&&(typeof g.access_restrictions==="number"&&(E=g.access_restrictions,h.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof g.access_restrictions==="string"&&
(h.accessRestrictionsParams=g.access_restrictions));g.scheduled_publish_time_sec&&(h.scheduledPublishTimeSec=g.scheduled_publish_time_sec.toString())};var eC=function(){};
_.f(eC,Ok);eC.prototype.getApiPaths=function(){return JSB};
eC.prototype.getExtension=function(h){return _.e(h,IsB)};
eC.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.decorateMessageParams&&(h.params=E.decorateMessageParams);g.text&&(h.text=g.text)};var q4=function(){};
_.f(q4,Ok);q4.prototype.getApiPaths=function(){return Y3m};
q4.prototype.getExtension=function(h){return _.e(h,qjC)};
q4.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;g.video_id&&(h.videoId=g.video_id)};var fG=function(){};
_.f(fG,Ok);fG.prototype.getApiPaths=function(){return FPM};
fG.prototype.getExtension=function(h){return _.e(h,_.ej)};
fG.prototype.JSC$13116_buildRequest=function(h,E,g){g.suggestions_query&&(h.input=g.suggestions_query)};var N4=function(){};
_.f(N4,Ok);N4.prototype.getApiPaths=function(){return tEl};
N4.prototype.getExtension=function(h){return _.e(h,fDD)};
N4.prototype.JSC$13116_buildRequest=function(h,E,g){g.comment_text!==void 0&&(h.commentText=g.comment_text);g.scheduled_publish_time_sec&&(h.scheduledPublishTimeSec=g.scheduled_publish_time_sec.toString());h.updateBackstagePostParams=E.updateBackstagePostParams};var t_=function(){};
_.f(t_,Ok);t_.prototype.getApiPaths=function(){return b1};
t_.prototype.getExtension=function(h){return _.e(h,_.yQ)};
t_.prototype.JSC$13116_buildRequest=function(h,E,g){g.formData&&(h.formData=g.formData);E.token?h.continuation=E.token:E.continuationTokenKey&&(g=_.Gv().getState(),E=_.Jj(g.entities,"continuationTokenEntity",E.continuationTokenKey))&&(h.continuation=String(E.continuationToken))};
var zC0=function(){};
_.f(zC0,Ok);_.p=zC0.prototype;_.p.getApiPaths=function(){return b1};
_.p.getExtension=function(h){return _.e(h,_.tk)};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13123_getStoreKey=function(h){if((h=this.getExtension(h))&&h.browseId){var E={browseId:h.browseId};h.browseEndpointContextSupportedConfigs&&(E.browseEndpointContextSupportedConfigs=JSON.stringify(h.browseEndpointContextSupportedConfigs));h.params&&(E.params=h.params);h.query&&(E.query=h.query);return _.ZA("browse",E)}};
_.p.JSC$13116_buildRequest=function(h,E,g){E.browseId&&(h.browseId=E.browseId);E.params&&(h.params=E.params);E.query&&(h.query=E.query);g.formData?h.formData=g.formData:E.formData&&(h.formData=E.formData);E.browseId==="FEsubscriptions"&&_.xe().getFlag(155)&&(h.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");E.browseId==="SPaccount_playback"&&(g=_.xe(),h.formData||(h.formData={}),h.formData.accountSettingsFormData={flagCaptionsDefaultOff:g.getFlag(65),flagAutoCaptionsDefaultOn:g.getFlag(66),
flagDisableInlinePreview:g.getFlag(186),flagAudioDescriptionDefaultOn:g.getFlag(198)});if(E.browseId==="FEwhat_to_watch"){g=_.xe();var Z=g.getFlag(196);g.getFlag(197)&&(h.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:Z}}})}E.browseId==="FEwhat_to_watch"&&(E=_.xe().getFlag(186),h.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.p.getRequestConfig=function(h,E){E=E===void 0?{}:E;var g={};if(h=this.JSC$13123_getStoreKey(h,E))g.storeStrategy={storeKey:h,disableCache:E.disableCache};_.J("web_log_browse_ticks_ks")||(g.requestTick="br_s",g.responseTick="br_r");return g};var SC=function(){};
_.f(SC,Ok);SC.prototype.getApiPaths=function(){return awf};
SC.prototype.getExtension=function(h){return _.e(h,EFf)};
SC.prototype.JSC$13116_buildRequest=function(h,E,g){h.legacyYoutubeChannelUsername=g.legacyYouTubeChannelUsername||"";h.legacyYoutubeChannelPassword=g.legacyYouTubeChannelPassword||""};var xf=function(){};
_.f(xf,Ok);xf.prototype.getApiPaths=function(){return B_m};
xf.prototype.getExtension=function(h){return _.e(h,rOC)};
xf.prototype.JSC$13116_buildRequest=function(h,E,g){g.recaptcha_response_token&&(h.recaptchaResponseToken=g.recaptcha_response_token);g.channel_id&&(h.channelId=g.channel_id)};var wV=function(){};
_.f(wV,Ok);wV.prototype.getApiPaths=function(){return Sul};
wV.prototype.getExtension=function(h){return _.e(h,OAk)};
wV.prototype.JSC$13116_buildRequest=function(h,E,g){E.externalChannelId&&(h.externalChannelId=E.externalChannelId);g.handle&&(h.handleUpdate={handle:g.handle},E.handleEditSource&&(h.handleUpdate.handleEditSource=E.handleEditSource))};var DK=function(){};
_.f(DK,Ok);DK.prototype.getApiPaths=function(){return liM};
DK.prototype.getExtension=function(h){return _.e(h,zpn)};
DK.prototype.JSC$13116_buildRequest=function(h,E,g){E.request&&(h.channelId=E.request.channelId);var Z;if(g==null?0:(Z=g.uploadDefaults)==null?0:Z.emojiReactionSet)h.uploadDefaultsRequest||(h.uploadDefaultsRequest={}),h.uploadDefaultsRequest.emojiReactionSet=g.uploadDefaults.emojiReactionSet};var lu=function(){};
_.f(lu,Ok);lu.prototype.getApiPaths=function(){return v9M};
lu.prototype.getExtension=function(h){return _.e(h,mgC)};
lu.prototype.JSC$13116_buildRequest=function(h,E,g){E.externalChannelId&&(h.externalChannelId=E.externalChannelId);E.channelHandleEntityKey&&(h.channelHandleEntityKey=E.channelHandleEntityKey);E.handleEditSource&&(h.handleEditSource=E.handleEditSource);g.handle?h.handle=g.handle:g.name&&(h.name=g.name)};var rV=function(){};
_.f(rV,Ok);rV.prototype.getApiPaths=function(){return oaD};
rV.prototype.getExtension=function(h){return _.e(h,FwF)};
rV.prototype.JSC$13116_buildRequest=function(h,E){E.actions?h.actions=E.actions:E.action&&(h.actions=[E.action])};var m_=function(){};
_.f(m_,Ok);m_.prototype.getApiPaths=function(){return Iwl};
m_.prototype.getExtension=function(h){return _.e(h,_.yQ)};
m_.prototype.JSC$13116_buildRequest=function(h,E){E.token&&(h.continuation=E.token)};var vf=function(){};
_.f(vf,Ok);vf.prototype.getApiPaths=function(){return nak};
vf.prototype.getExtension=function(h){return _.e(h,_.yQ)};
vf.prototype.JSC$13116_buildRequest=function(h,E){h.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";E.token&&(h.fetchCommentsParams={continuation:E.token})};var Hf=function(){};
_.f(Hf,Ok);Hf.prototype.getApiPaths=function(){return LPM};
Hf.prototype.getExtension=function(h){return _.e(h,ymA)};
Hf.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.createReplyParams&&(h.createReplyParams=E.createReplyParams);E.commentText&&(h.commentText=_.Wp(E.commentText));g.comment_text&&(h.commentText=g.comment_text);g.image_blob_id&&(h.imageAttachment={encryptedBlobId:g.image_blob_id});g.botguard_response&&(h.botguardResponse=g.botguard_response)};
_.ze.Object.defineProperties(Hf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $f=function(){};
_.f($f,Ok);$f.prototype.getApiPaths=function(){return jFH};
$f.prototype.getExtension=function(h){return _.e(h,_.khf)};
$f.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.createCommentParams&&(h.createCommentParams=E.createCommentParams);E.commentText&&(h.commentText=_.Wp(E.commentText));E.videoPositionMention&&(h.videoPositionMention=E.videoPositionMention);E.sources&&(h.sources=E.sources);g.comment_text&&(h.commentText=g.comment_text);g.attached_video_id?h.videoAttachment={videoId:g.attached_video_id}:g.poll_options?h.pollAttachment={choices:g.poll_options}:g.image_blob_id?h.imageAttachment=
{encryptedBlobId:g.image_blob_id}:g.shared_post_id&&(h.sharedPostAttachment={postId:g.shared_post_id});g.access_restrictions&&typeof g.access_restrictions==="number"&&(E=g.access_restrictions,h.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});g.botguard_response&&(h.botguardResponse=g.botguard_response)};
_.ze.Object.defineProperties($f.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KG=function(){};
_.f(KG,Ok);KG.prototype.getApiPaths=function(){return xbk};
KG.prototype.getExtension=function(h){return _.e(h,Tcn)};
KG.prototype.JSC$13116_buildRequest=function(h,E,g){E.commentText&&(h.replyText=_.Wp(E.commentText));g.comment_text&&(h.replyText=g.comment_text);h.updateReplyParams=E.updateReplyParams};
_.ze.Object.defineProperties(KG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Og=function(){};
_.f(Og,Ok);Og.prototype.getApiPaths=function(){return wPl};
Og.prototype.getExtension=function(h){return _.e(h,AmD)};
Og.prototype.JSC$13116_buildRequest=function(h,E,g){E.commentText&&(h.commentText=_.Wp(E.commentText));g.comment_text&&(h.commentText=g.comment_text);h.updateCommentParams=E.updateCommentParams};
_.ze.Object.defineProperties(Og.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nG=function(){};
_.f(nG,Ok);nG.prototype.getApiPaths=function(){return Dbk};
nG.prototype.getExtension=function(h){return _.e(h,M_D)};
nG.prototype.JSC$13116_buildRequest=function(h,E){E.settings&&(h.settings=E.settings)};var Xs=function(){};
_.f(Xs,Ok);Xs.prototype.getApiPaths=function(){return rSC};
Xs.prototype.getExtension=function(h){return _.e(h,vDl)};
Xs.prototype.JSC$13116_buildRequest=function(h,E){E.channelCreationToken&&(h.channelCreationToken=E.channelCreationToken);E.source&&(h.source=E.source)};var Yf=function(){};
_.f(Yf,Ok);Yf.prototype.getApiPaths=function(){return U9f};
Yf.prototype.getExtension=function(h){return _.e(h,Ksf)};
Yf.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;if(g.name&&(g.given_name||g.family_name))h=new _.xX("channel creation cannot set both GAIA and YouTube names",E),_.$W(h);else{if(E.zeroStepChannelCreationParams){if(!g.comment_text){h=new _.xX("zero_step_create_comment_params but no zero_step_texts",E);_.$W(h);return}h.zeroStepChannelCreationParams=E.zeroStepChannelCreationParams;h.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(h.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
g.comment_text,g.botguard_response&&(h.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=g.botguard_response))}h.channelCreationToken=E.channelCreationToken;g.given_name&&(h.givenName=g.given_name);g.family_name&&(h.familyName=g.family_name);E.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(h.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(g.name||g.handle||g.avatar_url||g.encryptedBlobId||g.isNameChanged!==void 0||g.isHandleChanged!==void 0||g.isDefaultProfilePhoto!==
void 0||g.obakeImageSource)h.overrideChannelCreationParams={},g.name&&(h.overrideChannelCreationParams.name=g.name),g.handle&&(h.overrideChannelCreationParams.handle=g.handle),g.avatar_url&&(h.overrideChannelCreationParams.avatarUrl=g.avatar_url),g.encryptedBlobId&&(h.overrideChannelCreationParams.blobEncryptionId=g.encryptedBlobId),g.enableIdentityForAllChannelCreationDialog&&(g.encryptedBlobId?h.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
g.isDefaultProfilePhoto!==void 0&&(h.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=g.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),g.isNameChanged!==void 0&&(h.overrideChannelCreationParams.identityForAllChannelCreationNameTag=g.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),g.isHandleChanged!==
void 0&&(h.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=g.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),g.obakeImageSource&&(h.overrideChannelCreationParams.obakeImageSourceType=g.obakeImageSource))}};var sg=function(){};
_.f(sg,Ok);sg.prototype.getApiPaths=function(h){return(h=this.getExtension(h))&&h.status==="DISLIKE"?NMF:h&&h.status==="INDIFFERENT"?iHn:QFD};
sg.prototype.getExtension=function(h){return _.e(h,_.XD)};
sg.prototype.JSC$13116_buildRequest=function(h,E){E.target&&(h.target=E.target);if(E=this.getParams(E))h.params=E};
sg.prototype.getParams=function(h){switch(h==null?void 0:h.status){case "DISLIKE":return h.dislikeParams;case "INDIFFERENT":return h.removeLikeParams;default:return h==null?void 0:h.likeParams}};var V5=function(){};
_.f(V5,Ok);V5.prototype.getApiPaths=function(){return CmA};
V5.prototype.getExtension=function(h){return _.e(h,gmM)};
V5.prototype.JSC$13116_buildRequest=function(h,E){E.settingItemId&&(h.settingItemId=E.settingItemId);E.stringValue!=null&&E.stringValue!==void 0?h.newValue={stringValue:E.stringValue}:E.intValue?h.newValue={intValue:E.intValue}:E.boolValue!==null&&E.boolValue!==void 0?h.newValue={boolValue:E.boolValue}:(h=new _.xX("Unknown value type for SetSettingEndpoint.",E),_.$W(h))};var kf=function(){};
_.f(kf,Ok);kf.prototype.getApiPaths=function(){return quk};
kf.prototype.getExtension=function(h){return _.e(h,egl)||void 0};
kf.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.channelIds&&(h.channelIds=E.channelIds);E.siloName&&(h.siloName=E.siloName);E.params&&(h.params=E.params);g.botguardResponse&&(h.botguardResponse=g.botguardResponse);g.feature&&(h.clientFeature=g.feature)};
_.ze.Object.defineProperties(kf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y5=function(){};
_.f(y5,Ok);y5.prototype.getApiPaths=function(){return N_C};
y5.prototype.getExtension=function(h){return _.e(h,ZSf)||void 0};
y5.prototype.JSC$13116_buildRequest=function(h,E){E.channelIds&&(h.channelIds=E.channelIds);E.siloName&&(h.siloName=E.siloName);E.params&&(h.params=E.params)};
_.ze.Object.defineProperties(y5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Fs=function(h){this.shareClientParamsProvider=h};
_.f(Fs,Ok);Fs.prototype.getApiPaths=function(){return cqO};
Fs.prototype.getExtension=function(h){return _.e(h,wkD)||_.e(h,_.DMB)||_.e(h,xMF)};
Fs.prototype.JSC$13116_buildRequest=function(h,E){E.serializedShareEntity&&(h.serializedSharedEntity=E.serializedShareEntity);if(E.clientParamIdentifier){var g;if((g=this.shareClientParamsProvider)==null?0:g.clientParams.has(E.clientParamIdentifier)){g=this.shareClientParamsProvider;E=E.clientParamIdentifier;var Z=g.clientParams.get(E);Z&&g.clientParams.delete(E);h.clientParams=Z}}};
Fs[R2]=[PSM];var A_=function(){};
_.f(A_,Ok);A_.prototype.getApiPaths=function(){return p_B};
A_.prototype.getExtension=function(h){return _.e(h,ibF)};
A_.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var TL=function(){};
_.f(TL,Ok);TL.prototype.getApiPaths=function(){return t3m};
TL.prototype.getExtension=function(h){return _.e(h,zel)};
TL.prototype.JSC$13116_buildRequest=function(h,E){E.dismissal&&(h.items=[E.dismissal])};
_.ze.Object.defineProperties(TL.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bu=function(){};
_.f(bu,Ok);bu.prototype.getApiPaths=function(){return bVA};
bu.prototype.getExtension=function(h){return _.e(h,_.rE)||void 0};
bu.prototype.JSC$13116_buildRequest=function(h,E,g){h.feedbackTokens=[];E.feedbackToken&&h.feedbackTokens.push(E.feedbackToken);if(E=E.cpn||g.cpn)h.feedbackContext={cpn:E};h.isFeedbackTokenUnencrypted=!!g.is_feedback_token_unencrypted;h.shouldMerge=!1;g.extra_feedback_tokens&&(h.shouldMerge=!0,h.feedbackTokens=h.feedbackTokens.concat(g.extra_feedback_tokens))};
_.ze.Object.defineProperties(bu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uu=function(){};
_.f(uu,Ok);uu.prototype.getApiPaths=function(){return bVA};
uu.prototype.getExtension=function(h){return _.e(h,_.ej)};
uu.prototype.JSC$13116_buildRequest=function(h,E,g){g.feedback_tokens&&(h.feedbackTokens=g.feedback_tokens,h.shouldMerge=!0)};
_.ze.Object.defineProperties(uu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q5=function(){};
_.f(Q5,Ok);Q5.prototype.getApiPaths=function(){return bVA};
Q5.prototype.getExtension=function(h){return _.e(h,RSW)};
Q5.prototype.JSC$13116_buildRequest=function(h,E){E.undoToken&&(h.feedbackTokens=[E.undoToken]);E.isUndoTokenUnencrypted&&(h.isFeedbackTokenUnencrypted=E.isUndoTokenUnencrypted)};
_.ze.Object.defineProperties(Q5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hD=function(){};
_.f(hD,Ok);hD.prototype.getApiPaths=function(){return HHf};
hD.prototype.getExtension=function(h){return _.e(h,WoC)};
hD.prototype.JSC$13116_buildRequest=function(h,E){E.nextEndpoint&&_.e(E.nextEndpoint,_.yX)?h.nextEndpoint={urlEndpoint:_.e(E.nextEndpoint,_.yX)}:E.nextEndpoint&&_.e(E.nextEndpoint,_.MH)&&(h.nextEndpoint={watchEndpoint:_.e(E.nextEndpoint,_.MH)});E.setRacy&&(h.setRacy=E.setRacy);E.setControvercy&&(h.setControvercy=E.setControvercy)};var EF=function(h){this.JSC$17891_storeWithEntities=h};
_.f(EF,Ok);EF.prototype.getApiPaths=function(){return x9k};
EF.prototype.getExtension=function(h){return _.e(h,xlH)};
EF.prototype.JSC$13116_buildRequest=function(h,E){E.flowId&&(h.flowId=E.flowId);E.targetId&&(h.targetId=E.targetId);E.continuation&&(h.continuation=E.continuation);var g=E.flowStateEntityKey;if(E.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&g&&this.JSC$17891_storeWithEntities){var Z;if(E=(Z=this.JSC$17891_storeWithEntities.getState())==null?void 0:Z.entities)if(Z=_.Bn(g).entityType,Z=_.Jj(E,Z,g))h.flowState=Z,h.flowStateEntityKey=g}};
_.ze.Object.defineProperties(EF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
EF[R2]=[G5];var aRi=function(){};
_.f(aRi,Ok);_.p=aRi.prototype;_.p.getApiPaths=function(){return TMm};
_.p.JSC$13123_getStoreKey=function(){return _.ZA("guide")};
_.p.getRequestConfig=function(){var h=this.JSC$13123_getStoreKey(),E;h&&(E={storeStrategy:{storeKey:h}});return E};
_.p.isNavigationCommand=function(){return!0};
_.p.getExtension=function(h){return _.e(h,_.ej)};
_.p.JSC$13116_buildRequest=function(h){h.fetchLiveState=!0};var gb=function(){};
_.f(gb,Ok);gb.prototype.getApiPaths=function(){return cSM};
gb.prototype.getExtension=function(h){return _.e(h,YUk)};
gb.prototype.JSC$13116_buildRequest=function(){};var Z3=function(){};
_.f(Z3,Ok);Z3.prototype.getApiPaths=function(){return iVM};
Z3.prototype.getExtension=function(h){return _.e(h,sxB)};
Z3.prototype.JSC$13116_buildRequest=function(){};var Mp=function(){};
_.f(Mp,Ok);Mp.prototype.getApiPaths=function(){return WPm};
Mp.prototype.getExtension=function(h){return _.e(h,_.yQ)};
Mp.prototype.JSC$13116_buildRequest=function(h,E){E.token&&(h.continuation=E.token);var g,Z;h==null||(g=h.context)==null||(Z=g.user)==null||delete Z.onBehalfOfUser};
Mp.prototype.getRequestConfig=function(h){var E={},g;if(((g=this.getExtension(h))==null?void 0:g.sessionIndex)!==void 0){var Z;E={authStrategy:{sessionIndex:(Z=this.getExtension(h))==null?void 0:Z.sessionIndex}}}return E};var WV=function(){};
_.f(WV,Ok);WV.prototype.JSC$13116_getRequest=function(h){var E=this.getExtension(h),g=h="";if(E==null?0:E.popup)h="true";if(E==null?0:E.disableSignout)g="true";E={};return{input:"/getAccountSwitcherEndpoint",requestShell:gC("/getAccountSwitcherEndpoint","GET",(E["X-YouTube-Delegation-Context"]=_.nF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),E["X-YouTube-Account-Switcher-Popup"]=h,E["X-YouTube-Account-Switcher-Disable-Signout"]=g,E)),innerTubeRequest:{}}};
WV.prototype.getApiPaths=function(){return[]};
WV.prototype.getExtension=function(h){return _.e(h,_.Q$$)};
WV.prototype.JSC$13116_buildRequest=function(){};var p_=function(){};
_.f(p_,Ok);p_.prototype.JSC$13116_getRequest=function(h){var E="/cross_account_channel_transfer";(h=this.getExtension(h))&&(E=S7x(E,{target_session:h.targetSessionIndex,source_rapt:h.sourceRapt,rapt:h.targetRapt}));return{input:E,requestShell:gC(E,"GET"),innerTubeRequest:{}}};
p_.prototype.getApiPaths=function(){return[]};
p_.prototype.getExtension=function(h){return _.e(h,hPk)};
p_.prototype.JSC$13116_buildRequest=function(){};var G_=function(){};
_.f(G_,Ok);G_.prototype.getApiPaths=function(){return w_H};
G_.prototype.isNavigationCommand=function(){return!0};
G_.prototype.getExtension=function(h){return _.e(h,_.ej)};
G_.prototype.JSC$13116_buildRequest=function(h){var E=_.xe().get("gsml","");E&&(h.safetyModeLockerObfuscatedGaiaId=E);h.userInterfaceTheme=_.Hp(!0);_.$Y()?h.deviceTheme="DEVICE_THEME_SELECTED":_.k3$()?h.deviceTheme="DEVICE_THEME_SUPPORTED":h.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var z_=function(){};
_.f(z_,Ok);z_.prototype.getApiPaths=function(){return WPm};
z_.prototype.getExtension=function(h){return _.e(h,EDk)};
z_.prototype.JSC$13116_buildRequest=function(h,E){if(E&&E.requestType&&(h.requestType=E.requestType,E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var g=E.nextUrl;g&&(_.wXV(g)||Md(g))&&(h.nextNavendpoint={urlEndpoint:{url:g}})}E&&E.channelSwitcherQuery&&(h.channelSwitcherQuery=E.channelSwitcherQuery);E&&E.triggerChannelCreation&&(h.triggerChannelCreation=E.triggerChannelCreation);var Z;if(E==null?0:(Z=E.contentOwnerConfig)==
null?0:Z.externalContentOwnerId)h.contentOwnerConfig=E.contentOwnerConfig;h.callCircumstance=E&&E.requestType&&E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var M,W;E=h==null?void 0:(M=h.context)==null?void 0:(W=M.user)==null?void 0:W.onBehalfOfUser;if(E!==void 0){h.obfuscatedSelectedGaiaId=E;var z,c;h==null||(z=h.context)==null||(c=z.user)==null||delete c.onBehalfOfUser}var I,B;if(M=h==null?void 0:(I=h.context)==null?void 0:(B=I.user)==null?
void 0:B.serializedDelegationContext)h.selectedSerializedDelegationContext=M};var a$=function(){};
_.f(a$,Ok);a$.prototype.getApiPaths=function(){return G3m};
a$.prototype.getExtension=function(h){return _.e(h,lLC)};
a$.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var cV=function(){};
_.f(cV,Ok);cV.prototype.getApiPaths=function(){return BMM};
cV.prototype.getExtension=function(h){return _.e(h,_.yXH)};
cV.prototype.JSC$13116_buildRequest=function(h,E){if(E=E.createBroadcastRequest)h.useMasks=E.useMasks,h.broadcastType=E.broadcastType,h.broadcastSource=E.broadcastSource,h.broadcastMetadata=E.broadcastMetadata,h.broadcastMetadataMask=E.broadcastMetadataMask,h.videoMetadata=E.videoMetadata,h.videoMetadataMask=E.videoMetadataMask,h.liveChatSettingsUpdate=E.liveChatSettingsUpdate,h.liveChatSettingsUpdateMask=E.liveChatSettingsUpdateMask,h.cloneVideoId=E.cloneVideoId,h.cloneWithOverrides=E.cloneWithOverrides,
h.targetEntity=E.targetEntity,h.scheduledRedirectMetadata=E.scheduledRedirectMetadata};var ih=function(){};
_.f(ih,Ok);ih.prototype.getApiPaths=function(){return d9D};
ih.prototype.getExtension=function(h){return _.e(h,KCl)};
ih.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.params&&(h.params=E.params);g.questionText&&(h.questionText=g.questionText);g.optionText&&g.optionText.length>0&&(h.optionText=g.optionText)};var o$=function(){};
_.f(o$,Ok);o$.prototype.getApiPaths=function(){return esk};
o$.prototype.getExtension=function(h){return _.e(h,H2B)};
o$.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var I$=function(){};
_.f(I$,Ok);I$.prototype.getApiPaths=function(){return vaM};
I$.prototype.getExtension=function(h){return _.e(h,lvD)};
I$.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var R$=function(){};
_.f(R$,Ok);R$.prototype.getApiPaths=function(){return $9k};
R$.prototype.getExtension=function(h){return _.e(h,r9f)};
R$.prototype.JSC$13116_buildRequest=function(h,E,g){E.params&&(h.params=E.params);E.continuation&&(h.continuation=E.continuation);g.currentPlayerState&&g.currentPlayerState.playerOffsetMs&&(h.currentPlayerState={playerOffsetMs:g.currentPlayerState.playerOffsetMs.toString()})};var PV=function(){};
_.f(PV,Ok);PV.prototype.getApiPaths=function(){return KPD};
PV.prototype.getExtension=function(h){return _.e(h,DuC)};
PV.prototype.JSC$13116_buildRequest=function(h,E,g){E.params&&(h.params=E.params);g.continuation&&(h.continuation=g.continuation);"hidden"in g&&(h.webClientInfo={isDocumentHidden:g.hidden});g.isInvalidationTimeoutRequest&&(h.isInvalidationTimeoutRequest=g.isInvalidationTimeoutRequest);g.invalidationPayload&&(E=wCn(_.Qx(Wx(g.invalidationPayload))),h.invalidationPayloadLastPublishAtUsec=HW(E,2));g.reloadActionPanel&&(h.reloadActionPanel=g.reloadActionPanel);g.fullReload&&(h.fullReload=g.fullReload);
g.currentPlayerState&&(h.currentPlayerState=g.currentPlayerState)};var BV=function(){};
_.f(BV,Ok);BV.prototype.getApiPaths=function(){return hYM};
BV.prototype.getExtension=function(h){return _.e(h,$uC)};
BV.prototype.JSC$13116_buildRequest=function(h,E){h.params=E.params};var UF=function(){};
_.f(UF,Ok);UF.prototype.getApiPaths=function(){return HVl};
UF.prototype.getExtension=function(h){return _.e(h,A0k)};
UF.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var f_=function(){};
_.f(f_,Ok);f_.prototype.getApiPaths=function(){return OVl};
f_.prototype.getExtension=function(h){return _.e(h,TyD)};
f_.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var Np=function(){};
_.f(Np,Ok);Np.prototype.getApiPaths=function(){return E9f};
Np.prototype.getExtension=function(h){return _.e(h,O2D)};
Np.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var tD=function(){};
_.f(tD,Ok);tD.prototype.getApiPaths=function(){return ZHf};
tD.prototype.getExtension=function(h){return _.e(h,niD)};
tD.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var SW=function(){};
_.f(SW,Ok);SW.prototype.getApiPaths=function(){return o9k};
SW.prototype.getExtension=function(h){return _.e(h,vcf)};
SW.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var xI=function(){};
_.f(xI,Ok);xI.prototype.getApiPaths=function(){return jnB};
xI.prototype.getExtension=function(h){return _.e(h,_.XCf)};
xI.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.params&&(h.params=E.params);g.client_message_id&&(h.clientMessageId=g.client_message_id);g.recaptcha_token&&(h.recaptchaToken=g.recaptcha_token);g.rich_message&&g.rich_message.text_segments?(E=g.rich_message.text_segments.map(function(Z){var M={};Z.text&&(M.text=Z.text);Z.emoji_id&&(M.emojiId=Z.emoji_id);return M}),h.richMessage={textSegments:E}):g.message&&(h.message=g.message);
g.currentPlayerState&&(h.currentPlayerState=g.currentPlayerState)};var wb=function(){};
_.f(wb,Ok);wb.prototype.getApiPaths=function(){return dbf};
wb.prototype.getExtension=function(h){return _.e(h,Y1F)};
wb.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var D3=function(){};
_.f(D3,Ok);D3.prototype.getApiPaths=function(){return fil};
D3.prototype.getExtension=function(h){return _.e(h,Vuf)};
D3.prototype.JSC$13116_buildRequest=function(h,E,g){E.isUserInitiated&&(h.isUserInitiated=E.isUserInitiated);E.initiationSource&&(h.initiationSource=E.initiationSource);g.locationInfo&&(h.context.client.locationInfo=g.locationInfo)};var lh=function(){};
_.f(lh,Ok);lh.prototype.getApiPaths=function(){return g9n};
lh.prototype.getExtension=function(h){return _.e(h,FdM)};
lh.prototype.JSC$13116_buildRequest=function(h,E,g){E.metadataUpdateRequest&&(E=E.metadataUpdateRequest,h.encryptedVideoId=E.encryptedVideoId,E.liveChat&&(E=E.liveChat,h.liveChat||(h.liveChat={}),E.performAsExternalChannelId&&(h.liveChat.performAsExternalChannelId=E.performAsExternalChannelId),E.source&&(h.liveChat.source=E.source)));var Z;if(g==null?0:(Z=g.liveChat)==null?0:Z.liveChatSettings)h.liveChat||(h.liveChat={}),g=g.liveChat.liveChatSettings,h.liveChat.newLiveChatSettings=g,h.liveChat.newLiveChatSettingsMask||
(h.liveChat.newLiveChatSettingsMask={}),g.emojiReactionSet&&(h.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var rb=function(){};
_.f(rb,Ok);rb.prototype.getApiPaths=function(){return mbH};
rb.prototype.getExtension=function(h){return _.e(h,_.MnC)};
rb.prototype.JSC$13116_buildRequest=function(h,E,g){g.continuation?h.continuation=g.continuation:E.videoId&&(h.videoId=E.videoId);g.clientParams&&(h.clientParams=g.clientParams)};var mY=function(){};
_.f(mY,Ok);mY.prototype.getApiPaths=function(){return nak};
mY.prototype.getExtension=function(h){return _.e(h,_.Zs)};
mY.prototype.JSC$13116_buildRequest=function(h,E){h.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";h.fetchCommentsParams={};E.videoId&&(h.fetchCommentsParams.encryptedVideoId=E.videoId);E.postId&&(h.fetchCommentsParams.postId=E.postId);E.externalChannelId&&(h.fetchCommentsParams.externalChannelId=E.externalChannelId);E.linkedCommentId&&(h.fetchCommentsParams.linkedCommentId=E.linkedCommentId);(0,_.Kt.isEmpty)(h.fetchCommentsParams)&&delete h.fetchCommentsParams};var vV=function(){};
_.f(vV,Ok);vV.prototype.getApiPaths=function(){return b1};
vV.prototype.JSC$13116_buildRequest=function(h){h.browseId="FEnotifications_inbox"};
vV.prototype.getExtension=function(h){return _.e(h,_.ej)};var HV=function(){};
_.f(HV,Ok);HV.prototype.getApiPaths=function(){return nak};
HV.prototype.JSC$13116_buildRequest=function(h,E){E.signal==="GET_NOTIFICATIONS_MENU"&&(h.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");E.ctoken&&(h.ctoken=E.ctoken)};
var cCi=function(){};
_.f(cCi,HV);cCi.prototype.getExtension=function(h){return _.e(h,_.ej)};
var iUU=function(){};
_.f(iUU,HV);iUU.prototype.getExtension=function(h){return _.e(h,gFl)};var $I=function(){};
_.f($I,Ok);$I.prototype.getApiPaths=function(){return ySC};
$I.prototype.getExtension=function(h){return _.e(h,_.ej)};
$I.prototype.JSC$13116_buildRequest=function(){};var K_=function(){};
_.f(K_,Ok);K_.prototype.getApiPaths=function(){return MED};
K_.prototype.getExtension=function(h){return _.e(h,QxH)||void 0};
K_.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params);E.secondaryParams&&(h.secondaryParams=E.secondaryParams)};var OF=function(){};
_.f(OF,Ok);OF.prototype.getApiPaths=function(){return WDm};
OF.prototype.getExtension=function(h){return _.e(h,r0M)};
OF.prototype.JSC$13116_buildRequest=function(h,E){E.undo&&(h.undo=E.undo);E.serializedOptOut&&(h.serializedOptOut=E.serializedOptOut);E.serializedRecordInteractionsRequest&&(h.serializedRecordInteractionsRequest=E.serializedRecordInteractionsRequest)};var n_=function(){};
_.f(n_,Ok);n_.prototype.getApiPaths=function(){return zYn};
n_.prototype.getExtension=function(h){return _.e(h,mMn)};
n_.prototype.JSC$13116_buildRequest=function(h,E){E.serializedInteractionsRequest&&(h.serializedRecordNotificationInteractionsRequest=E.serializedInteractionsRequest)};var Xr=function(){};
_.f(Xr,Ok);Xr.prototype.getApiPaths=function(){return iBZ};
Xr.prototype.getExtension=function(h){return _.e(h,G2z)};
Xr.prototype.JSC$13116_buildRequest=function(h,E,g){E=E===void 0?{}:E;g=g===void 0?{}:g;E.videoId?h.videoId=E.videoId:E.playlistId&&(h.playlistId=E.playlistId);var Z,M=(Z=E.offlineWebClientEligibility)!=null?Z:g.offlineWebClientEligibility;M&&(h.offlineWebClientEligibility=M);var W;if(Z=(W=E.preferredFormatType)!=null?W:g.preferredFormatType)h.preferredFormatType=Z;var z;if(W=(z=E.lastOfflineQualitySettingsSavedMs)!=null?z:g.lastOfflineQualitySettingsSavedMs)h.lastOfflineQualitySettingsSavedMs=W;
E.params&&(h.params=E.params)};var YI=function(){};
_.f(YI,Ok);YI.prototype.getApiPaths=function(){return Jm};
YI.prototype.getExtension=function(h){return _.e(h,_.yQ)};
YI.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.token&&(h.continuation=E.token);g.formData&&(h.formData=g.formData)};var sF=function(){};
_.f(sF,Ok);sF.prototype.getApiPaths=function(){return Jm};
sF.prototype.getExtension=function(h){return _.e(h,XUf)};
sF.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;h.continuation=g.continuation};var V0=function(){};
_.f(V0,Ok);V0.prototype.getApiPaths=function(){return Jm};
V0.prototype.getExtension=function(h){return _.e(h,_.lz)};
V0.prototype.JSC$13116_buildRequest=function(h,E){var g,Z=E.panelIdentifier||((g=E.identifier)==null?void 0:g.tag);Z&&(h.panelId=Z);var M;if((M=E.globalConfiguration)==null?0:M.params){var W;h.params=(W=E.globalConfiguration)==null?void 0:W.params}};
_.ze.Object.defineProperties(V0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kI=function(){};
_.f(kI,Ok);kI.prototype.getApiPaths=function(){return Jm};
kI.prototype.getExtension=function(h){return _.e(h,t1F)};
kI.prototype.JSC$13116_buildRequest=function(h,E){E.panelLoadingStrategy&&cFa(h,E.panelLoadingStrategy)};var y0=function(){};
_.f(y0,Ok);y0.prototype.getApiPaths=function(){return Jm};
y0.prototype.getExtension=function(h){return _.e(h,kgf)};
y0.prototype.JSC$13116_buildRequest=function(h,E){E.loadingStrategy&&cFa(h,E.loadingStrategy)};var Fr=function(){};
_.f(Fr,Ok);Fr.prototype.getApiPaths=function(){return Jm};
Fr.prototype.getExtension=function(h){return _.e(h,_.w5)};
Fr.prototype.JSC$13116_buildRequest=function(h,E){E.panelLoadingStrategy&&cFa(h,E.panelLoadingStrategy)};var AD=function(){};
_.f(AD,Ok);AD.prototype.getApiPaths=function(){return Jm};
AD.prototype.getExtension=function(h){return _.e(h,y0C)};
AD.prototype.JSC$13116_buildRequest=function(h,E){var g,Z=(g=E.contentSourcePanelIdentifier)==null?void 0:g.tag;Z&&(h.panelId=Z);var M;if((M=E.globalConfiguration)==null?0:M.params){var W;h.params=(W=E.globalConfiguration)==null?void 0:W.params}};var T_=function(){};
_.f(T_,Ok);T_.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
T_.prototype.getExtension=function(h){return _.e(h,FHD)};
T_.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var bh=function(){};
_.f(bh,Ok);bh.prototype.getApiPaths=function(){return rzD};
bh.prototype.getExtension=function(h){return _.e(h,b1f)};
bh.prototype.JSC$13116_buildRequest=function(h,E){E.externalChannelId&&(h.externalChannelId=E.externalChannelId);E.superChatAction&&(h.superChatAction=E.superChatAction);E.superStickersAction&&(h.superStickersAction=E.superStickersAction)};var uh=function(){};
_.f(uh,Ok);uh.prototype.getApiPaths=function(){return D9D};
uh.prototype.getExtension=function(h){return _.e(h,XtF)||_.e(h,aez)};
uh.prototype.JSC$13116_buildRequest=function(h,E){E.videoIds?h.videoIds=E.videoIds:E.videoId&&(h.videoIds=[E.videoId]);E.playlistId&&(h.playlistId=E.playlistId);E.params&&(h.params=E.params);h.excludeWatchLater=!1};var Q0=function(){};
_.f(Q0,Ok);Q0.prototype.getApiPaths=function(){return CLA};
Q0.prototype.getExtension=function(h){return _.e(h,_.ct)};
Q0.prototype.JSC$13116_buildRequest=function(h,E,g){g.create_playlist_title?h.title=g.create_playlist_title:E.title&&(h.title=E.title);if(g.create_playlist_privacy_status&&typeof g.create_playlist_privacy_status==="number"){a:{var Z=g.create_playlist_privacy_status;if(Z!==0){if(Z===1){Z="PUBLIC";break a}if(Z===2){Z="UNLISTED";break a}}Z="PRIVATE"}h.privacyStatus=Z}else E.privacyStatus&&(h.privacyStatus=E.privacyStatus);g.create_playlist_description&&(h.description=g.create_playlist_description);E.videoIds&&
(h.videoIds=E.videoIds);E.params&&(h.params=E.params);E.sourcePlaylistId&&(h.sourcePlaylistId=E.sourcePlaylistId)};var hR=function(){};
_.f(hR,Ok);hR.prototype.getApiPaths=function(){return q3M};
hR.prototype.getExtension=function(h){return _.e(h,bCA)};
hR.prototype.JSC$13116_buildRequest=function(h,E){h.playlistId=E.playlistId};var Ex=function(){};
_.f(Ex,Ok);Ex.prototype.getApiPaths=function(){return X_f};
Ex.prototype.getExtension=function(h){return _.e(h,tcn)};
Ex.prototype.JSC$13116_buildRequest=function(h,E){E.playlistId&&(h.playlistId=E.playlistId);E.params&&(h.params=E.params)};var gn=function(){};
_.f(gn,Ok);gn.prototype.getApiPaths=function(){return Gjl};
gn.prototype.getExtension=function(h){return _.e(h,_.M8)||void 0};
gn.prototype.JSC$13116_buildRequest=function(h,E){E.actions&&(h.actions=E.actions);E.params&&(h.params=E.params);E.playlistId&&(h.playlistId=E.playlistId)};var Ze=function(){};
_.f(Ze,Ok);_.p=Ze.prototype;_.p.getApiPaths=function(){return aiH};
_.p.getExtension=function(h){return _.e(h,_.D9)};
_.p.JSC$13116_buildRequest=function(h,E){E.videoId&&(h.playerRequest={videoId:E.videoId},E.playerParams&&(h.playerRequest.params=E.playerParams),E.racyCheckOk&&(h.playerRequest.racyCheckOk=!!E.racyCheckOk),E.contentCheckOk&&(h.playerRequest.contentCheckOk=!!E.contentCheckOk));E.params&&(h.params=E.params);E.inputType&&(h.inputType=E.inputType);h.disablePlayerResponse=!0};
_.p.getRequestConfig=function(h){var E;(h=this.JSC$13123_getStoreKey(h))&&(E={storeStrategy:{storeKey:h}});_.J("web_log_reels_ticks")&&(E=E||{},E.requestTick="r_wrs",E.responseTick="r_wrr");return E};
_.p.JSC$13123_getStoreKey=function(h){h=this.getExtension(h);if(h!=null&&h.videoId){var E={videoId:h.videoId};h.params&&(E.params=h.params);return _.ZA("reel_item_watch",E)}};var Mf=function(){};
_.f(Mf,Ok);_.p=Mf.prototype;_.p.getApiPaths=function(){return czl};
_.p.getExtension=function(h){return _.e(h,_.D9)};
_.p.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;h.sequenceParams=E.sequenceParams;var Z;((Z=g)==null?0:Z.contentPlaybackContext)&&_.J("web_shorts_prefetch_service_enabled")&&(h.playbackContext={contentPlaybackContext:g.contentPlaybackContext})};
_.p.JSC$13123_getStoreKey=function(h){if(_.J("web_enable_delay_shorts_sequence_call")||_.J("shorts_controller_retrieve_seedless_sequence_v2"))if(h=this.getExtension(h),h==null?0:h.sequenceParams)return _.ZA("reel_watch_sequence",{sequenceParams:h.sequenceParams})};
_.p.getRequestConfig=function(h){h=this.JSC$13123_getStoreKey(h);var E;h&&(E={storeStrategy:{storeKey:h}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};
var W9=function(){};
_.f(W9,Ok);W9.prototype.getApiPaths=function(){return czl};
W9.prototype.getExtension=function(h){return _.e(h,_.yQ)};
W9.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.token&&(h.continuation=E.token);var Z;((Z=g)==null?0:Z.contentPlaybackContext)&&_.J("web_shorts_prefetch_service_enabled")&&(h.playbackContext={contentPlaybackContext:g.contentPlaybackContext})};
W9.prototype.getRequestConfig=function(h){h=this.JSC$13123_getStoreKey(h);var E;h&&(E={storeStrategy:{storeKey:h}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};var pT=function(){};
_.f(pT,Ok);pT.prototype.getApiPaths=function(){return S3l};
pT.prototype.getExtension=function(h){return _.e(h,_.SRD)};
pT.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.flagAction&&(h.action=E.flagAction);E.flagRequestType&&(h.flagRequestType=E.flagRequestType);E.additionalDetailCheckboxChecked&&(h.additionalDetailCheckboxChecked=E.additionalDetailCheckboxChecked);E.legalCheckboxChecked&&(h.legalCheckboxChecked=E.legalCheckboxChecked);E={};g.flag_issue_type!==void 0&&(E.issue=g.flag_issue_type);g.flag_affiliation!==void 0&&(E.affiliation=g.flag_affiliation);g.flag_full_name&&(E.fullName=g.flag_full_name);
Object.keys(E).length&&(h.legalReportDetails=E);if(g.flag_description||g.text)h.userComments=g.flag_description||g.text;E={};g.minutes!==void 0&&g.seconds!==void 0&&(E.minutes=g.minutes,E.seconds=g.seconds);g.vss_id&&(E.vssId=g.vss_id);Object.keys(E).length&&(h.videoReportDetails=E);E={};g.video_ids&&(E.videoIds=g.video_ids);g.impersonated_channel_url&&(E.impersonatedChannelUrl=g.impersonated_channel_url);Object.keys(E).length&&(h.channelAbuseReportDetails=E)};
_.ze.Object.defineProperties(pT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G2=function(){};
_.f(G2,Ok);G2.prototype.getApiPaths=function(){return m9l};
G2.prototype.getExtension=function(h){return _.e(h,h$f)};
G2.prototype.JSC$13116_buildRequest=function(h,E){E.blockedForKidsContent&&(h.blockedForKidsContent=E.blockedForKidsContent)};var z2=function(){};
_.f(z2,Ok);z2.prototype.getApiPaths=function(){return Iif};
z2.prototype.getExtension=function(h){return _.e(h,z64)};
z2.prototype.JSC$13116_buildRequest=function(h,E,g){h.params=E.params;g.impersonated_channel_url&&(h.impersonatedChannelUrl=g.impersonated_channel_url)};var aE=function(){};
_.f(aE,Ok);aE.prototype.getApiPaths=function(){return uJB};
aE.prototype.getExtension=function(h){return _.e(h,_.EiM)};
aE.prototype.JSC$13116_buildRequest=function(h,E){E.items&&(h.items=E.items);E.kidGaiaId&&(h.kidGaiaId=E.kidGaiaId)};var c9=function(){};
_.f(c9,Ok);c9.prototype.getApiPaths=function(){return lwM};
c9.prototype.getExtension=function(h){return _.e(h,_.KwD)};
c9.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params);E.targetId&&(h.targetId=E.targetId)};var i8=function(){};
_.f(i8,Ok);i8.prototype.getApiPaths=function(){return Ubf};
i8.prototype.getExtension=function(h){return _.e(h,ZbC)};
i8.prototype.JSC$13116_buildRequest=function(h,E){E.externalVideoId&&(h.externalVideoId=E.externalVideoId);E.query&&(h.query=E.query);E.sourceTimelines&&(h.sourceTimelines=E.sourceTimelines)};var oE=function(){};
_.f(oE,Ok);oE.prototype.getApiPaths=function(){return LDM};
oE.prototype.getExtension=function(h){return _.e(h,_.yQ)||void 0};
oE.prototype.JSC$13116_buildRequest=function(h,E){E.token&&(h.continuation=E.token)};
_.oUG=function(){};
_.f(_.oUG,Ok);_.p=_.oUG.prototype;_.p.getApiPaths=function(){return LDM};
_.p.getExtension=function(h){return _.e(h,_.Sl)||void 0};
_.p.isNavigationCommand=function(){return!0};
_.p.JSC$13123_getStoreKey=function(h,E){E=E===void 0?{}:E;if(!E.disableCache&&(h=this.getExtension(h))&&h.query)return E={query:h.query},h.params&&(E.params=h.params),_.ZA("search",E)};
_.p.JSC$13116_buildRequest=function(h,E,g){E.query&&(h.query=E.query);E.params&&(h.params=E.params);if(!_.J("web_forward_suggest_stats_killswitch")){var Z=_.e(E,dMD);Z&&(h.suggestStats=Z)}var M;!_.J("kevlar_searchbox_stats_killswitch")&&((M=g.tempData)==null?0:M.gs_l)&&!_.e(E,dMD)&&(h.webSearchboxStatsUrl="/search?oq="+(g.tempData.oq||"")+"&gs_l="+g.tempData.gs_l);var W;if((W=g.tempData)==null?0:W.entityMid)E=h.suggestionSearchParams||{},E.entityMid=g.tempData.entityMid,h.suggestionSearchParams=E;
if(_.J("enable_desktop_vdcbg_components")||_.J("enable_inline_muted_playback_on_web_search"))g=_.xe().getFlag(186),h.inlineSettingStatus=g?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.p.getRequestConfig=function(h,E){E=E===void 0?{}:E;h=this.JSC$13123_getStoreKey(h,E);var g;h&&(g={storeStrategy:{storeKey:h}});_.J("web_log_search_ticks_ks")||(g=g||{},g.requestTick="sr_s",g.responseTick="sr_r");return g};var IE=function(){};
_.f(IE,Ok);IE.prototype.getApiPaths=function(){return V3k};
IE.prototype.getExtension=function(h){return _.e(h,aIM)};
IE.prototype.JSC$13116_buildRequest=function(h,E){E.serializedGetSharingProviderDataParams&&(h.serializedGetSharingProviderDataParams=E.serializedGetSharingProviderDataParams)};var RE=function(){};
_.f(RE,Ok);RE.prototype.getApiPaths=function(){return k3B};
RE.prototype.getExtension=function(h){return _.e(h,eem)};
RE.prototype.JSC$13116_buildRequest=function(h,E){E.endpoint&&(h.endpoint=E.endpoint);E.action&&(h.action=E.action)};var P9=function(){};
_.f(P9,Ok);P9.prototype.getApiPaths=function(){return fwk};
P9.prototype.getExtension=function(h){return _.e(h,u2M)};
P9.prototype.JSC$13116_buildRequest=function(h,E){h.videoId=E.videoId;E.scheduledRedirectMetadataSourceVideoId&&(h.scheduledRedirectMetadata={sourceVideoId:E.scheduledRedirectMetadataSourceVideoId})};var B9=function(){};
_.f(B9,Ok);B9.prototype.getApiPaths=function(){return Jzm};
B9.prototype.getExtension=function(h){return _.e(h,_.QUM)};
B9.prototype.JSC$13116_buildRequest=function(h,E){h.params=E.params;h.correctionText=E.correctionText};var Ux=function(){};
_.f(Ux,Ok);Ux.prototype.getApiPaths=function(){return z0N};
Ux.prototype.getExtension=function(h){return _.e(h,_.MbF)};
Ux.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params);h.searchQuery=E.searchQuery;h.languageCode=E.languageCode;h.kind=E.kind;h.name=E.name;h.externalVideoId=E.externalVideoId};var LT=function(){};
_.f(LT,Ok);LT.prototype.getApiPaths=function(){return KDl};
LT.prototype.getExtension=function(h){return _.e(h,I7M)};
LT.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.params=E.params)};var jk=function(h){this.JSC$18162_storeWithEntities=h};
_.f(jk,Ok);jk.prototype.getApiPaths=function(){return Rsl};
jk.prototype.getExtension=function(h){return _.e(h,PeH)||_.e(h,Uyf)};
jk.prototype.JSC$13116_buildRequest=function(h,E,g){g.client_data&&(h.clientData=g.client_data);if(E.commerceActionConfig){var Z=E.commerceActionConfig;E=Z.actionId;Z=Z.commerceActionParams;E&&(h.actionId=E);Z&&(h.commerceActionParams=Z)}else{var M=E.actionId,W=E.commerceActionParams;g=E.entityKeys;M&&(h.actionId=M);W&&(h.commerceActionParams=W);var z;E=(Z=this.JSC$18162_storeWithEntities)==null?void 0:(z=Z.getState())==null?void 0:z.entities;if(g&&E){Z=[];z=_.G(g);for(g=z.next();!g.done;g=z.next())if(M=
g.value,g=_.Bn(M).entityType,M=_.Jj(E,g,M))W={},Z.push((W[g]=M,W));h.entityMutationPayloads=Z}}};
jk.prototype.getRequestConfig=function(h){var E,g=(E=_.e(h,PeH))==null?void 0:E.requestSequenceType;if(g&&h.clickTrackingParams&&g!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:h.clickTrackingParams,sequenceType:g}}};
jk[R2]=[G5];var dn=function(){};
_.f(dn,Ok);dn.prototype.getApiPaths=function(){return OHD};
dn.prototype.getExtension=function(h){return _.e(h,_.vKf)};
dn.prototype.JSC$13116_buildRequest=function(h,E){E.feedbackData&&(h.feedbackData=E.feedbackData);E.params&&(h.itemParams=E.params)};
_.ze.Object.defineProperties(dn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CT=function(){};
_.f(CT,Ok);CT.prototype.getApiPaths=function(){return n9D};
CT.prototype.getExtension=function(h){return _.e(h,HJM)};
CT.prototype.JSC$13116_buildRequest=function(h,E,g){g.payments_payload&&(h.paymentsPayload=g.payments_payload);g.offer_params&&(h.offerParams=g.offer_params);E.transactionParams&&(h.transactionParams=E.transactionParams)};var JR=function(){};
_.f(JR,Ok);JR.prototype.getApiPaths=function(){return XPn};
JR.prototype.getExtension=function(h){return _.e(h,_.$yf)};
JR.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.buybucketParams&&(h.buybucketData={params:E.buybucketParams},E.stickerParams?h.buybucketData.stickerParams=E.stickerParams:(g.rich_chat_message?h.buybucketData.richChatMessage=g.rich_chat_message:g.chat_message_text&&(h.buybucketData.chatMessageText=g.chat_message_text),g.purchase_price_micros&&(h.buybucketData.purchasePriceMicros=g.purchase_price_micros.toString())));E.donationAmountMicros&&(h.tipAmountMicros=E.donationAmountMicros,
E.tipParams&&(h.tipParams=E.tipParams));E.offerParams&&(h.offerParams=E.offerParams);E.productData&&(h.productData=E.productData);E.transactionParams&&(h.transactionParams=E.transactionParams)};var ek=function(){};
_.f(ek,Ok);ek.prototype.getApiPaths=function(){return YuC};
ek.prototype.getExtension=function(h){return _.e(h,nKA)};
ek.prototype.JSC$13116_buildRequest=function(h,E){E.updateFopParams&&(h.updateFopParams=E.updateFopParams)};var qf=function(){};
_.f(qf,Ok);qf.prototype.getApiPaths=function(){return snm};
qf.prototype.getExtension=function(h){return _.e(h,_.Ea)};
qf.prototype.JSC$13116_buildRequest=function(h,E){E.couponCode&&(h.couponCode=E.couponCode);E.params&&(h.itemParams=E.params)};var fT=function(){};
_.f(fT,Ok);fT.prototype.getApiPaths=function(){return VEM};
fT.prototype.getExtension=function(h){return _.e(h,_.BPf)};
fT.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;E.params&&(h.params=E.params);g.ctk&&(h.clientToken=g.ctk)};var Nf=function(h){this.JSC$18197_storeWithEntities=h};
_.f(Nf,Ok);Nf.prototype.getApiPaths=function(){return kjH};
Nf.prototype.getExtension=function(h){return _.e(h,_.Rx)};
Nf.prototype.JSC$13116_buildRequest=function(h,E,g){g.purchase_price_micros&&(h.productData={pdgData:{purchasePriceMicros:g.purchase_price_micros.toString()}},g.rich_chat_message&&(h.productData.pdgData.richChatMessage=g.rich_chat_message),g.currency_code&&(h.productData.pdgData.currencyCode=g.currency_code));E.transactionParams&&(h.transactionParams=E.transactionParams);E.clientLocationContext&&(h.clientLocationContext=E.clientLocationContext);g.payments_payload&&(h.paymentsPayload=g.payments_payload);
g.funds_guarantee_callback_client_data&&(h.fundsGuaranteeCallbackClientData=g.funds_guarantee_callback_client_data);var Z,M;g=(Z=this.JSC$18197_storeWithEntities)==null?void 0:(M=Z.getState())==null?void 0:M.entities;if(E.entityKeys&&g){Z=[];E=_.G(E.entityKeys);for(M=E.next();!M.done;M=E.next()){var W=M.value;M=_.Bn(W).entityType;if(W=_.Jj(g,M,W)){var z={};Z.push((z[M]=W,z))}}h.entityMutationPayloads=Z}};
Nf[R2]=[G5];var tR=function(){};
_.f(tR,Ok);tR.prototype.getApiPaths=function(){return yzf};
tR.prototype.getExtension=function(h){return _.e(h,Kln)};
tR.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;g.backend_analytics&&(h.serializedBackendAnalyticsEvent=g.backend_analytics);E.offerParams&&(h.offerParams=E.offerParams)};var Sk=function(){};
_.f(Sk,Ok);Sk.prototype.getApiPaths=function(){return snm};
Sk.prototype.getExtension=function(h){return _.e(h,sBO)};
Sk.prototype.JSC$13116_buildRequest=function(h,E){E.params&&(h.itemParams=E.params)};var xO=function(){};
_.f(xO,Ok);xO.prototype.getApiPaths=function(){return FDf};
xO.prototype.getExtension=function(h){return _.e(h,_.JgD)};
xO.prototype.JSC$13116_buildRequest=function(h,E,g){g.resume_time_ms&&(h.resumeTimeMs=g.resume_time_ms);E.pauseParams&&(h.pauseParams=E.pauseParams)};var wn=function(){};
_.f(wn,Ok);wn.prototype.getApiPaths=function(){return Azf};
wn.prototype.getExtension=function(h){return _.e(h,_.OJM)};
wn.prototype.JSC$13116_buildRequest=function(h,E,g){g=g===void 0?{}:g;g.c&&(h.redeemCode=g.c);g.rd&&(h.riskData=g.rd);g.ctk&&(h.clientToken=g.ctk)};var De=function(){};
_.f(De,Ok);De.prototype.getApiPaths=function(){return T_m};
De.prototype.getExtension=function(h){return _.e(h,_.e_D)};
De.prototype.JSC$13116_buildRequest=function(h,E){E.resumeParams&&(h.resumeParams=E.resumeParams)};var l8=function(h,E){this.clientName=h;this.defaultExpirationDelayMs=E};
l8.prototype.put=function(h,E){var g=this,Z;return _.a(function(M){Z=Object.assign({},E.data);Z.key=h;Z.clientName=g.clientName;Z.expireTimestampMs===void 0&&(Z.expireTimestampMs=(Math.round((0,_.zn)())+g.defaultExpirationDelayMs).toString());return M.return(g.putInternal(h,Z))})};
l8[R2]=[Mj,dAX];var IRR=function(){l8.apply(this,arguments);this.JSC$18227_responseStore=new Map};
_.f(IRR,l8);_.p=IRR.prototype;_.p.get=function(h){var E=this;return _.a(function(g){return g.return(KV(E,h))})};
_.p.putInternal=function(h,E){var g=this,Z,M,W;return _.a(function(z){Z=g.defaultExpirationDelayMs;E.expireTimestampMs&&(Z=Number(E.expireTimestampMs)-Math.round((0,_.zn)()),M=_.cx("mweb_override_response_store_expiration_ms"),M>0&&M<Z&&(Z=M));W=setTimeout(function(){g.remove(h)},Z);
g.JSC$18227_responseStore.set(h,{entryData:E,timer:W});_.SK(z)})};
_.p.remove=function(h){var E=this;return _.a(function(g){RCx(E,h);_.SK(g)})};
_.p.removeAll=function(){var h=this;return _.a(function(E){h.JSC$18227_responseStore.forEach(function(g){clearTimeout(g.timer)});
h.JSC$18227_responseStore.clear();_.SK(E)})};
_.p.has=function(h){return!!this.JSC$18227_responseStore.get(h)};
_.p.getKeys=function(){return this.JSC$18227_responseStore.keys()};
var KV=function(h,E){if(h=h.JSC$18227_responseStore.get(E))return new _.$a(h.entryData)},RCx=function(h,E){var g=h.JSC$18227_responseStore.get(E);
g&&(clearTimeout(g.timer),h.JSC$18227_responseStore.delete(E))};var ihW;var Rxx=function(h,E,g){l8.call(this,h,E);this.token=g};
_.f(Rxx,l8);_.p=Rxx.prototype;_.p.get=function(h){var E=this,g,Z;return _.a(function(M){return M.nextAddress==1?M.yield(InW(E.token),2):M.nextAddress!=3?(g=M.yieldResult,M.yield(g.get("ResponseStore",[h,E.clientName]),3)):(Z=M.yieldResult)?M.return(new _.$a(Z)):M.return(void 0)})};
_.p.putInternal=function(h,E){var g=this,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(InW(g.token),2);Z=M.yieldResult;return M.yield(Z.put("ResponseStore",E),0)})};
_.p.remove=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(InW(E.token),2);g=Z.yieldResult;return Z.return(g.delete("ResponseStore",[h,E.clientName]))})};
_.p.removeAll=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(InW(h.token),2);E=g.yieldResult;return g.yield(vwH(E,IDBKeyRange.only(h.clientName)),0)})};
_.p.has=function(){throw Error("fj");};_.rn=new _.Ps("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var PJC=function(h){var E;this.stateTagsData=(E=h.responseContext)==null?void 0:E.stateTags},BIG=function(h){var E;
return((E=h.stateTagsData)==null?void 0:E.stateTagsModified)||[]};var UZG;UZG=function(h){this.JSC$18240_responseStore=h};
_.y8=function(h,E,g){if(!_.J("state_tags_killswitch")){var Z=new PJC(E);if(BIG(Z).length>0){var M=h.JSC$18240_responseStore.getKeys();M=_.G(M);for(var W=M.next();!W.done;W=M.next()){W=W.value;var z=KV(h.JSC$18240_responseStore,W);if(z){var c=_.Ww(z);a:{var I=void 0;z=BIG(Z);c=((I=(new PJC(c)).stateTagsData)==null?void 0:I.relevantStateTags)||[];I=_.G(c);for(c=I.next();!c.done;c=I.next())if(c=c.value,c.stateTag!=null&&z.includes(c.stateTag)&&c.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){z=
!0;break a}z=!1}z&&RCx(h.JSC$18240_responseStore,W)}}}}var B;Z=(B=E.responseContext)==null?void 0:B.maxAgeSeconds;g&&Z&&Number(Z)>0&&(E=P3(E,Z),h.JSC$18240_responseStore.put(g,new _.$a(E)))};
UZG.prototype.handleResponse=function(h,E){if(!E)throw Error("gj");var g,Z;E=(g=E.config)==null?void 0:(Z=g.storeStrategy)==null?void 0:Z.storeKey;_.y8(this,h,E)};
UZG[R2]=[_.H_];_.JJz=new _.Ps("STORE_RESPONSE_PROCESSOR_TOKEN");var Lix=function(h){this.JSC$18243_responseStore=h};
Lix.prototype.handleResponse=function(h,E){if(E.input.match(_.zv(czl))){var g;if(h==null?0:(g=h.entries)==null?0:g.length)for(h=_.G(h.entries),E=h.next();!E.done;E=h.next()){g=E.value.command;var Z=void 0;E=(Z=_.e(g,_.D9))==null?void 0:Z.unserializedPrefetchData;if(!g||!E)break;Z=(new Ze).JSC$13123_getStoreKey(g);var M=_.e(E,Jml),W=void 0,z=void 0,c=void 0,I=void 0,B=void 0,U=void 0,L=((W=M)==null?0:(z=W.responseContext)==null?0:z.maxAgeSeconds)&&Number((c=M)==null?void 0:(I=c.responseContext)==null?
void 0:I.maxAgeSeconds)>0?Number((B=M)==null?void 0:(U=B.responseContext)==null?void 0:U.maxAgeSeconds):600;Z&&L>0&&(M=P3(M,L),this.JSC$18243_responseStore.put(Z,new _.$a(M)));g=(new Xp).JSC$13123_getStoreKey(g);E=_.e(E,ptM);I=c=z=W=M=Z=void 0;B=((Z=E)==null?0:(M=Z.responseContext)==null?0:M.maxAgeSeconds)&&Number((W=E)==null?void 0:(z=W.responseContext)==null?void 0:z.maxAgeSeconds)>0?Number((c=E)==null?void 0:(I=c.responseContext)==null?void 0:I.maxAgeSeconds):600;g&&B>0&&(E=P3(E,B),this.JSC$18243_responseStore.put(g,
new _.$a(E)))}}};
Lix[R2]=[_.H_];var jGc=function(h){this.innertubeTransportService=h};
jGc.prototype.submitForm=function(h,E,g,Z,M){var W=this,z,c,I,B;return _.a(function(U){if(U.nextAddress==1)return z={submitId:h,formData:E,submitBehavior:g,params:Z},c=_.zv(eYA),U.yield(_.ic(W.innertubeTransportService,z,c,M),2);I=U.yieldResult;if(!I)return U.return(Promise.reject(new _.xX("Submit API returned an undefined response. Submit ID: "+h)));B=I;return U.return(B)})};
jGc[R2]=[_.yV,_.zF];var mN=function(){this.scheduler=_.xu()},dZR;
mN.prototype.pause=function(){throw Error("hj");};
mN.prototype.resume=function(){throw Error("hj");};
mN.prototype.queue=function(h){var E=this,g=_.hU(),Z=_.xW(this.scheduler,function(){try{var M;if(_.eQ.instance)var W=_.eQ.instance;else{var z=new _.xX("Error: Unexpected uninitialized CommandHandler.");_.$W(z);W=void 0}(M=W)==null||M.resolveCommand(h.command);g.resolve()}catch(c){g.reject(c)}});
g.promise.thenCatch(function(M){M instanceof _.Y7&&E.scheduler.cancelJob(Z)});
return g.promise};
mN.prototype.queueAll=function(h){var E=new Map;h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,E.set(g.id,this.queue(g));return E};var JCX=function(h,E){var g=this;this.taskModel=h;this.onTaskCancelledCallback=E;this.resolver=_.hU();h=h.proto.prefetchConfig;if(!h)throw Error("ij");if(!h.prefetchAction)throw Error("jj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(Z){Z instanceof _.Y7&&(CJC(g,g.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),g.onTaskCancelledCallback(g.taskModel.id,g.jobId),g.tick("pcc"));
throw Z;});
this.timerName=this.taskModel.id;_.Ye(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
JCX.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var CJC=function(h,E){_.nZ({prefetchInfo:{cancellationReason:E}},h.timerName)};
JCX.prototype.tick=function(h){_.s7(h,void 0,this.timerName)};var H9=function(){var h=this;this.scheduler=_.xu();this.maxInflightTasks=_.cx("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.cx("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new RzD;this.onTaskCancelled=function(E,g){g&&h.scheduler.cancelJob(g);eCx(h,E);v9(h,3)}},q0p=function(){H9.instance||(H9.instance=new H9);
return H9.instance};
H9.prototype.pause=function(){this.prefetchCoordinatorState=0};
H9.prototype.resume=function(){v9(this,0)};
H9.prototype.queue=function(h){h=fRU(this,h);v9(this,1);return h};
H9.prototype.queueAll=function(h){var E=new Map;h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,E.set(g.id,fRU(this,g));v9(this,1);return E};
var fRU=function(h,E){var g=h.allPrefetchTasks.get(E.id);if(g)return g.cancellablePromise;try{var Z=new JCX(E,h.onTaskCancelled)}catch(W){return _.$B(W)}g=Z;g.tick("pcq");var M={prefetchInfo:{taskId:g.taskModel.id,isPrefetch:!0,fetchAction:g.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:g.taskModel.command.clickTrackingParams}};g.taskModel.csn&&(M.clientScreenNonce=g.taskModel.csn);_.nZ(M,g.timerName);h.allPrefetchTasks.set(E.id,Z);h.drainingHeap.insert(-Z.getPriority(),Z);return Z.cancellablePromise},
v9=function(h,E){h.prefetchCoordinatorState===E&&(h.prefetchCoordinatorState=2,NIG(h))},NIG=function(h){for(var E={};h.prefetchCoordinatorState!==0;E={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(h.inflightPrefetchTasks.size>=h.maxInflightTasks){h.prefetchCoordinatorState=3;break}E.prefetchTask$jscomp$1=h.drainingHeap.remove();if(!E.prefetchTask$jscomp$1){h.prefetchCoordinatorState=1;break}E.taskId$jscomp$3=E.prefetchTask$jscomp$1.taskModel.id;if(h.allPrefetchTasks.has(E.taskId$jscomp$3)){var g=-1;h.coordinatorTimeoutMs>0&&(g=_.xW(h.scheduler,function(Z){return function(){$O(h,Z.taskId$jscomp$3,Error("kj"))}}(E),h.coordinatorTimeoutMs));
h.inflightPrefetchTasks.set(E.taskId$jscomp$3,g);if(!h.JSC$18263_commandHandler){if(!_.eQ.instance){$O(h,E.taskId$jscomp$3,Error("lj"));continue}h.JSC$18263_commandHandler=_.eQ.instance}a:switch(E.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":g=1;break a;default:g=0}E.prefetchTask$jscomp$1.jobId=h.scheduler.addJob(function(Z){return function(){Z.prefetchTask$jscomp$1.tick("pcr");try{h.JSC$18263_commandHandler.resolveCommand(Z.prefetchTask$jscomp$1.taskModel.command)||
$O(h,Z.taskId$jscomp$3,Error("mj"))}catch(M){$O(h,Z.taskId$jscomp$3,M)}}}(E),g,0)}}},txG=function(h,E){(E=eCx(h,E))!=null&&(E.resolver.resolve(),E.tick("pce"));
v9(h,3)},$O=function(h,E,g){(E=eCx(h,E,g))!=null&&(E.resolver.reject(g),E.tick("pcc"),CJC(E,"CANCELLATION_REASON_ERROR"),Math.random()<=_.cx("prefetch_coordinator_error_logging_sampling_rate")&&(g=new _.xX("Prefetch Command failed.",E.taskModel.id,g.message),_.$W(g)));
v9(h,3)},eCx=function(h,E,g){var Z=h.allPrefetchTasks.get(E);
Z?((g=h.inflightPrefetchTasks.get(E))&&g!==-1&&h.scheduler.cancelJob(g),h.inflightPrefetchTasks.delete(E),h.allPrefetchTasks.delete(E)):_.O$(new _.xX("Unexpected missing prefetch task when deleting task.",E,g==null?void 0:g.message));return Z};var S00=function(h,E,g,Z,M){this.id=h;this.triggerOn=E;this.cancelOn=g;this.command=Z;this.proto=M};
_.ze.Object.defineProperties(S00.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var xZG=function(){this.JSC$18268_prefetchCoordinator=q0p();dZR||(dZR=new mN);this.defaultCoordinator=dZR},wcG;
xZG.getInstance=function(){wcG||(wcG=new xZG);return wcG};
xZG.prototype.get=function(h){switch(h){case 0:return this.JSC$18268_prefetchCoordinator;default:return this.defaultCoordinator}};var KT=function(){this.coordinatorSupplier=xZG.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},rCi=function(h){var E=_.sH()||void 0,g=Object.keys(DZG)[0];
if(g){var Z=h.taskIdByTriggerId.get(g);if(Z!=null){h.taskIdByTriggerId.delete(g);g=[];Z=_.G(Z);for(var M=Z.next();!M.done;M=Z.next())if(M=h.tasks.get(M.value))E!=="UNDEFINED_CSN"&&(M.csn=E),g.push(M);g=Uk$(g);E=[];g=_.G(g);for(Z=g.next();!Z.done;Z=g.next()){M=_.G(Z.value);Z=M.next().value;M=M.next().value;Z=h.coordinatorSupplier.get(Z).queueAll(M);Z=_.G(Z);var W=Z.next();for(M={};!W.done;M={taskId$jscomp$9:void 0},W=Z.next()){var z=_.G(W.value);W=z.next().value;z=z.next().value;M.taskId$jscomp$9=
W;W=z;E.push(M.taskId$jscomp$9);h.queuedPromisesByTask.set(M.taskId$jscomp$9,_.KA(W,function(c){return function(){lRG(h,c.taskId$jscomp$9)}}(M)))}}}}else _.O$(new _.xX("Unexpected malformed TriggerEvent."))};
KT.prototype.trigger=function(h,E){var g=this,Z=this.tasks.get(h);if(!Z||this.queuedPromisesByTask.has(h))return!1;mZp(this,h,Z.triggerOn);E!=="UNDEFINED_CSN"&&(Z.csn=E);E=this.coordinatorSupplier.get(Z.taskType).queue(Z);this.queuedPromisesByTask.set(h,_.KA(E,function(){lRG(g,h)}));
return!0};
KT.prototype.cancel=function(h){var E=this.queuedPromisesByTask.get(h);if(E)E.cancel();else return lRG(this,h)};
var lRG=function(h,E){h.queuedPromisesByTask.delete(E);var g=h.tasks.get(E);if(!g)return!1;h.tasks.delete(E);mZp(h,E,g.triggerOn);(g=B7u(g.cancelOn))&&(h=h.taskIdByCancelId.get(g))&&h.delete(E);return!0},mZp=function(h,E,g){(g=Object.keys(g)[0])&&(h=h.taskIdByTriggerId.get(g))&&h.delete(E)};var DZG={taskRegistered:{}},Ox=function(){KT.instance||(KT.instance=new KT);this.JSC$18277_taskManager=KT.instance};
_.f(Ox,o0);
Ox.prototype.resolveCommand=function(h){var E=this,g,Z;return _.a(function(M){g=_.e(h,qhf);if((Z=g)==null||!Z.tasks){var W=new _.xX("RegisterTasksCommand is missing tasks.");_.$W(W);return M.return()}W=E.JSC$18277_taskManager;for(var z=_.G(g.tasks),c=z.next();!c.done;c=z.next())if(c=c.value,c=c.id&&c.triggerOn&&c.cancelOn&&c.command?new S00(c.id,c.triggerOn,c.cancelOn,c.command,c):void 0,c){var I=Object.keys(c.triggerOn)[0];if(I){var B=B7u(c.cancelOn);B?(W.tasks.set(c.id,c),W.taskIdByTriggerId.has(I)||W.taskIdByTriggerId.set(I,
new Set),W.taskIdByTriggerId.get(I).add(c.id),W.taskIdByCancelId.has(B)||W.taskIdByCancelId.set(B,new Set),W.taskIdByCancelId.get(B).add(c.id)):_.O$(new _.xX("Unexpected malformed cancelOn field."))}else _.O$(new _.xX("Unexpected malformed triggerOn field."))}else _.O$(new _.xX("Unexpected malformed Task proto."));rCi(E.JSC$18277_taskManager);_.SK(M)})};var vUR={},HUC=(vUR.rendered={priority:_.J("web_adaptive_early_init")?8:0,callback:function(){var h={};h.numCpu=navigator.hardwareConcurrency;var E={};E.ramGb=_.MN.navigator.deviceMemory;var g={staticContext:{}};E.ramGb&&sEa(E.ramGb)&&(g.staticContext.memoryTotalKbytes=(E.ramGb*1048576).toString());h.numCpu&&sEa(h.numCpu)&&(g.staticContext.cpuCores=h.numCpu);if(_.J("web_enable_adaptive_appl_signal")){h={};E=TgM();E=E.length>0?E[0]:void 0;var Z,M=(Z=_.yp("rses_dpj"))!=null?Z:E==null?void 0:E.tick.rses_dpj,
W;Z=(W=_.yp("rsef_dpj"))!=null?W:E==null?void 0:E.tick.rsef_dpj;M&&Number(M)>0&&Z&&Number(Z)>0&&(W=Math.ceil(Number(Z)-Number(M)),W>0&&(h.loadLatency=W));h.loadLatency&&sEa(h.loadLatency)&&(g.appL=h.loadLatency.toString())}_.vT("applicationStarted",g);Vk4=g;_.J("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",k24)}},vUR);var $ZC=new _.Ps("WINDOW_ON_ERROR"),KiG=new _.Ps("ERROR_WEIGHT_MAPS"),OUX=new _.Ps("INIT_ERROR");var nU0={},XcC=(nU0.initialized={priority:10,callback:function(h){h.injector.resolve(OUX)()}},nU0);var Y0x=function(){},sGC=function(){var h=_.yy("meta_logger_impl");
h||(h=new Y0x,_.Wu("meta_logger_impl",h));return h},Vxp=function(){sGC().csiSubscriptionKey=qBM("meta_logging_csi_event",function(h){var E=h.timerName;
if(h=h.timelineData){_.Ye(E,{startTime:h.startTime},E);h.infos&&_.nZ(h.infos,E);for(var g=_.G(Object.keys(h.ticks)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,_.s7(Z,h.ticks[Z],E)}})};
Y0x.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&tgz(this.csiSubscriptionKey)};var kpZ={},yCX=(kpZ.initialized={priority:10,callback:function(){Vxp()}},kpZ);var FiG=function(h,E){this.innertubeClientName=h;this.JSC$18288_prefCookie=E};
FiG.prototype.record=function(){if(_.J("web_li_record_binary_eval_tick")){var h=_.yp("rsef_dpj");var E=_.yp("rses_dpj");h=h!==void 0&&E!==void 0?Math.round(h-E):void 0;if(h!==void 0&&h>0){E=_.YY(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var g=this.poolSize;if(!(E.valuesSeen>=1E9)){if(E.valuesSample.length<g)E.valuesSample.push(h);else{var Z=Math.floor(Math.random()*(E.valuesSeen+1));Z<g&&(E.valuesSample[Z]=h)}E.valuesSeen+=1}_.Xt(this.storagePrefix+"-"+this.innertubeClientName,
E,2592E3);h=E.valuesSample;E=L6V(h);h=h.length<this.poolSize?void 0:E<400?1:E<1700?2:3;h!==void 0&&(this.JSC$18288_prefCookie.set(this.cookiePrefix+this.innertubeClientName,h),this.JSC$18288_prefCookie.save())}}else _.s8(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18288_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18288_prefCookie.save()};
FiG[R2]=[Mj,Os];var ACx=function(){FiG.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.f(ACx,FiG);var TIX=new _.Ps("PAGE_LOAD_TIME_TOKEN");var bUx=function(h){this.signal=h;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;h.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.xW(_.KP,this.disableLoggingAndSendPayload,1E4)};
bUx.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.KP.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),uXp(this))};
var uXp=function(h){var E=_.YN();if(E){var g={webClientComponentsData:{components:Array.from(h.ids,function(Z){return{id:Z}})}};
h.ids.clear();_.SQ().visualElementStateChanged(E,g)}};var QGc=_.OL({a11y:_.Z7F});_.ha0=_.nO(QGc)(QGc.a11y,{ephemeralActionSelector:function(h){return h.ephemeralAction||null}});var ErC=_.OL({continuation:_.pvA});var grG=_.nO(ErC)(ErC.continuation,{continuationCommandSelector:function(h){return h.continuationCommand}});var ZMG=new _.Ps("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var nT=function(h,E){this.JSC$18317_storeWithEntities=h;this.JSC$18317_commandHandler=E;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
nT.prototype.start=function(){this.JSC$18317_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
nT.prototype.observeDownloadingEntities=function(){var h=_.iC$(this.JSC$18317_storeWithEntities.getState().entities).map(function(Z){return oTx(Z)});
if(h.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var E={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:UL$()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.iV(_.NH("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18317_commandHandler.resolveCommand(E)}this.downloadingEntities=h}else if(this.downloadingEntities.length){var g=cmu(this.JSC$18317_storeWithEntities.getState().entities).map(function(Z){return oTx(Z)});
this.downloadingEntities.filter(function(Z){return g.includes(Z)}).length&&(h={openPopupAction:gQ4()},this.JSC$18317_commandHandler.resolveCommand(h));
this.downloadingEntities=[]}};
nT[R2]=[G5,_.zF];var MLp;_.XB=function(h,E,g,Z,M,W,z,c){this.JSC$18320_playerApiPromise=h;this.JSC$18320_commandHandler=E;this.JSC$18320_screenManager=g;this.offlineWebClientEligibility=Z;this.JSC$18320_prefStorage=M;this.JSC$18320_actionRouter=W;this.entityTypeMap=z;this.JSC$18320_persistentStorePromiseAccessor=c;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
MLp=function(){var h=_.GF().resolve(_.XB),E;_.a(function(g){if(g.nextAddress==1)return h.downloadFailureListenerBound?g.return():g.yield(h.JSC$18320_playerApiPromise,2);E=g.yieldResult;E.addEventListener("onOfflineOperationFailure",function(Z){if(Z.failureReason&&Z.entityKey&&Z.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(Z.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var M=_.Bn(Z.entityKey).entityId;M&&h.JSC$18320_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
M)}else if(_.J("kevlar_woffle")){M=h.JSC$18320_commandHandler;var W=M.resolveCommand;Z=Z.failureReason;var z=_.NH("TRANSFER_FAILED",void 0,"Download failed");Z==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(z=_.NH("STORAGE_FULL",void 0,"Storage full"));W.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iV(z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
h.downloadFailureListenerBound=!0;_.SK(g)})};
_.XB.prototype.deleteVideo=function(h,E){var g=this,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return z.yield(g.JSC$18320_playerApiPromise,2);Z=z.yieldResult;W={offlineLoggingData:{offlineDeleteReason:(M=E)!=null?M:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return z.yield(Z.queueOfflineAction(h,g.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",W),0)})};
_.XB.prototype.pauseVideoDownload=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.JSC$18320_playerApiPromise,2);g=Z.yieldResult;g.pauseVideoDownload(h);_.SK(Z)})};
_.XB.prototype.resumeVideoDownload=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.JSC$18320_playerApiPromise,2);g=Z.yieldResult;return Z.yield(g.resumeVideoDownload(h),0)})};
_.XB[R2]=[_.IJ,_.zF,_.gP,ZMG,ss,ei,hWf,nS];var W20=new _.Ps("DOWNLOAD_STATE_STORE_TOKEN");var pic=function(h,E){this.JSC$18340_persistentStorePromiseAccessor=h;this.store=E;this.upliftCompletionResolver=new _.dN},a00=function(){var h=_.GF().resolve(GNX),E;
_.a(function(g){switch(g.nextAddress){case 1:if(h.upliftImplPromise)return g.return(h.upliftImplPromise);_.CX(g,2);h.upliftImplPromise=zaC(h);return g.yield(h.upliftImplPromise,4);case 4:h.upliftCompletionResolver.resolve();_.bN(g,3);break;case 2:throw E=_.th(g),h.upliftCompletionResolver.reject(E),E;case 3:return g.return(h.upliftImplPromise)}})},zaC=function(h){var E,g,Z;
return _.a(function(M){switch(M.nextAddress){case 1:return _.Xn("LOGGED_IN")?M.yield(h.JSC$18340_persistentStorePromiseAccessor(),2):M.return();case 2:E=M.yieldResult;if(!E)return _.s7("vdeur"),M.return();_.s7("vdeus");_.CX(M,3);return M.yield(cLZ(E),5);case 5:g=M.yieldResult;h.store.dispatch(Ty4(g));E.observe(function(W){b1u(h.store,W)});
_.bN(M,4);break;case 3:throw Z=_.th(M),_.s7("vdeur"),Z;case 4:_.s7("vdeuc"),_.SK(M)}})},cLZ=function(h){var E;
return _.a(function(g){if(g.nextAddress==1)return g.yield(qnM(h),2);E=g.yieldResult;return g.return(E.reduce(function(Z,M){if(!M.data||!M.key||!M.entityType)return Z;Z[M.entityType]||(Z[M.entityType]={});Z[M.entityType][M.key]=M.data;return Z},{}))})};
pic[R2]=[nS,_.c4];var GNX;GNX=new _.Ps("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.YO=new _.Ps("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var sx=function(h,E){this.JSC$18343_persistentStorePromiseAccessor=h;this.transportService=E};
sx.prototype.refresh=function(){var h=this,E,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return _.Xn("LOGGED_IN")?W.yield(h.JSC$18343_persistentStorePromiseAccessor(),2):W.return();if(W.nextAddress!=3)return(E=W.yieldResult)?W.yield(zxZ(E),3):W.return();if((g=W.yieldResult)&&!(Number(g.data.refreshTimestampMs||0)<(0,_.zn)()))return W.return();Z={browseId:"SPaccount_downloads"};M=_.zv(b1);_.ic(h.transportService,Z,M).then(function(z){var c;if(E&&(z==null?void 0:(c=z.responseContext)==null?void 0:
c.maxAgeSeconds)!==0){var I;c=(z==null?void 0:(I=z.responseContext)==null?void 0:I.maxAgeSeconds)||604800;I=String(Math.floor((0,_.zn)())+c*1E3);E.put("service:downloads_settings:fallback",new _.$a({innertubeResponse:z,refreshTimestampMs:I}))}});
_.SK(W)})};
sx[R2]=[_.rn,_.yV];var Vg=function(h,E){this.JSC$18347_playerPromise=h;this.store=E;this.started=!1};
Vg.prototype.start=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return h.started?g.return():g.yield(h.JSC$18347_playerPromise,2);E=g.yieldResult;E.addEventListener("onOrchestrationBecameLeader",h.updateIsLeader.bind(h,!0));E.addEventListener("onOrchestrationLostLeader",h.updateIsLeader.bind(h,!1));if(E.isOrchestrationLeader)h.updateIsLeader(E.isOrchestrationLeader());else{var Z=new _.xX("Function isOrchestrationLeader is undefined",{"player.isReady":E.isReady(),"player.playVideo":E.playVideo?
"defined":"undefined"});_.$W(Z);h.updateIsLeader(!1)}h.started=!0;_.SK(g)})};
Vg.prototype.updateIsLeader=function(h){this.store.dispatch(_.RY({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:h}}))};
Vg[R2]=[_.IJ,_.c4];var iMJ=function(h,E){this.networkStatusManager=h;this.JSC$18350_prefStoragePromise=E;this.redirectsToPreload=["https://youtube.com"]},orI=function(){var h=_.GF().resolve(iMJ),E,g,Z,M,W,z;
_.a(function(c){switch(c.nextAddress){case 1:return c.yield(h.JSC$18350_prefStoragePromise,2);case 2:E=c.yieldResult;if(!(g=E)){c.jumpTo(3);break}return c.yield(E.get("yt-redirect-prefetch-id"),4);case 4:g=c.yieldResult;case 3:if(g||!h.networkStatusManager.isNetworkAvailable())return c.return();Z={cache:"reload",redirect:"manual"};M=_.G(h.redirectsToPreload);W=M.next();case 5:if(W.done){if(!E){c.jumpTo(0);break}return c.yield(E.set("yt-redirect-prefetch-id",!0,86400),0)}z=W.value;_.CX(c,8);return c.yield(_.MN.fetch(z,
Z),10);case 10:_.bN(c,6);break;case 8:_.th(c);case 6:W=M.next(),c.jumpTo(5)}})};var kO=function(h){h?(this.container=h,this.containerWasInjected=!0):this.containerWasInjected=!1};
kO.prototype.openDialog=function(h,E,g){var Z=this,M;return _.a(function(W){(M=Z.container)==null||M.openDialog(h,E,g);_.SK(W)})};
kO.prototype.closeDialog=function(){var h=this,E;return _.a(function(g){(E=h.container)==null||E.closeDialog();_.SK(g)})};
kO.prototype.isDialogOpen=function(){var h=this,E,g;return _.a(function(Z){return Z.return((g=(E=h.container)==null?void 0:E.isDialogOpen())!=null?g:!1)})};
kO[R2]=[_.pl(vtm)];_.I0x=new _.Ps("POPUP_CONTROLLER_TOKEN");var Rai=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Rai.prototype.registerPanel=function(h,E){if(h){this.panelMap.set(h,E);var g=this.pendingPanelResolvers.get(h);g&&(g.resolve(E),this.pendingPanelResolvers.delete(h))}};
Rai.prototype.getPanel=function(h){var E=this,g;return _.a(function(Z){return(g=E.panelMap.get(h))?Z.return(g):Z.return(Pxi(E,h))})};
var Pxi=function(h,E){var g,Z;return _.a(function(M){if(g=h.pendingPanelResolvers.get(E))return M.return(g.promise);Z=new _.dN;h.pendingPanelResolvers.set(E,Z);return M.return(Z.promise)})},BUI=function(h,E){Rai.call(this);
var g=this;this.popupController=h;this.persistentPanelController=E;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return g.panelMap.size}}};
_.f(BUI,Rai);_.p=BUI.prototype;_.p.getReloadContinuation=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(E.getPanel(h),2);g=Z.yieldResult;return Z.return(g.getReloadContinuation())})};
_.p.showPanel=function(h,E,g,Z,M,W,z){var c=this,I,B,U,L;return _.a(function(d){if(d.nextAddress==1){z&&c.updatePanelContinuationDatas.set(h,z);if((I=g)==null?0:(B=I.engagementPanelPopupPresentationConfig)==null?0:B.popupType)if(U=g.engagementPanelPopupPresentationConfig.popupType,M===void 0&&(M=document.body),U==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!c.persistentPanelController)return _.O$(new _.xX("Persistent panel controller is not available.")),d.return();var C=c.persistentPanelController;
C.persistentPanelIdentifiers.has(h)||(C.persistentPanelWrapper.appendChild(C.engagementPanelElement({panelIdentifier:h},{isPersistentPanel:!0})),C.persistentPanelIdentifiers.add(h));a:switch(_.AU.currentPageSubTypeSelector(C.store.getState())){case "watch":var q="WATCH";break a;default:q="APP"}_.UoZ(C,q);C.store.dispatch(MBD(!0))}else{if(U==="PANEL_POPUP_TYPE_DIALOG"||U==="PANEL_POPUP_TYPE_DROPDOWN"){C=d.return;q=c.popupController;var w=q.openPopup;a:switch(U){case "PANEL_POPUP_TYPE_DIALOG":var r=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":r="DROPDOWN";break a;default:throw Error("oj`"+U);}return C.call(d,w.call(q,h,E,r,M))}_.O$(new _.xX("Popup type "+U+" not supported in PanelController."))}return d.yield(c.getPanel(h),2)}L=d.yieldResult;(E||W)&&L.updatePanel(E,!1,Z,W);L.showPanel(Z);_.SK(d)})};
_.p.hidePanel=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(E.getPanel(h),2);g=M.yieldResult;g.hidePanel();E.popupController.closePopup(h);(Z=E.persistentPanelController)!=null&&Z.persistentPanelIdentifiers.has(h)&&Z.store.dispatch(MBD(!1));_.SK(M)})};
_.p.isVisible=function(h,E){var g=this,Z;return _.a(function(M){if(M.nextAddress==1)return E&&!g.panelMap.has(h)?M.return(!1):M.yield(g.getPanel(h),2);Z=M.yieldResult;return M.return(Z.isVisible())})};
_.p.updatePanel=function(h,E,g,Z,M,W){g=g===void 0?!1:g;var z=this,c;return _.a(function(I){if(I.nextAddress==1){if(!E&&!M)return I.return();W&&z.updatePanelContinuationDatas.set(h,W);return I.yield(z.getPanel(h),2)}c=I.yieldResult;c.updatePanel(E,g,Z,M);_.SK(I)})};
_.p.registerPanelContent=function(h,E){h&&this.panelContentMap.set(h,E)};
_.p.unregisterPanelContent=function(h){this.panelContentMap.delete(h)};
_.p.getPanelContent=function(h){return this.panelContentMap.get(h)};
_.p.getUpdatePanelContinuationData=function(h){return this.updatePanelContinuationDatas.get(h)};
BUI[R2]=[_.I0x,_.pl(_.g_)];var yg=function(h,E){this.innertubeTransportService=h;this.JSC$18367_screenManager=E},L2C=function(h){var E;
return!((E=h.panelLoadingStrategy)==null||!E.requestTemplate)};
yg.prototype.makeRequest=function(h){var E=this,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!L2C(E)){M.jumpTo(2);break}_.CX(M,3);return M.yield(_.QQ(E.innertubeTransportService,h),5);case 5:return g=M.yieldResult,g?M.return(g.content):(_.$W(Error("pj")),M.return(void 0));case 3:Z=_.th(M),_.$W(Z);case 2:return M.return(void 0)}})};
yg.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
yg.prototype.execute=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L;return _.a(function(d){if(d.nextAddress==1){g=h;Z=g.data;M=g.fallbackVe;W=g.parentVe;z=g.createScreenConfig;c=g.renderFn;I=g.command;E.panelLoadingStrategy=Z;var C,q,w=((C=E.panelLoadingStrategy)==null?0:C.screenVe)?(q=E.panelLoadingStrategy)==null?void 0:q.screenVe:M;w&&_.mw(E.JSC$18367_screenManager,w,W,z);return(B=E.getContent())?d.yield(c(B),2):d.jumpTo(2)}return d.nextAddress!=4?L2C(E)?d.yield(E.makeRequest(I),4):d.return():(L=U=
d.yieldResult)?d.yield(c(L),0):d.return()})};
yg[R2]=[_.yV,_.gP];var jKR;jKR=function(h,E){this.engagementPanelElement=h;this.store=E;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.UoZ=function(h,E){var g=h.persistentPanelContainerMap.get(E);g?(h=h.persistentPanelWrapper,_.iF=!0,_.o9.set(h,!0),g.insertBefore(h,null),_.o9.delete(h),_.iF=!1):_.O$(new _.xX("Persistent panel container not found for surface "+E+"."))};
jKR[R2]=[Hkm,_.c4];var FB=function(){};
FB.prototype.getContainer=function(){return _.cX()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
FB.prototype.openSheet=function(h,E){var g=this,Z,M,W,z,c,I;return _.a(function(B){switch(B.nextAddress){case 1:return Z={stack:[],error:void 0,hasError:!1},_.CX(B,2,3),M=Za,B.yield(g.isSheetOpen(),5);case 5:W=B.yieldResult;zm$(Z,qYZ(M));if(W){if(_.J("web_close_sheet_if_same_target_killswitch")&&E&&g.currentTarget===E)return(z=g.getContainer())==null||z.closeSheet(),B.return();g.pendingData={data:h,target:eHX(g,E)};return B.return()}h.viewModel&&(h={viewModel:h.viewModel});(c=g.getContainer())==null||
c.openSheet(h,E);g.currentTarget=E;case 3:_.eK(B);aoq(Z);_.fX(B,0);break;case 2:I=_.th(B),Z.error=I,Z.hasError=!0,B.jumpTo(3)}})};
FB.prototype.closeSheet=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield((E=h.getContainer())==null?void 0:E.closeSheet(),2);if(g.nextAddress!=4)return h.currentTarget=void 0,h.pendingData?g.yield(h.openSheet(h.pendingData.data,h.pendingData.target),4):g.jumpTo(0);h.pendingData=void 0;_.SK(g)})};
FB.prototype.isSheetOpen=function(){var h=this,E,g;return _.a(function(Z){return Z.return((g=(E=h.getContainer())==null?void 0:E.isSheetOpen())!=null?g:!1)})};
var eHX=function(h,E){if(!_.J("web_parent_target_for_sheets"))return E;var g,Z;return(Z=(g=h.getContainer())==null?void 0:g.getParentTarget(E))!=null?Z:E};var z5=window.documentPictureInPicture;var Hh4=_.uz(["dark"]),$ku=_.uz(["system-icons"]),K6z=_.uz(["typography"]),Oh$=_.uz(["lang"]),nQ4=_.uz(["style"]),lnd=_.uz(["dir"]),rFd=_.uz(["rounded-container"]),mkz=_.uz(["style"]),YnV=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],AR=function(h){this.JSC$18384_clientRoot=h;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
AR.prototype.openWindow=function(h){var E=this,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!window.documentPictureInPicture||!_.x$()||E.currentPipWindow)return M.return(!1);_.CX(M,2);return M.yield((Z=z5?z5:null)==null?void 0:Z.requestWindow(h),4);case 4:g=M.yieldResult;_.bN(M,3);break;case 2:return _.th(M),M.return(!1);case 3:if(!g)return M.return(!1);g.addEventListener("pagehide",function(){dop(E)});
g.addEventListener("resize",E.handlePipWindowResize);E.pipWindowResizeDelay=new _.iC(function(){E.currentPipWindow&&_.BX(E.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Ns(E.currentPipWindow.innerWidth,E.currentPipWindow.innerHeight)])},g);
X7Z(g);V2O(g);return M.yield(Dka(g),5);case 5:if(!Snx())return M.return(!1);E.currentPipWindow=g;E.JSC$18384_eventForwarder=s7$(g,E.JSC$18384_clientRoot);E.pipWindowResizeDelay.start();return M.return(!0)}})};
AR.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var dop=function(h){if(h.currentPipWindow){var E,g;(E=z5?z5:null)==null||(g=E.window)==null||g.close();h.currentPipWindow.removeEventListener("resize",h.handlePipWindowResize);var Z;(Z=h.pipWindowResizeDelay)==null||Z.dispose();h.pipWindowResizeDelay=void 0;var M;(M=h.JSC$18384_eventForwarder)==null||M.stop();h.JSC$18384_eventForwarder=void 0;E=_.G(h.onCloseCallbacks);for(g=E.next();!g.done;g=E.next())g=g.value,g();h.onCloseCallbacks=[];h.currentPipWindow=null}};
AR.prototype.getWindow=function(){return this.currentPipWindow};
var CxC=function(h,E){var g;(g=h.onCloseCallbacks)==null||g.push(E)};
AR.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.x$()};
_.ze.Object.defineProperties(AR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
AR[R2]=[QlD];var JL0=new _.Ps("PICTURE_IN_PICTURE_CONTROLLER");var kXa=function(h,E){this.lengthY=this.lengthX=0;this.lengthX=E.x-h.x;this.lengthY=E.y-h.y};var eax=function(){},llI=function(h,E){var g;
(g=h.headerElement)==null||g.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:E}))};var qGx=function(){};
qGx.prototype.openPopup=function(h,E,g,Z){var M=this,W;return _.a(function(z){if(!M.container)return z.return();W={openPopupAction:{popup:E,popupType:g,uniqueId:h}};return z.return(M.container.handleOpenPopupAction(W,Z))})};
qGx.prototype.closePopup=function(h){this.container&&this.container.closePopup(h)};var f0C=function(){this.openTunnels=new Map},TnN=function(h,E,g){if(uxW(g)){var Z=_.FR(g,"gclid");
g={handleEvent:function(c){E&&!E.closed&&typeof E.postMessage==="function"&&c&&c.origin&&c.source===E&&c.data&&c.data.action==="gcl_setup"&&E.postMessage(Object.assign({},{action:"gcl_transfer"},Z&&{gclid:Z},{gadSource:2}),c.origin)}};
for(var M=_.G(h.openTunnels),W=M.next();!W.done;W=M.next()){var z=_.G(W.value);W=z.next().value;z=z.next().value;if(W.closed)try{window.removeEventListener("message",z),h.openTunnels.delete(W)}catch(c){_.$W(c)}}E&&h.openTunnels.size<15&&(h.openTunnels.set(E,g),window.addEventListener("message",g))}};var NUx=function(){this.clientParams=new Map},fHf=function(h){for(var E=_.G(h.clientParams.keys()),g=E.next();!g.done;g=E.next())g=g.value,g.startsWith("yt-mini-app-share")&&h.clientParams.delete(g)};var tLJ=function(h,E){_.wO.call(this);var g=this;this.shortsController=h;this.storeWithShorts=E;h=_.kT(this.storeWithShorts,_.BTd,function(Z){if(Z){var M,W=(M=g.shortsController.getRoot())==null?void 0:M.getPlayer(),z;(M=(z=g.shortsController.alternativePlayerContainerElement)==null?void 0:z.getPlayerContainer())&&(W==null||W.appendTo(M))}else{var c;z=(c=g.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer().querySelector("#player");M=g.shortsController.activeIndex;
(c=(W=g.shortsController.getRoot())==null?void 0:W.querySelector('ytd-reel-video-renderer[id="'+M+'"] #player-container'))&&(z==null||z.appendTo(c,void 0,!0))}});
this.addOnDisposeCallback(h)};
_.f(tLJ,_.wO);var T2=function(h,E,g,Z){var M=this;this.storeWithShorts=h;this.ephemeralResponseStore=E;this.innertubeTransportService=g;this.innertubeTransportLoader=Z;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.VQ(_.cg);this.isShortsPipActive=_.VQ(_.i1);this.nextReelVe=_.Uz(56921);this.prevReelVe=_.Uz(56922);this.backButtonVe=_.Uz(22156);this.TEST_ONLY={getActiveModules:function(){return M.activeModules}}},SGR=function(h){h.unsubscribeFromStore=
_.kT(h.storeWithShorts,_.P2d,function(E){h.initOrDisposeActiveModules(E);
!E&&h.storeWithShorts.getState().shorts.isFullscreen&&(_.iw(document.documentElement),h.storeWithShorts.dispatch(_.GUl(!1)))});
h.initOrDisposeActiveModules(_.P2d(h.storeWithShorts.getState()))},WWB,pGl,xoi;
T2.prototype.initOrDisposeActiveModules=function(h){h?this.activeModules.push(new tLJ(this,this.storeWithShorts)):(_.G8(this.activeModules),this.activeModules.length=0)};
T2.prototype.registerRootElement=function(h){this.rootElement=h;SGR(this)};
T2.prototype.getRoot=function(){return this.rootElement};
T2.prototype.setActiveIndex=function(h){this.activeIndex=h};
_.QyF=function(h,E){var g,Z,M,W,z,c,I;return _.a(function(B){switch(B.nextAddress){case 1:return g=new Ze,(Z=g.JSC$13123_getStoreKey(E))&&h.ephemeralResponseStore.has(Z)?B.yield(h.ephemeralResponseStore.get(Z),7):B.yield(xoi(h,E),4);case 4:M=B.yieldResult;if(!Z){B.jumpTo(3);break}W=P3(M,3600);return B.yield(h.ephemeralResponseStore.put(Z,new _.$a(W)),3);case 7:M=(z=B.yieldResult)==null?void 0:_.Ww(z);case 3:return((c=M)==null?0:c.replacementEndpoint)&&(I=_.e(M.replacementEndpoint,_.D9))&&M.sequenceContinuation&&
(I.sequenceParams=M.sequenceContinuation),B.return(M)}})};
WWB=function(h,E){E=(new Mf).JSC$13123_getStoreKey(E);return!!E&&h.ephemeralResponseStore.has(E)};
pGl=function(h,E,g){var Z,M,W,z,c;_.a(function(I){if(I.nextAddress==1){Z=new Mf;M=Z.JSC$13123_getStoreKey(E);if(!M)return I.return();if(g.reelWatchSequenceResponse)return W=P3(g.reelWatchSequenceResponse,3600),h.ephemeralResponseStore.put(M,new _.$a(W)),I.jumpTo(0);if(!h.ephemeralResponseStore.has(M))return I.jumpTo(0);c=g;return I.yield(h.ephemeralResponseStore.get(M),4)}c.reelWatchSequenceResponse=(z=I.yieldResult)==null?void 0:_.Ww(z);_.SK(I)})};
xoi=function(h,E){var g=g===void 0?{}:g;var Z,M,W;return _.a(function(z){switch(z.nextAddress){case 1:if(h.innertubeTransportService){Z=h.innertubeTransportService;z.jumpTo(2);break}if(!h.innertubeTransportLoader){_.Vy(Error("rj"));z.jumpTo(2);break}return z.yield(h.innertubeTransportLoader(),4);case 4:Z=z.yieldResult;case 2:return z.yield((M=Z)==null?void 0:_.QQ(M,E,g),5);case 5:return W=z.yieldResult,z.return(W)}})};
_.ze.Object.defineProperties(T2.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
T2[R2]=[syB,_.H_,_.pl(_.yV),_.pl(n_k)];_.wiU=new _.Ps("STORAGE_MANAGER_TOKEN");var c5a=["touchmove","scroll"];var DoU=!1;var M7d=!1;var iiO={onSpanEnd:function(h){h.parentId==null&&(DoU||(gVz(),setInterval(gVz,6E5),DoU=!0),WL$(h,"web_tracing_action"))}};var l0X=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},rL0;
l0X.prototype.enqueue=function(h,E){E===1?this.currentPersistentToast=h:this.queue.push(h);this.openToast()};
l0X.prototype.openToast=function(){var h;(h=this.currentToast)!=null&&h.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.b8=new _.Ps("TOAST_MANAGER_TOKEN");var moG=new _.Ps("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var vri=new _.Ps("VIEW_TRANSITION_COORDINATOR_TOKEN");var HMU=function(h){this.config=h;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;h=_.G(h.transitionConfigs);for(var E=h.next();!E.done;E=h.next())E=_.G(E.value).next().value,this.transitionTasksMap.set(E,[])};
HMU.prototype.registerElement=function(h,E,g){g=g===void 0?!1:g;for(var Z=_.G(Object.keys(E)),M=Z.next(),W={};!M.done;W={viewTransitionName:void 0},M=Z.next()){M=M.value;W.viewTransitionName=E[M];var z=this.elementTasksMap.get(h),c=void 0;if((c=z)==null?0:c.has(M)){_.KI(new _.xX("Element already registered for transition",h.tagName,M));break}z=z||new Map;z.set(M,{beforeTransition:function(I){return function(){h.style.viewTransitionName=I.viewTransitionName}}(W),
afterTransition:function(){h.style.viewTransitionName&&(h.style.viewTransitionName="")},
runOnce:g});this.elementTasksMap.set(h,z)}};
_.sz=function(h,E){var g=h.elementTasksMap.get(E);g&&(g.clear(),g.size===0&&h.elementTasksMap.delete(E))};
HMU[R2]=[moG];var $oU;_.K2x=_.O(function(h){return _.R("basic-content-view-model",{class:_.CO("ytBasicContentViewModelHost",_.zl(h.className))},_.R(_.P,{cond:function(){return h.data().headline},
then:function(E){return _.R("div",{class:"ytBasicContentViewModelHeadline"},_.R(_.dK,{text:E}))}}),_.R(_.SX,{each:function(){return h.data().paragraphs||[]},
keyBy:"INDEX"},function(E){return _.R("div",{class:"ytBasicContentViewModelParagraph"},_.R(_.P,{cond:function(){var g=E();return!!(g.header||g.customHeader||g.headline)},
then:function(){return _.R($oU,{paragraph:E})}}),_.R(_.P,{cond:function(){return E().asset||E().text},
then:function(){return _.R("div",{class:"ytBasicContentViewModelParagraphContent"},_.R(_.P,{cond:function(){return E().asset},
then:function(g){return _.R("div",{class:"ytBasicContentViewModelParagraphAsset"},_.R(_.Sv,{data:g},{contentPreviewImageViewModel:_.wS}))}}),_.R(_.P,{cond:function(){return E().text},
then:function(g){return _.R("div",{class:"ytBasicContentViewModelParagraphText"},_.R(_.dK,{text:g}))}}))}}))}))},"Te");
$oU=_.O(function(h){var E=h.paragraph;return _.R(_.zt,null,_.R(_.P,{cond:function(){return E().headline},
then:function(g){return _.R(_.dK,{text:g,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.R(_.Sv,{data:function(){return E().header||E().customHeader}},{sectionHeaderViewModel:function(g){return _.R(_.KY,{data:g.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ue");var nrG=_.O(function(h){var E=_.hf("yt-expandable-metadata-header-view-model"),g=_.J7(function(Z){if(!_.$x(_.H3(Z),E.value,["A".toString(),"BUTTON".toString()])){var M;(M=h.expandedCallback)==null||M.call(h,!1)}});
return _.R("yt-expandable-metadata-header-view-model",{el:E,class:"ytExpandableMetadataHeaderViewModelHost"},_.R(_.P,{cond:function(){return h.expanded()},
then:function(){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":g},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.R(_.P,{cond:function(){return h.data().expandedTitleImage},
then:function(Z){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.R(_.pO,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:Z}))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.R("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.R(_.dK,{text:function(){return h.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.R(_.dK,{text:function(){return h.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.R(_.dK,{text:function(){return h.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.Sv,{data:function(){return h.data().infoButton}},{buttonViewModel:_.$l}),_.R(_.Sv,{data:function(){return h.data().collapseButton}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
onClick:function(){var M;(M=h.expandedCallback)==null||M.call(h,!1)}})}})))},
else:function(){return _.R(OMG,Object.assign({},h))}}))},"Ve"),XiC=_.O(function(h){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.R(_.P,{cond:function(){return h.data().collapsedLabelImage},
then:function(E){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.R(_.pO,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E,alt:""}))}}),_.R(_.dK,{text:function(){return h.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"We"),OMG=_.O(function(h){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.J7(function(){var E;return void((E=h.expandedCallback)==null?void 0:E.call(h,!0))})},_.R("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.R(_.P,{cond:function(){return h.data().collapsedImage},
then:function(E){return _.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.R(_.pO,{height:20,preserveHeight:!0,preserveWidth:!0,data:E,alt:""}))}}),_.R(_.P,{cond:function(){return h.data().showLeadingCollapsedLabel},
then:function(){return _.R(XiC,Object.assign({},h))}}),_.R("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.R(_.dK,{text:function(){return h.data().collapsedTitle}}))),_.R("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.R(_.P,{cond:function(){return!h.data().showLeadingCollapsedLabel},
then:function(){return _.R(XiC,Object.assign({},h))}}),_.R(_.Sv,{data:function(){return h.data().infoButton}},{buttonViewModel:_.$l}),_.R(_.Sv,{data:function(){return h.data().expandButton}},{buttonViewModel:function(E){return _.R(_.$l,{data:E.data,
onClick:function(){var g;(g=h.expandedCallback)==null||g.call(h,!0)}})}})))},"Xe");_.YGU=_.O(function(h){var E=_.G(_.qi(function(){return h.data().initiallyExpanded})),g=E.next().value,Z=E.next().value,M,W=(M=_.GF().resolve(_.pl(_.gu)))==null?void 0:M(),z=function(){var c=h.data().colorData;
if(c)return W?c==null?void 0:c.darkColorPalette:c==null?void 0:c.lightColorPalette};
return _.R("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.fO({"background-color":function(){var c=z();return(c==null?0:c.section2Color)?_.uU(c.section2Color):""}})},_.R(_.Sv,{data:function(){return h.data().header}},{expandableMetadataHeaderViewModel:function(c){return _.R(nrG,{data:c.data,
expanded:function(){return!!g()},
expandedCallback:function(I){Z(I)}})}}),_.R(_.P,{cond:function(){return g()},
then:function(){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.R(_.Sv,{data:function(){return h.data().expandedContent}},{horizontalShelfViewModel:function(c){return _.R(_.cE,{data:c.data,
includeMargin:!0,forceNarrowLayout:!0,palette:z})},
videoSummaryContentViewModel:function(c){return _.R(rdB,{data:c.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(c){return _.R(_.H0,{data:c.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(c){return _.R(_.K2x,{data:c.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.R(_.Sv,{data:function(){return h.data().expandedBottomButtons}},{buttonViewModel:function(c){return _.R("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.R(_.$l,{data:c.data}))}}))}}))},"Ye");var sKC=_.O(function(h){var E=h.text;var g=h.marqueeSpacing;var Z=h.scrollDelay;var M=h.scrollDuration;var W=h.enableMarqueeScroll;h=h.large;var z=_.G(_.Bm(!1,void 0,"WyNYFf")),c=z.next().value,I=z.next().value,B=_.G(_.Bm(0,void 0,"OoTdhe"));z=B.next().value;var U=B.next().value,L=_.hf("marquee-scroll");B=_.hf("div");var d=_.hf("span"),C=_.GF().resolve(_.Mi);_.lX(function(){if(W()){var r=d.value.getBoundingClientRect().width,v=L.value.getBoundingClientRect().width;if(r>v){var H=(C==="ltr"?-1:1)*(r+
(g?g():16));Promise.resolve().then(function(){I(!0);U(H)})}}},"dv0Anf");
var q={},w={};return _.R("marquee-scroll",{class:_.CO("ytMarqueeScrollHost",(q.ytMarqueeScrollHostLarge=h,q)),el:L},_.R("div",{id:"marquee-scroll-inner-container",class:_.CO("ytMarqueeScrollInnerContainer",(w.ytMarqueeScrollAnimationEnabled=function(){return c()},w)),
el:B,style:_.fO({gap:g?(0,_.WE)(g):"16px","animation-duration":M?DXM(M):"16s","animation-delay":Z?DXM(Z):"3s","--marquee-translate":(0,_.WE)(z)})},_.R("span",{el:d,dir:"auto"},_.R(_.dK,{text:E,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.R(_.P,{cond:c,then:function(){return _.R("span",{"aria-hidden":"true",dir:"auto"},_.R(_.dK,{text:E,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Ze");_.VLC=_.O(function(h){var E=h.data;var g=h.overlayDensity;h=_.J7(function(){E().onTapCommand&&_.Tl(E().onTapCommand);return!1});
var Z=_.acW(),M=function(){return(g==null?void 0:g())===1?22:16},W={};
return _.R("reel-sound-metadata-view-model",{class:_.CO("ytReelSoundMetadataViewModelHost",(W.ytReelSoundMetadataViewModelHostLarge=function(){return(g==null?void 0:g())===1},W)),
"on:click":h,tabindex:0,role:"button","on:keydown":Z},_.R("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.R(_.P,{cond:function(){return E().musicIcon},
then:function(z){return _.R(_.pO,{data:z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:M})}}),_.R("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.R(sKC,{text:function(){return E().soundMetadata},
enableMarqueeScroll:function(){return!!E().enableMarqueeScroll},
large:function(){return(g==null?void 0:g())===1}}))))},"$e");var kNG,yLR,u8,bMI,QKJ,TUx,gE0,EEc;kNG=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];yLR=_.cx("wil_icon_max_concurrent_fetches",Infinity);
u8=function(h,E,g){var Z=this;this.iconSet=h;this.appDirection=E;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.MN.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.J("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.J("wil_icon_network_first");this.renderWhenIdle=_.J("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.J("wil_icon_load_immediately");this.isPurging=!1;h=function(){Z.cacheStorageAvailable&&(Z.cacheStorageAsync=_.MN.caches.open("yt-icons").then(function(W){return Z.cacheStorageSync=W}).catch(function(){Z.cacheStorageAvailable=!1}))};
g=(g==null?void 0:g())||{};g=_.G(Object.entries(g));for(E=g.next();!E.done;E=g.next()){var M=_.G(E.value);E=M.next().value;M=M.next().value;M=Jx(M);F2c(M);this.iconCache[E]=M.cloneNode(!0)}this.isPurging=ALG(this);this.isPurging instanceof Promise?this.isPurging.then(h):h()};
_.Upa=function(h,E){var g=h.resolveIcon(E);return g?h.renderingMode===1?TUx(h,g,h.renderingMode):(E=h.iconCache[g.url])?(E=E.cloneNode(!0),bMI(h,E),TUx(h,g,h.renderingMode,E)):_.ujJ(h,g).then(function(Z){var M=Z?0:1;bMI(h,Z);return TUx(h,g,M,Z)}):(_.KI(new _.xX("Icon not found",{iconShape:E})),function(){})};
bMI=function(h,E){if(E){h.counter+=1;h="_yt"+h.counter;E=[E].concat(_.$E(E.getElementsByTagName("*")));E=_.G(E);for(var g=E.next();!g.done;g=E.next())if(g=g.value,g.tagName==="style"&&g.textContent)g.textContent=QKJ(g.textContent,h,!0);else for(var Z=_.G(g.attributes),M=Z.next();!M.done;M=Z.next()){M=M.value;M.name==="id"&&(M.value+=h);["mask","fill","clip-path"].includes(M.name)&&(M.value=QKJ(M.value,h));if(M.name==="style"){var W=g.style;try{W.cssText=QKJ(W.cssText,h,!0)}catch(U){var z=void 0,c=
void 0,I=void 0,B=void 0;Qg({error:((z=U)==null?void 0:(I=(c=z).toString)==null?void 0:I.call(c))||"",el:g.outerHTML,style:!!W,cssText:(B=W)==null?void 0:B.cssText})}}M.name==="xlink:href"&&(M.value=M.value.replace(/#(.*)/,"#$1"+h))}}};
QKJ=function(h,E,g){var Z=/url\(["']?#(.*?)["']?\)/;(g===void 0?0:g)&&(Z=/url\(["']?#(.*?)["']?\)/g);return h.replace(Z,"url(#$1"+E+")")};
TUx=function(h,E,g,Z){return function(M,W){var z=Object.assign({},{iconColor:"currentcolor",iconWidth:E.size+"px",iconHeight:E.size+"px",iconDisplay:"block"},W);W=_.q3("DIV");var c=z.iconColor,I=z.iconFilter;z="width: "+z.iconWidth+"; height: "+z.iconHeight+"; display: "+z.iconDisplay+";";I&&(z+=" filter: "+I+";");g===0&&(z+=" fill: "+c+";");g===1&&(I=E.url,z+=" -webkit-mask: url("+I+") no-repeat center / cover; mask: url("+(I+") no-repeat center / cover; background-color: ")+c);E.allowMirroring&&
h.appDirection==="rtl"&&(z+=" transform: scale(-1, 1); transform-origin: center center;");W.setAttribute("style",z);g===0&&Z&&W.appendChild(Z);M.appendChild(W)}};
_.ujJ=function(h,E){var g,Z,M;return _.a(function(W){g=function(z){return AL(z)};
Z=E.url;if(!hLc(Z))throw Error("tj");M=EEc(h,Z);return W.return(M.then(function(z){return z.clone().text()}).then(function(z){var c=g(z);
z=E.size;var I=_.q3("DIV");_.GH(I,c);c=_.f8(I.firstElementChild!==void 0?I.firstElementChild:_.LiF(I.firstChild,!0));z=F2c(c,z);h.iconCache[Z]=z.cloneNode(!0);delete h.responsePromises[Z];return z}).catch(function(){}))})};
gE0=function(h){var E,g=(E=h.requestAninmationFrameResolver)==null?void 0:E.promise;g||(h.requestAninmationFrameResolver=new _.dN,g=h.requestAninmationFrameResolver.promise,_.MN.requestAnimationFrame(function(){var Z;(Z=h.requestAninmationFrameResolver)==null||Z.resolve();h.requestAninmationFrameResolver=null}));
return g};
EEc=function(h,E){var g,Z;return _.a(function(M){if(M.nextAddress==1)return h.waitForAnimationFrame?M.yield(gE0(h),2):M.jumpTo(2);g=h.responsePromises[E];g||(Z=function(){var W,z,c;return _.a(function(I){switch(I.nextAddress){case 1:if(!h.cacheStorageAvailable){W=void 0;I.jumpTo(2);break}if(z=h.cacheStorageSync){I.jumpTo(3);break}return I.yield(h.cacheStorageAsync,4);case 4:z=I.yieldResult;case 3:W=z;case 2:return c=W,h.isNetworkFirstStrategy?I.return(h.fetchAndUpdateCache(E,c).catch(h.getCacheStorageResponse.bind(h,
E,c))):I.return(h.getCacheStorageResponse(E,c).catch(h.fetchAndUpdateCache.bind(h,E,c)))}})},g=h.renderWhenIdle?new Promise(function(W,z){_.xW(_.KP,function(){Z().then(W).catch(z)},10)}):Z(),h.responsePromises[E]=g);
return M.return(g.catch(function(W){delete h.responsePromises[E];Qg({error:(W==null?0:W.toString)?W.toString():"",url:E});throw W;}))})};
u8.prototype.fetchAndUpdateCache=function(h,E){var g=this;return _.a(function(Z){return Z.return(ZXX(g,h).then(function(M){MKG(g,h,M,E);return M}))})};
var ZXX=function(h,E){var g;return _.a(function(Z){if(h.numFetches<yLR)return h.numFetches+=1,Z.return(Wn0(h,E).finally(function(){--h.numFetches;if(Object.keys(h.queuedResponseResolvers).length){var M=Object.keys(h.queuedResponseResolvers)[0],W=h.queuedResponseResolvers[M];delete h.queuedResponseResolvers[M];W.resolve(ZXX(h,M))}}));
g=new _.dN;h.queuedResponseResolvers[E]=g;return Z.return(g.promise)})},Wn0=function(h,E,g){g=g===void 0?2:g;
var Z;return _.a(function(M){Z={credentials:"same-origin",priority:"low"};return M.return(_.MN.fetch(E,Z).then(function(W){return W.ok?W:Promise.reject(Error("uj`"+W.status+"`"+W.statusText))}).catch(function(W){if(g>0)return Wn0(h,E,g-1);
throw W;}))})},MKG=function(h,E,g,Z){_.a(function(M){return Z?M.return(new Promise(function(W){_.xW(_.KP,function(){var z,c;
return _.a(function(I){switch(I.nextAddress){case 1:if(!h.isNetworkFirstStrategy){z=void 0;I.jumpTo(2);break}return I.yield(Z.match(E).catch(function(){}),3);
case 3:z=I.yieldResult;case 2:if(c=z){I.jumpTo(4);break}return I.yield(Z.put(E,g.clone()).catch(function(B){Qg({error:(B==null?0:B.toString)?B.toString():"",url:E})}),4);
case 4:W(),_.SK(I)}})},50)})):M.return()})};
u8.prototype.getCacheStorageResponse=function(h,E){return _.a(function(g){return E?g.return(E.match(h).then(function(Z){return Z&&Z.ok?Z:Promise.reject()})):g.return(Promise.reject())})};
var F2c=function(h,E){E===void 0||h.getAttribute("viewBox")||h.setAttribute("viewBox","0 0 "+E+" "+E);h.setAttribute("focusable","false");h.setAttribute("aria-hidden","true");try{h.style.pointerEvents="none",h.style.display="inherit",h.style.width="100%",h.style.height="100%"}catch(M){var g;Qg({error:((g=M)==null?0:g.toString)?M.toString():""});try{h.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(W){var Z;Qg({error:((Z=W)==null?0:Z.toString)?W.toString():
""})}}return h},hLc=function(h){for(var E=_.G(kNG),g=E.next();!g.done;g=E.next())if(h.startsWith(g.value)&&h.endsWith(".svg"))return!0;
return!1};
u8.prototype.resolveIcon=function(h){return this.iconSet.resolveIcon(h)};
var Qg=function(h){_.O$(new _.xX("Error in IconManager",h))},ALG=function(h){if(_.J("wil_icons_cache_purge_killswitch"))return!1;
try{var E=_.MN.localStorage}catch(W){return!1}if(!E||!h.cacheStorageAvailable)return!1;var g=function(W){try{var z;(z=E)==null||z.setItem("yt-icons-last-purged",W.toString())}catch(I){var c;Qg({error:((c=I)==null?0:c.toString)?I.toString():""})}},Z=Number(E.getItem("yt-icons-last-purged"));
if(!Z)return Z=new Date,Z=Z.setDate(Z.getDate()-Math.floor(Math.random()*90+1)),g(Z),!1;if(function(W,z){W=new Date(W);z=new Date(z);return z.getMonth()-W.getMonth()+12*(z.getFullYear()-W.getFullYear())}(Z,Date.now())<3)return!1;
try{return _.MN.caches.delete("yt-icons").then(function(W){W&&g(Date.now());return W}).catch(function(){return!1}).finally(function(){h.isPurging=!1})}catch(W){var M;
Qg({error:((M=W)==null?0:M.toString)?W.toString():""});return!1}};
u8[R2]=[QWC,_.Mi,_.pl(gMJ)];_.hi=function(h,E){this.iconManager=h;this.iconsToFetch=E};
_.hi[R2]=[_.JW,_.pl(EMC)];var pAU=function(){};var GHU=function(h,E,g){this.requestKey=h;this.awh=E;this.huN=g;this.i1u=function(){return new XMLHttpRequest};
this.fTk=void 0;this.lde=[]};
GHU.prototype.getLatestChallengeResponse=function(){return this.huN};
var C4D=function(h,E,g){var Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){_.Ye("attestation_challenge_fetch");_.s7("att_fs",void 0,"attestation_challenge_fetch");if(!h.fTk)throw new _.nA(9,"Missing fetcher");return c.yield(h.fTk(E,g),2)}Z=c.yieldResult;W=(M=Z)==null?void 0:M.bgChallenge;if(!W)throw new _.nA(15,"Missing field");h.huN=Z;h.lde.forEach(function(I){I(Z)});
z=MHa(W);_.s7("att_fc",void 0,"attestation_challenge_fetch");XF("attestation_challenge_fetch");return c.return(z)})},sDn=function(h,E){var g,Z,M,W,z;
return _.a(function(c){switch(c.nextAddress){case 1:g=new Bh(100,3E5,.25,2),Z=void 0;case 2:if(!(g.currBackoffCount_<10)){c.jumpTo(4);break}_.CX(c,5);if(!(g.currBackoffCount_>0)){c.jumpTo(7);break}return c.yield(Iru(g.getValue()),7);case 7:return c.yield(zLc(h,E),9);case 9:return M=c.yieldResult,c.return(M);case 5:W=_.th(c);W instanceof _.nA?Z=W:(z=W instanceof Error?W.message:"Unknown",Z=new _.nA(9,z));Dcl(g);c.jumpTo(2);break;case 4:if(Z)throw Z;throw new _.nA(9,"Unknown error");}})},zLc=function(h,
E){E=cAF(i8F(new aJD,E),h.requestKey);
var g=new _.dN,Z=h.i1u();Z.open("POST",h.awh);Z.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");Z.setRequestHeader("Content-Type","application/json+protobuf");Z.onload=function(){if(_.Vjd(Z)){var M=jpn(Z.responseText);g.resolve(M)}else g.reject(new _.nA(_.TXV(_.Px(Z)),Z.statusText))};
Z.onerror=function(){g.reject(new _.nA(_.TXV(_.Px(Z)),Z.statusText))};
Z.send(E.serialize());return g.promise};var chC=function(h){this.networkStatusManager=h;this.isDownloaded=anN===void 0?function(){return!1}:anN;
this.isReady=!1;this.luZ=aTU(this)},aTU=function(h){var E;
return _.a(function(g){if(g.nextAddress==1)return g.yield(xaM(),2);if(g.nextAddress!=3)return E=g.yieldResult,g.yield(mom(E),3);h.xT=g.yieldResult;PZz(h.xT).then(function(){h.isReady=!0});
return g.return(h.xT)})},iXi=function(h,E,g){h.xT?(h=h.xT.oCC({bS:g,
fj2:!0,sH2:!0}),E.serviceIntegrityDimensions={poToken:h}):_.$W(Error("wj"))};
chC.prototype.processContext=function(h){var E=this;if(!h.input.match(_.zv(pPk)))return _.LC();var g=h.innerTubeRequest,Z=g.videoId;return!Z||this.isDownloaded(g)||this.networkStatusManager&&!this.xT&&!this.networkStatusManager.isNetworkAvailable()?_.LC():this.xT?this.isReady?(iXi(this,g,Z),_.LC()):new UU(PZz(this.xT).then(function(){iXi(E,g,Z)})):new UU(this.luZ.then(function(M){return _.a(function(W){if(W.nextAddress==1)return W.yield(PZz(M),2);
iXi(E,g,Z);_.SK(W)})}))};var oEC=new _.Ps("WEB_PO_CONTEXT_PROCESSOR");var ITU=function(h,E){var g=this;this.nyN=0;var Z;this.yj8=(Z=E==null?void 0:E.yj8)!=null?Z:window;this.networkStatusManagerPromise=E==null?void 0:E.networkStatusManagerPromise;var M;this.requestKey=(M=E==null?void 0:E.requestKey)!=null?M:_.iN("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var W;this.c2E=(W=E==null?void 0:E.c2E)!=null?W:function(I){return new FY(I)};
var z;Z=(z=E==null?void 0:E.qqN)!=null?z:function(I,B,U){return new GHU(I,B,U)};
this.bgChallenge=MHa(h.bgChallenge);this.ttlSeconds=W3a(Ae(h.challenge||""));this.xF=Z(this.requestKey,_.J("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.MN.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",h);this.y2e=E==null?void 0:E.y2e;RK4(this.xF);var c;this.tfU=(c=E==null?void 0:E.tfU)!=null?c:function(I){_.vK(g.yj8.document,"visibilitychange",
function(){g.yj8.document.visibilityState==="visible"&&I()})}},PrC=function(h){if(!h.vm){var E={maxAttempts:5,
gsh:h.ttlSeconds*1E3};Bi$(h.yj8);h.vm=h.c2E({xF:h.xF,vCS:{disable:_.J("html5_web_po_disable_remote_logging"),n3:"aGIf",lFr:OZx("html5_web_po_experiment_ids"),zWE:_.J("wpo_dis_lfdms")?0:1E3,fZt:function(Z){var M=GxD.get(Z);M||(M=new peF(Z),M=new C8(M),GxD.set(Z,M));return M}},
akX:E,swU:h.bgChallenge,u7d:UWz});h.nyN=Date.now();BOB(h.vm,function(){h.nyN=Date.now()});
rx$(h.vm,function(){return _.a(function(Z){return Z.return(RLU(h))})});
var g=h.u8e.bind(h);h.networkStatusManagerPromise&&h.ttlSeconds>0&&h.networkStatusManagerPromise.then(function(Z){Z.listen("publicytnetworkstatus-online",g)});
h.tfU(g)}};
ITU.prototype.u8e=function(){if(Date.now()>this.nyN+this.ttlSeconds*1E3){var h;(h=this.vm)==null||P4H(h)}};
var RLU=function(h){if(h.tLk)return h.tLk;if(!h.vm)throw Error("xj");h.tLk=new u0({vm:h.vm,xF:h.xF,vXB:!0,onError:UWz,akX:h.y2e});return h.tLk},jr$=function(h,E){h=new ITU(h,E);
PrC(h);RLU(h)};var Bxx=_.ha0.ephemeralActionSelector,EI=function(h,E){this.store=h;this.queue=[];E==null||E.addEventListener("yt-navigate-start",this.reset.bind(this))};
EI.prototype.enqueue=function(h){var E=h.command,g=h.durationMs,Z=h.elementToFocus;var M=h.label;var W=h.elementToFocus;h.command?M=_.NH("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:M,shortcut:_.NH("SHIFT_PLUS_ENTER")}):W&&(h=M+". "+_.NH("SHIFT_PLUS_ENTER")+" for more information.",M=_.NH("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:M,shortcut:_.NH("SHIFT_PLUS_ENTER")},h));g={announcement:M,durationMs:g!=null?g:8E3};E?g.command=E:Z&&(Z.classList.add("ephemeral-action-focusable-element"),g.selector=Z.tagName+
".ephemeral-action-focusable-element");this.queue.push(g);UcC(this)};
EI.prototype.activate=function(h){var E=Bxx(this.store.getState());if(E){if(E==null?0:E.command)_.y1(E.command),this.store.dispatch(g_C(null));if(E==null?0:E.selector)E=document.querySelector(E.selector),_.DdZ(E);h.preventDefault()}};
var UcC=function(h){if(!Bxx(h.store.getState())&&h.queue.length){var E=h.queue.shift();E&&(h.previousAnnouncement===E.announcement&&(E.announcement+="\u00a0"),h.store.dispatch(g_C(E)),h.previousAnnouncement=E.announcement,h.timeoutId=setTimeout(function(){if(E.selector){var g;(g=document.querySelector(E.selector))==null||g.classList.remove("ephemeral-action-focusable-element")}h.store.dispatch(g_C(null));UcC(h)},E.durationMs))}};
EI.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(g_C(null));this.queue.length=0;this.timeoutId=void 0};
EI[R2]=[_.c4,_.pl(_.TV)];_.gm=new _.Ps("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var LnZ=window.AbortController||tpu;var jHC=new _.Ps("AUTH_SERVICE_TOKEN");var J5u=_.uz(["about:blank"]),CZz;var dcU=new _.Ps("API_IFRAME_TOKEN"),Crp=new _.Ps("FETCH_FN_TOKEN"),JhI=new _.Ps("PARSE_FN_TOKEN"),eLX=new _.Ps("WINDOW_REQUEST_TOKEN"),qZU=new _.Ps("TEXT_DECODER_TOKEN");var JVD;JVD=new _.Ps("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.fTU=new _.Ps("MISC_UI_SHARED_FLAGS_TOKEN");var NxJ=function(){};
NxJ.prototype.getFlag=function(h){if(h.configType!==2)throw Error("yj");return tKC(h)};
var tKC=function(h){switch(h.flagType){case "bool":return _.J(h.flagName);case "int":return _.vM(_.cx(h.flagName));case "double":return _.cx(h.flagName);case "string":return _.iN(h.flagName);case "int32_list":return OZx(h.flagName);case "int64_list":return OZx(h.flagName).map(function(E){return _.vM(E)});
case "string_list":return _.oC(h.flagName);default:throw Error("zj");}};var Zm=function(h,E,g){E=E===void 0?{}:E;AB.call(this,g===void 0?"uninitialized":g);this.env=h;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}];E.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=E.shouldWaitOnAsyncImmediate)};
_.f(Zm,AB);Zm.prototype.init=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(h(E.env),2):(h(E.env),Z.jumpTo(2));if(Z.nextAddress!=4)return E.jobSet?Z.yield(E.jobSet.completedResolver.promise,4):Z.jumpTo(4);g=_.RS();g.parkOrScheduleJob(function(){E.transition("rendering")},10,"ci");
_.SK(Z)})};
Zm.prototype.initialRender=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(h(E.env),2):(h(E.env),Z.jumpTo(2));if(Z.nextAddress!=4)return E.jobSet?Z.yield(E.jobSet.completedResolver.promise,4):Z.jumpTo(4);g=_.RS();g.parkOrScheduleJob(function(){E.transition("rendered")},10,"cr");
_.SK(Z)})};
Zm.prototype.afterRenderImmediate=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?Z.yield(h(E.env),2):(h(E.env),Z.jumpTo(2));if(Z.nextAddress!=4)return E.jobSet?Z.yield(E.jobSet.completedResolver.promise,4):Z.jumpTo(4);g=_.RS();g.parkOrScheduleJob(function(){E.transition("after-render-deferred")},10,"carml");
_.SK(Z)})};
Zm.prototype.afterRenderDeferred=function(h){var E=this;return _.a(function(g){h(E.env);_.SK(g)})};var SZ0;_.OW("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});SZ0={};_.xcp=(SZ0.CSI=SCq(),SZ0.ECATCHER=t7Z(),SZ0);var wAZ={},DcR=(wAZ.rendered={priority:0,callback:function(h){gNB(h.injector.resolve(wQ))}},wAZ);var Leq=new _.Ps("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),lTG=new _.Ps("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var rhC=function(h){this.callbackFnMap=h;this.configMap={}};
rhC.prototype.handleResponse=function(h){var E;if(h=(E=h.responseContext)==null?void 0:E.serviceTrackingParams)for(E=_.G(h),h=E.next();!h.done;h=E.next()){h=h.value;var g=h.params,Z=h.service;if(g&&Z){this.configMap[Z]||(this.configMap[Z]=new m1F);h=this.configMap[Z];var M=void 0,W=(M=this.callbackFnMap)==null?void 0:M[Z];g=_.G(g);for(Z=g.next();!Z.done;Z=g.next())M=Z.value,Z=M.key,M=M.value,Z&&M&&(h.set(Z,M),W&&W(Z,M))}}};
rhC[R2]=[_.pl(lTG)];var mcI=!1,r5O=0,xWN=null,lr$=null;var vEX=new _.Ps("NETWORK_SLI_TOKEN");var HXU=function(h,E,g,Z,M){this.networkSli=h;this.fetchFn=E;this.parseFn=g;this.requestFn=Z;this.JSC$18515_textDecoder=M};
HXU.prototype.fetch=function(h,E,g){var Z=this,M,W,z;return _.a(function(c){M=$cJ(Z,h,E);z=(W=Z.fetchFn)!=null?W:fetch;return c.return(z(M).then(function(I){return Z.handleResponse(I,g)}).catch(function(I){_.O$(I);
if((g==null?0:g.expectJsonStrict)&&I instanceof yH&&I.errorType===1)return Promise.reject(I)}))})};
var GLD=function(h,E,g,Z){var M,W,z,c,I,B,U;return _.a(function(L){switch(L.nextAddress){case 1:return M=$cJ(h,E,g),_.CX(L,2),L.yield(fetch(M),4);case 4:W=L.yieldResult;_.bN(L,3);break;case 2:throw _.th(L),new yH(2,"Failed to parse streaming response",M.url);case 3:if(!W.redirected&&!W.ok)throw(z=h.networkSli)==null||z.failure(),new _.xX("Streaming fetch request not ok",M.url);if(!W.body)throw new _.xX("No response body in streaming response",M.url);c={};if(_.J("web_streaming_fast"))return I=W.body.getReader(),
L.return(KnU(h,I,c,Z));B=W.body.pipeThrough(new TextDecoderStream).getReader();U=new _.ez;return L.return(OXU(h,B,U,XVz,c,Z))}})},$cJ=function(h,E,g){if(h.networkSli){var Z=_.jy(_.aa(E,"key"))||"/UNKNOWN_PATH";
h.networkSli.start(Z)}Z=g;_.J("wug_networking_gzip_request")&&(Z=uTM(g));var M;return new ((M=h.requestFn)!=null?M:window.Request)(E,Z)},KnU=function(h,E,g,Z){var M,W,z,c,I,B,U,L,d,C,q,w,r;
return _.a(function(v){switch(v.nextAddress){case 1:M=h.JSC$18515_textDecoder?new h.JSC$18515_textDecoder("utf-8"):new TextDecoder("utf-8"),W=new Uint8Array(0),z=function(H){H=H.trim();H.length!==0&&H!=="]"&&H!=="["?(H.startsWith("[")&&(H=H.substring(1)),H.endsWith("]")&&(H=H.slice(0,-1)),H.endsWith(",")&&(H=H.slice(0,-1)),H=H.trim()):H=void 0;if(H)try{var u=JSON.parse(H);XVz(g,u);Z==null||Z(g,u)}catch(k){throw new yH(1,"Failed to parse streaming response",H);}},_.CX(v,2,3);
case 5:return v.yield(E.read(),8);case 8:c=v.yieldResult;I=c.value;if(B=c.done)return W.length>0&&(U=M.decode(W),z(U)),L=void 0,(L=h.networkSli)==null||L.success(),v.return(g);d=new Uint8Array(W.length+I.length);d.set(W);d.set(I,W.length);W=d;for(C=void 0;(C=W.indexOf(10))!==-1;)q=W.subarray(0,C),q.length>0&&(w=M.decode(q),z(w)),W=W.subarray(C+1);v.jumpTo(5);break;case 3:_.eK(v);E.releaseLock();_.fX(v,0);break;case 2:r=_.th(v);if(r instanceof yH)throw r;throw new yH(1,"Failed to parse streaming response");
}})},OXU=function(h,E,g,Z,M,W){var z,c,I,B,U,L,d,C,q;
return _.a(function(w){if(w.nextAddress==1)return w.yield(E.read(),2);z=w.yieldResult;c=z.value;if(I=z.done)return(B=h.networkSli)==null||B.success(),w.return(M);try{U=g.parse(c)}catch(r){throw new yH(1,"Failed to parse streaming response",c);}if(U!=null)for(L=_.G(U),d=L.next();!d.done;d=L.next())C=d.value,Z(M,C),q=void 0,(q=W)==null||q(M,C);return w.return(OXU(h,E,g,Z,M,W))})};
HXU.prototype.handleResponse=function(h,E){var g,Z=(g=this.parseFn)!=null?g:JSON.parse;g=h.text().then(function(M){if((E==null?0:E.jspbResponseCtor)&&h.ok)return K2q(E.jspbResponseCtor,M);M=M.replace(")]}'","");if((E==null?0:E.expectJsonStrict)&&M)try{var W=Z(M)}catch(c){throw new yH(1,"JSON parsing failed after fetch");}var z;return(z=W)!=null?z:Z(M)});
h.redirected||h.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),g=g.then(function(M){_.O$(new _.xX("Error: API fetch failed",h.status,h.url,M));return Object.assign({},M,{errorMetadata:{status:h.status}})}));
return g};
HXU[R2]=[_.pl(vEX),_.pl(Crp),_.pl(JhI),_.pl(eLX),_.pl(qZU)];var nE0=new _.Ps("NETWORK_MANAGER_TOKEN");var XAC=[1,2,4,8,16,30],sHX=function(h){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=h.maxTimeMs;this.maxFrameCount=h.maxFrameCount===void 0?Math.ceil(60*h.maxTimeMs/1E3):h.maxFrameCount;h=_.G(XAC);for(var E=h.next();!E.done;E=h.next())this.brokenFrameSummarizers.push(new YZR(E.value/60*1E3))},VKI=function(h){var E=h.frameCountInternal>=h.maxFrameCount;
return h.elapsedTimeMs>=h.maxTimeMs||E};
sHX.prototype.summarize=function(){for(var h=[],E=_.G(this.brokenFrameSummarizers),g=E.next();!g.done;g=E.next())g=g.value,g=g.brokenFrameCount!==0?{severityMs:Math.round(g.targetFrameTimeMs),eventCount:g.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(g.averageDurationBetweenEventsMs)}:void 0,g&&h.push(g);return{summaries:h,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.ze.Object.defineProperties(sHX.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 YZR=function(h){this.targetFrameTimeMs=h;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ze.Object.defineProperties(YZR.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var kHI=function(){};
kHI.prototype.start=function(h,E){var g=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var Z=new sHX({maxTimeMs:h});this.monitor=Z;this.lastSummaryInternal=void 0;this.metadataToLog=E;return new Promise(function(M){var W=function(z){if(z===void 0)g.stop(),M(void 0);else if(g.monitor!==Z)z=Object.assign({},Z.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),M(z);else{var c=g.monitor;if(!VKI(c)){c.frameCountInternal++;if(c.prevTime===
void 0)c.startTime=z;else for(var I=z-c.prevTime,B=_.G(c.brokenFrameSummarizers),U=B.next();!U.done;U=B.next()){U=U.value;var L=U.currTimeMs;U.currTimeMs+=I;I>U.targetFrameTimeMs+2&&(U.brokenFrameCount++,U.timeOfFirstBrokenFrameMs===void 0&&(U.timeOfFirstBrokenFrameMs=L),U.timeOfLastBrokenFrameMs=L)}c.prevTime=z}VKI(g.monitor)?M(g.stop()):_.KP.addJob(W,5,0)}};
_.KP.addJob(W,5,0)})};
kHI.prototype.stop=function(h){if(!this.monitor)return this.lastSummaryInternal;var E=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(E.monitoringDurationMs){h=h!=null?h:this.metadataToLog;var g={droppedFramesSummary:E,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};h&&(g[h.type]=h.data);_.vT("manualSmoothnessMeasurement",g)}this.monitor=void 0;this.lastSummaryInternal=E;this.metadataToLog=void 0;return E};_.yhC=new _.Ps("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Fnc;Fnc=function(h){this.JSC$18537_expiringStorage=new DV(h)};
_.AhG=function(h){if(_.mWx()&&(h=_.SoZ(_.tl()+"::"+h)))return new Fnc(h)};
Fnc.prototype.set=function(h,E,g){g=g!==void 0?Date.now()+g:void 0;this.JSC$18537_expiringStorage.set(h,E,g)};
Fnc.prototype.get=function(h){return this.JSC$18537_expiringStorage.get(h)};
Fnc.prototype.remove=function(h){this.JSC$18537_expiringStorage.remove(h)};var TxU=new _.Ps("SESSION_STORAGE");_.MD=function(){};
_.MD.getInstance=function(){var h=_.yy("ytglobal.storage_");h||(h=new _.MD,_.Wu("ytglobal.storage_",h));return h};
_.MD.prototype.estimate=function(){var h,E,g;return _.a(function(Z){h=navigator;return((E=h.storage)==null?0:E.estimate)?Z.return(h.storage.estimate()):((g=h.webkitTemporaryStorage)==null?0:g.queryUsageAndQuota)?Z.return(vV$()):Z.return()})};
_.Wu("ytglobal.storageClass_",_.MD);var YC4=0;var Ti$=!1;var bXU=_.uz(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),uUZ=_.uz(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var FfG={"/":_.VU,"/?feature=ytca":_.VU,"/feed/downloads":_.Ix$};var QHX=grG.continuationCommandSelector,Uc=function(h,E,g){this.JSC$18553_upliftPromise=h;this.store=E;this.JSC$18553_persistentStorePromiseAccessor=g};
Uc.prototype.shouldPreferLocalResponse=function(h){return h.browseId==="FEdownloads"||h.browseId==="FEsmart_downloads"&&_.J("kevlar_modern_downloads_page")?!0:!1};
Uc.prototype.localInnertubeResponse=function(h){var E=this;return _.a(function(g){return h.browseId==="FEdownloads"?_.J("kevlar_modern_downloads_page")?g.return(hu0(E)):g.return(EpC(E)):h.browseId==="FEsmart_downloads"&&_.J("kevlar_modern_downloads_page")?g.return(gp0(E)):g.return(Promise.reject(Error("Bj")))})};
Uc.prototype.canProvideFallbackResponse=function(){return!0};
Uc.prototype.localFallbackInnertubeResponse=function(h){var E=this,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return W.yield(E.JSC$18553_persistentStorePromiseAccessor(),2);case 2:g=W.yieldResult;if(h.browseId!=="SPaccount_downloads"||!g){W.jumpTo(3);break}return W.yield(zxZ(g),4);case 4:if(Z=W.yieldResult)return W.return(_.Ww(Z));case 3:return h.browseId==="FEwhat_to_watch"?W.return(Ztc(E)):(M=_.J("web_offline_continuation_automatic_retry")||_.J("web_offline_continuation_retry_button"))&&
h.continuation?W.return(M80(E)):W.return(W8I(E))}})};
var Ztc=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$18553_upliftPromise,2);E=_.YUx(h.store.getState().entities);return E.length?g.return(pRU(h,E)):g.return(W8I(h))})},EpC=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$18553_upliftPromise,2);if(Z.nextAddress!=3)return E=GRG([{offlineItemSectionRenderer:{}}]),Z.yield(zuJ(h,E),3);g=Z.yieldResult;g.onResponseReceivedActions=[Cu("REFRESH_DOWNLOADS")];return Z.return(g)})},hu0=function(h){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r;
return _.a(function(v){if(v.nextAddress==1)return v.yield(h.JSC$18553_upliftPromise,2);if(v.nextAddress!=3)return E=h.store.getState(),g=E.entities,Z=_.Ke(g),M=_.Oo(g),W=_.dPO(E),z=_.jSa(E),c=_.Ccz(E),I=_.khZ(g),B=_.lV(Z),U=_.ne(g),L=_.TcM(g),d=_.eFq(E),C=_.k8(E),q={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.SO$(Z,M,I,L,W,z,B,U,c,d,C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},w="",_.J("kevlar_modern_downloads_skip_downloads_title")||
(w=_.NH("DOWNLOADS",void 0,"Downloads")),v.yield(abi(h,q,w),3);r=v.yieldResult;r.onResponseReceivedActions=[Cu("REFRESH_DOWNLOADS")];return v.return(r)})},gp0=function(h){var E,g,Z,M,W,z,c,I,B;
return _.a(function(U){if(U.nextAddress==1)return U.yield(h.JSC$18553_upliftPromise,2);if(U.nextAddress!=3)return E=h.store.getState(),g=E.entities,Z=_.Ke(g),M=_.lV(Z),W=_.ne(g),z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.wz$(Z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},c=_.NH("SMART_DOWNLOADS",void 0,"Smart downloads"),I=Nvz(M,W),U.yield(abi(h,z,c,I),3);B=U.yieldResult;B.onResponseReceivedActions=
[Cu("REFRESH_DOWNLOADS")];return U.return(B)})},W8I=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(Mh(h.JSC$18553_upliftPromise,h.store),2);E=Z.yieldResult;g=GRG([M2Z(E)]);return Z.return(zuJ(h,g))})},M80=function(h){var E,g,Z,M;
return _.a(function(W){if(W.nextAddress==1)return E={},g=QHX(h.store.getState()),_.nL(E,_.yQ,g),W.yield(Mh(h.JSC$18553_upliftPromise,h.store,E,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);Z=W.yieldResult;M={};_.nL(M,_.aYl,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:Z}}}],targetId:"browse-feedFEwhat_to_watch"});return W.return({responseContext:{},onResponseReceivedActions:[M]})})},GRG=function(h){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:h}}}}]}}},pRU=function(h,E){var g,Z;
return _.a(function(M){var W={contents:Je(E)};g=W&&W.contents?W:{};_.J("kevlar_modern_downloads_page")&&(g=Object.assign({},_.DLu(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:g}}}]}};return M.return(zuJ(h,Z))})},zuJ=function(h,E){var g,Z;
return _.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$18553_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return g=M.yieldResult,M.yield(p$(g),3);Z=M.yieldResult;return M.return({responseContext:{},contents:E,topbar:Z})})},abi=function(h,E,g,Z){var M,W;
return _.a(function(z){if(z.nextAddress==1)return z.yield(h.JSC$18553_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3)return M=z.yieldResult,z.yield(p$(M),3);W=z.yieldResult;var c=z.return;var I=g;var B=Z;I=I===void 0?"":I;B=B===void 0?"":B;I={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:I}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.NH("SETTINGS",void 0,"Settings"),accessibilityText:_.NH("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:_.aY("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:B}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:I};
return c.call(z,{responseContext:{},contents:E,topbar:W,header:{pageHeaderRenderer:I}})})};var cbc=function(){this.moduleRegistry={};this.fetchCount=0};
cbc.prototype.isFetching=function(){return this.fetchCount>0};
var sc=function(h,E){h.moduleRegistry[E.toString()]={asyncId:E,isFetching:!1};return h};
cbc.prototype.JSC$18564_loadModules=function(){for(var h=this,E=new Map,g=[],Z=_.G(_.VF.apply(0,arguments)),M=Z.next();!M.done;M=Z.next()){M=M.value;var W=this.moduleRegistry[M];W?W.resolver?E.set(M,W.resolver):(W.resolver=new _.dN,E.set(M,W.resolver),g.push(W.asyncId),W.isFetching=!0):(W=new _.dN,E.set(M,W),W.resolve(void 0))}g.length&&(this.fetchCount+=1,_.KA(_.HZ.getMultipleAsync.apply(_.HZ,_.$E(g)).then(function(z){for(var c=0;c<g.length;c++){var I=z[c],B=h.moduleRegistry[g[c].toString()];B.isFetching=
!1;B.resolver.resolve(I)}}).catch(function(z){for(var c=_.G(g),I=c.next();!I.done;I=c.next()){I=I.value;
var B=h.moduleRegistry[I.toString()];B.resolver=void 0;B.isFetching=!1;E.get(I.toString()).reject(z)}}),function(){--h.fetchCount}));
return Promise.all([].concat(_.$E(E.values())).map(function(z){return z.promise}))};_.V8=new _.Ps("MODULE_REGISTRY_TOKEN");var itJ={},opx=(itJ.rendered={priority:0,callback:function(h){a:{var E=void 0;try{var g;b:{if(_.lia()){var Z=_.tDV(_.tl()+"::pom");if(Z){var M=new QH(Z);break b}}M=void 0}var W=(g=M)==null?void 0:g.get("role_text");if(!W)break a;E={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:W}]}}}}}}catch(I){}E&&h.injector.resolve(_.zF).resolveCommand(E)}try{var z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(z){var c=JSON.parse(z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
c&&h.injector.resolve(_.zF).resolveCommand(c)}}catch(I){}}},itJ);var IbU,RuU={},PnR=(RuU.initialized={priority:10,callback:function(){IbU=tN()}},RuU.rendering={callback:function(h){var E;
return _.a(function(g){if(g.nextAddress==1)return g.yield(IbU,2);E=g.yieldResult;if(!E.endpoint)throw Error("Dj`"+_.MN.location.href);Dt(h,E);_.SK(g)})}},RuU);var B2G={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(_.$E(_.J("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(h){var E=h.stack;if(E.includes("chrome://")||E.includes("chrome-extension://")||h.message.includes("chrome-extension://")||E.includes("moz-extension://")||E.includes("local.adguard.org")||E.includes("auctioneer3.50million.club")||E.includes("youtubedownloader")||E.includes("youtube_home_page")||E.includes("is_youtube_video_no_longer_available")||
E.includes("switchScreenSizeHack")||E.includes("yt_main_big_banner.js")||E.includes("YouTubeCenter.js")||E.includes("/mytube.js")||E.includes("JSON.parseWrapper")||E.includes("/inj_js/common.js")||E.includes("firebug-lite")||E.includes(".repl.co/")||E.includes("linkfix")||E.includes("playAfterAd")||h.message.includes("Access is denied for this document")&&E.includes("<anonymous>")||h.fileName==="user-script"||h.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
E.includes("<anonymous>"))return!0;if(E.includes("https://www.youtube.com"))return!1;h=E.split("\n");if(!h.length)return!1;if(h.length<=3&&E.includes("s.onloadeddata"))return!0;E=0;for(var g=_.G(h),Z=g.next();!Z.done;Z=g.next())Z=Z.value,(Z.includes("https://")||Z.includes("http://"))&&E++;return E/h.length>.95},
weight:0},{callback:function(h){return h.message==="Unknown Error"&&h.name.indexOf("NS_")===0},
weight:100},{callback:function(h){if(!_.IV)return!1;var E=h.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||h.message.includes("available to complete this operation"),g=h.stack.includes("webcomponents")&&h.message==="Object doesn't support this action";h=h.message.includes("object that does not implement interface Element");return E||g||h},
weight:0},{callback:function(h){return h.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(h){return h.message==="Operation is not supported"&&(h.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(h){return h.stack.includes("eval code (eval (code:1:1)")||h.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(h){return h.message.includes("Permission denied")&&h.stack.includes("this.domHandler")?!0:h.name.includes("TypeError")&&h.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(h){if(!h.stack)return!1;var E=h.stack.trim().split("\n");E.length&&E[0].endsWith("Error: "+h.message)&&E.shift();E.length&&E[E.length-1].includes("at window.onerror (")&&E.pop();if(!E.length)return!0;if(h.message==="Script error.")return E[0].includes("www.youtube.com")||E.length>=2&&E[0].startsWith("at new")&&E[1].startsWith("at window.onerror");if(h.message==="Unexpected token")return!0;h=_.G(E);for(E=h.next();!E.done;E=h.next())if(E=E.value,!(E.includes("<anonymous>")||
E.startsWith("load@")||E.startsWith("global code@")||E.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(h){return h.message==="Cannot read property 'experiments'"&&h.stack.includes("/s/player/")},
weight:500},{callback:function(h){return h.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(h){return h.stack.includes("/embed.js")?(h.params&&h.params&&(h.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.J("use_error_suppression"))var h=_.nF("SUPPRESS_CLIENT_ERRORS",!1);else{if(h=_.LW)h=/Chrome\/(\d+)/.exec(_.jq()),h=(h?parseFloat(h[1]):NaN)>=66;h=!(h||_.UK&&_.BW(65)||_.sq&&_.BW(12.1)||Zp&&_.BW(79))}return h},
weight:500}]};var Usi={},L8U=(Usi.initialized={priority:10,callback:function(h){h.injector.addProvider({provide:QlD,useValue:h.root});h.injector.addProvider({provide:$ZC,useValue:JUV});h.injector.addProvider({provide:KiG,useValue:B2G});var E={};h.injector.addProvider((E.provide=OUX,E.useFactory=function(g,Z){return function(){CRM(g,Z)}},E[R2]=[$ZC,
KiG],E));h.injector.addProvider({provide:Ya,useClass:Ya})}},Usi);var jf0={},dsG=(jf0.initialized={priority:3,callback:function(){var h;if(h=dwd()){h=h.replace("/",".");var E=_.xe();E.set("tz",h);E.save();h=!0}else h=!1;h||(h=_.xe(),h.set("utco",-Math.floor((new Date).getTimezoneOffset())),h.save())}},jf0);var CnZ={},JbJ=(CnZ.initialized={priority:10,callback:function(h){h.injector.resolve(Ya).start();h=_.ZM();var E=_.Xn("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Xn("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Xn("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Xn("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.oe(_.gid(),{mainAppWeb:Object.assign({},h,{pageType:E})});_.oe(MuW(),{mainAppWeb:Object.assign({},h,{pageType:E})});
_.oe(WCz(),{mainAppWeb:h});_.oe(pCu(),{mainAppWeb:h});RIH(function(){_.Ie(WCz(),"FAILURE");_.Ie(pCu(),"FAILURE")});
c8Z();ix$();JzW()}},CnZ);var euU={},q6J=(euU.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.s7("dl"),_.RS().processSignal("pcl");else{var h=function(){_.s7("dl");_.RS().processSignal("pcl");window.removeEventListener("load",h)};
window.addEventListener("load",h)}}},euU);var fb0={},N2i=(fb0.rendering={priority:0,callback:function(){var h=_.RS();h.parkOrScheduleJob(function(){h.processSignal("eocs")},10,"eor",5E3)}},fb0);var t8X=function(){};
_.f(t8X,o0);
t8X.prototype.resolveCommand=function(h,E){var g,Z,M,W,z,c,I,B;return _.a(function(U){M=(g=_.e(h,_.eRM))==null?void 0:(Z=g.dialog)==null?void 0:Z.commentReplyDialogRenderer;if(!M)throw new _.xX("No dialog in createCommentReplyDialogEndpoint");z=(W=E.form)==null?void 0:W.event;if(!z)throw new _.xX("Event not passed in when resolving command");c=_.G(z.composedPath());for(I=c.next();!I.done;I=c.next())if(B=I.value,B.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||B.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return B.showReplyDialog(M),U.return();
_.SK(U)})};var WD=function(){};
_.f(WD,o0);WD.prototype.resolveCommand=function(h){var E,g,Z;return _.a(function(M){if(M.nextAddress==1)return E=_.e(h,Yfn),(g=E)!=null&&g.externalChannelId?M.yield((0,_.$Tu)("NSzT5"),2):M.return();Z=_.S6x;return M.yield(Z(),0)})};var ps=function(h){this.pageRequestService=h;this.JSC$18582_prefetchCoordinator=q0p()};
_.f(ps,o0);ps.prototype.resolveCommand=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){g=_.e(h,ZCD);if((Z=g)==null||!Z.taskId)throw Error("Ej");M=g.taskId;_.CX(z,2);return z.yield(_.ZjC(E.pageRequestService,h,{},"").then(function(c){if(!c)throw Error("Fj");},function(c){throw Error("Gj`"+c);
}),4)}if(z.nextAddress!=2)return txG(E.JSC$18582_prefetchCoordinator,M),_.bN(z,0);
W=_.th(z);$O(E.JSC$18582_prefetchCoordinator,M,W);_.SK(z)})};
ps[R2]=[Nh];var GI=function(h,E){this.innertubeTransportService=h;this.JSC$18586_commandHandler=E};
_.f(GI,o0);GI.prototype.resolveCommand=function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1){g=_.e(h,gmM);if(g.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||g.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")Z=g.boolValue?2:1,_.q8.getInstance().setState(Z,!0,!0);return W.yield(_.QQ(E.innertubeTransportService,h),2)}M=W.yieldResult;xsX(E,M);_.SK(W)})};
var xsX=function(h,E){E.actions&&E.actions.forEach(function(g){h.JSC$18586_commandHandler.resolveCommand(g)})};
GI[R2]=[_.yV,_.zF];var zI={},wRC=(zI.addToPlaylistEndpoint=zy(p5),zI.addToToastAction=zy(RA),zI.adsControlFlowOpportunityReceivedCommand=zy(XP),zI.audioTrackSelectActionCommand=zy(C5),zI.backgroundAudioPlaybackCommand=zy(e9),zI.captionLanguageSelectActionCommand=zy(qj),zI.captionPickerEndpoint=zy(f5),zI.changeMiniAppPlayStateCommand=zy(GQ),zI.changeTimelyActionVisibilityCommand=zy(IA),zI.channelCreationFormEndpoint=zy(hI),zI.clearLocationCommand=zy(Wq),zI.clearUrlParamCommand=zy(zQ),zI.copyLinkCommand=zy(lE),zI.copyTextEndpoint=
zy(Vd),zI.createCommentReplyDialogEndpoint=McW(t8X),zI.createPlaylistServiceEndpoint=zy(rq),zI.dismissDialogEndpoint=zy(cq),zI.dismissPlayerOverlayCommand=zy(Nj),zI.entityUpdateCommand=zy(yd),zI.feedbackEndpoint=zy(TB),zI.getAnswerCommand=zy(rn0),zI.getPaymentsClientTokenCommand=zy(Ug),zI.getTranscriptEndpoint=zy(Pf),zI.googlePaymentBillingCommand=zy(LG),zI.googlePaymentPurchaseManagerCommand=zy(jC),zI.hideEngagementPanelEndpoint=zy(iE),zI.hideSheetCommand=zy(oZ),zI.hideSnackbarCommand=zy(pG),zI.insertRichSectionCommand=
zy(gq),zI.listMutationCommand=zy(Zy),zI.logGtmCommand=zy(Es),zI.notifyDropdownOptionSelectedCommand=zy(aZ),zI.openAdAllowlistInstructionCommand=zy(_.Yy),zI.openOnePickAddVideoModalCommand=zy(mA),zI.persistSubscriptionsDisplayPreferencesCommand=zy(n5),zI.pingingEndpoint=zy(sA),zI.playlistEditEndpoint=zy(Hq),zI.playlistVotingRefreshPopupCommand=zy($q),zI.profileCardCommand=zy(nv),zI.refreshPanelEndpoint=zy(IZ),zI.saveImageToDeviceEndpoint=zy(ky),zI.scrollToSectionEndpoint=McW(mAi),zI.seekToVideoTimestampCommand=
zy(tI),zI.selectCountryCommand=zy(X0),zI.setCookieCommand=zy(Yq),zI.setLocalStorageCommand=zy(zL),zI.setPrefStorageEntryCommand=zy(Vt),zI.setSettingEndpoint=zy(GI),zI.sfvAudioItemPlaybackCommand=zy(S9),zI.shareImageCommand=zy(kq),zI.sharingProviderDataCommand=zy(F0),zI.showAudioTrackPickerActionCommand=zy(xq),zI.showCaptionLanguageSelectActionCommand=zy(wq),zI.showCreatorChatbotEngagementPanelCommand=zy(WD),zI.showDialogCommand=zy(Bq),zI.showEngagementPanelEndpoint=zy(Us),zI.showSheetCommand=zy(L5),
zI.showSnackbarCommand=zy(GL),zI.showTransientPlayerScrimOverlayCommand=zy(Dy),zI.submitFormWithValidationFlowCommand=zy(Qd),zI.talkToRecsDeselectCommand=zy(aA),zI.talkToRecsNextCommand=zy(cf),zI.talkToRecsSelectCommand=zy(iu),zI.talkToRecsUpdateTextCommand=zy(oA),zI.toggleEngagementPanelCommand=zy(j9),zI.undoFeedbackEndpoint=zy(ut),zI.updateEngagementPanelContentCommand=zy(dq),zI.updateUrlParamCommand=zy(Bf),zI.verifyCommand=zy(hI),zI.webNativeShareCommand=zy(AI),zI.webSubmitFormCommand=zy(K5),zI.ACK_PLAYABLES_3P_DATA_CONSENT=
zy(TQ),zI.CANCEL_NAVIGATION=zy(bE),zI.COPY_SHARE_URL=zy(uE),zI.MINI_APP_EXIT_DIALOG_SEEN=zy(h_),zI.MINI_APP_OPEN_URL=zy(Qt),zI.REQUEST_MINI_APP_FULLSCREEN=zy(Eg),zI.RESUME_NAVIGATION=zy(gV),zI.SHARE_PLAYABLE_WITH_HIGH_SCORE=zy(ZK),zI.TELL_US_WHY=zy(bt),zI);_.J("web_enable_prefetching_videos_on_home")&&(wRC.prefetchWatchCommand=zy(ps),wRC.registerTasksCommand=zy(Ox));_.J("enable_share_panel_navigation_logging_fix_on_web")&&(wRC.shareEntityServiceEndpoint=zy(RZ));var IfF=Object.assign({},wRC);var DsG={},lbi=(DsG.initialized={priority:10,callback:B4q},DsG);var rbZ={},msc=(rbZ.initialized={callback:function(h){var E={},g={};leZ().install((E.document_disposed={callback:function(){_.J("finalize_all_timelines")?qJ$():O7();w2$("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.yRz();var Z=h.injector.resolve(Ya);Z.intervalId!==void 0&&(Z.intervalId&&_.KP.cancelJob(Z.intervalId),Z.intervalId=void 0,--Z.currentPartitionIndex,Z=YIl(Z),Z>0&&bJk({mainAppWeb:_.ZM(),survivalSli:{partitionMinute:Z,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));YEk(Pt);Bt!=null&&
Bt.flush();Pp&&Pp.snapshotAndFlush();Z=_.G(GxD.values());for(var M=Z.next();!M.done;M=Z.next())M.value.snapshotAndFlush()}},E),(g.flush_logs={callback:function(){_.HT()}},g))}},rbZ);var vpG={},Htx=(vpG.rendered={priority:0,callback:function(){var h=new hof;h.increment("STARTED");if(_.nF("LOGGED_IN")&&!_.nF("IS_DBSC",!1)&&_.nF("SERVER_VERSION")!=="test"&&_.nF("SERVER_VERSION")!=="dev"&&!mAf()&&!rnD()){h.increment("EXECUTING");var E=document.createElement("iframe");E.style.display="none";_.MKx(E,2,_.Yr("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.nF("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(E);h.increment("DONE")}}},
vpG);var $sG={},K80=($sG.rendered={callback:function(){q0p().resume()}},$sG);var OtZ={acknowledgeChannelTouStrikeCommand:lU(A_),addToPlaylistServiceEndpoint:lU(uh),addToPlaylistEndpoint:lU(uh),addUpcomingEventReminderEndpoint:lU(a$),browseEndpoint:lU(zC0),channelCreationFormEndpoint:lU(Xs),channelCreationServiceEndpoint:lU(Yf),claimLegacyYoutubeChannelEndpoint:lU(SC),clearSearchHistoryEndpoint:lU(gb),clearWatchHistoryEndpoint:lU(Z3),commerceActionCommand:rN(jk),createBackstagePostEndpoint:lU(J_),createBroadcastCommand:lU(cV),createCommentEndpoint:lU($f),createCommentReplyEndpoint:lU(Hf),
createLiveChatPollEndpoint:lU(ih),createPlaylistServiceEndpoint:lU(Q0),crossAccountChannelTransferEndpoint:lU(p_),deleteLiveChatMessageCommand:lU(o$),deletePlaylistEndpoint:lU(hR),deleteVideoEndpoint:lU(P9),dismissalEndpoint:lU(TL),feedbackEndpoint:lU(bu),flagEndpoint:lU(pT),getAccountSwitcherEndpoint:lU(WV),verifyCommand:lU(CG),getAccountsListInnertubeEndpoint:lU(z_),getCommentsFromInboxCommand:lU(mY),getDownloadActionCommand:lU(Xr),getFlowCommand:rN(EF),getKidsBlocklistPickerCommand:lU(G2),getNotificationMenuEndpoint:lU(iUU),
getPaymentInstrumentsParamsCommand:lU(fT),getPaymentsClientTokenCommand:rN(jk),getPdgBuyFlowCommand:lU(T_),getReportFormEndpoint:lU(z2),getSearchInVideoCommand:lU(i8),getAnswerCommand:lU(c9),getSurveyCommand:lU(RE),getTranscriptEndpoint:lU(Ux),getPostVideoPreviewEndpoint:lU(q4),decorateMessageEndpoint:lU(eC),likeEndpoint:lU(sg),liveChatActionEndpoint:lU(BV),liveChatEndpoint:lU(PV),liveChatItemContextMenuEndpoint:lU(I$),liveChatPurchaseMessageEndpoint:lU(UF),liveChatReplayEndpoint:lU(R$),manageLiveChatUserEndpoint:lU(Np),
metadataUpdateCommand:lU(lh),moderateLiveChatEndpoint:lU(tD),modifyChannelNotificationPreferenceEndpoint:lU(K_),notificationOptOutEndpoint:lU(OF),openSuperStickerBuyFlowCommand:lU(f_),performCommentActionEndpoint:lU(rV),playlistEditEndpoint:lU(gn),playlistEditorEndpoint:lU(Ex),recordNotificationInteractionsEndpoint:lU(n_),reelWatchEndpoint:lU(Ze),refreshPanelEndpoint:lU(sF),removeUpcomingEventReminderEndpoint:lU(SW),resolveLocationCommand:lU(D3),revealBusinessEmailCommand:lU(xf),searchEndpoint:lU(_.oUG),
sendLiveChatMessageEndpoint:lU(xI),sendLiveChatVoteEndpoint:lU(wb),setSettingEndpoint:lU(V5),shareEntityServiceEndpoint:rN(Fs),sharingProviderDataCommand:lU(IE),showEngagementPanelEndpoint:lU(V0),showMoreDrawerCommand:lU(y0),showSheetCommand:lU(Fr),showDialogCommand:lU(kI),subscribeEndpoint:lU(kf),transcriptSubmitCaptionCorrectionCommand:lU(B9),undoFeedbackEndpoint:lU(Q5),unsubscribeEndpoint:lU(y5),updateBackstagePostEndpoint:lU(N4),updateCommentEndpoint:lU(Og),updateCommentReplyEndpoint:lU(KG),updateCommentsSettingsEndpoint:lU(nG),
updateCreatorChannelInnertubeCommand:lU(DK),updateKidsBlacklistEndpoint:lU(aE),updateEngagementPanelContentCommand:lU(AD),updatePdgFeatureEnablementCommand:lU(bh),updatedMetadataEndpoint:lU(rb),validateChannelHandleCommand:lU(lu),updateChannelPageSettingsEndpoint:lU(wV),verifyAgeEndpoint:lU(hD),watchEndpoint:rN(Xp),whitelistEditEndpoint:lU(LT),ypcCancelRecurrenceEndpoint:lU(dn),ypcCompleteTransactionEndpoint:lU(CT),ypcFixInstrumentEndpoint:lU(ek),ypcGetCartEndpoint:lU(JR),ypcGetOffersEndpoint:lU(qf),
ypcHandleTransactionEndpoint:rN(Nf),ypcLogWalletAnalyticDataEndpoint:lU(tR),ypcOffersEndpoint:lU(Sk),ypcPauseSubscriptionCommand:lU(xO),ypcRedeemCodeEndpoint:lU(wn),ypcResumeSubscriptionCommand:lU(De),ypcUpdateFopEndpoint:lU(ek)},al={},npU=(al.GET_ACCOUNT_MENU=lU(G_),al.GET_NOTIFICATIONS_MENU=lU(cCi),al.GET_NOTIFICATIONS_INBOX=lU(vV),al.GET_UNSEEN_NOTIFICATION_COUNT=lU($I),al.GET_USER_MENTION_SUGGESTIONS=lU(fG),al.LOAD_GUIDE=lU(aRi),al.SUBMIT_FEEDBACK=lU(uu),al),cD={},XRi=(cD.CONTINUATION_REQUEST_TYPE_BROWSE=
lU(t_),cD.CONTINUATION_REQUEST_TYPE_SEARCH=lU(oE),cD.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=lU(sk),cD.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=lU(Mp),cD.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=lU(vf),cD.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=lU(m_),cD.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=lU(W9),cD.CONTINUATION_REQUEST_TYPE_GET_PANEL=lU(YI),cD),Y6U={player:rN(Xp),watchNext:lU(Ym)},sfU={player:rN(Xp),reelItemWatch:lU(Ze),reelWatchSequence:lU(Mf)},V8i={watchEndpoint:rN(VH)},kRi=
{commandEndpointMap:OtZ,signalEndpointMap:npU,continuationEndpointMap:XRi,watchEndpointMap:Y6U,reelWatchEndpointMap:sfU,streamingEndpointMap:V8i};var yb0,F8x,Abi;_.T2I=((F8x=(yb0=window).matchMedia)==null?void 0:(Abi=F8x.call(yb0,"(prefers-reduced-motion: reduce)"))==null?void 0:Abi.matches)||!document.startViewTransition;var bti={},uKC={disableAllTransitions:_.T2I,ignoredErrors:(bti.DOCUMENT_HIDDEN=!0,bti.WINDOW_SIZE_CHANGED=!0,bti.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,bti),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var QfR=_.uz("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),hlC=function(h){this.viewTransitionCoordinator=h;this.isBrowseTransitionEnabled=_.iN("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.J("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.J("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.J("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.iN("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){h=
_.cx("web_page_transition_exit_ms");var E=_.cx("web_page_transition_wait_ms"),g=_.cx("web_page_transition_enter_ms"),Z=_.cx("web_page_transition_watch_exit_ms"),M=_.cx("web_page_transition_watch_wait_ms"),W=_.cx("web_page_transition_watch_enter_ms");if(!isNaN(h)||!isNaN(E)||!isNaN(g))if(h=Dsx(QfR,h,E,g,Z,M,W))E=document.createElement("style"),E.textContent=aT$(h),document.head.appendChild(E)}};
hlC.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var h={};this.viewTransitionCoordinator.registerElement(document.documentElement,(h.slide="root-slide",h["lockup-to-watch"]="root-lockup-to-watch",h["learning-journey"]="root-learning-journey",h))}};
_.PRf=function(h,E){h.isLockupToWatchTransitionEnabled&&h.isLockupThumbnailRegistrationEnabled&&(h.registeredLockupThumbnail?h.lockupThumbnailRegisteredFromWatchEndpoint?_.O$(new _.xX("Lockup thumbnail registration order is incorrect.")):_.O$(new _.xX("Lockup thumbnail already registered.")):(h.registeredLockupThumbnail=E,_.EdC(h,E)))};
_.EdC=function(h,E){var g={};h.viewTransitionCoordinator.registerElement(E,(g["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",g),!0)};
hlC[R2]=[vri];var UXa={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 jXW=["videoPrimaryInfoRenderer","title"],dXV=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var gdU;gdU=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Z8R=_.O(function(h){h=_.au(h,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var E=h.data,g=h.playlistData,Z=h.expanded,M=h.onExpandClick,W=h.isReadyToResume,z=function(){var U;return!((U=g())==null||!U.contents)},c=function(){var U=g();
return U&&U.totalVideos&&U.currentIndex!==void 0?U.currentIndex+1+" / "+U.totalVideos:""};
h=_.J7(function(){_.ii(_.GF().resolve(_.Yu));return!1});
var I=_.J7(function(){z()&&M&&M()}),B={};
return _.R("ytd-miniplayer-info-bar",{class:_.CO("ytdMiniplayerInfoBarHost",(B.ytdMiniplayerInfoBarHasPlaylistData=z,B)),"on:click":I},_.R("div",{class:"ytdMiniplayerInfoBarContent"},_.R("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":h},_.R(_.dK,{text:function(){var U=E();var L=g();if(L==null?0:L.contents){var d;U=(d=_.SE4(L))==null?void 0:d.title}else U=U==null?void 0:U.miniplayerTitle;return C$4(U)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.R(_.P,{cond:W,then:function(){return _.R(E2F,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:gdU})}}),_.R("h1",null,_.R(_.dK,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var U=E();var L=g();U=W()?{simpleText:_.NH("CONTINUE_WATCHING",void 0,"Continue watching")}:(L==null?0:L.contents)?L.titleText:U==null?void 0:U.miniplayerSubtitle;return C$4(U)},
noEndpoints:!0,ellipsisTruncate:!0})),_.R(_.P,{cond:function(){return!!c()&&!W()},
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.R("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.R("span",null,c))}}))),_.R(_.P,{cond:z,
then:function(){return _.R("div",{class:"ytdMiniplayerInfoBarExpand"},_.R(_.H4,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(U){M&&(M(),U.stopPropagation())}}},
iconName:function(){return Z()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"af");var MfZ;MfZ=_.O(function(h){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.R(_.H4,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:h.onTap}},
iconName:"yt-icons:close"}))},"bf");
_.WxX=_.O(function(h){h=_.au(h,{playabilityStatus:void 0,isDisabled:!1});var E=h.size,g=h.playabilityStatus,Z=h.isDisabled,M=_.hf("div");h=_.G(_.Bm(void 0,void 0,"y6THVb"));var W=h.next().value,z=h.next().value;h=_.VQ(_.i1);var c=!1,I=function(){return E().height<=0};
_.lX(function(){var d=E(),C=I(),q=W();q&&!C&&q.setInternalSize(d.width,d.height)},"qu2eI");
_.m1(function(){var d,C,q;return _.a(function(w){if(w.nextAddress==1){d=_.GF().resolve(_.Yu);C=d.getPlayerElement();if(!d.isMiniplayerActive()||!C||!M.value)return w.return();C.appendTo(M.value);return w.yield(C.getPlayerPromise(),2)}q=w.yieldResult;q.setSizeStyle(!1,!0);z(q);_.SK(w)})});
_.r9(function(){B()});
_.lX(function(){var d=W();if(d)if(Z()){var C=d.getPlayerState();(c=C===-1||C===1||C===3)&&d.pauseVideo()}else B()},"mCtQKc");
var B=function(){if(c){c=!1;var d;(d=W())==null||d.playVideo()}},U=_.J7(function(){_.ii(_.GF().resolve(_.Yu))}),L={};
return _.R("ytd-miniplayer-player-container",{class:_.CO("ytdMiniplayerPlayerContainerHost",(L.ytdMiniplayerPlayerContainerHidden=I,L.ytdMiniplayerPlayerContainerHostShortsPip=h,L)),style:_.fO({width:function(){return E().width+"px"},
height:function(){return E().height+"px"}})},_.R("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:M}),_.R(_.P,{cond:function(){return!!g()&&!_.AFa(g())},
then:function(){return _.R(UNX,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var d;return((d=g())==null?void 0:d.errorScreen)||null},
status:function(){var d;return((d=g())==null?void 0:d.status)||null}})}}),_.R(_.P,{cond:Z,
then:function(){return _.R("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":U},_.R(MfZ,{onTap:function(){_.GF().resolve(_.Yu).close()}}))}}))},"cf");_.phU=_.O(function(h){var E=h.toastData;var g=_.hf("ytd-miniplayer-toast");h=_.G(_.qi(function(){return!!E()}));
var Z=h.next().value,M=h.next().value;h=_.G(_.Bm(!1,void 0,"BvfNQe"));var W=h.next().value,z=h.next().value,c=function(){var U;return _.Wp((U=E())==null?void 0:U.data.title)};
_.vJ(function(){_.ZL.requestAvailability();E()&&M(!1)});
var I,B;_.lX(function(){Z()&&(_.Ra(g.value,"iron-announce",{text:E().label+" "+c()}),I&&_.KP.cancelJob(I),I=_.KP.addLowPriorityJob(function(){z(!0)},2500))},"no1dZb");
_.lX(function(){W()&&(B&&_.KP.cancelJob(B),B=_.KP.addLowPriorityJob(function(){M(!1);z(!1)},300))},"G3yPNe");
h={};return _.R("ytd-miniplayer-toast",{el:g,class:_.CO("ytdMiniplayerToastHost",(h.ytdMiniplayerToastOpening=function(){return Z()},h.ytdMiniplayerToastClosing=function(){return W()},h))},_.R(_.P,{cond:function(){var U;
return(U=E())==null?void 0:U.data},
then:function(U){return _.R(cEB,{className:"ytdMiniplayerToastThumbnail",data:U,width:78})}}),_.R("div",{class:"ytdMiniplayerToastInfo"},_.R("div",{class:"ytdMiniplayerToastLabel"},function(){var U;
return(U=E())==null?void 0:U.label}),_.R("div",{class:"ytdMiniplayerToastTitle"},c)))},"df");var DX$;var mXu=null;var zlI=_.O(function(h){var E=h.progressState;var g=h.multiMarkersPlayerBarRenderer;var Z=h.progressBarWidth;var M=function(){return KVx(g())},W=function(){return XrW(E())},z=function(){return Z()*(E().playedTime/E().videoDuration)};
return _.R("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.R(_.SX,{each:M},function(c,I){return _.R(G8X,{modifiedProps:W,chapters:M,index:I,playedProgressWidth:z,backgroundGradientPosition:function(){var B=W(),U=M(),L=I(),d=z();return(B.playedTime-n$(_.e(U[L],Oc)))/B.playedTime*d}})}))},"ef"),G8X=_.O(function(h){var E=h.modifiedProps;
var g=h.chapters;var Z=h.index;var M=h.playedProgressWidth;var W=h.backgroundGradientPosition;h={};h=_.CO("ytChapteredProgressBarChapteredPlayerBarChapter",(h.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return z().isScrubbing},h.ytChapteredProgressBarHoveredMacroMarker=function(){return z().scrubberHovering},h.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return z().videoPosition==="seen"},h));
var z=function(){return YmW(E(),g(),Z())},c=function(){var I=E();
var B=g(),U=Z();if(YmW(I,B,U).videoPosition!=="active")I=0;else{var L=n$(_.e(B[U],Oc));I=(I.playedTime-L)/((n$(_.e(B[U+1],Oc))||I.videoDuration)-L)}return I};
return _.R("div",{class:h,style:_.fO({width:function(){var I=E(),B=g(),U=Z(),L=_.e(B[U],Oc);B=_.e(B[U+1],Oc);return(B?n$(B)-n$(L):I.videoDuration-n$(L))/I.videoDuration*100+"%"},
"background-color":function(){a:{var I=z();switch(I.videoPosition){case "pending":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":I=I.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:I=""}}return I},
"background-size":function(){return(sX4(z())?M():"")+"px"},
"background-position-x":function(){return(sX4(z())?W():"")+"px"}})},_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var I=E(),B=g(),U=Z();if(YmW(I,B,U).videoPosition==="seen")var L=0;else L=n$(_.e(B[U],Oc)),B=n$(_.e(B[U+1],Oc))||I.videoDuration,I=I.videoDuration*I.percentLoaded,L=B<=I?1:L>=I?0:(I-L)/(B-L);return"width: "+L*100+"%"}}),_.R("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.fO({width:function(){return c()*100+"%"},
"background-size":function(){return(sX4(z(),c())?M():"")+"px"},
"background-position-x":function(){return(sX4(z(),c())?W():"")+"px"}})}))},"ff");var aJ0=function(h,E){E=E===void 0?ldf:E;var g,Z=[],M,W=!1;return function(){var z=_.VF.apply(0,arguments);if(W&&g===this&&E(z,Z))return M;M=h.apply(this,z);W=!0;g=this;Z=z;return M}}(function(h){var E=h.heatMarkers,g=h.minHeightDp===void 0?0:h.minHeightDp,Z=h.maxHeightDp===void 0?60:h.maxHeightDp;
var M=M===void 0?!1:M;var W=1E3/E.length;h=[];h.push({x:0,y:100});for(var z=0;z<E.length;z++){var c=void 0,I=((c=_.e(E[z],z_D))==null?void 0:c.heatMarkerIntensityScoreNormalized)||0;c=(z+.5)*W;I=100-_.vw(I*100,g/321*100,Z/321*100);z!==0||M||h.push({x:0,y:I});h.push({x:c,y:I});z===E.length-1&&h.push({x:1E3,y:I})}h.push({x:1E3,y:100});E="";for(g=0;g<h.length;g++)M=h[g],g===0?M="M "+M.x.toFixed(1)+","+M.y.toFixed(1):(Z=yFa(h[g-1],h[g-2],M),W=yFa(M,h[g-1],h[g+1],!0),M=" C "+(Z.x.toFixed(1)+","+Z.y.toFixed(1)+
" "+W.x.toFixed(1)+","+W.y.toFixed(1)+" "+M.x.toFixed(1)+","+M.y.toFixed(1))),E+=M;return E});var cAx=_.O(function(h){var E=h.progressBarProps;var g=h.config;var Z={};h=_.CO("ytHeatSeekerHost",(Z.ytHeatSeekerHighContrast=h.highContrast,Z));var M=function(){return N4z(g().chapterData)};
return _.R("yt-progress-bar-heatseeker",{class:h,style:function(){var W;return"height: 320px; display: "+(E().isDragging&&((W=M())==null?0:W.heatMarkers)?"block":"none")}},_.R(_.P,{cond:M,
then:function(W){return _.R(_.P,{cond:function(){return W().heatMarkers},
then:function(){return _.R("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.R("path",{d:function(){return aJ0(W())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"gf");var i8x=_.O(function(h){var E=h.progressBarProps;var g=h.config;h={};h=_.CO("ytProgressBarLineProgressBarLine",(h.ytProgressBarLineProgressBarLineRounded=function(){return g().rounded},h.ytProgressBarLineProgressBarLineBottomInset=function(){return g().position===2},h));
return _.R("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.R("div",{class:h},_.R("div",{class:"ytProgressBarLineProgressBarBackground"}),_.R("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+E().percentLoaded*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var Z=E();return"width: "+(Z.videoDuration?_.vw(Z.hoveredTime/Z.videoDuration,0,1):0)*100+"%"}}),_.R("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+eSx(E())*100+"%"}})))},"hf");
i8x.idomCompat=!0;var odc=_.O(function(h){var E=h.progressBarProps;var g=h.playheadData;var Z=h.interpolateDotPosition;var M=h.hidePlayhead;h={};var W=_.CO("ytProgressBarPlayheadProgressBarPlayheadDot",(h.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return E().isDragging},h.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!E().isDragging&&M()},h));
return _.R("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.fO({"margin-left":function(){return qmx(E())*100+"%"},
transform:function(){return"translateX(-"+(Z()?qmx(E())*12:6)+"px)"}})},_.R(_.P,{cond:function(){var z;
return(z=_.zl(g)())==null?void 0:z.playheadImage},
then:function(z){var c={};return _.R("div",{class:_.CO("ytProgressBarPlayheadProgressBarPlayheadCustom",(c.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return E().isDragging},c.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!E().isDragging&&M()},c)),
style:_.fO({"transform-origin":function(){return(Z()?qmx(E())*20:10)+"px center"}})},_.R(_.pO,{data:z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.R("div",{class:W,style:_.fO({"transform-origin":function(){return(Z()?qmx(E())*12:6)+"px center"}})})}}))},"jf");
odc.idomCompat=!0;var ol=function(h,E,g,Z,M,W){this.getProgressBarRect=h;this.updateProgressBarRect=E;this.getFilmstripYPosition=g;this.setFineScrubbingDraggedTime=Z;this.updateFilmStripDraggedYDistance=M;this.resetFilmStripYOffset=W;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.TD(this.onThrottledSeek,100,this)},IJx=function(h,E,g){return function(Z){h.handleClick(Z,E(),g())}},BOI=function(h,E){return function(g){RlC(h,
g,P4C(g),E())}},U3U=function(h,E){return function(g){RlC(h,g,{x:g.clientX,
y:g.clientY},E())}},jDU=function(h,E,g){return function(Z){var M=E(),W=g();
LxZ(h,Z,P4C(Z),M,W,!0);if(W.onTouchMove)W.onTouchMove(M)}},C40=function(h,E,g){return function(Z){d3G(h,Z,E(),g())}},JA0=function(h,E){return function(){h.handleMouseLeave(E())}},elG=function(h,E,g){return function(){var Z=E(),M=g();
Il(h,Z,M);if(M.onTouchEnd)M.onTouchEnd(Z)}},qtp=function(h,E,g){return function(){var Z=E(),M=g();
Il(h,Z,M);if(M.onTouchEnd)M.onTouchEnd(Z)}},fJx=function(h,E,g){return function(){Il(h,E(),g())}},NOU=function(h){return function(E){if(E.keyCode===39||E.keyCode===38){var g,Z;
(g=h())==null||(Z=g.playerApi)==null||Z.seekBy(5,void 0,void 0,72)}else if(E.keyCode===37||E.keyCode===40){var M,W;(M=h())==null||(W=M.playerApi)==null||W.seekBy(-5,void 0,void 0,71)}}},tfZ=function(h,E,g){return function(Z){!g().disableScrubbing&&h.startPosition&&d3G(h,Z,E(),g())}},StC=function(h,E,g){return function(){if(!g().disableScrubbing)if(h.startPosition){var Z=E(),M=g();
Il(h,E(),g());if(M.onTouchEnd)M.onTouchEnd(Z)}else E().setState({isDragging:!1})}},P4C=function(h){h=h.touches[0];
return{x:h.clientX,y:h.clientY}},d3G=function(h,E,g,Z){if(E.buttons!==1){if(E.movementX||E.movementY)E.preventDefault(),E.stopPropagation(),h=x3p(h,g,E.clientX),g.setState({isHovering:!0,
hoveredTime:h*g.videoDuration})}else whx(g),LxZ(h,E,{x:E.clientX,y:E.clientY},g,Z,!1)};
ol.prototype.handleMouseLeave=function(h){whx(h)};
var whx=function(h){h.isHovering&&h.setState({isHovering:!1,hoveredTime:0})},RlC=function(h,E,g,Z){h.startPosition||(h.startPosition=g,h.updateProgressBarRect(),h.controlsWereVisibleBeforeDragging=Z.controlsVisible,E.stopPropagation(),_.J("medium_progress_bar_modification")||E.preventDefault())},LxZ=function(h,E,g,Z,M,W){if(h.startPosition)if(W&&M.isInlinePlayback&&h.startPosition&&!h.hasDraggedTheMinimumDistance&&Math.abs(g.y-h.startPosition.y)>Math.abs(g.x-h.startPosition.x))Il(h,Z,M);
else if(E.preventDefault(),E.stopPropagation(),Z.videoDuration&&(h.startPosition&&!h.hasDraggedTheMinimumDistance&&(h.hasDraggedTheMinimumDistance=Math.abs(g.x-h.startPosition.x)>=1),M.enableFineScrubbing&&(h.startPosition&&(h.isDraggedForFineScrubbing=-(g.y-h.startPosition.y)>=60),!h.startPosition||g.y>=h.startPosition.y||(Z.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:VtN(Z.draggedTime,Z,M.chapterData)}),h.setFineScrubbingDraggedTime(Z.draggedTime),h.updateFilmStripDraggedYDistance(h.startPosition.y,
g.y,Z))),h.hasDraggedTheMinimumDistance)){E=x3p(h,Z,g.x);if(h.isDraggedForFineScrubbing){var z;(z=Z.playerApi)==null||z.pauseVideo();Z.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:Z.draggedTime,filmStripXDistance:VtN(E*Z.videoDuration,Z,M.chapterData)})}M.enableFineScrubbing&&(!M.enableFineScrubbing||h.getFilmstripYPosition(Z)<68)||Z.setState({draggedTime:E*Z.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:h.controlsWereVisibleBeforeDragging});var c;(c=
M.cancelAutohideControlsFn)==null||c.call(M)}},Il=function(h,E,g){var Z=g.enableFineScrubbing&&E.fineScrubbingActiveState!=="off";
if(E.isDragging||Z){Z={isDragging:!1,playedTime:E.draggedTime,controlsVisible:h.controlsWereVisibleBeforeDragging};g.enableFineScrubbing&&E.fineScrubbingActiveState!=="on"&&(h.resetFilmStripYOffset(),Z.fineScrubbingActiveState="off");var M=M===void 0?mXu:M;var W=_.sH(0);if(W&&M){var z=Math.round(E.playedTime*1E3),c=Math.round(E.draggedTime*1E3);z>2147483647||c>2147483647||_.Mw(W,M,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(z),endMediaTimeMs:String(c),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}E.setState(Z);
h.seekThrottle.fire(E.draggedTime,E,7);_.J("mweb_new_progress_bar_play_on_seek")&&h.resumeVideo(E);g.unmuteOnSeek&&(g=E.playerApi,E.volumeMuted&&(g==null||g.unMute()))}else E.setState({controlsVisible:!E.controlsVisible}),(W=g.triggerAutohideControlsAfterDelayFn)==null||W.call(g);h.startPosition=null;h.hasDraggedTheMinimumDistance=!1;h.isDraggedForFineScrubbing=!1;h.controlsWereVisibleBeforeDragging=!1};
ol.prototype.handleClick=function(h,E,g){this.updateProgressBarRect();h.stopPropagation();h=x3p(this,E,h.clientX)*E.videoDuration;E.setState({playedTime:h});if(E.playerState!==2){var Z;(Z=g.triggerAutohideControlsAfterDelayFn)==null||Z.call(g)}this.seekThrottle.fire(h,E,7)};
var x3p=function(h,E,g){h=h.getProgressBarRect(E);return _.vw(0,(g-h.left)/h.width,1)};
ol.prototype.resumeVideo=function(h){if(h.draggedTime<h.videoDuration){var E;(E=h.playerApi)==null||E.playVideo()}};
ol.prototype.onThrottledSeek=function(h,E,g){if(E=E.playerApi){var Z;if((Z=E.getVideoData())==null?0:Z.isLive)Z=this.getProgressState(E),h+=(Z==null?void 0:Z.seekableStart)||0;E.seekTo(h,void 0,void 0,void 0,g)}};
ol.prototype.getProgressState=function(h){var E=h==null?void 0:h.getPresentingPlayerType();return h==null?void 0:h.getProgressState(E)};var rAp,lJU,m30,H8I,D3R,$3J,Kxx,O8C,ndC;rAp=_.O(function(h){var E=h.progressBarProps;var g=h.config;var Z=h.progressBarWidthPx;var M=h.chapterData;var W=T4$(E,function(){return g().isShortsPage}),z=function(){return!E().isHovering&&!g().isShortsPage};
h={};var c=_.CO("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(h.ytPlayerStoryboardHostMwebShorts=function(){return g().isShortsPage&&!1},h));
return _.R("yt-player-storyboard",null,_.R(_.P,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.R(_.P,{cond:W,then:function(I){return _.R(_.P,{cond:z,then:function(){return _.R("div",{class:c,"aria-hidden":"true"},_.R(D3R,{props:E,config:g,isBigboard:!0,chapterData:M}))},
else:function(){return _.R(lJU,{props:E,frame:I,config:g,progressBarWidthPx:Z,chapterData:M})}})}})}}))},"kf");
_.vdp=_.O(function(h){var E=h.progressBarProps;var g=T4$(E,h.isShortsPage);return _.R("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.R(_.P,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.R(_.P,{cond:g,then:function(Z){return _.R(m30,{frame:Z,props:E,isBigboard:!0})}})}}))},"lf");
lJU=_.O(function(h){var E=h.props;var g=h.frame;var Z=h.config;var M=h.progressBarWidthPx;h=h.chapterData;var W={};W=_.CO("ytPlayerStoryboardHost",(W.ytPlayerStoryboardHostMwebShorts=function(){return Z().isShortsPage&&!1},W.ytPlayerStoryboardHostInlinePlayer=function(){return Z().isInlinePlayer},W.ytPlayerStoryboardHostFadeIn=function(){return Z().useFadeInAnimation},W));
return _.R("div",{class:W,"aria-hidden":"true",style:function(){var z=E(),c=kk4(g()),I=M();z=y84(z)/z.videoDuration;var B=I*z,U=c/2+6;c=I-(c/2+6);return"left: "+(B<=U?U/I*100:B>=c?c/I*100:z*100)+"%"}},_.R(_.P,{cond:function(){var z=E();
return!(Z().isShortsPage&&z.videoDuration<15)},
then:function(){return _.R(m30,{frame:g,props:E,isBigboard:!1})}}),_.R(D3R,{props:E,
config:Z,isBigboard:!1,chapterData:h}))},"mf");
m30=_.O(function(h){var E=h.frame;var g=h.props;var Z=h.isBigboard;var M=function(){var c,I;return(I=(c=g().playerApi)==null?void 0:c.getVideoContentRect())!=null?I:{width:0,height:0}},W=function(){return kk4(E())},z=function(){var c=E();
return c?c.height/c.rows:0};
h={};h=_.CO((h.ytPlayerStoryboardBigboardImageWrapper=Z,h.ytPlayerStoryboardStoryboardImageWrapper=function(){return!Z()},h));
return _.R("div",{class:h,style:function(){return"width: "+(Z()?M().width:W())+"px; height: "+(Z()?M().height:z())+"px;"}},_.R(H8I,{frame:E,
storyboardWidth:W,storyboardHeight:z,storyboardScale:function(){return(Z()?M().width:W())/W()}}))},"nf");
H8I=_.O(function(h){var E=h.frame;var g=h.storyboardWidth;var Z=h.storyboardHeight;var M=h.storyboardScale;var W=function(){var z=E().row,c=E().column,I=g(),B=Z(),U=M();return{left:-c*I*U,top:-z*B*U}};
return _.R("img",{src:function(){return E().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+W().left+"px; top: "+W().top+"px; width: "+E().width*M()+"px; height: "+E().height*M()+"px;"}})},"of");
D3R=_.O(function(h){var E=h.props;var g=h.config;var Z=h.isBigboard;var M=h.chapterData;h={};h=_.CO("ytPlayerStoryboardMetadata",(h.ytPlayerStoryboardMetadataBigboard=Z,h));return _.R("div",{class:h},_.R(_.P,{cond:Z,then:function(){return _.R(_.zt,null,_.R($3J,{props:E,config:g}),_.R(_.P,{cond:function(){a:{var W=E();var z=g(),c=M(),I;if((z==null?0:z.activeChapter)&&((I=_.e(z==null?void 0:z.activeChapter,Oc))==null?0:I.title))W=!0;else{z=_.G(tt4(c));for(z=z.next();!z.done;z=z.next()){W=(z=_.e(z.value,
cgC))&&FVq(W,z);break a}W=!1}}return W},
then:function(){return _.R(Kxx,{props:E,config:g,isBigboard:!0,chapterData:M})}}))},
else:function(){return _.R(_.zt,null,_.R(Kxx,{props:E,config:g,isBigboard:!0,chapterData:M}),_.R($3J,{props:E,config:g}))}}))},"pf");
$3J=_.O(function(h){var E=h.props;var g=h.config;h={};h=_.CO("ytPlayerStoryboardTimestamp",(h.ytPlayerStoryboardTimestampShorts=function(){return g().isShortsPage},h.ytPlayerStoryboardTimestampIsHovering=function(){return E().isHovering||g().isShortsPage&&!0},h));
return _.R("div",{class:h},_.R(_.zt,null,function(){return _.A8q(y84(E()))}))},"qf");
Kxx=_.O(function(h){var E=h.props;var g=h.config;var Z=h.isBigboard;var M=h.chapterData;h={};Z=_.CO("ytPlayerStoryboardTitle",(h.ytPlayerStoryboardTitleBigboard=Z,h));return _.R("div",{class:Z},_.R(_.P,{cond:function(){return!g().isShortsPage},
then:function(){return _.R(O8C,{props:E,activeChapter:function(){return g().activeChapter},
chapterData:M})}}))},"rf");
O8C=_.O(function(h){var E=h.props;var g=h.activeChapter;var Z=h.chapterData;return _.R(_.zt,null,_.R(_.SX,{each:function(){return tt4(Z())},
keyBy:"INDEX"},function(M){return _.R(_.zt,null,_.R(_.P,{cond:function(){return _.e(M(),cgC)&&FVq(E(),_.e(M(),cgC))},
then:function(){return _.R(ndC,{timedMarker:function(){return _.e(M(),cgC)}})}}))}),_.R(_.P,{cond:function(){var M;
return g()&&((M=_.e(g(),Oc))==null?void 0:M.title)},
then:function(M){return _.R(_.dK,{text:M,noPreWrap:!0})}}))},"sf");
ndC=_.O(function(h){var E=h.timedMarker;return _.R(_.zt,null,_.R("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.R(_.Ni,{icon:function(){return E().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.R(_.dK,{text:function(){return E().label},
noPreWrap:!0}))},"tf");_.Xhi=_.O(function(h){var E=h.progressBarProps;var g=h.playheadData;var Z=h.config;h=_.hf("yt-progress-bar");var M=_.hf("div"),W=_.hf("div"),z=_.G(_.Bm({width:0,left:0},void 0,"WloVn")),c=z.next().value,I=z.next().value,B=function(){W.value&&I(W.value.getBoundingClientRect())},U=function(){c().width<=0&&B();
return c()};
_.z$("resize",B);var L=new ol(U,function(){},function(){return 0},function(){},function(){},function(){}),d=function(){return E()};
z=_.G(_.Bm(!1,void 0,"u8BZZb"));var C=z.next().value,q=z.next().value;z=_.J7(function(){q(!0);Z().position===2?setTimeout(function(){B()},100):B()});
var w=_.J7(function(){q(!1);JA0(L,d)()}),r=_.J7(function(Ha){Z().doSeekOnClick&&IJx(L,d,Z)(Ha);
return!1}),v=_.J7(function(Ha){BOI(L,d)(Ha);
return!1}),H=_.J7(function(Ha){U3U(L,d)(Ha);
return!1}),u=_.J7(function(Ha){jDU(L,d,Z)(Ha);
return!1}),k=_.J7(function(Ha){C40(L,d,Z)(Ha);
return!1}),y=_.J7(function(){elG(L,d,Z)();
return!1}),A=_.J7(function(){qtp(L,d,Z)();
return!1}),E4=_.J7(function(){fJx(L,d,Z)();
return!1}),iO=_.J7(function(Ha){NOU(d)(Ha);
return!1});
_.z$("mousemove",tfZ(L,d,Z));_.z$("mouseup",StC(L,d,Z));_.vJ(function(){v1Z(M.value);q(!1);B();StC(L,d,Z)()});
var RW={};RW=_.CO("ytPlayerProgressBarHost",function(){return Z().className},(RW.ytPlayerProgressBarHostReadOnly=function(){return Z().disableScrubbing},RW.ytPlayerProgressBarHostHidden=function(){return Z().hideProgressBar&&!C()},RW.ytPlayerProgressBarHostLowerPlayer=function(){return Z().position===0},RW.ytPlayerProgressBarHostBottomEdge=function(){return Z().position===1},RW.ytPlayerProgressBarHostBottomInset=function(){return Z().position===2},RW.ytPlayerProgressBarHostCustom=function(){return Z().position===
3},RW));
var NN={},Cd=_.CO("ytPlayerProgressBarBackground",(NN.ytPlayerProgressBarBackgroundHide=function(){return Z().position===2&&!C()&&!E().isDragging},NN));
NN={};NN=_.CO("ytPlayerProgressBarDragContainer",(NN.ytPlayerProgressBarDragContainerBottomEdge=function(){return Z().position===1},NN));
var Ba={};Ba=_.CO("ytPlayerProgressBarProgressBar",(Ba.ytPlayerProgressBarProgressBarInset=function(){return Z().position===2},Ba.ytPlayerProgressBarProgressBarInsetMinimized=function(){return Z().position===2&&!C()&&!E().isDragging},Ba));
var $$=function(){return Math.floor(eSx(E())*100)};
return _.R("yt-progress-bar",{el:h,class:RW},_.R(_.P,{cond:function(){return Z().position===2},
then:function(){return _.R("div",{class:Cd})}}),_.R("div",{el:M,
"on:click":r,"on:touchstart":v,"on:touchmove":u,"on:mouseenter":z,"on:mousedown":H,"on:mouseleave":w,"on:mousemove":k,"on:mouseup":A,"on:touchend":y,"on:touchcancel":E4,"on:keydown":iO,class:NN,role:"slider","aria-valuenow":$$,"aria-valuetext":function(){return $$()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return E().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.NH("SEEK_SLIDER")},_.R("div",{el:W,class:Ba},_.R(cAx,{progressBarProps:E,config:Z,highContrast:function(){return!!Z().isInlinePlayback}}),_.R(_.P,{cond:function(){return Z().chapterData&&SmV(Z().chapterData)},
then:function(){return _.R(zlI,{progressState:E,multiMarkersPlayerBarRenderer:function(){return Z().chapterData},
progressBarWidth:function(){return c().width}})},
else:function(){return _.R(i8x,{progressBarProps:E,config:Z})}}),_.R(odc,{progressBarProps:E,
playheadData:g,interpolateDotPosition:function(){return Z().position!==2},
hidePlayhead:function(){return Z().playheadDotBehavior===1&&!C()}}))),_.R(rAp,{progressBarProps:E,
config:function(){return{activeChapter:n1a(E(),Z().chapterData),getProgressBarWidthPx:function(){return U().width},
isShortsPage:!!Z().isShortsPage,isInlinePlayer:!!Z().isInlinePlayback,useFadeInAnimation:!!Z().isInlinePlayback}},
progressBarWidthPx:function(){return c().width},
chapterData:function(){return Z().chapterData}}))},"uf");
_.Xhi.idomCompat=!0;Object.assign({},_.xXW(),{setState:function(){},
domMeasurements:{},appApi:_.J8x(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var YtI;
_.sDC=_.O(function(){var h,E=(h=_.Xm(bxZ().playerApi))!=null?h:void 0;h=_.G(_.Bm(!1,void 0,"Z9NQ1b"));var g=h.next().value,Z=h.next().value;h=_.G(_.Bm(!1,void 0,"HoVJXe"));var M=h.next().value,W=h.next().value;h=_.G(_.Bm(!1,void 0,"DWCY3"));var z=h.next().value,c=h.next().value;h=_.G(_.Bm(!1,void 0,"g4C2Zd"));var I=h.next().value,B=h.next().value;h=_.G(_.Bm(0,void 0,"lmVfFb"));var U=h.next().value,L=h.next().value;h=_.G(_.Bm(0,void 0,"mFLbzb"));var d=h.next().value,C=h.next().value;h=_.G(_.Bm(!1,void 0,
"hQN4Wb"));var q=h.next().value,w=h.next().value;h=_.G(_.Bm(0,void 0,"WWU0fb"));var r=h.next().value,v=h.next().value;h=_.G(_.Bm(0,void 0,"MJ7LMd"));var H=h.next().value,u=h.next().value;h=_.G(_.Bm("",void 0,"hnomOe"));var k=h.next().value,y=h.next().value;h=_.G(_.Bm(-1,void 0,"ARe3pf"));var A=h.next().value,E4=h.next().value,iO=_.Cw(function(){var RW={controlsVisible:g(),isOverlayHidden:M(),shouldWaitToHideControls:z(),isDragging:I(),isHovering:q(),videoDuration:r(),playedTime:H(),videoId:k(),draggedTime:d(),
hoveredTime:U(),playerState:A()};return Object.assign({},_.xXW(),RW,{domMeasurements:{},setState:function(NN){NN.controlsVisible!==void 0&&Z(NN.controlsVisible);NN.isOverlayHidden!==void 0&&W(NN.isOverlayHidden);NN.shouldWaitToHideControls!==void 0&&c(NN.shouldWaitToHideControls);NN.isDragging!==void 0&&B(NN.isDragging);NN.isHovering!==void 0&&w(NN.isHovering);NN.draggedTime!==void 0&&C(NN.draggedTime);NN.hoveredTime!==void 0&&L(NN.hoveredTime);NN.videoDuration!==void 0&&v(NN.videoDuration);NN.playedTime!==
void 0&&u(NN.playedTime);NN.videoId!==void 0&&y(NN.videoId);NN.playerState!==void 0&&E4(NN.playerState)},
appApi:_.J8x(),playerApi:E})},void 0,"Au4PIf");
_.m1(function(){E==null||E.addEventListener("onVideoProgress",r8d(iO));E==null||E.addEventListener("onVideoDataChange",lZM(iO));E==null||E.addEventListener("onStateChange",wrZ(iO))});
_.r9(function(){if(E==null?0:E.isReady())E==null||E.removeEventListener("onVideoProgress",r8d(iO)),E==null||E.removeEventListener("onVideoDataChange",lZM(iO)),E==null||E.removeEventListener("onStateChange",wrZ(iO))});
return _.R("desktop-shorts-player-controls",null,_.R(YtI,{playerControlsProps:iO}))},"vf");
YtI=_.O(function(h){var E=h.playerControlsProps;return _.R("div",{class:"desktopShortsPlayerControlsHost"},_.R(_.Xhi,{progressBarProps:E,config:function(){return{isShortsPage:!0,hideProgressBar:E().videoDuration<30&&E().playerState!==2&&!E().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"wf");_.VfC=_.O(function(h){function E(RW){RW!==0||L()?RW>50&&(L()||!C())?(d(!1),q(!0)):RW<=50&&(L()||C())&&(d(!1),q(!1)):d(!0)}
function g(RW,NN){var Cd;return _.a(function(Ba){if(Ba.nextAddress==1)return Ba.yield(_.L4(),2);Cd=Ba.yieldResult;NN&&Cd?(Cd.unMute(!0),RW&&(QXZ(RW,Cd.getVolume()),r(Cd.getVolume()))):Cd&&(Cd.mute(!0),RW&&QXZ(RW,0));_.SK(Ba)})}
function Z(RW){var NN,Cd;return _.a(function(Ba){if(Ba.nextAddress==1)return Ba.yield(_.L4(),2);NN=Ba.yieldResult;Cd=50;NN&&(Cd=NN.getVolume(),NN.isMuted()?QXZ(RW,0):QXZ(RW,Cd));r(Cd);_.SK(Ba)})}
var M=h.orientation;h=_.hf("desktop-shorts-volume-controls");var W=_.hf("button"),z=_.MC("input"),c=_.G(_.Bm(!1,void 0,"MvN0Tc")),I=c.next().value,B=c.next().value,U=_.G(_.Bm(!1,void 0,"aSjsEb"));c=U.next().value;U=U.next().value;var L=c,d=U;U=_.G(_.Bm(!0,void 0,"FUh46d"));c=U.next().value;U=U.next().value;var C=c,q=U;c=_.G(_.Bm(50,void 0,"yPke4d"));var w=c.next().value,r=c.next().value;c=_.Cw(function(){var RW=L();return _.J("web_shorts_keyboard_enable_mute_shortcut")?RW?_.NH("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.NH("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):RW?_.NH("UNMUTE_VOLUME",void 0,"Unmute"):_.NH("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
U=_.Cw(function(){var RW=L(),NN=C();return{sources:[{clientResource:{imageName:RW?_.J("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":NN?_.J("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.J("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var v=_.Cw(function(){var RW=w();return L()?RW+"% volume muted":RW+"% volume"},void 0,"xZsRmc"),H=_.Cw(function(){return M()==="vertical_down"},void 0,"FVqYmb");
_.vJ(function(){function RW(){B(!0)}
function NN(){B(!1)}
z&&z.value&&(z.value.addEventListener("focus",RW),z.value.addEventListener("focusout",NN),Z(z.value).then(function(){E(Number(hMN(z.value)))}));
W&&W.value&&(W.value.addEventListener("focus",RW),W.value.addEventListener("focusout",NN));_.r9(function(){var Cd;z==null||(Cd=z.value)==null||Cd.removeEventListener("focus",RW);var Ba;z==null||(Ba=z.value)==null||Ba.removeEventListener("focusout",NN);var $$;W==null||($$=W.value)==null||$$.removeEventListener("focus",RW);var Ha;W==null||(Ha=W.value)==null||Ha.removeEventListener("focusout",NN)})});
var u=_.J7(function(){if(z&&z.value){var RW=Number(hMN(z.value));ubM(RW);r(RW);z.value.style.setProperty("--gradient-percent",RW+"%");E(RW)}return!1}),k=_.J7(function(){B(!0)}),y=_.J7(function(){z&&z.value&&(g(z.value,L()),d(!L()));
return!1}),A={},E4={},iO={};
return _.R("desktop-shorts-volume-controls",{"on:pointerleave":_.J7(function(){B(!1)}),
class:_.CO("ytdDesktopShortsVolumeControlsHost",(A.ytdDesktopShortsVolumeControlsHostVertical=H,A.ytdDesktopShortsVolumeControlsHostExpanded=I,A)),el:h},_.R(_.P,{cond:function(){return!H()},
then:function(){var RW={};return _.R("div",{class:_.CO("ytdDesktopShortsVolumeControlsBackgroundScrim",(RW.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=I,RW))})}}),_.R("div",{class:_.CO((E4.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=H,E4))},_.R("button",{"aria-label":c,
title:c,el:W,"on:click":y,"on:pointerenter":k,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},U?_.R(_.pO,{data:U,alt:c,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.R("div",{class:_.CO("ytdDesktopShortsVolumeControlsSliderContainer",(iO.ytdDesktopShortsVolumeControlsSliderContainerExpanded=I,iO.ytdDesktopShortsVolumeControlsSliderContainerVertical=H,iO.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=H,iO.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return I()&&H()},iO))},_.R("input",{"aria-label":_.NH("VOLUME"),
title:_.NH("VOLUME"),el:z,"on:input":u,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":w,"aria-valuetext":v,"aria-valuemin":0,"aria-valuemax":100})))},"xf");_.k8Z=_.O(function(h){var E=h.data;return _.R("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.R(_.lk,{command:function(){return E().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.R(_.P,{cond:function(){return E().iconName},
then:function(g){return _.R(_.Ni,{icon:g})}}),_.R("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return E().text}),_.R(_.P,{cond:function(){return E().showEndChevron},
then:function(){return _.R(_.Ni,{icon:"CHEVRON_RIGHT"})}})))},"yf");var yAR=_.O(function(h){var E=h.data;var g=h.overlayDensity;h={};return _.R("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.R(_.Sv,{data:function(){return E().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(Z){var M=Z.data;
return _.R(_.W0,{data:function(){return(g==null?void 0:g())===1?Object.assign({},M(),{avatar:{avatarViewModel:Object.assign({},_.e(M().avatar,_.X5),{avatarImageSize:"AVATAR_SIZE_M"})}}):M()}})}}),_.R(_.Sv,{data:function(){return E().avatarStackViewModel}},{avatarStackViewModel:function(Z){return _.R(_.p0,{data:Z.data})}}),_.R(_.dK,{className:_.CO("ytReelChannelBarViewModelChannelName",(h.ytReelChannelBarViewModelChannelNameLarge=function(){return(g==null?void 0:g())===1},h)),
text:function(){return E().channelName},
linkInheritColor:!0,userInput:!0}),_.R("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.R(_.Sv,{data:function(){return E().subscribeButtonViewModel}},{subscribeButtonViewModel:function(Z){var M=Z.data;
return _.R(_.Mb,{data:function(){return(g==null?void 0:g())===1?Object.assign({},M(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},M().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):M()},
isOverlay:!1})},
buttonViewModel:_.$l})),_.R("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.R(_.Sv,{data:function(){var Z,M;return(M=_.e((Z=E())==null?void 0:Z.sponsorButtonViewModel,C_l))==null?void 0:M.sponsorButton}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"zf");var FxR=_.O(function(h){var E=function(){var Z;return(h==null?void 0:(Z=h.overlayDensity)==null?void 0:Z.call(h))===1?22:16},g={};
return _.R("yt-reel-multi-format-link-view-model",{class:_.CO("ytReelMultiFormatLinkViewModelHost",(g.ytReelMultiFormatLinkViewModelHostTall=!0,g.ytReelMultiFormatLinkViewModelHostLarge=function(){var Z;return((Z=h.overlayDensity)==null?void 0:Z.call(h))===1},g))},_.R(_.lk,{ariaLabel:function(){return h.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return h.data().command}},_.R("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.R(_.P,{cond:function(){return h.data().icon},
then:function(Z){return _.R(_.pO,{data:Z,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:E})}}),_.R(_.dK,{text:function(){return h.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Af");
FxR.idomCompat=!0;var AAi=_.O(function(h){var E=h.data;var g=h.overlayDensity;var Z=_.hf("yt-shorts-suggested-action-view-model");h=_.G(_.Bm(!1,void 0,"XwMNzb"));var M=h.next().value,W=h.next().value;h=_.G(_.Bm(!1,void 0,"ZysOx"));var z=h.next().value,c=h.next().value,I=function(){return E().isMultiLineSa},B=_.qI(WYz,function(){var k,y;
return(y=(k=E().toggleableContent)==null?void 0:k.entityKey)!=null?y:""}),U=function(){var k,y,A;
return(A=E().toggleableContent)!=null&&A.entityKey?(y=(k=B())==null?void 0:k.value)!=null?y:!1:!1},L=function(){var k,y,A,E4,iO,RW,NN,Cd,Ba,$$,Ha;
return E().toggleableContent?U()?(k=E().toggleableContent)==null?void 0:k.toggledData:(y=E().toggleableContent)==null?void 0:y.untoggledData:{primaryText:(Cd=(A=E().defaultContent)==null?void 0:A.primaryText)!=null?Cd:E().text,secondaryText:(E4=E().defaultContent)==null?void 0:E4.secondaryText,onTapCommand:(Ba=(iO=E().defaultContent)==null?void 0:iO.onTapCommand)!=null?Ba:E().onTapCommand,icon:($$=(RW=E().defaultContent)==null?void 0:RW.icon)!=null?$$:E().icon,image:(Ha=(NN=E().defaultContent)==null?
void 0:NN.image)!=null?Ha:E().image}},d=function(){return I()?E().trailingTapTarget:void 0},C=function(k,y){return function(){return M()?y:k}},q=function(){return{leadingSection:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(g==null?void 0:g())===1?C("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):C("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:C("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
h={};h=_.CO((h.ytShortsSuggestedActionViewModelStaticHost=function(){return!I()},h.ytShortsSuggestedActionViewModelDynamicHost=I,h.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return I()&&z()},h.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return I()&&!z()},h));
_.vJ(function(){if(I()){var k=0,y;if((y=E().animationParams)==null?0:y.shouldExpand){var A,E4;k=((E4=(A=E().animationParams)==null?void 0:A.expansionDelaySecs)!=null?E4:0)*1E3}var iO,RW=((iO=E().animationParams)==null?0:iO.shouldExpand)?setTimeout(function(){W(!0)},k):void 0,NN,Cd;
k=((NN=E().animationParams)==null?0:NN.visibilityDelaySecs)?((Cd=E().animationParams)==null?NaN:Cd.visibilityDelaySecs)*1E3:0;var Ba=setTimeout(function(){c(!0)},k);
_.r9(function(){RW&&clearTimeout(RW);clearTimeout(Ba)})}});
var w=function(k){_.Tl(k,Object.assign({},{form:{element:Z.value}}))},r=_.J7(function(){var k,y=(k=L())==null?void 0:k.onTapCommand;
y&&w(y)}),v=_.J7(function(){var k,y;
if(k=(y=d())==null?void 0:y.onTapCommand)return w(k),!1}),H=_.fO({"vertical-align":"bottom",
"border-radius":function(){var k;return I()?((k=E().defaultContent)==null?0:k.isCircleImage)?"50%":"4px":"0px"},
width:function(){var k,y,A;return I()&&((k=E().defaultContent)==null?0:k.imageSize)?((A=(y=E().defaultContent)==null?void 0:y.imageSize)!=null?A:24)+"px":null},
height:function(){var k,y,A;return I()&&((k=E().defaultContent)==null?0:k.imageSize)?((A=(y=E().defaultContent)==null?void 0:y.imageSize)!=null?A:24)+"px":null}}),u={};
return _.R("yt-shorts-suggested-action-view-model",{class:h,el:Z},_.R("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.R("button",{class:_.CO(function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var k;
return(k=E().useFullRoundedBorder)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!d()&&I()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":I()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var k;
return(k=E().disableFixedHeight)!=null&&k?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(u.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(g==null?void 0:g())===1},u)),
"on:click":r},_.R(_.rK,{model:{color:4}}),_.R("div",{class:_.CO(function(){return I()?q().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.R(_.P,{cond:function(){var k;
return(k=L())==null?void 0:k.image},
then:function(k){return _.R(_.pO,{data:k,alt:"",className:function(){return I()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:H})}}),_.R(_.P,{cond:function(){var k,y;
return(k=L())==null?void 0:(y=k.icon)==null?void 0:y.iconType},
then:function(k){return _.R(_.Ni,{icon:k,active:U,className:function(){return I()?M()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.R(_.P,{cond:function(){var k;
return(k=L())==null?void 0:k.primaryText},
then:function(k){return _.R("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.R(_.dK,{text:k}))}}),_.R(_.P,{cond:function(){var k;
return(k=L())==null?void 0:k.secondaryText},
then:function(k){return _.R("div",{class:function(){return q().secondaryText()}},_.R(_.dK,{text:k}))}}))),_.R(_.P,{cond:d,
then:function(k){return _.R("div",{class:function(){return q().trailingSection()},
"aria-label":function(){var y;return(y=k().a11yLabel)!=null?y:""},
"on:click":v,role:"button",tabindex:0},_.R(_.rK,{model:{color:4}}),_.R(_.Ni,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Bf");var TO0=_.O(function(h){var E=h.data;var g=h.overlayDensity;var Z=_.hf("yt-shorts-video-title-view-model");h=_.J7(function(z){if(_.$x(_.H3(z),Z.value,["A".toString()]))return!1;(z=E().truncatedTextOnTapCommand)&&_.Tl(z);return!1});
var M={},W={};return _.R("yt-shorts-video-title-view-model",{el:Z,class:_.CO("ytShortsVideoTitleViewModelHost",(M.ytShortsVideoTitleViewModelHostClickable=function(){return!!E().truncatedTextOnTapCommand},M)),
"on:click":h},_.R("h2",{class:_.CO("ytShortsVideoTitleViewModelShortsVideoTitle",(W.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(g==null?void 0:g())===1},W))},_.R(_.dK,{text:function(){return E().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(g==null?void 0:g())===1}})))},"Cf");_.b8p=_.O(function(h){var E=h.data;var g=h.overlayDensity;var Z=function(){return(g==null?void 0:g())===1};
return _.R("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.R(_.Sv,{data:function(){return E().metadataItems}},{badgeViewModel:function(M){M=M.data;
return _.R("div",{class:_.CO(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.R(_.xz,{data:M}))},
playerDisclosureViewModel:function(M){M=M.data;return _.R("div",{class:_.CO(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.R(_.k8Z,{data:M}))},
shortsSuggestedActionViewModel:function(M){M=M.data;return _.R("div",{class:_.CO(function(){return Z()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.R(AAi,{data:M,
overlayDensity:g}))},
reelChannelBarViewModel:function(M){M=M.data;var W={};return _.R("div",{class:_.CO("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return Z()},W))},_.R(yAR,{data:M,
overlayDensity:g}))},
reelMultiFormatLinkViewModel:function(M){M=M.data;var W={};return _.R("div",{class:_.CO("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return Z()},W))},_.R(FxR,{data:M,
overlayDensity:g}))},
shortsVideoTitleViewModel:function(M){M=M.data;var W={};return _.R("div",{class:_.CO("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return Z()},W))},_.R(TO0,{data:M,
overlayDensity:g}))},
reelSoundMetadataViewModel:function(M){M=M.data;var W={};return _.R("div",{class:_.CO("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return Z()},W))},_.R(_.VLC,{data:M,
overlayDensity:g}))},
toggleButtonViewModel:function(M){M=M.data;var W={};return _.R("div",{class:_.CO("ytReelMetapanelViewModelMetapanelItem",(W.ytReelMetapanelViewModelExpansive=function(){return Z()},W))},_.R(_.Z7,{data:M}))}}))},"Df");var uRI=_.O(function(h){var E=_.au(h,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),g=E.size,Z=E.onTap,M=E.disabled,W=E.tooltipText;return _.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(_.H4,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:g(),disabled:M(),tooltipText:W(),onTap:Z}},
iconName:h.iconType}))},"Ef"),QDi=_.O(function(h){function E(U){U.stopPropagation();
U.code==="ArrowUp"?(U.preventDefault(),Zc$(c.value)):U.code==="ArrowDown"?(U.preventDefault(),MoV(c.value)):U.code==="KeyM"?EGW():(U.code==="KeyK"||U.code==="Space")&&gG$(I())}
var g=_.au(h,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});h=g.previousButtonDisabled;var Z=g.nextButtonDisabled,M=g.data,W=g.playabilityStatus,z=g.previewThumbnail,c=_.hf("ytd-shorts-miniplayer-overlay"),I=_.VQ(_.zFM),B;_.m1(function(){(B=_.Yp(c.value))&&B.addEventListener("keydown",E)});
_.r9(function(){var U;(U=B)==null||U.removeEventListener("keydown",E)});
g=function(){var U,L,d;return(U=M())==null?void 0:(L=U.reelPlayerOverlayRenderer)==null?void 0:(d=L.likeButton)==null?void 0:d.likeButtonRenderer};
return _.R("ytd-shorts-miniplayer-overlay",{el:c,class:"ytdShortsMiniplayerOverlayHost"},_.R("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.fO({"background-image":function(){var U=z();return U?'url("'+_.P$(U.thumbnails)+'")':""}})}),_.R("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.R("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.R(uRI,{iconType:function(){var U=I();
return U===2||U===-1||U===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){gG$(I())},
tooltipText:function(){var U=I();return U===1||U===3?_.NH("PLAYER_LABEL_PAUSE"):_.NH("PLAYER_LABEL_PLAY")}}),_.R(_.VfC,{orientation:"horizontal_right"})),_.R("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.R(uRI,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:h,onTap:function(){Zc$(c.value)},
tooltipText:_.NH("PREVIOUS_VIDEO_LABEL")}),_.R(uRI,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:Z,onTap:function(){MoV(c.value)},
tooltipText:_.NH("NEXT_VIDEO_LABEL")}),_.J("web_shorts_pip_like_button")?_.R("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.R(Tjm,{buttonTooltipPosition:"left",data:g,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.R("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.R(_.P,{cond:function(){var U,L;return _.e((U=M())==null?void 0:(L=U.reelPlayerOverlayRenderer)==null?void 0:L.metapanel,
_.U8M)},
then:function(U){return _.R("div",{class:_.CO("ytdShortsMiniplayerOverlayInteractive")},_.R(_.b8p,{data:U}))}})),_.R("div",{class:_.CO("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var U;return!((U=M())==null||!U.adsOverlay)||W()&&!F6z(W())}},_.R("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.R(_.sDC,null)))),_.R(_.P,{cond:function(){var U=M(),L,d;
U=_.e(U==null?void 0:(L=U.adsOverlay)==null?void 0:(d=L.fulfillmentContent)==null?void 0:d.fulfilledLayout,aDF);return _.e(U==null?void 0:U.renderingContent,P0D)},
then:function(U){return _.R("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.R(meF,{data:U}))}}))},"Ff");var Wez=_.O(function(){var h=_.G(_.Bm(new _.Ns(NaN,NaN),void 0,"hq9Bjf")),E=h.next().value,g=h.next().value;h=_.G(_.Bm(!1,void 0,"Mu3aZc"));var Z=h.next().value,M=h.next().value,W=_.G(_.Bm(!1,void 0,"LGtoFb"));h=W.next().value;var z=W.next().value,c=_.GF().resolve(_.Yu).miniplayerPropSignalMap[0],I=c.data,B=c.shortsData,U=c.nextButtonDisabled,L=c.shortsPreviewThumbnail,d=c.previousButtonDisabled,C=c.externalPlaylistData;W=c.toastData;var q=c.playabilityStatus,w=c.isDisabled,r=c.playerVe,v=c.closeVe;
c=_.VQ(_.i1);_.QX("yt-pip-window-resized",function(y){g(y)});
_.QX("yt-activate-pip-miniplayer",function(){return _.a(function(y){z(!0);_.SK(y)})});
var H=function(){var y;return!((y=C())==null||!y.contents)&&Z()},u=function(){var y=E(),A=!!I(),E4=H();
y=y.clone();A&&(y.height-=76);E4&&(y.height-=285);return y},k=function(){M(!Z())};
_.lX(function(){var y=r(),A=_.sH(11),E4=_.YN(11);A&&E4&&y&&(_.uw(A,E4,y),E4=v())&&(_.Qp(A,y,[E4]),_.Eo(A,[E4]))},"fHkmfb");
return _.R("ytd-pip-container",{class:"ytdPipContainerHost"},_.R(_.P,{cond:h,then:function(){return _.R(_.WxX,{isDisabled:w,playabilityStatus:q,size:u})}}),_.R(_.P,{cond:I,
then:function(){return _.R(_.Z8R,{data:I,expanded:Z,onExpandClick:k,playlistData:C})}}),_.R(_.P,{cond:H,
then:function(){return _.R("div",{class:"ytdPipContainerPlaylistPanel"},_.R(_.F4f,{data:C,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.R(_.P,{cond:c,
then:function(){return _.R(QDi,{data:B,nextButtonDisabled:U,previousButtonDisabled:d,playabilityStatus:q,previewThumbnail:L})}}),_.R("div",{class:"ytdPipContainerToast"},_.R(_.phU,{toastData:W})))},"Gf");var Rl=function(h,E){var g=this;this.pipController=h;this.JSC$18720_clientRoot=E;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=LVz();this.watchPipEnabled=_.J("web_watch_pip");this.shortsPipEnabled=_.J("web_shorts_pip");this.JSC$18720_watchWhileEnabled=_.J("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;_.kT(_.Gv(),ZSu,function(Z){g.isSingleOptionSurveyActive=Z});
this.JSC$18720_onPlayerPlayVideo=this.JSC$18720_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);_.bp(_.Tq.getInstance(),this.miniplayerServiceActionMap,this.JSC$18720_clientRoot);h.pictureInPictureSupported()&&_.vT("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},MSH,aaJ,WEZ,cVI,iwi,UWC;
Rl.prototype.handleMediaSessionPipActivation=function(){var h=this,E;return _.a(function(g){_.sU().mediaSessionPipActivation=!0;E=_.GF().resolve(_.p4);return E.isOnWatch()&&h.watchPipEnabled?(_.sU().watchPipActivation=!0,_.hop(h,E.data),g.jumpTo(0)):E.isOnShorts()&&h.shortsPipEnabled?(_.sU().shortsPipActivation=!0,_.EZG(h),g.jumpTo(0)):h.isMiniplayerActive()&&h.watchPipEnabled&&!h.watchWhileMode?g.yield(gZI(h),0):g.jumpTo(0)})};
var gZI=function(h){var E,g,Z,M;return _.a(function(W){if(W.nextAddress==1)return E=!h.miniplayerToPipMode,g=h.playerElement,Z=h.miniplayerData,M=h.watchResponse,W.yield(h.deactivate(),2);if(W.nextAddress!=3)return E?(_.sU().mediaSessionPipActivation=!0,_.sU().watchPipActivation=!0):_.sU().miniplayerButtonActivation=!0,W.yield(h.activate(g,Z,M),3);h.miniplayerToPipMode=E;_.SK(W)})};
Rl.prototype.onDownloadedVideoDeleted=function(h){var E,g=_.e((E=this.miniplayerData)==null?void 0:E.watchEndpoint,_.MH),Z,M;g&&((Z=this.watchResponse)==null?void 0:(M=Z.playerResponse)==null?void 0:M.offlineState)!==void 0&&(E=g.videoId)&&h&&E===h&&this.close()};
Rl.prototype.onShowMiniplayerCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L,d;return _.a(function(C){switch(C.nextAddress){case 1:return g=_.e(h,GdM),M=(Z=g)==null?void 0:Z.miniplayerCommand,W=_.e(M,_.MH),M&&W&&!E.active?C.yield(_.QU.getInstance(),2):C.return();case 2:return z=C.yieldResult,C.yield((c=z)==null?void 0:c.get("yt-miniplayer-shown-video-id"),3);case 3:I=C.yieldResult;B=W.videoId;if(!B||I===B)return C.return();U=_.GF().resolve(_.p4);if(U.isOnWatch())return _.O$(Error("Pj")),C.return();
L={channelItem:{externalId:btoa(B)}};E.readyToResumeVe=_.Uz(121253,void 0,void 0,L);_.sU().showMiniplayerCommandActivation=!0;return C.yield(_.LLM(E,M,!0),4);case 4:return E.active&&(_.PD(E,{readyToResumeVe:E.readyToResumeVe,isReadyToResume:!0}),E.isReadyToResume=!0),C.yield((d=z)==null?void 0:d.set("yt-miniplayer-shown-video-id",W.videoId),5);case 5:E.readyToResumeVe=void 0,_.SK(C)}})};
Rl.prototype.init=function(h){this.miniplayerEl?_.O$(new _.xX("MiniplayerService already initialized.")):this.miniplayerEl=h};
Rl.prototype.isInitialized=function(){var h=!!this.miniplayerEl;h||_.O$(new _.xX("MiniplayerService used before initialized."));return h};
_.hop=function(h,E){if(h.isInitialized()){var g=_.my(E.response,!1,E.playerResponse),Z=_.GF().resolve(_.p4).getPlayerFromWatch();_.sU().currentEndpoint=g.watchEndpoint||null;h.activate(Z,g,E)}};
_.EZG=function(h){if(h.isInitialized()){var E=_.GF().resolve(_.p4).getPlayerFromShorts();h.activate(E)}};
MSH=function(h,E){var g;(g=!h.isInitialized())||(g=_.GF().resolve(_.p4).isOnWatch()&&h.watchPipMode,g=!(h.isMiniplayerActive()&&(_.sU().userActivation||_.sU().lockupActivation||g)));if(g)return!1;Zwp(h,E)?_.ii(h):UWC(h,E);return h.watchPipMode?!_.GF().resolve(_.p4).isOnWatch():!0};
Rl.prototype.isMiniplayerActive=function(){return this.active};
var Zwp=function(h,E){var g;E=(g=_.e(E,_.MH))==null?void 0:g.videoId;var Z,M;h=(M=_.e((Z=h.miniplayerData)==null?void 0:Z.watchEndpoint,_.MH))==null?void 0:M.videoId;return E!=null&&E===h};
Rl.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Ra(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.BX(this.miniplayerEl,"yt-navigate-home-action"))};
_.LLM=function(h,E,g,Z){g=g===void 0?!1:g;var M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:if(h.active){c.jumpTo(2);break}M=_.GF().resolve(_.p4);if(z=(W=h.playerElement)!=null?W:M.getPlayerFromWatch()){c.jumpTo(3);break}return c.yield(_.GF().resolve(_.IJ),4);case 4:z=M.getPlayerFromWatch();case 3:if(!z){_.O$(Error("Rj"));c.jumpTo(2);break}return c.yield(h.activate(z,Z),2);case 2:return h.active?c.yield(UWC(h,E,g),0):c.return()}})};
Rl.prototype.activate=function(h,E,g){var Z=this,M,W,z,c,I,B,U,L,d;return _.a(function(C){switch(C.nextAddress){case 1:if(!Z.isInitialized())return C.return();if(!h)return _.O$(Error("Rj")),C.return();if(_.JYf()||Z.isMiniplayerActive())var q=!0;else q=_.sU().watchPipActivation||_.sU().watchWhileActivation,_.GF().resolve(_.p4).isOnWatch()&&!q?(_.O$(new _.xX("miniplayer activated on watch page")),q=!0):q=_.sU().watchWhileActivation?Z.userDeactivatedWatchWhile||!!document.pictureInPictureElement||Snx():
!1;if(q)return CBf(),C.return();M=_.sU().mediaSessionPipActivation;W=_.sU().shortsPipActivation;z=_.sU().watchPipActivation;I=(c=_.sU().watchWhileActivation)||z;B=z||W;if(!Z.pictureInPictureEnabled()||!B){C.jumpTo(2);break}return C.yield(MAC(Z,M),3);case 3:if(!C.yieldResult)return _.O$(Error("Qj")),CBf(),C.return();case 2:return Z.setActive(!0),Z.watchResponse=g,Z.playerElement=h,Z.updateMiniplayerData(E),C.yield(WEZ(Z,h),4);case 4:if(!Z.active)return _.O$(new _.xX("miniplayer deactivated during activation")),
Z.removePlayerListeners(),C.return();q=_.GF().resolve(_.oS);q.addEventListener("yt-navigate",_.qm(Z,Z.onPlaylistNavigate));q.addEventListener("yt-playlist-data-updated",_.qm(Z,Z.JSC$18720_onPlaylistDataUpdated));Z.JSC$18720_onPlaylistDataUpdated();CBf();Z.JSC$18720_watchWhileEnabled&&_.pmX(Z,c);Z.pictureInPictureEnabled()&&Z.shortsPipEnabled&&(Z.shortsPipMode=W,_.Gv().dispatch(zWl(Z.shortsPipMode)));Z.pictureInPictureEnabled()&&Z.watchPipEnabled&&(Z.watchPipMode=z,_.w7$(Z.handleMediaSessionPipActivation));
Z.player&&(U=Z.player.getPlayerState(),L=U===1,_.Gv().dispatch(Uxk(U)),_.U7(Z.miniplayerEl,"yt-miniplayer-play-state-changed",[L]),_.sU().isVideoPlaying=L);_.U7(Z.miniplayerEl,"yt-miniplayer-endpoint-changed");G90(Z);_.zox(Z);if(Z.shortsPipMode||Z.watchPipMode)C=C.yield(_.BX(Z.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{q=C.yield;var w=_.BX(Z.miniplayerEl,"yt-activate-miniplayer",[I])[0];C=q.call(C,w,6)}return C;case 6:if(Z.watchResponse){q=Z.getScreenLayer();w=_.sH(0);var r=XsN(0);w&&r&&
(_.kN(w,r,q),q===0&&Obz(void 0,0))}aaJ(Z);cVI(Z,!0);(d=Z.getPlayerElement())==null||d.focusOnPlayer();_.SK(C)}})};
Rl.prototype.updateMiniplayerData=function(h){this.miniplayerData=h;_.PD(this,{data:h})};
_.zox=function(h){var E,g,Z=((E=h.miniplayerData)==null?void 0:(g=E.miniplayerRenderer)==null?void 0:g.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";E=h.watchWhileMode||h.watchPipMode?Z&&!_.GF().resolve(_.p4).isOnWatch():Z;_.PD(h,{isDisabled:E});var M,W;g=_.e((M=h.miniplayerData)==null?void 0:(W=M.miniplayerRenderer)==null?void 0:W.minimizedEndpoint,_.sr);E&&g&&_.GF().resolve(_.hz).openSheet({openPopupActionCommand:{openPopupAction:g}},h.miniplayerEl)};
aaJ=function(h){if(h.watchResponse&&!iwi(h)){var E,g=(E=h.watchResponse.playerResponse)==null?void 0:E.trackingParams;g&&(_.PD(h,{expandVe:_.Uz(35989),closeVe:_.Uz(34699),readyToResumeCloseVe:_.Uz(131070),repositionVe:_.Uz(226204),resizeVe:_.Uz(226205)}),_.PD(h,{playerVe:_.rp(g)}))}};
WEZ=function(h,E){return _.a(function(g){if(g.nextAddress==1)return E.preparePlayer(),g.yield(E.getPlayerPromise(),2);h.player=g.yieldResult;h.player&&(h.player.addEventListener("onPlayVideo",h.JSC$18720_onPlayerPlayVideo),h.player.addEventListener("onCloseMiniplayer",h.onPlayerCloseMiniplayer),h.player.addEventListener("onExpandMiniplayer",h.onPlayerExpandMiniplayer),h.player.addEventListener("onStateChange",h.onPlayerStateChange));_.SK(g)})};
_.p=Rl.prototype;_.p.JSC$18720_onPlayerPlayVideo=function(h){var E=h.sessionData&&"autonav"in h.sessionData,g;h.sessionData&&h.sessionData.itct&&(g=h.sessionData.itct);var Z=h.watchEndpoint;E=Z&&E?_.Bn$(Z,g):_.cn(h.videoId,h.listId||void 0,g);h.sessionData&&_.zG(_.e(E.commandMetadata,_.qH).url,h.sessionData);UWC(this,E)};
_.p.onPlayerExpandMiniplayer=function(){_.ii(this)};
_.p.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.p.onPlayerStateChange=function(){if(this.player){var h=this.player.getPlayerState(),E=h===1;_.Gv().dispatch(Uxk(h));_.Gv().dispatch(_.dxA(h));_.U7(this.miniplayerEl,"yt-miniplayer-play-state-changed",[E]);_.sU().isVideoPlaying=E;if(h===0){E=!_.q8.getInstance().isAutoplaySetExplicitly();var g,Z,M,W,z,c,I=(g=this.watchResponse.response)==null?void 0:(Z=g.contents)==null?void 0:(M=Z.twoColumnWatchNextResults)==null?void 0:(W=M.autoplay)==null?void 0:(z=W.autoplay)==null?void 0:(c=z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:c.confirmDialogRenderer;E&&I&&this.player.setAutonavState(1)}h===0&&this.watchWhileMode&&this.deactivate()}};
_.p.onPlaylistNavigate=function(h,E){var g=this,Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1){if(!_.e(E.endpoint,_.MH))return U.return();_.sU().currentEndpoint=E.endpoint;_.U7(g.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.GF().resolve(_.p4).isOnWatch()&&(g.watchWhileMode||g.watchPipMode))return U.return();h.stopPropagation();(W=(M=_.e((Z=E.endpoint)==null?void 0:Z.commandMetadata,_.qH))==null?void 0:M.url)&&E.tempData&&!_.Kt.isEmpty(E.tempData)&&_.zG(W,E.tempData);z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};c=new d1M(function(){return g.getPlayerElement()},z,{layer:g.getScreenLayer()});
I=function(L){c.processChunk({endpoint:E.endpoint,data:L})};
oZX(g);g.miniplayerFetchRequest=IaU(g,E.endpoint,I);_.CX(U,2);return U.yield(g.miniplayerFetchRequest,4)}if(U.nextAddress!=2)return B=U.yieldResult,Roi(g,B),_.bN(U,0);_.th(U);_.SK(U)})};
_.p.JSC$18720_onPlaylistDataUpdated=function(){var h=_.GF().resolve(_.oS).getPlaylistData();this.hasPlaylistData=!!h;_.PD(this,{externalPlaylistData:h||{}})};
_.p.close=function(h){if(this.isInitialized())if(h){if(!((this.watchWhileMode||this.watchPipMode)&&_.GF().resolve(_.p4).isOnWatch()||this.shortsPipMode)){var E;(E=this.getPlayerElement())==null||E.stop()}this.deactivate()}else _.Uk().closeMiniplayer(this.miniplayerEl)};
_.p.deactivate=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){if(!E.isInitialized()||!E.active)return z.return();E.setActive(!1);oZX(E);(g=!!h&&Zwp(E,h))&&E.isSingleOptionSurveyActive&&_.BX(E.miniplayerEl,"yt-show-watch-page-survey",[E.isSingleOptionSurveyActive]);return z.yield(PX0(E),2)}if(z.nextAddress!=3){cVI(E,!1);E.isReadyToResume=!1;E.watchResponse=void 0;E.updateMiniplayerData(void 0);E.shortsPipMode&&(E.shortsPipMode=!1,_.Gv().dispatch(zWl(E.shortsPipMode)),dop(E.pipController),
(Z=E.player)==null||Z.setInternalSize(NaN,NaN));E.watchPipMode&&(E.watchPipMode=!1,dop(E.pipController));(M=E.watchWhileMode)&&_.pmX(E,!1);E.removePlayerListeners();var c=_.GF().resolve(_.oS);c.removeEventListener("yt-navigate",_.qm(E,E.onPlaylistNavigate));c.removeEventListener("yt-playlist-data-updated",_.qm(E,E.JSC$18720_onPlaylistDataUpdated));_.sU().currentEndpoint=null;_.U7(E.miniplayerEl,"yt-miniplayer-endpoint-changed");E.playerElement=null;CBf();if(E.shortsPipMode||E.watchPipMode)z=z.jumpTo(3);
else{c=z.yield;var I=_.BX(E.miniplayerEl,"yt-deactivate-miniplayer",[g,M])[0];z=c.call(z,I,3)}return z}(W=E.player)==null||W.setInternalSize(NaN,NaN);E.player=null;_.SK(z)})};
var PX0=function(h){var E;return _.a(function(g){E=_.GF().resolve(_.p4);return h.shortsPipMode?g.yield(E.movePlayerToShorts(h.playerElement),0):g.yield(E.movePlayerToWatch(h.playerElement),0)})};
Rl.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18720_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Rl.prototype.setActive=function(h){this.active=h;this.isSingleOptionSurveyActive?_.BX(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.BX(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Gv().dispatch(_.RY({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.pmX=function(h,E){h.watchWhileMode=E;_.PD(h,{watchWhile:E})};
cVI=function(h,E){if(!iwi(h))if(h.shortsPipMode||h.watchPipMode){var g;(g=h.player)==null||g.setDocumentPictureInPicture(E)}else{var Z;(Z=h.player)==null||Z.setMinimized(E)}};
iwi=function(h){return h.watchWhileMode&&_.J("kevlar_watch_while_counterfactual")};
_.ii=function(h){var E;return _.a(function(g){switch(g.nextAddress){case 1:if(!h.isInitialized())return g.return();_.CX(g,2);return g.yield(h.miniplayerFetchRequest,4);case 4:_.bN(g,3);break;case 2:_.th(g);case 3:h.watchResponse&&h.miniplayerData&&h.miniplayerData.watchEndpoint?(E={url:h.watchResponse.url,endpoint:h.miniplayerData.watchEndpoint,data:h.watchResponse,miniplayer:!0},_.Ra(h.miniplayerEl,"yt-navigate-cache",E)):h.miniplayerData&&h.miniplayerData.watchEndpoint&&_.Ra(h.miniplayerEl,"yt-navigate",
{endpoint:h.miniplayerData.watchEndpoint}),_.SK(g)}})};
UWC=function(h,E,g){var Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){if(Zwp(h,E))return c.return();_.sU().currentEndpoint=E;_.U7(h.miniplayerEl,"yt-miniplayer-endpoint-changed");_.U7(h.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.sU().isVideoPlaying=!1;Z={clientParams:{miniplayer:!0,autoSaveToQueue:!g}};M=new d1M(function(){return h.getPlayerElement()},Z,{layer:h.getScreenLayer(),
parentLayer:0},void 0,h.readyToResumeVe);W=function(I){var B,U,L=Object.assign({},(B=I.playerResponse)==null?void 0:(U=B.playerConfig)==null?void 0:U.playbackStartConfig,{startPaused:!0}),d;g&&((d=I.playerResponse)==null?0:d.playerConfig)&&(I.playerResponse.playerConfig.playbackStartConfig=L);M.processChunk({endpoint:E,data:I})};
oZX(h);h.miniplayerFetchRequest=IaU(h,E,W);_.CX(c,2);return c.yield(h.miniplayerFetchRequest,4)}if(c.nextAddress!=2)return z=c.yieldResult,Roi(h,z),_.bN(c,0);_.th(c);_.SK(c)})};
Rl.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var oZX=function(h){h.miniplayerFetchRequest&&(h.miniplayerFetchRequest.cancel&&h.miniplayerFetchRequest.cancel("Active request obsolete"),h.miniplayerFetchRequest=null)},IaU=function(h,E,g){var Z=_.Fp.instance,M,W=(M=_.e(E.commandMetadata,_.qH))==null?void 0:M.url,z;
M=!W||_.J("disable_miniplayer_tempdata")?{}:(z=tuz(W))!=null?z:{};return ku(Z,E,M,window.location.href,"watch",function(c,I){g(I)},function(c){return c!==h.miniplayerFetchRequest})},Roi=function(h,E){var g;
_.a(function(Z){if(!E)return Z.return();h.watchResponse=E;aaJ(h);G90(h);g=_.my(E.response,!1,E.playerResponse);if(h.isMiniplayerActive()){E.response&&(h.playerElement.watchNextData=E.response);var M=_.Kt.getValueByKeys.apply(_.Kt,[E].concat(_.$E(wvC)));_.Kt.getValueByKeys.apply(_.Kt,[E].concat(_.$E(v_l)))&&M&&_.GF().resolve(_.oS).setAutoplayRenderer(M);if(M)if(_.J("kevlar_is_pupi_enabled")){var W,z,c,I,B,U=((W=E.response)==null?0:(z=W.playerOverlays)==null?0:(c=z.playerOverlayRenderer)==null?0:(I=
c.autonavToggle)==null?0:(B=I.autoplaySwitchButtonRenderer)==null?0:B.enabled)?2:1;_.q8.getInstance().setState(U,!1,!1)}else W=nid()?2:1,(U=h.player)==null||U.setAutonavState(W);h.updateMiniplayerData(g);_.zox(h)}_.SK(Z)})},G90=function(h){var E,g,Z=(E=h.watchResponse)==null?void 0:(g=E.playerResponse)==null?void 0:g.playabilityStatus,M;
E=Z==null?void 0:(M=Z.miniplayer)==null?void 0:M.miniplayerRenderer;(E==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&E.minimizedEndpoint&&_.LZ(h.miniplayerEl,[E.minimizedEndpoint]);_.PD(h,{playabilityStatus:Z})};
Rl.prototype.openToast=function(h,E){_.PD(this,{toastData:{data:h,label:E}})};
_.PD=function(h,E){(0,h.miniplayerPropSignalMap[1])(E)};
Rl.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var h;return this.playerElement?this.playerElement:(h=_.UB(this.miniplayerEl).querySelector("#player-container"))==null?void 0:h.firstElementChild};
Rl.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var MAC=function(h,E){E=E===void 0?!1:E;var g,Z,M,W,z,c,I;return _.a(function(B){if(B.nextAddress==1){g=navigator.userActivation.isActive||E;if(!g||!h.pictureInPictureSupported())return B.return(!1);Z=B9p(h);M=Z.width;W=Z.height;return B.yield(h.pipController.openWindow({width:M,height:W}),2)}z=B.yieldResult;c=h.pipController.getWindow();if(!c||!z)return B.return(!1);c.document.body.style.overflow="hidden";I=pyd(c);CxC(h.pipController,function(){U6G(h);I()});
return B.return(!0)})},B9p=function(h){var E=_.sU().shortsPipActivation,g,Z;
h=E?.5625:(Z=(g=h.player)==null?void 0:g.getVideoAspectRatio())!=null?Z:16/9;g=Math.min(window.innerWidth,window.innerHeight)/2;E=E?0:76;return h>1?new _.Ns(g,E+g/h):new _.Ns(g*h,E+g)},U6G=function(h){var E;
_.a(function(g){E=_.GF().resolve(_.p4);return E.isOnWatch()&&h.watchPipMode||E.isOnShorts()&&h.shortsPipMode?g.yield(h.deactivate(),0):h.miniplayerToPipMode?g.yield(gZI(h),0):h.watchPipMode?g.yield(_.ii(h),0):g.jumpTo(0)})};
Rl.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.ze.Object.defineProperties(Rl.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Rl[R2]=[JL0,QlD];var LEI="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(" "),
jpC="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(" "),d6I="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
CXX="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var JV0=null;var eoR={},q9R=(eoR.initialized={priority:10,callback:function(h){var E=_.GF();E.addProvider({provide:JVD,useClass:NxJ});E.addProvider({provide:_.fTU,useFactory:function(){return new eol}});
E.addProvider({provide:Mj,useValue:_.nF("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});E.addProvider({provide:dAX,useValue:5184E6});E.addProvider({provide:XMC,useValue:_.xu()});E.addProvider({provide:TIX,useClass:gyl});E.addProvider({provide:R0,useClass:R0});E.addProvider({provide:_.IJ,useFactory:function(){return akB.promise}});
E.addProvider({provide:_.i7m,useFactory:function(){return _.c$D.promise}});
E.addProvider({provide:Bmx,useValue:function(){var I;return((I=_.zD())==null?void 0:I.getPlayer())||null}});
var g={};E.addProvider((g.provide=_.rn,g.useFactory=function(I,B){return function(){return PRu(I,B)}},g[R2]=[Mj,
dAX],g));g={};E.addProvider((g.provide=_.H_,g.useClass=IRR,g[R2]=[Mj,dAX],g));g={};E.addProvider((g.provide=_.JJz,g.useClass=UZG,g[R2]=[_.H_],g));E.addProvider({provide:Av,useFactory:_.Gv});E.addProvider({provide:G5,useFactory:_.Gv});E.addProvider({provide:W20,useFactory:_.Gv});E.addProvider({provide:syB,useFactory:_.Gv});E.addProvider({provide:_.c4,useFactory:_.Gv});E.addProvider({provide:nS,useValue:_.fe});E.addProvider({provide:jHC,useClass:DRa});E.addProvider({provide:bdG,useClass:T$p});E.addProvider({provide:jk,
useClass:jk});E.addProvider({provide:Xp,useClass:Xp});E.addProvider({provide:Ym,useClass:Ym});E.addProvider({provide:VH,useClass:VH});E.addProvider({provide:Nf,useClass:Nf});E.addProvider({provide:EF,useClass:EF});E.addProvider({provide:Fs,useClass:Fs});E.addProvider({provide:_.gUI,useValue:kRi});E.addProvider({provide:_.gP,useFactory:_.SQ});E.addProvider({provide:Os,useFactory:_.xe});g={};E.addProvider((g.provide=GkN,g.useFactory=function(I){return function(B){var U=U===void 0?{}:U;var L,d,C=(d=
_.e((L=B.endpoint)==null?void 0:L.commandMetadata,_.qH))==null?void 0:d.rootVe;if(C){var q,w;if(L=B.previousCsn||((w=_.e((q=B.endpoint)==null?void 0:q.commandMetadata,HCM))==null?void 0:w.parentCsn)){var r=r===void 0?{}:r;if(L!==_.sH(r.layer)||C!==XsN(r.layer))yBx(L,r.cttAuthInfo,r.layer||0),Obz(L,r.layer||0),q=r.layer||0,_.OW(nFZ(q===void 0?0:q),C);U.parentCsn=L}B.endpoint&&L?MVC(I,B.endpoint,U):_.mw(I,C,void 0,U);var v;((v=B.response)==null?0:v.trackingParams)&&I.graftServerVe(B.response.trackingParams);
var H;((H=B.playerResponse)==null?0:H.trackingParams)&&I.graftServerVe(B.playerResponse.trackingParams);var u;((u=B.reelWatchSequenceResponse)==null?0:u.trackingParams)&&I.graftServerVe(B.reelWatchSequenceResponse.trackingParams)}}},g[R2]=[_.gP],g));
g={};E.addProvider((g.provide=GNX,g.useClass=pic,g[R2]=[nS,_.c4],g));g={};E.addProvider((g.provide=Vg,g.useClass=Vg,g[R2]=[_.IJ,_.c4],g));g={};E.addProvider((g.provide=nT,g.useClass=nT,g[R2]=[G5,_.zF],g));E.addProvider({provide:_.I0x,useClass:qGx});g={};E.addProvider((g.provide=_.QW,g.useClass=BUI,g[R2]=[_.I0x,_.pl(_.g_)],g));E.addProvider({provide:_.hz,useClass:FB});E.addProvider({provide:_.vMi,useClass:pAU});E.addProvider({provide:_.Eu,useClass:kO});_.J("enable_ai_companion")&&E.addProvider({provide:_.g_,
useClass:jKR});g={};E.addProvider((g.provide=_.vq,g.useClass=eax,g[R2]=[_.vq],g));E.addProvider({provide:_.rL,useClass:sWp});E.addProvider({provide:hI,useClass:hI});E.addProvider({provide:e9,useClass:e9});E.addProvider({provide:p5,useClass:p5});g={};E.addProvider((g.provide=nv,g.useClass=nv,g[R2]=[_.zF,_.yV],g));E.addProvider({provide:Pq,useClass:yg});g={};E.addProvider((g.provide=L5,g.useClass=L5,g[R2]=[_.hz,Pq],g));g={};E.addProvider((g.provide=oZ,g.useClass=oZ,g[R2]=[_.hz],g));_.J("web_enable_feedback_endpoint_resolver")&&
(g={},E.addProvider((g.provide=TB,g.useClass=TB,g[R2]=[Av,FP],g)),E.addProvider({provide:FP,useClass:IlG}));_.J("web_enable_feedback_endpoint_resolver_batch_2")&&(g={},E.addProvider((g.provide=ut,g.useClass=ut,g[R2]=[Av],g)),g={},E.addProvider((g.provide=bt,g.useClass=bt,g[R2]=[FP],g)));g={};E.addProvider((g.provide=Bq,g.useClass=Bq,g[R2]=[_.Eu,Pq],g));g={};E.addProvider((g.provide=cq,g.useClass=cq,g[R2]=[_.Eu],g));g={};E.addProvider((g.provide=Us,g.useClass=Us,g[R2]=[_.yV,_.QW],g));g={};E.addProvider((g.provide=
RZ,g.useClass=RZ,g[R2]=[_.yV,_.gP],g));E.addProvider({provide:kq,useClass:kq});g={};E.addProvider((g.provide=K5,g.useClass=K5,g[R2]=[Av],g));E.addProvider({provide:GL,useClass:GL});E.addProvider({provide:pG,useClass:pG});g={};E.addProvider((g.provide=aA,g.useClass=aA,g[R2]=[Av],g));g={};E.addProvider((g.provide=cf,g.useClass=cf,g[R2]=[_.yV,Av],g));g={};E.addProvider((g.provide=iu,g.useClass=iu,g[R2]=[Av],g));g={};E.addProvider((g.provide=oA,g.useClass=oA,g[R2]=[Av],g));g={};E.addProvider((g.provide=
iE,g.useClass=iE,g[R2]=[_.QW],g));g={};E.addProvider((g.provide=uE,g.useClass=uE,g[R2]=[_.gP],g));g={};E.addProvider((g.provide=M4,g.useClass=M4,g[R2]=[ss],g));g={};E.addProvider((g.provide=Wf,g.useClass=Wf,g[R2]=[ss],g));E.addProvider({provide:Eg,useClass:Eg});E.addProvider({provide:gV,useClass:gV});E.addProvider({provide:bE,useClass:bE});g={};E.addProvider((g.provide=j9,g.useClass=j9,g[R2]=[_.QW,_.zF],g));E.addProvider({provide:Zy,useClass:Zy});g={};E.addProvider((g.provide=IZ,g.useClass=IZ,g[R2]=
[_.yV,_.QW],g));E.addProvider({provide:GQ,useClass:GQ});g={};E.addProvider((g.provide=Hq,g.useClass=Hq,g[R2]=[Av,_.yV,_.vq],g));g={};E.addProvider((g.provide=rq,g.useClass=rq,g[R2]=[_.yV,_.zF],g));E.addProvider({provide:kEn,useValue:tHz});E.addProvider({provide:ukC,useValue:xjx});E.addProvider({provide:mA,useClass:mA});g={};E.addProvider((g.provide=lE,g.useClass=lE,g[R2]=[Av],g));g={};E.addProvider((g.provide=$q,g.useClass=$q,g[R2]=[_.rL,_.zF],g));g={};E.addProvider((g.provide=Qd,g.useClass=Qd,g[R2]=
[_.zF],g));E.addProvider({provide:yd,useFactory:function(){return new yd(_.Gv())}});
E.addProvider({provide:N1u,useFactory:_.O8.getInstance});g={};E.addProvider((g.provide=Wq,g.useClass=Wq,g[R2]=[Mj,N1u,_.zF],g));E.addProvider({provide:Es,useClass:Es});E.addProvider({provide:XP,useClass:XP});E.addProvider({provide:sA,useClass:sA});E.addProvider({provide:_.Yy,useClass:_.Yy});E.addProvider({provide:Pf,useClass:Pf});g={};E.addProvider((g.provide=S9,g.useClass=S9,g[R2]=[G5],g));g={};E.addProvider((g.provide=C5,g.useClass=C5,g[R2]=[_.zF],g));g={};E.addProvider((g.provide=xq,g.useClass=
xq,g[R2]=[_.zF],g));g={};E.addProvider((g.provide=wq,g.useClass=wq,g[R2]=[_.zF],g));_.J("web_enable_prefetching_videos_on_home")&&(E.addProvider({provide:Ox,useClass:Ox}),E.addProvider({provide:ps,useClass:ps}));g={};E.addProvider((g.provide=RA,g.useClass=RA,g[R2]=[_.zF],g));E.addProvider({provide:Vd,useClass:Vd});g={};E.addProvider((g.provide=F0,g.useClass=F0,g[R2]=[_.yV,_.zF],g));g={};E.addProvider((g.provide=ky,g.useClass=ky,g[R2]=[_.zF],g));g={};E.addProvider((g.provide=GI,g.useClass=GI,g[R2]=
[_.yV,_.zF],g));E.addProvider({provide:WD,useClass:WD});E.addProvider({provide:f5,useClass:f5});g={};E.addProvider((g.provide=qj,g.useClass=qj,g[R2]=[G5,_.zF],g));E.addProvider({provide:Nj,useClass:Nj});g={};E.addProvider((g.provide=LG,g.useClass=LG,g[R2]=[G5,_.zF,_.yV],g));g={};E.addProvider((g.provide=jC,g.useClass=jC,g[R2]=[_.zF],g));g={};E.addProvider((g.provide=Ug,g.useClass=Ug,g[R2]=[_.zF,_.yV],g));g={};E.addProvider((g.provide=Dy,g.useClass=Dy,g[R2]=[_.IJ],g));g={};E.addProvider((g.provide=
tI,g.useClass=tI,g[R2]=[_.IJ],g));E.addProvider({provide:Yq,useClass:Yq});E.addProvider({provide:Vt,useClass:Vt});E.addProvider({provide:zL,useClass:zL});E.addProvider({provide:AI,useClass:AI});E.addProvider({provide:X0,useClass:X0});E.addProvider({provide:zQ,useClass:zQ});E.addProvider({provide:n5,useClass:n5});_.J("kevlar_enable_mss_lazy_load")&&E.addProvider({provide:_.V8,useClass:cbc});E.addProvider({provide:_.km,useClass:T2});E.addProvider({provide:ei,useFactory:function(){return _.Tq.getInstance()}});
E.addProvider({provide:ZMG,useFactory:t2z});E.addProvider({provide:ss,useFactory:function(){return _.QU.getInstance()}});
E.addProvider({provide:hWf,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});g={};E.addProvider((g.provide=_.XB,g.useClass=_.XB,g[R2]=[_.IJ,_.zF,_.gP,ZMG,ss,ei,hWf,nS],g));E.addProvider({provide:_.XJ,useClass:K7A});E.addProvider({provide:_.Jni,useClass:ClR});g={};E.addProvider((g.provide=aZ,g.useClass=aZ,g[R2]=[_.Jni],g));g={};E.addProvider((g.provide=_.YO,g.useFactory=function(I){return I.upliftCompletionResolver.promise},g[R2]=[GNX],g));
g=_.Xn("IS_SHELL_LOAD")?"aa":"eocs";var Z=_.Xn("IS_SHELL_LOAD")?3:2;_.RS().parkOrScheduleJob(function(){a00()},Z,g);
_.RS().parkOrScheduleJob(function(){_.GF().resolve(Vg).start()},2,"eocs");
_.RS().parkOrScheduleJob(function(){MLp()},2,"eocs");
_.RS().parkOrScheduleJob(function(){_.GF().resolve(nT).start()},2,"eocs");
_.J("kevlar_debug_data_app_registration_ks")||KNd();E.addProvider({provide:_.DC,useValue:new hVG(h.root)});E.addProvider({provide:kW,useValue:new AU$});E.addProvider({provide:_.zVZ,useValue:new paC(h.root)});E.addProvider({provide:_.kY,useValue:new Guc});E.addProvider({provide:_.TV,useClass:ka});E.addProvider({provide:JL0,useClass:AR});_.J("kevlar_network_sli_killswitch")||E.addProvider({provide:vEX,useValue:YXH});E.addProvider({provide:dcU,useFactory:eKV});_.J("web_bind_fetch")&&(g={},E.addProvider((g.provide=
Crp,g.useFactory=qC$,g[R2]=[_.pl(dcU)],g)));_.J("web_bind_window_request")&&(g={},E.addProvider((g.provide=eLX,g.useFactory=frW,g[R2]=[_.pl(dcU)],g)));_.J("web_bind_text_decoder")&&(g={},E.addProvider((g.provide=qZU,g.useFactory=NiZ,g[R2]=[_.pl(dcU)],g)));g={};E.addProvider((g.provide=kf0,g.useFactory=Mtz,g[R2]=[_.YO,Av,_.rn],g));g={};E.addProvider((g.provide=VFi,g.useClass=dV,g[R2]=[kf0],g));E.addProvider({provide:Gpp,useClass:ZUI});E.addProvider({provide:nM0,useClass:YDc});g=[].concat(_.$E(Ez));
_.J("web_continuation_response_processing")&&g.push(_.yQ);g.push(PeH);_.J("enable_share_panel_navigation_logging_fix_on_web")&&g.push(_.DMB);E.addProvider({provide:ZTq,useValue:g});E.addProvider({provide:x5$,useClass:ODJ});E.addProvider({provide:nE0,useClass:HXU});g={};E.addProvider((g.provide=fBq,g.useClass=LZp,g[R2]=[G5],g));_.KP.addLowPriorityJob(function(){AHZ()});
g={};E.addProvider((g.provide=yun,g.useFactory=function(I){return function(B){var U,L=(U=_.e(B.commandMetadata,_.qH))==null?void 0:U.url;if(!L)throw new _.xX("No URL for PBJ Command",B);L=S7x(L,{pbj:"1"});U=ATa(L,{})||{};U=Object.assign({},U,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.nF("STS").toString()});B=_.Cl({command:JSON.stringify(B),session_token:_.nF("XSRF_TOKEN")});return I.fetch(L,{method:"POST",headers:U,body:B})}},g[R2]=[nE0],g));
g=[];g.push(E.resolve(nM0));Z={};Z=(Z.client_location=_.O8.getInstance(),Z.consistency=_.TMW(),Z.entities=E.resolve(bdG),Z.response_received_commands=E.resolve(x5$),Z.store=E.resolve(_.JJz),Z.tokens=E.resolve(nM0),Z);_.J("web_service_params_response_processor")&&(E.addProvider({provide:lTG,useFactory:function(){var I={};return I.CSI=SCq(),I.ECATCHER=t7Z(),I}}),E.addProvider({provide:Leq,
useClass:rhC}),Z.service_params=E.resolve(Leq));if(_.J("web_shorts_prefetch_service_enabled")){var M=new Lix(E.resolve(_.H_));Z.shorts_prefetch=M}Z.adblock_detection=E.resolve(fBq);E.addProvider({provide:_.bK,useClass:_.bK});M=E.resolve(_.gUI);var W=[];_.J("PremiumClientSharedConfig__enable_att_context_processor")&&(E.addProvider({provide:mNI,useClass:DNR}),W.push(E.resolve(mNI)));if(_.J("owl_pl_await")){var z={};E.addProvider((z.provide=oEC,z.useFactory=function(I){return new chC(I)},z[R2]=[_.bK],
z));
W.push(E.resolve(oEC))}ZGM(M,E.resolve(nE0),E.resolve(jHC),Z,E.resolve(_.H_),g,W,E.resolve(VFi),E.resolve(Gpp));E.addProvider({provide:_.yV,useValue:_.bF.instance});_.J("start_client_gcf")&&E.addProvider({provide:wQ,useValue:QTC()});E.addProvider({provide:iMJ,useFactory:function(){return new iMJ(_.GF().resolve(_.bK),_.QU.getInstance())}});
_.RS().parkOrScheduleJob(function(){orI()},1,"eocs");
g={};E.addProvider((g.provide=sx,g.useClass=sx,g[R2]=[_.rn,_.yV],g));E.addProvider({provide:_.wiU,useFactory:_.MD.getInstance});_.RS().parkOrScheduleJob(function(){_.GF().resolve(sx).refresh()},0,"eocs");
FSM(kRi.watchEndpointMap||{},M.reelWatchEndpointMap||{},h.injector.resolve(_.yV));E.addProvider({provide:Nh,useValue:_.Fp.instance});_.J("kevlar_signal_collection_killswitch")||(g={},E.addProvider((g.provide=ACx,g.useClass=ACx,g[R2]=[Mj,Os],g)),_.RS().parkOrScheduleJob(function(){_.GF().resolve(ACx).record()},1,"eocs"));
_.J("web_debug_handler_registration_killswitch")||_.RS().parkOrScheduleJob(function(){HTa("DOWNLOAD_PES",N7Z);_.J("offline_client_state_export_ks")||HTa("OFFLINE_CLIENT_STATE",exO)},0,"eocs");
_.J("kevlar_prevent_polymer_dynamic_font_load")&&_.RS().parkOrScheduleJob(function(){var I=[_.BR(bXU),_.BR(uUZ)];I=_.G(I);for(var B=I.next();!B.done;B=I.next()){B=B.value;var U=document.createElement("link");_.aH(U,B,"stylesheet");document.head.appendChild(U)}},1,"eocs");
g=h.injector.resolve(_.yV);_.rMR.instance=new _.rMR(g);G0x(fzG(new lzp(g)));g={};h.injector.addProvider((g.provide=aT,g.useFactory=function(I){(I=I==null?void 0:I.getCurrentPage())?I=I.visibilityObserver:(JV0||(JV0=g9M()),I=JV0);return I},g[R2]=[_.pl(_.p4)],g.skipCache=!0,g));
E.addProvider({provide:_.Yu,useClass:Rl});E.addProvider({provide:VW,useClass:kID});h.injector.addProvider({provide:XEf,useValue:Qzl});E.addProvider({provide:woB,useValue:eUq});E.addProvider({provide:Hkm,useValue:LGz});E.addProvider({provide:_.gu,useValue:mU4});h=E.addProvider;rL0||(rL0=new l0X);h.call(E,{provide:_.b8,useValue:rL0});E.addProvider({provide:_.Mi,useValue:_.nF("HTML_DIR")==="rtl"?"rtl":"ltr"});E.addProvider({provide:QWC,useClass:cnU});E.addProvider({provide:_.JW,useClass:u8});_.GF().addProvider({provide:EMC,
useValue:_.J("enable_web_delhi_icons")?jpC.concat(CXX):LEI.concat(d6I)});E.addProvider({provide:_.hi,useClass:_.hi});E.addProvider({provide:_.yhC,useValue:new kHI});E.addProvider({provide:T3C,useClass:FZR});E.addProvider({provide:TQ,useClass:TQ});E.addProvider({provide:Qt,useClass:Qt});h={};E.addProvider((h.provide=dq,h.useClass=dq,h[R2]=[_.yV,_.QW],h));E.addProvider({provide:Bf,useClass:Bf});E.addProvider({provide:PSM,useClass:NUx});E.addProvider({provide:ZK,useClass:ZK});E.addProvider({provide:DkM,
useValue:B7f});E.addProvider({provide:_.Lv,useClass:AMJ});_.J("enable_payments_purchase_manager")&&E.addProvider({provide:KZ0,useClass:v$X});E.addProvider({provide:TxU,useFactory:function(){return function(I){return _.AhG(I)}}});
E.addProvider({provide:_.$AU,useClass:KfC});h={};E.addProvider((h.provide=IA,h.useClass=IA,h[R2]=[_.$AU],h));E.addProvider({provide:h_,useClass:h_});E.addProvider({provide:aoF,useValue:n4D});E.addProvider({provide:GMD,useValue:_.YGU});E.addProvider({provide:bT4,useClass:f0C});E.addProvider({provide:moG,useValue:uKC});h={};E.addProvider((h.provide=vri,h.useClass=HMU,h[R2]=[moG],h));h={};E.addProvider((h.provide=_.Vr,h.useClass=hlC,h[R2]=[vri],h));h={};E.addProvider((h.provide=_.gm,h.useClass=EI,h[R2]=
[_.c4,_.TV],h));if(_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))h={},E.addProvider((h.provide=gq,h.useClass=gq,h[R2]=[_.yV,ei],h));if(_.J("web_enable_renderer_logger")){var c=new LnZ;lv4(function(){c.abort()});
E.addProvider({provide:otd,useValue:new bUx(c.signal)})}E.addProvider({provide:skD,useValue:a34});E.addProvider({provide:Tm$,useClass:jGc})}},eoR);var faC={},N9G=(faC.initialized={priority:10,callback:function(){if(!mcI){gPO();w2$("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Uq(_.Sj(w2$,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.J("log_heartbeat_with_lifecycles")){var h={};fV.instance||(fV.instance=new fV);fV.instance.install((h.document_visible={callback:DWu,priority:10},h.document_hidden={callback:DWu,priority:10},h))}else _.WT(document,"visibilitychange",DWu);mcI=!0}(h=_.sH())&&h!=="UNDEFINED_CSN"&&$lx(h)}},faC);var tAG={},S9p=(tAG.initialized={callback:function(h){var E=_.Uz(232091),g=h.injector.resolve(_.gP);_.vt(g,E);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?GPV()&&_.$T(g,E):(h=h.injector.resolve(TxU)("refresh_detector"))&&(h.get("first_tab_load")?_.$T(g,E):h.set("first_tab_load","1"))}},tAG);var x60={},wmI=(x60.initialized={priority:10,callback:Pbq},x60);var D6J={},lai=(D6J.initialized={priority:0,callback:function(){var h=new QDf,E="other";_.LW?E="chrome":_.UK?E="firefox":_.sq?E="safari":Zp&&(E="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(g){h.increment(_.Nd(),g,E)}).catch(function(){h.increment(_.Nd(),!1,E)}):h.increment(_.Nd(),!1,E)}},D6J);var rV0={},m60=(rV0.rendering={priority:8,callback:B1$},rV0);var vZC={},Hwp=(vZC.rendering={priority:10,callback:D5q},vZC.rendered={callback:wyz},vZC),$6X={},KEX=($6X.rendering={callback:D5q},$6X.rendered={callback:wyz},$6X);var OwI=!1,nZX={},XmU=(nZX.initialized={priority:10,callback:function(){OwI||(SHN({didPatch:function(h){h.el&&X2$(h.el,h.props)},
didUnmount:function(h){OiO(h.el)}}),OwI=!0)}},nZX);var Y9i=/^\/shorts\/?$/;_.OW("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:{}}}}}}});_.J("kevlar_enable_mss")&&(_.md4(new Y7A),Kq$());
(function(){var h=document.querySelector("ytd-app");if(!h)throw Error("Sj");h=new Zm({root:h,injector:_.GF()});h.install(N9G);var E={};h.install((E.initialized={priority:10,callback:yzu},E));_.J("wp_lat_b")&&(E={},h.install((E.initialized={priority:10,callback:function(){dWV()}},E)));
E={};h.install((E.rendered={priority:0,callback:snW},E));E={};h.install((E.rendered={priority:0,callback:function(){_.KP.addLowPriorityJob(function(){_.iDi>1&&(HHu(),XPM())},4E4)}},E));
h.install(q6J);h.install(S9p);h.install(XmU);Qrz();h.install(msc);h.install(L8U);h.install(JbJ);h.install(XcC);h.install(yCX);h.install(lbi);h.install(q9R);_.J("kevlar_enable_mss_lazy_load")&&h.install(wmI);h.install(dsG);h.install(lai);if(!_.Xn("IS_SHELL_LOAD")||_.J("kevlar_fetch_initial_data_promise_client")||_.J("sw_nav_preload_pbj")){var g=_.jy(window.location.href);E=g&&g==="/watch";g=g&&g.match(Y9i);E?h.install(KEX):g?h.install(m60):h.install(Hwp)}else h.install(PnR);h.install(N2i);_.J("web_enable_prefetching_videos_on_home")&&
h.install(K80);_.J("start_client_gcf")&&h.install(DcR);h.install(HUC);(new hof).increment("INSTALLED");h.install(Htx);h.install(opx);h.transition("initialized");oV$()})();
_.jl=[[["I3R2OGxzd3QwZHF6a2tpbmQ=","bDU2MXI5bGdodmFsdWUjOGQ4"],"QUNFTUVOVF9LSU5EX01JTExJU0VDT05EUyNsY29naGFxZnRua3ZBRF9QTA=="]];_.Lm=["YmFsQ2FsbGJhY2tzIzRpbW1ranA2NTBvZ2dsbw==","I25tMHp5bmMyc3kxNG9uQWJub3JtYWxpdHlEZXRlY3RlZA==","ZFNraXAjZzZvOXRsb3hpM3lwb25B","b25zZSM0bmVldnFkYXM1YWtyYXdfcGxheWVyX3Jlc3A=","ZHMjOW1uanphb3BzaGY3cGxheWVyQQ=="];_.dW="YmFsQ2FsbGJhY2tzIzRpbW1ranA2NTBvZ2dsbw== I25tMHp5bmMyc3kxNG9uQWJub3JtYWxpdHlEZXRlY3RlZA== ZFNraXAjZzZvOXRsb3hpM3lwb25B b25zZSM0bmVldnFkYXM1YWtyYXdfcGxheWVyX3Jlc3A= ZXVlX211bHRpcGxlX3NraXBzX2tzIzJyNGE1OW51dXl4d2ViX3BsYXlsaXN0X3F1 c2FfZWYjOGZyYml6ZHJ1MGQ2YWJf ZHMjOW1uanphb3BzaGY3cGxheWVyQQ==".split(" ");
_._ModuleManager_initialize=function(h,E){if(!_.mx){if(!_.vh)return;_.md4(_.vh())}_.mx.setAllModuleInfoString(h,E)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.j0=function(h,E,g,Z,M){var W={};E&&(W[E]=g);Z?W.errorType=Z:M&&(W.errorReason=M);_.vT(h,W);_.HT()};
_.dm=function(h){var E=_.RS();return _.YbM(E,h,1)};
_.OB({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 h=this.query;h&&(this.full||h[0]==="("||(h="("+h+")"),this._mq=window.matchMedia(h),this._add(),this.queryHandler(this._mq))},
queryHandler:function(h){this._setQueryMatches(h.matches)}});var E3U;var g3x;var ZFU=function(){};
_.p=ZFU.prototype;_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._focusedChanged=function(){};
_.p._createRipple=function(){};
_.p.registered=function(){};
_.p._invalidChanged=function(){};
_.p.hasValidator=function(){};
_.p.validate=function(){};
_.p._getValidity=function(){};
_.p._requiredChanged=function(){};
_.p._valueChanged=function(){};
_.p._checkedChanged=function(){};
_.p._buttonStateChanged=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
ZFU=_.OB({is:"tp-yt-paper-radio-button",_template:function(){if(g3x!==void 0)return g3x;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;E3U===void 0&&(E3U=document.createElement("template"));var Z=E3U;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return g3x=h},
behaviors:[_.rNl],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(){_.pQ(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var h=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),E=Math.floor(3*h);E%2!==h%2&&E++;this.updateStyles({"--paper-radio-button-ink-size":E+"px"})}})}});var MXi;var W1C;_.OB({_template:function(){if(W1C!==void 0)return W1C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;MXi===void 0&&(MXi=document.createElement("template"));var Z=MXi;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return W1C=h},
is:"tp-yt-paper-radio-group",behaviors:[_.yUf],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(h){var E=this._valueToItem(h);if(!E||!E.hasAttribute("disabled")){if(this.selected){E=this._valueToItem(this.selected);if(this.selected==h)if(this.allowEmptySelection)h="";else{E&&(E.checked=!0);return}E&&
(E.checked=!1)}_.Z6.select.apply(this,[h]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(h){this._focusPrevious();h.preventDefault();this._activateFocusedItem()},
_onDownKey:function(h){this._focusNext();h.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(h){_.kDA._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(h){_.kDA._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Z6._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.yJ._resetTabindices.apply(this,arguments);this.items.forEach(function(h){h.removeAttribute("aria-selected")},this)}});var pJp;_.$P("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Cs=function(){return _.D.apply(this,arguments)||this};
_.f(Cs,_.D);_.p=Cs.prototype;_.p.computeHasPrimaryIcon=function(h){return!(!h.icon&&!h.thumbnail)};
_.p.computeHasSecondary=function(h){return!(!h.secondaryIcon&&!h.secondaryNotificationText)};
_.p.computeHideSecondaryString=function(h){return!_.J("disable_hide_empty_secondary_string")&&!h.secondaryNotificationText};
_.p.computeCompactLinkStyle=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeHasFitHeight=function(h){return h==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.p.isActiveEndpoint=function(h){return(h=this.get("commandMetadata.webCommandMetadata.url",h))?_.jy(window.location.href)!=="/account_transfer_channel"&&_.jy(window.location.href)!=="/gaia_link"&&_.jy(window.location.href)!=="/channel_switcher"||h!=="/account"?_.jy(window.location.href)===h:!0:!1};
_.p.onTap=function(){var h;((h=this.data)==null?0:h.serviceEndpoint)&&_.LZ(this.hostElement,[this.data.serviceEndpoint])};
Cs.prototype.onTap=Cs.prototype.onTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cs.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.V("design:type",Boolean)],Cs.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.V("design:type",String)],Cs.prototype,"compactLinkStyle",void 0);
_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",Object)],Cs.prototype,"icon",void 0);_.Y([_.x({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",Object)],Cs.prototype,"secondaryIcon",void 0);_.Y([_.x({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Cs.prototype,"hasSecondary",void 0);_.Y([_.x({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Cs.prototype,"hideSecondaryString",void 0);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cs.prototype,"onTap",null);_.Y([_.K({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Cs);
_.X(Cs,"ytd-compact-link-renderer",function(){if(pJp!==void 0)return pJp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return pJp=h},{mode:1});var GtZ;_.$P("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Ji=function(){var h=_.D.apply(this,arguments)||this;h.role="link";h.tabindex="0";h.actionMap=_.J("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 h};
_.f(Ji,_.D);_.p=Ji.prototype;_.p.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Hp()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.p.getCurrentTheme=function(){return _.$Y()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hp()};
_.p.onThemeSelected=function(h,E){var g=h||E?h:_.vp(),Z=(g&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!g&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ySz(_.jy(window.location.href));_.wC(0,165,h);_.wC(0,174,E);this.prefs.save();Z&&_.BX(this.hostElement,"yt-dark-mode-toggled-action",[g]);_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.onTap=function(){this.data.serviceEndpoint&&_.LZ(this.hostElement,[this.data.serviceEndpoint])};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
Ji.prototype.onTap=Ji.prototype.onTap;Ji.prototype.dataChanged=Ji.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ji.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.oR),_.V("design:type",Object)],Ji.prototype,"paperItemBehaviors",void 0);_.Y([_.x(),_.V("design:type",Object)],Ji.prototype,"data",void 0);_.Y([_.x({value:function(){return _.xe()}}),
_.V("design:type",_.UR)],Ji.prototype,"prefs",void 0);_.Y([_.x(),_.V("design:type",Object)],Ji.prototype,"label",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ji.prototype,"role",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ji.prototype,"tabindex",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ji.prototype,"dataChanged",null);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ji.prototype,"onTap",null);_.Y([_.K({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],Ji);
_.BK()(Ji,"ytd-toggle-theme-compact-link-renderer",function(){if(GtZ===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);GtZ=h}h=GtZ;return h},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var aGR,cxC;_.e0=function(h){return!!h.getOptions("captions")};
_.zJp=function(h){return(h=h.getOption("captions","track"))?!!h.displayName:!1};
_.qD=function(h,E){_.x7(E,h,function(){return aGR[E]},function(g){aGR[E]=g;
if(!_.J("mweb_player_ve_show_ks")){var Z=_.sH(0);Z&&g&&_.hj(Z,g)}})};
_.ND=function(h){(h=aGR[h])&&_.$T(_.SQ(),h)};
aGR={};var iFx;/*

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
*/
_.OB({_template:function(){if(iFx!==void 0)return iFx;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;cxC===void 0&&(cxC=document.createElement("template"));var Z=cxC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return iFx=h},
is:"tp-yt-paper-checkbox",behaviors:[_.rNl],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.pQ(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var h=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),E="px",g=h.match(/[A-Za-z]+$/);g!==null&&(E=g[0]);h=parseFloat(h);g=8/3*h;E==="px"&&(g=Math.floor(g),g%2!==h%2&&g++);this.updateStyles({"--paper-checkbox-ink-size":g+
E})}})},
_computeCheckboxClass:function(h,E){var g="";h&&(g+="checked ");E&&(g+="invalid");return g},
_computeCheckmarkClass:function(h){return h?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Dhl._createRipple.call(this)}});var o3p=new _.I2("radioButtonSurveyOptionRenderer"),IG0=new _.I2("checkboxSurveyOptionRenderer");var RJG;var PIG;var BXU=0,ti=function(){var h=_.D.call(this)||this;h.selected=!1;h.isOverlay=!1;h.inputId="toggle-option-"+BXU;BXU++;return h};
_.f(ti,_.D);ti.prototype.onTap=function(){_.Ra(this.hostElement,"ytd-toggle-option-clicked")};
_.Y([_.x(),_.V("design:type",String)],ti.prototype,"label",void 0);_.Y([_.x(),_.V("design:type",String)],ti.prototype,"inputId",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ti.prototype,"selected",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ti.prototype,"isOverlay",void 0);_.Y([_.K({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.V("design:paramtypes",[])],ti);
_.X(ti,"ytd-toggle-option-renderer",function(){if(PIG!==void 0)return PIG;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return PIG=h},{mode:1});var S0=function(){var h=_.D.apply(this,arguments)||this;h.isToggleOption=!1;h.isOverlay=!1;return h};
_.f(S0,_.D);S0.prototype.onTap=function(h){h.preventDefault();this.data&&(h=!this.data.checked,this.set("data.checked",h),_.Ra(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:h,value:this.data.value}))};
_.ze.Object.defineProperties(S0.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
S0.prototype.onTap=S0.prototype.onTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],S0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],S0.prototype,"isToggleOption",void 0);_.Y([_.x(),_.V("design:type",Object)],S0.prototype,"isOverlay",void 0);_.Y([_.S("data.responseText"),_.V("design:type",String),_.V("design:paramtypes",[])],S0.prototype,"label",null);
_.Y([_.f3("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],S0.prototype,"onTap",null);_.Y([_.K({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],S0);
_.X(S0,"ytd-checkbox-survey-option-renderer",function(){if(RJG!==void 0)return RJG;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return RJG=h},{mode:1});var UaX;var L1p;var x0=function(){var h=_.D.apply(this,arguments)||this;h.checked=!1;h.isToggleOption=!1;return h};
_.f(x0,_.D);x0.prototype.onTap=function(){this.data&&(this.checked?_.BX(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.BX(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
x0.prototype.onTap=x0.prototype.onTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],x0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],x0.prototype,"checked",void 0);_.Y([_.x(),_.V("design:type",Object)],x0.prototype,"isToggleOption",void 0);_.Y([_.f3("ytd-toggle-option-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],x0.prototype,"onTap",null);
_.Y([_.K({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],x0);
_.X(x0,"ytd-radio-button-survey-option-renderer",function(){if(L1p!==void 0)return L1p;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return L1p=h},{mode:1});var wm=function(){var h=_.D.apply(this,arguments)||this;h.disableAnimation=!1;h.isToggleOption=!0;h.followUpSurveyCommand=null;h.selectedRatingEndpoint=null;h.isSlimlineSurveyFollowUp=!1;h.isShortsStyle=!1;h.styleOverrideAttribute=!0;h.isDarkMode=!1;h.isSubmitted=!1;h.roundedContainer=!0;h.improveShortsResponseRate=_.J("web_improve_shorts_response_rate");h.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 h};
_.f(wm,_.D);_.p=wm.prototype;
_.p.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.p.attached=function(){var h=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(g){var Z;if((Z=g[0])!=null&&Z.isIntersecting){_.NB().reportShown(h.hostElement);var M;(M=h.intersectionObserver)==null||M.unobserve(h.hostElement)}},{rootMargin:"0px",
threshold:.6});var E;(E=this.intersectionObserver)==null||E.observe(this.hostElement)};
_.p.onDarkModeToggledAction=function(h){this.isDarkMode=h};
_.p.dataChanged=function(){var h;if(((h=this.data)==null?void 0:h.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var E;((E=this.data)==null?void 0:E.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var g,Z,M,W;this.darkColorPalette=(g=this.data)==null?void 0:(Z=g.inlineContent)==null?void 0:(M=Z.compactVideoRenderer)==null?void 0:(W=M.thumbnail)==null?
void 0:W.darkColorPalette;var z,c,I,B;this.lightColorPalette=(z=this.data)==null?void 0:(c=z.inlineContent)==null?void 0:(I=c.compactVideoRenderer)==null?void 0:(B=I.thumbnail)==null?void 0:B.lightColorPalette;var U,L;if(((U=this.data)==null?0:(L=U.inlineContent)==null?0:L.compactVideoRenderer)&&this.isShortsStyle){var d,C,q,w;h=_.P$((d=this.data)==null?void 0:(C=d.inlineContent)==null?void 0:(q=C.compactVideoRenderer)==null?void 0:(w=q.thumbnail)==null?void 0:w.thumbnails);_.Ja(this.hostElement,
{"--yt-background-url":"url("+h+")"})}};
_.p.handleRequestCompletion=function(){this.hostElement.hidden&&_.Ra(this.hostElement,"yt-dismissible-item-dismissed")};
_.p.onPopupClosed=function(h){var E;((E=h.detail)==null?void 0:E.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.BX(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.p.handleInlineSurveyRatingSelect=function(h,E){var g=this;this.selectedRatingEndpoint=h;this.followUpSurveyCommand=E;this.expanded=!!h;this.getOptionRenderers().forEach(function(Z,M){g.notifyPath("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked");g.set("followUpSurveyCommand.followUpOptions."+M+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),h=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.BX(this.hostElement,"yt-reel-non-video-content-dismissal-command",[h]))};
_.p.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.BX(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var h,E=(h=this.data)==null?void 0:h.dismissalEndpoint;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.p.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.BX(this.hostElement,"yt-close-popup-action"))};
_.p.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var h=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{h=this.getOptionRenderers().filter(function(Z){return Z.checked});
if(h.length===0)return;h=h.map(function(Z){return Z.responseEndpoint})}var E=[];
h.forEach(function(Z,M){M!==0&&(Z=_.e(Z,_.rE))&&Z.feedbackToken&&E.push(Z.feedbackToken)});
if(h=h[0]){var g={};E.length>0&&(g.extra_feedback_tokens=E);this.ytComponentBehavior.resolveCommand(h,{form:g})}}};
_.p.getOptionRenderers=function(){var h=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(E){h.isSingleSelect=!!_.e(E,o3p);return h.isSingleSelect?_.e(E,o3p):_.e(E,IG0)}):[]};
_.p.handleInlineSurveyOptionSelect=function(h){h=this.optionSelector.indexOf(h);h!==-1&&this.optionSelector.selectIndex(h)};
_.p.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.p.maybeGetBackgroundColor=function(h){return this.isDarkMode?h.section2Color:h.section3Color};
_.p.colorPaletteChanged=function(){var h=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;h=h&&this.maybeGetBackgroundColor(h);this.dismissibleEl.style.backgroundColor=!h||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.bU(h)};
_.ze.Object.defineProperties(wm.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
wm.prototype.colorPaletteChanged=wm.prototype.colorPaletteChanged;wm.prototype.onPopupClosed=wm.prototype.onPopupClosed;wm.prototype.handleRequestCompletion=wm.prototype.handleRequestCompletion;wm.prototype.dataChanged=wm.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],wm.prototype,"actionHandlerBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],wm.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.Sg("#follow-up-survey-options"),_.V("design:type",Object)],wm.prototype,"optionSelector",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"disableAnimation",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"isToggleOption",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"followUpSurveyCommand",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"selectedRatingEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],wm.prototype,"expanded",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wm.prototype,"isSlimlineSurveyFollowUp",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wm.prototype,"isShortsStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wm.prototype,"styleOverrideAttribute",void 0);_.Y([_.x(),_.V("design:type",Boolean)],wm.prototype,"isSingleSelect",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"isDarkMode",void 0);
_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"lightColorPalette",void 0);_.Y([_.x(),_.V("design:type",Object)],wm.prototype,"darkColorPalette",void 0);_.Y([_.S("selectedRatingEndpoint","isShortsStyle"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wm.prototype,"isOptionSelected",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wm.prototype,"roundedContainer",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wm.prototype,"improveShortsResponseRate",void 0);_.Y([_.Sg("#dismissible"),_.V("design:type",HTMLElement)],wm.prototype,"dismissibleEl",void 0);_.Y([_.Sg("#dismiss-button yt-icon-button"),_.V("design:type",HTMLElement)],wm.prototype,"dismissButtonEl",void 0);_.Y([_.Sg("#inline-survey-header yt-icon-button"),_.V("design:type",HTMLElement)],wm.prototype,"inlineHeaderDismissButtonEl",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wm.prototype,"dataChanged",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wm.prototype,"handleRequestCompletion",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],wm.prototype,"onPopupClosed",null);
_.Y([_.Nm("darkColorPalette","lightColorPalette","isDarkMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wm.prototype,"colorPaletteChanged",null);_.Y([_.K({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],wm);
_.X(wm,"ytd-inline-survey-renderer",function(){if(UaX!==void 0)return UaX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UaX=h},{mode:1});var joC=["en-CA","en","es-MX","fr-CA"];_.daU=_.O(function(h){var E=_.au(h,{isOverlay:!1,isModern:!1}),g=E.captionIconType,Z=E.onClick;h=E.ariaLabel;var M=E.ariaPressed,W=E.isOverlay,z=E.isModern;E=_.hf("button",function(B){_.qD(B,127299)});
var c=_.J7(function(B){_.ND(127299);Z==null||Z(B);return!1}),I={};
return _.R("ytm-closed-captioning-button",{class:_.CO("ytmClosedCaptioningButtonHost",(I.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return g()===-1&&W()},I.ytmClosedCaptioningButtonIconDisabled=function(){return g()===-1&&!W()},I))},_.R("button",{el:E,
class:"ytmClosedCaptioningButtonButton",title:h,"aria-label":h,"aria-pressed":M,"on:click":c},_.R(_.Ni,{icon:function(){var B="",U=z();var L=U?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";U=U?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var d=_.xe().get("hl");L=!d||joC.includes(d)?L:U;U=g();switch(U){case -1:case 0:B=L;break;case 1:B=L+"_FILLED";break;default:_.Vk(U)}return B}})))},"If");
_.daU.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.XQ=function(h){return function(E,g){var Z=h||g.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(E,g,{get:function(){var M;return this.$?this.$[Z]:(M=_.ta(this))==null?void 0:M.querySelector("#"+Z)},
enumerable:!0,configurable:!0})}};_.Yt=function(h){h=h===void 0?!1:h;_.wO.call(this);this.pubSub_=new _.Jl(h);_.jf(this,this.pubSub_)};
_.aV(_.Yt,_.wO);_.Yt.prototype.subscribe=function(h,E,g){return this.isDisposed()?0:this.pubSub_.subscribe(h,E,g)};
_.Yt.prototype.unsubscribe=function(h,E,g){return this.isDisposed()?!1:this.pubSub_.unsubscribe(h,E,g)};
_.Yt.prototype.unsubscribeByKey=function(h){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(h)};
_.Yt.prototype.publish=function(h,E){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var fZp=function(){_.j0("ypcRedeemFlowStarted")},X$=function(h){_.j0("ypcRedeemFlowFailed",void 0,void 0,void 0,h)},N4X=function(h,E,g){E&&g&&(h.videos.forEach(function(Z){Z.videoId===E&&(Z.itemId=g)}),h.recommendedVideos.forEach(function(Z){Z.videoId===E&&(Z.itemId=g)}))};var tt0;var SmC;/*

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
*/
_.OB({_template:function(){if(SmC!==void 0)return SmC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;tt0===void 0&&(tt0=document.createElement("template"));var Z=tt0;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return SmC=h},
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(h,E){var g=this._resolveSrc(h);g!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",h===""||E?this._setLoading(!1):(this._resolvedSrc=g,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 h=this.$.sizedImgDiv.style,E=this.$.placeholder.style;h.backgroundSize=E.backgroundSize=this.sizing;h.backgroundPosition=E.backgroundPosition=this.sizing?this.position:"";h.backgroundRepeat=E.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(h){h=_.P6(h,this.$.baseURIAnchor.href);h.length>=2&&h[0]==="/"&&h[1]!=="/"&&(h=(location.origin||location.protocol+"//"+location.host)+h);return h}});var xXG;var wri;_.OB({_template:function(){if(wri!==void 0)return wri;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;xXG===void 0&&(xXG=document.createElement("template"));var Z=xXG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return wri=h},
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(h){return h?"false":"true"},
_headingChanged:function(h){var E=this.getAttribute("heading"),g=this.getAttribute("aria-label");typeof g==="string"&&g!==E||this.setAttribute("aria-label",h)},
_computeHeadingClass:function(h){return h?" over-image":""},
_computeAnimated:function(h){return h}});var DXU=new _.I2("addRendererToItemSectionAction");var lZC;var YV=function(){return _.D.apply(this,arguments)||this};
_.f(YV,_.D);YV.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],YV.prototype,"rendererBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],YV.prototype,"dismissibleItemBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],YV.prototype,"rendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],YV.prototype,"data",void 0);_.Y([_.K({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],YV);
_.X(YV,"ytd-comment-history-entry-renderer",function(){if(lZC!==void 0)return lZC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return lZC=h},{mode:1});var r8U;_.$P("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.$P("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var sC=function(){return _.D.apply(this,arguments)||this};
_.f(sC,_.D);_.p=sC.prototype;_.p.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onKeyUp=function(h){if(h.keyCode===13)this.onTap()};
_.p.onTap=function(){this.data.recordClickEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var h=this.data.navigationEndpoint;h&&_.e(h,_.Zs)&&_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})};
_.p.readChanged=function(){var h;_.jg(this.hostElement,"unread",!((h=this.data)==null?0:h.read))};
_.p.dataChanged=function(){this.data&&_.jg(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.p.computeThumbnailSize=function(){var h;return((h=this.data)==null?0:h.highPriorityNotification)?32:48};
_.p.getEndpointURL=function(h){return h&&!_.e(h,_.Zs)?this.componentBehavior.computeHref_(h):null};
_.p.getEndpointData=function(h){return h&&!_.e(h,_.Zs)?h:null};
sC.prototype.computeThumbnailSize=sC.prototype.computeThumbnailSize;sC.prototype.dataChanged=sC.prototype.dataChanged;sC.prototype.readChanged=sC.prototype.readChanged;sC.prototype.onKeyUp=sC.prototype.onKeyUp;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],sC.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sC.prototype,"data",void 0);_.Y([_.x({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.V("design:type",Number)],sC.prototype,"thumbnailSize",void 0);_.Y([_.f3("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],sC.prototype,"onKeyUp",null);
_.Y([_.Nm("data.read"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sC.prototype,"readChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sC.prototype,"dataChanged",null);_.Y([_.Nm("data.highPriorityNotification"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sC.prototype,"computeThumbnailSize",null);
_.Y([_.K({is:"ytd-notification-renderer",disableElementRegistration:!0})],sC);
_.X(sC,"ytd-notification-renderer",function(){if(r8U!==void 0)return r8U;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return r8U=h},{mode:1});var mXp;var VB=function(){return _.D.apply(this,arguments)||this};
_.f(VB,_.D);VB.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"}}}};
VB.prototype.computeActionButtonClass=function(h){return!h.actionButtons||h.actionButtons.length<=1?"single-button":h.description?"vertical-buttons":"horizontal-buttons"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],VB.prototype,"data",void 0);_.Y([_.K({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],VB);
_.X(VB,"ytd-playlist-show-metadata-renderer",function(){if(mXp!==void 0)return mXp;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return mXp=h},{mode:1});var v1i;_.$P("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var kV=function(){return _.D.apply(this,arguments)||this};
_.f(kV,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kV.prototype,"data",void 0);_.Y([_.K({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],kV);
_.X(kV,"ytd-purchase-item-renderer",function(){if(v1i!==void 0)return v1i;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return v1i=h},{mode:1});var HxI;var $XR={};$XR.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(h){if(h)return h.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(h){if(h==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.$P("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var yB=function(){return _.D.apply(this,arguments)||this};
_.f(yB,_.D);yB.prototype.onYtNavigate=function(h){var E=this.openPopupBehavior.getNavigationEndpointPopupAction(h.detail.endpoint);E&&(h.stopPropagation(),this.openPopupBehavior.openPopup(E))};
yB.prototype.onYtNavigate=yB.prototype.onYtNavigate;_.Y([_.t($XR.YtSimpleTextSectionBehavior),_.V("design:type",Object)],yB.prototype,"ytSimpleTextSectionBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],yB.prototype,"openPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yB.prototype,"data",void 0);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],yB.prototype,"onYtNavigate",null);_.Y([_.K({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],yB);
_.X(yB,"ytd-simple-text-section-renderer",function(){if(HxI!==void 0)return HxI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HxI=h},{mode:1});var KVG;_.$P("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var F$=function(){return _.D.apply(this,arguments)||this};
_.f(F$,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],F$.prototype,"data",void 0);_.Y([_.K({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],F$);
_.X(F$,"ytd-unlimited-page-feature-info-renderer",function(){if(KVG!==void 0)return KVG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return KVG=h},{mode:1});var Oxp;var n1c;var A5=function(){return _.D.apply(this,arguments)||this};
_.f(A5,_.D);A5.prototype.dataChanged=function(){if(this.data){var h=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);h&&(h=_.R9(h,screen.width),this.hostElement.style.backgroundImage="url("+h+")")}};
A5.prototype.dataChanged=A5.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],A5.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],A5.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],A5);
_.X(A5,"ytd-post-redemption-section-renderer",function(){if(n1c!==void 0)return n1c;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return n1c=h},{mode:1});var XrG;var TY=function(){return _.D.apply(this,arguments)||this};
_.f(TY,_.D);TY.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],TY.prototype,"data",void 0);_.Y([_.K({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],TY);
_.X(TY,"ytd-ypc-post-redemption-renderer",function(){if(XrG!==void 0)return XrG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XrG=h},{mode:1});_.$P("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var bZ=function(){var h=_.D.apply(this,arguments)||this;h.MIN_CODE_LENGTH=12;h.MAX_CODE_LENGTH=24;return h};
_.f(bZ,_.D);_.p=bZ.prototype;_.p.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.p.created=function(){this.riskService=new _.Aqz;this.loadPaymentThenable=_.bBO(_.nF("YPC_MB_URL"))};
_.p.ready=function(){var h=this;this.code.addEventListener("keypress",function(E){h.onCodeInputKeypress(E)})};
_.p.dataChanged=function(){var h=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(E){E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,g.type==="attributes"&&g.attributeName==="dark"&&h.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.p.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var h=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+h+")")}};
_.p.computeRedeemButton=function(h){(h=this.get("redeemButton.buttonRenderer",h))&&(h=Object.assign({},h,{serviceEndpoint:void 0}));return h};
_.p.onRedeemButtonTap=function(h){h.stopPropagation();fZp();this.redeemCode()};
_.p.redeemCode=function(){var h=this;this.isLoading=!0;var E=this.riskService.init();_.$D([E,this.loadPaymentThenable]).then(function(){var g=h.data.redeemButton.buttonRenderer.serviceEndpoint,Z=_.T0q(),M=_.gE.payments.business.integration.ClientTokenFactory.createClientToken(_.e(g,_.OJM).countryCode,Z);Z={c:h.code.value.trim(),rd:window.btoa(Z),ctk:M};g&&_.GF().resolve(_.zF).resolveCommand(g,{form:Object.assign({},Z,{element:h.hostElement})})},function(){h.showGenericError();
X$("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Vy(Error("Bo"))})};
_.p.onYtServiceRequestCompleted=function(h){h.stopPropagation();this.isLoading=!1;var E,g;this.errorMessage=(E=h.detail)==null?void 0:(g=E.data)==null?void 0:g.errorMessage;var Z,M;this.postRedemptionRenderer=(Z=h.detail)==null?void 0:(M=Z.data)==null?void 0:M.renderer;var W,z;if(h=(W=h.detail)==null?void 0:(z=W.data)==null?void 0:z.redirectEndpoint)this.isLoading=!0,_.Ra(this.hostElement,"yt-navigate",{endpoint:h});this.errorMessage?X$("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
h)&&_.j0("ypcRedeemFlowSucceeded")};
_.p.onYtServiceRequestError=function(h){h.stopPropagation();this.isLoading=!1;if(h=this.get("detail.error.message",h))this.errorMessage=_.MR(h);X$("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.p.onInvokeInstrumentManagerActionCompleted=function(h){h.stopPropagation();this.redeemCode()};
_.p.onInvokeInstrumentManagerActionError=function(h){h.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",h)){case "instrumentManagerLoadError":this.showGenericError();X$("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();X$("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.j0("ypcRedeemFlowCancelled")}};
_.p.onInput=function(){var h=this;_.EQ(this,"onInput",function(){var E=h.code.value.trim();h.redeemButtonDisabled=E.length<h.MIN_CODE_LENGTH||E.length>h.MAX_CODE_LENGTH},200)};
_.p.onCodeInputKeypress=function(h){h.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(fZp(),this.redeemCode())};
_.p.computeImageUrl=function(h){return h?_.R9(h.thumbnails,600):null};
_.p.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
bZ.prototype.onInvokeInstrumentManagerActionError=bZ.prototype.onInvokeInstrumentManagerActionError;bZ.prototype.onInvokeInstrumentManagerActionCompleted=bZ.prototype.onInvokeInstrumentManagerActionCompleted;bZ.prototype.onYtServiceRequestError=bZ.prototype.onYtServiceRequestError;bZ.prototype.onYtServiceRequestCompleted=bZ.prototype.onYtServiceRequestCompleted;bZ.prototype.dataChanged=bZ.prototype.dataChanged;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bZ.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],bZ.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Boolean)],bZ.prototype,"redeemButtonDisabled",void 0);
_.Y([_.x(),_.V("design:type",Object)],bZ.prototype,"errorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],bZ.prototype,"postRedemptionRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],bZ.prototype,"observer",void 0);_.Y([_.Sg("#code"),_.V("design:type",HTMLInputElement)],bZ.prototype,"code",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bZ.prototype,"dataChanged",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bZ.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bZ.prototype,"onYtServiceRequestError",null);
_.Y([_.f3("yt-invoke-instrument-manager-action-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bZ.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.Y([_.f3("yt-invoke-instrument-manager-action-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],bZ.prototype,"onInvokeInstrumentManagerActionError",null);_.Y([_.K({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],bZ);
_.X(bZ,"ytd-redeem-code-renderer",function(){if(Oxp!==void 0)return Oxp;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Oxp=h},{mode:1});var YmG;_.$P("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var uZ=function(){var h=_.D.apply(this,arguments)||this;h.businessEmailDisplayState="HIDE_SECTION";return h};
_.f(uZ,_.D);_.p=uZ.prototype;_.p.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.p.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.p.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.p.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.bC(_.OhB),this.businessEmailDisplayState="CAPTCHA"))};
_.p.onYtServiceRequestCompleted=function(h){var E;if((E=h.detail.data)==null?0:E.businessEmail)this.businessEmail=h.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var g;if((g=h.detail.data)==null?0:g.errorMessage)this.businessEmailErrorMessage=h.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.p.computeEmailHref=function(h){return"mailto:"+h};
_.p.computeSafeUrl=function(h){if(h)return _.Yr(h)};
_.p.onBusinessEmailCaptchaSubmit=function(){var h;(h=this.data)!=null&&h.onBusinessEmailRevealClickCommand&&(h=this.JSC$21733_captchaTextarea.value)&&(h={recaptcha_response_token:h,channel_id:this.data.channelId},_.GF().resolve(_.zF).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},h,{element:this.hostElement})}))};
_.p.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ze.Object.defineProperties(uZ.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 h,E;return!((h=this.data)==null||!h.primaryLinks)&&!((E=this.data)==null?0:E.links)&&this.data.primaryLinks.every(function(g){return g.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.primaryLinks)&&!((E=this.data)==null?0:E.links)&&!this.shouldShowNewLinks}}});
uZ.prototype.onYtServiceRequestCompleted=uZ.prototype.onYtServiceRequestCompleted;uZ.prototype.dataChanged=uZ.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],uZ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.Sg("#g-recaptcha-response"),_.V("design:type",HTMLTextAreaElement)],uZ.prototype,"JSC$21733_captchaTextarea",void 0);_.Y([_.x(),_.V("design:type",Object)],uZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],uZ.prototype,"businessEmailDisplayState",void 0);_.Y([_.x(),_.V("design:type",String)],uZ.prototype,"businessEmail",void 0);_.Y([_.x(),_.V("design:type",String)],uZ.prototype,"businessEmailErrorMessage",void 0);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uZ.prototype,"hideDetailsSection",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uZ.prototype,"dataChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uZ.prototype,"shouldShowNewLinks",null);_.Y([_.S("data","shouldShowLinks"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uZ.prototype,"shouldShowLegacyLinks",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],uZ.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],uZ);
_.X(uZ,"ytd-channel-about-metadata-renderer",function(){if(YmG!==void 0)return YmG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return YmG=h},{mode:1});var sX0;_.$P("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var QB=function(){return _.D.apply(this,arguments)||this};
_.f(QB,_.D);QB.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],QB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],QB.prototype,"lockupContainerType",void 0);_.Y([_.x(),_.V("design:type",String)],QB.prototype,"thumbnailFixedWidth",void 0);
_.Y([_.K({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],QB);
_.X(QB,"ytd-channel-featured-content-renderer",function(){if(sX0!==void 0)return sX0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return sX0=h},{mode:1});var VtZ;_.$P("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var h8=function(){var h=_.D.apply(this,arguments)||this;h.roundContainer=!0;h.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return h};
_.f(h8,_.D);_.p=h8.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.dataChanged=function(){this.imageWidth=this.imageHeight=24;var h=this.data;h.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!h.style&&h.image&&h.image.thumbnails.length&&(h=h.image.thumbnails[0],this.imageWidth=h.width||0,this.imageHeight=h.height||0)};
_.p.computeSource=function(h){return h.secondarySource?_.Wp(h.secondarySource):_.Wp(h.source)};
_.p.computeClarifyStyle=function(h){return h?h.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.p.isLargeStyle=function(h){return h==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.p.computeBackgroundStyle=function(h){return h?h.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.p.computeHasActionButton=function(h){return!!h.actionButton};
_.p.computeHasBottomSection=function(h){return!!h.ctaHasBottomSection};
_.p.computeIsSourceMissing=function(h){return h.ctaHasBottomSection===!1?!0:h&&this.computeSource(h)?!1:!0};
_.p.computeSecondaryEndpoint=function(h){return h.secondaryEndpoint||h.endpoint};
h8.prototype.dataChanged=h8.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],h8.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],h8.prototype,"imageWidth",void 0);_.Y([_.x(),_.V("design:type",Number)],h8.prototype,"imageHeight",void 0);
_.Y([_.x({computed:"computeSecondaryEndpoint(data)"}),_.V("design:type",Object)],h8.prototype,"secondaryEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.V("design:type",Boolean)],h8.prototype,"hasActionButton",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.V("design:type",Boolean)],h8.prototype,"hasBottomSection",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.V("design:type",Boolean)],h8.prototype,"missingSource",void 0);_.Y([_.x({computed:"computeIcon_(data.icon)"}),_.V("design:type",String)],h8.prototype,"icon",void 0);_.Y([_.x({computed:"computeIcon_(data.secondaryIcon)"}),_.V("design:type",String)],h8.prototype,"secondaryIcon",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.V("design:type",String)],h8.prototype,"clarifyStyle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.V("design:type",String)],h8.prototype,"backgroundStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],h8.prototype,"roundContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],h8.prototype,"amsterdamEnabled",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],h8.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-clarification-renderer",disableElementRegistration:!0})],h8);
_.X(h8,"ytd-clarification-renderer",function(){if(VtZ!==void 0)return VtZ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VtZ=h},{mode:1});var kk0;var y80;var Em=function(){var h=_.D.apply(this,arguments)||this;h.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return h};
_.f(Em,_.D);_.p=Em.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.p.computeIcon=function(h){return h?"yt-icons:"+h.toLowerCase():null};
_.p.computeUseContacts=function(h){return!!h.contacts&&h.contacts.length>0};
_.p.computePhoneContact=function(h){var E,g;return(E=h.contacts)==null?void 0:(g=E.find(function(Z){var M;return(Z==null?void 0:(M=Z.icon)==null?void 0:M.iconType)==="PHONE"}))==null?void 0:g.actionText};
_.p.computeSmsContact=function(h){var E,g;return(E=h.contacts)==null?void 0:(g=E.find(function(Z){var M;return(Z==null?void 0:(M=Z.icon)==null?void 0:M.iconType)==="SMS"}))==null?void 0:g.actionText};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Em.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Em.prototype,"amsterdamEnabled",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.V("design:type",Boolean)],Em.prototype,"useContacts",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.V("design:type",String)],Em.prototype,"phoneContact",void 0);_.Y([_.K({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Em);
_.X(Em,"ytd-single-action-emergency-support-renderer",function(){if(y80!==void 0)return y80;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return y80=h},{mode:1});_.$P("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var g4=function(){var h=_.D.apply(this,arguments)||this;h.roundedContainer=!0;h.amsterdamEnabled=_.J("enable_desktop_amsterdam_info_panels");return h};
_.f(g4,_.D);g4.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],g4.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],g4.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],g4.prototype,"amsterdamEnabled",void 0);
_.Y([_.K({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],g4);
_.X(g4,"ytd-emergency-onebox-renderer",function(){if(kk0!==void 0)return kk0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kk0=h},{mode:1});var FVx;_.$P("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var ZZ=function(){return _.D.apply(this,arguments)||this};
_.f(ZZ,_.D);ZZ.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZZ.prototype,"data",void 0);_.Y([_.K({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],ZZ);
_.X(ZZ,"ytd-exploratory-results-renderer",function(){if(FVx!==void 0)return FVx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return FVx=h},{mode:1});var A8x;_.$P("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var MX=function(){var h=_.D.apply(this,arguments)||this;h.messageData=null;return h};
_.f(MX,_.D);_.p=MX.prototype;_.p.onServiceRequestCompleted=function(h,E){h=E.actions||[];E=0;for(var g=h.length;E<g;E++){var Z=h[E],M=void 0,W=void 0;if((M=_.e(Z,_.Or))==null?0:(W=M.item)==null?0:W.messageRenderer)this.messageData=_.e(Z,_.Or).item.messageRenderer}};
_.p.dataChanged=function(){var h=this.data;this.hostElement.hidden=!1;_.jg(this.hostElement,"is-channel",h&&!h.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.p.computeThumbnailWidth=function(h){return h?126:56};
_.p.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.p.onSubmitTap=function(){var h=this.data,E=this.selectedResponseIndex;h!==void 0&&E!==void 0&&(h=h.responses[E],h.responseData&&_.GF().resolve(_.zF).resolveCommand(h.responseData,{form:{element:this.hostElement}}))};
_.p.onDismissTap=function(){this.hostElement.hidden=!0;var h=this.data;h!==void 0&&h.dismissalEndpoint&&_.GF().resolve(_.zF).resolveCommand(h.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.updateSelectedResponseIndexFromBinding=function(h){this.selectedResponseIndex=h.detail.value};
MX.prototype.onSelectedResponseIndexChange=MX.prototype.onSelectedResponseIndexChange;MX.prototype.dataChanged=MX.prototype.dataChanged;MX.prototype.onServiceRequestCompleted=MX.prototype.onServiceRequestCompleted;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MX.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],MX.prototype,"messageData",void 0);
_.Y([_.x(),_.V("design:type",Number)],MX.prototype,"selectedResponseIndex",void 0);_.Y([_.Sg("#submit-button"),_.V("design:type",HTMLButtonElement)],MX.prototype,"submitButton",void 0);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],MX.prototype,"onServiceRequestCompleted",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MX.prototype,"dataChanged",null);
_.Y([_.Nm("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],MX.prototype,"onSelectedResponseIndexChange",null);_.Y([_.K({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],MX);
_.X(MX,"ytd-feedback-elicitation-single-question-renderer",function(){if(A8x!==void 0)return A8x;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return A8x=h},{mode:1});var T4U;var Wr=function(){return _.D.apply(this,arguments)||this};
_.f(Wr,_.D);Wr.prototype.computeThumbnailWidth=function(h){return h?602:428};
Wr.prototype.updateWideFromBinding=function(h){this.wide=h.detail.value};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Wr.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Wr.prototype,"wide",void 0);_.Y([_.K({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Wr);
_.X(Wr,"ytd-newspaper-hero-video-renderer",function(){if(T4U!==void 0)return T4U;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return T4U=h},{mode:1});var bxi;var px=function(){return _.D.apply(this,arguments)||this};
_.f(px,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],px.prototype,"rendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],px.prototype,"data",void 0);_.Y([_.K({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],px);
_.X(px,"ytd-newspaper-mini-video-renderer",function(){if(bxi!==void 0)return bxi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return bxi=h},{mode:1});var ubC;_.$P("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Gk=function(){return _.D.apply(this,arguments)||this};
_.f(Gk,_.D);Gk.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"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Gk.prototype,"data",void 0);_.Y([_.K({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Gk);
_.X(Gk,"ytd-newspaper-renderer",function(){if(ubC!==void 0)return ubC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ubC=h},{mode:1});var QXi;_.$P("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var zk=function(){var h=_.D.apply(this,arguments)||this;h.isSegment=!1;h.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};h.nextContinuation={continuationType:"playlistVideoListContinuation"};return h};
_.f(zk,_.D);_.p=zk.prototype;_.p.attached=function(){_.GF();var h;(h=_.GF().resolve(_.pl(_.vq)))!=null&&(h.playlistVideoListElement=this.hostElement)};
_.p.detached=function(){var h;(h=_.GF().resolve(_.pl(_.vq)))!=null&&(h.playlistVideoListElement=void 0);h=_.GF().resolve(_.pl(_.rL));_.J("web_enable_voting_animation")&&h&&(h.parentElem=void 0,h.videos=[],h.continuationsPresent=!1,h.showRefreshPill=!1)};
_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.p.dataChanged=function(){var h=_.GF().resolve(_.pl(_.rL));if(_.J("web_enable_voting_animation")&&this.data&&h){var E=_.UB(this.hostElement).querySelector("#contents");E&&(h.parentElem=E);h.addVideos(this.data.contents)}_.UDM(this.ytReorderableBehavior)};
_.p.onRendererstamperFinished=function(){this.canReorder&&_.L7n(this.ytReorderableBehavior,_.UB(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.p.onPlaylistReloading=function(){this.isReloading=!0};
_.p.onUpdateSetVideoId=function(h){if(h.detail&&this.data&&this.data.contents){var E=h.detail;h=this.data.contents.findIndex(function(M){var W;return((W=M.playlistVideoRenderer)==null?void 0:W.videoId)===E.videoId});
if(!(h<0)&&E.setVideoId&&(this.set("data.contents."+h+".playlistVideoRenderer.setVideoId",E.setVideoId),_.J("web_enable_voting_animation"))){var g;if(h=_.e((g=this.data.contents[h].playlistVideoRenderer)==null?void 0:g.engagementBar,_.PDN)){var Z;(Z=h.actions)==null||Z.forEach(function(M){if(M=_.e(M,_.B0x))M.itemId=E.setVideoId})}(g=_.GF().resolve(_.pl(_.rL)))&&N4X(g,E.videoId,E.setVideoId)}}};
_.p.computeContentsClass=function(h){return h?"reloading":""};
_.p.computeIsSortable=function(h,E){return h&&E>0&&!this.isSegment&&!_.J("shorts_in_playlists_web")};
_.p.computeIsEditable=function(h){return h};
_.p.computeCanReorder=function(h){return h};
_.p.handlePlaylistRemoveVideosAction=function(h){if(this.get("playlistRemoveVideosAction.setVideoIds",h)&&this.data&&this.data.contents){h=_.e(h,_.RpF).setVideoIds;for(var E=this.data.contents.length-1;E>=0;){var g=this.data.contents[E].playlistVideoRenderer;g&&g.setVideoId&&h.includes(g.setVideoId)&&this.splice("data.contents",E,1);E--}_.BX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var h=0;h<this.data.contents.length;h++)this.set("data.contents."+h+".playlistVideoRenderer.index",_.MR(String(h+1)))};
_.p.handleDrop=function(h){h=h.currDragItem;var E=_.O4(h.parentNode.childNodes,h),g=this.data.contents.splice(Number(_.Wp(h.data.index))-1,1)[0];this.data.contents.splice(E,0,g);E=E?this.get("contents."+(E-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();h=this.buildReorderServiceEndpoint(h.data.setVideoId,E);this.ytComponentBehavior.resolveCommand(h)};
_.p.buildReorderServiceEndpoint=function(h,E){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",h),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",E),this.data.onReorderEndpoint):null};
_.p.handleUpdatePlaylistAction=function(h){var E;(h=_.e((E=_.e(h,_.PGl))==null?void 0:E.updatedRenderer,_.ztl))&&this.canReorder!==h.canReorder&&this.set("data.canReorder",h.canReorder);h&&h.contents&&(this.set("data.contents",h.contents),this.isReloading=!1);h&&h.continuations&&this.set("data.continuations",h.continuations)};
_.p.handleAddRendererToItemSectionAction=function(h){var E,g=(E=_.e(h,DXU))==null?void 0:E.renderer,Z;g&&((Z=_.e(h,DXU))==null?void 0:Z.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,g),h=_.GF().resolve(_.pl(_.rL)),_.J("web_enable_voting_animation")&&h&&(g&&(E=_.R0N(g))&&h.recommendedVideos.push({itemId:E,videoId:_.U7Z(g),voteCount:_.L3O(g),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.p.isVotingEnabledOnPlaylist=function(h){if(!h)return!1;h=_.G(h);for(h=h.next();!h.done;h=h.next()){var E=void 0;return!!_.e((E=h.value.playlistVideoRenderer)==null?void 0:E.engagementBar,_.PDN)}return!1};
_.p.onAppendContinuationItemsActionFinished=function(){var h;this.isVotingEnabledOnPlaylist((h=this.data)==null?void 0:h.contents)&&(this.updateIndices(),h=_.GF().resolve(_.pl(_.rL)),_.J("web_enable_voting_animation")&&h&&this.data&&h.addVideos(this.data.contents))};
_.p.updateVideoData=function(h){if(h.detail&&this.data&&this.data.contents){var E=h.detail;h=E.toIdx;var g=E.itemId,Z=E.newVoteCount,M=E.voteStatus;E=E.hideItem;var W,z,c=(W=this.data)==null?void 0:(z=W.contents)==null?void 0:z.findIndex(function(L){return _.R0N(L)===g});
if(!(c<0)){W=this.data.contents[c];var I;if((I=W.playlistVideoRenderer)==null?0:I.voteCount)W.playlistVideoRenderer.voteCount=Z;var B;if(I=_.e((B=W.playlistVideoRenderer)==null?void 0:B.engagementBar,_.PDN)){var U;(U=I.actions)==null||U.forEach(function(L){(L=_.e(L,_.B0x))&&L.initialState&&(L.initialState.votes=Z,L.initialState.status=M)})}this.data.contents.splice(c,1);
E||this.data.contents.splice(h,0,W);this.updateIndices()}}};
zk.prototype.updateVideoData=zk.prototype.updateVideoData;zk.prototype.onAppendContinuationItemsActionFinished=zk.prototype.onAppendContinuationItemsActionFinished;zk.prototype.onUpdateSetVideoId=zk.prototype.onUpdateSetVideoId;zk.prototype.onPlaylistReloading=zk.prototype.onPlaylistReloading;zk.prototype.onRendererstamperFinished=zk.prototype.onRendererstamperFinished;zk.prototype.dataChanged=zk.prototype.dataChanged;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],zk.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],zk.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.t(_.jlD),_.V("design:type",Object)],zk.prototype,"ytReorderableBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],zk.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],zk.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zk.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],zk.prototype,"isReloading",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],zk.prototype,"isSegment",void 0);_.Y([_.x({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.V("design:type",Boolean)],zk.prototype,"isSortable",void 0);_.Y([_.x({computed:"computeIsEditable(data.isEditable)"}),_.V("design:type",Boolean)],zk.prototype,"isEditable",void 0);_.Y([_.x({computed:"computeCanReorder(data.canReorder)"}),_.V("design:type",Boolean)],zk.prototype,"canReorder",void 0);
_.Y([_.x({value:101}),_.V("design:type",Number)],zk.prototype,"scrollMargin",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zk.prototype,"dataChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zk.prototype,"onRendererstamperFinished",null);
_.Y([_.f3("yt-playlist-reloading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zk.prototype,"onPlaylistReloading",null);_.Y([_.f3("yt-update-set-video-id"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],zk.prototype,"onUpdateSetVideoId",null);
_.Y([_.f3("yt-append-continuation-items-action-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zk.prototype,"onAppendContinuationItemsActionFinished",null);_.Y([_.f3("yt-update-video-data-voting-animation"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],zk.prototype,"updateVideoData",null);_.Y([_.K({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],zk);
_.X(zk,"ytd-playlist-video-list-renderer",function(){if(QXi!==void 0)return QXi;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return QXi=h},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var hMZ;var aX=function(){return _.D.apply(this,arguments)||this};
_.f(aX,_.D);aX.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"}}}}};
aX.prototype.onTextWrapperTap=function(h){var E=this.data&&this.data.navigationEndpoint;E&&!_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:E})};
aX.prototype.dataChanged=function(){var h=this.get("data.offerButton.buttonRenderer.serviceEndpoint");h&&h.commandMetadata&&_.e(h.commandMetadata,_.Vi)&&_.e(h.commandMetadata,_.Vi).fireAutomatically&&_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})};
aX.prototype.dataChanged=aX.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.LV),_.V("design:type",Object)],aX.prototype,"ytdLockupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],aX.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],aX.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],aX.prototype,"biggerThumbsStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],aX.prototype,"leftAligned",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aX.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-movie-renderer"})],aX);
_.X(aX,"ytd-movie-renderer",function(){if(hMZ!==void 0)return hMZ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return hMZ=h},{mode:1});var EGG;var cr=function(){var h=_.D.apply(this,arguments)||this;h.rounded=!0;h.pageAttachedTo=void 0;h.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return h};
_.f(cr,_.D);cr.prototype.attached=function(){this.pageAttachedTo=_.GF().resolve(_.p4).getCurrentPage();_.Ra(this.hostElement,"yt-player-attached",this.player)};
cr.prototype.detached=function(){var h;if((h=this.pageAttachedTo)==null?0:h.hostElement)_.Ra(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
cr.prototype.dataChanged=function(){var h;if((h=this.data)==null?0:h.videoId)h={video_id:this.data.videoId,autoplay:!0},!_.J("miniplayer_stop_channel_video_autoplay_killswitch")&&_.GF().resolve(_.Yu).isMiniplayerActive()&&(h.pause_at_start=!0,h.autoplay=!1),this.player.loadVideoWithPlayerVars(h)};
cr.prototype.handleSignalActionPausePlayer=function(){_.aJ().pause()};
cr.prototype.dataChanged=cr.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],cr.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],cr.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cr.prototype,"rounded",void 0);_.Y([_.Sg("#player"),_.V("design:type",Object)],cr.prototype,"player",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cr.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],cr);
_.X(cr,"ytd-channel-video-player-renderer",function(){if(EGG!==void 0)return EGG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return EGG=h},{mode:1});var gGI;var ZcI;var MoC;var i$=function(){var h=_.D.apply(this,arguments)||this;h.playing=!1;h.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.AM(h);h.active=!1;return h};
_.f(i$,_.D);_.p=i$.prototype;_.p.detached=function(){this.stop()};
_.p.play=function(){var h=this,E,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return h.active=!0,E=h.get("data.inlinePlaybackEndpoint.watchEndpoint"),g=E.videoId||h.data.videoId,Z=E.startTimeSeconds||0,M=E.playerParams||null,_.J("kevlar_player_update_killswitch")?z.yield(h.playerEl.update({args:{video_id:g,startSeconds:Z,player_params:M}}),2):(h.playerEl.loadVideoWithPlayerVars({video_id:g,startSeconds:Z,player_params:M,autoplay:!0}),z.jumpTo(2));if(z.nextAddress!=4)return z.yield(h.playerEl.getPlayerPromise(),
4);W=z.yieldResult;W.unloadModule("annotations_module");W.addEventListener("onStateChange",function(c){h.onPlayerStateChange(c)});
_.SK(z)})};
_.p.onPlayerStateChange=function(h){if(this.active)switch(this.playing=h===1,h){case 1:_.Ra(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Ra(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.p.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.p.resize=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.playerEl.getPlayerPromise(),2);E=g.yieldResult;E.setSize(NaN,NaN);_.SK(g)})};
_.Y([_.x(),_.V("design:type",Object)],i$.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],i$.prototype,"playing",void 0);_.Y([_.x(),_.V("design:type",Object)],i$.prototype,"playerId",void 0);_.Y([_.Sg("#player"),_.V("design:type",Object)],i$.prototype,"playerEl",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],i$);
_.X(i$,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(MoC!==void 0)return MoC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return MoC=h},{mode:1});var WeR;var pyU;var oX=function(){var h=_.D.apply(this,arguments)||this;h.width=0;return h};
_.f(oX,_.D);_.p=oX.prototype;_.p.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.qm(this,this.onEnded));this.mp4El.addEventListener("error",_.qm(this,this.onError))};
_.p.detached=function(){this.videoEl.removeEventListener("ended",_.qm(this,this.onEnded));this.mp4El.removeEventListener("error",_.qm(this,this.onError))};
_.p.play=function(){var h=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var E=this.videoEl.play();E?E.then(function(){h.handleVideoStartPlaying()}).catch(function(){_.Ra(h.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Ra(this.hostElement,"yt-video-thumbnail-not-playing")};
_.p.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.p.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.p.dataChanged=function(){var h;if((h=this.data)==null?0:h.thumbnailPlaceholder)h=_.R9(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+h+")";this.stop();this.autoplay&&this.play()};
_.p.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.p.onEnded=function(){this.stop();_.Ra(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.p.onError=function(){_.Ra(this.hostElement,"yt-video-thumbnail-error")};
_.p.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.p.getVideoThumbnail=function(h){if(h&&h.length)return h[0]};
oX.prototype.dataChanged=oX.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],oX.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],oX.prototype,"animatePlaceholderOnEntrance",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],oX.prototype,"autoplay",void 0);_.Y([_.x({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.V("design:type",Object)],oX.prototype,"videoThumbnail",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],oX.prototype,"loop",void 0);_.Y([_.x(),_.V("design:type",Boolean)],oX.prototype,"isVideoPlaying",void 0);_.Y([_.x(),_.V("design:type",Object)],oX.prototype,"width",void 0);_.Y([_.Sg("#mp4"),_.V("design:type",HTMLElement)],oX.prototype,"mp4El",void 0);_.Y([_.Sg("#placeholder"),_.V("design:type",HTMLElement)],oX.prototype,"placeholderEl",void 0);_.Y([_.Sg("#video"),_.V("design:type",HTMLVideoElement)],oX.prototype,"videoEl",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oX.prototype,"dataChanged",null);_.Y([_.yc({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],oX);
_.X(oX,"yt-video-as-thumbnail-details",function(){if(pyU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;WeR===void 0&&(WeR=document.createElement("template"));var Z=WeR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);pyU=h}h=pyU;return h},{mode:2});var IX=function(){var h=_.D.apply(this,arguments)||this;h.disableGridStateAware=!1;h.animationEnabled=_.J("enable_web_ketchup_hero_animation");h.transitioningOut=!1;h.narrow=!1;h.narrower=!1;h.isCarouselInFeed=!1;h.videoTimeoutJobId=0;h.panelTimeoutJobId=0;h.panelTimeoutJobStartMs=0;h.actionMap={"yt-window-resized":"onWindowResized"};return h};
_.f(IX,_.D);_.p=IX.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.p.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var h;this.player&&((h=this.data)==null?0:h.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.p.attached=function(){this.onWindowResized()};
_.p.detached=function(){this.clearTimeouts()};
_.p.onWindowResized=function(){this.updateSize()};
_.p.computePanelLayout=function(h){return h&&h.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.playVideo=function(){var h;this.video&&((h=this.data)==null?0:h.videoThumbnail)&&this.video.play();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.play()};
_.p.stopVideo=function(){var h;this.video&&((h=this.data)==null?0:h.videoThumbnail)&&this.video.stop();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.stop()};
_.p.transitionOut=function(){var h=this;this.transitioningOut=!0;return new Promise(function(E){var g=function(){_.UB(h.hostElement).querySelector("#action-button").removeEventListener("animationend",g);_.KP.cancelJob(Z);E();h.transitioningOut=!1};
var Z=_.xW(_.KP,g,1E3);_.UB(h.hostElement).querySelector("#action-button").addEventListener("animationend",g);h.player&&(h.player.playing=!1)})};
_.p.computeMetadataOrder=function(h){return h&&h.metadataOrder&&h.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?h.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.p.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.p.computeAvatarSize=function(h){return h&&h.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.p.onContentClick=function(h){if(!_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString()])){var E;if((E=this.data)==null?0:E.navigationEndpoint){var g;this.componentBehavior.resolveCommand((g=this.data)==null?void 0:g.navigationEndpoint)}}};
_.p.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.p.setBackgroundImage=function(h){if(h=this.getBackgroundImageUrl(h))_.UB(this.hostElement).querySelector("#hero").style.backgroundImage="url("+h+")"};
_.p.setScrimLayer=function(h){var E=this.getScrimLayerColorStops(h);h=((h==null?void 0:h.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(h=180);_.nF("HTML_DIR")==="rtl"&&(h=-h);E&&(_.UB(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+h+"deg, "+E+")")};
_.p.isNarrower=function(){return this.hostElement.clientWidth<IX.NARROW_VERSION_SIZE};
_.p.getScrimLayerColorStops=function(){var h,E=(h=this.data)==null?void 0:h.scrimColorValues;if(!E)return null;if(E.length===1)return h=_.uU(E[0]),h+" 0%, "+h+" 100%";if(E.length===3){var g=[0,72,98];return E.map(function(Z,M){return _.uU(Z)+" "+g[M]+"%"}).join(",")}return null};
_.p.getBackgroundImageUrl=function(h){return h&&h.largeFormFactorBackgroundThumbnail?_.R9((h.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||h.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.p.onPlaying=function(){this.startVideoTimeout()};
_.p.onEnded=function(){this.rotate()};
_.p.startPanelTimeout=function(){var h=this;if(!this.panelTimeoutJobId){var E=this.get("data.minPanelDisplayDurationMs");E&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.xW(_.KP,function(){h.rotate()},E))}};
_.p.startVideoTimeout=function(){var h=this;if(!this.videoTimeoutJobId){_.KP.cancelJob(this.panelTimeoutJobId);var E=Date.now()-this.panelTimeoutJobStartMs;E=Math.max(0,this.get("data.minPanelDisplayDurationMs")-E);E=Math.max(this.get("data.minVideoPlayDurationMs")||0,E);this.videoTimeoutJobId=_.xW(_.KP,function(){h.rotate()},E)}};
_.p.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.KP.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.KP.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.p.rotate=function(){this.clearTimeouts();_.Ra(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ze.Object.defineProperties(IX.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.UB(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.UB(this.hostElement).querySelector("#video")}}});
_.ze.Object.defineProperties(IX,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
IX.prototype.onEnded=IX.prototype.onEnded;IX.prototype.onPlaying=IX.prototype.onPlaying;IX.prototype.dataChanged=IX.prototype.dataChanged;_.Y([_.t(_.IF),_.V("design:type",Object)],IX.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],IX.prototype,"componentBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],IX.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.t(_.N3m),_.V("design:type",Object)],IX.prototype,"ytBooleanLogicBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],IX.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"disableGridStateAware",void 0);_.Y([_.x(),_.V("design:type",Object)],IX.prototype,"data",void 0);_.Y([_.x({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.V("design:type",String)],IX.prototype,"panelLayout",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"animationEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"transitioningOut",void 0);
_.Y([_.x({computed:"computeMetadataOrder(data)"}),_.V("design:type",Boolean)],IX.prototype,"metadataOrder",void 0);_.Y([_.x({computed:"computeByline(data)"}),_.V("design:type",Object)],IX.prototype,"byline",void 0);_.Y([_.x({computed:"computeAvatarSize(data)"}),_.V("design:type",Number)],IX.prototype,"avatarSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"narrow",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"narrower",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"layoutStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IX.prototype,"isCarouselInFeed",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IX.prototype,"dataChanged",null);_.Y([_.f3("yt-default-promo-panel-renderer-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IX.prototype,"onPlaying",null);
_.Y([_.f3("yt-default-promo-panel-renderer-ended"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],IX.prototype,"onEnded",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],IX);
_.X(IX,"ytd-default-promo-panel-renderer",function(){if(ZcI!==void 0)return ZcI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ZcI=h},{mode:1});_.$P("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var RX=function(){var h=_.D.apply(this,arguments)||this;h.narrower=!1;h.dotMenuVisible=!1;h.paginationThumbnailsVisible=!1;h.active=!0;h.disableGridStateAware=!1;h.actionMap={"yt-window-resized":"onWindowResized"};return h};
_.f(RX,_.D);_.p=RX.prototype;_.p.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.qm(this,this.onPageTypeChange));this.currentPageSubtype=_.lwa(location.pathname);this.onWindowResized()};
_.p.detached=function(){this.jobId&&_.KP.cancelJob(this.jobId);this.updateSizeJobId&&_.KP.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.qm(this,this.onPageTypeChange))};
_.p.onPageTypeChange=function(h){this.active=h.detail.newPageSubtype===this.currentPageSubtype};
_.p.onWindowResized=function(){this.updateSize()};
_.p.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.p.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.p.setCarouselItem=function(h){h>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.KP.cancelJob(this.jobId);var E=this.getCurrentPanelElement();E&&E.stopVideo();this.currentItemIndex=h%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(E||(E=this.getCurrentPanelElement()),E.playVideo()):this.startRotationJob()};
_.p.scrollThumbnails=function(h){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var E=this.getCurrentPaginationElement();if(E){var g=_.UB(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?g.style.transform="translateX(0)":(E=E.offsetWidth+8,g.style.transform="translateX(-"+E*(h-Math.ceil(Math.floor(this.overlay.offsetWidth/E)/2)+1)+"px)")}}};
_.p.onDataChanged=function(){var h=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Pw(_.KP,function(){var E;(E=h.getCurrentPanelElement())==null||E.updateSize();h.updateSize()}))};
_.p.getCurrentPanelElement=function(){return _.UB(_.UB(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.p.getCurrentPaginationElement=function(){return _.UB(_.UB(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.p.getNavigationClass=function(h,E){return h===E?"selected":""};
_.p.getNavigationDurationStyle=function(h){return"animation-duration:"+(this.get("data.carouselItems."+h+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.p.onNavigationTap=function(h){var E=this,g=h.model.index;g!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){E.setCarouselItem(g)}),this.autorotateActive=!1)};
_.p.onVideoThumbnailEnded=function(){var h=this;if(this.shouldRotate()){var E=this.getCurrentPaginationElement();E&&(E.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){E.classList.remove("finished");h.setNextCarouselItem()}))}};
_.p.onVideoThumbnailError=function(){this.startRotationJob()};
_.p.onVideoNotPlaying=function(){this.startRotationJob()};
_.p.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.p.startRotationJob=function(){var h=this;_.KP.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.KP.addLowPriorityJob(function(){h.getCurrentPanelElement().transitionOut().then(function(){h.setNextCarouselItem()})},this.rotationTimeout))};
_.p.computeDotMenuVisible=function(h,E){return!!h&&!!h.carouselItems&&h.carouselItems.length>1&&!h.paginationThumbnails||!!E};
_.p.computePaginationThumbnailsVisible=function(h,E){var g,Z;return((Z=h==null?void 0:(g=h.paginationThumbnails)==null?void 0:g.length)!=null?Z:0)>1&&!E};
_.p.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.p.computePaginatorAlignment=function(h){return(h==null?void 0:h.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.p.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.p.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.p.isNarrower=function(h){return(h!=null?h:0)<IX.NARROW_VERSION_SIZE};
RX.prototype.activeChanged=RX.prototype.activeChanged;RX.prototype.onVideoNotPlaying=RX.prototype.onVideoNotPlaying;RX.prototype.onVideoThumbnailError=RX.prototype.onVideoThumbnailError;RX.prototype.onVideoThumbnailEnded=RX.prototype.onVideoThumbnailEnded;RX.prototype.onDataChanged=RX.prototype.onDataChanged;_.Y([_.t(_.IF),_.V("design:type",Object)],RX.prototype,"ytdGridStateAwareBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],RX.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],RX.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],RX.prototype,"currentItem",void 0);
_.Y([_.x(),_.V("design:type",Number)],RX.prototype,"currentItemIndex",void 0);_.Y([_.x(),_.V("design:type",Number)],RX.prototype,"rotationTimeout",void 0);_.Y([_.x(),_.V("design:type",Number)],RX.prototype,"loopCount",void 0);_.Y([_.x({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.V("design:type",String)],RX.prototype,"paginatorAlignment",void 0);_.Y([_.x(),_.V("design:type",Number)],RX.prototype,"jobId",void 0);
_.Y([_.x(),_.V("design:type",Number)],RX.prototype,"updateSizeJobId",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],RX.prototype,"isCarouselInFeed",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],RX.prototype,"narrower",void 0);_.Y([_.x({computed:"computeDotMenuVisible(data, narrower)"}),_.V("design:type",Object)],RX.prototype,"dotMenuVisible",void 0);
_.Y([_.x({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.V("design:type",Object)],RX.prototype,"paginationThumbnailsVisible",void 0);_.Y([_.x({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.V("design:type",String)],RX.prototype,"layoutType",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],RX.prototype,"autorotateActive",void 0);_.Y([_.x(),_.V("design:type",Object)],RX.prototype,"active",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],RX.prototype,"disableGridStateAware",void 0);_.Y([_.Sg("#overlay"),_.V("design:type",HTMLElement)],RX.prototype,"overlay",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RX.prototype,"onDataChanged",null);
_.Y([_.f3("yt-video-thumbnail-ended"),_.f3("yt-default-promo-panel-renderer-rotate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RX.prototype,"onVideoThumbnailEnded",null);_.Y([_.f3("yt-video-thumbnail-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RX.prototype,"onVideoThumbnailError",null);
_.Y([_.f3("yt-video-thumbnail-not-playing"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RX.prototype,"onVideoNotPlaying",null);_.Y([_.lq("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RX.prototype,"activeChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],RX);
_.X(RX,"ytd-carousel-item-renderer",function(){if(gGI!==void 0)return gGI;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return gGI=h},{mode:2});var GPC;var zMU;var aBi;var cJc;var Pr=function(){var h=_.D.apply(this,arguments)||this;h.originalQuery=null;h.originalEndpoint=null;return h};
_.f(Pr,_.D);Pr.prototype.computeShowOriginalQueryWithoutEndpoint_=function(h,E){return!(!h||E)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Pr.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"correctedText",void 0);_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"correctedQuery",void 0);_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"correctedEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"originalText",void 0);_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"originalQuery",void 0);
_.Y([_.x(),_.V("design:type",Object)],Pr.prototype,"originalEndpoint",void 0);_.Y([_.x({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.V("design:type",Boolean)],Pr.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.Y([_.yc({is:"yt-search-query-correction",disableElementRegistration:!0})],Pr);
_.X(Pr,"yt-search-query-correction",function(){if(cJc===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;aBi===void 0&&(aBi=document.createElement("template"));var Z=aBi;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);cJc=h}h=cJc;return h},{mode:2});_.$P("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var Br=function(){return _.D.apply(this,arguments)||this};
_.f(Br,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Br.prototype,"data",void 0);_.Y([_.yc({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],Br);
_.X(Br,"yt-did-you-mean-renderer",function(){if(zMU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;GPC===void 0&&(GPC=document.createElement("template"));var Z=GPC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);zMU=h}h=zMU;return h},{mode:2});var icI;var oG0;_.$P("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Um=function(){return _.D.apply(this,arguments)||this};
_.f(Um,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Um.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Um.prototype,"data",void 0);_.Y([_.yc({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Um);
_.X(Um,"yt-including-results-for-renderer",function(){if(oG0===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;icI===void 0&&(icI=document.createElement("template"));var Z=icI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);oG0=h}h=oG0;return h},{mode:2});var IBZ;var RMp;_.$P("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Lx=function(){return _.D.apply(this,arguments)||this};
_.f(Lx,_.D);Lx.prototype.computeExtraClasses_=function(h,E){var g="";h&&(g+=" "+h.toLowerCase().replace(/_/g,"-"));E&&(g+=" "+E.toLowerCase().replace(/_/g,"-"));return g};
Lx.prototype.computeUrlImg_=function(){var h=this.data;h.image&&(_.UB(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.R9(h.image.thumbnails,Number.MAX_VALUE)+")")};
Lx.prototype.computeUrlImg_=Lx.prototype.computeUrlImg_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Lx.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lx.prototype,"computeUrlImg_",null);_.Y([_.yc({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Lx);
_.X(Lx,"yt-music-pass-feature-info-renderer",function(){if(RMp===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;IBZ===void 0&&(IBZ=document.createElement("template"));var Z=IBZ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);RMp=h}h=RMp;return h},{mode:2});var Pbx;var B1U;_.$P("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var jt=function(){return _.D.apply(this,arguments)||this};
_.f(jt,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jt.prototype,"data",void 0);_.Y([_.yc({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],jt);
_.X(jt,"yt-no-results-found-showing-results-for-renderer",function(){if(B1U===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Pbx===void 0&&(Pbx=document.createElement("template"));var Z=Pbx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);B1U=h}h=B1U;return h},{mode:2});var U5c;var Lex;_.$P("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var d4=function(){return _.D.apply(this,arguments)||this};
_.f(d4,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],d4.prototype,"data",void 0);_.Y([_.yc({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],d4);
_.X(d4,"yt-results-without-quotes-renderer",function(){if(Lex===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;U5c===void 0&&(U5c=document.createElement("template"));var Z=U5c;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Lex=h}h=Lex;return h},{mode:2});var j6J;var d50;_.$P("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Cx=function(){return _.D.apply(this,arguments)||this};
_.f(Cx,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cx.prototype,"data",void 0);_.Y([_.yc({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],Cx);
_.X(Cx,"yt-search-no-results-renderer",function(){if(d50===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;j6J===void 0&&(j6J=document.createElement("template"));var Z=j6J;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);d50=h}h=d50;return h},{mode:2});var CbU;var JJR;_.$P("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var J8=function(){return _.D.apply(this,arguments)||this};
_.f(J8,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],J8.prototype,"data",void 0);_.Y([_.yc({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],J8);
_.X(J8,"yt-showing-results-for-renderer",function(){if(JJR===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;CbU===void 0&&(CbU=document.createElement("template"));var Z=CbU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);JJR=h}h=JJR;return h},{mode:2});var eMI;var qPZ;var fBx;var N1p;var et=function(){var h=_.D.apply(this,arguments)||this;h.answerExpanded=!1;return h};
_.f(et,_.D);et.prototype.toggleAnswer_=function(h){var E=_.zw(h);E&&E.classList.contains("yt-simple-endpoint")||(h.preventDefault(),h.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
et.prototype.toggleAnswer_=et.prototype.toggleAnswer_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],et.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],et.prototype,"answerExpanded",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],et.prototype,"toggleAnswer_",null);
_.Y([_.yc({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],et);
_.X(et,"yt-generic-faq-question-renderer",function(){if(N1p===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;fBx===void 0&&(fBx=document.createElement("template"));var Z=fBx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);N1p=h}h=N1p;return h},{mode:2});_.$P("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var qX=function(){return _.D.apply(this,arguments)||this};
_.f(qX,_.D);qX.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qX.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qX.prototype,"data",void 0);_.Y([_.yc({is:"yt-faq-section-renderer",disableElementRegistration:!0})],qX);
_.X(qX,"yt-faq-section-renderer",function(){if(qPZ===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;eMI===void 0&&(eMI=document.createElement("template"));var Z=eMI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);qPZ=h}h=qPZ;return h},{mode:2});var toc;var SPC;_.$P("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var fx=function(){return _.D.apply(this,arguments)||this};
_.f(fx,_.D);
fx.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fx.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],fx.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fx.prototype,"data",void 0);_.Y([_.yc({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],fx);
_.X(fx,"yt-offer-item-expanded-renderer",function(){if(SPC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;toc===void 0&&(toc=document.createElement("template"));var Z=toc;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);SPC=h}h=SPC;return h},{mode:2});var x5I;var wyX;_.$P("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var NX=function(){return _.D.apply(this,arguments)||this};
_.f(NX,_.D);
NX.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"}}}}};
NX.prototype.computeFullWidthMode=function(h){return!(!h||!h.fullWidthMode)};
NX.prototype.computeBorderlessMode=function(h){return!(!h||!h.borderlessMode)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],NX.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.V("design:type",Boolean)],NX.prototype,"fullWidthMode",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.V("design:type",Boolean)],NX.prototype,"borderlessMode",void 0);_.Y([_.yc({is:"yt-offer-item-renderer",disableElementRegistration:!0})],NX);
_.X(NX,"yt-offer-item-renderer",function(){if(wyX===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;x5I===void 0&&(x5I=document.createElement("template"));var Z=x5I;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);wyX=h}h=wyX;return h},{mode:2});var D5x;var lBI;_.$P("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var t8=function(){return _.D.apply(this,arguments)||this};
_.f(t8,_.D);t8.prototype.computeAriaLevel_=function(h){return this.getLevelID_(h)};
t8.prototype.getLevelID_=function(h){return(h=h.match(/[0-9]+$/))&&h.length==1?h[0]:"1"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],t8.prototype,"data",void 0);_.Y([_.x({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.V("design:type",String)],t8.prototype,"ariaLevel",void 0);_.Y([_.x({value:"heading",reflectToAttribute:!0}),_.V("design:type",String)],t8.prototype,"role",void 0);
_.Y([_.x({value:-1,reflectToAttribute:!0}),_.V("design:type",Number)],t8.prototype,"tabindex",void 0);_.Y([_.yc({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],t8);
_.X(t8,"yt-subscription-product-header-renderer",function(){if(lBI===void 0){var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;D5x===void 0&&(D5x=document.createElement("template"));var Z=D5x;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);lBI=h}h=lBI;return h},{mode:2});var rJp;var m5G;_.$P("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var St=function(){return _.D.apply(this,arguments)||this};
_.f(St,_.D);St.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:_.KO("menuRenderer"),events:!0}}};
St.prototype.onStampFinished_=function(){_.UB(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
St.prototype.onStampFinished_=St.prototype.onStampFinished_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],St.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],St.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],St.prototype,"data",void 0);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],St.prototype,"onStampFinished_",null);
_.Y([_.yc({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],St);
_.X(St,"yt-subscription-product-renderer",function(){if(m5G===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;rJp===void 0&&(rJp=document.createElement("template"));var Z=rJp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);m5G=h}h=m5G;return h},{mode:2});var vGx;var HcU;_.$P("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var x1=function(){return _.D.apply(this,arguments)||this};
_.f(x1,_.D);x1.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x1.prototype.imageScrimColorValuesChanged_=function(){var h,E=(h=this.data)==null?void 0:h.imageScrimColorValues;_.UB(this.hostElement).querySelector("#scrim").style.backgroundColor=E?_.uU(E[0]):"transparent"};
x1.prototype.imageScrimColorValuesChanged_=x1.prototype.imageScrimColorValuesChanged_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],x1.prototype,"data",void 0);
_.Y([_.Nm("data.imageScrimColorValues"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x1.prototype,"imageScrimColorValuesChanged_",null);_.Y([_.yc({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],x1);
_.X(x1,"yt-subscription-product-upsell-offer-renderer",function(){if(HcU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;vGx===void 0&&(vGx=document.createElement("template"));var Z=vGx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);HcU=h}h=HcU;return h},{mode:2});var $5I;var KeG;var Ocp;var nGi;var Xyx;var YPC;var w4=function(){return _.D.apply(this,arguments)||this};
_.f(w4,_.D);w4.prototype.onYtServiceRequestError_=function(h){_.uv(this.hostElement,h.detail.error.message)};
w4.prototype.onYtServiceRequestError_=w4.prototype.onYtServiceRequestError_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w4.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],w4.prototype,"collapsible",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],w4.prototype,"isManageRed",void 0);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],w4.prototype,"onYtServiceRequestError_",null);_.Y([_.yc({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],w4);
_.X(w4,"yt-single-ypc-offer-renderer",function(){if(YPC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Xyx===void 0&&(Xyx=document.createElement("template"));var Z=Xyx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);YPC=h}h=YPC;return h},{mode:2});var DZ=function(){return _.D.apply(this,arguments)||this};
_.f(DZ,_.D);DZ.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],DZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],DZ.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],DZ.prototype,"isManageRed",void 0);_.Y([_.yc({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],DZ);
_.X(DZ,"yt-single-ypc-offer-list-renderer",function(){if(nGi===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Ocp===void 0&&(Ocp=document.createElement("template"));var Z=Ocp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);nGi=h}h=nGi;return h},{mode:2});var s6U;var Voi;_.$P("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var l$=function(){return _.D.apply(this,arguments)||this};
_.f(l$,_.D);l$.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],l$.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],l$.prototype,"isManageRed",void 0);_.Y([_.yc({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],l$);
_.X(l$,"yt-ypc-offers-list-renderer",function(){if(Voi===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;s6U===void 0&&(s6U=document.createElement("template"));var Z=s6U;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Voi=h}h=Voi;return h},{mode:2});_.$P("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var r4=function(){return _.D.apply(this,arguments)||this};
_.f(r4,_.D);
r4.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],r4.prototype,"data",void 0);_.Y([_.yc({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],r4);
_.X(r4,"yt-unlimited-manage-subscription-page-renderer",function(){if(KeG===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;$5I===void 0&&($5I=document.createElement("template"));var Z=$5I;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);KeG=h}h=KeG;return h},{mode:2});var kPI;var yJi;var mV=function(){return _.D.apply(this,arguments)||this};
_.f(mV,_.D);_.p=mV.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.p.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.onKeypress_=function(h){h.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.p.handleHeaderTap_=function(h){h.preventDefault();h.stopPropagation();this.expandOffers_()};
_.p.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.p.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
mV.prototype.dataChanged_=mV.prototype.dataChanged_;_.Y([_.t(_.Kf),_.V("design:type",Object)],mV.prototype,"ironA11yKeysBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mV.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],mV.prototype,"offersVisible_",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mV.prototype,"dataChanged_",null);_.Y([_.yc({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],mV);
_.X(mV,"yt-collapsible-ypc-offer-renderer",function(){if(yJi===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;kPI===void 0&&(kPI=document.createElement("template"));var Z=kPI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);yJi=h}h=yJi;return h},{mode:2});var FeJ;var AJC;_.$P("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var vr=function(){return _.D.apply(this,arguments)||this};
_.f(vr,_.D);_.p=vr.prototype;_.p.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.p.dataChanged_=function(){if(this.data.backgroundImage){var h=_.R9(this.data.backgroundImage.thumbnails,screen.width),E=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=E?"linear-gradient(180deg, "+E+"), url("+h+")":"url("+h+")";this.data.gtmId&&_.Eh(this.data.gtmId,_.nF("GL",""))}};
_.p.onYtServiceRequestError_=function(h){_.uv(this.hostElement,h.detail.error.message)};
_.p.getScrimLayerColorStops_=function(){var h,E,g=(h=this.data.unlimitedHeaderV2Data)==null?void 0:(E=h.unlimitedHeaderV2Data)==null?void 0:E.scrimLayerColors;if(!g)return null;var Z=100/g.length;return g.map(function(M,W){W*=Z;return _.uU(M)+" "+W+"%"}).join(",")};
_.p.computeLogoWithPadding=function(h){var E,g,Z;return(h=(E=h.unlimitedLogoImage)==null?void 0:(g=E.thumbnails)==null?void 0:(Z=g[0])==null?void 0:Z.height)&&h%31===0?!0:!1};
vr.prototype.onYtServiceRequestError_=vr.prototype.onYtServiceRequestError_;vr.prototype.dataChanged_=vr.prototype.dataChanged_;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.Y([_.x({computed:"computeLogoWithPadding(data)"}),_.V("design:type",Boolean)],vr.prototype,"logoWithPadding",void 0);
_.Y([_.x(),_.V("design:type",Object)],vr.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vr.prototype,"dataChanged_",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],vr.prototype,"onYtServiceRequestError_",null);_.Y([_.yc({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],vr);
_.X(vr,"yt-unlimited-page-header-renderer",function(){if(AJC===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;FeJ===void 0&&(FeJ=document.createElement("template"));var Z=FeJ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);AJC=h}h=AJC;return h},{mode:2});var T1c;var bci;_.$P("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Hr=function(){return _.D.apply(this,arguments)||this};
_.f(Hr,_.D);Hr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Hr.prototype,"data",void 0);_.Y([_.yc({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Hr);
_.X(Hr,"yt-unlimited-user-notification-renderer",function(){if(bci===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;T1c===void 0&&(T1c=document.createElement("template"));var Z=T1c;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);bci=h}h=bci;return h},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.zhC=_.O(function(h){var E=_.au(h,{numberOfChips:5}).numberOfChips;return _.R("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.R(_.SX,{each:function(){return Array(E==null?void 0:E())}},function(){return _.R("div",{class:"ytGhostChipShelfChip"})}))},"lh");_.aA0=_.O(function(h){var E=function(){var W;return((W=h.data)==null?void 0:W.call(h).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},g=_.d5(),Z=_.GF().resolve(_.Mi);
_.m1(function(){requestAnimationFrame(function(){var W;(W=g.lottieEl)==null||W.addEventListener("DOMLoaded",function(){var z;(z=h.onLottieLoaded)==null||z.call(h)})})});
var M={};return _.R("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var W;return((W=h.data)==null?void 0:W.call(h).targetId)||""}},_.R(_.sh,{className:_.CO((M.ytChatLoadingViewModelRtl=Z==="rtl",M)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:E()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||E()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:E()}}},
animationRef:g}))},"mh");
}catch(e){_._DumpException(e)}
try{
var bFG,unx,QoC,EXX,gXx,ZlC,MyJ,WXX,pxZ,IV0,sI,oXX,zwC,ilC,clG,aVC,GFG,RwZ,PNx,BfU,UdG,VC,LXI,jCX,JlG,yC,ddi,TI,k0,Fw,CNJ,Ai,ewU,qqc,fVC,NfC,tyU,SqC,xdX,Ddi,lV0,rlU,md0,vXG,HlG,$dU,KXc,nXG,XxU,YqG,Vyx,ylC,Alc,TfG,blc,uyZ,hTi,ELX,gLc,ZPG,MsG,WgU,puG,zTG,oLG,iPi,apJ,IpG,ctc,RTX,Lg0,U2Z,PKU,Bei,ui,jIG,d2X,JtG,SY0,x20,wuJ,D2c,lpU,rtx,m2Z,vLi,HPp,$2C,OPU,nLC,XuG,sIC,VsG,fpC;
_.Xw=function(h){var E=new _.xX("Error accessing DB");return _.Gjz().then(function(g){return new Promise(function(Z,M){try{var W=g.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(h);W.onsuccess=function(){var z=W.result;Z(z?z.value:null)};
W.onerror=function(){E.params={key:h,source:"onerror"};M(E)}}catch(z){E.params={key:h,
thrownError:String(z)},M(E)}})},function(){return null})};
_.TXC=function(h,E){var g=_.hLa(E);g!=="javascript:"&&g!=="data:"&&h.setAttribute("href",E)};
bFG=function(h,E){return _.Jj(h.entities,"flowStateEntity",E)};
unx=function(h,E){return _.Jj(h.entities,"contextNoteUserRatingEntityPayload",E)};
QoC=function(h,E){if(h&&E){var g=_.NI();g().set(h,E);_.Ai$(g())}};
_.hw0=function(h,E){if(h&&E){var g=_.NI();g().set(h,E);_.Ai$(g())}};
EXX=function(h){return _.mZ(h,function(E){return E.languageCode==="en"})};
gXx=function(h){var E=Y0;if(_.zJp(h))h.setOption("captions","stickyLoading",{}),h.setOption("captions","track",{});else{var g=_.mZ(_.K3q(h),function(Z){return Z.displayName===E});
h.setOption("captions","track",g)}};
ZlC=function(h){if(!h)return 0;var E=h.getPresentingPlayerType(),g=h.getVideoData();return g&&g.isLive?(h=h.getProgressState(E),h.seekableEnd-h.seekableStart):h.getDuration(E)};
MyJ=function(h,E){for(var g=_.G(Object.keys(h)),Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,h[Z]!==E[Z])return!1;return!0};
WXX=function(){return document.getElementById("player-control-overlay")};
pxZ=function(h){h!==-1&&!_.J("player_controls_log_creation_killswitch")&&WXX()&&(_.s7("pcu_cs",h),_.s7("pcu_ce"))};
IV0=function(h,E){var g=_.zl(h,{}),Z=GFG("top",E),M=GFG("bottom",E),W=GFG("left",E),z=GFG("right",E);return _.fO({top:function(){return sI(g().position,Z)},
bottom:function(){return sI(g().position,M)},
left:function(){return sI(g().position,W)},
right:function(){return sI(g().position,z)},
position:function(){return sI(g().positionType,zwC)},
height:function(){return sI(g().height,VC)},
width:function(){return sI(g().width,VC)},
"min-width":function(){return sI(g().minWidth,VC)},
"min-height":function(){return sI(g().minHeight,VC)},
"max-width":function(){return sI(g().maxWidth,VC)},
"max-height":function(){return sI(g().maxHeight,VC)},
"aspect-ratio":function(){return sI(g().aspectRatio,String)},
"margin-top":function(){return sI(g().margin,Z)},
"margin-bottom":function(){return sI(g().margin,M)},
"margin-left":function(){return sI(g().margin,W)},
"margin-right":function(){return sI(g().margin,z)},
"padding-top":function(){return sI(g().padding,Z)},
"padding-bottom":function(){return sI(g().padding,M)},
"padding-left":function(){return sI(g().padding,W)},
"padding-right":function(){return sI(g().padding,z)},
"flex-direction":function(){return sI(g().flexDirection,aVC)},
"justify-content":function(){return sI(g().justifyContent,clG)},
"align-items":function(){return sI(g().alignItems,ilC)},
"flex-grow":function(){return sI(g().flexGrow,String)},
"flex-shrink":function(){return sI(g().flexShrink,String)},
"flex-basis":function(){return sI(g().flexBasis,VC)},
"align-self":function(){return sI(g().alignSelf,ilC)},
"flex-wrap":function(){return sI(g().flexWrap,oXX)},
"align-content":function(){return sI(g().alignContent,ilC)}})};
sI=function(h,E){return h!==void 0?E(h):void 0};
oXX=function(h){switch(h){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
zwC=function(h){switch(h){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
ilC=function(h){switch(h){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"}};
clG=function(h){switch(h){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"}};
aVC=function(h){switch(h){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"}};
GFG=function(h,E){var g=E==="rtl";switch(h){case "top":var Z=RwZ;break;case "bottom":Z=PNx;break;case "left":Z=BfU;break;default:Z=UdG}return function(M){return sI(Z(M,g),VC)}};
RwZ=function(h){var E=h.top;var g=h.vertical;h=h.all;var Z;return(Z=E!=null?E:g)!=null?Z:h};
PNx=function(h){var E=h.bottom;var g=h.vertical;h=h.all;var Z;return(Z=E!=null?E:g)!=null?Z:h};
BfU=function(h,E){var g=h.left;var Z=h.end;var M=h.start;var W=h.horizontal;h=h.all;var z,c;return(c=(z=g!=null?g:E?Z:M)!=null?z:W)!=null?c:h};
UdG=function(h,E){var g=h.right;var Z=h.end;var M=h.start;var W=h.horizontal;h=h.all;var z,c;return(c=(z=g!=null?g:E?M:Z)!=null?z:W)!=null?c:h};
VC=function(h){var E=h.value;switch(h.unit){case "YPC_DIMENSION_UNIT_POINT":return E+"px";case "YPC_DIMENSION_UNIT_FRACTION":return E+"%";default:return""+E}};
LXI=function(h){switch(h){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"}};
jCX=function(h){var E=h!=null?h:{};h=E.fontRole;var g=E.fontSize;E=E.fontWeight;if(h!==null&&g!==null)switch(h){case "YPC_FONT_ROLE_DISPLAY":switch(g){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(g){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return E===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(g){case "YPC_FONT_SIZE_XL":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
JlG=function(h,E,g){function Z(L){return Object.values(L).map(function(d){var C=d.productId;d=d.pricingOptionIndex;return k0(M(C).pricingOptions,d).pricingOptionId})}
function M(L){return I().get(L)}
function W(L){L=Z(L);g(L)}
function z(L,d){return Array.from(yC(L.pricingOptions)).filter(function(C){C=_.G(C);C.next();C=C.next().value;return Fw(C.pricingGroupAttributes,d)}).map(function(C){return _.G(C).next().value})}
var c=Ai([h,E],function(L,d){var C=L==null?void 0:L.selectedPricingOptions;L={};var q=!0;if(C&&d.length)for(var w=_.G(d),r=w.next();!r.done;r=w.next()){r=r.value;var v=ddi(r.pricingOptions,function(k){a:{k=k.pricingOptionId;for(var y=_.G(C),A=y.next();!A.done;A=y.next())if(A.value===k){k=!0;break a}k=!1}return k});
if(v>=0){q=!1;var H=k0(r.pricingOptions,v),u=void 0;L[r.groupId]={productId:r.productId,pricingOptionIndex:v,pricingGroupAttributes:(u=H)==null?void 0:u.pricingGroupAttributes}}}q&&d.length&&(q=k0(d[0].pricingOptions,0),L[d[0].groupId]={productId:d[0].productId,pricingOptionIndex:0,pricingGroupAttributes:q==null?void 0:q.pricingGroupAttributes});return L}),I=Ai([E],function(L){return new Map(L.map(function(d){return[d.productId,
d]}))}),B=Ai([E],function(L){var d=new Map;
L=_.G(L);for(var C=L.next();!C.done;C=L.next()){var q=C.value;C=q.groupId;var w=q.productId;q=_.G(yC(q.pricingOptions));for(var r=q.next();!r.done;r=q.next()){var v=_.G(r.value);r=v.next().value;v=v.next().value;d.set(v.pricingOptionId,{groupId:C,productId:w,index:r,pricingOption:v,pricingGroupAttributes:v.pricingGroupAttributes})}}return d}),U=Ai([E],function(L){var d=new Map;
L=_.G(L);for(var C=L.next();!C.done;C=L.next()){var q=C.value;C=q.groupId;var w=q.productId,r=void 0;q=_.G(yC((r=q.pricingGroups)!=null?r:[]));for(r=q.next();!r.done;r=q.next()){var v=_.G(r.value);r=v.next().value;v=v.next().value;d.set(v.pricingGroupId,{groupId:C,productId:w,index:r,pricingGroup:v,pricingGroupAttributes:v.pricingGroupAttributes})}}return d});
return{getProductById:M,isProductSelected:function(L){var d=M(L);if(!d)return!1;var C;return((C=c()[d.groupId])==null?void 0:C.productId)===L},
getSelectedPricingOptions:function(){return Object.values(c()).map(function(L){var d=L.productId;L=L.pricingOptionIndex;return k0(M(d).pricingOptions,L)})},
getSelectedPricingGroupAttributesByGroupId:function(L){var d;return(L=(d=c()[L])==null?void 0:d.pricingGroupAttributes)?Array.from(L):void 0},
getSelectedProductByGroupId:function(L){var d;return(L=(d=c()[L])==null?void 0:d.productId)?M(L):void 0},
onProductSelected:function(L){var d=M(L);if(d){var C=c(),q;if(((q=C[d.groupId])==null?void 0:q.productId)!==L){var w=(q=(w=C[d.groupId])==null?void 0:w.productId)?M(q):void 0;var r;q=(r=C[d.groupId])==null?void 0:r.pricingGroupAttributes;var v;r=(v=C[d.groupId])==null?void 0:v.pricingOptionIndex;if(w&&q&&r!==void 0){v=z(w,q).indexOf(r);if(v===-1)throw Error("Tj`"+r+"`"+w.productId);r=z(d,q);v=v<r.length?r[v]:r.length>0?r[0]:0}else v=0;TI(d.pricingOptions)<=v&&(v=0);r=k0(d.pricingOptions,v);var H;
w={};W(Object.assign({},C,(w[d.groupId]={productId:L,pricingOptionIndex:v,pricingGroupAttributes:(H=r==null?void 0:r.pricingGroupAttributes)!=null?H:[]},w)))}}},
onPricingOptionSelected:function(L){var d=B().get(L);if(d){L=d.groupId;var C=d.productId;d=d.index;var q=c(),w,r;if(((w=q[L])==null?void 0:w.productId)!==C||((r=q[L])==null?void 0:r.pricingOptionIndex)!==d){var v,H;w={};W(Object.assign({},q,(w[L]={productId:C,pricingOptionIndex:d,pricingGroupAttributes:(H=(v=q[L])==null?void 0:v.pricingGroupAttributes)!=null?H:[]},w)))}}},
onPricingGroupSelected:function(L){var d=U().get(L);if(d){L=d.groupId;var C=d.productId,q=d.pricingGroup.pricingGroupAttributes,w=M(C);if(w){d=c();var r=d[L].pricingGroupAttributes,v;if(((v=d[L])==null?void 0:v.productId)!==C||!Fw(CNJ(r,TI(q)),q)){v=Array.from(q);for(q=TI(q);q<TI(r);q++){var H="",u=!1,k=Array.from(v);k.push(k0(r,q));for(var y=_.G(w.pricingGroups),A=y.next();!A.done;A=y.next())if(A=A.value,Fw(A.pricingGroupAttributes,k)){v.push(k0(r,q));u=!0;break}else H===""&&TI(A.pricingGroupAttributes)===
k.length&&Fw(CNJ(A.pricingGroupAttributes,v.length),v)&&(H=k0(A.pricingGroupAttributes,q));u||v.push(H)}H=d[L].pricingOptionIndex;q=[];u=new Map;k=0;w=_.G(yC(w.pricingOptions));for(y=w.next();!y.done;y=w.next())A=_.G(y.value),y=A.next().value,A=A.next().value,Fw(A.pricingGroupAttributes,v)&&q.push(y),Fw(A.pricingGroupAttributes,r)&&u.set(y,k++);q.length===0?r=0:(r=u.get(H),r=r!==void 0&&r<q.length?q[r]:q[0]);w={};W(Object.assign({},d,(w[L]={productId:C,pricingOptionIndex:r,pricingGroupAttributes:v},
w)))}}}},
onClearGroupSelected:function(L){var d=c();d[L]&&(d=Object.fromEntries(Object.entries(d).filter(function(C){return _.G(C).next().value!==L})),W(d))}}};
yC=function(h){return function g(){var Z,M,W,z,c;return _.cw(g,function(I){switch(I.nextAddress){case 1:_.qc(I,2),Z=0,M=_.G(h),W=M.next();case 4:if(W.done){I.jumpTo(2);break}z=W.value;c=_.iz;return I.yield([Z++,z],7);case 7:c(I.yieldResult);W=M.next();I.jumpTo(4);break;case 2:_.eK(I),_.fX(I,0)}})}()};
ddi=function(h,E){h=_.G(yC(h));for(var g=h.next();!g.done;g=h.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;if(E(Z))return g}return-1};
TI=function(h){var E=0;for(h=h[Symbol.iterator]();!h.next().done;)++E;return E};
k0=function(h,E){h=_.G(yC(h));for(var g=h.next();!g.done;g=h.next()){var Z=_.G(g.value);g=Z.next().value;Z=Z.next().value;if(g===E)return Z}};
Fw=function(h,E){if(!h&&!E)return!0;if(!h||!E)return!1;h=Array.from(h);E=Array.from(E);if(h.length!==E.length)return!1;for(var g=0;g<h.length;g++)if(h[g]!==E[g])return!1;return!0};
CNJ=function(h,E){E=E===void 0?Infinity:E;var g=[];h=_.G(yC(h));for(var Z=h.next();!Z.done;Z=h.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;if(Z>=E)break;Z>=0&&g.push(M)}return g};
Ai=function(h,E){var g,Z;return function(){for(var M=h.map(function(z){return z()}),W=0;W<M.length;W++)if(!g||M[W]!==g[W]){g=M;
Z=E.apply(null,_.$E(M));break}return Z}};
ewU=function(h,E,g){var Z=[];h=_.G(h);for(var M=h.next();!M.done;M=h.next()){M=M.value;var W=void 0;((W=E)==null?0:W.length)&&!Fw(M.pricingGroupAttributes,E)||Z.push({pricingOption:M,isSelected:g.includes(M.pricingOptionId)})}return Z};
qqc=function(h,E){return _.Jj(h.entities,"pdpStateEntity",E)};
fVC=function(h){var E,g;return!!(h.productId&&h.groupId&&((E=h.pricingOptions)==null?0:E.length)&&h.pricingOptions.every(function(Z){return Z.pricingOptionId})&&((g=h.pricingGroups)==null||!g.length||Array.isArray(h.pricingGroups)&&h.pricingGroups.every(function(Z){return Z.pricingGroupId&&Z.pricingGroupAttributes&&Z.pricingGroupAttributes.length>0})))};
NfC=function(h,E,g){return JlG(h,Ai([E],function(Z){return Z.filter(fVC)}),g)};
tyU=function(h){var E=void 0,g;for(g in h)if(h.hasOwnProperty(g)){E=g;break}return E};
SqC=function(h,E){return E.length===0?[h]:[h.slice(0,E[0]),h.slice(E[0])].filter(function(g){return g.length>0})};
xdX=function(h){switch(h){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""}};
Ddi=function(h,E,g,Z){Z=Object.assign({},Z);_.nL(Z,wxc,{selectedOptionId:h,primaryButtonOverride:g});_.pL().dispatch(_.xx("flowStateEntity",E,Z))};
lV0=function(h){switch(h){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
rlU=function(h){switch(h){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
md0=function(h,E){E.includes(h)?E=E.filter(function(g){return g!==h}):E.push(h);
return[].concat(_.$E(E))};
vXG=function(h,E){return _.Jj(h.entities,"contextNoteFeedEntityPayload",E)};
HlG=function(h,E){switch(h){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return E==null?void 0:E.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return E==null?void 0:E.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return E==null?void 0:E.ratingNotHelpfulText}};
$dU=function(h,E){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:h.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:h.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:h.deleteDialogTitle}]},dialogMessages:[{runs:[{text:h.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.deleteActionText}]},command:{performCommentActionEndpoint:{action:E}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
KXc=function(h,E,g){var Z;if(h&&((Z=E())==null?0:Z.includes(h))){var M;g((M=E())==null?void 0:M.filter(function(W){return W!==h}))}else g([].concat(_.$E(E()||[]),[h]))};
nXG=function(h,E){if(h){var g=[];E=_.G((E==null?void 0:E.checkboxes)||[]);for(var Z=E.next();!Z.done;Z=E.next()){Z=_.e(Z.value,OlC);var M=void 0;((M=Z)==null?0:M.value)&&h.includes(Z.key||"")&&g.push(Z.value)}return g}};
XxU=function(h){h.style.height="auto";h.style.height=h.scrollHeight+"px"};
YqG=function(h){return[h.syncStep,h.asyncStep].filter(function(E){return E!==void 0})};
Vyx=function(h){var E,g,Z;if(h=(E=h.structuredContextNoteFormSchema)==null?void 0:(g=E.fieldSchemas)==null?void 0:(Z=g.noteBody)==null?void 0:Z.validationSchema)for(E=_.G(YqG(h)),g=E.next();!g.done;g=E.next()){g=g.value.rules;if(!g)break;g=_.G(g);for(g=g.next();!g.done;g=g.next())return _.e(g.value,_.sCX)}};
ylC=function(h){if(h){h=_.G(YqG(h));for(var E=h.next();!E.done;E=h.next()){E=E.value.rules;if(!E)break;E=_.G(E);for(E=E.next();!E.done;E=E.next())return _.e(E.value,kF0)}}};
Alc=function(h){if(h){h=_.G(YqG(h));for(var E=h.next();!E.done;E=h.next()){E=E.value.rules;if(!E)break;E=_.G(E);for(E=E.next();!E.done;E=E.next())return _.e(E.value,FXU)}}};
TfG=function(h){h=/^https?:\/\//.test(h)?h:"http://"+h;try{var E=_.T8(h)}catch(g){return!1}if(E.toString()!==h)return!1;h=E.JSC$10033_domain_.split(".");return h.length>1&&h.every(function(g){return!!g})};
blc=function(h,E,g,Z){var M;Z=(M=Z.structuredContextNoteData)==null?void 0:M.createCommentEndpoint;if(M=_.e(Z,_.khf))return M.commentText=_.MR(h),M.videoPositionMention=E,M.sources=g,Z};
uyZ=function(h){return h==null?void 0:h.stringValue};
hTi=function(h,E,g){h=h.map(function(Z,M){return{listItemViewModel:{title:Z.title,subtitle:Z.subtitle,leadingImage:Z.leadingImage,trailingImage:M===E?QCZ:void 0,rendererContext:{commandContext:{onTap:Z.onTap}}}}});
return Object.assign({},g&&{header:{panelHeaderViewModel:{title:g}}},{content:{listViewModel:{listItems:h}}})};
ELX=function(h,E){if(h&&E)switch(E){case "SELECTION_TYPE_BOOL":return h.boolValue;case "SELECTION_TYPE_INT":return h.intValue;case "SELECTION_TYPE_STRING":return h.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return h.privacyStatusValue}};
gLc=function(h){var E;h=(E=h.options)==null?void 0:E.findIndex(function(g){return g.isSelected});
return h===void 0?-1:h};
ZPG=function(h,E,g){var Z=function(){return h().label},M={},W=_.CO("ytDropdownViewModelLabel",(M.ytDropdownViewModelLabelError=E,M));
return _.R(_.P,{cond:function(){return h().label&&!(g()===-1&&h().label&&!h().placeholderText)},
then:function(){return _.R("div",{class:W},_.R(_.dK,{text:Z}))}})};
MsG=function(h,E){var g={};g=_.CO("ytDropdownViewModelTitle",(g.ytDropdownViewModelTitlePlaceholder=function(){return E()===-1},g));
return _.R("div",{class:g},_.R(_.dK,{text:function(){var Z=h();var M=E();if(M===-1)Z=Z.placeholderText?Z.placeholderText:Z.label;else{var W,z;Z=(W=Z.options)==null?void 0:(z=W[M])==null?void 0:z.title}return Z}}))};
WgU=function(h,E){var g=function(){return h().hint};
return _.R(_.zt,null,_.R(_.P,{cond:function(){return g()&&!E()},
then:function(){return _.R("div",{class:_.CO("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.R(_.dK,{text:g,className:"ytDropdownViewModelSupportText"}))}}),_.R(_.P,{cond:E,
then:function(){return _.R("div",{id:"dropdown-view-model-error",role:"alert",class:_.CO("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.R(_.Ni,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.R(_.dK,{text:E,className:"ytDropdownViewModelSupportText"}))}}))};
puG=function(h,E){var g=_.GF().resolve(_.Jni);_.vJ(function(){var Z=h().id;Z&&g!=null&&g.dropdownMap.set(Z,E)})};
zTG=function(h){h=_.e(h.scheduleButton,Gn0);h=_.e(h==null?void 0:h.primaryButton,_.i_);h=_.e(h==null?void 0:h.onTap,_.V1);var E,g,Z=((g=_.e(h,_.CZ))==null?void 0:g.commands)||[h];g=_.G(Z);for(h=g.next();!h.done&&!(E=_.e(h.value,_.yXH));h=g.next());var M;E=(M=E)==null?void 0:M.createBroadcastRequest;if(!E)throw Error("$j");return E};
oLG=function(h,E,g){g=g===void 0?{}:g;var Z,M;return _.a(function(W){if(Z=apJ(E))return W.return(Z);(M=ctc(h,E,g))&&iPi(E,M);return W.return(M)})};
iPi=function(h,E){var g=IpG(h);g&&E.then(function(Z){_.GF().resolve(_.H_).put(g,new _.$a({innertubeResponse:Z}))})};
apJ=function(h){if(h=IpG(h)){var E=_.GF().resolve(_.H_);if(E.has(h))return E.get(h).then(function(g){return g==null?void 0:_.Ww(g)})}return null};
IpG=function(h){var E=_.e(h.endpoint,_.MH);if(E!=null&&E.videoId)return E={videoId:E.videoId},_.J("web_imp_player_mute_params")&&(E.mutedAtStart=h.startPlaybackInMutedState),_.ZA("inline_playback",E)};
ctc=function(h,E,g){h=_.QQ(h,E.endpoint,RTX(E,g)).then(function(Z){return Z});
return Promise.resolve(h)};
RTX=function(h,E){E=_.J("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!h.startPlaybackInMutedState},E):Object.assign({},{vis:5,autonav:"1"},E);var g;E={contentPlaybackContext:_.mb(E,(g=_.e(h.endpoint.commandMetadata,_.qH))==null?void 0:g.url,window.location.href)};_.J("web_imp_player_mute_params")&&(E.overrideMutedAtStart=!h.startPlaybackInMutedState);return E};
Lg0=function(h,E){var g=window.MutationObserver;g&&(bi=new g(function(Z,M){Z=_.G(Z);for(var W=Z.next();!W.done;W=Z.next()){W=W.value;var z;if(z=W.type==="childList"&&W.target)a:{z=h;W=PKU(W.target);z=PKU(z);for(var c=null,I=0;I<W.length;I++)if(z.includes(W[I])){if(I===0){z=!1;break a}c=W[I];break}c?(W=Bei(W,c),z=Bei(z,c),z=W<z):z=!1}if(z){E();M.disconnect();break}}}),(g=U2Z())&&bi.observe(g,{childList:!0,
subtree:!0}))};
U2Z=function(){var h=document.getElementsByTagName("ytd-rich-grid-renderer");if(h.length>0)return h[0];h=document.getElementsByTagName("ytd-section-list-renderer");return h.length>0?h[0]:null};
PKU=function(h){for(var E=[];h;)E.push(h),h=h.parentElement;return E};
Bei=function(h,E){var g=Array.from(E.children);E=h.indexOf(E);return E>0?g.indexOf(h[E-1]):-1};
ui=function(h,E,g){g=g===void 0?{}:g;return _.NH(h,g,E)};
jIG=function(h){switch(h){case "MUSIC":return!0;default:return!1}};
d2X=function(h){return h==null?void 0:h.filter(function(E){return E.premiereTrailerBadgeRenderer})};
JtG=function(h){var E,g=h==null?void 0:(E=h.find(function(L){return L.thumbnailOverlayTimeStatusRenderer}))==null?void 0:E.thumbnailOverlayTimeStatusRenderer,Z,M;
if((g==null?0:(Z=g.icon)==null?0:Z.iconType)&&jIG(g==null?void 0:(M=g.icon)==null?void 0:M.iconType)){var W;return{icon:g==null?void 0:(W=g.icon)==null?void 0:W.iconType}}var z,c;var I=(h=(z=h==null?void 0:(I=h.find(function(L){return L.thumbnailBottomOverlayViewModel}))==null?void 0:I.thumbnailBottomOverlayViewModel)==null?void 0:(c=z.badges)==null?void 0:c.find(function(L){var d,C;
return((d=_.e(L,CKx))==null?void 0:(C=d.inlinePlaybackBadgeData)==null?void 0:C.replicateAsTimestamp)===!0}))?_.e(h,CKx):void 0;
if(I==null?0:I.icon){var B,U;if((I=(B=_.$Yx(I==null?void 0:I.icon))==null?void 0:(U=B.clientResource)==null?void 0:U.imageName)&&jIG(I))return{icon:I}}return{}};
SY0=function(h,E){var g=eTX,Z=_.G(_.Bm(qYi(new fpC(function(){},g,E)),void 0,"PAnyd")),M=Z.next().value,W=Z.next().value,z=new fpC(function(c){W(c)},g,E);
_.lX(function(){Promise.resolve().then(function(){var c,I=(c=h())!=null?c:{};z.playerControlsData=I;_.J("player_controls_skip_double_signal_old")&&(z.lastSeenPlayerApi=_.Xm(I.playerApi));_.J("player_controls_skip_double_signal_old")||(z.lastSeenPlayerApi=_.Xm(I.playerApi));NeU(z)});
_.r9(function(){tsC(z)})},"HikUP");
_.r9(function(){tsC(z)});
return function(){return M()}};
x20=function(h){return function(E){var g=h(),Z={playerState:E};if(E===1){var M;(M=g.playerApi)==null||M.loadModule("captions")}if(E===0){var W;(W=g.playerApi)==null||W.unloadModule("captions")}E!==-1&&g.setState(Z)}};
wuJ=function(h){return function(E){h().setState({playbackRate:E})}};
D2c=function(h){return function(E){var g=h(),Z=g.playerApi,M=Z==null?void 0:Z.getVideoData(),W=(M==null?void 0:M.isLive)||!1;M=M==null?void 0:M.video_id;W={videoDuration:ZlC(Z||void 0),isLive:W,videoId:M};W.videoId!==g.videoId&&(W=Object.assign({},_.xXW(Z),W));if(E==null?0:E.playertype)W.playerType=E.playertype;if(Z){W.captionsAvailable=_.e0(Z);E=W;var z;M=(z=Z.getStoryboardLevel(Z.getNumberOfStoryboardLevels()-1))==null?void 0:z.intervalMs;E.storyboardInterval=M?M/1E3:void 0;W.captionsAvailable&&
(W.captionsEnabled=_.zJp(Z))}W.volumeMuted=!(Z==null||!Z.isMuted());g.setState(W)}};
lpU=function(h){return function(E){var g=h(),Z=g.playerApi;if(Z){var M=Z.getPresentingPlayerType();E={playedTime:E||0,percentLoaded:Z.getVideoLoadedFraction(),playerType:M};g.playerState===0&&(E.playedTime=g.videoDuration);g.isLive&&(M=Z.getProgressState(M),E.playedTime-=M.seekableStart,E.videoDuration=ZlC(Z));if(g.playerType===1)Z=!1;else{var W;if((W=g.uxConfig)==null?0:W.showCuedOverlay){var z;Z=!((z=g.playerApi)==null?0:z.getPlayerStateObject(g.playerType).isDomPaused)}else Z=!0}Z&&delete E.playedTime;
g.setState(E)}}};
rtx=function(h){return function(){var E=h(),g,Z,M,W={volume:(M=(g=E.playerApi)==null?void 0:g.getVolume())!=null?M:0,volumeMuted:!((Z=E.playerApi)==null||!Z.isMuted())};E.setState(W)}};
m2Z=function(h){return function(){var E=h(),g=E.playerApi;if(g){var Z={captionsAvailable:_.e0(g)};Z.captionsAvailable&&(Z.captionsEnabled=_.zJp(g));E.setState(Z)}}};
vLi=function(h){return function(){var E=h();if(E.playerApi&&!(E.volumeMuted||E.controlsVisible&&E.isProbablyAScreenreaderUser)){E.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var g;(g=document.querySelector(".player-control-play-pause-icon"))==null||g.focus()}}};
HPp=function(h){return{appApi:Object.assign({},_.J8x(),{showCaptionsToggleToast:function(E){var g,Z;(Z=(g=h()).showCaptionsToggleToast)==null||Z.call(g,E)},
openInMiniplayer:function(){var E,g;(g=(E=h()).openInMiniplayer)==null||g.call(E)}})}};
$2C=function(h,E){var g,Z,M;return!!(h==null?0:(g=h.playerResponse)==null?0:(Z=g.playerConfig)==null?0:(M=Z.inlinePlaybackConfig)==null?0:M.showScrubbingControls)&&!(E==null?0:E.hideScrubbingControls)};
_.KgJ=function(h){var E=!h.miniplayerIsActive;return[5,2,0].includes(h.miniplayerPlaybackState)||E};
OPU={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};nLC=function(h,E){var g,Z,M,W,z;_.a(function(c){if(!E.length)return c.return([]);g=[];Z=_.G(E);for(M=Z.next();!M.done;M=Z.next())W=M.value,(z=h.resolveIcon(W))&&!h.iconCache[z.url]&&g.push(_.ujJ(h,z).then(function(){}).catch(function(){}));
return c.return(Promise.all(g))})};
XuG=function(h,E){var g=[];E=(new Set(E)).values();E=_.G(E);for(var Z=E.next();!Z.done;Z=E.next()){Z=Z.value;for(var M=_.G(Object.values(OPU)),W=M.next();!W.done;W=M.next())g.push({iconName:Z,iconStyle:W.value})}nLC(h.iconManager,g)};
_.YYI=function(h,E,g){var Z=g!=null?g:h.iconsToFetch;Z!=null&&Z.length?E!==void 0&&E>=0?_.xW(_.KP,function(){XuG(h,Z)},E):XuG(h,Z):Promise.resolve()};
sIC={sharedUi:_.WRl,a11y:_.Z7F,entities:{}};VsG=function(){return _.RY({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
fpC=function(h,E,g){var Z=this;this.renderFn=h;this.listeners=E;this.context=g;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var M;this.lastSeenPlayerApi=_.Xm((M=this.playerControlsData)==null?void 0:M.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.xXW(),void 0);_.J("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){qYi(Z).setState({playerState:-1});Z.resetRecentlyNavigatedJobId&&_.KP.cancelJob(Z.resetRecentlyNavigatedJobId);
Z.recentlyNavigated=!0;Z.resetRecentlyNavigatedJobId=_.KP.addJob(function(){Z.recentlyNavigated=!1},8,1E4)})};
fpC.prototype.setState=function(h){if(!_.J("mweb_player_skip_no_op_state_changes")||!MyJ(h,this.state))if(this.state=Object.assign({},this.state,h),!_.J("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)h=-1,_.J("player_controls_log_creation_killswitch")||WXX()||(h=(0,_.zn)()),_.s7("pcu_s"),_.s7("pcu_se"),_.s7("pcu_rs"),this.renderFn(qYi(this)),_.s7("pcu_re"),pxZ(h),_.KP.addJob(function(){_.s7("pcu_ap")},8)};
var qYi=function(h){var E;var g=_.Xm((E=h.playerControlsData)==null?void 0:E.playerApi);return Object.assign({},h.state,{setState:h.boundSetState,domMeasurements:{progressBarLineRect:h.progressBarLineRect},playerApi:g,appApi:h.context.appApi,playerContainer:h.context.playerContainer,playerControlContainer:h.context.playerControlContainer,uxConfig:h.context.uxConfig})},NeU=function(h){h.listeners.forEach(function(E){h.eventListenerCleanupFunctions.push(E.register(function(){return qYi(h)},function(){return h.getData()}))})},
tsC=function(h){h.eventListenerCleanupFunctions.forEach(function(E){E()});
h.eventListenerCleanupFunctions.length=0};
fpC.prototype.getData=function(){return this.playerControlsData};
var knI=new _.I2("crowdsourcedContextUserRatingFormFlowState");var ytX=new _.I2("noteViewModel");var QC=new _.I2("abuseReportFlowState");var Fgp=new _.I2("feedbackFormFlowState");var AtC=new _.I2("inputBoxViewModel");var Tep=new _.I2("flowNextStepCommand");var bPi=new _.I2("flowPrevStepCommand");var uLU=new _.I2("updateFlowCommand");_.QIi=new _.I2("flowStepRenderer");_.sCX=new _.I2("lengthValidationRule");var kF0=new _.I2("regexValidationRule");var FXU=new _.I2("selectedValidationRule");var h8C=new _.I2("talkToRecsViewModel");var EWc=new _.I2("creatorGoalSetUpFlowDropdownItemViewModel");var gWU=new _.I2("creatorGoalSetUpFlowDropdownViewModel");var CKx=new _.I2("thumbnailBadgeViewModel");var ZIc=new _.I2("checkboxGroupViewModel");var OlC=new _.I2("checkboxItemViewModel");_.hp=new _.I2("radioButtonGroupViewModel");var MMI=new _.I2("radioButtonItemViewModel");var Gn0=new _.I2("panelFooterViewModel");var WJi=new _.I2("ypcCancelRecurrenceCommand");var pTX=new _.I2("cancellationFlowState");var wxc=new _.I2("premiumPurchaseFlowState");var GqC=new _.I2("surveyAnswerCardRenderer");var z8U=new _.I2("showMoreButtonRenderer");var aPC;var c1G,iIU=function(){if(c1G!==void 0)return c1G;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;aPC===void 0&&(aPC=document.createElement("template"));var Z=aPC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return c1G=h};var Ed=function(){var h=_.D.apply(this,arguments)||this;h.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";h.goalDescription="";h.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";h.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";h.startButtonId="start-button";h.exampleButtonId="example-button";return h};
_.f(Ed,_.D);_.p=Ed.prototype;_.p.getGoalDropdownItems=function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.purchaseTargetDropdown,gWU))==null?void 0:E.dropdownItems};
_.p.getTimerDropdownItems=function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.timerDropdown,gWU))==null?void 0:E.dropdownItems};
_.p.getColorDropdownItems=function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.colorDropdown,gWU))==null?void 0:E.dropdownItems};
_.p.getDropdownItemText=function(h){var E;return(E=_.e(h,EWc))==null?void 0:E.itemLabel};
_.p.getDropdownItemValue=function(h){h=_.e(h,EWc);return(h==null?void 0:h.timeLimit)||(h==null?void 0:h.purchaseTarget)||(h==null?void 0:h.eligiblePurchaseType)};
_.p.updateFlowState=function(h){_.BX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:h}])};
_.p.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.p.updateGoalValue=function(h){this.goal=h.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.p.onTextValueChanged=function(h){this.goalDescription=h.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.p.updateTimerValue=function(h){this.timer=h.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.p.updateTierValue=function(h){this.tier=h.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.p.getButtonViewModel=function(h){h=(h==null?void 0:h.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var E,g=_.e((E=this.data)==null?void 0:E.startGoalButton,_.i_);return Object.assign({},g,{state:h})};
_.ze.Object.defineProperties(Ed,{template:{configurable:!0,enumerable:!0,get:function(){return iIU()}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"goal",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"goalDescription",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"timer",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"tier",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"startButtonId",void 0);_.Y([_.x(),_.V("design:type",Object)],Ed.prototype,"exampleButtonId",void 0);_.Y([_.yc({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Ed);_.X(Ed,"yt-creator-goal-set-up-flow-view-model",function(){return iIU()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var oWU;oWU=Object.assign({},{continuation:_.pvA,download:_.E_F,canvas:_.i6z,reportChannelAbuse:_.o_C,ui:_.IXz,share:_.IkM,talkToRecs:_.P5l,watch:_.pS,ypc:_.C5B,radioButtonGroup:_.aXW,collabInviteLink:_.Grz},sIC,{voiceSearch:_.BKW,shorts:_.WZ});_.gR=_.OL(oWU);_.IPU=_.nO(_.gR);var R8G;var PpR;var BQ0;var UKJ=function(){return _.D.apply(this,arguments)||this};
_.f(UKJ,_.D);_.Y([_.x(),_.V("design:type",Object)],UKJ.prototype,"data",void 0);_.Y([_.yc({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],UKJ);
_.X(UKJ,"yt-survey-answer-card-renderer",function(){if(BQ0===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;PpR===void 0&&(PpR=document.createElement("template"));var Z=PpR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);BQ0=h}h=BQ0;return h},{mode:2});var LJC;var j8U;var Z1=function(){return _.D.apply(this,arguments)||this};
_.f(Z1,_.D);_.p=Z1.prototype;_.p.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.p.selectedItemChanged=function(h){_.BX(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[h.feedbackToken||""]}])};
_.p.surveyAnswerCardRendererClicked=function(h){if(h.target&&_.e(h.model.item,GqC)){var E=h.target;h=_.e(h.model.item,GqC);h.onTapCommand?_.jj(E,[h.onTapCommand],E):this.data.onTapCommand&&_.jj(E,[this.data.onTapCommand],E);this.selectedItemChanged(h)}};
_.p.checkIsCancellationStyle=function(h){return h==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.p.updateSelectedItemFromBinding=function(h){this.selectedItem=h.detail.value};
Z1.prototype.onSelectedItemChanged=Z1.prototype.onSelectedItemChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Z1.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Z1.prototype,"selectedItem",void 0);_.Y([_.x({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Z1.prototype,"isCancellationStyle",void 0);
_.Y([_.Nm("selectedItem"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Z1.prototype,"onSelectedItemChanged",null);_.Y([_.yc({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Z1);
_.X(Z1,"yt-survey-flow-step-renderer",function(){if(j8U===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;LJC===void 0&&(LJC=document.createElement("template"));var Z=LJC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);j8U=h}h=j8U;return h},{mode:2});var MV=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return h};
_.f(MV,_.D);MV.prototype.handleSurveyFlowStepOptionChanged=function(h){this.ytdReduxBehavior.dispatch(_.RY({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:h}));_.BX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:h}}])};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],MV.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],MV.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MV.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],MV);
_.X(MV,"ytd-survey-flow-step-renderer",function(){if(R8G!==void 0)return R8G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return R8G=h},{mode:1});_.e80=_.O(function(h){var E=h.data;var g=h.hideDivider;var Z=h.isChannelInfoCard;h={};return _.R("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.R("div",{class:_.CO("yt-profile-identity-info-view-model__frame",(h["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!E().channelBanner},h))},_.R(dKp,{profileIdentityInfoData:E}),_.R("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.R("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq})),_.R(CpC,{profileIdentityInfoData:E})),_.R(_.P,{cond:function(){return E().channelDescription},
then:function(M){var W={};return _.R("div",{class:_.CO((W["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(Z==null||!Z())},W["yt-profile-identity-info-view-model__channel-description"]=function(){return!(Z==null?0:Z())},W))},M)}}),_.R(J1c,{profileIdentityInfoData:E}),_.R(_.P,{cond:function(){return!(g==null?0:g())},
then:function(){return _.R("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Jf");
_.e80.idomCompat=!0;var J1c=_.O(function(h){var E=h.profileIdentityInfoData;return _.R("div",{class:"yt-profile-identity-info-view-model__buttons"},_.R(_.SX,{each:function(){return E().subscribeButton?[E().subscribeButton,E().channelAccess]:[E().channelAccess]}},function(g){return _.R("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.R("div",{class:"yt-profile-identity-info-view-model--button"},_.R(_.Sv,{data:function(){return g}},{buttonViewModel:_.$l,
subscribeButtonViewModel:_.Mb})))}))},"Kf"),CpC=_.O(function(h){var E=h.profileIdentityInfoData;
return _.R("div",{class:"yt-profile-identity-info-view-model__trio"},_.R("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.R(q$U,{profileIdentityInfoData:E}),_.R(_.Sv,{data:function(){return E().threeDotMenu}},{buttonViewModel:_.$l})),_.R(fPC,{profileIdentityInfoData:E}))},"Lf"),q$U=_.O(function(h){var E=h.profileIdentityInfoData;
return _.R("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.R("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return E().channelDisplayName}),_.R(_.P,{cond:function(){return E().verifiedOrOacBadge},
then:function(g){return _.R("div",{class:"yt-profile-identity-info-view-model__badge"},_.R(_.pO,{data:function(){return{thumbnails:[{url:g().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Mf"),dKp=_.O(function(h){var E=h.profileIdentityInfoData;
return _.R("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.R(_.Sv,{data:function(){var g=E().channelBanner;if(g)return{imageBannerViewModel:{image:g.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(g){return _.R("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.R(_.iy,{data:g.data,
isPositionRelative:!0}))}}))},"Nf"),fPC=_.O(function(h){var E=h.profileIdentityInfoData;
return _.R("div",{class:"yt-profile-identity-info-view-model__metadata"},_.R("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.R("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return E().channelHandle}),_.R(_.P,{cond:function(){return E().channelPronouns&&E().channelHandle},
then:function(){return _.R("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.R("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return E().channelPronouns})),_.R("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.R("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().leftOfBulletInfo}),_.R(_.P,{cond:function(){return E().leftOfBulletInfo&&E().rightOfBulletInfo},
then:function(){return _.R("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.R("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().rightOfBulletInfo})))},"Of");var NQC;var WL=function(){return _.D.apply(this,arguments)||this};
_.f(WL,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],WL.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WL.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],WL);
_.X(WL,"ytd-channel-history-renderer",function(){if(NQC!==void 0)return NQC;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return NQC=h},{mode:1});var tMX;var S$X=function(){return _.D.apply(this,arguments)||this};
_.f(S$X,_.D);_.Y([_.x(),_.V("design:type",Object)],S$X.prototype,"data",void 0);_.Y([_.K({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],S$X);
_.X(S$X,"ytd-feature-enablement-info-renderer",function(){if(tMX!==void 0)return tMX;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return tMX=h},{mode:1});var xKR;var wTJ;var pk=function(){var h=_.D.apply(this,arguments)||this;h.textBoxMaxLength=_.J("enable_tvod_campaign_code_integration")?15:12;return h};
_.f(pk,_.D);_.p=pk.prototype;_.p.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.p.onSubmit=function(){var h=this.data.serviceEndpoint,E=_.e(h,_.Ea);E&&h&&(E.couponCode=this.userInput,_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}}))};
_.p.validate=function(){var h=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=h&&!this.data.errorMessage;this.showErrorMessage=h&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.J("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.p.computeStyle=function(h){return h};
_.p.computeShowValidationBelowInput=function(h){return h!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.p.updateUserInputFromBinding=function(h){this.userInput=h.currentTarget.value};
_.p.updateShowErrorMessageFromBinding=function(h){this.showErrorMessage=h.detail.value};
_.ze.Object.defineProperties(pk.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
pk.prototype.dataChanged=pk.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pk.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],pk.prototype,"userInput",void 0);_.Y([_.x(),_.V("design:type",Boolean)],pk.prototype,"disableApplyButton",void 0);_.Y([_.x(),_.V("design:type",Boolean)],pk.prototype,"hideApplyButton",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],pk.prototype,"hideErrorMessage",void 0);_.Y([_.x(),_.V("design:type",Boolean)],pk.prototype,"showTick",void 0);_.Y([_.x(),_.V("design:type",Boolean)],pk.prototype,"showErrorMessage",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],pk.prototype,"couponStyle",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.V("design:type",Boolean)],pk.prototype,"showValidationBelowInput",void 0);_.Y([_.x(),_.V("design:type",Object)],pk.prototype,"textBoxMaxLength",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pk.prototype,"dataChanged",null);
_.Y([_.S("showTick","showErrorMessage","userInput"),_.V("design:type",String),_.V("design:paramtypes",[])],pk.prototype,"validationState",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],pk);
_.X(pk,"ytd-ypc-coupon-renderer",function(){if(wTJ!==void 0)return wTJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return wTJ=h},{mode:1});var Ga=function(){return _.D.apply(this,arguments)||this};
_.f(Ga,_.D);Ga.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"}}}};
Ga.prototype.computeStyle=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ga.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],Ga.prototype,"buttonStyle",void 0);_.Y([_.K({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ga);
_.X(Ga,"ytd-flow-bottom-bar-renderer",function(){if(xKR!==void 0)return xKR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return xKR=h},{mode:1});var DKG;var lPG;var r1I;var za=function(){return _.D.apply(this,arguments)||this};
_.f(za,_.D);za.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
za.prototype.focus=function(h){this.title&&_.h1(this.title,h)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],za.prototype,"data",void 0);_.Y([_.Sg("#title"),_.V("design:type",HTMLElement)],za.prototype,"title",void 0);_.Y([_.K({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],za);
_.X(za,"ytd-flow-top-bar-renderer",function(){if(r1I!==void 0)return r1I;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return r1I=h},{mode:1});var mKC;var vWR;var HIi;var aP=function(){return _.D.apply(this,arguments)||this};
_.f(aP,_.D);aP.prototype.freeTextValueChanged=function(){_.BX(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
aP.prototype.updateFreeTextValueFromBinding=function(h){this.freeTextValue=h.detail.value};
_.ze.Object.defineProperties(aP.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(E=(h=this.data)==null?void 0:h.responseMaxLength)!=null?E:500,Z;return((Z=this.freeTextValue)!=null?Z:"").length>=g?"maxed-out":""}}});
aP.prototype.freeTextValueChanged=aP.prototype.freeTextValueChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],aP.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],aP.prototype,"freeTextValue",void 0);_.Y([_.Sg("#user-input"),_.V("design:type",HTMLTextAreaElement)],aP.prototype,"input",void 0);
_.Y([_.S("freeTextValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],aP.prototype,"characterLimitClass",null);_.Y([_.Nm("freeTextValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aP.prototype,"freeTextValueChanged",null);_.Y([_.yc({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],aP);
_.X(aP,"yt-free-text-input-flow-step-renderer",function(){if(HIi===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;vWR===void 0&&(vWR=document.createElement("template"));var Z=vWR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);HIi=h}h=HIi;return h},{mode:2});var cL=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return h};
_.f(cL,_.D);cL.prototype.handleFreeTextFlowStepInputChanged=function(h){_.BX(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:h}}])};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],cL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],cL.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cL.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],cL);
_.X(cL,"ytd-free-text-input-flow-step-renderer",function(){if(mKC!==void 0)return mKC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mKC=h},{mode:1});var $KU;var KJJ;var OIG=function(){return _.D.apply(this,arguments)||this};
_.f(OIG,_.D);_.Y([_.x(),_.V("design:type",Object)],OIG.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],OIG);
_.X(OIG,"ytd-metadata-line-renderer",function(){if(KJJ!==void 0)return KJJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return KJJ=h},{mode:1});var iA=function(){return _.D.apply(this,arguments)||this};
_.f(iA,_.D);iA.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],iA.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],iA.prototype,"isMasthead",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],iA);
_.X(iA,"ytd-media-product-renderer",function(){if($KU!==void 0)return $KU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return $KU=h},{mode:1});var nWU;var oP=function(){return _.D.apply(this,arguments)||this};
_.f(oP,_.D);oP.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
oP.prototype.onBillboardImageLoaded=function(){_.Ra(this.hostElement,"yt-refit")};
oP.prototype.onBillboardImageLoaded=oP.prototype.onBillboardImageLoaded;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],oP.prototype,"data",void 0);_.Y([_.Sg("#billboardImage"),_.V("design:type",Object)],oP.prototype,"billboardImage",void 0);_.Y([_.f3("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oP.prototype,"onBillboardImageLoaded",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],oP);
_.X(oP,"ytd-billboard-masthead-renderer",function(){if(nWU!==void 0)return nWU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return nWU=h},{mode:1});var XTU;var IP=function(){var h=_.D.apply(this,arguments)||this;h.smallSize=!1;return h};
_.f(IP,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],IP.prototype,"ytComponentBehaviorType",void 0);_.Y([_.x(),_.V("design:type",Object)],IP.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IP.prototype,"smallSize",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],IP);
_.X(IP,"ytd-bullet-formatted-string",function(){if(XTU!==void 0)return XTU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XTU=h},{mode:1});var Y$G;var RP=function(){return _.D.apply(this,arguments)||this};
_.f(RP,_.D);RP.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],RP.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],RP);
_.X(RP,"ytd-offer-detail-renderer",function(){if(Y$G!==void 0)return Y$G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Y$G=h},{mode:1});var s8I;var PL=function(){return _.D.apply(this,arguments)||this};
_.f(PL,_.D);PL.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],PL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],PL.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],PL);
_.X(PL,"ytd-offer-detail-step-renderer",function(){if(s8I!==void 0)return s8I;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return s8I=h},{mode:1});var VMJ;var BL=function(){var h=_.D.apply(this,arguments)||this;h.isInOfferModule=!1;return h};
_.f(BL,_.D);_.p=BL.prototype;_.p.computeHasEndpoint=function(){var h;return!((h=this.data)==null||!h.onClickCommand)};
_.p.dataChanged=function(){var h;if((h=this.data)==null?0:h.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.p.detached=function(){var h;if((h=this.data)==null?0:h.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.p.handleClickEvent=function(){var h;if((h=this.data)==null?0:h.onClickCommand){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.p.onContentKeyDown=function(h){h.key==="Enter"?this.handleClickEvent(h):h.key===" "&&h.preventDefault()};
_.p.onContentKeyUp=function(h){h.key===" "&&this.handleClickEvent(h)};
BL.prototype.dataChanged=BL.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],BL.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BL.prototype,"data",void 0);_.Y([_.x({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],BL.prototype,"hasEndpoint",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],BL.prototype,"isInOfferModule",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BL.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],BL);
_.X(BL,"ytd-channel-masthead-renderer",function(){if(VMJ!==void 0)return VMJ;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VMJ=h},{mode:1});var kqC;var Ud=function(){var h=_.D.apply(this,arguments)||this;h.thumbnailObjectFit="CONTAIN";h.thumbnailObjectPosition="LEFT";h.isExpanded=!1;return h};
_.f(Ud,_.D);_.p=Ud.prototype;_.p.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.p.dataChanged=function(){this.resetStates()};
_.p.computeisTapOnOfferInfoContainerEnabled=function(){var h;return((h=this.data)==null?void 0:h.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.p.onExpandBtnClick=function(){var h,E=_.e((h=this.data)==null?void 0:h.showMoreButtonRenderer,z8U);E&&_.KC(_.SQ(),E.trackingParams);this.isExpanded=!this.isExpanded};
_.p.onOfferInfoClick=function(h){this.isTapOnOfferInfoContainerEnabled&&(_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.W3(_.Gw(h)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.p.onBottomBarClick=function(){this.executeTapCommand()};
_.p.executeTapCommand=function(){var h,E=(h=this.data)==null?void 0:h.tapCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.p.resetStates=function(){this.isExpanded=!1};
_.ze.Object.defineProperties(Ud.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var h=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),E,g,Z;return((E=this.data)==null?void 0:E.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&h&&!!((g=this.data)==null?0:(Z=g.benefits)==null?0:Z.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((E=_.e((h=this.data)==null?void 0:h.showMoreButtonRenderer,z8U))==null?void 0:E.showMoreButtonTitle)||((g=this.data)==null?void 0:g.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((E=_.e((h=this.data)==null?void 0:h.showMoreButtonRenderer,z8U))==null?void 0:E.showLessButtonTitle)||((g=this.data)==null?void 0:g.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var h;return(h=this.showLessButtonTitle)!=null?h:""}var E;return(E=this.showMoreButtonTitle)!=null?E:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?void 0:h.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((E=this.data)==null?0:E.footerTitle)||((g=this.data)==null?0:g.footerSubtitle))}}});
Ud.prototype.dataChanged=Ud.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Ud.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ud.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",String)],Ud.prototype,"thumbnailObjectFit",void 0);
_.Y([_.x(),_.V("design:type",String)],Ud.prototype,"thumbnailObjectPosition",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.V("design:type",Boolean)],Ud.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.Y([_.x(),_.V("design:type",Object)],Ud.prototype,"isExpanded",void 0);_.Y([_.x(),_.V("design:type",Object)],Ud.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.footerIcon)"}),_.V("design:type",String)],Ud.prototype,"icon",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ud.prototype,"dataChanged",null);_.Y([_.S("data.thumbnail"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ud.prototype,"hasThumbnail",null);_.Y([_.S("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ud.prototype,"enableExpandButton",null);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ud.prototype,"enableOfferContentIcon",null);_.Y([_.S("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"showMoreButtonTitle",null);_.Y([_.S("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.V("design:type",Object),_.V("design:paramtypes",[])],Ud.prototype,"showLessButtonTitle",null);
_.Y([_.S("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.V("design:type",String),_.V("design:paramtypes",[])],Ud.prototype,"expandedBtnText",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ud.prototype,"enableBottomBar",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Ud);
_.X(Ud,"ytd-offer-card-renderer",function(){if(kqC!==void 0)return kqC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kqC=h},{mode:1});var y1X;var Lk=function(){return _.D.apply(this,arguments)||this};
_.f(Lk,_.D);Lk.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"}}}};
Lk.prototype.onClick=function(h){if(!_.MI(h.composedPath()||[],this.hostElement,["A".toString()])){var E,g;if((h=(g=_.e((E=this.data)==null?void 0:E.actionButton,_.Gh))==null?void 0:g.command)&&!this.ytComponentBehavior.resolveCommand(h)){var Z;(Z=_.SQ())==null||Z.clickCommand(h);_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})}}};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Lk.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Lk.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Lk);
_.X(Lk,"ytd-offer-content-renderer",function(){if(y1X!==void 0)return y1X;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return y1X=h},{mode:1});var FJ0;var jS=function(){return _.D.apply(this,arguments)||this};
_.f(jS,_.D);jS.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ze.Object.defineProperties(jS.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.title)||!((E=this.data)==null||!E.description)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jS.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],jS.prototype,"hasHeaderData",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],jS);
_.X(jS,"ytd-offer-section-renderer",function(){if(FJ0!==void 0)return FJ0;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return FJ0=h},{mode:1});var A1R;var dR=function(){return _.D.apply(this,arguments)||this};
_.f(dR,_.D);
dR.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],dR.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],dR);
_.X(dR,"ytd-offer-selection-step-renderer",function(){if(A1R!==void 0)return A1R;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return A1R=h},{mode:1});var TQC;var Ck=function(){return _.D.apply(this,arguments)||this};
_.f(Ck,_.D);Ck.prototype.computeStyle=function(h){return h};
Ck.prototype.computeImageWidth=function(h){return h==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.Y([_.x({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],Ck.prototype,"containerStyle",void 0);_.Y([_.x({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.V("design:type",String)],Ck.prototype,"imageWidth",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ck.prototype,"data",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],Ck);
_.X(Ck,"ytd-confirmation-masthead-renderer",function(){if(TQC!==void 0)return TQC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return TQC=h},{mode:1});var bIx;var Jp=function(){return _.D.apply(this,arguments)||this};
_.f(Jp,_.D);Jp.prototype.computeStyle=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Jp.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.V("design:type",String)],Jp.prototype,"containerStyle",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],Jp);
_.X(Jp,"ytd-purchase-complete-detail-renderer",function(){if(bIx!==void 0)return bIx;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return bIx=h},{mode:1});var uiG;var eS=function(){var h=_.D.apply(this,arguments)||this;h.scriptsAppended=!1;return h};
_.f(eS,_.D);eS.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"}}}};
eS.prototype.onDataChanged=function(){var h=this.get("data.gtmId");h&&(_.Eh(h,_.nF("GL","")),this.setupConversionTracking())};
eS.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var h=document.createElement("noscript");h.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(h);this.scriptsAppended=!0}};
eS.prototype.onDataChanged=eS.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eS.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],eS.prototype,"scriptsAppended",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eS.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],eS);
_.X(eS,"ytd-purchase-complete-step-renderer",function(){if(uiG!==void 0)return uiG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uiG=h},{mode:1});var Q8J;var qV=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(qV,_.D);qV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qV.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],qV.prototype,"darkerDarkTheme",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],qV);
_.X(qV,"ytd-ypc-transaction-error-message-renderer",function(){if(Q8J!==void 0)return Q8J;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Q8J=h},{mode:1});var hIJ;var Ewp;var fk=function(){var h=_.D.apply(this,arguments)||this;h.handlePhoneVerificationSuccess=function(E){if(h.isValidPhoneVerificationCompletionMessageEvent(E)){var g;((g=h.data)==null?0:g.nextStepCommand)&&h.ytComponentBehavior.resolveCommand(h.data.nextStepCommand)}};
return h};
_.f(fk,_.D);fk.prototype.isValidPhoneVerificationCompletionMessageEvent=function(h){if(h.data!=="yt-phone-verification-complete")return!1;h=_.gf(h.origin);return h!==null&&h.includes("youtube.com")};
fk.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
fk.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],fk.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fk.prototype,"data",void 0);_.Y([_.yc({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],fk);
_.X(fk,"yt-feature-enablement-soft-entry-renderer",function(){if(Ewp===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;hIJ===void 0&&(hIJ=document.createElement("template"));var Z=hIJ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Ewp=h}h=Ewp;return h},{mode:1});var gwx;var ZgC;var MYC;var WOC;var p6C=function(){return _.D.apply(this,arguments)||this};
_.f(p6C,_.D);_.Y([_.x(),_.V("design:type",Object)],p6C.prototype,"data",void 0);_.Y([_.yc({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],p6C);
_.X(p6C,"yt-benefits-item-renderer",function(){if(WOC===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;MYC===void 0&&(MYC=document.createElement("template"));var Z=MYC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);WOC=h}h=WOC;return h},{mode:2});var G$G;var zIZ;var NV=function(){return _.D.apply(this,arguments)||this};
_.f(NV,_.D);NV.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
NV.prototype.computeisWithoutPadding=function(){var h;return((h=this.data)==null?void 0:h.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],NV.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.V("design:type",Boolean)],NV.prototype,"isWithoutPadding",void 0);_.Y([_.yc({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],NV);
_.X(NV,"yt-benefits-section-renderer",function(){if(zIZ===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;G$G===void 0&&(G$G=document.createElement("template"));var Z=G$G;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);zIZ=h}h=zIZ;return h},{mode:2});var tp=function(){return _.D.apply(this,arguments)||this};
_.f(tp,_.D);tp.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
tp.prototype.computeisUsingLargeWidth=function(){var h;return((h=this.data)==null?void 0:h.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tp.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tp.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.V("design:type",Boolean)],tp.prototype,"isUsingLargeWidth",void 0);_.Y([_.yc({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],tp);
_.X(tp,"yt-benefits-flow-step-renderer",function(){if(ZgC===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;gwx===void 0&&(gwx=document.createElement("template"));var Z=gwx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ZgC=h}h=ZgC;return h},{mode:2});var a_G;var cfG;var SS=function(){return _.D.apply(this,arguments)||this};
_.f(SS,_.D);SS.prototype.checkIsUsingLargeWidth=function(){var h;return((h=this.data)==null?void 0:h.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Y([_.x(),_.V("design:type",Object)],SS.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.V("design:type",Boolean)],SS.prototype,"isUsingLargeWidth",void 0);_.Y([_.yc({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],SS);
_.X(SS,"yt-confirmation-flow-step-renderer",function(){if(cfG===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;a_G===void 0&&(a_G=document.createElement("template"));var Z=a_G;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);cfG=h}h=cfG;return h},{mode:2});var igU;var owG;var I_0=function(){return _.D.apply(this,arguments)||this};
_.f(I_0,_.D);_.Y([_.x(),_.V("design:type",Object)],I_0.prototype,"data",void 0);_.Y([_.yc({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],I_0);
_.X(I_0,"yt-info-flow-step-renderer",function(){if(owG===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;igU===void 0&&(igU=document.createElement("template"));var Z=igU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);owG=h}h=owG;return h},{mode:2});var RIC;var PfU;var BaZ=function(){return _.D.apply(this,arguments)||this};
_.f(BaZ,_.D);_.Y([_.x(),_.V("design:type",Object)],BaZ.prototype,"data",void 0);_.Y([_.yc({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],BaZ);
_.X(BaZ,"yt-info-list-flow-step-renderer",function(){if(PfU===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;RIC===void 0&&(RIC=document.createElement("template"));var Z=RIC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);PfU=h}h=PfU;return h},{mode:2});var UCU=_.O(function(h){var E=h.data;return _.R("styled-text-view-model",{class:_.CO("ytStyledTextViewModelHost",function(){return jCX(E().fontAttributes)},function(){return LXI(E().color)})},_.R(_.dK,{text:function(){return E().text},
ariaLabel:function(){var g,Z,M;return(M=(g=E().accessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)!=null?M:""}}))},"Pf");
UCU.idomCompat=!0;var LOx=_.O(function(h){var E=function(){var M,W,z,c;return(c=(z=(M=h.alt)==null?void 0:M.call(h))!=null?z:(W=h.data().accessibilityData)==null?void 0:W.label)!=null?c:""},g=function(){return h.data().imageWidth},Z=function(){return h.data().imageHeight};
return _.R("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.R(_.P,{cond:function(){var M=h.data();if(M){var W,z,c;var I=((W=_.GF().resolve(_.pl(_.gu)))==null?0:W())?(z=M.imageDark)!=null?z:M.imageLight:(c=M.imageLight)!=null?c:M.imageDark}else I=void 0;return I},
then:function(M){return _.R(_.pO,Object.assign({},h,{data:M,alt:E,targetWidth:g,targetHeight:Z,preserveHeight:!0,preserveWidth:!0}))}}))},"Qf");
LOx.idomCompat=!0;var xt=_.O(function(h){var E=h.data;h=_.zl(function(){return E().slots},[]);
var g=_.zl(function(){return E().layoutProperties},{}),Z=_.GF().resolve(_.Mi);
return _.R("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:IV0(g,Z)},_.R(_.SX,{each:h,keyBy:"INDEX"},function(M){return _.R("div",{class:"ytContainerLayoutViewModelSlot",style:IV0(function(){return M().layoutProperties},Z)},_.R(_.Sv,{data:function(){return M().contents}},{containerLayoutViewModel:xt,
badgeViewModel:_.xz,buttonViewModel:_.$l,styledTextViewModel:UCU,contentPreviewImageViewModel:function(W){return _.R(_.wS,{data:W.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(W){return _.R(LOx,{data:W.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Rf");
xt.idomCompat=!0;var jTi=_.O(function(h){var E=h.data;var g=h.stateFns;var Z=function(){var B=E(),U=B.productId;return!(!B.clearGroupId&&!U)},M=function(){var B=E(),U=B.clearGroupId;
return(B=B.productId)?g().isProductSelected(B):U?g().getSelectedProductByGroupId(U)==null:!1},W=function(B){var U=E(),L=U.clearGroupId;
if(U=U.productId)g().onProductSelected(U),B==null||B.forEach(function(d){_.Tl(d)});
else if(L)g().onClearGroupSelected(L)},z=function(){var B=E(),U=B.clearGroupId;
if(B=B.productId){var L;return"group:"+(((L=g().getProductById(B))==null?void 0:L.groupId)||"")}return U?"group:"+U:""},c=_.zl(function(){return E().header},[]),I=_.zl(function(){return E().body},[]);
return _.R("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.R(_.P,{cond:function(){return c().length>0||Z()},
then:function(){return _.R("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.R("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.R(_.Sv,{data:c},{containerLayoutViewModel:function(B){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(xt,{data:B.data}))},
styledTextViewModel:function(B){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(UCU,{data:B.data}))}})),_.R(_.P,{cond:Z,
then:function(){return _.R("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.R(_.Go,{checked:M,name:z,onChange:function(){W(E().onSelect)}}))}}))}}),_.R(_.P,{cond:function(){return I().length>0},
then:function(){return _.R("div",null,_.R(_.Sv,{data:I},{containerLayoutViewModel:function(B){return _.R("div",{class:"ytPdpCardSectionViewModelContentItem"},_.R(xt,{data:B.data}))}}))}}))},"Sf");
jTi.idomCompat=!0;var dCG=_.O(function(h){var E=h.data;var g=h.stateFns;return _.R("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.R(_.P,{cond:function(){return E().banner},
then:function(Z){return _.R("div",{class:"ytPdpCardViewModelBanner"},_.R(_.dK,{text:Z}))}}),_.R(_.Sv,{data:function(){return E().sections}},{pdpCardSectionViewModel:function(Z){Z=Z.data;
var M={};return _.R("div",{class:_.CO("ytPdpCardViewModelSectionContainer",(M.ytPdpCardViewModelShowDividers=function(){return E().showDividers},M))},_.R(jTi,{data:Z,
stateFns:g}))}}))},"Tf");
dCG.idomCompat=!0;var CfR=_.O(function(h){var E=h.data;var g=h.isOverlay;h={};return _.R("pdp-masthead-view-model",{class:_.CO("ytPdpMastheadViewModelHost",(h.ytPdpMastheadViewModelIsOverlay=g,h))},_.R(_.Sv,{data:function(){return E().image}},{contentPreviewImageViewModel:_.wS,
themedImageViewModel:function(Z){return _.R(LOx,{data:Z.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.R(_.P,{cond:function(){return E().title},
then:function(Z){return _.R("h1",{class:"ytPdpMastheadViewModelHeading"},_.R(_.dK,{text:Z,isOverlay:g}))}}),_.R(_.SX,{each:function(){var Z;
return(Z=E().finePrint)!=null?Z:[]}},function(Z){return _.R("div",{class:"ytPdpMastheadViewModelFinePrint"},_.R(_.dK,{text:Z,
isOverlay:g}))}))},"Uf");
CfR.idomCompat=!0;var Jfp=_.O(function(h){var E=h.data;var g=h.stateFns;var Z=function(){return"pdp-pricing-group-selector-"+E().pricingGroupAttributeIds},M=_.zl(function(){return E().pricingGroupSelectorSectionHeader});
return _.R("pdp-pricing-group-selector-view-model",null,_.R(_.P,{cond:function(){return!!M()},
then:function(){return _.R(_.Sv,{data:M},{sectionHeaderViewModel:function(W){W=W.data;var z={};return _.R("div",{class:_.CO("ytPdpPricingGroupSelectorViewModelSectionHeader",(z.ytPdpPricingGroupSelectorViewModelFullBleed=!0,z.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,z))},_.R(_.KY,{data:W}))}})}}),_.R("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.R(_.SX,{each:function(){var W=g().getSelectedProductByGroupId(E().groupId);
if(!W)return _.KI(Error("Uj`"+E().groupId)),[];var z,c=(z=E().pricingGroupAttributeIds)!=null?z:[],I;if((I=W.pricingGroups)==null||!I.length||!c.length)return[];z=W.pricingGroups.filter(function(d){return c.length?d.pricingGroupAttributes.every(function(C){return c.includes(C)}):!1});
W=[];if(c.length>0){z=[].concat(_.$E(z));I=_.G(c);for(var B=I.next(),U={};!B.done;U={targetAttrId:void 0},B=I.next())U.targetAttrId=B.value,B=z.findIndex(function(d){return function(C){return C.pricingGroupAttributes.includes(d.targetAttrId)}}(U)),B!==-1&&(W.push(z[B]),z.splice(B,1))}var L=g().getSelectedPricingGroupAttributesByGroupId(E().groupId);
return W.map(function(d){var C=!1;L&&d.pricingGroupAttributes&&(C=Fw(d.pricingGroupAttributes,L));return{pricingGroup:d,isSelected:C}})},
keyBy:function(W){return W.pricingGroup.pricingGroupId}},function(W){return _.R("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.R("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.R(_.Sv,{data:function(){return W().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:xt})),_.R("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.R(_.Go,{checked:function(){return W().isSelected},
name:Z,onClick:function(){var z=W().pricingGroup;g().onPricingGroupSelected(z.pricingGroupId);if(z=_.kB(z.onSelectPricingGroup)){var c;(c=_.GF().resolve(_.zF))==null||c.resolveCommand(z)}}})))})))},"Vf");
Jfp.idomCompat=!0;var eIU=_.O(function(h){var E=h.data;var g=h.stateFns;var Z=function(){var z=g().getSelectedPricingOptions().map(function(B){return B.pricingOptionId}),c=g().getSelectedProductByGroupId(E().groupId);
if(!c)return _.KI(Error("Vj`"+E().groupId)),[];var I=g().getSelectedPricingGroupAttributesByGroupId(E().groupId);return ewU(c.pricingOptions,I,z)},M=_.zl(function(){return E().pricingOptionSelectorSectionHeader}),W=function(){return Z().length>1};
return _.R("pdp-pricing-option-selector-view-model",null,_.R(_.P,{cond:function(){return!!M()&&W()},
then:function(){return _.R(_.Sv,{data:M},{sectionHeaderViewModel:function(z){z=z.data;var c={};return _.R("div",{class:_.CO("ytPdpPricingOptionSelectorViewModelSectionHeader",(c.ytPdpPricingOptionSelectorViewModelFullBleed=!0,c.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,c))},_.R(_.KY,{data:z}))}})}}),_.R(_.P,{cond:W,
then:function(){return _.R("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.R(_.SX,{each:Z,keyBy:"INDEX"},function(z){return _.R("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.R(_.Sv,{data:function(){return z().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:xt})),_.R("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.R(_.Go,{checked:function(){return z().isSelected},
onClick:function(){g().onPricingOptionSelected(z().pricingOption.pricingOptionId);var c=z().pricingOption.onSelectPricingOption;if(c=_.kB(c)){var I;(I=_.GF().resolve(_.zF))==null||I.resolveCommand(c)}}})))}))}}))},"Wf");
eIU.idomCompat=!0;var qvG=_.O(function(h){var E=h.data;var g=h.stateFns;return _.R("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.R(_.Sv,{data:function(){var Z,M;return(M=(Z=g().getSelectedPricingOptions()[0])==null?void 0:Z.primaryButton)!=null?M:E().emptyStateButton}},{buttonViewModel:_.$l}))},"Xf");
qvG.idomCompat=!0;var f_J=_.O(function(h){var E=h.stateFns;return _.R("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.R(_.Sv,{data:function(){return E().getSelectedPricingOptions().flatMap(function(g){return g.summaryLines}).filter(function(g){return!!g})}},{containerLayoutViewModel:function(g){return _.R("div",{class:"ytPdpSummaryViewModelLineItem"},_.R(xt,{data:g.data}))}}))},"Yf");
f_J.idomCompat=!0;var Nap=_.O(function(h){function E(r){var v=z();_.Gl(_.vg("pdpStateEntity",v,{key:v,selectedPricingOptions:r}))}
var g=h.data;var Z=h.internalScrolling;var M=h.stateFnsForTesting;var W=_.zl(function(){return g().allProducts},[]),z=_.zl(function(){return g().pdpStateEntityKey},""),c=_.qI(qqc,z),I=_.Cw(function(){_.Hm(!0);
var r;return(r=M==null?void 0:M())!=null?r:NfC(c,W,E)},void 0,"tAB69c"),B=_.zl(function(){return g().body},[]),U=_.zl(function(){return g().columnBreakHints},[]),L=function(){return g().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},d=function(){return L()||g().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},C=_.Cw(function(){var r=_.yS(g().background),v;
if(r==null?0:(v=r.sources)==null?0:v.length){var H=H===void 0?!0:H;r=_.ny4(void 0,r.sources,void 0,H,H?1E3:void 0,H?void 0:1E3)}else r=null;return r},void 0,"bHjkUb");
h=_.fO({"--pdp-view-model-background":function(){return C()?"url("+C()+")":void 0}});
var q={};Z=_.CO("ytPdpViewModelHost",(q.ytPdpViewModelHasBackground=function(){return d()||!!C()},q.ytPdpViewModelHasDarkBackground=d,q.ytPdpViewModelHasScrim=L,q.ytPdpViewModelInternalScrolling=_.zl(Z,!1),q));
var w=function(r){var v={};return _.CO("ytPdpViewModelItem",(v.ytPdpViewModelFullBleed=function(){return tyU(r())==="dividerViewModel"||tyU(r())==="sectionHeaderViewModel"},v.ytPdpViewModelNoVerticalPadding=function(){return tyU(r())==="sectionHeaderViewModel"},v))};
_.vJ(function(){var r=g().onStartCommand;if(r&&(r=_.kB(r))){var v;(v=_.GF().resolve(_.zF))==null||v.resolveCommand(r)}});
return _.R("pdp-view-model",{class:Z,style:h},_.R("div",{class:"ytPdpViewModelColumnContainer"},_.R(_.SX,{each:function(){return SqC(B(),U())},
keyBy:"INDEX"},function(r){return _.R("div",{class:"ytPdpViewModelColumn"},_.R(_.Sv,{data:r},{containerLayoutViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(xt,{data:v}))},
dividerViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(_.xXm,{data:v}))},
pdpCardViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(dCG,{data:v,
stateFns:I}))},
pdpMastheadViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(CfR,{data:v,
isOverlay:d}))},
pdpPricingGroupSelectorViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(Jfp,{data:v,
stateFns:I}))},
pdpPricingOptionSelectorViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(eIU,{data:v,
stateFns:I}))},
pdpPrimaryButtonViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(qvG,{data:v,
stateFns:I}))},
pdpSummaryViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(f_J,{data:v,
stateFns:I}))},
sectionHeaderViewModel:function(v,H){v=v.data;return _.R("div",{class:w(function(){return r()[H()]})},_.R(_.KY,{data:v}))}}))})))},"Zf");
Nap.idomCompat=!0;_.I9(Nap,"pdp-view-model",{props:{data:_.C6,stateFnsForTesting:_.c$,internalScrolling:_.c$}});var tYC=_.O(function(h){var E=h.data;var g=h.className;var Z=_.qI(_.QK,function(){return E().flowStateEntityKey});
return _.R("ytm-premium-purchase-button-renderer",{class:_.CO("ytPremiumPurchaseButtonRendererHost",g)},_.R(_.Sv,{data:function(){var M;return(M=_.e(Z(),wxc))==null?void 0:M.primaryButtonOverride}},{buttonRenderer:function(M){return _.R(_.dS,{data:M.data,
className:g})},
buttonViewModel:function(M){return _.R(_.$l,{data:M.data,className:g})}}))},"$f");
tYC.idomCompat=!0;var Svc=_.O(function(h){var E=h.data;h=h.className;var g=function(){return xdX(E().style)},Z=_.CO("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",g),M=_.CO("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",g);
return _.R("yt-flow-bottom-bar-renderer",{class:_.CO("yt-flow-bottom-bar-renderer",h,g)},_.R(_.Sv,{data:function(){return E().secondaryButton}},{buttonRenderer:function(W){return _.R(_.dS,{data:W.data,
className:M})},
buttonViewModel:function(W){return _.R(_.$l,{data:W.data,className:M})},
premiumPurchaseButtonRenderer:function(W){return _.R(tYC,{data:W.data,className:M})}}),_.R(_.Sv,{data:function(){return E().primaryButton}},{buttonRenderer:function(W){return _.R(_.dS,{data:W.data,
className:Z})},
buttonViewModel:function(W){return _.R(_.$l,{data:W.data,className:Z})},
premiumPurchaseButtonRenderer:function(W){return _.R(tYC,{data:W.data,className:Z})}}))},"ag");
Svc.idomCompat=!0;_.I9(Svc,"yt-flow-bottom-bar-renderer",{props:{data:_.C6,className:_.C6}});var xCJ=_.O(function(h){var E=_.CO(h.className,"ytOfferSummaryRendererHost");return _.R("yt-offer-summary-renderer",{class:E},_.R("div",{class:"ytOfferSummaryRendererTextContainer"},_.R("div",{class:"ytOfferSummaryRendererEyebrowText"},_.R(_.dK,{text:function(){return h.data().eyebrowText}})),_.R("div",{class:"ytOfferSummaryRendererTitle"},_.R(_.dK,{text:function(){return h.data().title}})),_.R("div",{class:"ytOfferSummaryRendererSubtitle"},_.R(_.dK,{text:function(){return h.data().subtitle}})),_.R("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.R(_.SX,{each:function(){var g;
return(g=h.data().featureListData)!=null?g:[]}},function(g){var Z;
return _.R("div",{class:"ytOfferSummaryRendererFeatureList"},_.R(_.Ni,{icon:(Z=g.icon)==null?void 0:Z.iconType,active:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(g.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"}}}),_.R("div",{class:"ytOfferSummaryRendererFeatureListText"},_.R(_.dK,{text:g.text,
className:function(){return g.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.R("div",{class:"ytOfferSummaryRendererDescription"},_.R(_.dK,{text:function(){return h.data().description}}))))},"bg");_.I9(_.O(function(h){var E={};E=_.CO("ytOfferSummaryFlowStepRendererHost",(E.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=h.shouldDisableHeaderTopMargin,E));return _.R("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:E},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.R("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.R(_.dK,{text:function(){return h.data().header}})),_.R("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.R(_.dK,{text:function(){return h.data().subtitle}}))),_.R("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.R(_.Sv,{data:function(){return h.data().offerSummary}},{offerSummaryRenderer:function(g){return _.R(xCJ,{data:g.data,
className:h.flowClassName})}})))},"cg"),"yt-offer-summary-flow-step-renderer",{props:{data:_.c$,
flowClassName:_.c$,flowStateEntityKey:_.c$,shouldDisableHeaderTopMargin:_.c$}});var w6U=_.O(function(h){var E=h.data;var g=h.className;var Z=h.flowStateEntityKey;var M=h.selectionStepStyle;h=_.J7(function(I){var B=E(),U=Z==null?void 0:Z();I.target&&(I.stopPropagation(),I=U||"",U=_.QK(_.pL().getState(),I),B=Object.assign({},U,{premiumPurchaseFlowState:{selectedOptionId:B.optionId,primaryButtonOverride:B.primaryButtonOverride}}),_.pL().dispatch(_.xx("flowStateEntity",I,B)));return!1});
var W=function(){return(Z==null?void 0:Z())||""},z=_.qI(_.QK,W);
_.vJ(function(){var I=E(),B=W(),U=z();I.defaultSelected&&B!==""&&I.primaryButtonOverride&&Ddi(I.optionId||"",B,I.primaryButtonOverride,U)});
var c={};return _.R("ytm-option-item-renderer",{"on:click":h,class:_.CO(g,"ytm-option-item-renderer",(c["ytm-option-item-renderer--lp2-style"]=function(){return(M==null?void 0:M())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},c))},_.R("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.R("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var I=E(),B=W(),U=z();U=_.e(U,wxc);return(U?(U==null?void 0:U.selectedOptionId)||"":I.defaultSelected&&B!==""?(I==null?void 0:I.optionId)||"":"")===E().optionId},
name:("input"+_.y$(_.Mt)).toString()})),_.R("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.R(_.Sv,{data:function(){return E().titleBadge}},{badgeViewModel:function(I){return _.R(_.xz,{data:I.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.R(_.P,{cond:function(){return E().eyebrowText},
then:function(){return _.R("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.R(_.dK,{text:function(){return E().eyebrowText}}))}}),_.R("div",{class:"ytm-option-item-renderer__option-item-title"},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.R(_.dK,{text:function(){return E().subtitle}})),_.R(_.P,{cond:function(){return E().featureListData},
then:function(){return _.R("div",{class:"ytm-option-item-renderer__feature-list-data"},_.R(_.SX,{each:function(){return E().featureListData||[]}},function(I){var B,U=(B=I.icon)==null?void 0:B.iconType;
a:switch(I.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":B="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":B="ytm-option-item-renderer__feature-list-icon-small";break a;default:B="ytm-option-item-renderer__feature-list-icon-default"}return _.R("div",{class:"ytm-option-item-renderer__feature-list"},_.R(_.Ni,{icon:U,className:B,active:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.R("div",{class:"ytm-option-item-renderer__feature-list-text"},_.R(_.dK,{text:I.text,
className:function(){return I.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.R("div",{class:"ytm-option-item-renderer__option-item-description"},_.R(_.dK,{text:function(){return E().description}}))))},"dg");var DCX=_.O(function(h){var E=h.data;var g=h.flowClassName;var Z=h.flowStateEntityKey;var M=h.selectionStepStyle;return _.R("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.R("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.R("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.R(_.dK,{text:function(){return E().title}}),_.R(_.Sv,{data:function(){return E().titleBadge}},{badgeViewModel:function(W){return _.R(_.xz,{data:W.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.R(_.P,{cond:function(){return E().subtitle},
then:function(){return _.R("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.R(_.dK,{text:function(){return E().subtitle}}))}}),_.R(_.P,{cond:function(){return E().featureListData},
then:function(W){return _.R("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.R(_.SX,{each:W},function(z){var c;return _.R("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.R(_.Ni,{icon:(c=z.icon)==null?void 0:c.iconType,active:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(z.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.R("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.R(_.dK,{text:z.text,
className:function(){return z.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.R(_.P,{cond:function(){return E().secondaryTitle},
then:function(){return _.R("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.R(_.dK,{text:function(){return E().secondaryTitle}}))}}),_.R(_.SX,{each:function(){return E().sectionDisclaimers||[]}},function(W){return _.R("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.R(_.dK,{text:W}))})),_.R(_.Sv,{data:function(){return E().optionItems}},{optionItemRenderer:function(W){return _.R("div",{class:"ytOptionSectionRendererOptionItem"},_.R(w6U,{data:W.data,
className:g,flowStateEntityKey:Z,selectionStepStyle:M}))}}),_.R(_.P,{cond:function(){return E().offerText},
then:function(){return _.R("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.R(_.dK,{text:function(){return E().offerText}}))}}))},"eg");
DCX.idomCompat=!0;var l_c=_.O(function(h){var E=h.data;var g=h.flowClassName;var Z=h.flowStateEntityKey;h=h.isDesktop;var M=function(){var B;return(B=E().flowStateEntityKey)!=null?B:Z==null?void 0:Z()},W=function(){return(M==null?void 0:M())||""},z=function(){return E().style},c=_.qI(_.QK,W);
_.vJ(function(){var B=E(),U=W(),L=c();!_.e(L,wxc)&&B.noPreselect&&U!==""&&B.defaultButtonOverride&&Ddi("default",U,B.defaultButtonOverride,L)});
var I={};return _.R("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.CO("ytm-option-selection-flow-step-renderer",(I["ytm-option-selection-flow-step-renderer--desktop"]=h,I["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return E().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},I))},_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.R(_.dK,{text:function(){return E().header}})),_.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.R(_.dK,{text:function(){return E().subtitle}}))),_.R(_.Sv,{data:function(){return E().optionItems||[]}},{optionItemRenderer:function(B){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(w6U,{data:B.data,
className:g,flowStateEntityKey:M,selectionStepStyle:z}))},
optionSectionRenderer:function(B){return _.R("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.R(DCX,{data:B.data,flowClassName:g,flowStateEntityKey:M,selectionStepStyle:z}))}}))},"fg");
l_c.idomCompat=!0;_.I9(l_c,"yt-option-selection-flow-step-renderer",{props:{data:_.C6,flowClassName:_.C6,flowStateEntityKey:_.C6,isDesktop:_.C6}});_.wR=_.O(function(h){var E=_.au(h,{type:1,disablePadding:!1,disablePrimaryButton:!1}),g=E.data,Z=E.type;h=E.disablePadding;var M=E.disablePrimaryButton,W=E.onClickPrimaryButton,z=function(){return g().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},c=function(){return{disabled:M(),
state:M()?"disabled":"active"}},I=function(){return g().leadingLabel||g().trailingLabel};
E={};return _.R("yt-panel-footer-view-model",{class:_.CO("yt-panel-footer-view-model",(E["yt-panel-footer-view-model--hide-divider"]=function(){return g().shouldHideDivider},E["yt-panel-footer-view-model--disable-padding"]=h,E))},_.R(_.P,{cond:I,
then:function(){var B={},U={};return _.R("div",{class:_.CO("yt-panel-footer-view-model__text-row",(B["yt-panel-footer-view-model--row-bottom-padding"]=function(){var L=g();return!(!L.leadingLabel&&!L.trailingLabel||!L.primaryButton&&!L.secondaryButton)},B))},_.R(_.dK,{text:function(){return g().leadingLabel},
className:_.CO((U["yt-panel-footer-view-model--text-padding"]=I,U))}),_.R(_.dK,{text:function(){return g().trailingLabel}}))}}),_.R(_.P,{cond:z,
then:function(){var B={};return _.R("div",{class:"yt-panel-footer-view-model__button-stack"},_.R("div",{class:_.CO("yt-panel-footer-view-model__primary-button",(B["yt-panel-footer-view-model__button-stack--top-button"]=function(){return g().secondaryButton},B))},_.R(_.Sv,{data:function(){return g().primaryButton}},{buttonViewModel:function(U){return _.R(_.$l,{data:U.data,
buttonOverrides:c,onClick:W})}})),_.R(_.Sv,{data:function(){return g().secondaryButton}},{buttonViewModel:_.$l}))}}),_.R(_.P,{cond:function(){return!z()},
then:function(){var B={},U={},L={};return _.R("div",{class:_.CO("yt-panel-footer-view-model__button-row",(B["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===Z()},B))},_.R("div",{class:_.CO("yt-panel-footer-view-model__button-row--left-button",(U["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===Z()},U["yt-panel-footer-view-model__button-row--hidden"]=function(){return!g().secondaryButton||0===Z()},U["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===Z()},U))},_.R(_.Sv,{data:function(){return g().secondaryButton}},{buttonViewModel:_.$l})),_.R("div",{class:_.CO("yt-panel-footer-view-model__primary-button",(L["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===Z()||1===Z()},L["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===Z()},L))},_.R(_.Sv,{data:function(){return g().primaryButton}},{buttonViewModel:function(d){return _.R(_.$l,{data:d.data,
buttonOverrides:c,onClick:W})}})))}}))},"gg");
_.wR.idomCompat=!0;_.rfJ=_.O(function(h){h=_.au(h,{disablePadding:!1});var E=h.data,g=h.disablePadding;h=_.kId(function(){return E().formId});
var Z=h.submitForm,M=h.isValid,W=h.isSubmitting;return _.R("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.R(_.Sv,{data:function(){return E().panelFooter}},{panelFooterViewModel:function(z){return _.R(_.wR,{data:z.data,
onClickPrimaryButton:function(){Z()},
disablePrimaryButton:function(){return!M()||W()},
disablePadding:g})}}))},"hg");_.I9(_.rfJ,"yt-form-footer-view-model",{props:{data:_.C6,disablePadding:_.C6}});var mCZ=_.O(function(h){var E=_.J("enable_user_rating_web");return _.R("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.R(_.P,{cond:function(){var g;return(g=h.data())==null?void 0:g.image},
then:function(g){return _.R(_.pO,{data:g,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.R(_.dK,{text:function(){var g;
return(g=h.data())==null?void 0:g.title}})),_.R("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.R(_.dK,{text:function(){var g;
return(g=h.data())==null?void 0:g.subtitle}})),_.R(_.P,{cond:function(){return!E},
then:function(){return _.R(_.Sv,{data:function(){var g;return(g=h.data())==null?void 0:g.viewTipsButton}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ig");_.I9(mCZ,"yt-contributor-zero-state-view-model",{props:{data:_.C6}});var vwC=_.O(function(h){var E=function(){var g;return(g=h.data())==null?void 0:g.image};
return _.R("yt-featured-content-item-view-model",{class:_.CO("ytFeaturedContentItemViewModelHost")},_.R("div",{class:_.CO(function(){return E()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.R("div",{class:function(){return E()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.R(_.P,{cond:E,
then:function(){return _.R("div",{class:"ytFeaturedContentItemViewModelImage"},_.R(_.Sv,{data:function(){return h.data().image}},{themedImageViewModel:function(g){return _.R(LOx,{data:g.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.R(_.P,{cond:function(){var g;
return!E()&&((g=h.data())==null?void 0:g.iconName)},
then:function(){return _.R("div",{class:"ytFeaturedContentItemViewModelIcon"},_.R(_.Ni,{icon:function(){return h.data().iconName}}))}}),_.R("div",{class:"ytFeaturedContentItemViewModelContent"},_.R(_.P,{cond:function(){var g;
return(g=h.data())==null?void 0:g.title},
then:function(){return _.R("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.R(_.dK,{text:function(){return h.data().title}}))}}),_.R(_.P,{cond:function(){var g;
return(g=h.data())==null?void 0:g.body},
then:function(){return _.R("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.R(_.dK,{text:function(){return h.data().body}}))}})))))},"jg");var Hgc=_.O(function(h){var E=function(){var M;return lV0((M=h.data())==null?void 0:M.titleFontSize)},g=function(){var M;
return rlU((M=h.data())==null?void 0:M.descriptionFontSize)},Z=function(){var M;
return((M=h.data())==null?void 0:M.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.R("yt-landing-page-view-model",{class:_.CO("ytLandingPageViewModelHost",h.className)},_.R("div",{class:"ytLandingPageViewModelHeader"},_.R(_.P,{cond:function(){var M;return(M=h.data())==null?void 0:M.bannerImage},
then:function(M){return _.R("div",{class:"ytLandingPageViewModelHeaderImage"},_.R(_.Sv,{data:function(){return M()}},{imageBannerViewModel:function(W){return _.R(_.iy,{data:W.data,
isPositionRelative:!0})}}))}}),_.R(_.P,{cond:function(){var M;
return(M=h.data())==null?void 0:M.bannerAnimation},
then:function(M){return _.R(_.sh,{data:function(){var W=M();if(W==null?0:W.url){var z;W={path:(z=W==null?void 0:W.url)!=null?z:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(W==null?0:W.payload){var c;W={animationData:JSON.parse((c=W==null?void 0:W.payload)!=null?c:""),autoplay:!0,loop:!0,renderer:"svg"}}else W=void 0;return{animationConfig:W}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.R("div",{class:"ytLandingPageViewModelHeaderTitle"},_.R(_.P,{cond:function(){var M;
return(M=h.data())==null?void 0:M.title},
then:function(M){return _.R("div",{class:_.CO("ytLandingPageViewModelHeaderTitleContent",E)},_.R(_.dK,{text:function(){return M()}}))}}),_.R(_.P,{cond:function(){var M;
return(M=h.data())==null?void 0:M.description},
then:function(M){var W={};return _.R(_.dK,{className:_.CO("ytLandingPageViewModelHeaderTitleDescription",g,(W.ytLandingPageViewModelHeaderTitleDescriptionMargin=Z,W)),text:function(){return M()}})}}))),_.R(_.P,{cond:function(){var M,W;
return(M=h.data())==null?void 0:(W=M.featuredContentList)==null?void 0:W.length},
then:function(){return _.R("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.R(_.Sv,{data:function(){return h.data().featuredContentList}},{featuredContentItemViewModel:function(M){return _.R(vwC,{data:M.data})}}))}}),_.R(_.P,{cond:function(){var M,W;
return(M=h.data())==null?void 0:(W=M.expandableContentList)==null?void 0:W.length},
then:function(){return _.R("div",{class:"ytLandingPageViewModelFaqSection"},_.R(_.Sv,{data:function(){return h.data().expandableContentList}},{faqEntryViewModel:function(M){return _.R("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.R(_.o1k,{data:M.data}))}}))}}),_.R("div",{class:"ytLandingPageViewModelFooter"},_.R(_.P,{cond:function(){var M;
return(M=h.data())==null?void 0:M.legalCopy},
then:function(M){return _.R("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.R(_.dK,{text:function(){return M()}}))}}),_.R(_.P,{cond:function(){var M;
return(M=h.data())==null?void 0:M.actions},
then:function(M){return _.R("div",null,_.R(_.Sv,{data:function(){return M()}},{flexibleActionsViewModel:function(W){return _.R(_.pH,{data:W.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"kg");_.I9(_.O(function(h){return _.R("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.R("div",{class:"ytLpSectionGroupViewModelContainer"},_.R(_.Sv,{data:function(){return h.data().sections}},{landingPageViewModel:function(E){return _.R(Hgc,{data:E.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"lg"),"yt-lp-section-group-view-model",{props:{data:_.C6}});var $CC=_.O(function(h){var E=h.data;var g=h.selectedKey;var Z=h.onSelected;var M=h.groupName;var W=function(){return E().text},z=function(){return E().attributedText},c=function(){return E().subtext},I=function(){return E().attributedSubtext},B=_.R("div",{class:"ytRadioButtonItemViewModelLabel"},_.R(_.P,{cond:W,
then:function(){return _.R("div",null,W)}}),_.R(_.P,{cond:z,
then:function(){return _.R(_.dK,{text:z})}}),_.R(_.P,{cond:c,
then:function(){return _.R("div",{class:"ytRadioButtonItemViewModelSubText"},c)}}),_.R(_.P,{cond:I,
then:function(){return _.R("div",{class:"ytRadioButtonItemViewModelSubText"},_.R(_.dK,{text:I}))}})),U=function(){if(z()){var d;
return(d=z())==null?void 0:d.content}return W()},L=function(){if(I()){var d;
return(d=I())==null?void 0:d.content}return c()};
h={};return _.R("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.R(_.Go,{name:M,checked:function(){return!(g==null||!g()||E().key!==(g==null?void 0:g()))},
onChange:function(d){Z==null||Z(d.target,E(),M==null?void 0:M())},
labelRenderable:function(){return B},
ariaLabel:function(){return L()?U()+", "+L():U()},
className:_.CO((h.ytRadioButtonItemViewModelSubTitle=function(){return!!E().subtext},h))}))},"mg");_.KOc=_.O(function(h){var E=h.data;var g=h.onSelected;var Z=h.selectedKey;var M=h.groupName;var W=function(){return(M==null?void 0:M())||E().key};
return _.R("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.R("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.R(_.Sv,{data:function(){return E().radioButtons}},{radioButtonItemViewModel:function(z){return _.R($CC,{data:z.data,
onSelected:g,selectedKey:Z,groupName:W})}})))},"ng");var OgU=_.O(function(h){_.vJ(function(){if(h.controlledMode()&&h.data().defaultSelected)_.$W(Error("Wj"));else{var W;!h.controlledMode()&&((W=h.selected)==null?0:W.call(h))&&_.$W(Error("Xj"))}});
var E=_.G(_.qi(function(){if(!h.controlledMode())return h.data().defaultSelected})),g=E.next().value,Z=E.next().value,M=function(){if(!h.controlledMode())return g();
var W;return(W=h.selected)==null?void 0:W.call(h)};
return _.R("yt-checkbox-item-view-model",{class:_.CO("ytCheckboxItemViewModelHost")},_.R(_.zo,{data:function(){var W=h.data(),z=M();return{title:W.text,subtitle:W.subtext,superlabel:W.superlabel,isSelected:!!z,isDisabled:W.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(W){W.preventDefault();!h.controlledMode()&&Z(!g());var z,c;(c=h.onTap)==null||c.call(h,!!M(),h.data(),(z=h.groupName)==null?void 0:z.call(h))},
isCompact:h.isCompact}))},"og");var nwI=_.O(function(h){var E=h.data;var g=h.controlledMode;var Z=h.selectedKeys;var M=h.onItemTap;var W=h.groupName;var z=function(){return(W==null?void 0:W())||E().key};
_.vJ(function(){g()&&E().defaultSelectedKeys?_.$W(Error("Yj")):!g()&&(Z==null?0:Z())&&_.$W(Error("Zj"))});
h=_.G(_.qi(function(){if(!g())return E().defaultSelectedKeys}));
var c=h.next().value,I=h.next().value,B=function(U,L,d){U=[];!g()&&L.key&&(U=md0(L.key,c()||[]),I(U));M==null||M(L,U,d)};
return _.R("yt-checkbox-group-view-model",{class:_.CO("ytCheckboxGroupViewModelHost")},_.R("fieldset",{class:_.CO("ytCheckboxGroupViewModelFieldset")},_.R(_.Sv,{data:function(){return E().checkboxes}},{checkboxItemViewModel:function(U){var L=U.data;
return _.R(OgU,{data:L,controlledMode:!0,selected:function(){var d=g()?(Z==null?void 0:Z())||[]:c()||[],C=L().key;return C?d.includes(C):!1},
onTap:B,groupName:z})}})))},"pg");var D1=_.O(function(h){var E=_.qI(vXG,_.zl(function(){var c;return(c=h.data())==null?void 0:c.noteFeedEntityKey},"")),g=_.qI(unx,_.zl(function(){var c;
return(c=h.data())==null?void 0:c.userRatingEntityKey},"")),Z=_.J("enable_user_rating_web"),M=function(){var c,I,B;
return((c=E())==null?0:c.contributorNote)?(I=E())==null?void 0:I.contributorNote:(B=h.data())==null?void 0:B.existingNote},W=function(){var c,I;
return!!g()&&!!HlG((c=g())==null?void 0:c.helpfulnessValue,(I=h.data())==null?void 0:I.noteData)};
if(Z){var z={};return _.R("yt-note-view-model",{class:_.CO("ytNoteViewModelHostUserRating",(z.ytNoteViewModelHostUserRatingPublishedNote=function(){var c,I,B,U;return((c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.isPublished)&&!((B=h.data())==null?0:(U=B.noteData)==null?0:U.isUserRatingForm)},z))},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.R(_.P,{cond:function(){var c,I;
return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.isPinned},
then:function(){return _.R(_.Ni,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.R(_.P,{cond:function(){var c,I;return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.isPublished},
then:function(){return _.R(_.Ni,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.R(_.Sv,{data:function(){var c;
return(c=h.data())==null?void 0:c.metadata}},{contentMetadataViewModel:_.Df}),_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var c,I;
return(I=_.e((c=h.data())==null?void 0:c.metadata,_.O6l))==null?void 0:I.delimiter}),_.R(_.dK,{text:function(){var c;
return(c=M())==null?void 0:c.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.R(_.P,{cond:function(){var c,I;return!((c=h.data())==null?0:(I=c.noteData)==null?0:I.isUserRatingForm)},
then:function(){return _.R(_.Sv,{data:function(){var c,I,B,U,L,d,C,q=!!((c=h.data())==null?0:(I=c.noteData)==null?0:I.isPinned);c=W();I=(B=h.data())==null?void 0:B.noteData;B=(U=E())==null?void 0:(L=U.contributorNote)==null?void 0:L.deleteAction;U=(d=h.data())==null?void 0:d.overflowButtonNoteWithRatingOnTapOverride;d=(C=h.data())==null?void 0:C.overflowButton;return q?$dU(I,B):c?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:U}}:d}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.R("div",{class:"ytNoteViewModelNoteContent"},_.R(_.dK,{text:function(){var c;
return(c=M())==null?void 0:c.text}})),_.R(_.P,{cond:function(){var c,I,B,U;
return!((c=h.data())==null?0:(I=c.noteData)==null?0:I.isPinned)&&!((B=h.data())==null?0:(U=B.noteData)==null?0:U.isUserRatingForm)},
then:function(){return _.R(_.P,{cond:W,then:function(){return _.R("div",{class:"ytNoteViewModelUserRatingContainer"},_.R(_.dK,{text:function(){var c,I;return HlG((c=g())==null?void 0:c.helpfulnessValue,(I=h.data())==null?void 0:I.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.R(_.Sv,{data:function(){var c;return(c=h.data())==null?void 0:c.userRatingButton}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.R(_.P,{cond:function(){var c,I,B,U;
return!((c=h.data())==null?0:(I=c.noteData)==null?0:I.ignoreDivider)&&!((B=h.data())==null?0:(U=B.noteData)==null?0:U.isUserRatingForm)},
then:function(){return _.R("div",{class:"ytNoteViewModelDivider"},_.R(_.Sv,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(c){return _.R(_.xXm,{data:c.data})}}))}}))}return _.R("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.R(_.P,{cond:function(){var c,I;return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.isPinned},
then:function(){return _.R(_.Ni,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.R(_.P,{cond:function(){var c,I;return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.isPublished},
then:function(){return _.R(_.Ni,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.R(_.P,{cond:function(){return Z},
then:function(){return _.R(_.Sv,{data:function(){var c;return(c=h.data())==null?void 0:c.metadata}},{contentMetadataViewModel:function(c){return _.R(_.Df,{data:c.data})}})}}),_.R(_.dK,{text:function(){var c,I;
return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.headerText}}),_.R("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.R(_.dK,{text:function(){var c,I;
return(c=h.data())==null?void 0:(I=c.noteData)==null?void 0:I.delimiter}})),_.R(_.dK,{text:function(){var c,I;
return(c=E())==null?void 0:(I=c.contributorNote)==null?void 0:I.publishedTimeText}})),_.R(_.Sv,{data:function(){var c,I,B;
return $dU((c=h.data())==null?void 0:c.noteData,(I=E())==null?void 0:(B=I.contributorNote)==null?void 0:B.deleteAction)}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.R("div",{class:"ytNoteViewModelNoteContent"},_.R(_.dK,{text:function(){var c,I;
return(c=E())==null?void 0:(I=c.contributorNote)==null?void 0:I.text}})))},"qg");
D1.idomCompat=!0;_.I9(_.O(function(h){var E=_.qI(_.QK,_.zl(function(){var r;return(r=h.data())==null?void 0:r.flowStateEntityKey},"")),g=_.G(_.qi(function(){var r;
return(r=_.e(h.data().helpfulnessValue,_.hp))==null?void 0:r.defaultSelectedKey})),Z=g.next().value,M=g.next().value;
g=_.G(_.qi(function(){var r,v,H;return(H=_.e((r=_.e(h.data().helpfulnessValue,_.hp))==null?void 0:(v=r.radioButtons)==null?void 0:v.find(function(u){var k;return((k=_.e(u,MMI))==null?void 0:k.key)===Z()}),MMI))==null?void 0:H.value}));
var W=g.next().value,z=g.next().value,c=function(r,v){M(v.key);z(v.value)},I=function(){var r,v;
return((r=W())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((v=W())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},B=function(){var r,v;
return((r=W())==null?void 0:r.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((v=W())==null?void 0:v.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
g=_.G(_.qi(function(){var r;return(r=_.e(h.data().helpfulReasons,ZIc))==null?void 0:r.defaultSelectedKeys}));
var U=g.next().value,L=g.next().value,d=function(r){KXc(r.key,U,L)};
g=_.G(_.qi(function(){var r;return(r=_.e(h.data().notHelpfulReasons,ZIc))==null?void 0:r.defaultSelectedKeys}));
var C=g.next().value,q=g.next().value,w=function(r){KXc(r.key,C,q)};
_.vJ(function(){var r,v,H;QoC((r=h.data())==null?void 0:(v=r.userRatingFormSchema)==null?void 0:v.id,{isValid:function(){return!!Z()},
formData:function(){var u=W(),k=nXG(U(),_.e(h.data().helpfulReasons,ZIc)),y=nXG(C(),_.e(h.data().notHelpfulReasons,ZIc));u={helpfulnessValue:u==null?void 0:u.noteHelpfulnessValue};if(k){u.helpfulReasons=[];k=_.G(k);for(var A=k.next();!A.done;A=k.next()){A=A.value;var E4=void 0;if((E4=A)==null?0:E4.noteHelpfulReason)E4=void 0,u.helpfulReasons.push((E4=A)==null?void 0:E4.noteHelpfulReason)}}if(y)for(u.notHelpfulReasons=[],y=_.G(y),k=y.next();!k.done;k=y.next())if(k=k.value,A=void 0,(A=k)==null?0:A.noteNotHelpfulReason)A=
void 0,u.notHelpfulReasons.push((A=k)==null?void 0:A.noteNotHelpfulReason);return{userRatingFormData:u}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(H=_.e(E(),knI))==null?void 0:H.submitFormParams},disableDuringSubmission:!0})});
return _.R("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.R(_.Sv,{data:function(){var r=_.e(E(),knI);if(r){var v;var H={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:r==null?void 0:(v=r.note)==null?void 0:v.headerText}]}],delimiter:"\u2022"}},existingNote:r.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else H=void 0;return H}},{noteViewModel:function(r){return _.R("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.R(D1,{data:r.data}))}}),_.R(_.Sv,{data:function(){var r;
return(r=h.data())==null?void 0:r.helpfulnessValue}},{radioButtonGroupViewModel:function(r){return _.R("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.R(_.KOc,{data:r.data,
onSelected:c,selectedKey:Z}))}}),_.R(_.P,{cond:I,
then:function(){return _.R("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.R("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.R(_.dK,{text:function(){var r;return(r=h.data())==null?void 0:r.helpfulReasonQuestion}})),_.R(_.Sv,{data:function(){var r;
return(r=h.data())==null?void 0:r.helpfulReasons}},{checkboxGroupViewModel:function(r){return _.R(nwI,{data:r.data,
onItemTap:d,selectedKeys:U,controlledMode:!0})}}))}}),_.R(_.P,{cond:B,
then:function(){return _.R("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.R("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.R(_.dK,{text:function(){var r;return(r=h.data())==null?void 0:r.notHelpfulReasonQuestion}})),_.R(_.Sv,{data:function(){var r;
return(r=h.data())==null?void 0:r.notHelpfulReasons}},{checkboxGroupViewModel:function(r){return _.R(nwI,{data:r.data,
onItemTap:w,selectedKeys:C,controlledMode:!0})}}))}}),_.R(_.P,{cond:function(){return!I()&&!B()},
then:function(){return _.R(_.Sv,{data:function(){var r;return(r=h.data())==null?void 0:r.helpfulNoteFeatures}},{alertBannerViewModel:function(r){return _.R("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.R(_.HxB,{data:r.data}))}})}}))},"rg"),"yt-note-user-rating-view-model",{props:{data:_.C6}});_.I9(D1,"yt-note-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=_.qI(vXG,_.zl(function(){var g;return(g=h.data())==null?void 0:g.noteFeedEntityKey},""));
return _.R("yt-notes-wrapper-view-model",{class:_.CO("ytNotesWrapperViewModelHost")},_.R(_.P,{cond:function(){var g,Z,M;return!((g=h.data())==null||!g.existingNotes)||!((Z=h.data())==null||!Z.currentNote)&&!((M=E())==null||!M.contributorNote)},
then:function(){return _.R(_.zt,null,_.R(_.Sv,{data:function(){var g,Z,M,W;return((Z=_.e((g=h.data())==null?void 0:g.currentNote,ytX))==null?0:(M=Z.noteData)==null?0:M.isPublished)?(W=h.data())==null?void 0:W.currentNote:void 0}},{noteViewModel:function(g){return _.R(D1,{data:g.data})}}),_.R(_.Sv,{data:function(){var g;
return(g=h.data())==null?void 0:g.existingNotes}},{noteViewModel:function(g){var Z=g.data;
return _.R(_.P,{cond:function(){var M,W;return(M=Z())==null?void 0:(W=M.noteData)==null?void 0:W.isPublished},
then:function(){return _.R(D1,{data:Z})}})}}),_.R(_.Sv,{data:function(){var g,Z,M,W;
return((Z=_.e((g=h.data())==null?void 0:g.currentNote,ytX))==null?0:(M=Z.noteData)==null?0:M.isPublished)?void 0:(W=h.data())==null?void 0:W.currentNote}},{noteViewModel:function(g){return _.R(D1,{data:g.data})}}),_.R(_.Sv,{data:function(){var g;
return(g=h.data())==null?void 0:g.existingNotes}},{noteViewModel:function(g){var Z=g.data;
return _.R(_.P,{cond:function(){var M,W;return!((M=Z())==null?0:(W=M.noteData)==null?0:W.isPublished)},
then:function(){return _.R(D1,{data:Z})}})}}))},
else:function(){return _.R(_.Sv,{data:function(){var g;return(g=h.data())==null?void 0:g.zeroStateData}},{contributorZeroStateViewModel:mCZ})}}))},"sg"),"yt-notes-wrapper-view-model",{props:{data:_.C6}});var lA=_.O(function(h){var E=_.au(h,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),g=E.label,Z=E.text,M=E.placeholder,W=E.hint;h=E.rows;var z=E.overflowStyle,c=E.outline,I=E.disabled,B=E.disableNewLines,U=E.characterLimit,L=E.validation,d=E.onInput,C=_.hf("textarea");E=_.G(_.qi(function(){return Z()}));
var q=E.next().value,w=E.next().value;E=_.G(_.Bm(!1,void 0,"u9PDq"));var r=E.next().value,v=E.next().value,H=function(){v(!0)},u=function(){v(!1)};
_.vJ(function(){var $$=C.value,Ha=z(),zf=q();Ha==="expand-vertically"&&zf&&XxU($$);C.value.addEventListener("focusin",H);C.value.addEventListener("focusout",u)});
_.r9(function(){C.value.removeEventListener("focusin",H);C.value.removeEventListener("focusout",u)});
var k=function(){var $$;return($$=L())==null?void 0:$$.validate(q())},y=function(){return U()&&!k()&&q().length>U().maxChars},A=function(){return!!k()||y()};
E=_.J7(function($$){if(!$$.currentTarget)return!1;$$=$$.currentTarget;w($$.value);z()==="expand-vertically"&&XxU($$);d==null||d($$.value);return!0});
var E4=_.J7(function($$){B()&&$$.key==="Enter"&&$$.preventDefault();return!1}),iO=_.J7(function(){C.value.focus()}),RW=function(){return M()||g()},NN={},Cd={},Ba={};
return _.R("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.R("div",{class:_.CO("ytStandardsTextareaShapeTextareaContainer",(NN.ytStandardsTextareaShapeTextareaContainerOutline=c,NN.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=I,NN.ytStandardsTextareaShapeTextareaContainerOutlineError=A,NN)),"on:click":iO},_.R("label",{class:_.CO("ytStandardsTextareaShapeLabel",(Cd.ytStandardsTextareaShapeLabelFocused=r,Cd.ytStandardsTextareaShapeLabelDisabled=I,Cd.ytStandardsTextareaShapeLabelError=
function(){return A()&&!I()},Cd.ytStandardsTextareaShapeLabelHidden=function(){return!r()&&!q()&&!!RW()},Cd))},g),_.R("div",{class:_.CO("ytStandardsTextareaShapePlaceholder",(Ba.ytStandardsTextareaShapePlaceholderVisible=function(){return!r()&&!q()},Ba)),
"aria-hidden":"true"},RW),_.R("textarea",{el:C,class:"ytStandardsTextareaShapeTextarea",rows:h,disabled:I,placeholder:RW,"on:input":E,"on:keydown":E4},q)),_.R(_.P,{cond:function(){return W()&&!A()},
then:function(){var $$={};return _.R("div",{class:_.CO("ytStandardsTextareaShapeHint",($$.ytStandardsTextareaShapeHintDisabled=I,$$))},_.R("div",{class:"ytStandardsTextareaShapeHintHintMessage"},W))}}),_.R(_.P,{cond:k,
then:function(){return _.R(X6C,{disabled:I},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},k))}}),_.R(_.P,{cond:U,
then:function($$){return _.R(_.P,{cond:y,then:function(){return _.R(X6C,{disabled:I},_.R("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return $$().errorMessage}),_.R("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return q().length+"/"+$$().maxChars}))}})}}))},"tg");
lA.idomCompat={callbacks:{onInput:!0}};var X6C=_.O(function(h){var E={};return _.R("div",{class:_.CO("ytStandardsTextareaShapeError",(E.ytStandardsTextareaShapeErrorDisabled=h.disabled,E)),role:"alert"},_.R(_.Ni,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),h.children)},"ug");_.YvU=_.O(function(h){var E=h.data;return _.R("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.R(lA,{text:h.text,label:function(){var g;return(g=E().contentProperties)==null?void 0:g.labelText},
placeholder:function(){var g;return(g=E().contentProperties)==null?void 0:g.placeholderText},
hint:function(){var g;return(g=E().contentProperties)==null?void 0:g.hintText},
outline:function(){var g;return!((g=E().displayProperties)==null?0:g.hideBorder)},
overflowStyle:function(){var g;return((g=E().displayProperties)==null?0:g.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:h.disabled,disableNewLines:function(){var g;return(g=E().displayProperties)==null?void 0:g.disableNewLines},
onInput:h.onInput,characterLimit:h.characterLimit,validation:h.validation,rows:function(){var g;return(g=E().displayProperties)==null?void 0:g.rows}}))},"vg");_.sTp=_.O(function(h){var E=h.data;return _.R("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.R(lA,{text:h.text,label:function(){var g;return(g=E().contentProperties)==null?void 0:g.labelText},
placeholder:function(){var g;return(g=E().contentProperties)==null?void 0:g.placeholderText},
hint:function(){var g;return(g=E().contentProperties)==null?void 0:g.hintText},
outline:function(){var g;return!((g=E().displayProperties)==null?0:g.hideBorder)},
overflowStyle:function(){var g;return((g=E().displayProperties)==null?0:g.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var g;return(g=E().displayProperties)==null?void 0:g.disableNewLines},
onInput:h.onInput,characterLimit:h.characterLimit,validation:h.validation,rows:function(){var g;return(g=E().displayProperties)==null?void 0:g.rows}}))},"wg");var VYJ=_.O(function(h){var E=_.G(_.qi(function(){var RW,NN;return((RW=h.data().structuredContextNoteFormSchema)==null?0:(NN=RW.initialValues)==null?0:NN.noteBody)?h.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),g=E.next().value,Z=E.next().value;
E=_.G(_.qi(function(){h.data();return!1}));
var M=E.next().value,W=E.next().value;E=_.G(_.qi(function(){h.data();return!1}));
var z=E.next().value,c=E.next().value;E=_.G(_.qi(function(){var RW,NN;return((RW=h.data().structuredContextNoteFormSchema)==null?0:(NN=RW.initialValues)==null?0:NN.timestamp)?h.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var I=E.next().value,B=E.next().value;E=_.G(_.qi(function(){h.data();return!1}));
var U=E.next().value,L=E.next().value;E=_.G(_.qi(function(){var RW,NN;return((RW=h.data().structuredContextNoteFormSchema)==null?0:(NN=RW.initialValues)==null?0:NN.sources)?[h.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var d=E.next().value,C=E.next().value;E=_.G(_.qi(function(){h.data();return!1}));
var q=E.next().value,w=E.next().value;E=_.G(_.qi(function(){return!1}));
var r=E.next().value,v=E.next().value;_.vJ(function(){var RW;_.hw0((RW=h.data().structuredContextNoteFormSchema)==null?void 0:RW.id,{isSubmitting:r,onSubmit:function(){v(!0);var NN=blc(g(),I(),d(),h.data()),Cd=_.GF().resolve(_.zF);NN&&Cd&&Cd.resolveCommand(NN,{commandController:{onSuccess:function(){v(!1)}}})},
isValid:function(){return M()&&!z()&&!U()&&!q()}})});
var H=function(RW){if(RW!==void 0&&(Z(RW),!M()&&RW.length>0&&W(!0),M())){var NN=Vyx(h.data());if(NN){var Cd=NN.minLength;NN=NN.maxLength;Cd&&RW.length<Cd?c(!0):NN&&RW.length>NN?c(!0):c(!1)}}},u=function(RW){if(RW!==void 0){B(RW);
if(RW.length>0){var NN,Cd,Ba,$$,Ha=ylC((NN=h.data())==null?void 0:(Cd=NN.structuredContextNoteFormSchema)==null?void 0:(Ba=Cd.fieldSchemas)==null?void 0:($$=Ba.timestamp)==null?void 0:$$.validationSchema);if(Ha&&(NN=Ha.regex)&&!(new RegExp(NN)).test(RW)){L(!0);return}}L(!1)}},k=function(RW){if(RW!==void 0){var NN=RW.split(/[ \n]/).map(function(Cd){return Cd.trim()});
C(NN);if(RW.length>0)for(RW=_.G(NN),NN=RW.next();!NN.done;NN=RW.next())if(!TfG(NN.value)){w(!0);return}w(!1)}},y=function(){return{validate:function(RW){if(M()){var NN=Vyx(h.data());
if(NN){var Cd=NN.minLength;NN=NN.translations;if(Cd&&RW.length<Cd)return NN==null?void 0:NN.minLengthErrorMessage}}}}},A=function(){var RW=Vyx(h.data()),NN=RW==null?void 0:RW.maxLength,Cd;
RW=RW==null?void 0:(Cd=RW.translations)==null?void 0:Cd.maxLengthErrorMessage;if(NN&&RW)return{maxChars:NN,errorMessage:RW}},E4=function(){return{validate:function(RW){if(RW){var NN,Cd,Ba,$$,Ha=ylC((NN=h.data())==null?void 0:(Cd=NN.structuredContextNoteFormSchema)==null?void 0:(Ba=Cd.fieldSchemas)==null?void 0:($$=Ba.timestamp)==null?void 0:$$.validationSchema);
if(Ha&&(NN=Ha.regex,Ha=Ha.translations,NN&&!(new RegExp(NN)).test(RW)))return Ha==null?void 0:Ha.regexErrorMessage}}}},iO=function(){return{validate:function(RW){if(RW){var NN,Cd,Ba,$$,Ha=Alc((NN=h.data())==null?void 0:(Cd=NN.structuredContextNoteFormSchema)==null?void 0:(Ba=Cd.fieldSchemas)==null?void 0:($$=Ba.sources)==null?void 0:$$.validationSchema);
if(Ha&&(NN=Ha.translations,NN==null?0:NN.selectedErrorMessage))for(RW=RW.split(/[ \n]/).map(function(zf){return zf.trim()}),RW=_.G(RW),Cd=RW.next();!Cd.done;Cd=RW.next())if(!TfG(Cd.value))return RW=void 0,(RW=NN)==null?void 0:RW.selectedErrorMessage}}}};
return _.R("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.Sv,{data:function(){var RW;return(RW=h.data())==null?void 0:RW.noteContents}},{textFormFieldViewModel:function(RW){return _.R(_.sTp,{data:RW.data,
onInput:H,validation:y,characterLimit:A})},
textFieldViewModel:function(RW){return _.R(_.YvU,{data:RW.data,onInput:H,validation:y,characterLimit:A})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.Sv,{data:function(){var RW;
return(RW=h.data())==null?void 0:RW.noteTimestamp}},{textFormFieldViewModel:function(RW){return _.R(_.sTp,{data:RW.data,
onInput:u,validation:E4})},
textFieldViewModel:function(RW){return _.R(_.YvU,{data:RW.data,onInput:u,validation:E4})}})),_.R("div",{class:"ytStructuredContextNoteViewModelTextField"},_.R(_.Sv,{data:function(){var RW;
return(RW=h.data())==null?void 0:RW.noteSources}},{textFormFieldViewModel:function(RW){return _.R(_.sTp,{data:RW.data,
onInput:k,validation:iO})},
textFieldViewModel:function(RW){return _.R(_.YvU,{data:RW.data,onInput:k,validation:iO})}})))},"xg");
VYJ.idomCompat=!0;_.I9(VYJ,"yt-structured-context-note-view-model",{props:{data:_.C6}});var k$p=_.O(function(h){var E=_.G(_.qi(function(){var W;if((W=h.controlled)==null?0:W.call(h))return[];var z;return(((z=h.data())==null?void 0:z.chips)||[]).map(function(c){c=_.e(c,_.ox);if(c==null?0:c.selected)return uyZ(c.chipValue)}).filter(function(c){return c!==void 0})})),g=E.next().value,Z=E.next().value,M=function(W){var z=uyZ(W.chipValue);
if(z!==void 0){var c;if((c=h.controlled)==null?0:c.call(h))return void h.controlled().onTap(z);W=g().includes(z)?[].concat(_.$E(g().filter(function(B){return B!==z}))):[].concat(_.$E(g()),[z]);
Z(W);var I;if((I=h.uncontrolled)==null?0:I.call(h))h.uncontrolled().onUpdate(W)}};
return _.R("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.R(_.SX,{each:function(){return h.data().chips||[]}},function(W){return _.R("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.R(_.ttD,{data:function(){return _.e(W,_.ox)},
selected:function(){var z;if(z=_.e(W,_.ox)){var c=uyZ(z.chipValue);if(c!==void 0){var I;z=((I=h.controlled)==null?0:I.call(h))?h.controlled().selectedValues.includes(c):g().includes(c)}else z=void 0}else z=!1;return z},
callback:M}))}))},"yg");var yfU=_.O(function(h){var E=h.data;var g=function(){var c;return((c=E())==null?void 0:c.flowStateKey)||""},Z=_.qI(_.QK,g),M=function(){var c;
return(c=_.e(Z(),Fgp))==null?void 0:c.chips},W=function(c){if(c!==void 0){var I=M()||[];
I=I.find(function(B){return B===c})?I.filter(function(B){return B!==c}):[].concat(_.$E(I),[c]);
I=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.e(Z(),Fgp),{chips:I})});_.Gl(_.xx("flowStateEntity",g(),I))}},z=function(){var c;
return _.e((c=E())==null?void 0:c.inputBox,AtC)};
h=_.lY(function(c){var I=z();I=!(I==null?0:I.maxChars)||c.length<=I.maxChars;c=Object.assign({},Z(),{feedbackFormFlowState:Object.assign({},_.e(Z(),Fgp),{detail:c}),abuseReportFlowState:Object.assign({},_.e(Z(),QC),{navigationEnabled:I})});_.Gl(_.xx("flowStateEntity",g(),c))},150);
return _.R("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.R("div",{class:"ytFeedbackFormViewModelChips"},_.R(_.Sv,{data:function(){var c;return(c=E())==null?void 0:c.chipSelection}},{chipSelectionFormFieldViewModel:function(c){return _.R(k$p,{data:c.data,
controlled:function(){return{selectedValues:M()||[],onTap:W}}})}})),_.R("div",{class:"ytFeedbackFormViewModelInputBox"},_.R(lA,{text:function(){var c;
return(c=_.e(Z(),Fgp))==null?void 0:c.detail},
placeholder:function(){var c;return((c=z())==null?void 0:c.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var c=z();if(c&&c.maxChars)return{maxChars:c.maxChars,errorMessage:c.maxCharsExceededErrorMessage||""}},
onInput:h})),_.R("div",{class:"ytFeedbackFormViewModelFooterText"},_.R(_.dK,{text:function(){return E().footerText}})))},"zg");
yfU.idomCompat=!0;_.I9(yfU,"yt-feedback-form-view-model",{props:{data:_.C6}});var FOU=_.O(function(h){var E=h.data;var g=function(){return E().flowStateKey||""},Z=_.qI(bFG,g),M=function(){return _.e(Z(),QC)},W=function(){if(_.J("enable_gff_accessibility_fix")){var z=!0,c;
if((c=M())==null?0:c.navigationEnabled){var I;_.Tl((I=M())==null?void 0:I.navigationCommand);z=!1}c=Object.assign({},Z(),{abuseReportFlowState:Object.assign({},M(),{isReportFormDirty:z})});_.Gl(_.xx("flowStateEntity",g(),c))}else _.Tl((z=M())==null?void 0:z.navigationCommand)};
return _.R("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.R("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.R(_.Sv,{data:function(){return E().cancelButton}},{buttonViewModel:function(z){return _.R(_.$l,{data:z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:W})}}),_.R(_.Sv,{data:function(){var z;
if(E().navButton){var c=Object;var I=c.assign,B=_.e(E().navButton,_.i_),U=((z=M())==null?0:z.navigationEnabled)||_.J("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",L,d;z=_.e((L=M())==null?void 0:L.navigationCommand,_.V1);L=(d=_.e(z,_.yX))==null?void 0:d.url;c={buttonViewModel:I.call(c,{},B,{state:U,iconName:L?"OPEN_IN_NEW":""})}}else c=void 0;return c}},{buttonViewModel:function(z){return _.R(_.$l,{data:z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:W})}})))},"Ag");
FOU.idomCompat=!0;_.I9(FOU,"yt-report-form-bottom-bar-view-model",{props:{data:_.C6}});var Afi=_.O(function(h){var E=h.nextStep;return _.R("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.R("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.R(_.Ni,{icon:function(){return E().iconName||""}})),_.R("div",null,_.R(_.dK,{text:function(){return E().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Bg"),TaJ=_.O(function(h){var E=h.data;
var g,Z=(g=_.GF().resolve(_.pl(_.gu)))==null?void 0:g(),M=_.qI(_.QK,function(){return E().flowStateKey||""});
return _.R("yt-report-form-confirmation-page-view-model",{class:function(){var W;return((W=_.e(M(),QC))==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.R("div",{class:function(){var W;
return((W=_.e(M(),QC))==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.R(_.pO,{data:function(){return Z&&E().imageDark?E().imageDark:E().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return E().confirmationHeader}),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.R(_.dK,{text:function(){return E().confirmationText}})),_.R("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.R(_.dK,{text:function(){return E().lawEnforcementText}})),
_.R("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return E().whatToExpectHeader}),_.R(_.P,{cond:function(){return E().nextSteps},
then:function(W){return _.R("div",null,_.R(_.SX,{each:W},function(z){return _.R(Afi,{nextStep:z})}))}}),_.R(_.P,{cond:function(){return E().legalReportText},
then:function(W){return _.R("div",null,_.R(_.dK,{text:W,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Cg");
TaJ.idomCompat=!0;_.I9(TaJ,"yt-report-form-confirmation-page-view-model",{props:{data:_.C6}});var bgZ=_.O(function(h){var E=h.data;var g=function(){var W;return((W=_.e(E().inputBox,AtC))==null?void 0:W.maxChars)||500},Z=function(){return E().flowStateKey||""},M=_.qI(_.QK,Z);
h=_.lY(function(W){W=Object.assign({},M(),{flowFormState:{isValid:W.length<=g()},abuseReportFlowState:{userComments:W,navigationEnabled:!(W.length>g()),isReportFormDirty:!0}});_.pL().dispatch(_.vg("flowStateEntity",Z(),W))},150);
_.vJ(function(){var W=Object.assign({},M(),{flowFormState:{isValid:!0}});_.pL().dispatch(_.vg("flowStateEntity",Z(),W))});
return _.R("yt-report-form-details-page-view-model",{class:function(){var W;return((W=_.e(M(),QC))==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.R("h1",{class:function(){var W;
return((W=_.e(M(),QC))==null?void 0:W.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return E().detailsPageHeader}),_.R("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.R(_.dK,{text:function(){return E().bodyText}})),_.R("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.R(lA,{label:function(){var W;
return((W=_.e(E().inputBox,AtC))==null?void 0:W.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var W;return{errorMessage:((W=_.e(E().inputBox,AtC))==null?void 0:W.maxCharsExceededErrorMessage)||"",maxChars:g()}},
onInput:h})))},"Dg");
bgZ.idomCompat=!0;_.I9(bgZ,"yt-report-form-details-page-view-model",{props:{data:_.C6}});var u9x=_.O(function(h){var E=h.data;var g=_.MC("div"),Z=function(){return E().flowStateKey||""},M=_.qI(_.QK,Z),W=function(){return _.e(M(),QC)};
_.lX(function(){var z,c;if(((z=W())==null?0:z.isReportFormDirty)&&((c=W())==null||!c.navigationEnabled)&&_.J("enable_gff_accessibility_fix")){var I;if(((I=W())==null?void 0:I.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var B;(B=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||B.scrollIntoView()}else{var U;(U=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||U.scrollIntoView()}}},"nktJfe");
return _.R("yt-report-form-reason-select-page-view-model",{class:function(){var z;return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.R("h1",{class:function(){var z;
return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return E().pageHeader}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.R(_.dK,{text:function(){return E().bodyText}})),_.R("div",{class:function(){var z;
return((z=W())==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.R(_.P,{cond:function(){var z,c;
return((z=W())==null?void 0:z.isReportFormDirty)&&!((c=W())==null?0:c.navigationEnabled)&&_.J("enable_gff_accessibility_fix")},
then:function(){return _.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:g},_.R(_.Ni,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.R("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return E().emptyReasonSelectErrorMessage}))}}),_.R(_.KOc,{data:function(){return _.e(E().radioButtonGroup,_.hp)},
onSelected:function(z,c){z=Object.assign({},M(),{abuseReportFlowState:Object.assign({},W(),{reasonKey:c.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:c.command})});_.Gl(_.xx("flowStateEntity",Z(),z))},
selectedKey:function(){var z;return(z=W())==null?void 0:z.reasonKey},
groupName:"report-form-reason-select-page"})))},"Eg");
u9x.idomCompat=!0;_.I9(u9x,"yt-report-form-reason-select-page-view-model",{props:{data:_.C6}});var QTX=_.O(function(h){var E=h.data;var g,Z=(g=_.GF().resolve(_.pl(_.gu)))==null?void 0:g();return _.R("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.R("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.R(_.pO,{data:function(){return Z&&E().imageDark?E().imageDark:E().image},
alt:""})),_.R("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.R("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return E().header}),_.R(_.dK,{text:function(){return E().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Fg");
QTX.idomCompat=!0;_.I9(QTX,"yt-report-form-sign-in-page-view-model",{props:{data:_.C6}});_.hkU=(0,_.IPU)(_.gR.talkToRecs,{talkToRecsStateSelector:function(h){return h}});_.I9(_.O(function(h){var E=h.data;var g=_.VQ(_.hkU.talkToRecsStateSelector),Z=function(){return E().titleSuperscript},M=function(){return E().answersShelf},W=function(){return E().videoShelf},z=function(){var iO;
return(iO=E().textInputPlaceholder)==null?void 0:iO.content},c=function(){return E().showOpenTextInput},I=function(){var iO;
return(iO=E().textInputValue)==null?void 0:iO.content},B=function(){return E().isMultiTurnFlow?E().resetButtonViewModel:void 0},U="",L=function(){return E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
h=_.G(_.Bm("",void 0,"d5Wa4d"));var d=h.next().value,C=h.next().value;h=_.G(_.Bm(!1,void 0,"aIzK3e"));var q=h.next().value,w=h.next().value,r=function(){return{state:q()||d()?"active":"disabled",disabled:!(q()||d())}};
_.m1(function(){if(c()){I()&&C(I());var iO;if(!B()&&((iO=g())==null?0:iO.stepStates)){var RW;iO=Object.keys((RW=g())==null?void 0:RW.stepStates);RW=iO[iO.length-1];var NN,Cd;(RW=(NN=g().stepStates[RW])==null?void 0:(Cd=NN.userQuery)==null?void 0:Cd.userQuery)&&C(RW);_.Gl(VsG())}}});
_.r9(function(){_.Gl(VsG())});
var v=function(iO){var RW=E().onUpdateText;RW&&_.Tl(RW,{form:{userQuery:iO}});C(iO)},H=_.lY(function(iO){v(iO.target.value.trim())},150),u=_.J7(function(iO){var RW;
U=(RW=iO.target.value)==null?void 0:RW.trim();H(iO);return!1}),k=_.J7(function(iO){iO.key==="Enter"&&(q()||d())&&(v(iO.target.value.trim()),A());
return!1}),y=function(iO,RW){w(RW);
if(RW){if(E().isMultiTurnFlow&&!U){var NN;v((NN=iO==null?void 0:iO.text)!=null?NN:"")}E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&A()}else C(U)},A=function(){var iO=void 0,RW=_.e(E().nextButtonViewModel,_.i_),NN,Cd;
if(RW==null?0:(NN=RW.loggingDirectives)==null?0:(Cd=NN.clientVeSpec)==null?0:Cd.uiType){var Ba,$$;iO=_.Uz((Ba=RW.loggingDirectives)==null?void 0:($$=Ba.clientVeSpec)==null?void 0:$$.uiType)}(RW=E().onNextStepCommand)&&_.Tl(RW,{clickedVisualElement:iO})};
h=_.hf("yt-talk-to-recs-view-model");var E4={};return _.R("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:h},_.R("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.R(_.Sv,{data:function(){return E().topCornerButton}},{buttonViewModel:_.$l})),_.R("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.R("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.R(_.dK,{text:function(){return E().title}}),_.R(_.P,{cond:Z,
then:function(){return _.R("sup",{class:"ytwTalkToRecsSuperScript"},_.R(_.dK,{text:Z}))}})),_.R("div",{class:"ytwTalkToRecsSubtitle"},_.R(_.dK,{text:function(){return E().subtitle}})),_.R("div",{class:"ytwTalkToRecsResultsShelf"},_.R(_.P,{cond:M,
then:function(){return _.R(_.Sv,{data:M},{chipsShelfViewModel:function(iO){return _.R("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.R(_.pN,{data:iO.data,callback:y,selectionBehavior:L}))}})}}),_.R(_.P,{cond:W,
then:function(){return _.R(_.Sv,{data:W},{horizontalShelfViewModel:function(iO){return _.R("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.R(_.cE,{data:iO.data,thumbnailAspectRatio:0}))}})}})),_.R("div",{class:_.CO("ytwTalkToRecsRefinementContainer",(E4.ytwTalkToRecsBottomMargin=function(){return E().isMultiTurnFlow},E4))},_.R(_.P,{cond:c,
then:function(){return _.R("div",{class:"ytwTalkToRecsUserInputBox"},_.R("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:z,value:d,"on:input":u,"on:keyup":k,maxlength:200}))}}),_.R(_.Sv,{data:function(){return E().isMultiTurnFlow?E().nextButtonViewModel:void 0}},{buttonViewModel:function(iO){return _.R("div",{class:"ytwTalkToRecsFlowControlButtons"},_.R(_.$l,{data:iO.data,
buttonOverrides:r}))}}),_.R(_.Sv,{data:B},{buttonViewModel:function(iO){return _.R("div",{class:"ytwTalkToRecsFlowControlButtons"},_.R(_.$l,{data:iO.data,
onClick:function(){var RW=_.e(E().resetButtonViewModel,_.i_);v(d());(RW=RW==null?void 0:RW.onTap)&&_.Tl(RW)}}))}}))))},"Gg"),"yt-talk-to-recs-view-model",{props:{data:_.C6}});var QCZ={sources:[{clientResource:{imageName:"CHECK"}}]};_.ENJ=_.O(function(h){var E=_.hf("div");h=_.au(h,{error:void 0});var g=h.data,Z=h.error,M=h.onSelected;h=_.G(_.qi(function(){return gLc(g())}));
var W=h.next().value,z=h.next().value;puG(g,function(d){z(d);var C,q,w=ELX((C=g().options)==null?void 0:(q=C[d])==null?void 0:q.value,g().type);M==null||M(w);E.value.focus()});
h=_.J7(function(){if(!g().disabled){var d=g(),C=W(),q=E.value;d.options&&(d=hTi(d.options,C,d.label),_.GF().resolve(_.hz).openSheet({viewModel:d},q))}});
var c=_.cGV(),I=function(){return!!Z()},B=function(){return!!g().disabled},U={},L={};
return _.R("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.R("div",{class:_.CO("ytDropdownViewModelDropdownContainer",(U.ytDropdownViewModelDropdownContainerErrorBorder=I,U.ytDropdownViewModelDropdownContainerDisabled=B,U)),"on:click":h,el:E,role:"combobox",tabindex:0,"on:keydown":c,"aria-invalid":I,"aria-disabled":B,"aria-describedby":function(){return I()?"dropdown-view-model-error":void 0}},_.R("div",{class:"ytDropdownViewModelText"},ZPG(g,I,W),MsG(g,W)),_.R("div",{class:_.CO("ytDropdownViewModelChevronDown",
(L.ytDropdownViewModelChevronDownDisabled=B,L))},_.R(_.Ni,{icon:"CHEVRON_DOWN"}))),WgU(g,Z))},"Hg");_.I9(_.O(function(h){var E=h.data;var g=function(M){var W=zTG(E());W.videoMetadata||(W.videoMetadata={});W.videoMetadata.sponsorshipsMetadata||(W.videoMetadata.sponsorshipsMetadata={});W.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(M)},Z=function(M){var W=zTG(E());
W.scheduledRedirectMetadata||(W.scheduledRedirectMetadata={});W.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(M)};
return _.R("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.R("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.R("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.R(_.dK,{text:function(){return E().title}}),_.R(_.Ni,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.R(_.dK,{text:function(){return E().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.R(_.Sv,{data:function(){return E().tierChoices}},{dropdownViewModel:function(M){return _.R("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.R(_.ENJ,{data:M.data,
onSelected:g}))}}),_.R(_.Sv,{data:function(){return E().startTimeChoices}},{dropdownViewModel:function(M){return _.R("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.R(_.ENJ,{data:M.data,
onSelected:Z}))}}),_.R(_.dK,{text:function(){return E().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.R("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.R(_.Sv,{data:function(){return E().scheduleButton}},{panelFooterViewModel:_.wR})))},"Ig"),"ytfz-schedule-fanzone-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;h=h.className===void 0?"":h.className;var g=_.qI(bFG,function(){return E().flowStateEntityKey||""}),Z={};
Z=_.CO("ytFlowBottomBarViewModelFlowBottomBarButtons",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},Z));
var M={},W=_.CO("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",Z,(M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},M));
M={};var z=_.CO("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",Z,(M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},M.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},M));
Z={};Z=_.CO("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},Z.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
Z));
h=_.CO("ytFlowBottomBarViewModelHost",h);return _.R("yt-flow-bottom-bar-view-model",{class:h},_.R(_.P,{cond:function(){var c;return(c=E())==null?void 0:c.textSection},
then:function(c){return _.R("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.R(_.dK,{text:c}))}}),_.R("div",{class:Z},_.R(_.Sv,{data:function(){return E().secondaryButton}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
className:z})}}),_.R(_.Sv,{data:function(){return E().primaryButton}},{buttonViewModel:function(c){return _.R(_.$l,{data:c.data,
className:W,buttonOverrides:function(){var I;return{disabled:!((I=g())==null||!I.primaryButtonDisabled)}}})}})))},"Jg"),"yt-flow-bottom-bar-view-model",{props:{data:_.C6,
className:_.c$}});var gNI="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),rR=function(){var h=_.D.apply(this,arguments)||this;h.enableScrollingFix=!0;h.bottomBar=!1;h.fitContent=!1;return h};
_.f(rR,_.D);_.p=rR.prototype;_.p.ready=function(){_.J("enable_pdp_icon_prefetch")&&_.YYI(_.GF().resolve(_.hi),0,gNI)};
_.p.focus=function(h){this.topBar?_.h1(this.topBar,h):this.paperDialog.focus(h)};
_.p.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19102_scroller&&(this.JSC$19102_scroller.dialogElement=this.paperDialog,this.JSC$19102_scroller.attached&&typeof this.JSC$19102_scroller.attached==="function"&&this.JSC$19102_scroller.attached())};
_.p.onDataChanged=function(){var h;this.fitContent=!((h=this.data)==null||!h.fitContent);var E;this.bottomBar=!((E=this.data)==null||!E.bottomBar)};
_.p.onProgressChanged=function(){var h,E,g=((E=(h=this.data)==null?void 0:h.progress)!=null?E:0)*100;this.progressElement.style.width=g+"%"};
_.p.isProgressHidden=function(){var h;return!((h=this.data)==null?0:h.progress)};
_.p.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-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(h){return h&&!h.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
rR.prototype.onProgressChanged=rR.prototype.onProgressChanged;rR.prototype.onDataChanged=rR.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rR.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rR.prototype,"enableScrollingFix",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rR.prototype,"bottomBar",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rR.prototype,"fitContent",void 0);_.Y([_.Sg("#progress"),_.V("design:type",HTMLElement)],rR.prototype,"progressElement",void 0);_.Y([_.Sg("#scroller"),_.V("design:type",Object)],rR.prototype,"JSC$19102_scroller",void 0);_.Y([_.Sg("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],rR.prototype,"topBar",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rR.prototype,"onDataChanged",null);_.Y([_.Nm("data.progress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rR.prototype,"onProgressChanged",null);_.Y([_.K({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],rR);
_.X(rR,"ytd-flow-step-renderer",function(){if(lPG!==void 0)return lPG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return lPG=h},{mode:1});var m5=function(h){this.resolveCommand=h;this.steps={}},ZQU=function(h,E){E=_.G(E||[]);
for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=Object.values(g)[0],M=void 0;if((M=Z)==null?0:M.stepId)h.steps[Z.stepId]=g}},plZ=function(h,E){var g,Z,M,W,z;
return _.a(function(c){if((g=h.state)==null||!g.currentStepId)return c.return(void 0);Z=MNZ(h);if(!Z)return c.return(WrX(h));if(M=_.e(Z,_.QIi)){var I;((I=M.screenLoggingData)==null?0:I.screenVeType)&&_.mw(_.SQ(),M.screenLoggingData.screenVeType);((W=M)==null?0:W.onStepStartCommand)&&h.resolveCommand((z=M)==null?void 0:z.onStepStartCommand,{})}if(M&&E){I=M;var B,U,L,d;((B=E.flowLoggingData)==null?0:B.eventNamespace)&&((U=I.flowEventData)==null?0:U.eventType)&&((L=I.flowEventData)==null?0:L.eventMetadata)&&
((d=E.flowLoggingData)==null?0:d.flowType)&&(B=_.Cm(E.flowLoggingData.eventNamespace,I.flowEventData.eventType,I.flowEventData.eventMetadata),_.Jk(_.el(),B,E.flowLoggingData.flowType));E.steps&&!E.steps.includes(Z)&&E.steps.push(Z)}return c.return(Z)})};
m5.prototype.back=function(){var h;(h=this.state)!=null&&h.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
m5.prototype.handleUpdateFlowCommand=function(h){h.steps&&ZQU(this,h.steps);h.entityUpdateCommand&&this.resolveCommand(h.entityUpdateCommand,{});h.flowContinuationCommand&&(h=h.flowContinuationCommand)&&(this.getFlowContinuationCommand=h);this.awaitFlowContinuation&&(this.awaitFlowContinuation(MNZ(this)),this.awaitFlowContinuation=void 0)};
m5.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var WrX=function(h){return _.a(function(E){return h.getFlowContinuationCommand?E.return(new Promise(function(g){h.awaitFlowContinuation=g;h.getFlowContinuationCommand&&h.resolveCommand(h.getFlowContinuationCommand,{flow_state:h.state})})):E.return(Promise.resolve(void 0))})},MNZ=function(h){var E;
if((E=h.state)!=null&&E.currentStepId)return h.steps[h.state.currentStepId]};
_.ze.Object.defineProperties(m5.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.state)==null?void 0:h.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.state)!=null&&h.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(E,g){g.key&&g.value&&(E[g.key]=g.value);return E},{})}}});var vL=function(){var h=_.D.apply(this,arguments)||this;h.flowState=new m5(function(E,g){g=g===void 0?{}:g;_.eQ.instance.resolveCommand(E,{form:{form:g,element:h.hostElement}})});
h.initialState=!0;h.isLoading=!1;h.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"};h.containsTalkToRecs=!1;return h};
_.f(vL,_.D);_.p=vL.prototype;_.p.onPopupClosed=function(h){h&&this.hostElement!==h.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.p.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.p.focus=function(h){var E=this;_.hW(function(){var g=_.UB(E.hostElement).querySelector("ytd-flow-step-renderer");(g==null?0:g.topBar)?g.focus(h):E.topBar&&_.h1(E.topBar,h)},1)};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.p.computeTopBarHidden=function(h){var E;return!((E=_.e(h,_.QIi))==null||!E.topBarOverride)};
_.p.dataChanged=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1){((E=h.data)==null?0:E.steps)&&ZQU(h.flowState,h.data.steps);if((g=h.data)==null?0:g.flowContinuationCommand){var M=h.flowState,W=h.data.flowContinuationCommand;W&&(M.getFlowContinuationCommand=W)}return Z.yield(plZ(h.flowState,h.data),2)}h.currentFlowStep=Z.yieldResult;_.SK(Z)})};
_.p.flowChanged=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1){if(!h.flow)return g.return();h.flowState.state=h.flow;h.isLoading=!0;return g.yield(plZ(h.flowState,h.data),2)}E=g.yieldResult;if(!E||h.flow.isLoading)return g.return();h.currentFlowStep=E;h.initialState=!1;h.isLoading=!1;h.autofocusAndRefit();h.updateContainsTalkToRecs();_.SK(g)})};
_.p.updateContainsTalkToRecs=function(){var h,E=(h=_.e(this.currentFlowStep,_.QIi))==null?void 0:h.content;this.containsTalkToRecs=!!E&&!!_.e(E,h8C)};
_.p.autofocusAndRefit=function(){var h=this,E=_.GF().resolve(_.pl(_.DX)),g=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),Z=document.querySelector("yt-report-form-confirmation-page-view-model"),M=document.querySelector("yt-report-form-details-page-view-model"),W=document.querySelector("yt-report-form-reason-select-page-view-model"),z=document.querySelector("yt-contributor-zero-state-view-model"),
c=document.querySelector("yt-structured-context-note-view-model"),I=document.querySelector("yt-note-view-model");(!g&&E&&E.isKeyBoardInUse()||Z||!g&&M||!g&&W||z||c||I)&&_.E$(this.hostElement);_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit")})};
_.p.handleUpdateFlowCommand=function(h){this.data&&(h=_.e(h,uLU),h.targetId===this.data.targetId&&(h.flowContinuationCommand&&(this.data.flowContinuationCommand=h.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(h),this.autofocusAndRefit()))};
_.p.handleFlowNextStepCommand=function(h){this.data&&this.flow&&this.flow.key&&(h=_.e(h,Tep),h.targetId===this.data.targetId&&(h=h.stepId||"",this.ytdReduxBehavior.dispatch(_.vg("flowStateEntity",this.flow.key,{currentStepId:h,stepIdStack:(this.flow.stepIdStack||[]).concat(h)}))))};
_.p.handleFlowPrevStepCommand=function(h){if(this.data&&this.flow&&this.flow.key&&(h=_.e(h,bPi),h.targetId===this.data.targetId)){var E=[].concat(_.$E(this.flow.stepIdStack||[]));E.length>1?(E.pop(),this.ytdReduxBehavior.dispatch(_.vg("flowStateEntity",this.flow.key,{currentStepId:E[E.length-1],stepIdStack:E}))):h.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(h.onFirstStepCommand)}};
_.p.handleYpcCancelRecurrenceCommand=function(h){if(this.data&&this.flow&&this.flow.key&&(h=_.e(h,WJi),h.targetId===this.data.targetId&&h.endpointCommand)){var E=_.e(this.flow,pTX);E&&_.e(h.endpointCommand,_.vKf)&&(_.e(h.endpointCommand,_.vKf).feedbackData=E.surveyFeedback);this.ytComponentBehavior.resolveCommand(h.endpointCommand)}};
_.p.handlePartialUpdateFlowStateEntity=function(h){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.vg("flowStateEntity",this.flow.key,h,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vL.prototype.flowChanged=vL.prototype.flowChanged;vL.prototype.dataChanged=vL.prototype.dataChanged;vL.prototype.onPopupClosed=vL.prototype.onPopupClosed;_.Y([_.t(_.aF),_.V("design:type",Object)],vL.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],vL.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],vL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vL.prototype,"initialState",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vL.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Object)],vL.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],vL.prototype,"currentFlowStep",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],vL.prototype,"onPopupClosed",null);_.Y([_.x({selectorArgs:["data.flowStateEntityKey"],selector:bFG}),_.V("design:type",Object)],vL.prototype,"flow",void 0);_.Y([_.Sg("ytd-flow-top-bar-renderer"),_.V("design:type",HTMLElement)],vL.prototype,"topBar",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],vL.prototype,"dataChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vL.prototype,"containsTalkToRecs",void 0);_.Y([_.lq("flow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],vL.prototype,"flowChanged",null);_.Y([_.K({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vL);
_.GeU=_.BK()(vL,"ytd-flow-root-renderer",function(){if(DKG!==void 0)return DKG;var h=document.createElement("template");_.N(h,'\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="root-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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return DKG=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var zkx;var bi=null;_.I9(_.O(function(h){return _.R("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.R("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.R(_.dK,{text:function(){return h.data().text}}),_.R("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Kg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.C6}});var aNc=_.O(function(h){var E=h.playerControlsProps;var g=h.isShortsPage;return _.R("yt-bigboard",null,_.R(_.P,{cond:function(){return E().isDragging},
then:function(){return _.R("div",{class:"ytBigboardStoryboardHost"},_.R(_.vdp,{progressBarProps:E,isShortsPage:g}))}}))},"Lg");
aNc.idomCompat=!0;_.HL={ACCOUNT_LABEL:ui("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:ui("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:ui("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:ui("AD_BADGE_HINT"),AD_BADGE_TEXT:ui("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:ui("ALL_CHANNELS_LABEL"),AMBIENT_MODE:ui("AMBIENT_MODE"),AMBIENT_MODE_OFF:ui("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:ui("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:ui("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:ui("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:ui("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:ui("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:ui("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:ui("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:ui("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:ui("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:ui("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:ui("AUTO_ZOOM","Auto zoom"),BACK:ui("BACK"),CANCEL:ui("CANCEL"),CHANNEL_SWITCHER_LABEL:ui("CHANNEL_SWITCHER_LABEL"),CLOSE:ui("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:ui("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:ui("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:ui("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:ui("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:ui("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:ui("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:ui("COMMENT_MODAL_CONTENT"),CONFIRM_OK:ui("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:ui("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:ui("COPIED_TO_CLIPBOARD"),COPY:ui("COPY"),COPY_DEBUG_INFO:ui("COPY_DEBUG_INFO"),COPY_EMBED_CODE:ui("COPY_EMBED_CODE"),
COPY_LINK_LABEL:ui("COPY_LINK_LABEL"),COPY_VIDEO_URL:ui("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:ui("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:ui("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:ui("DELETE_FROM_DOWNLOADS"),DIALOG:ui("DIALOG"),DONE:ui("DONE"),DOWNLOAD:ui("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:ui("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:ui("FLAG_CONFIRM"),FLAG_CONTENT:ui("FLAG_CONTENT"),FLAG_LABEL:ui("FLAG_LABEL"),FLAG_TITLE:ui("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:ui("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:ui("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:ui("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:ui("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:ui("HIDE_SEARCH_FILTERS_LABEL"),HOME:ui("HOME","Home"),INVALID_RESPONSE_RECEIVED:ui("INVALID_RESPONSE_RECEIVED"),LIBRARY:ui("LIBRARY","Library"),LISTENING:ui("LISTENING"),LOADING:ui("LOADING"),LONG_PRESS_MIC_TO_SPEAK:ui("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:ui("LOOP"),MENU_DESKTOP:ui("MENU_DESKTOP"),
MENU_EXIT:ui("MENU_EXIT"),MENU_FEEDBACK:ui("MENU_FEEDBACK"),MENU_HELP:ui("MENU_HELP"),MENU_IMPRESSUM:ui("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:ui("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:ui("MENU_SETTINGS"),MENU_SIGN_IN:ui("MENU_SIGN_IN"),MENU_TITLE:ui("MENU_TITLE"),MENU_YOUR_DATA:ui("MENU_YOUR_DATA"),MORE_INFO:ui("MORE_INFO"),MORE_OPTIONS:ui("MORE_OPTIONS"),MUTE_VOLUME:ui("MUTE_VOLUME"),NEW_PLAYLIST:ui("NEW_PLAYLIST"),NEXT_VIDEO:ui("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:ui("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:ui("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:ui("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:ui("NOT_FOUND_TITLE"),NO_DOWNLOADS:ui("NO_DOWNLOADS"),NO_MIC_INPUT:ui("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:ui("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:ui("OOPS_MESSAGE"),OPEN_APP:ui("OPEN_APP"),OPEN_YOUTUBE:ui("OPEN_YOUTUBE"),PAUSE:ui("PAUSE"),PLAY:ui("PLAY"),PLAYER_CAPTION:ui("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:ui("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:ui("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:ui("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:ui("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:ui("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:ui("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:ui("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:ui("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:ui("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:ui("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:ui("PLAYER_MINIMIZE"),PLAYER_NEXT:ui("PLAYER_NEXT"),PLAYER_PAUSE:ui("PLAYER_PAUSE"),PLAYER_PLAY:ui("PLAYER_PLAY"),
PLAYER_PREVIOUS:ui("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:ui("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:ui("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:ui("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:ui("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:ui("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:ui("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:ui("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:ui("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:ui("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:ui("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:ui("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:ui("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:ui("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:ui("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:ui("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:ui("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:ui("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:ui("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:ui("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:ui("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:ui("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:ui("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:ui("PLAY_ALL"),PLEASE_FIX_ERRORS:ui("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:ui("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:ui("PREVIOUS_VIDEO"),PRIVACY_POLICY:ui("PRIVACY_POLICY"),RELOAD:ui("RELOAD"),REQUIRED_LABEL:ui("REQUIRED_LABEL"),SAVE_PLAYLIST:ui("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:ui("SCRUB_SLIDE_USER_EDU"),SEARCH:ui("SEARCH","Search"),
SEARCH_APPEND_LABEL:ui("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:ui("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:ui("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:ui("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:ui("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:ui("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:ui("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:ui("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:ui("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:ui("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:ui("SEEK_SLIDER"),SETTINGS_LABEL:ui("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:ui("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:ui("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:ui("SHOW_LESS"),SHOW_MORE:ui("SHOW_MORE"),SHOW_PLAYER_CONTROLS:ui("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:ui("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:ui("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:ui("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:ui("SIGN_IN_ON_WEB"),STABLE_VOLUME:ui("STABLE_VOLUME"),STABLE_VOLUME_OFF:ui("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:ui("STABLE_VOLUME_ON"),STATS_FOR_NERDS:ui("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:ui("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:ui("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:ui("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:ui("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:ui("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:ui("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:ui("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:ui("TIMESTAMP_SECONDS"),TOGGLE_OFF:ui("TOGGLE_OFF"),TOGGLE_ON:ui("TOGGLE_ON"),TRENDING:ui("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:ui("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:ui("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:ui("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:ui("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:ui("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:ui("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:ui("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:ui("VIDEO_LINK_LABEL")};var cQX=_.O(function(h){var E=h.playerApi;h=_.hf("button",function(Z){_.qD(Z,36843)});
var g=ui("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.R("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.R("button",{el:h,class:"ytPlayerControlsJumpForwardButtonButton",title:g,"aria-label":g,"on:click":_.J7(function(){_.ND(36843);E&&E().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.R("span",null,_.R(_.Ni,{icon:"FAST_FORWARD"}))))},"Mg");var iQU=_.O(function(h){var E=h.appApi;h=_.hf("button",function(Z){_.qD(Z,62946)});
var g=ui("OPEN_IN_MINIPLAYER");return _.R("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.R("button",{el:h,class:"ytMiniplayerButtonButton",title:g,"aria-label":g,"on:click":_.J7(function(){_.ND(62946);var Z,M;(M=(Z=E()).openInMiniplayer)==null||M.call(Z);return!1})},_.R(_.Ni,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Ng");var oNZ=_.O(function(h){var E=h.playerApi;h=_.hf("button",function(W){_.qD(W,142812)});
var g=_.G(_.Bm(!1,void 0,"eOMRAb")),Z=g.next().value,M=g.next().value;g=function(){return ui("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(Z()?1:2)})};
return _.R("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.R("button",{el:h,class:"ytPlaybackSpeedButtonButton",title:g,"aria-label":g,"on:click":_.J7(function(){_.ND(142812);if(E){var W=E(),z=Z();W.setPlaybackRate(z?1:2);M(!Z())}return!1})},_.R("span",null,_.R(_.Ni,{icon:function(){return Z()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Og");var INi=_.O(function(h){var E=h.title;var g=h.ariaLabel;var Z=h.icon;var M=h.command;var W=h.veType;h=_.hf("button",function(z){W&&_.qD(z,W())});
return _.R("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.R("button",{el:h,class:"ytdThumbnailOverlayButtonButton",title:E,"aria-label":g,"on:click":_.J7(function(){W&&_.ND(W());M&&_.GF().resolve(_.zF).resolveCommand(M())})},_.R(_.Ni,{icon:Z})))},"Pg");var Y0="";var Rkc=_.O(function(h){var E=h.playerControlsProps,g=h.onClickFn;h=_.Cw(function(){var W=E(),z=-1;W.captionsAvailable&&(z=W.captionsEnabled?1:0);return z},void 0,"MZ0Wqe");
var Z=_.Cw(function(){var W=E();return W.captionsAvailable?_.NH(W.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.NH("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),M=_.Cw(function(){var W=E();
W=W.captionsAvailable?W.captionsEnabled:void 0;return W},void 0,"fhuQRe");
return _.R("yt-closed-captions-toggle-button",null,_.R(_.daU,{captionIconType:h,ariaLabel:Z,ariaPressed:M,onClick:function(W){var z=E();if(z.captionsAvailable){var c=z.playerApi;if(c){var I=z.playerApi;if(I){var B=Y0;if(B){I=I.getOption("captions","track");var U;Y0=(U=I?I.displayName:null)!=null?U:B}else _.e0(I)?(B=_.K3q(I),Y0=B.length?(U=EXX(B))?U.displayName:B[0].displayName:""):Y0=""}gXx(c);_.J("mweb_disable_set_state_captions_killswitch")&&z.setState({captionsEnabled:!z.captionsEnabled})}}var L,
d;(d=(L=z.appApi).showCaptionsToggleToast)==null||d.call(L,z);g==null||g(W)},
isOverlay:!0}))},"Qg");var PCU=_.O(function(h){var E=h.data;return _.R("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.R(_.cP,{data:function(){return{type:17,text:_.pzz(E().label)}}}))},"Rg");var BAx=_.O(function(h){var E=_.CO("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return h.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return h.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return h.size()==="small"?h.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
h.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.R("animated-seek-arrows",{class:_.CO("ytPlayerControlsAnimatedSeekArrowsHost")},_.R("span",{class:E}),_.R("span",{class:E}),_.R("span",{class:E}))},"Sg");
BAx.idomCompat=!0;var U_J=_.O(function(){var h=_.NH("PLAYER_SECONDS",{seconds_placeholder:"30"}),E=_.G(_.Bm(!1,void 0,"iRJu8c")),g=E.next().value,Z=E.next().value,M=_.G(_.Bm(!1,void 0,"MPnizf"));E=M.next().value;var W=M.next().value;M={};var z=_.CO("jumpForwardOverlayOverlay",(M.jumpForwardOverlayOverlayHidden=E,M));_.vJ(function(){var c=null,I=null,B=function(){c!==null&&_.xu().cancelJob(c);I!==null&&_.xu().cancelJob(I);W(!0);Z(!0);_.LO(_.xu(),function(){W(!1)});
c=_.LO(_.xu(),function(){W(!0);I=_.LO(_.xu(),function(){Z(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",B);_.r9(function(){window.removeEventListener("jump-forward-clicked",B)})});
return _.R("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.R(_.P,{cond:g,then:function(){return _.R("div",{class:z},_.R(BAx,{direction:1,size:"large"}),_.R("div",null,h))}}))},"Tg");var LrR=_.HL.MUTE_VOLUME,j5Z=_.HL.UNMUTE_VOLUME,d_C=_.O(function(h){var E=h.muteIconType;var g=h.onClick;var Z=h.useOutlineIcon;var M=h.useDelhiIcons;h=_.hf("button",function(c){_.qD(c,28662)});
var W=function(){var c=E(),I=Z==null?void 0:Z(),B=M==null?void 0:M(),U="",L="";switch(c){case -1:case 0:U=I?"VOLUME_OFF":B?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";L=j5Z;break;case 1:U=I?"VOLUME_UP_OUTLINE":B?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";L=LrR;break;case 2:U=I?"VOLUME_DOWN_OUTLINE":B?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";L=LrR;break;default:_.Vk(c)}return{iconName:U,ariaLabel:L}},z=function(){return W().ariaLabel};
return _.R("ytm-mute-button",{class:"ytmMuteButtonHost"},_.R("button",{el:h,class:"ytmMuteButtonButton",title:z,"aria-label":z,"on:click":_.J7(function(c){_.ND(28662);g==null||g(c);return!1})},_.R("span",null,_.R(_.Ni,{icon:function(){return W().iconName}}))))},"Ug");var CCC=_.O(function(h){var E=h.volumeProps;var g=h.onClickFn;var Z=h.useOutlineIcon;var M=h.useDelhiIcons;return _.R("yt-mute-toggle-button",null,_.R(d_C,{muteIconType:function(){var W=E();return W.volumeMuted||W.volume===0?0:W.volume>50?1:2},
onClick:function(W){var z=E().playerApi;z&&(z.isMuted()?z.unMute():z.mute(!1));g==null||g(W)},
useOutlineIcon:function(){return!(Z==null||!Z())},
useDelhiIcons:function(){return!(M==null||!M())}}))},"Vg");
CCC.idomCompat=!0;var JQR=_.O(function(h){var E=h.data;var g=_.hf("ytm-paid-content-overlay-renderer");return _.R("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:g,"on:animationend":_.J7(function(){g.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.R(_.lk,{command:function(){return E().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.R(_.P,{cond:function(){var Z;return(Z=E().icon)==null?void 0:Z.iconType},
then:function(){return _.R("span",null,_.R(_.Ni,{icon:function(){var Z;return(Z=E().icon)==null?void 0:Z.iconType}}))}}),_.R("div",{class:"ytmPaidContentOverlayText"},_.R(_.dK,{text:function(){return E().text}})),_.R(_.P,{cond:function(){return E().navigationEndpoint},
then:function(){return _.R(_.Ni,{icon:"CHEVRON_RIGHT"})}})))},"Wg");
JQR.idomCompat=!0;var eTX=[].concat(_.$E([{register:function(h){var E=rtx(h),g;(g=h().playerApi)==null||g.addEventListener("onVolumeChange",E);return function(){}}},
{register:function(h){var E=m2Z(h);h=h().playerApi;h==null||h.addEventListener("captionschanged",E);h==null||h.addEventListener("captionssettingschanged",E);h==null||h.addEventListener("onCaptionsTrackListChanged",E);return function(){}}},
{register:function(h){if(!_.J("mweb_screenreader_accessible_player"))return function(){};
var E=vLi(h),g=document.querySelector("video");g==null||g.addEventListener("touchend",E);return function(){g==null||g.removeEventListener("touchend",E)}}},
{register:function(h){if(!_.J("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var E=vLi(h),g=document.querySelector("video");g==null||g.addEventListener("focus",E);return function(){g==null||g.removeEventListener("focus",E)}}}]),[{register:function(h){var E=x20(h),g;
(g=h().playerApi)==null||g.addEventListener("onStateChange",E);return function(){}}},
{register:function(h){var E=wuJ(h),g;(g=h().playerApi)==null||g.addEventListener("onPlaybackRateChange",E);return function(){}}},
{register:function(h){var E=D2c(h),g;(g=h().playerApi)==null||g.addEventListener("onVideoDataChange",E);return function(){}}},
{register:function(h){var E=lpU(h),g,Z;(g=h())==null||(Z=g.playerApi)==null||Z.addEventListener("onVideoProgress",E);return function(){}}}]);var ekU=_.O(function(h){var E=h.data;var g=function(){return _.NH("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+E().playbackRate})};
return _.R(_.P,{cond:function(){return E().playbackRate&&E().playbackRate!==1},
then:function(){return _.R("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.R("div",{class:"ytPlaybackRateOverlayOverlay"},_.R(BAx,{direction:1,size:"small"}),_.R("div",{class:"ytPlaybackRateOverlayLabel"},g)))}})},"Xg");var qHR=_.O(function(h){var E=h.data;return _.R("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.R(_.P,{cond:function(){var g,Z=(g=E())==null?void 0:g.playerResponse,M;return Z==null?void 0:(M=Z.paidContentOverlay)==null?void 0:M.paidContentOverlayRenderer},
then:function(g){return _.R(JQR,{data:g})}}))},"Zg"),fNU=_.O(function(h){var E=h.props;
var g=h.data;var Z=h.options;var M=function(){var B,U,L,d;return(B=g())==null?void 0:(U=B.playerResponse)==null?void 0:(L=U.playerConfig)==null?void 0:(d=L.inlinePlaybackConfig)==null?void 0:d.showAudioControls},W=function(){var B,U;
if(M()&&((B=Z())==null?void 0:(U=B.additionalButton)==null?void 0:U.button)!==void 0){var L,d,C;B=(L=g())==null?void 0:(d=L.playerApi)==null?void 0:(C=d.getSize())==null?void 0:C.height;if(!(B===void 0||B<180)){var q,w;return(q=Z())==null?void 0:(w=q.additionalButton)==null?void 0:w.button}}},z=function(){var B,U;
return(B=Z())==null?void 0:(U=B.additionalButton)==null?void 0:U.thumbnailOverlayButtonRenderers},c=function(){var B,U;
return(B=Z())==null?void 0:(U=B.additionalButton)==null?void 0:U.thumbnailOverlayButtonViewModels},I=function(){var B=[_.R(CCC,{volumeProps:E}),
_.R(Rkc,{playerControlsProps:E})];W()===1&&B.push(_.R(cQX,{playerApi:function(){return E().playerApi}}));
W()===2&&B.push(_.R(iQU,{appApi:function(){return E().appApi}}));
W()===3&&B.push(_.R(oNZ,{playerApi:function(){return E().playerApi}}));
var U=z();if(W()===4&&U){U=_.G(U);for(var L=U.next(),d={};!L.done;d={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$590:void 0},L=U.next()){L=L.value;d.tooltip$jscomp$2=L.tooltip;var C=void 0,q=void 0;d.ariaLabel$jscomp$20=((C=L.accessibility)==null?void 0:(q=C.accessibilityData)==null?void 0:q.label)||d.tooltip$jscomp$2;C=void 0;d.icon$jscomp$50=(C=L.icon)==null?void 0:C.iconType;d.command$jscomp$590=L.command;d.tooltip$jscomp$2&&d.ariaLabel$jscomp$20&&d.icon$jscomp$50&&
B.push(_.R(INi,{title:function(w){return function(){return w.tooltip$jscomp$2}}(d),
ariaLabel:function(w){return function(){return w.ariaLabel$jscomp$20}}(d),
icon:function(w){return function(){return w.icon$jscomp$50}}(d),
command:function(w){return function(){return w.command$jscomp$590}}(d)}))}}U=c();
if(W()===4&&U)for(U=_.G(U),L=U.next(),d={};!L.done;d={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$591:void 0},L=U.next())L=L.value,d.tooltip$jscomp$3=L.title,d.ariaLabel$jscomp$21=L.accessibilityText||d.tooltip$jscomp$3,d.icon$jscomp$51=L.iconName,d.command$jscomp$591=_.kB(L.onTap),d.tooltip$jscomp$3&&d.ariaLabel$jscomp$21&&d.icon$jscomp$51&&B.push(_.R(INi,{title:function(w){return function(){return w.tooltip$jscomp$3}}(d),
ariaLabel:function(w){return function(){return w.ariaLabel$jscomp$21}}(d),
icon:function(w){return function(){return w.icon$jscomp$51}}(d),
command:function(w){return function(){return w.command$jscomp$591}}(d)}));
return B};
return _.R(_.P,{cond:M,then:function(){return _.R("div",{class:"ytInlinePlayerControlsTopRightControls"},_.R(_.SX,{each:I},function(B){return _.R("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.R("div",{class:"ytInlinePlayerControlsButtonIcon"},B))}))}})},"$g"),SHZ=_.O(function(h){var E=h.props;
var g=h.data;var Z=h.options;h={};h=_.CO("ytInlinePlayerControlsBottomRightControls",(h.ytInlinePlayerControlsBottomRightControlsHidden=function(){var M;return $2C(g(),Z())&&((M=Z())==null?void 0:M.insetProgressBar)&&(E().isHovering||E().isDragging)},h));
return _.R("div",{class:h},_.R(NAU,{data:g}),_.R(_.P,{cond:function(){var M;return!((M=Z())==null?0:M.hideTimeDisplay)},
then:function(){return _.R(tNG,{props:E,data:g})}}))},"ah"),NAU=_.O(function(h){var E=h.data;
return _.R(_.Sv,{data:function(){var g;return d2X((g=E())==null?void 0:g.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:PCU})},"bh"),tNG=_.O(function(h){var E=h.props;
var g=h.data;return _.R(_.P,{cond:function(){return E().isLive},
then:function(){return _.R(x_G,null)},
else:function(){return _.R(wlC,{props:E,data:g})}})},"ch"),wlC=_.O(function(h){var E=h.props;
var g=h.data;var Z=_.Cw(function(){var M;return JtG((M=g())==null?void 0:M.thumbnailOverlays)},void 0,"tLs0gd");
return _.R("div",{class:_.CO("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.HL.PLAYER_TIME_ELAPSED+" "+_.A8q(E().playedTime)}},_.R(_.cP,{data:function(){var M=_.A8q(E().videoDuration-E().playedTime);
return Object.assign({},{type:17,text:M},Z())}}))},"dh"),x_G=_.O(function(){var h=_.CO("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.R("div",{class:h},_.R(_.cP,{data:{type:18,text:_.HL.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"eh"),D_0=_.O(function(h){var E=h.props;
var g=h.data;var Z=h.options;return _.R(_.Xhi,{progressBarProps:E,config:function(){var M,W=_.e((M=g())==null?void 0:M.multiMarkersPlayerBar,_.GAf),z;M=((z=Z())==null?0:z.insetProgressBar)?2:1;var c;z=(c=Z())==null?void 0:c.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:M,chapterData:W,isInlinePlayback:!0,doSeekOnClick:z,playheadDotBehavior:z?1:0}}})},"fh");_.I9(_.O(function(h){var E=h.data;var g=h.appApi;var Z=h.options;var M=SY0(E,HPp(g));h={};g={};return _.R("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.R("div",{class:_.CO("ytInlinePlayerControlsDarkenedOverlay",(h.ytInlinePlayerControlsDarkenedOverlayShow=function(){return M().isHovering},h))}),_.R(U_J,null),_.R(ekU,{data:M}),_.R(qHR,{data:E}),_.R(aNc,{playerControlsProps:M,
isShortsPage:!1}),_.R("div",{class:_.CO((g.ytInlinePlayerControlsControlsHidden=function(){return M().isDragging},g))},_.R(fNU,{props:M,
data:E,options:Z}),_.R(SHZ,{props:M,data:E,options:Z})),_.R(_.P,{cond:function(){return $2C(E(),Z())},
then:function(){return _.R(D_0,{props:M,data:E,options:Z})}}))},"Yg"),"yt-inline-player-controls",{props:{data:_.C6,
appApi:_.c$,options:_.C6}});var $t=function(){var h=_.D.apply(this,arguments)||this;h.opts=null;h.playerControlsData=null;h.playerControlsAppApi={openInMiniplayer:function(){h.openInMiniplayer()}};
h.playerControlsOptions={};h.noAnimation=!1;h.playbackIntentTriggered=!1;h.positionData=null;h.hidden=!0;h.active=!1;h.playing=!1;h.videoPreviewDataIndex=0;h.JSC$19159_playerPromise=null;h.player=null;h.enableAudioControls=!1;h.hasBeenUnmuted=!1;h.captionsHaveBeenTurnedOff=!1;h.JSC$19159_playerEvents=new Map;h.videoPreviewFetchRequest=null;h.scheduledPreviewEndJobId=null;h.JSC$19159_preventProgressSaveTimer=null;h.watchEndpointStartTimeUpdaterInterval=null;h.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};h.windowOnBlurFn=function(){h.deactivate()};
return h};
_.f($t,_.D);_.p=$t.prototype;
_.p.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.p.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19159_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19159_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19159_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19159_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.qm(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.qm(this,this.onScroll))};
_.p.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.qm(this,this.onScroll))};
_.p.onPageTypeChange=function(){this.deactivate()};
_.p.onWindowResized=function(){this.deactivate()};
_.p.onCaptionsChanged=function(h){h=!!h.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!h);this.setCaptionSize()};
_.p.setCaptionSize=function(){var h;if(this.active&&!this.captionsHaveBeenTurnedOff&&((h=this.player)==null?0:h.getCaptionWindowContainerId())){var E;(E=this.player)==null||E.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.p.currentPageAllowed=function(){return!this.isWatchPage};
_.p.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.J("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var h=this.positionData,E=h.initialTopPosition,g=h.initialHorizontalPosition;_.Ja(this.hostElement,{"--ytd-video-preview-translate-left":h.finalHorizontalPosition-g+"px","--ytd-video-preview-translate-top":h.finalTopPosition-E+"px","--ytd-video-preview-original-top-position":E+
"px","--ytd-video-preview-original-horizontal-position":g+"px","--ytd-video-preview-initial-scale":"scale("+h.initialScale+")","--ytd-video-preview-width":h.videoPreviewWidth+"px","--ytd-video-preview-height":h.videoPreviewHeight+"px"});return!0};
_.p.isOutOfBounds=function(h){var E=h.initialHorizontalPosition+12;h=E+h.videoPreviewWidth>window.innerWidth;return E<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&E<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&E<72||h};
_.p.handleOpenVideoPreviewAction=function(h){var E=this,g;return _.a(function(Z){if(!E.currentPageAllowed())return Z.return(0);E.opts=h;return(g=E.alignVideoPreviewForAnimation(h.thumbnail))?Z.return(E.activate()):Z.return(0)})};
_.p.onMouseLeave=function(h){this.shouldDeactivateOnMouseLeave(h)&&this.deactivate()};
_.p.onScroll=function(){var h,E;((h=this.opts)==null?0:h.isAutoplay)&&((E=this.opts)==null?0:E.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.p.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.KP.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.p.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.p.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",$t.JSC$19158_DEFAULT_CLICK_LOCATION_BEHAVIOR,$t.JSC$19158_CLICK_LOCATION_ID_MAP)};
_.p.shouldDeactivateOnMouseLeave=function(h){h=h.relatedTarget;if(!h)return!0;var E;return(E=this.opts)!=null&&E.mediaRenderer?!_.L3(this.opts.mediaRenderer).contains(h):!0};
_.p.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.p.onPlaybackStart=function(){var h=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$19159_preventProgressSaveTimer=
_.LO(_.KP,function(){h.resetPreventProgressSaveTimer()},1E4);
var E;if((E=this.opts)==null?0:E.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.LO(_.KP,function(){h.hasMultipleVideoPreviews()?h.startPlaybackForNextVideo():h.deactivate()},this.opts.videoPreviewDurationMs);
var g;this.player.setGlobalCrop(((g=this.opts)==null?0:g.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.p.getRoundedCornersSize=function(){var h;if((h=this.opts)==null?0:h.roundedCornersSize){var E;return(E=this.opts)==null?void 0:E.roundedCornersSize}var g;if((g=this.opts)==null?0:g.enableRounding){var Z;if(((Z=this.opts)==null?void 0:Z.thumbnailSize)==="small")return 1;var M;if(((M=this.opts)==null?void 0:M.thumbnailSize)==="medium")return 2;var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="large")return 3}return _.J("web_imp_inset_progress_bar")?3:0};
_.p.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.p.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.p.onMediaContainerClick=function(h){this.isShortcutClick(h)||(this.navigateToWatch(h),h.preventDefault(),h.stopPropagation())};
_.p.activate=function(){var h=this,E,g,Z,M,W,z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:if(!h.currentPageAllowed())return U.return(0);g=(E=h.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint;Z=_.bF.instance;if(!g||!Z)return U.return(0);h.playbackIntentTriggered=!0;((M=h.opts)==null?0:M.mediaRenderer)&&((W=h.opts)==null||!W.isAutoplay)&&Lg0(h.opts.mediaRenderer,function(){h.deactivate()});
_.pQ(h,function(){h.revealPreviewUi()});
z={};_.J("enable_unknown_lact_fix_on_html5")&&(_.GF().resolve(_.DC),z.lact=_.zq());h.videoPreviewFetchRequest=oLG(Z,h.getInlinePlaybackRequestData(h.videoPreviewData),z);_.CX(U,2);return U.yield(h.videoPreviewFetchRequest,4);case 4:c=U.yieldResult;if(((I=c)==null?void 0:(B=I.playabilityStatus)==null?void 0:B.status)==="OK")return U.return(h.handlePlayerResponse(c));throw Error("ak");case 2:_.th(U),h.deactivate();case 3:return U.return(1)}})};
_.p.getInlinePlaybackRequestData=function(h){var E,g=_.J("web_imp_player_mute_params")?((E=this.opts)==null?void 0:E.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:h.inlinePlaybackEndpoint,startPlaybackInMutedState:g}};
_.p.handlePlayerResponse=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L;return _.a(function(d){if(d.nextAddress==1){g=E.getInlinePlaybackVideoId();if(!(((Z=h)==null?0:(M=Z.videoDetails)==null?0:M.videoId)&&E.currentPageAllowed()&&E.playbackIntentTriggered&&E.opts&&g))return E.deactivate(),d.return(0);if(h.videoDetails.videoId!==g)return d.return(0);E.enableAudioControls=!!((W=h.playerConfig)==null?0:(z=W.inlinePlaybackConfig)==null?0:z.showAudioControls);h.trackingParams=E.getInlinePlaybackTrackingParams();
if(!E.inlinePlayer)return d.return(0);c={};if(B=_.e((I=E.videoPreviewData)==null?void 0:I.inlinePlaybackEndpoint,_.MH))c.watch_endpoint=B;if(E.videoPreviewData){var C,q=(C=_.e(E.videoPreviewData.inlinePlaybackEndpoint,_.MH))==null?void 0:C.startTimeSeconds;q!==void 0&&(h.playerConfig||(h.playerConfig={}),h.playerConfig.playbackStartConfig||(h.playerConfig.playbackStartConfig={}),h.playerConfig.playbackStartConfig.startPosition||(h.playerConfig.playbackStartConfig.startPosition={}),h.playerConfig.playbackStartConfig.startSeconds=
q,h.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(q*1E3))}E.inlinePlayer.loadVideoWithPlayerResponse(h,c);if(E.JSC$19159_playerPromise)return d.jumpTo(2);E.JSC$19159_playerPromise=E.inlinePlayer.getPlayerPromise();return d.yield(E.JSC$19159_playerPromise,3)}d.nextAddress!=2&&(U=d.yieldResult,U.setInlinePreview(!0),U.setSizeStyle(!1,!0),E.ytPlayerListenerBehavior.listenToPlayerEvents(U,E.JSC$19159_playerEvents),E.player=U,_.Ra(E.hostElement,"player-api-ready"));((L=E.opts)==
null?0:L.showPlayerControls)&&E.videoPreviewData&&E.player&&(E.playerControlsData={playerResponse:h,isInlinePlayback:!0,thumbnailOverlays:E.videoPreviewData.thumbnailOverlays,playerApi:E.player},E.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!E.unroundCornersForPlayback,additionalButton:E.getAdditionalButtonType(E.videoPreviewData.thumbnailOverlays)});return d.return(2)})};
_.p.revealPreviewUi=function(){var h=this;this.playbackIntentTriggered&&_.bWa(this,function(){h.hasThumbnailPositionChangedSinceTriggered()||(h.updateActiveState(!0),h.noAnimation=!1)})};
_.p.hasThumbnailPositionChangedSinceTriggered=function(){var h=this.positionData,E=this.getThumbnailPositionData();return(h==null?void 0:h.initialTopPosition)!==(E==null?void 0:E.initialTopPosition)||(h==null?void 0:h.initialHorizontalPosition)!==(E==null?void 0:E.initialHorizontalPosition)};
_.p.getThumbnailPositionData=function(){var h,E;if((E=this.opts)==null||!E.thumbnail)return null;E=this.opts.thumbnail;var g=((h=this.opts)==null?0:h.cropPlayerToFillThumbnailHorizontally)?!1:!0;var Z=E.getBoundingClientRect();h=Z.width;E=Z.height;var M=Z.top+window.scrollY;Z=Z.left+window.scrollX;var W=g?Math.ceil(h):h;g=g?Math.ceil(E):E;var z=h/W;h={initialScale:z,initialTopPosition:M-12*z,finalTopPosition:M-12-(g-E)/2,initialHorizontalPosition:Z-(12+(W-h)/2),finalHorizontalPosition:Z-12-(W-h)/
2,videoPreviewWidth:W,videoPreviewHeight:g};return h};
_.p.updateActiveState=function(h){this.active=h;this.ytdReduxBehavior.dispatch(_.RY({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:h}))};
_.p.stopPlayer=function(h){h=h.resetWatchEndpointStartTime===void 0?!1:h.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(h)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.KP.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.p.deactivate=function(h){h=h===void 0?{}:h;h=h.resetWatchEndpointStartTime===void 0?!1:h.resetWatchEndpointStartTime;bi&&(bi.disconnect(),bi=null);this.stopPlayer({resetWatchEndpointStartTime:h});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.p.isValidThumbnailOverlayButton=function(h,E){h=h.thumbnailOverlayButtonRenderer;var g;return!!h&&!!h.tooltip&&!((g=h.icon)==null||!g.iconType)&&E.includes(h.icon.iconType)};
_.p.isValidThumbnailOverlayButtonViewModel=function(h,E){var g;h=_.e((g=h.thumbnailOverlayButtonViewModel)==null?void 0:g.overlayButton,_.i_);return!!h&&!!h.title&&!!h.iconName&&E.includes(h.iconName)};
_.p.getAdditionalButtonType=function(h){var E=this;if(_.J("web_imp_fastforward_button"))return{button:1};if(_.J("web_imp_miniplayer_button"))return{button:2};if(_.J("web_imp_playback_speed_button"))return{button:3};var g=["BOX_STACK_3"],Z=(h||[]).filter(function(W){return E.isValidThumbnailOverlayButton(W,g)}).map(function(W){return W.thumbnailOverlayButtonRenderer});
if(Z.length)return{button:4,thumbnailOverlayButtonRenderers:Z};var M=["BOX_STACK_3"];h=(h||[]).filter(function(W){return E.isValidThumbnailOverlayButtonViewModel(W,M)}).map(function(W){return _.e(W.thumbnailOverlayButtonViewModel.overlayButton,_.i_)});
if(h.length)return{button:4,thumbnailOverlayButtonViewModels:h}};
_.p.allowCaptions=function(){var h;return!((h=this.opts)==null?0:h.forceCaptionsOff)};
_.p.allowUnmuting=function(){var h;return this.enableAudioControls&&!((h=this.opts)==null?0:h.forceMutedVolume)};
_.p.beginStartTimeUpdater=function(){var h=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Uq(function(){h.updateWatchEndpointStartTime()},1E3)};
_.p.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.p.resetPreventProgressSaveTimer=function(){this.JSC$19159_preventProgressSaveTimer!==null&&(_.KP.cancelJob(this.JSC$19159_preventProgressSaveTimer),this.JSC$19159_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.p.updateWatchEndpointStartTime=function(h){var E=this.videoPreviewData;if(this.player&&E!=null&&E.inlinePlaybackEndpoint&&!this.JSC$19159_preventProgressSaveTimer){h=h?0:Math.floor(this.player.getCurrentTime());var g=_.e(E.navigationEndpoint,_.MH);g&&(g.startTimeSeconds=h);if(E=_.e(E.inlinePlaybackEndpoint,_.MH))E.startTimeSeconds=h}};
_.p.isShortcutClick=function(h){return!!h&&(h.ctrlKey||h.shiftKey||h.metaKey)};
_.p.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.p.openInMiniplayer=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1){g=(E=h.videoPreviewData)==null?void 0:E.navigationEndpoint;if(!g)return Z.return();_.sU().lockupActivation=!0;return Z.yield(_.LLM(_.GF().resolve(_.Yu),g),2)}_.sU().userActivation=!0;_.SK(Z)})};
_.p.navigateToWatch=function(h){var E,g=(E=this.videoPreviewData)==null?void 0:E.navigationEndpoint;if(g){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(g,h,!0);else{var Z;_.J("web_thumbnail_to_watch_transition")&&((Z=this.opts)==null?0:Z.thumbnail)&&_.PRf(_.GF().resolve(_.Vr),this.opts.thumbnail);_.Ra(this.hostElement,"yt-navigate",{endpoint:g})}this.deactivate()}};
_.p.getInlinePlaybackVideoId=function(){var h,E;return(E=_.e((h=this.videoPreviewData)==null?void 0:h.inlinePlaybackEndpoint,_.MH))==null?void 0:E.videoId};
_.p.getInlinePlaybackTrackingParams=function(){var h,E;return(h=this.videoPreviewData)==null?void 0:(E=h.inlinePlaybackEndpoint)==null?void 0:E.clickTrackingParams};
_.p.hasMultipleVideoPreviews=function(){var h;return!!(((h=this.opts)==null?0:h.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.p.startPlaybackForNextVideo=function(){var h;(h=this.opts)!=null&&h.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())};
_.ze.Object.defineProperties($t.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.opts)==null?0:h.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.opts)==null||!h.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 h;if(Array.isArray((h=this.opts)==null?void 0:h.videoPreviewData)){var E;return(E=this.opts)==null?void 0:E.videoPreviewData[this.videoPreviewDataIndex]}var g;return(g=this.opts)==null?void 0:g.videoPreviewData}}});
$t.prototype.onIsAdsVideoChange=$t.prototype.onIsAdsVideoChange;$t.prototype.onInlinePreviewIsEnabledChange=$t.prototype.onInlinePreviewIsEnabledChange;$t.prototype.optsChanged=$t.prototype.optsChanged;$t.prototype.onMouseLeave=$t.prototype.onMouseLeave;$t.JSC$19158_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);$t.JSC$19158_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"}];
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$t.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$t.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],$t.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],$t.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],$t.prototype,"componentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],$t.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.xa.YtSparklesClickLocationBehavior),_.V("design:type",Object)],$t.prototype,"ytSparklesClickLocationBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$t.prototype,"opts",void 0);
_.Y([_.x(),_.V("design:type",Object)],$t.prototype,"playerControlsData",void 0);_.Y([_.x(),_.V("design:type",Object)],$t.prototype,"playerControlsAppApi",void 0);_.Y([_.x(),_.V("design:type",Object)],$t.prototype,"playerControlsOptions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$t.prototype,"noAnimation",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$t.prototype,"hidden",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$t.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$t.prototype,"playing",void 0);_.Y([_.x({selector:_.GVN}),_.V("design:type",Boolean)],$t.prototype,"inlinePreviewIsEnabled",void 0);_.Y([_.x(),_.V("design:type",String)],$t.prototype,"pagePath",void 0);_.Y([_.x({selector:_.Mnz}),_.V("design:type",Boolean)],$t.prototype,"isWatchPage",void 0);
_.Y([_.S("videoPreviewData"),_.V("design:type",Object),_.V("design:paramtypes",[])],$t.prototype,"thumbnailData",null);_.Y([_.S("opts","active"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"hidePlayerControls",null);_.Y([_.S("opts"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"isAdsVideo",null);
_.Y([_.S("opts"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"roundedCornersSmall",null);_.Y([_.S("opts"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"roundedCornersMedium",null);_.Y([_.S("opts"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"roundedCornersLarge",null);
_.Y([_.S("opts"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$t.prototype,"unroundCornersForPlayback",null);_.Y([_.S("opts","videoPreviewDataIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],$t.prototype,"videoPreviewData",null);_.Y([_.x(),_.V("design:type",Object)],$t.prototype,"videoPreviewDataIndex",void 0);_.Y([_.Sg("#inline-player"),_.V("design:type",Object)],$t.prototype,"inlinePlayer",void 0);
_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[MouseEvent]),_.V("design:returntype")],$t.prototype,"onMouseLeave",null);_.Y([_.lq("opts"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$t.prototype,"optsChanged",null);_.Y([_.lq("inlinePreviewIsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$t.prototype,"onInlinePreviewIsEnabledChange",null);
_.Y([_.Nm("isAdsVideo"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$t.prototype,"onIsAdsVideoChange",null);_.Y([_.K({is:"ytd-video-preview",disableElementRegistration:!0})],$t);
_.X($t,"ytd-video-preview",function(){if(zkx!==void 0)return zkx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zkx=h},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Y4K,sWN,Vqa;Y4K=function(h){return _.J("kevlar_watch_cinematics_invisible")||h.fullscreen&&_.J("kevlar_watch_cinematics_invisible_in_fullscreen")||h.theater&&!h.fullscreen&&_.J("kevlar_watch_cinematics_invisible_in_theater")};
sWN=function(){var h=document.createElement("canvas"),E=h.getContext("2d");if(!E)throw Error("Fo");_.FV(h,{position:"absolute",width:"100%",height:"100%"});return{element:h,context:E}};
Vqa=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.J("kevlar_watch_cinematics_css_blur")};
_.kux=function(h,E,g){return Math.abs(h-E)<=(g||1E-6)};
_.yM2=function(h,E){return h==E?!0:h&&E?h.width==E.width&&h.height==E.height:!1};_.FZ0=new _.I2("notificationActionRenderer");var AMx=function(h){var E=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.dN;this.element.addEventListener("load",function(){E.loaded=!0;E.resolver.resolve(E.element)});
this.element.addEventListener("error",function(){E.failed=!0});
this.element.src=h};var T$N=function(h,E){this.image=h;this.frame=E};
T$N.prototype.drawToCanvas=function(h,E){var g=this.frame.width/this.frame.columns,Z=this.frame.height/this.frame.rows,M=E.offsetX,W=E.offsetY;Y4K(E)?(h.fillStyle=E.fullscreen?"#000":"#0f0f0f",h.fillRect(M,W,(E==null?void 0:E.width)||g,(E==null?void 0:E.height)||Z)):h.drawImage(this.image,this.frame.column*g,this.frame.row*Z,g,Z,M,W,(E==null?void 0:E.width)||g,(E==null?void 0:E.height)||Z)};
var bdF=function(h){this.color=h};
bdF.prototype.drawToCanvas=function(h,E){var g=E.offsetX,Z=E.offsetY,M=E.width,W=E.height;h.fillStyle=Y4K(E)?E.fullscreen?"#000":"#0f0f0f":this.color;h.fillRect(g,Z,M,W)};var dJ=function(h,E){_.Yt.call(this);this.playerApi=E;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Ns(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();uzx(this,h);QWa(this);this.update()};
_.f(dJ,_.Yt);dJ.prototype.addEventListeners=function(){var h=this,E=function(){h.update()},g=function(M){h.paused||(M.type==="newdata"&&(h.mosaics.clear(),hH2(h),Co(h)),QWa(h),h.update())},Z=function(){h.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",E);this.playerApi.addEventListener("onVideoDataChange",g);this.playerApi.addEventListener("onStateChange",Z);this.addOnDisposeCallback(function(){h.playerApi.removeEventListener("onVideoProgress",E);h.playerApi.removeEventListener("onVideoDataChange",g);h.playerApi.removeEventListener("onStateChange",Z)})};
var uzx=function(h,E){h.cinematicContainerRenderer!==E&&(h.cinematicContainerRenderer=E,hH2(h),Co(h),h.colorStoreUpdateJobId=_.KP.addLowPriorityJob(function(){var g;if((g=h.cinematicContainerRenderer.colorStore)!=null&&g.sampledColors){g=Infinity;for(var Z=_.G(h.cinematicContainerRenderer.colorStore.sampledColors),M=Z.next();!M.done;M=Z.next()){M=M.value;var W=Number(M.key);W!==0&&W<g&&(g=W);W=_.uU(M.value);h.colorStore.set(M.key,W)}h.colorStoreTimeInterval=g}}))},hH2=function(h){h.colorStoreUpdateJobId&&
(_.KP.cancelJob(h.colorStoreUpdateJobId),h.colorStoreUpdateJobId=void 0);
h.colorStore.clear();h.currentStoryboardColor=void 0},EMa=function(h,E){var g;
return(g=h.getStoryboardFrame(E))==null?void 0:g.url};
dJ.prototype.onPlayerStateChange=function(){this.update()};
dJ.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var QWa=function(h){var E=h.getStoryboardFrame(0);E&&(E=new _.Ns(E.width/E.columns,E.height/E.rows),_.yM2(h.currentStoryboardSize,E)||(h.currentStoryboardSize=E,h.publish("STORYBOARD_SIZE_CHANGED",h.currentStoryboardSize)))},gMx=function(h,E){h.currentStoryboardIndex=E;
h.pendingStoryboardIndex=NaN;E=h.getStoryboardFrame(h.currentStoryboardIndex);h.currentStoryboard=new T$N(h.mosaics.get(E.url).element,E);h.publish("STORYBOARD_CHANGED",h.currentStoryboard);h.lastUpdateTime=(0,_.zn)()};
dJ.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Co=function(h){h.currentStoryboardIndex=NaN;h.pendingStoryboardIndex=NaN;h.currentStoryboard&&(h.currentStoryboard=void 0,h.publish("STORYBOARD_CHANGED",void 0));h.lastUpdateTime=NaN};
dJ.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Co(this);else{var h=this.playerApi.getPlayerState(1);if(h===-1||h===5||h===0)Co(this);else if(isNaN(this.lastUpdateTime)||!((0,_.zn)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(h=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){h=""+Math.round(h*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var E=this.colorStore.get(h);E?E!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=E,this.currentStoryboard=new bdF(E),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.zn)()):(_.O$(new _.xX("Could not find color for timestamp: "+h,this.cinematicContainerRenderer)),Co(this))}else Co(this);else ZDa(this,h)}};
var ZDa=function(h,E){var g=h.getStoryboardFrameIndex(E);if(g!==h.currentStoryboardIndex&&g!==h.pendingStoryboardIndex){E=EMa(h,g);var Z=h.mosaics.get(E);Z?Z.loaded&&gMx(h,g):(h.pendingStoryboardIndex=g,g=new AMx(E),h.mosaics.set(E,g),g.resolver.promise.then(function(){if(!h.isDisposed()&&!h.paused&&!isNaN(h.pendingStoryboardIndex)){var M=EMa(h,h.pendingStoryboardIndex);if(M){var W;(W=h.mosaics.get(M))!=null&&W.loaded&&gMx(h,h.pendingStoryboardIndex)}else Co(h)}}))}};
dJ.prototype.getStoryboardFrameIndex=function(h){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(h,E)};
dJ.prototype.getStoryboardFrame=function(h){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,g,Z;return((Z=(g=this.playerApi).getStoryboardFrame)==null?void 0:Z.call(g,h,E))||null};
dJ.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var er=function(h,E,g,Z){Z=Z===void 0?!1:Z;_.wO.call(this);this.cinematicContainerRenderer=E;this.playerApi=g;this.theater=this.fullscreen=!1;var M;this.ambientLightThemeEnabled=!Z&&!!(E==null?0:(M=E.config)==null?0:M.enableInLightTheme);this.ambientFullscreenEnabled=Z&&_.J("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=Z&&_.J("web_cinematic_theater_mode");this.container=document.createElement("div");h.appendChild(this.container);var W;if(_.J("web_cinematic_theater_mode")||_.J("web_cinematic_fullscreen")||
(E==null?0:(W=E.config)==null?0:W.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);MFx(this);h=this.ambientV2Container||this.container;this.backCanvas=sWN();this.frontCanvas=sWN();h.appendChild(this.backCanvas.element);h.appendChild(this.frontCanvas.element);this.storyboardManager=new dJ(E,this.playerApi);_.jf(this,this.storyboardManager);this.addEventListeners();Wf2(this)?pMx(this,100+Jr(this)*3*2,100+Jr(this)*3*2):GfL(this);
zHL(this,this.storyboardManager.currentStoryboard)};
_.f(er,_.wO);var MFx=function(h){h.ambientV2Container?alx(h):(_.FV(h.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+cnr(h)+", "+iD2(h)+")"}),Vqa()&&_.FV(h.container,"filter","blur("+_.cx("cinematic_watch_css_filter_blur_strength",40)+"px)"))},alx=function(h){if(h.ambientV2Container){var E=h.playerApi.getVideoAspectRatio();
_.FV(h.container,{"aspect-ratio":""+E,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.FV(h.ambientV2Container,{"aspect-ratio":""+E,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+cnr(h)+", "+iD2(h)+")"});Vqa()&&_.FV(h.ambientV2Container,"filter","blur("+_.cx("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
er.prototype.setFullscreen=function(h,E){this.fullscreen=h;this.theater=!!E;MFx(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),h=this.storyboardManager.currentStoryboard,oMj(this),h&&IlF(this,h)};
er.prototype.addEventListeners=function(){var h=this,E=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(M){zHL(h,M)}),g=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){GfL(h)});
this.addOnDisposeCallback(function(){h.storyboardManager.unsubscribeByKey(E);h.storyboardManager.unsubscribeByKey(g)});
if(this.ambientV2Container){var Z=function(){alx(h)};
this.playerApi.addEventListener("onVideoDataChange",Z);this.addOnDisposeCallback(function(){h.playerApi.removeEventListener("onVideoDataChange",Z)})}};
var GfL=function(h){if(!Wf2(h)){var E=h.storyboardManager.currentStoryboardSize;isNaN(E.width)||isNaN(E.height)||pMx(h,Number(E.width)+Jr(h)*3*2,Number(E.height)+Jr(h)*3*2)}},pMx=function(h,E,g){h.backCanvas.element.width=E;
h.backCanvas.element.height=g;h.frontCanvas.element.width=E;h.frontCanvas.element.height=g},Wf2=function(h){return h.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},zHL=function(h,E,g){g=g===void 0?!1:g;
var Z=h.frontCanvas.element.getAnimations()[0];Z?(Z.pause(),h.backCanvas.context.globalAlpha=Number(getComputedStyle(h.frontCanvas.element).opacity),h.frontCanvas.element.style.opacity="0",Z.finish()):h.backCanvas.context.globalAlpha=1;h.backCanvas.context.drawImage(h.frontCanvas.element,0,0,h.backCanvas.element.width,h.backCanvas.element.height);oMj(h);E&&IlF(h,E);E=E?h.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.cx("cinematic_watch_fade_out_duration",500);Z=_.cx("cinematic_watch_transition_frame_rate")/
1E3;var M={};Z&&(M={easing:"steps("+Math.round(E*Z)+")"});(g===void 0?0:g)||h.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:E,iterations:1},M));h.frontCanvas.element.style.opacity="1"},oMj=function(h){var E=h.ambientLightThemeEnabled||h.ambientTheaterModeEnabled,g=h.ambientLightThemeEnabled||h.ambientFullscreenEnabled;
h.frontCanvas.context.fillStyle=h.theater&&E||h.fullscreen&&g?"#000":"#0f0f0f";Vqa()||(h.frontCanvas.context.filter="blur(0)");h.frontCanvas.context.fillRect(0,0,h.frontCanvas.element.width,h.frontCanvas.element.height)},IlF=function(h,E){Vqa()||(h.frontCanvas.context.filter="blur("+Jr(h)+"px)");
h.frontCanvas.context.globalAlpha=h.fullscreen&&h.ambientFullscreenEnabled||h.theater&&h.ambientTheaterModeEnabled?_.cx("cinematic_watch_effect_letterbox_opacity",.4):_.cx("cinematic_watch_effect_opacity",.4);var g={offsetX:Jr(h)*3,offsetY:Jr(h)*3,theater:h.theater,fullscreen:h.fullscreen};Wf2(h)&&(g.width=100,g.height=100);E.drawToCanvas(h.frontCanvas.context,g);h.frontCanvas.context.globalAlpha=1},Jr=function(h){var E;
return(E=h.cinematicContainerRenderer.config.blurStrength)!=null?E:5},cnr=function(h){var E,g;
if((h.fullscreen||h.theater)&&((E=h.cinematicContainerRenderer.config)==null?0:(g=E.watchFullscreenConfig)==null?0:g.colorSourceWidthMultiplier))return h.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var Z;return(Z=h.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?Z:h.cinematicContainerRenderer.config.colorSourceSizeMultiplier},iD2=function(h){var E,g;
if((h.fullscreen||h.theater)&&((E=h.cinematicContainerRenderer.config)==null?0:(g=E.watchFullscreenConfig)==null?0:g.colorSourceHeightMultiplier))return h.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var Z;return(Z=h.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?Z:h.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
er.prototype.disposeInternal=function(){_.wO.prototype.disposeInternal.call(this);this.container.remove()};
er.prototype.clear=function(){zHL(this,void 0,!0)};
er.prototype.pause=function(){this.storyboardManager.pause()};var RHL;RHL=_.DE(function(){var h,E,g=!((E=(h=document.createElement("canvas")).getContext)==null||!E.call(h,"2d")),Z;h=!((Z=CSS)==null||!Z.supports("filter: blur(0)"));Z=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var M;return g&&h&&Z&&!((M=CSS)==null||!M.supports("aspect-ratio: 1 / 1"))});
_.qr=function(h,E){_.Yt.call(this);this.container=h;this.playerApi=E;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=PlN(this);this.update()};
_.f(_.qr,_.Yt);_.BBM=function(h){var E=document.documentElement.hasAttribute("dark");h.isDarkModeEnabled=E;h.update()};
_.UAj=function(h,E){h.settingEnabled=E;h.update()};
_.qr.prototype.setFullscreen=function(h,E){this.fullscreen=h;this.theater=!!E;this.update()};
_.Lfx=function(h,E){h.cinematicContainerRenderer=E;h.cinematicContainerRenderer&&(h.cinematicsVe=_.Uz(h.isShorts()?227858:159022),_.vt(_.SQ(),h.cinematicsVe),h.loggingClientData={watchCinematicContainerData:{presentationStyle:h.cinematicContainerRenderer.presentationStyle}});h.update()};
_.qr.prototype.isShorts=function(){var h,E;return((h=this.cinematicContainerRenderer)==null?void 0:(E=h.config)==null?void 0:E.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.qr.prototype.isAllowed=function(){var h;if(h=RHL()){var E,g,Z;h=((g=this.cinematicContainerRenderer)==null?void 0:g.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((Z=this.cinematicContainerRenderer)==null||!Z.colorStore)||((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(h)if(_.J("web_cinematics_pausing")){var M,W;h=this.isDarkModeEnabled||!!((M=this.cinematicContainerRenderer)==
null?0:(W=M.config)==null?0:W.enableInLightTheme)}else{var z,c;M=!!((z=this.cinematicContainerRenderer)==null?0:(c=z.config)==null?0:c.enableInLightTheme)&&(_.nF("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);h=this.isDarkModeEnabled||M}if(z=h){var I,B;z=!((B=(I=this.prefersReducedMotionQuery)==null?void 0:I.matches)!=null&&B)}return z};
_.jmj=function(h){(h=h.currentCinematicEffect)!=null&&(h=h.storyboardManager,h.paused=!1,QWa(h),h.update())};
_.qr.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var PlN=function(h){if(!_.J("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var E=window.matchMedia("(prefers-reduced-motion: reduce)"),g=function(){h.update()};
E.addListener(g);h.addOnDisposeCallback(function(){E.removeListener(g)});
return E}};
_.qr.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var h=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new er(this.container,h,this.playerApi,this.isDarkModeEnabled),_.jf(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var E=this.currentCinematicEffect;E.cinematicContainerRenderer!==
h&&(E.cinematicContainerRenderer=h,uzx(E.storyboardManager,h),MFx(E));h=_.xe();_.wC(0,194,!0);h.save();h=_.sH();this.cinematicsVe&&h&&_.Eo(h,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(h=_.sH(),this.cinematicsVe&&h&&_.gZ(h,[this.cinematicsVe],!1,this.loggingClientData),_.p8(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ze.Object.defineProperties(_.qr.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var POM;var B$x;_.OB({_template:function(){if(B$x!==void 0)return B$x;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=
h.content,g=E.insertBefore;POM===void 0&&(POM=document.createElement("template"));var Z=POM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return B$x=h},
is:"tp-yt-iron-pages",behaviors:[_.F3,_.Z6],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var PTJ;_.B3J=function(){if(_.J("kevlar_home_skeleton")&&!PTJ){var h=document.querySelector("#home-page-skeleton");h&&(_.s7("hgcr"),_.f8(h),PTJ=!0)}};
PTJ=!1;_.M5=new _.I2("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Q6i,ERi,gRp,ZoX,MrZ,WkU,pIU,GWp,aox,crX,Iop,Pjx,Ur0,RmG,ioC,oRU,drC;_.uOU=function(h,E,g){E=E===void 0?5:E;if(E!==0){var Z=typeof h==="function"?h():document.querySelector(h);Z?(g==null?0:g.enableSmartFocus)?_.DdZ(Z):Z.focus():setTimeout(function(){_.uOU(h,E-1,g)},500)}};
Q6i=function(h){return String.raw.apply(String,[{raw:h}].concat(_.$E(_.VF.apply(1,arguments).map(function(E){return E instanceof Array?E.join(""):E}))))};
ERi=function(h){var E=_.VF.apply(1,arguments),g=E.length;if(!Array.isArray(h)||!Array.isArray(h.raw)||h.length!==h.raw.length||!_.v$C&&h===h.raw||!(_.v$C&&!_.Hdl||_.rU(h))||g+1!==h.length)throw new TypeError("$");return new hmi(Object.freeze({strings:Object.freeze(h),args:Object.freeze(E)}))};
gRp=function(h){return _.Dbx(_.wPz(h&16777215))<.5};
ZoX=function(h,E,g){var Z=g.minimumRowsOfVideosBetweenSections===void 0?1:g.minimumRowsOfVideosBetweenSections;return h<(g.minimumRowsOfVideosAtStart===void 0?2:g.minimumRowsOfVideosAtStart)||E!==null&&h-E<=Z?!1:!0};
MrZ=function(h,E){var g=0,Z=0;h=_.G(h);for(var M=h.next();!M.done;M=h.next()){var W=M.value;if(W.richItemRenderer)W.richItemRenderer.rowIndex=Z,W.richItemRenderer.colIndex=g++,g===E&&(g=0,Z++);else if(W.richGroupRenderer&&W.richGroupRenderer.numColumns!==void 0)W.richGroupRenderer.rowIndex=Z,W.richGroupRenderer.colIndex=g,g+=W.richGroupRenderer.numColumns,g===E&&(g=0,Z++);else if(W.richSectionRenderer){var z=M=void 0;if(W=_.e((M=W)==null?void 0:(z=M.richSectionRenderer)==null?void 0:z.content,_.brH))W.rowIndex=
Z++}}};
WkU=function(h,E){var g=E.contentElement;E=E.rendererToTagNameMap;if(g&&E&&E.size!==0){for(var Z=new Map,M=_.G(g.children),W=M.next();!W.done;W=M.next()){W=W.value;var z=W.tagName.toLowerCase(),c=Z.get(z);c||(c=[],Z.set(z,c));c.push(W)}if(Z.size!==0)for(M=Math.min(h.length,g.children.length),W=new Map,z=0;z<M;z++){c=Object.keys(h[z])[0];c=E.get(c);if(!c)break;var I=W.get(c);I===void 0&&(I=0,W.set(c,I));var B=Z.get(c);if(!B||I>=B.length)break;W.set(c,I+1);c=B[I];I=g.children[z];I!==c&&(_.iF=!0,_.o9.set(c,
!0),g.insertBefore(c,I),_.o9.delete(c),_.iF=!1)}}};
pIU=function(h,E,g,Z,M,W,z){Z=Z===void 0?{}:Z;if(!h||!h.length)return{orderedContent:[]};h=h.slice();var c=[],I=[];M=null;for(var B=0,U=function(u){I.sort(function(A,E4){return E4.skippedOnRow-A.skippedOnRow});
for(var k,y=(k=I.shift())==null?void 0:k.content;y;)!y.richSectionRenderer&&u||c.push(y),k=void 0,y=(k=I.shift())==null?void 0:k.content},L=void 0,d=void 0,C=new Set;h.length>0||I.length>0;){for(var q=[],w=E;w>0;){var r=void 0,v=void 0,H=(v=I[0]&&I[0].skippedOnRow<B?(r=I.shift())==null?void 0:r.content:void 0)!=null?v:h.shift();
if(!H)break;if(H.richItemRenderer)r=H.richItemRenderer.targetId,v=void 0,r&&((v=z)==null?0:v.has(r))&&(v=z.get(r),!L||v&&v.timestamp>L.timestamp)&&(L=v,d&&C.add(d),d=r),q.push(H),w--;else if(H.richGroupRenderer&&H.richGroupRenderer.numColumns!==void 0)H.richGroupRenderer.numColumns<=w?(q.push(H),w-=H.richGroupRenderer.numColumns):w===E&&H.richGroupRenderer.numColumns>E?(q.push({richGroupRenderer:Object.assign({},H.richGroupRenderer,{numColumns:E})}),w=0):I.push({content:H,skippedOnRow:B});else if(H.richSectionRenderer)if(ZoX(B,
M,Z)&&w===E){c.push(H);M=B;B++;continue}else I.push({content:H,skippedOnRow:B});else if(H.continuationItemRenderer){U(!0);c.push(H);w=0;break}if(w===0)c.push.apply(c,_.$E(q));else if(!g&&h.length===0){U(!1);c.push.apply(c,_.$E(q));w=0;break}}B++;L&&(c.push(L.content),B++);d=L=void 0}MrZ(c,E);W&&WkU(c,W);return{orderedContent:c,pinnedContentNotShownTargetIds:C}};
GWp=function(){return _.VF.apply(0,arguments).flat().filter(function(h){return h}).join(";")};
aox=function(){return ERi(zmI,GWp.apply(null,_.$E(_.VF.apply(0,arguments))))};
crX=function(h){switch(h){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
Iop=function(h,E){if(E){var g=_.Gv().getState().entities.flowStateEntity,Z=ioC(h),M=[E];Z&&Z!==E&&M.push(Z);var W=!0,z;if(g&&h.flowStateEntityKey&&((z=g[h.flowStateEntityKey])==null?void 0:z.primaryButtonDisabled)!==void 0){var c;W=!((c=g[h.flowStateEntityKey])==null||!c.primaryButtonDisabled)}oRU(h,Z!=null?Z:E,M,W)}};
Pjx=function(h){return _.kT(_.Gv(),function(E){return E.entities.flowStateEntity},function(E,g){if(h.flowStateEntityKey){var Z,M=E==null?void 0:(Z=E[h.flowStateEntityKey])==null?void 0:Z.currentStepId,W;
g=g==null?void 0:(W=g[h.flowStateEntityKey])==null?void 0:W.currentStepId;W=_.Gv().getState().talkToRecs;if(M&&M!==g){var z;E=(E==null?void 0:(z=E[h.flowStateEntityKey])==null?void 0:z.stepIdStack)||Object.keys(W.stepStates);z=!RmG(W==null?void 0:W.stepStates[M]);oRU(h,M,E,z)}}})};
Ur0=function(h){return _.kT(_.Gv(),BJU,function(E){var g=ioC(h);if(g){var Z=Object.keys(E.stepStates);E=!RmG(E==null?void 0:E.stepStates[g]);oRU(h,g,Z,E)}})};
RmG=function(h){var E=Object.keys((h==null?void 0:h.selectionStates)||{}).reduce(function(W,z){return W||(h==null?void 0:h.selectionStates[z].isSelected)},!1),g,Z,M=!!(h==null?0:(g=h.userQuery)==null?0:(Z=g.userQuery)==null?0:Z.trim());
return E||M};
ioC=function(h){if(h.flowStateEntityKey){var E,g,Z=(E=_.Gv().getState().entities.flowStateEntity)==null?void 0:(g=E[h.flowStateEntityKey])==null?void 0:g.currentStepId;if(Z)return Z}};
oRU=function(h,E,g,Z){_.Gv().dispatch(_.xx("flowStateEntity",h.flowStateEntityKey,{currentStepId:E,stepIdStack:g,key:h.flowStateEntityKey,primaryButtonDisabled:Z}))};
_.LkG=function(h,E){return _.Jj(h.entities,"youchatPendingResponseEntity",E)};
_.jvC=function(h){return function(E){_.Gl(_.xx("youchatPendingResponseEntity",h,{entityKey:h,isPendingResponse:E}))}};
drC=function(h){h==null||h.addEventListener("DOMLoaded",function(){h.goToAndPlay(h.totalFrames-48,!0)})};
_.WJ=function(h){this.__isSoyCss=!0;this.css=Q6i.apply(null,[h.strings].concat(_.$E(h.args)))};
_.WJ.prototype.toString=function(){return this.css};
var hmi=function(){_.WJ.apply(this,arguments)};
_.f(hmi,_.WJ);var zmI=_.uz(["",""]);var CjU;var Jr0;_.OB({_template:function(){if(Jr0!==void 0)return Jr0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
var E=h.content,g=E.insertBefore;CjU===void 0&&(CjU=document.createElement("template"));var Z=CjU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return Jr0=h},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var emi=new _.I2("flowRootRenderer");var qeZ=new _.I2("chipsShelfViewModel");var foC=new _.I2("responsiveContainerConfiguration");_.NJC=new _.I2("engagementPanelSectionListRenderer");var trG=function(){this.horizontal=!1},SeR=function(h,E){h.horizontal=E};
trG.prototype.position=function(h,E,g,Z){Z=Z===void 0?1:Z;h=this.delta(h)*Z+E;Z=Math.max(E,g);return h>=Math.min(E,g)&&h<=Z?h:g};
trG.prototype.axis=function(h){h=this.direction(h);return h==="up"||h==="down"?"Y":"X"};var $1=function(h,E,g){E=E===void 0?_.uc():E;this.target=h;this.manager=E;this.touchAction=g;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
$1.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(_.$E(this.events)));for(var h=_.G(this.events),E=h.next();!E.done;E=h.next())this.listen(E.value)}};
$1.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.$E(this.events)));for(var h=_.G(this.events),E=h.next();!E.done;E=h.next())this.unlisten(E.value)}};
$1.prototype.listen=function(h){this.eventMap[h]&&this.target.addEventListener(h,this.eventMap[h])};
$1.prototype.unlisten=function(h){this.eventMap[h]&&this.target.removeEventListener(h,this.eventMap[h])};var Kx=function(){trG.apply(this,arguments)};
_.f(Kx,trG);Kx.prototype.direction=function(h){var E=h.detail;h=E.deltaY;E=E.deltaX;return h&&!this.horizontal?h>0?"down":"up":E&&this.horizontal?E>0?"right":"left":"none"};
Kx.prototype.distance=function(h){return Math.abs(this.delta(h))};
Kx.prototype.delta=function(h){var E=this.direction(h),g=h.detail;h=g.deltaX;g=g.deltaY;return E==="up"||E==="down"?g||0:h||0};
Kx.prototype.velocity=function(h){var E=this.direction(h),g=h.detail;h=g.velocityX;g=g.velocityY;return Math.abs(E==="up"||E==="down"?g||0:h||0)};_.Om=function(h,E,g,Z,M,W){M=M===void 0?new Kx:M;W=W===void 0?_.uc():W;$1.call(this,E,W,Z);var z=this;this.element=h;this.target=E;this.config=g;this.input=M;this.manager=W;this.events=["panstart","panmove","panend"];this.onPanStart=function(){z.config.draggingClass&&z.element.classList.add(z.config.draggingClass);z.config.startAction&&z.config.startAction()};
this.onPanMove=function(c){var I=xrU(z,c);if(I){z.move(c,I);I.fade&&z.fade(c,I);var B=z.input.direction(c);I.moveAction&&I.moveAction(wIR(z,c,I),B)}};
this.onPanEnd=function(c){var I,B,U,L,d,C;return _.a(function(q){if(q.nextAddress==1){z.animationRequestId&&cancelAnimationFrame(z.animationRequestId);z.animationRequestId=void 0;I=xrU(z,c);if(!I)return q.return();B=I;U=B.triggerAction;L=B.fade;d=B.disableFinish;C=B.translateBack;var w=z.input.velocity(c),r=z.input.distance(c),v=z.threshold(I);return w>.3&&r>10||r>v?d?q.jumpTo(6):L?q.yield(Drc(z,c),6):q.yield(loG(z,c,I),6):C?q.yield(z.translateBack(c),3):q.jumpTo(3)}q.nextAddress!=3&&U&&U();z.config.draggingClass&&
z.element.classList.remove(z.config.draggingClass);z.reset();_.SK(q)})};
h=Object.keys(g.triggers);this.directions=new Set(h);SeR(this.input,this.directions.has("right")||this.directions.has("left"))};
_.f(_.Om,$1);_.Om.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var xrU=function(h,E){E=h.input.direction(E);return h.config.triggers[E]};
_.Om.prototype.move=function(h,E){var g=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var Z=g.input.axis(h),M=g.input.position(h,g.config.startPosition,E.endPosition,E.moveRatio||1);g.element.style.transform="translate"+Z+"("+M+"px)";g.animationRequestId=void 0}))};
var wIR=function(h,E,g){var Z=g.moveRatio||1;g=Math.abs(h.config.startPosition-g.endPosition);return Math.min(h.input.distance(E)*Z,g)/g};
_.Om.prototype.fade=function(h,E){var g=E.endOpacity;h=wIR(this,h,E);h>0&&(this.element.style.opacity=""+(((g||0)-1)*h+1))};
_.Om.prototype.threshold=function(h){return h.threshold?h.threshold:Math.abs(h.endPosition-this.config.startPosition)/3};
var loG=function(h,E,g){var Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1)return Z=h.input.delta(E)+h.config.startPosition,M=h.input.axis(E),W=g,z=W.endPosition,c=W.transitionEndPosition,B=(I=c)!=null?I:z,U.yield(h.element.animate([{transform:"translate"+M+"("+Z+"px)"},{transform:"translate"+M+"("+B+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);h.element.style.transform="translate"+M+"("+B+"px)";_.SK(U)})};
_.Om.prototype.translateBack=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1){if(!E.element.style.transform)return M.return();g=E.input.axis(h);Z=E.config.startPosition;return M.yield(E.element.animate([{transform:E.element.style.transform},{transform:"translate"+g+"("+Z+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}E.element.style.transform="translate"+g+"("+Z+"px)";_.SK(M)})};
var Drc=function(h,E){var g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return g=h.input.delta(E)+h.config.startPosition,Z=h.input.axis(E),M=g+70,W=h.element.style.opacity===""?1:h.element.style.opacity,z.yield(h.element.animate([{transform:"translate"+Z+"("+g+"px)",opacity:W},{transform:"translate"+Z+"("+M+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);h.element.style.transform="translate"+Z+"("+M+"px)";h.element.style.opacity="0";_.SK(z)})};var nx=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.scrollRate=3;h.autoScrollAnimationStart=0;h.autoScrollPaused=!1;h.autoScrollRafId=0;return h};
_.f(nx,_.wD);_.p=nx.prototype;_.p.created=function(){var h=this;this.boundAutoScrollHandler=function(E){h.autoScroll(E)}};
_.p.detached=function(){this.hostElement.removeEventListener("mouseout",_.qm(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.qm(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.qm(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.p.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.qm(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.qm(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.qm(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.qm(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.qm(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.qm(this,this.endAutoScroll)),this.endAutoScroll())};
_.p.autoScroll=function(h){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=h);var E;if(E=!this.autoScrollPaused&&this.scrollTarget)E=this.scrollTarget,E=E.scrollHeight-E.scrollTop!==E.clientHeight;E&&(E=1E3/this.scrollRate,h-=this.autoScrollAnimationStart,h>E&&(this.scrollTarget.scrollTop+=Math.ceil(h/E),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.p.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.p.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
nx.prototype.autoScrollEnabledChanged=nx.prototype.autoScrollEnabledChanged;_.Y([_.x(),_.V("design:type",Object)],nx.prototype,"scrollRate",void 0);_.Y([_.x(),_.V("design:type",Object)],nx.prototype,"scrollTarget",void 0);_.Y([_.x(),_.V("design:type",Boolean)],nx.prototype,"autoScrollEnabled",void 0);_.Y([_.Nm("autoScrollEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nx.prototype,"autoScrollEnabledChanged",null);_.Y([_.DM()],nx);_.rrc=[nx.prototype];var mrG;var Xb=function(){var h=_.D.apply(this,arguments)||this;h.buttonUpdate=_.J("web_button_rework");h.dismissButtonOverrides=_.J("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;h.forceDarkTheme=!1;h.forceLightTheme=!1;h.dynamicTextHeight=94;h.hasOverflowButton=!1;h.isInfeedModernization=!1;return h};
_.f(Xb,_.D);_.p=Xb.prototype;_.p.computeUrlImg=function(h){if(h)return _.P$(h.thumbnails)};
_.p.getLogoHeight=function(h){return this.logoWithPadding(h)?"31":"24"};
_.p.getLogoClassName=function(h){return this.logoWithPadding(h)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.p.logoWithPadding=function(h){var E,g;return(h=(E=h.thumbnails)==null?void 0:(g=E[0])==null?void 0:g.height)&&h%31===0?!0:!1};
_.p.sendImpressionEndpoints=function(h){h.impressionEndpoints&&_.LZ(this.hostElement,h.impressionEndpoints)};
_.p.observeBasicPalette=function(){var h,E,g=(h=this.data)==null?void 0:(E=h.colorData)==null?void 0:E.basicColorPaletteData;g?_.v$(this.hostElement,g):_.v$(this.hostElement,{})};
_.p.observeDataChanged=function(){var h;this.dynamicTextHeight=((h=this.data)==null?0:h.supplementalText)?74:94;var E;this.hasSupplementalText=!((E=this.data)==null||!E.supplementalText);if(_.J("web_button_rework")){var g,Z,M,W;h=(g=this.data)==null?void 0:(Z=g.actionButton)==null?void 0:(M=Z.buttonRenderer)==null?void 0:(W=M.colorData)==null?void 0:W.basicColorPaletteData;var z,c,I;if(!((z=this.data)==null?0:(c=z.actionButton)==null?0:(I=c.buttonRenderer)==null?0:I.style)&&h){this.computeIsInfeedModernization(this.data)||
(h.borderColor=h.foregroundTitleColor);var B,U;this.set("data.actionButton.buttonRenderer",_.Kt.unsafeClone((B=this.data)==null?void 0:(U=B.actionButton)==null?void 0:U.buttonRenderer))}}};
_.p.observeDataForCounterfactual=function(){if(_.J("kevlar_banner_cf_extra_logging")){var h;((h=this.data)==null?0:h.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.p.computeSupplementalStyle=function(){var h;if((h=this.data)!=null&&h.supplementalText){var E,g,Z;if((E=this.data)==null?0:(g=E.colorData)==null?0:(Z=g.basicColorPaletteData)==null?0:Z.foregroundActivatedColor)return h=_.bU(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+h+"; --yt-endpoint-hover-color:"+h+"; --yt-endpoint-visited-color:"+h+"; --yt-formatted-string-bold-font-weight:700;"}};
_.p.computeForcedDarkTheme=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.actionButton)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.style,M,W,z;h=gRp(((M=this.data)==null?void 0:(W=M.colorData)==null?void 0:(z=W.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return Z&&h};
_.p.computeForcedLightTheme=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.actionButton)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.style,M,W,z;h=!gRp(((M=this.data)==null?void 0:(W=M.colorData)==null?void 0:(z=W.basicColorPaletteData)==null?void 0:z.backgroundColor)||0);return Z&&h};
_.p.computeHasOverflowButton=function(h){return!!h.overflowButton};
_.p.computeHasTitle=function(h){return!!h.title};
_.p.computeTitleMaxFontSize=function(h){return this.computeHasOverflowButton(h)?28:64};
_.p.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.p.computeIsInfeedModernization=function(){var h,E,g,Z,M=(h=this.data)==null?void 0:(E=h.actionButton)==null?void 0:(g=E.buttonRenderer)==null?void 0:(Z=g.colorData)==null?void 0:Z.basicColorPaletteData;return(M==null?void 0:M.backgroundColor)===452984831||(M==null?void 0:M.backgroundColor)===218103808};
Xb.prototype.observeDataForCounterfactual=Xb.prototype.observeDataForCounterfactual;Xb.prototype.observeDataChanged=Xb.prototype.observeDataChanged;Xb.prototype.observeBasicPalette=Xb.prototype.observeBasicPalette;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],Xb.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Xb.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Xb.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Xb.prototype,"buttonUpdate",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Xb.prototype,"hasSupplementalText",void 0);_.Y([_.x(),_.V("design:type",Object)],Xb.prototype,"dismissButtonOverrides",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.V("design:type",Boolean)],Xb.prototype,"hasTitle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.V("design:type",Object)],Xb.prototype,"forceDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.V("design:type",Object)],Xb.prototype,"forceLightTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],Xb.prototype,"dynamicTextHeight",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Object)],Xb.prototype,"hasOverflowButton",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.V("design:type",Object)],Xb.prototype,"isInfeedModernization",void 0);_.Y([_.Nm("data.colorData.basicColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xb.prototype,"observeBasicPalette",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xb.prototype,"observeDataChanged",null);_.Y([_.Nm("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Xb.prototype,"observeDataForCounterfactual",null);_.Y([_.K({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Xb);
_.X(Xb,"ytd-banner-promo-renderer",function(){if(mrG!==void 0)return mrG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mrG=h},{mode:1});var vR0;var Hoi;var $rC;var Y1=function(){return _.D.apply(this,arguments)||this};
_.f(Y1,_.D);_.Y([_.x(),_.V("design:type",Object)],Y1.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.Y([_.K({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Y1);
_.X(Y1,"ytd-hashtag-grid-tile-renderer",function(){if($rC!==void 0)return $rC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $rC=h},{mode:1});var sm=function(){return _.D.apply(this,arguments)||this};
_.f(sm,_.D);sm.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
sm.prototype.updateRichGridTrendingHashtagsVisibility=function(){var h,E;if(((h=this.data)==null||!h.isExpanded)&&(E=this.data)!=null&&E.tiles){h=this.data.tiles.length;E=h>this.richGridItemsPerRow?this.richGridItemsPerRow+1:h;var g=Math.ceil(h/E);this.fullyVisibleRows=h%E===1&&g===2?1:Math.min(g,2);this.isShowMoreVisible=this.fullyVisibleRows<g}};
sm.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
sm.prototype.updateRichGridTrendingHashtagsVisibility=sm.prototype.updateRichGridTrendingHashtagsVisibility;_.Y([_.x(),_.V("design:type",Object)],sm.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],sm.prototype,"fullyVisibleRows",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],sm.prototype,"isShowMoreVisible",void 0);_.Y([_.x({selector:_.Y8,value:0}),_.V("design:type",Number)],sm.prototype,"richGridItemsPerRow",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],sm.prototype,"ytdReduxBehavior",void 0);_.Y([_.Nm("data","richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sm.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.Y([_.K({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],sm);
_.X(sm,"ytd-hashtag-grid-shelf-renderer",function(){if(Hoi!==void 0)return Hoi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Hoi=h},{mode:1});var KkC;var OoG;var Vv=function(){var h=_.D.apply(this,arguments)||this;h.visibleVideos=[];h.hiddenVideos=[];h.modern=_.J("web_modern_buttons");h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(Vv,_.D);_.p=Vv.prototype;_.p.attached=function(){var h=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",h);this.onDarkModeToggledAction(h)};
_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.p.dataChanged=function(){var h=this;this.requestElementsPerRow();var E,g;this.currentColorPalette=this.isDarkTheme?(E=this.data)==null?void 0:E.darkColorData:(g=this.data)==null?void 0:g.lightColorData;var Z;if((Z=this.currentColorPalette)==null?0:Z.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.pQ(this,function(){h.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.p.computeIsFirstFeedItem=function(h){return h};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&this.set("isDarkTheme",h);this.data&&(this.currentColorPalette=h?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.p.getCurrentLogo=function(h,E){if(h)return E?h.darkLogoImage:h.lightLogoImage};
_.p.computeTitleStyle=function(h){var E;if((E=this.data)!=null&&E.title&&h&&h.textPrimary!==void 0)return"color:"+_.bU(h.textPrimary)+";"};
_.p.computeSubtitleStyle=function(h){var E;if((E=this.data)!=null&&E.subtitle&&h&&h.textSecondary!==void 0)return"color:"+_.bU(h.textSecondary)+";"};
_.p.computeDismissIconStyle=function(h){if(this.data&&this.data.dismissButton&&h&&h.textPrimary!==void 0)return"--yt-button-color:"+_.bU(h.textPrimary)+";"};
_.p.computeOverflowButtonStyle=function(h){if(this.data&&this.data.overflowButton&&h&&h.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.bU(h.textPrimary)+";--yt-spec-icon-active-other:"+_.bU(h.textPrimary)+";"};
_.p.computeBackgroundStyle=function(h){if(h&&this.data){var E="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var g=_.P$((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);g&&(E+='background-image:url("'+g+'");')}h.backgroundColor!==void 0&&(E+="background-color:"+_.uU(h.backgroundColor)+";");return E}};
_.p.computeButton=function(){var h,E=Object.assign({},_.e((h=this.data)==null?void 0:h.showMoreButton,_.Gh));if(this.modern&&E){E.style="STYLE_MONO_OUTLINE";var g;if(h=(g=this.currentColorPalette)==null?void 0:g.textPrimary)E.colorData={basicColorPaletteData:{foregroundTitleColor:h,borderColor:h}}}return E};
_.p.shouldShowBottomButton=function(h,E){return!(h==null?0:h.header)&&!(h==null||!h.primaryButton)&&E<3};
_.p.checkExpanded=function(h){this.isExpanded=h&&h.content?this.hiddenVideos.length===0:!0};
_.p.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.p.getLogoHeight=function(h){return this.logoWithPadding(h)?"26":"20"};
_.p.getLogoImageId=function(h){return this.logoWithPadding(h)?"logo-image-with-padding":"logo-image"};
_.p.computeHasSectionHeader=function(h){return!!h.header};
_.p.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var h;if((h=this.data.primaryButton)==null?0:h.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 E;((E=this.data.dismissButton)==null?0:E.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var g,Z;((g=this.data)==null?0:(Z=g.primaryButton)==null?0:Z.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.p.setVisibleVideos=function(h){if(this.data&&this.data.content)if(this.data.content.length){var E=this.data.content.length;this.data.header?h?(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.slimItemsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow-1),E))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.p.setHasMovieRenderer=function(){var h;if((h=this.data)!=null&&h.content){var E;this.hasMovieRenderer=!!_.e((E=this.data)==null?void 0:E.content[0],_.hRk)}else this.hasMovieRenderer=!1};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
_.p.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var h=_.G(this.hiddenMediaRenderers),E=h.next();!E.done;E=h.next())E.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(h=_.UB(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&h.focus()}};
_.p.updateTitleSpec=function(){var h;(h=this.data)!=null&&h.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.p.logoWithPadding=function(h){var E,g,Z;return(h=(E=this.getCurrentLogo(h,this.isDarkTheme))==null?void 0:(g=E.thumbnails)==null?void 0:(Z=g[0])==null?void 0:Z.height)&&h%31===0?!0:!1};
_.p.onUpdateElementsPerRowAction=function(h,E,g){h&&this.elementsPerRow!==h&&(this.elementsPerRow=h);g&&this.slimItemsPerRow!==g&&(this.slimItemsPerRow=g)};
Vv.prototype.slimItemsPerRowChanged=Vv.prototype.slimItemsPerRowChanged;Vv.prototype.elementsPerRowChanged=Vv.prototype.elementsPerRowChanged;Vv.prototype.dataChanged=Vv.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],Vv.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Vv.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Vv.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vv.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Vv.prototype,"currentColorPalette",void 0);_.Y([_.x(),_.V("design:type",Array)],Vv.prototype,"visibleVideos",void 0);_.Y([_.x(),_.V("design:type",Array)],Vv.prototype,"hiddenVideos",void 0);
_.Y([_.x(),_.V("design:type",Object)],Vv.prototype,"primaryButton",void 0);_.Y([_.x({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],Vv.prototype,"elementsPerRow",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Vv.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Vv.prototype,"isExpanded",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Vv.prototype,"largeTitle",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Vv.prototype,"hasMovieRenderer",void 0);_.Y([_.x(),_.V("design:type",Number)],Vv.prototype,"slimItemsPerRow",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Vv.prototype,"showLightVideoMetadata",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Vv.prototype,"showDarkVideoMetadata",void 0);_.Y([_.x(),_.V("design:type",Number)],Vv.prototype,"videoMetadataColor",void 0);
_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],Vv.prototype,"miniMode",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],Vv.prototype,"isFirstFeedItem",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.V("design:type",Boolean)],Vv.prototype,"hasSectionHeader",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Vv.prototype,"roundedContainer",void 0);_.Y([_.xA("#visible-video-container ytd-rich-grid-media"),_.V("design:type",Array)],Vv.prototype,"visibleMediaRenderers",void 0);_.Y([_.xA("#hidden-video-container ytd-rich-grid-media"),_.V("design:type",Array)],Vv.prototype,"hiddenMediaRenderers",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Vv.prototype,"modern",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vv.prototype,"dataChanged",null);_.Y([_.Nm("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vv.prototype,"elementsPerRowChanged",null);_.Y([_.Nm("slimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Vv.prototype,"slimItemsPerRowChanged",null);
_.Y([_.K({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Vv);
_.X(Vv,"ytd-brand-video-shelf-renderer",function(){if(OoG!==void 0)return OoG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return OoG=h},{mode:1});var nRU;var k1=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(k1,_.D);_.p=k1.prototype;_.p.attached=function(){var h=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",h);this.onDarkModeToggledAction(h)};
_.p.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.p.dataChanged=function(){this.requestElementsPerRow();var h,E;this.currentColorPalette=this.isDarkTheme?(h=this.data)==null?void 0:h.darkColorData:(E=this.data)==null?void 0:E.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.p.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.p.computeIsFirstFeedItem=function(h){return h};
_.p.onDarkModeToggledAction=function(h){h!==this.isDarkTheme&&this.set("isDarkTheme",h);this.data&&(this.currentColorPalette=h?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(h),this.updateButtonPalette())};
_.p.shouldShowThumbnailInMetadata=function(h){return h<=1};
_.p.computeVideoMetadataColor=function(){if(this.data){var h;if((h=this.currentColorPalette)==null?0:h.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.p.computeTitleStyle=function(h){var E;if((E=this.data)!=null&&E.title&&h&&h.textPrimary!==void 0)return"color:"+_.bU(h.textPrimary)+";"};
_.p.computeSubtitleStyle=function(h){var E;if((E=this.data)!=null&&E.subtitle&&h&&h.textSecondary!==void 0)return"color:"+_.bU(h.textSecondary)+";"};
_.p.computeOverflowButtonStyle=function(h){if(this.data&&this.data.overflowButton&&h.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.bU(h.textPrimary)+";--yt-spec-icon-active-other:"+_.bU(h.textPrimary)+";"};
_.p.computeBackgroundStyle=function(h){if(h&&this.data){var E="";h.backgroundColor!==void 0&&(E+="background-color:"+_.uU(h.backgroundColor)+";");return E}};
_.p.computeHasOverflowButton=function(h){return!!h.overflowButton};
_.p.updateButtonPalette=function(){if(this.data){var h;if((h=this.data.primaryButton)==null?0:h.buttonRenderer){var E;if((E=this.currentColorPalette)==null?0:E.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var g;((g=this.currentColorPalette)==null?0:g.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
_.p.updateTitleSpec=function(){var h;(h=this.data)!=null&&h.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.p.onUpdateElementsPerRowAction=function(h){h&&this.elementsPerRow!==h&&(this.elementsPerRow=h)};
k1.prototype.elementsPerRowChanged=k1.prototype.elementsPerRowChanged;k1.prototype.dataChanged=k1.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],k1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],k1.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],k1.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],k1.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],k1.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],k1.prototype,"currentColorPalette",void 0);_.Y([_.x(),_.V("design:type",Object)],k1.prototype,"primaryButton",void 0);
_.Y([_.x({reflectToAttribute:!0,value:3}),_.V("design:type",Number)],k1.prototype,"elementsPerRow",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],k1.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],k1.prototype,"titleSize",void 0);_.Y([_.x(),_.V("design:type",Number)],k1.prototype,"videoMetadataColor",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],k1.prototype,"miniMode",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.V("design:type",Boolean)],k1.prototype,"isFirstFeedItem",void 0);_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],k1.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.V("design:type",Boolean)],k1.prototype,"hasOverflowButton",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k1.prototype,"dataChanged",null);_.Y([_.Nm("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k1.prototype,"elementsPerRowChanged",null);_.Y([_.K({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],k1);
_.X(k1,"ytd-brand-video-singleton-renderer",function(){if(nRU!==void 0)return nRU;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return nRU=h},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var XIc;var YeC=_.O(function(h){var E=h.data;return _.R(_.pO,{data:function(){return E().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(E().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var g=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":g=88;break a;default:g=88}return g},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return E().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ck"),Vri=_.O(function(h){var E=h.metadataRow;
var g=h.delimiter;return _.R(_.SX,{each:function(){return E().textParts||[]},
keyBy:"INDEX"},function(Z,M){return _.R(_.zt,null,_.R(_.dK,{text:Z,noWrap:!0,userInput:!0}),_.R(svU,{delimiter:g,max:function(){return E().textParts.length},
index:M}))})},"dk"),svU=_.O(function(h){var E=h.delimiter;
var g=h.max;var Z=h.index;return _.R(_.P,{cond:function(){return(E==null?void 0:E())&&g()-1>Z()},
then:function(){return _.R("span",null,E)}})},"ek"),kWR=_.O(function(h){var E=h.data;
h={};return _.R("yt-profile-page-header-information-view-model",{class:_.CO("profilePageHeaderInformationViewModelHost",(h.profilePageHeaderInformationViewModelMobile=!1,h))},_.R(_.P,{cond:function(){return E().onTap},
then:function(){return _.R(_.lk,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.kB(E().onTap)}},_.R(_.Sv,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:YeC}))},
else:function(){return _.R("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.R(_.Sv,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:YeC}))}}),_.R("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.R(_.P,{cond:function(){return E().onTap},
then:function(){return _.R(_.Sv,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(g){var Z=g.data;
return _.R(_.lk,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.kB(Z().onTap)}},_.R(_.dK,{text:function(){return Z().title}}))}})},
else:function(){return _.R(_.Sv,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(g){var Z=g.data;
return _.R(_.dK,{text:function(){return Z().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.R(_.Sv,{data:function(){return E().metadata}},{profilePageHeaderMetadataViewModel:function(g){var Z=g.data;
return _.R(_.P,{cond:function(){return Z().metadataRows},
then:function(M){return _.R("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.R(_.SX,{each:M,keyBy:"INDEX"},function(W,z){return _.R(_.zt,null,_.R(Vri,{metadataRow:W,delimiter:" \u2022 "}),_.R(svU,{delimiter:" \u2022 ",max:function(){return M().length},
index:z}))}))}})}})))},"fk");
kWR.idomCompat=!0;_.I9(kWR,"yt-profile-page-header-information-view-model",{props:{data:_.C6}});var yv=function(){return _.D.apply(this,arguments)||this};
_.f(yv,_.D);yv.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yv.prototype,"data",void 0);_.Y([_.K({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],yv);
_.X(yv,"ytd-effect-pivot-header-view-model",function(){if(XIc!==void 0)return XIc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return XIc=
h},{mode:1});var yrX;var Fb=function(){return _.D.apply(this,arguments)||this};
_.f(Fb,_.D);Fb.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Fb.prototype,"data",void 0);_.Y([_.K({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Fb);
_.X(Fb,"ytd-source-pivot-header-renderer",function(){if(yrX!==void 0)return yrX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return yrX=h},{mode:1});_.FkG=_.O(function(h){var E=h.data;var g=function(){var Z;return _.Oz((Z=E())==null?void 0:Z.rendererContext)};
h={};return _.R("content-list-item-view-model",{el:_.zT(_.n4(function(){return E().rendererContext})),
class:_.CO("ytContentListItemViewModelHost",(h.ytContentListItemViewModelTappable=g,h)),role:function(){return g()?"listitem":void 0},
tabindex:function(){return g()?0:void 0}},_.R("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.R("div",{class:"ytContentListItemViewModelImageContainer"},_.R(_.P,{cond:function(){return E().image},
then:function(Z){return _.R(_.pO,{data:Z,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.R(_.Sv,{data:function(){var Z;
return(Z=E())==null?void 0:Z.avatar}},{avatarViewModel:_.Mq})),_.R("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.R("div",{class:_.CO("ytContentListItemViewModelTitle",function(){a:{switch(E().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var Z="ytContentListItemViewModelProminentTitle";
break a}Z=void 0}return Z})},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:"ytContentListItemViewModelMetadata"},_.R(_.Sv,{data:function(){return E().metadata}},{contentMetadataViewModel:function(Z){return _.R(_.Df,{data:Z.data,
layout:1})}})))),_.R("div",{class:"ytContentListItemViewModelActionButton"},_.R(_.Sv,{data:function(){var Z;
return(Z=E())==null?void 0:Z.actionButton}},{buttonViewModel:_.$l,
toggleButtonViewModel:_.Z7})))},"gk");var Arp=_.O(function(h){var E=function(){return h.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.R("yt-linear-layout-view-model",{class:_.CO("ytLinearLayoutViewModelHost",function(){a:switch(h.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var g="ytLinearLayoutViewModelHorizontal";break a;default:g="ytLinearLayoutViewModelVertical"}return g})},_.R(_.Sv,{data:function(){return h.data().items}},{lockupViewModel:function(g){return _.R("div",{style:_.fO({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.R(_.H0,{data:g.data,
containerType:function(){return E()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return E()?void 0:"33%"}}))}}))},"hk");var TJp=_.O(function(h){var E=function(){return h.data().background},g=function(){return h.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},Z=function(){return h.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.R("yt-card-view-model",{el:_.zT(_.n4(function(){return h.data().rendererContext})),
class:_.CO("ytCardViewModelHost",h.className)},_.R(_.lB,{contentId:function(){return h.data().contentId}},function(){return _.R("div",{class:_.CO("ytCardViewModelCardViewModelInner",function(){return crX(h.data().cardStyle)},function(){var M;
a:{switch((M=h.data().cardState)==null?void 0:M.selectionState){case "CARD_SELECTION_STATE_SELECTED":M="ytCardViewModelSelected";break a}M=void 0}return M})},_.R(_.Sv,{data:E},{cinematicContainerViewModel:function(M){return _.R(_.qPA,{data:M.data})}}),_.R("div",{class:"ytCardViewModelContentWrapper"},_.R(_.P,{cond:function(){return!g()},
then:function(){var M={};return _.R("div",{class:"ytCardViewModelTopContentContainer"},_.R("div",{class:"ytCardViewModelTopContent"},_.R(_.Sv,{data:function(){return h.data().topContent}},{contentListItemViewModel:function(W){return _.R(_.FkG,{data:W.data})}})),_.R("div",{class:_.CO("ytCardViewModelInlineTrailingAction",(M.ytCardViewModelInlineCenterTrailingAction=Z,M))},_.R(_.Sv,{data:function(){return h.data().trailingAction}},{buttonViewModel:function(W){return _.R(_.$l,{data:W.data})}})))}}),
_.R("div",{class:"ytCardViewModelBodyContent"},_.R(_.Sv,{data:function(){return h.data().bodyContent}},{contentListItemViewModel:_.FkG,
listItemViewModel:_.zo,linearLayoutViewModel:Arp,descriptionPreviewViewModel:_.$C}))),_.R(_.P,{cond:function(){return g()},
then:function(){return _.R("div",{class:"ytCardViewModelOverlayTrailingAction"},_.R(_.Sv,{data:function(){return h.data().trailingAction}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data})}}))}}))}))},"ik");_.I9(TJp,"yt-card-view-model",{props:{data:_.C6,className:_.C6}});var BJU=_.hkU.talkToRecsStateSelector;_.I9(_.O(function(h){var E=function(){return _.e(h.data().flowRoot,emi)};
_.vJ(function(){var g=E(),Z=function(){},M=function(){};
if(g){var W,z,c,I=((c=_.e((W=E())==null?void 0:(z=W.steps)==null?void 0:z[0],_.QIi))==null?void 0:c.stepId)||"";Iop(g,I);Z=Pjx(g);M=Ur0(g)}_.r9(function(){var B=E();B&&_.Gv().dispatch(_.xx("flowStateEntity",B.flowStateEntityKey));Z();Z=function(){};
M();M=function(){}})});
return _.R("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.R(_.lB,{contentId:function(){return h.data().contentId}},function(){return _.R("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.R(_.P,{cond:E,
then:function(g){return _.R(_.GeU,{data:g})}}))}))},"jk"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.C6}});_.I9(_.O(function(){return _.R("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.R("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.R(_.zhC,null)),_.R(_.fxC,{data:{rows:1},isExploreHub:!0}))},"kk"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.I9(_.O(function(h){var E=h.data;var g=h.standardUnitMinWidth;h=_.G((0,_.xLD)(E));var Z=h.next().value,M=h.next().value,W=function(){var c,I=(c=Z())==null?void 0:c.contents;return I==null||I.length===0},z=function(){M(Object.assign({},Z(),{contents:[]}))};
return _.R("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.zT(_.c6({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var c=_.e(E().chipsShelf,qeZ);if(c!=null&&c!=null&&c.autoselectChipOnVisible){var I,B,U=_.e(c==null?void 0:(I=c.contents)==null?void 0:I[(B=c.autoselectedChipIndex)!=null?B:0],_.ox);U&&U.tapCommand&&_.Tl(U.tapCommand)}}}))},_.R(_.lB,{contentId:function(){return E().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.R("div",null,_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.R(_.Sv,{data:function(){return E().header}},{sectionHeaderViewModel:function(c){return _.R(_.KY,{data:c.data,
disableHorizontalPadding:!0})}})),_.R("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.R(_.Sv,{data:function(){return E().chipsShelf}},{chipsShelfViewModel:function(c){return _.R(_.pN,{data:c.data,
callback:z,selectionBehavior:1})}})),_.R("div",null,_.R(_.P,{cond:W,
then:function(){return _.R("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.R(_.fxC,{data:{rows:1},isExploreHub:!0}))}}),_.R(_.Sv,{data:function(){var c;
return(c=Z())==null?void 0:c.contents}},{richShelfRenderer:function(c){return _.R(_.mkC,{data:c.data,
isInnerShelf:!0,standardUnitMinWidth:g})}})))}))},"lk"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.C6,
standardUnitMinWidth:_.C6}});var A8=function(){return _.D.apply(this,arguments)||this};
_.f(A8,_.D);
A8.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}}};
A8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.Y([_.t(_.aF),_.V("design:type",Object)],A8.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],A8.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],A8.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Number)],A8.prototype,"standardUnitMinWidth",void 0);_.Y([_.K({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],A8);
_.X(A8,"ytd-rich-section-renderer",function(){if(KkC!==void 0)return KkC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return KkC=h},{mode:_.UQ("kevlar_poly_si_batch_j029")?
1:2});_.I9(_.e80,"yt-profile-identity-info-view-model",{props:{data:_.C6,hideDivider:_.C6,isChannelInfoCard:_.C6}});_.I9(_.lBB,"yt-page-header-view-model",{props:{data:_.C6,noPadding:_.C6,enableBanner:_.C6,cinematicContainerTopbarOffset:_.C6,allowCinematicContainerOverflow:_.C6,displayAsSidebar:_.C6,displayAsPanel:_.C6,alwaysUseMediumTextDescription:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=function(){var M;return(M=E().numColumns)!=null?M:2},Z=function(){return g()>1?3:2};
h={};return _.R("ytd-rich-grid-group",{class:_.CO("ytdRichGridGroupHost",(h.ytdRichGridGroupHostFirstColumn=function(){return E().colIndex===0},h)),
style:_.fO({"--ytd-rich-grid-group-num-columns":g,"--ytd-rich-grid-items-per-group":Z})},_.R("div",{class:"ytdRichGridGroupContents"},_.R(_.Sv,{data:function(){var M;return(M=E().contents)==null?void 0:M.slice(0,Z())}},{richItemRenderer:function(M){return _.R(_.lnD,{data:M.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"mk"),"ytd-rich-grid-group",{props:{data:_.C6}});var Tk=function(){var h=_.D.apply(this,arguments)||this;h.resizeOnObserverInit=!1;h.isInlinePreviewDisabled=_.J("web_disable_inline_preview");h.disableStickyFilterBar=!1;h.transparentBackgroundChipsBar=!1;h.hideChipsBar=!1;h.isWatchDefaultLayout=!0;h.continuationShowButton=!1;h.rowReducedHorizontalMargin=!1;h.useCompactList=!1;h.manualDownloadsPresent=!1;h.smartDownloadsPresent=!1;h.isOnline=!1;h.shouldRenderDownloadsBanner=!1;h.shouldRenderDownloadsBannerUpsell=!1;h.hasOptedIntoSmartDownloads=!1;
h.elementsPerRow=4;h.typographyBump=!1;h.slimItemsPerRow=1;h.pageLoadingFromNavigation=!1;h.resizeObserver=null;h.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"};h.rendererToTagNameMap=new Map(Object.entries(h.contentMapping()).map(function(E){var g=
_.G(E);E=g.next().value;g=g.next().value;return[E,g.component]}));
h.insertedContent=new Map;return h};
_.f(Tk,_.D);_.p=Tk.prototype;_.p.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var h=_.G(_.UB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=h.next();!E.done;E=h.next())E.value.useCompactList=this.useCompactList};
_.p.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var h=_.G(_.UB(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=h.next();!E.done;E=h.next())E=E.value,E.sizing=this.sizing,E.typographyBump=this.typographyBump};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.p.attached=function(){document.addEventListener("yt-page-type-changed",_.qm(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21925_throttledOnResize=new _.TD(this.resizeObserved,_.cx("rich_grid_resize_delay_ms",50),this)};
_.p.detached=function(){var h;(h=this.resizeObserver)==null||h.disconnect();document.removeEventListener("yt-page-type-changed",_.qm(this,this.onPageChange))};
_.p.insertRichSection=function(h){var E=h.richItemTargetId;h=h.richSectionRendererToInsert;E&&h&&(this.insertedContent.set(E,{content:h,timestamp:Date.now()}),this.reflowContent())};
_.p.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.p.computeIsInlinePreviewEnabled=function(h,E,g){return _.J("web_disable_inline_preview")?!1:!g&&_.KgJ({miniplayerIsActive:h,miniplayerPlaybackState:E})};
_.p.computeSizing=function(){var h=_.WK4(this.data);if(h||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return h?this.useCompactList?"COMPACT":h:this.miniMode?"COMPACT":"STANDARD"};
_.p.updateItemMinAndMaxWidth=function(){var h=_.cx("rich_grid_max_item_width",500);h>0&&_.Ja(this.hostElement,{"--ytd-rich-grid-item-max-width":h+"px"});var E;h=this.getRichItemMinWidth((E=this.hostElement)==null?void 0:E.clientWidth);h>0&&_.Ja(this.hostElement,{"--ytd-rich-grid-item-min-width":h+"px"})};
_.p.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.p.resizeObserved=function(){_.U7(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.p.onPageChange=function(){var h=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.U7(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.KP.addJob(function(){h.pageLoadingFromNavigation=!1;h.setMasthead();h.maybeSetBigYoodle();h.forceRefreshAndLog();h.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.p.dataChanged=function(){var h=this;_.U7(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.pQ(this,function(){h.updateRichItemGridPositions();h.contentsElement&&_.Ja(h.hostElement,{"--ytd-rich-grid-content-offset-top":h.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.p.initResizeObserver=function(){var h=this;if(window.ResizeObserver){var E;(E=this.resizeObserver)==null||E.disconnect();var g=!1;this.resizeObserver=new ResizeObserver(function(){if(g){var Z;(Z=h.resizeObserver)==null||Z.disconnect();var M;(M=h.JSC$21925_throttledOnResize)==null||M.fire();requestAnimationFrame(function(){var z;(z=h.JSC$21925_throttledOnResize)==null||z.fire();h.initResizeObserver()})}else if(g=!0,h.resizeOnObserverInit){var W;
(W=h.JSC$21925_throttledOnResize)==null||W.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.p.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.U7(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.updateElementsPerRow=function(){_.U7(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.RY({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.RY({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.p.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.p.onRichShelfRendererCollapse=function(h){if(this.shownItems){var E=h.detail;h=this.shownItems.findIndex(function(Z){var M,W;return((W=_.e(Z==null?void 0:(M=Z.richSectionRenderer)==null?void 0:M.content,_.brH))==null?void 0:W.trackingParams)===E});
var g=h+1;h<0||g>=this.contentsElement.children.length||!this.shownItems[g].richItemRenderer||this.contentsElement.children[g].scrollIntoView({behavior:"smooth",block:"start"})}};
_.p.onSoftReloadPage=function(){this.scrollUpToTop()};
_.p.handleRerenderDownloadsData=function(){_.J("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.p.handlePlaylistRemoveVideosAction=function(h){var E;if(((E=_.e(h,_.RpF))==null?0:E.setVideoIds)&&this.data&&this.data.contents){h=_.e(h,_.RpF).setVideoIds;for(E=this.data.contents.length-1;E>=0;){var g=_.e(this.data.contents[E],_.kc);(g=g&&_.e(g.content,_.pC))&&g.setVideoId&&h.includes(g.setVideoId)&&this.splice("data.contents",E,1);E--}this.updateIndices()}};
_.p.updateIndices=function(){if(this.data&&this.data.contents)for(var h=0;h<this.data.contents.length;h++)this.set("data.contents."+h+".richItemRenderer.index",_.MR(String(h+1)))};
_.p.hasTopRowInlinePlayableVideoWithEndorsement=function(h){var E;return!((E=h.slice(0,this.getItemsPerRow()))==null||!E.some(function(g){var Z;g=_.e(g==null?void 0:(Z=g.richItemRenderer)==null?void 0:Z.content,_.ax);var M;return(g==null?void 0:g.inlinePlaybackEndpoint)&&(g==null?void 0:(M=g.thumbnailOverlays)==null?void 0:M.some(function(W){return W.thumbnailOverlayEndorsementRenderer}))}))};
_.p.refreshGridLayoutNew=function(h,E,g,Z){var M=Z.postsPerRow;var W=Z.slimItemsPerRow;var z=Z.gameCardsPerRow;Z=Z.miniGameCardsPerRow;var c;if((c=this.data)==null||!c.contents||!this.containerWidth)return!1;var I;if((I=this.data.responsiveContainerConfiguration)==null?0:I.responsiveSize){var B=_.v5N(this.data.responsiveContainerConfiguration,this.containerWidth),U;c=_.kx(Object.assign({},B,{standardUnitMinWidth:(U=this.data)==null?void 0:U.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&B.isCompactList)}else c=_.kx({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(B=this.data)==null?void 0:B.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=c.typographyBump;U=!1;if(h||this.elementsPerRow!==c.numItems||this.postsPerRow!==M||this.slimItemsPerRow!==W||this.gameCardsPerRow!==
z||this.miniGameCardsPerRow!==Z||this.gutter!==c.gutter)U=this.elementsPerRow!==c.numItems,this.elementsPerRow=c.numItems,this.postsPerRow=M,this.slimItemsPerRow=W,this.gameCardsPerRow=z,this.miniGameCardsPerRow=Z,this.gutter=c.gutter,this.itemWidth=c.itemWidth,this.reflowContent(E),_.Ja(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":c.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(g);this.ytdReduxBehavior.dispatch(_.RY({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:c.maxContainerWidth}));return U};
_.p.refreshGridLayout=function(h,E){var g,Z=(g=this.hostElement)==null?void 0:g.clientWidth;this.containerWidth=this.adjustRichGridWidth(Z,!0);var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return h&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(h=!0,this.pendingForceReflow=!1);g=this.getRichItemMinWidth(Z);var W=this.isShortsPanel?146:194,z=this.getMiniGameCardMinWidth(),c=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;Z=g=this.calcElementsPerRow(g,
c);(M=g<=3&&this.miniModeAllowed())&&(g=this.calcElementsPerRow(240,4));var I=this.calcMaxSlimElementsPerRow(g,c,this.isDefaultGrid);c=this.calcElementsPerRow(W,I);var B=this.calcElementsPerRow(this.isCompactGrid?W:154,I);W=this.calcElementsPerRow(this.isCompactGrid?W:z,I);z=!1;if(this.sizing)return this.refreshGridLayoutNew(h,E,M,{postsPerRow:Z,slimItemsPerRow:c,gameCardsPerRow:B,miniGameCardsPerRow:W});if(h||this.elementsPerRow!==g||this.postsPerRow!==Z||this.slimItemsPerRow!==c||this.gameCardsPerRow!==
B||this.miniGameCardsPerRow!==W)z=this.elementsPerRow!==g,this.elementsPerRow=g,this.postsPerRow=Z,this.slimItemsPerRow=c,this.gameCardsPerRow=B,this.miniGameCardsPerRow=W,this.reflowContent(E),this.updateElementsPerRow(),_.Ja(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)&&_.Ja(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(M);_.U7(this.hostElement,"yt-rich-grid-layout-refreshed");return z};
_.p.getRichItemMinWidth=function(h){var E=_.cx("rich_grid_min_item_width",310);if(!_.J("kevlar_disable_min_width_override")){var g,Z;E=(Z=(g=this.data)==null?void 0:g.minItemWidth)!=null?Z:E}return E+_.uqd(h)};
_.p.calcMaxSlimElementsPerRow=function(h,E,g){return(g===void 0?0:g)?h===1?2:h%2===0?h/2*3:h+2:E*2};
_.p.adjustRichGridWidth=function(h,E){var g=_.J("disable_rich_grid_guide_compensation");if(!this.isWatch&&!g){g=_.GF().resolve(_.pl(_.RF));var Z=g==null?void 0:g.guideElement;if(!(!g||g.getData()||Z!=null&&Z.opened||g.getMiniGuideVisible()))if(g.canFitPersistentGuide(h)&&g.getGuideExpandsAutomatically()){var M,W,z=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(W=M.getPropertyValue("--app-drawer-width"))==null?void 0:W.replace("px",""));h-=z||0}else if(g.canFitMiniGuide(h)){var c;
M=Number((z=window.getComputedStyle(this.hostElement))==null?void 0:(c=z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:c.replace("px",""));h-=M||0}}h>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(h-=E?32:48));return h};
_.p.calcElementsPerRow=function(h,E){var g=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),Z=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((g+Z)/(h+Z))||1,E)};
_.p.reflowContent=function(h){var E=this;if(!this.isReflowing){this.isReflowing=!0;var g,Z,M=!!((g=this.data)==null?0:(Z=g.contents)==null?0:Z.some(function(c){return _.e(c,_.Ec)}));
g=this.getItemsPerRow();var W;Z=(W=this.data)==null?void 0:W.reflowOptions;h&&(_.s7("rgr_s"),_.pQ(this,function(){_.s7("rgr_nrf")}));
h={};(W=_.UB(this.hostElement).querySelector("#contents"))&&(h={contentElement:W,rendererToTagNameMap:this.rendererToTagNameMap});W=(W=this.data.contents)?W.slice():[];M=pIU(W,g,M,Z,this.getRichGridStyle(),h,this.insertedContent);var z=M.orderedContent;if(M=M.pinnedContentNotShownTargetIds)for(M=_.G(M),g=M.next();!g.done;g=M.next())this.insertedContent.delete(g.value);M=function(){E.shownItems=z;E.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(z),_.pQ(this,M)):M()}};
_.p.getFirstRowItems=function(h){for(var E=[],g=0;g<h.length;g++){var Z=void 0,M=void 0,W=void 0,z=void 0,c=void 0,I=void 0;if(((Z=h[g])==null?void 0:(M=Z.richItemRenderer)==null?void 0:M.rowIndex)===0||((W=h[g])==null?void 0:(z=W.richGroupRenderer)==null?void 0:z.rowIndex)===0||((c=h[g])==null?void 0:(I=c.richSectionRenderer)==null?void 0:I.rowIndex)===0)E.push(h[g]);else break}return E};
_.p.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.p.resetInsertedContentIfNeeded=function(){(_.J("web_explore_hub_on_hover")||_.J("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.p.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.p.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.p.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.p.terminateVideoPreview=function(){_.U7(this.hostElement,"yt-terminate-video-preview-action")};
_.p.updateRichItemGridPositions=function(){var h={gridData:{gridColumnCount:this.elementsPerRow}},E;((E=this.data)==null?0:E.trackingParams)&&(E=_.sH())&&_.Wn(E,_.rp(this.data.trackingParams),h);_.U7(this.hostElement,"ytd-rich-item-index-update-action")};
_.p.miniModeAllowed=function(){return this.isChannelPage};
_.p.getMiniGameCardMinWidth=function(){return 154};
_.p.updateMiniMode=function(h){this.miniMode=this.miniModeAllowed()&&h;this.ytdReduxBehavior.dispatch(_.RY({type:"SET_RICH_GRID_MINI_MODE",payload:h}))};
_.p.isCurrentPage=function(){return location.pathname===this.pagePath};
_.p.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var h=_.GF().resolve(_.p4).getCurrentPage();h&&h.setScrollTop(0)}};
_.p.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.p.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.p.maybeSetBigYoodle=function(){var h,E=(h=this.data)==null?void 0:h.bigYoodle;this.bigYoodleData!==E&&(this.bigYoodleData=E)};
_.p.setMasthead=function(){var h;((h=this.data)==null?0:h.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.p.getRichGridStyle=function(){var h,E;return(E=(h=this.data)==null?void 0:h.style)!=null?E:"RICH_GRID_STYLE_UNKNOWN"};
_.p.onIsShortsGridChange=function(){var h=this.ytdReduxBehavior,E=h.dispatch,g=this.getRichGridStyle();E.call(h,_.RY({type:"SET_RICH_GRID_STYLE",payload:g}))};
_.ze.Object.defineProperties(Tk.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var h=_.GF().resolve(_.p4).getCurrentPage(),E,g,Z;return(((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_audio_pivot"||_.J("web_enable_channel_pivot_panel")&&((g=this.data)==null?void 0:g.targetId)==="browse-feedFEsfv_channel_pivot"||_.J("web_enable_effect_pivot_panel")&&((Z=this.data)==null?void 0:Z.targetId)==="browse-feedFEsfv_effect_pivot")&&(h==null?void 0:h.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.J("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 h;return!((h=this.data)==null?0:h.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var h;return((h=_.GF().resolve(_.p4).getCurrentPage())==null?void 0:h.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var h;return((h=_.GF().resolve(_.p4).getCurrentPage())==null?void 0:h.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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.targetId)||"")==="watch-next-feed"&&!_.J("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?0:h.enableContentSpecificAspectRatio)||((E=this.data)==null?0:(g=E.responsiveContainerConfiguration)==null?0:g.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.cx("web_continuation_handler_margin",0):0}}});
Tk.prototype.onIsShortsGridChange=Tk.prototype.onIsShortsGridChange;Tk.prototype.onReloadContinuationFinish=Tk.prototype.onReloadContinuationFinish;Tk.prototype.reflowContent=Tk.prototype.reflowContent;Tk.prototype.handleRerenderDownloadsData=Tk.prototype.handleRerenderDownloadsData;Tk.prototype.onRichShelfRendererCollapse=Tk.prototype.onRichShelfRendererCollapse;Tk.prototype.onRequestElementsPerRow=Tk.prototype.onRequestElementsPerRow;Tk.prototype.contentLengthChanged=Tk.prototype.contentLengthChanged;
Tk.prototype.dataChanged=Tk.prototype.dataChanged;Tk.prototype.onSizingChange=Tk.prototype.onSizingChange;Tk.prototype.onUseCompactListChange=Tk.prototype.onUseCompactListChange;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],Tk.prototype,"ironResizableBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Tk.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],Tk.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Tk.prototype,"componentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Tk.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],Tk.prototype,"miniMode",void 0);_.Y([_.x({value:[]}),_.V("design:type",Array)],Tk.prototype,"shownItems",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Tk.prototype,"isReflowing",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Tk.prototype,"isFilteredFeed",void 0);_.Y([_.x({selector:_.gm$}),_.V("design:type",Boolean)],Tk.prototype,"guideIsExpanded",void 0);
_.Y([_.x({selectorArgs:["entitySelectorType"],selector:function(h,E){if(_.J("kevlar_modern_downloads_page")&&E&&E!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":E=h.entities;var g=_.Ke(E),Z=_.Oo(E),M=_.dPO(h),W=_.jSa(h),z=_.Ccz(h),c=_.khZ(E),I=_.lV(g),B=_.ne(E);return _.SO$(g,Z,c,_.TcM(E),M,W,I,B,z,_.eFq(h),_.k8(h));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return h=_.Ke(h.entities),_.wz$(h);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return h=
_.YUx(h.entities),_.DLu(h);default:_.O$(new _.xX("Error: entitySelectorType defined but not matched in selector.",h,E))}}}),
_.V("design:type",Object)],Tk.prototype,"entityDrivenRichGridData",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"resizeOnObserverInit",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"bigYoodleData",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"mastheadData",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Tk.prototype,"isInlinePreviewDisabled",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"disableStickyFilterBar",void 0);
_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"transparentBackgroundChipsBar",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tk.prototype,"hideChipsBar",void 0);_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"isWatchDefaultLayout",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tk.prototype,"continuationShowButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tk.prototype,"rowReducedHorizontalMargin",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tk.prototype,"useCompactList",void 0);_.Y([_.x({selector:function(h){return _.Oo(h.entities).length>0}}),
_.V("design:type",Object)],Tk.prototype,"manualDownloadsPresent",void 0);_.Y([_.x({selector:function(h){return _.Ke(h.entities).length>0}}),
_.V("design:type",Object)],Tk.prototype,"smartDownloadsPresent",void 0);_.Y([_.x({selector:_.k8}),_.V("design:type",Object)],Tk.prototype,"isOnline",void 0);_.Y([_.x({selector:_.jSa}),_.V("design:type",Object)],Tk.prototype,"shouldRenderDownloadsBanner",void 0);_.Y([_.x({selector:_.eFq}),_.V("design:type",Object)],Tk.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Y([_.x({selector:_.dPO}),_.V("design:type",Object)],Tk.prototype,"hasOptedIntoSmartDownloads",void 0);
_.Y([_.Nm("useCompactList"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onUseCompactListChange",null);_.Y([_.Nm("sizing","typographyBump"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onSizingChange",null);_.Y([_.x({selector:_.zFM}),_.V("design:type",Number)],Tk.prototype,"miniplayerPlaybackState",void 0);_.Y([_.x({selector:_.so}),_.V("design:type",Boolean)],Tk.prototype,"miniplayerIsActive",void 0);
_.Y([_.x({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],Tk.prototype,"isInlinePreviewEnabled",void 0);_.Y([_.x({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.V("design:type",String)],Tk.prototype,"sizing",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tk.prototype,"elementsPerRow",void 0);
_.Y([_.x(),_.V("design:type",Object)],Tk.prototype,"typographyBump",void 0);_.Y([_.x(),_.V("design:type",Number)],Tk.prototype,"itemWidth",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],Tk.prototype,"headerElement",void 0);_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],Tk.prototype,"contentsElement",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"dataChanged",null);
_.Y([_.lq("data.contents.length"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"contentLengthChanged",null);_.Y([_.f3("yt-request-elements-per-row"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onRequestElementsPerRow",null);
_.Y([_.f3("yt-rich-shelf-renderer-collapse"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Tk.prototype,"onRichShelfRendererCollapse",null);_.Y([_.lq("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"handleRerenderDownloadsData",null);
_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],Tk.prototype,"entitySelectorType",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isSub",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isWatch",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isShortsPanel",null);_.Y([_.x({reflectToAttribute:!0}),_.S("isWatch"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"reducedTopMargin",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data","isWatch","isWatchDefaultLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"noTopMargin",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("isInlinePreviewEnabled","shownItems"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"topRowEndorsement",null);_.Y([_.S("data.header"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"hideHeader",null);_.Y([_.f3("yt-rich-grid-reflow"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],Tk.prototype,"reflowContent",null);
_.Y([_.f3("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onReloadContinuationFinish",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isSlimGrid",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isShortsGrid",null);
_.Y([_.S("data","isSlimGrid","isShortsGrid"),_.x(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"noRichItemGutterMargins",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isShortsGridSlim",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isCompactGrid",null);
_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"isDefaultGrid",null);_.Y([_.S("data.targetId"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"hideChipsBarOnWatch",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tk.prototype,"onIsShortsGridChange",null);
_.Y([_.S("data.enableContentSpecificAspectRatio"),_.x(),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tk.prototype,"force16By9ThumbnailAspectRatio",null);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],Tk.prototype,"continuationTriggerOffset",null);_.Y([_.K({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Tk);
_.X(Tk,"ytd-rich-grid-renderer",function(){if(vR0!==void 0)return vR0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vR0=h},{mode:2});var boX=_.O(function(h){var E=h.thumbsUp,g=h.thumbsDown,Z=h.rightAlignThumbs;h=_.G(_.Bm(!1,void 0,"OxPsH"));var M=h.next().value,W=h.next().value;h=_.G(_.Bm(!1,void 0,"V5vWne"));var z=h.next().value,c=h.next().value;h={};return _.R("div",{class:_.CO("ytwThumbsUpDownThumbs",(h.ytwThumbsUpDownRightAlign=function(){return Z==null?void 0:Z()},h))},_.R(_.Z7,{data:E,
onToggle:function(I){W(I);z()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:M()}}}),_.R(_.Z7,{data:g,
onToggle:function(I){c(I);M()&&W(!1)},
buttonShapeOverrides:function(){return{toggled:z()}}}))},"nk");
boX.idomCompat=!0;var QvC=_.O(function(h){var E=function(){return h.data().pendingStateEntityKey||""},g=_.qI(_.LkG,E),Z=function(){var c;
if(!(c=h.disabled())){var I;c=!((I=g())==null||!I.isPendingResponse)}return c},M=_.G(_.Bm(aox(""),void 0,"NwQXfe")),W=M.next().value,z=M.next().value;
_.m1(function(){requestAnimationFrame(function(){var c=h.data().onShowAnimationMs||0;c=c>0?aox("--chip-animation-duration: "+c+"ms;"):aox("");z(c)})});
return _.R("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:W},_.R(_.SX,{each:function(){return h.data().chipData||[]},
keyBy:"REFERENCE"},function(c){return _.R(uSU,{data:c,disabled:Z,pendingStateKey:E,onError:h.onError})}))},"ok"),uSU=_.O(function(h){var E=_.MC("button"),g=_.G(_.Bm(!0,void 0,"G4GPGe")),Z=g.next().value,M=g.next().value,W=function(){return h.data().text.content},z=function(){return h.data().transparentWhenLoading},c=_.J7(function(I){var B,U,L,d,C,q,w,r;
return _.a(function(v){switch(v.nextAddress){case 1:I.stopPropagation();if(h.disabled())return v.return();U=String(Math.floor(((B=_.jv())==null?void 0:B.getCurrentTime())||0)*1E3);L="youchat-"+Date.now();d=function(){_.y1(h.data().onClick||{});var H={continuationCommand:{token:h.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},u={inputComposerFormData:{clientMessageId:L,playerOffsetMs:U}};return new Promise(function(k,y){_.y1(H,{form:{formData:u},commandController:{onSuccess:function(A,
E4){k(E4)},
onServerError:function(A,E4){y(E4.error)}}})})};
C=_.jvC(h.pendingStateKey());C(!0);_.uOU("#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");M(!1);_.CX(v,2);return v.yield(d(),4);case 4:_.bN(v,3);break;case 2:q=_.th(v),(r=(w=h).onError)==null||r.call(w,q);case 3:C(!1),_.SK(v)}})});
return _.R(_.P,{cond:Z,then:function(){return _.R("div",{class:"ytwYouChatChipsDataChipWrapper"},_.R("button",{el:E,class:"ytwYouChatChipsDataChip","data-disabled":h.disabled,"data-transparent-loading":z,"on:click":c,tabindex:0},W))}})},"pk");var h5G=_.O(function(h){var E=h.data;var g=h.initiallyExpanded;var Z=function(){var B;return(B=E().conversationResourceData)==null?void 0:B.learningGuideData};
h=_.G(_.qi(function(){var B;return(B=g==null?void 0:g())!=null?B:!1}));
var M=h.next().value,W=h.next().value,z=function(){W(!0)},c=_.Cw(function(){var B,U;
return(U=(B=Z())==null?void 0:B.sections)!=null?U:[]},void 0,"aPRmH"),I=_.Cw(function(){return c().length>4},void 0,"PUPDyc");
h=_.Cw(function(){var B;return!M()&&I()&&(B=Z())!=null&&B.expandButton?c().slice(0,4):c()},void 0,"wUz4Ud");
return _.R("yt-conversation-resource-view-model",{class:_.CO("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.R(_.Sv,{data:h},{expandableMetadataViewModel:_.YGU}),_.R(_.P,{cond:function(){return I()&&!M()},
then:function(){return _.R("div",{id:"showMoreButton"},_.R(_.Sv,{data:function(){var B;return(B=Z())==null?void 0:B.expandButton}},{buttonViewModel:function(B){return _.R(_.$l,{data:B.data,
onClick:z})}}))}}))},"qk");var EbU=_.O(function(h){var E=function(){var H;return(H=h.data().text)==null?void 0:H.content},g=function(){var H,u;
return(H=h.data().webData)==null?void 0:(u=H.textResult)==null?void 0:u.content},Z=_.GF().resolve(_.Mi),M=_.d5(),W=function(){return h.data().chatResponseStyle},z=function(){return!h.data().transparentBackground},c=function(){return h.data().rightAlignThumbs},I=function(){return h.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||h.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},B=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:I()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:h.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},U=function(){var H;
return h.data().webData||((H=h.data().text)==null?void 0:H.content)||h.data().videoResultsData||h.data().conversationResourceViewModel||h.data().quiz||h.data().richContent},L=function(){return!!h.data().sectionHeader||U()},d=function(){var H;
return(H=h.data().videoResultsData)==null?void 0:H.videoShelf},C=function(){var H;
return(H=h.data().webData)==null?void 0:H.sourcesShelf},q=function(){return W()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||W()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:h.data().thumbsDownViewModel&&h.data().thumbsUpViewModel},w=function(){return _.e(h.data().thumbsUpViewModel,_.Ix)},r=function(){return _.e(h.data().thumbsDownViewModel,_.Ix)};
_.m1(function(){requestAnimationFrame(function(){var H;(H=h.shouldAnimateIcon)!=null&&H.call(h)&&drC(M.lottieEl)})});
var v={};return _.R("you-chat-item-view-model",{class:_.CO("ytwYouChatItemViewModelYouChatItemViewModel",(v.ytwYouChatItemViewModelColumnLayout=function(){return I()},v)),
"data-target-id":function(){return h.data().id||""}},_.R(_.P,{cond:function(){return h.data().removeIcon?!1:L()},
then:function(){var H={};return _.R("div",{"aria-hidden":"true"},_.R(_.sh,{className:_.CO("ytwYouChatItemViewModelIcon",(H.ytwYouChatItemViewModelRtl=Z==="rtl",H.ytwYouChatItemViewModelHidden=function(){return!(h.data().hideIcon||W()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||W()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:L())},H)),
animationName:"YOUCHAT_ICON",data:B,animationRef:M}))}}),_.R(_.P,{cond:L,
then:function(){var H={};return _.R("div",{class:_.CO("ytwYouChatItemViewModelHost",(H.ytwYouChatItemViewModelHostNoPadding=function(){return!!h.data().sectionHeader&&!U()},H.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return W()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},H.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return W()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},H.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return W()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
H.ytwYouChatItemViewModelGradientBackground=z,H)),
role:"alert"},_.R(_.P,{cond:E,then:function(u){return _.R(_.oh,{text:u,wrapCodeBlocks:!0})}}),_.R(_.Sv,{data:function(){return h.data().sectionHeader}},{sectionHeaderViewModel:function(u){var k={};
return _.R(_.KY,{data:u.data,className:_.CO("ytwYouChatItemViewModelSectionHeader",(k.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!h.data().sectionHeader&&!U()},k))})}}),_.R(_.P,{cond:g,
then:function(u){return _.R(_.oh,{text:u,wrapCodeBlocks:!0})}}),_.R(_.P,{cond:d,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.Sv,{data:function(){var u;return(u=h.data().videoResultsData)==null?void 0:u.videoShelf}},{horizontalShelfViewModel:function(u){return _.R(_.cE,{data:u.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.R(_.P,{cond:C,
then:function(){return _.R("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.R(_.Sv,{data:function(){var u;return(u=h.data().webData)==null?void 0:u.sourcesShelf}},{horizontalShelfViewModel:function(u){return _.R(_.cE,{data:u.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.R(_.Sv,{data:function(){return h.data().conversationResourceViewModel}},{conversationResourceViewModel:h5G}),_.R(_.Sv,{data:function(){return h.data().quiz}},{learningJourneyQuizViewModel:_.cJM}),_.R(_.Sv,{data:function(){return h.data().richContent}},{cardViewModel:TJp}),_.R(_.P,{cond:q,
then:function(){return _.R(boX,{thumbsUp:w,thumbsDown:r,rightAlignThumbs:c})}}))}}),_.R(_.P,{cond:function(){return h.data().chipsData},
then:function(H){return _.R(QvC,{data:H,disabled:h.pending,onError:h.onError})}}))},"rk");
EbU.idomCompat={callbacks:{onError:!0,onSend:!0}};var gbx=_.O(function(h){var E=function(){return h.data().choiceSelectedText},g=function(){return h.data().hasGradientBackground},Z={};
return _.R("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.R(_.P,{cond:E,then:function(){return _.R("div",{class:"ytYouChatUserTurnChoiceSelected"},_.R(_.dK,{text:E}))}}),_.R("div",{class:_.CO("ytYouChatUserTurnUserMessage",(Z.ytYouChatUserTurnGradientContainer=g,Z.ytYouChatUserTurnDefaultContainer=function(){return!g()},Z))},function(){return h.data().text}))},"sk");var Z9i=_.O(function(h){var E=_.G((0,_.lxk)(h.data)).next().value;return _.R("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return h.data().targetId||""}},_.R(_.Sv,{data:function(){return h.data().header}},{chipBarViewModel:_.SmH}),_.R(_.Sv,{data:function(){return E().contents}},{accordionViewModel:_.RMf,
alertBannerViewModel:_.HxB,chatLoadingViewModel:_.aA0,chatUserTurnViewModel:gbx,gridShelfViewModel:function(g){return _.R(_.mXf,{data:g.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.pyD,lockupViewModel:function(g){return _.R(_.H0,{data:g.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:h.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.KY,videoOverviewViewModel:_.eMB,youChatItemViewModel:function(g){return _.R(EbU,{data:g.data,pending:!1})}}))},"tk");_.I9(_.O(function(h){var E=_.G((0,_.lxk)(h.data)).next().value,g=_.hf("yt-section-list-renderer"),Z=_.G(_.Bm(void 0,void 0,"boqAXd")),M=Z.next().value,W=Z.next().value,z=function(){var c;return _.e((c=h.data().sectionListLayoutConfiguration)==null?void 0:c.layoutConfiguration,foC)};
_.vJ(function(){var c,I=(c=g.value)==null?void 0:c.clientWidth;if(z()){c=z();var B=c.responsiveSize;I=I<528?"CONTAINER_SIZE_NARROW":I<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var U=_.G(c.responsiveMap||[]);for(var L=U.next();!L.done;L=U.next())if(L=L.value,L.containerSize===I){U=L.containerType;break b}U=void 0}if(U&&B){b:{if(U==="CONTAINER_TYPE_VERTICAL_LIST")if(B==="RESPONSIVE_SIZE_STANDARD"){if(I!=="CONTAINER_SIZE_NARROW"){L="50%";break b}}else{L=I==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}L=void 0}c={responsiveSize:B,containerSize:I,containerType:U,force16By9ThumbnailAspectRatio:!c.enableContentSpecificAspectRatio,contentPreviewWidth:L,fullbleed:(U==="CONTAINER_TYPE_VERTICAL_LIST"||U==="CONTAINER_TYPE_GRID")&&I==="CONTAINER_SIZE_NARROW"&&!1}}else c=void 0}else c=void 0;W(c)});
return _.R("yt-section-list-renderer",{class:_.CO("ytSectionListRendererHost",h.className),el:g,"data-target-id":function(){return h.data().targetId||""}},_.R(_.Sv,{data:function(){return E().contents}},{itemSectionRenderer:function(c){return _.R(Z9i,{data:c.data,
containerLayoutConfig:M})}}))},"uk"),"yt-section-list-renderer",{props:{data:_.C6,
className:_.c$}});var MUZ;var WBG;var pYc=function(){return _.D.apply(this,arguments)||this};
_.f(pYc,_.D);_.Y([_.x(),_.V("design:type",Object)],pYc.prototype,"data",void 0);_.Y([_.yc({is:"yt-alert-renderer",disableElementRegistration:!0})],pYc);
_.X(pYc,"yt-alert-renderer",function(){if(WBG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;MUZ===void 0&&(MUZ=document.createElement("template"));var Z=MUZ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);WBG=h}h=WBG;return h},{mode:2});
}catch(e){_._DumpException(e)}
try{
var FEc;FEc=function(h,E,g,Z){g||(h?Z&&(Z.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||Z.WINDOW_SIZE_CHANGED&&(E.width!==window.innerWidth||E.height!==window.innerHeight)||Z.SAFARI_ABORTED_BY_NEW_TRANSITION&&h instanceof DOMException&&h.name==="AbortError"&&h.message.includes("Old view transition aborted by new view transition"))||_.$W(h):_.$W(Error("sj")))};
_.AVp=function(h,E){E=E===void 0?{}:E;var g,Z,M,W,z,c,I,B,U,L,d,C,q;return _.a(function(w){switch(w.nextAddress){case 1:g=E;Z=g.shouldWrap===void 0?!0:g.shouldWrap;M=g.skipTransitionTimeoutMs===void 0?300:g.skipTransitionTimeoutMs;W=g.beforeTransition;z=g.afterTransition;if(!Z||!document.startViewTransition||document.visibilityState==="hidden")return w.return(h());c={width:window.innerWidth,height:window.innerHeight};I=!1;(B=W)==null||B();_.CX(w,2);U=document.startViewTransition(h);L=setTimeout(function(){U.skipTransition();
I=!0},M);
return w.yield(U.ready,4);case 4:return clearTimeout(L),w.yield(U.finished,5);case 5:clearTimeout(L);(d=z)==null||d();_.bN(w,0);break;case 2:C=_.th(w),(q=z)==null||q(),FEc(C,c,I,E.ignoredErrors),_.SK(w)}})};
_.T90=function(h,E,g){h.persistentPanelContainerMap.set(g,E)};
_.BD=function(){for(var h=Array(36),E=0,g,Z=0;Z<36;Z++)Z==8||Z==13||Z==18||Z==23?h[Z]="-":Z==14?h[Z]="4":(E<=2&&(E=33554432+Math.random()*16777216|0),g=E&15,E>>=4,h[Z]=_.E7m[Z==19?g&3|8:g]);return h.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 bwG=_.uz(['<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>']),
uhX=_.$wk(bwG);uhX.setAttribute("style","display: none;");document.head.appendChild(uhX.content);_.UI=_.U2N(function(h){var E=_.q3("DIV");h&&(E.className=h);E.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";h=_.q3("DIV");_.vUl(h,"200px","200px");E.appendChild(h);document.body.appendChild(E);h=E.offsetWidth-E.clientWidth;_.f8(E);return h});var Qpx;var hJU;var Ls=function(){var h=_.D.apply(this,arguments)||this;h.icon=null;return h};
_.f(Ls,_.D);Ls.prototype.dismiss=function(){_.Ra(this.hostElement,"yt-live-chat-error-message-dismiss")};
Ls.prototype.computeIcon=function(h){return h&&h.iconType?"yt-icons:"+h.iconType.toLowerCase():"yt-icons:close"};
_.Y([_.x(),_.V("design:type",Object)],Ls.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon(data.icon)"}),_.V("design:type",Object)],Ls.prototype,"icon",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Ls);
_.X(Ls,"yt-live-chat-error-message-renderer",function(){if(hJU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Qpx===void 0&&(Qpx=document.createElement("template"));var Z=Qpx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);hJU=h}h=hJU;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var NIF,txF,S0G,xZF,rC2,HUL,$Za,KiF,OUj,nUG,Xca,YR,Y0L,sGL,VxN,kpo,yCj,FiF,ACL,TIj,bUL,uXN,QGi,haG,ErL,grK,ZMF,MLN,W2G,pii,GNj,zaL,a0G,cLo,iMx,orU,Px2,Uoo,jK0,doN,Cxa,JLG,I0L,Ra2,f0a,NUL,tLx,SG0,xo2,eaL,Dor;NIF=function(h,E){return _.Jj(h.entities,"liveReactionsDataEntity",E)};
txF=function(h,E){h=_.Jj(h.entities,"booleanEntity",E);return!(!h||!h.value)};
S0G=function(h,E){var g=_.sH();g&&h&&_.uw(g,_.rp(h),E)};
xZF=function(h,E){return _.Jj(h.entities,"timedMarkersListSyncEntity",E)};
_.wcK=function(h){return h.watch.isWatchActive};
_.DZK=function(h){return _.XN(h)||_.YP(h)||_.l3$(h)};
_.lRK=function(h){return!_.DZK(h)};
_.XS=function(h){return h.watch.watchScrollTop};
rC2=function(h){return h.watch.isLiveChatCollapsed};
_.mZN=function(){_.J("web_watch_log_theater_mode")&&_.bkM("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.vU0=function(h,E,g){if(!h.includes("START_TIME_PLACEHOLDER")||!h.includes("END_TIME_PLACEHOLDER"))return h;var Z=new Date(0),M=new Date(0);Z.setUTCMilliseconds(E);M.setUTCMilliseconds(g);return h.replace("START_TIME_PLACEHOLDER",_.E8(Z,7)).replace("END_TIME_PLACEHOLDER",_.E8(M,7))};
HUL=function(h,E){return _.Jj(h.entities,"booleanEntity",E)};
$Za=function(){return function(h){_.Gl(_.xx("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:h}))}};
KiF=function(h){switch(h){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}};
OUj=function(h,E,g){var Z=_.kB(g);h&&E&&Z&&h.getPlayerPromise().then(function(M){_.M0z(Z)&&_.HT();(new _.Qb(M)).executeCommand(Z,E);_.J("continue_playback_on_desktop_companion_click")||M.pauseVideo()})};
nUG=function(h){var E=_.zD(),g;if(g=_.yy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;g=(Z=g())==null?void 0:Z.layoutId}else g=null;OUj(E,g,h)};
Xca=function(h){var E=_.zD(),g;if(g=_.yy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;g=(Z=g())==null?void 0:Z.layoutId}else g=null;OUj(E,g,h)};
YR=function(h,E){var g=h<0?"-":"";h=Math.abs(h);var Z=Math.floor(h/3600),M=Math.floor(h)%3600,W=Math.floor(M/60);M=Math.floor(M)%60;var z="";(E===void 0?0:E)&&(z="."+Math.round((h-Math.floor(h))*10));return Z>0?g+Z+":"+(W<10?"0"+W:""+W)+":"+(M<10?"0"+M:""+M)+z:g+W+":"+(M<10?"0"+M:""+M)+z};
Y0L=function(h){var E=h.match(/[^0-9:\.]/g);if(E&&E.length>0)return null;h=h.split(":");if(h.length===0||h.length>3)return null;E=1;for(var g=0;h.length>0;){var Z=h.pop();if(Z===void 0)break;var M=Number(Z);if(Z===""||isNaN(M))return null;g+=M*E;E*=60}return g};
sGL=function(h,E,g,Z){h=Math.max(g,h);E=Math.min(E,Z-g);h+E>Z?(g=Z,h=g-E):g=h+E;return{start:h,end:g}};
VxN=function(h,E,g,Z,M,W){h<g?h=g:h+M>Z&&(h=Z-M);E>Z&&(E=Z);E=Math.min(h+W,Math.max(h+M,E));return{start:h,end:E}};
kpo=function(h,E,g,Z,M,W){E>Z?E=Z:E-M<g&&(E=g+M);h<g&&(h=g);h=Math.min(E-M,Math.max(E-W,h));return{start:h,end:E}};
yCj=function(h){return _.J("web_transcript_cue_id_killswitch")?String(h):"ytd-transcript-renderer_"+h};
FiF=function(h){return _.J("web_transcript_cue_id_killswitch")?!0:h.startsWith("ytd-transcript-renderer")};
ACL=function(h){var E=_.zD(),g;if(g=_.yy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;g=(Z=g())==null?void 0:Z.layoutId}else g=null;OUj(E,g,h)};
TIj=function(h){h.style.height="auto";h.style.height=Math.min(h.scrollHeight||20,80)+"px"};
bUL=function(h,E,g){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:E,hasGradientBackground:g}}],insertByPositionInSection:{sectionTargetId:h,position:"INSERTION_POSITION_LAST"}}}]}}}};
uXN=function(h){var E=_.zD(),g;g=(g=_.yy("yt.www.ads.eventcache.getLastCompanionData"))?(g=g())&&g.layoutId:null;OUj(E,g,h)};
QGi=function(h){var E=_.zD(),g;g=(g=_.yy("yt.www.ads.eventcache.getLastCompanionData"))?(g=g())&&g.layoutId:null;OUj(E,g,h)};
haG=function(h,E){E=E===void 0?!1:E;if(h.simpleText)h=[{text:h.simpleText}];else{var g;h=((g=h.runs)!=null?g:[]).map(function(Z){return Object.assign({},Z)})}if(E)for(E=_.G(h),g=E.next();!g.done;g=E.next())g.value.bold=!0;
return h};
ErL=function(h){var E=h.startEndTimeTemplate,g=h.startTimeUtcMillis;h=h.endTimeUtcMillis;if(E&&g&&h)return _.MR(_.vU0(_.Wp(E),Number(g),Number(h)))};
grK=function(h,E){var g,Z,M=h==null?void 0:(g=h.viewCount)==null?void 0:(Z=g.videoViewCountRenderer)==null?void 0:Z.shortViewCount;if(!E&&M)return M;var W,z;return h==null?void 0:(W=h.viewCount)==null?void 0:(z=W.videoViewCountRenderer)==null?void 0:z.viewCount};
ZMF=function(h,E){var g=h==null?void 0:h.relativeDateText;return!E&&g?[g,!0]:[h==null?void 0:h.dateText,!1]};
MLN=function(h,E,g,Z,M){Z=Z===void 0?!0:Z;M=M===void 0?"":M;var W=grK(h,E),z=_.G(ZMF(h,E)),c=z.next().value;z=z.next().value;E=E?h==null?void 0:h.sponsorsOnlyFirstTimeLongText:h==null?void 0:h.sponsorsOnlyFirstTimeShortText;var I=[];g&&W&&I.push(W);!g&&z||!c||I.push(c);h=[h==null?void 0:h.subtitle].concat(_.$E(I),[E,h==null?void 0:h.stationName,h==null?void 0:h.rating,h?ErL(h):void 0,h==null?void 0:h.upNextProgramText,h==null?void 0:h.superTitleLink]).filter(function(B){return!!B});
g={runs:[]};for(W=0;W<h.length;W++)g.runs.push.apply(g.runs,_.$E(haG(h[W],Z))),W<h.length-1&&g.runs.push({text:" "+M+" ",bold:Z});return g};
W2G=function(h){if(h)return{runs:[{text:h,bold:!0}]}};
pii=function(h){return h.filter(function(E){return!_.e(E,_.hm)})};
GNj=function(h){var E,g,Z,M;if(h=h==null?void 0:(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.results)==null?void 0:(M=Z.results)==null?void 0:M.contents){var W,z;return(z=(W=h.find(function(c){return!!c.videoPrimaryInfoRenderer}))==null?void 0:W.videoPrimaryInfoRenderer)==null?void 0:z.updatedMetadataEndpoint}};
zaL=function(h,E){var g;return(g=h.sourceConfigs)==null?void 0:g.find(function(Z){return Z.videoId===E})};
a0G=function(h){return h==="End of video"||h==="End of playlist"};
cLo=function(h){var E,g,Z,M;return(E=h.getWatchNextResponse())==null?void 0:(g=E.contents)==null?void 0:(Z=g.twoColumnWatchNextResults)==null?void 0:(M=Z.playlist)==null?void 0:M.playlist};
iMx=function(h){var E,g,Z,M,W,z;return(E=cLo(h))==null?void 0:(g=E.playlistButtons)==null?void 0:(Z=g.menuRenderer)==null?void 0:(M=Z.topLevelButtons)==null?void 0:(W=M[0])==null?void 0:(z=W.playlistLoopButtonRenderer)==null?void 0:z.playlistLoopStateEntityKey};
orU=function(h){var E=_.GF().resolve(_.oS),g;return(E=(g=_.e(E.getAutoplayEndpoint(),_.MH))==null?void 0:g.playlistId)&&E===h};
Px2=function(h,E,g,Z,M){function W(){_.KP.cancelJob(se);var z=I0L(E,g/h.getPlaybackRate()),c=z.hours,I=z.minutes;z=(z.seconds*1E3||6E4)/h.getPlaybackRate();h.setVideoTimeLeft(Ra2(c,I));Z&&h.getPlayerState()!==0&&h.setSleepTimerTimeLeft(Ra2(c,I,!0));(c>0||I>0)&&!M&&(se=_.lv(_.KP,W,z))}
_.KP.cancelJob(se);se=_.lv(_.KP,W)};
Uoo=function(h,E,g){function Z(){_.KP.cancelJob(BUU);var M=I0L(E,g),W=M.hours;M=M.minutes;var z=6E4/h.getPlaybackRate();if(W>0||M>0)h.setSleepTimerTimeLeft(Ra2(W,M,!0)),BUU=_.lv(_.KP,Z,z)}
_.KP.cancelJob(BUU);BUU=_.lv(_.KP,Z)};
jK0=function(h,E){var g=h.getVolume()/(E/500),Z=function(M){_.KP.cancelJob(L2a);var W=Math.floor(M-g);h.setVolume(W,!1);W>0&&(L2a=_.lv(_.KP,function(){Z(W)},500))};
_.KP.cancelJob(L2a);L2a=_.lv(_.KP,function(){Z(h.getVolume())})};
doN=function(h,E){_.KP.cancelJob(L2a);E&&h.syncVolume()};
Cxa=function(){var h={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.NH("SLEEP_TIMER_DISRUPTED")}}}}};_.GF().resolve(_.zF).resolveCommand(h)};
JLG=function(h){return(h.getDuration()-h.getProgressState().current)*1E3};
I0L=function(h,E){h=h+E-(0,_.zn)();if(h<=0)return{hours:0,minutes:0,seconds:0};var g=new eaL(0,0,0,0,0,0,h);h=g.getHours();E=g.getMinutes();g=g.getSeconds();g!==0&&E++;E!==0&&E%60===0&&(h++,E=0);return{hours:h,minutes:E,seconds:g}};
Ra2=function(h,E,g){return h>0&&E>0?g?_.NH("TIME_LEFT_HOURS_MINUTES",{hours:h.toString(),minutes:E.toString()}):_.NH("TIME_HOURS_MINUTES",{hours:h.toString(),minutes:E.toString()}):h>0?g?_.tT("TIME_LEFT_HOURS",h):_.tT("TIME_HOURS",h):g?_.NH("TIME_LEFT_MINUTES",{minutes:E.toString()}):_.NH("TIME_MINUTES",{minutes:E.toString()})};
f0a=function(h,E){if(h.timelyActions)return h.timelyActions.find(function(g){var Z;return((Z=_.e(g,qGL))==null?void 0:Z.cueRangeId)===E})};
NUL=function(h){var E=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.J2(h);h.keyMap_.forEach(function(g,Z){_.nd(E,Z)||this.remove(Z)},h)};
tLx=function(h,E){h.reloadContinuationItemsCommandMatcher=E};
_.VO=function(h,E){h.insertBefore(E,h.childNodes[0]||null)};
SG0=function(h){if(h>=48&&h<=57||h>=96&&h<=106||h>=65&&h<=90||_.PW&&h==0)return!0;switch(h){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 _.RV;default:return!1}};
xo2=function(h){if(h.altKey&&!h.ctrlKey||h.metaKey||h.keyCode>=112&&h.keyCode<=123)return!1;if(SG0(h.keyCode))return!0;switch(h.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!_.RV;default:return h.keyCode<166||h.keyCode>183}};
eaL=function(h,E,g,Z,M,W,z){this.date=typeof h==="number"?new Date(h,E||0,g||1,Z||0,M||0,W||0,z||0):new Date(h&&h.getTime?h.getTime():_.zZ())};
_.aV(eaL,_.n2);_.p=eaL.prototype;_.p.getHours=function(){return this.date.getHours()};
_.p.getMinutes=function(){return this.date.getMinutes()};
_.p.getSeconds=function(){return this.date.getSeconds()};
_.p.getMilliseconds=function(){return this.date.getMilliseconds()};
_.p.getUTCDay=function(){return this.date.getUTCDay()};
_.p.getUTCHours=function(){return this.date.getUTCHours()};
_.p.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.p.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.p.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.p.setHours=function(h){this.date.setHours(h)};
_.p.setMinutes=function(h){this.date.setMinutes(h)};
_.p.setSeconds=function(h){this.date.setSeconds(h)};
_.p.setMilliseconds=function(h){this.date.setMilliseconds(h)};
_.p.setUTCHours=function(h){this.date.setUTCHours(h)};
_.p.setUTCMinutes=function(h){this.date.setUTCMinutes(h)};
_.p.setUTCSeconds=function(h){this.date.setUTCSeconds(h)};
_.p.setUTCMilliseconds=function(h){this.date.setUTCMilliseconds(h)};
_.p.add=function(h){_.n2.prototype.add.call(this,h);h.hours&&this.setUTCHours(this.date.getUTCHours()+h.hours);h.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+h.minutes);h.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+h.seconds)};
_.p.JSC$11333_toIsoString=function(h){var E=_.n2.prototype.JSC$11333_toIsoString.call(this,h);return h?E+"T"+_.RO(this.getHours(),2)+":"+_.RO(this.getMinutes(),2)+":"+_.RO(this.getSeconds(),2):E+"T"+_.RO(this.getHours(),2)+_.RO(this.getMinutes(),2)+_.RO(this.getSeconds(),2)};
_.p.equals=function(h){return this.getTime()==h.getTime()};
_.p.toString=function(){return this.JSC$11333_toIsoString()};
_.p.clone=function(){var h=new eaL(this.date);h.firstDayOfWeek_=this.firstDayOfWeek_;h.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return h};
_.wir=function(h){return _.RY({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:h}})};
Dor=new _.I2("imageTileRenderer");var l0j=new _.I2("adGridCardCollectionViewModel");var rLG=new _.I2("carouselTitleViewModel");var moK=new _.I2("ctaCarouselItemViewModel");var vr2=new _.I2("textFieldViewModel");_.HMM=new _.I2("engagementPanelHeaderShowNavigationButtonCommand");var $oM=new _.I2("hideEngagementPanelScrimAction");var K2L=new _.I2("setActivePanelItemAction");var OMF=new _.I2("showEngagementPanelScrimAction");var nrK=new _.I2("updateEngagementPanelAction");var XiL=new _.I2("updateSearchInVideoResultsAction");var YGr=new _.I2("transcriptCueGroupRenderer");var sKL=new _.I2("transcriptCueRenderer");var VLa=new _.I2("transcriptFooterRenderer");var kNF=new _.I2("engagementPanelAdSubtitleRenderer");var yL0=new _.I2("videoDescriptionFantasySectionViewModel");var F2i=new _.I2("deleteClipEngagementPanelCommand");var ALK=new _.I2("loopCommand");var TUL=new _.I2("changeCreatorEndscreenVisibilityCommand");var bMU=new _.I2("liveChatCallForQuestionsRenderer");var ujx=new _.I2("updateTimedMarkersSyncObserverCommand");var qGL=new _.I2("timelyActionViewModel");var QKx=new _.I2("timelyActionsOverlayViewModel");var hLi=new _.I2("repeatChapterCommand");var EEi=new _.I2("watchPlayerOverflowMenuCommand");var gEG=new _.I2("compositeVideoOverlayRenderer");var ZXj=new _.I2("sortFilterSubMenuRenderer");var MKF=new _.I2("switchListItemViewModel");var WnG=new _.I2("inputComposerViewModel");var pAM=new _.I2("transcriptEditSegmentCommand");var GHM=new _.I2("transcriptUpdateSegmentTextCommand");var zLi=new _.I2("transcriptSearchBoxRenderer");var aTr=new _.I2("transcriptSegmentListRenderer");var chL=new _.I2("transcriptSegmentRenderer");_.iX2=new _.I2("updateDateTextAction");var oEL=new _.I2("updateTitleAction");var ITM=new _.I2("updateViewershipAction");var RLM=new _.I2("carouselLockupRenderer");var kR=new _.I2("expandableVideoDescriptionBodyRenderer");var PrL=new _.I2("videoDescriptionHeaderRenderer");var BxL=new _.I2("videoDescriptionYouchatSectionViewModel");_.yO=_.cx("kevlar_watch_page_horizontal_margin",24);_.UcL=_.cx("kevlar_watch_page_columns_top_padding",24);_.Lno=426+_.yO*2;_.FS=_.cx("kevlar_watch_two_column_width_threshold",1E3);_.jHL=_.yO*2;_.dcM=_.cx("kevlar_watch_secondary_width",402);_.CrN=_.cx("kevlar_watch_max_player_width",1280);_.JhU=_.cx("kevlar_watch_flexy_metadata_height",136);_.eLj=_.jHL+310+_.yO;_.qZM=_.jHL+360+_.yO;var fTM={PAUSE_CHAT:18};var Nxx;var tKa;var Ar=function(){return _.D.apply(this,arguments)||this};
_.f(Ar,_.D);Ar.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Ar.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var h=_.e(this.data.button,_.i_);h&&(h.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ze.Object.defineProperties(Ar,{template:{configurable:!0,enumerable:!0,get:function(){if(tKa===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;Nxx===void 0&&(Nxx=document.createElement("template"));var Z=Nxx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);tKa=h}h=tKa;return h}}});
_.Y([_.t(_.ik),_.V("design:type",Object)],Ar.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({selectorArgs:["data.enabledEntityKey"],selector:txF,observer:"onEnabledChange"}),_.V("design:type",Boolean)],Ar.prototype,"enabled",void 0);_.Y([_.x(),_.V("design:type",Object)],Ar.prototype,"data",void 0);_.Y([_.yc({is:"yt-disableable-button-view-model",noInjection:!0})],Ar);var SZG;var xcN;var wAo=["transVert01","transVert02","transVert03"],Dc0="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),TW=function(){var h=_.D.apply(this,arguments)||this;h.emojiManager=_.PB;h.isDarkTheme=document.documentElement.hasAttribute("dark");h.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};h.reactionBuckets=[];h.noEmojiIdentifier="NO_EMOJI";return h};
_.f(TW,_.D);_.p=TW.prototype;_.p.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.p.desktopFountainEmojiSizePxChanged=function(){_.Ja(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.p.createUserReactionAnimation=function(h){this.createEmojiAnimation(h,!0)};
_.p.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var h;((h=this.data)==null?0:h.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.xx("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.$E(this.emojiContainer.children)).forEach(function(E){E.remove()})};
_.p.detached=function(){this.cleanupFountain()};
_.p.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var h;this.reactionBuckets=_.Kt.unsafeClone((h=this.emojiFountainData)==null?void 0:h.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.p.processEmojiBucket=function(h){var E=this;if(this.reactionBuckets&&!(h>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var g=this.reactionBuckets[h];this.generateEmojiAnimations(g);if(h<this.reactionBuckets.length-1){var Z;if(g==null?0:(Z=g.duration)==null?0:Z.seconds)this.emojiBucketTimerId=setTimeout(function(){E.processEmojiBucket(h+1)},Number(g.duration.seconds)*1E3)}}};
_.p.generateEmojiAnimations=function(h){var E=this,g=this.getRandomEmojiIdFromBucketWithOverride(h);if(g&&g!==this.noEmojiIdentifier){var Z=0;h.targetEps?(Z=this.linearInterpolateBounded(1,20,100,12,h.emojiSizeIndex||0),this.createEmojiAnimation(g,!1,h.emojiAnimationMs,Z),Z=this.getEmojiDelayMsFromTargetEps(h.targetEps)):(this.createEmojiAnimation(g),Z=this.getEmojiDelayMsFromDistribution(h.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){E.generateEmojiAnimations(h)},Z)}};
_.p.getRandomEmojiIdFromBucketWithOverride=function(h){if(!(h&&h.reactionsData&&h.reactionsData.length&&h.totalReactions))return this.noEmojiIdentifier;for(var E=h.totalReactions,g=1,Z=_.G(h.reactionsData),M=Z.next();!M.done;M=Z.next())M=M.value,(M.reactionWeightOverride||M.reactionWeightOverride===0)&&M.reactionCount&&(E-=M.reactionCount,g-=M.reactionWeightOverride);Z=!0;g<0&&(Z=!1,E=h.totalReactions,g=1);if(Z&&g>0&&E===0)if(g===1){M=0;for(var W=_.G(h.reactionsData),z=W.next();!z.done;z=W.next())z=
z.value,z.reactionCount&&z.reactionCount>0&&M++;M=1/M;W=_.G(h.reactionsData);for(z=W.next();!z.done;z=W.next())z.value.reactionWeightOverride=M}else for(M=1/(1-g),W=_.G(h.reactionsData),z=W.next();!z.done;z=W.next())z=z.value,z.reactionWeightOverride&&(z.reactionWeightOverride*=M);M=Math.random();W=0;z=_.G(h.reactionsData);for(var c=z.next();!c.done;c=z.next())if(c=c.value,c.reactionCount&&(W=(c.reactionWeightOverride||c.reactionWeightOverride===0)&&Z?W+c.reactionWeightOverride:W+g*c.reactionCount/
E,W>M&&(c.reactionCount--,h.totalReactions--,c=this.reactionItemToEmojiString(c),c!==this.noEmojiIdentifier)))return c;return this.noEmojiIdentifier};
_.p.reactionItemToEmojiString=function(h){if(h.unicodeEmojiId)return h.unicodeEmojiId;if(h.emoteId)return h.emoteId;if(h.videoReactionType)switch(h.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.p.createEmojiAnimation=function(h,E,g,Z){E=E===void 0?!1:E;this.lastEmojiRequestedForTesting=h;var M=h.startsWith("yt-icons:"),W=_.Iq(this.emojiManager,h);if(W||M){var z=document.createElement("emoji");z.classList.add("yt-emoji-fountain-view-model");z.classList.add(wAo[Math.floor(Math.random()*wAo.length)]);var c=document.createElement("div");c.classList.add("yt-emoji-fountain-view-model");c.classList.add("horizontal-container");c.classList.add(Dc0[Math.floor(Math.random()*Dc0.length)]);E?(g=document.createElement("div"),
g.classList.add("user-reaction-bubble"),g.classList.add("yt-emoji-fountain-view-model"),c.appendChild(g)):(g&&(z.style.animationDuration=g+"ms",c.style.animationDuration=g+"ms"),Z&&(z.style.width=Z+"px",z.style.height=Z+"px"));M?(M=document.createElement("yt-icon"),M.polymerController.icon=h,Z&&(M.style.width=Z+"px",M.style.height=Z+"px"),h=M):h=this.emojiManager.createEmoji(W,!1);h.classList.add("yt-emoji-fountain-view-model");c.appendChild(h);z.appendChild(c);this.emojiContainer.appendChild(z);
z.addEventListener("animationend",function(){z.remove()});
var I,B;if((I=this.data)==null?0:(B=I.loggingDirectives)==null?0:B.trackingParams)E=E?_.Uz(183501):_.Uz(183500),S0G(this.data.loggingDirectives.trackingParams,E),_.K_$(E);setTimeout(function(){z&&z.remove()},2E3)}};
_.p.getEmojiDelayMsFromDistribution=function(h){return Math.random()*(h||1)*1E3};
_.p.getEmojiDelayMsFromTargetEps=function(h){return Math.random()*2*(1/h)*1E3};
_.p.linearInterpolateBounded=function(h,E,g,Z,M){M=Math.min(Math.max(M,h),g);return(E*(g-M)+Z*(M-h))/(g-h)};
TW.prototype.onEmojiFountainDataEntityUpdate=TW.prototype.onEmojiFountainDataEntityUpdate;TW.prototype.desktopFountainEmojiSizePxChanged=TW.prototype.desktopFountainEmojiSizePxChanged;TW.prototype.isActiveChanged=TW.prototype.isActiveChanged;_.Y([_.x(),_.V("design:type",_.oq)],TW.prototype,"emojiManager",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],TW.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],TW.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(h,E){return _.Jj(h.entities,"emojiFountainDataEntity",E)}}),
_.V("design:type",Object)],TW.prototype,"emojiFountainData",void 0);_.Y([_.x(),_.V("design:type",Boolean)],TW.prototype,"isActive",void 0);_.Y([_.Nm("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TW.prototype,"isActiveChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TW.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",String)],TW.prototype,"lastEmojiRequestedForTesting",void 0);
_.Y([_.x({value:function(){return _.cx("desktop_fountain_emoji_size_px",20)}}),
_.V("design:type",Number)],TW.prototype,"desktopFountainEmojiSizePx",void 0);_.Y([_.Nm("desktopFountainEmojiSizePx"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TW.prototype,"desktopFountainEmojiSizePxChanged",null);_.Y([_.Sg("#emoji-container"),_.V("design:type",HTMLElement)],TW.prototype,"emojiContainer",void 0);
_.Y([_.Nm("emojiFountainData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TW.prototype,"onEmojiFountainDataEntityUpdate",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],TW);
_.X(TW,"yt-emoji-fountain-view-model",function(){if(xcN===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;SZG===void 0&&(SZG=document.createElement("template"));var Z=SZG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);xcN=h}h=xcN;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var lTF;var rha;var bj=function(){return _.D.apply(this,arguments)||this};
_.f(bj,_.D);bj.prototype.onChoiceChanged=function(){this.data&&_.Ja(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
bj.prototype.onChoiceChanged=bj.prototype.onChoiceChanged;_.Y([_.x(),_.V("design:type",Object)],bj.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bj.prototype,"onChoiceChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],bj);
_.X(bj,"yt-live-chat-banner-poll-choice",function(){if(rha===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;lTF===void 0&&(lTF=document.createElement("template"));var Z=lTF;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);rha=h}h=rha;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var mcU;var vEj;var uj=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework_with_live");h.small=!1;return h};
_.f(uj,_.D);uj.prototype.computeIsSmall=function(){var h;return((h=this.buttonOverrides)==null?void 0:h.size)==="S"};
uj.prototype.computeId=function(){return this.data&&this.data.targetId};
_.Y([_.t(_.oU.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],uj.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",String)],uj.prototype,"id",void 0);_.Y([_.x(),_.V("design:type",Object)],uj.prototype,"buttonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],uj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uj.prototype,"modern",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.V("design:type",Object)],uj.prototype,"small",void 0);_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-button"})],uj);
_.X(uj,"yt-live-chat-button",function(){if(vEj===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;mcU===void 0&&(mcU=document.createElement("template"));var Z=mcU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);vEj=h}h=vEj;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var HXr;var $cx;var QO=function(){var h=_.D.apply(this,arguments)||this;h.inCollapsedBanner=!1;h.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};h.questionButtonOverrides={style:"mono",type:"filled"};return h};
_.f(QO,_.D);_.p=QO.prototype;_.p.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.p.onContextMenuButtonClick=function(h){this.ytLiveChatItemBehavior.showContextMenu(h)};
_.p.onYtRendererstamperFinished=function(){this.menuButton=_.UB(this.hostElement).querySelector("#menu-button")};
_.p.dataChanged=function(){var h,E;if((E=_.e((h=this.data)==null?void 0:h.overflowMenuButton,_.Gh))==null?0:E.command)this.data.contextMenuEndpoint=_.e(this.data.overflowMenuButton,_.Gh).command};
_.p.onButtonClick=function(){var h,E=_.e((h=this.data)==null?void 0:h.askQuestionButton,_.Gh);if(E){if(E.trackingParams&&(h=_.rp(E.trackingParams))){var g=_.sH();g&&_.Z$(g,h)}_.Ra(this.hostElement,"innertube-command",E.command)}};
QO.prototype.onYtRendererstamperFinished=QO.prototype.onYtRendererstamperFinished;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],QO.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],QO.prototype,"ytLiveChatItemBehavior",void 0);_.Y([_.x({observer:"dataChanged"}),_.V("design:type",Object)],QO.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QO.prototype,"inCollapsedBanner",void 0);_.Y([_.x(),_.V("design:type",Object)],QO.prototype,"buttonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],QO.prototype,"questionButtonOverrides",void 0);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QO.prototype,"onYtRendererstamperFinished",null);
_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],QO);
_.X(QO,"yt-live-chat-call-for-questions-renderer",function(){if($cx===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;HXr===void 0&&(HXr=document.createElement("template"));var Z=HXr;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);$cx=h}h=$cx;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var KnM={};KnM.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 h=this;window.requestAnimationFrame(function(){h.restoreFocusNode_||(h.restoreFocusNode_=document.activeElement);var E=_.ouM(h.hostElement);E.length&&E[E.length-1].focus()})},
isAttachedChanged_:function(h,E){h?this.focusChild_():E&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(h){this.hidden||_.Gw(h).indexOf(this.hostElement)!==-1||(h.stopPropagation(),this.focusChild_())}};var OXr;var nEG;var hw=function(){return _.D.apply(this,arguments)||this};
_.f(hw,_.D);hw.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
hw.prototype.onClick=function(h){h.target!==this.confirmButton&&h.target!==this.cancelButton&&(this.hidden=!0)};
_.Y([_.Sg("#confirm_button"),_.V("design:type",Object)],hw.prototype,"confirmButton",void 0);_.Y([_.Sg("#cancel_button"),_.V("design:type",Object)],hw.prototype,"cancelButton",void 0);_.Y([_.x(),_.V("design:type",XAa)],hw.prototype,"data",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],hw.prototype,"hidden",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(KnM.YtLiveChatDialogBehavior),_.V("design:type",Object)],hw.prototype,"ytLiveChatDialogBehavior",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],hw);
var XAa=_.X(hw,"yt-live-chat-dialog-renderer",function(){if(nEG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;OXr===void 0&&(OXr=document.createElement("template"));var Z=OXr;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);nEG=h}h=nEG;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var YZ0;var sHj,VKU=function(){if(sHj!==void 0)return sHj;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;YZ0===void 0&&(YZ0=document.createElement("template"));var Z=YZ0;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return sHj=h};var kHU;var yhL;var EM=function(){var h=_.D.apply(this,arguments)||this;h.tooltip=null;h.data=null;h.id="";h.active=!1;h.icon="";h.disabled=!1;h.showTooltip=!1;h.useToggledActiveState=!0;h.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return h};
_.f(EM,_.D);_.p=EM.prototype;
_.p.dataChanged=function(){var h;((h=this.data)==null?0:h.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,_.C3)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var E;if((E=this.data)==null?0:E.disabled)this.disabled=!0};
_.p.computeId=function(h){return h};
_.p.computeIcon=function(h,E){if(!h)return"";if(this.useToggledActiveState)return"yt-icons:"+h.toLowerCase();var g,Z;return E&&((g=this.data)==null?0:(Z=g.toggledIcon)==null?0:Z.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+h.toLowerCase()};
_.p.logPDGEntryPoint=function(){_.S3z(_.Cm("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.p.immediatelyShowTooltip=function(){var h=_.UB(this.hostElement).querySelector("#tooltip");h.animationDelay=0;h.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};h.show()};
_.p.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.p.onClick=function(h){var E;((E=this.data)==null?0:E.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(),h.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Ra(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.p.computeShowTooltip=function(h,E){return!!(h&&h.tooltip&&E)};
_.p.maybeUpdateTooltipText=function(){var h=this,E;if((E=this.data)==null?0:E.tooltip){var g=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.C3)(h.tooltip).textContent=g},250)}};
_.p.handleLiveChatActions=function(h){var E=this;h.length&&(this.id!=="creator"&&this.id!=="product-picker"||h.forEach(function(g){(g=E.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",g))&&g.durationSec===g.fullDurationSec&&E.startBubble(E.colorFromDecimal(g.startBackgroundColor))}))};
_.p.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.p.startBubble=function(h){_.Ja(this.hostElement,{"--yt-live-chat-monetization-button-glow":h});this.hostElement.setAttribute("bubble","")};
_.p.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.p.colorFromDecimal=function(h){typeof h==="string"&&(h=Number(h));return"rgba("+[h>>16&255,h>>8&255,h&255,(h>>24&255)/255].join()+")"};
EM.prototype.onAnimationEnd=EM.prototype.onAnimationEnd;EM.prototype.disabledChanged=EM.prototype.disabledChanged;EM.prototype.dataChanged=EM.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],EM.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EM.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.oU.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],EM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],EM.prototype,"data",void 0);_.Y([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],EM.prototype,"id",void 0);_.Y([_.x({notify:!0,reflectToAttribute:!0}),_.V("design:type",Object)],EM.prototype,"active",void 0);
_.Y([_.x({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.V("design:type",Object)],EM.prototype,"icon",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EM.prototype,"disabled",void 0);_.Y([_.x({computed:"computeShowTooltip(data, disabled)"}),_.V("design:type",Object)],EM.prototype,"showTooltip",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],EM.prototype,"useToggledActiveState",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EM.prototype,"dataChanged",null);_.Y([_.Nm("disabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],EM.prototype,"disabledChanged",null);_.Y([_.f3("animationend"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],EM.prototype,"onAnimationEnd",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],EM);
_.X(EM,"yt-live-chat-icon-toggle-button-renderer",function(){if(yhL===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;kHU===void 0&&(kHU=document.createElement("template"));var Z=kHU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);yhL=h}h=yhL;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Fni;var AhF;var g3=function(){return _.D.apply(this,arguments)||this};
_.f(g3,_.D);g3.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Y([_.x(),_.V("design:type",Object)],g3.prototype,"data",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],g3);
_.X(g3,"yt-live-chat-message-input-prompt-header-renderer",function(){if(AhF===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Fni===void 0&&(Fni=document.createElement("template"));var Z=Fni;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);AhF=h}h=AhF;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var TxM;var bXM;var uUo;var QHj;var huG;var Epa;var gpG=function(){return _.D.apply(this,arguments)||this};
_.f(gpG,_.D);_.Y([_.x(),_.V("design:type",Object)],gpG.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],gpG);
_.X(gpG,"yt-live-chat-message-subtext-renderer",function(){if(Epa===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;huG===void 0&&(huG=document.createElement("template"));var Z=huG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Epa=h}h=Epa;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Zj=function(){var h=_.D.apply(this,arguments)||this;h.subtextOnBottom=!1;h.buttonOverrides={style:"mono",type:"tonal"};return h};
_.f(Zj,_.D);Zj.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Zj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Zj.prototype,"subtextOnBottom",void 0);_.Y([_.x(),_.V("design:type",Object)],Zj.prototype,"buttonOverrides",void 0);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Zj);
_.X(Zj,"yt-live-chat-message-renderer",function(){if(QHj===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;uUo===void 0&&(uUo=document.createElement("template"));var Z=uUo;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);QHj=h}h=QHj;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Zti;var M8G;var MF=function(){var h=_.D.apply(this,arguments)||this;h.isRemovable=!1;h.hasPrefilledText=!1;h.isInputDirty=!1;h.overCharacterLimit=!1;h.underCharacterLimit=!1;h.showErrorMessage=!1;return h};
_.f(MF,_.D);_.p=MF.prototype;_.p.computeId=function(){return this.data.id};
_.p.computeInputData=function(){return this.data.inputData};
_.p.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.p.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.p.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.p.getLiveChatRichMessageInput=function(){return _.UB(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.p.clearInput=function(){_.UB(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.p.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.p.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.p.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.p.handleTextInputCharCountChanged=function(h){h=h.detail&&h.detail.characterCount;h!==void 0&&(this.characterCount=h,h!==0&&(this.isInputDirty=!0))};
_.p.onInputFocusOut=function(){this.isInputDirty=!0};
_.p.onClickCloseButton=function(){_.Ra(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
MF.prototype.handleTextInputCharCountChanged=MF.prototype.handleTextInputCharCountChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MF.prototype,"data",void 0);_.Y([_.x({computed:"computeId(data.id)"}),_.V("design:type",String)],MF.prototype,"id",void 0);_.Y([_.x({computed:"computeInputData(data.inputData)"}),_.V("design:type",Object)],MF.prototype,"inputData",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.V("design:type",Object)],MF.prototype,"isRemovable",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.V("design:type",Object)],MF.prototype,"hasPrefilledText",void 0);_.Y([_.x({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.V("design:type",Number)],MF.prototype,"charactersRemaining",void 0);
_.Y([_.x(),_.V("design:type",Number)],MF.prototype,"characterCount",void 0);_.Y([_.x(),_.V("design:type",Object)],MF.prototype,"isInputDirty",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.V("design:type",Object)],MF.prototype,"overCharacterLimit",void 0);_.Y([_.x({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.V("design:type",Object)],MF.prototype,"underCharacterLimit",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.V("design:type",Object)],MF.prototype,"showErrorMessage",void 0);_.Y([_.f3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],MF.prototype,"handleTextInputCharCountChanged",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],MF);
_.X(MF,"yt-live-chat-poll-editor-input",function(){if(M8G===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Zti===void 0&&(Zti=document.createElement("template"));var Z=Zti;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);M8G=h}h=M8G;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var W8U;var pRM;var GRK={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},WY=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_button_rework_with_live");h.closeButtonOverrides={iconPosition:"icon-only"};h.startButtonOverrides={style:"mono",type:"filled"};h.addOptionButtonOverrides={style:"mono",type:"text"};return h};
_.f(WY,_.D);_.p=WY.prototype;
_.p.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.p.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var h;_.e((h=this.data)==null?void 0:h.startButton,_.Gh)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.computeId=function(){return this.data&&this.data.id||""};
_.p.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.p.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.p.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.p.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.p.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var h=0;h<this.pollEditorInfoWithDefaults.minPollOptions;h++)this.addPollOptionData()};
_.p.getIsValidPoll=function(){var h=this;if(!this.pollEditorInfoWithDefaults)return!1;var E=this.pollEditorInfoWithDefaults,g=E.minPollOptionChars,Z=E.maxPollOptionChars,M=E.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>E.maxPollQuestionChars)return!1;E=_.UB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(E).every(function(W,z){W=W.characterCount;!W&&M[z]&&(W=h.ytRendererBehavior.getSimpleString(M[z]).length);return W!==void 0&&W>=g&&W<=Z})};
_.p.isValidPollChanged=function(){var h;_.e((h=this.data)==null?void 0:h.startButton,_.Gh)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.p.addPollOptionData=function(){var h=this.pollEditorInfoWithDefaults,E=h.maxPollOptionChars,g=h.optionPlaceholderText,Z=h.customOptionPlaceholderText,M=h.pollOptionData;this.currentNumPollOptions>=h.maxPollOptions||(h={liveChatPollOptionInput:{inputData:{placeholder:Z[this.currentNumPollOptions]||g,maxCharacterLimit:E},maxCharacterLimit:E,minCharacterLimit:h.minPollOptionChars,hasPrefilledText:!!Z[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=h.minPollOptions}},M.charCountErrorText&&
(h.liveChatPollOptionInput.charCountErrorText=M.charCountErrorText),M.charsRemainingAltLabel&&(h.liveChatPollOptionInput.charsRemainingAltLabel=M.charsRemainingAltLabel),M.removeOptionAltText&&(h.liveChatPollOptionInput.removeOptionAltText=M.removeOptionAltText),this.push("pollOptionsData",h),M=Array.from(_.UB(_.UB(this.hostElement).querySelector("#poll-options")).children),M.forEach(function(W,z){W.polymerController.set("data.id",z)}),_.UB(M[M.length-1]).querySelector("#input").focus())};
_.p.getPollOptionInputValues=function(){var h=this,E=[],g=_.UB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),Z=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(g).forEach(function(M,W){var z=null;M=M.getLiveChatRichMessageInput();var c;(M==null?0:(c=M.textSegments)==null?0:c.length)?z=_.FN(M):Z[W]&&(z=h.formattedStringToLiveChatRichMessageInput(Z[W]));E.push(z)});
return E};
_.p.requestCreateAndStartPoll=function(h){var E=this.getPollOptionInputValues();if(!E.some(function(Z){return!Z})){E={optionText:E};
var g=_.UB(_.UB(this.hostElement).querySelector("#poll-question")).firstChild;g&&g.liveChatRichMessageInput&&(E.questionText=_.FN(g.liveChatRichMessageInput));_.LZ(this.hostElement,[h,E])}};
_.p.selectedChanged=function(){if(this.selected){var h=_.UB(_.UB(this.hostElement).querySelector("#start-button")).firstElementChild;if(h){var E;(E=_.UB(h).querySelector("#button")||_.L3(h).querySelector("button"))==null||E.focus()}}};
_.p.handleTextInputChanged=function(h){var E;((E=h.target)==null?void 0:E.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=h.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.p.handleStartButtonAction=function(h){h.detail.actionName==="yt-service-request"&&(h.stopPropagation(),(h=h.detail.args[1])&&this.requestCreateAndStartPoll(h))};
_.p.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(h){this.createPollRequestInFlight=!1;(h=h.detail&&h.detail.data)&&h.success&&(_.Ra(this.hostElement,"picker-cancelled"),_.BX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.p.onCloseClick=function(){_.Ra(this.hostElement,"picker-cancelled");_.BX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.p.handlePollEditorInputClosed=function(h){var E=this.pollOptionsData.findIndex(function(g){return g.liveChatPollOptionInput.id===h.detail.id});
this.splice("pollOptionsData",E,1);this.isValidPoll=this.getIsValidPoll()};
_.p.onPickerCancelled=function(){this.reset()};
_.p.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var h=_.UB(_.UB(this.hostElement).querySelector("#poll-question")).firstChild;h&&h.setLiveChatRichMessageInput(null);if(h=_.UB(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){h=_.G(Array.from(h));for(var E=h.next();!E.done;E=h.next())E.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.p.formattedStringToLiveChatRichMessageInput=function(h){return h.simpleText?{text_segments:[h.simpleText]}:{text_segments:h.runs}};
_.ze.Object.defineProperties(WY.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(GRK,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
WY.prototype.onPickerCancelled=WY.prototype.onPickerCancelled;WY.prototype.handlePollEditorInputClosed=WY.prototype.handlePollEditorInputClosed;WY.prototype.handleServiceRequestCompleted=WY.prototype.handleServiceRequestCompleted;WY.prototype.handleServiceRequestSent=WY.prototype.handleServiceRequestSent;WY.prototype.handleTextInputChanged=WY.prototype.handleTextInputChanged;WY.prototype.selectedChanged=WY.prototype.selectedChanged;WY.prototype.isValidPollChanged=WY.prototype.isValidPollChanged;
WY.prototype.shouldInitializePollChanged=WY.prototype.shouldInitializePollChanged;WY.prototype.dataChanged=WY.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],WY.prototype,"modern",void 0);
_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"closeButtonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"startButtonOverrides",void 0);_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"addOptionButtonOverrides",void 0);_.Y([_.x({computed:"computeId(data.id)",reflectToAttribute:!0}),_.V("design:type",String)],WY.prototype,"id",void 0);_.Y([_.x({value:function(){return[]}}),
_.V("design:type",Array)],WY.prototype,"pollOptionsData",void 0);_.Y([_.S("pollEditorInfoWithDefaults"),_.V("design:type",Object),_.V("design:paramtypes",[])],WY.prototype,"pollQuestionData",null);_.Y([_.x({value:0}),_.V("design:type",Number)],WY.prototype,"pollQuestionCharacterCount",void 0);_.Y([_.S("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],WY.prototype,"pollQuestionCharactersRemaining",null);
_.Y([_.x({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.V("design:type",Boolean)],WY.prototype,"overQuestionCharacterLimit",void 0);_.Y([_.S("data.pollEditorInfo"),_.V("design:type",Object),_.V("design:paramtypes",[])],WY.prototype,"pollEditorInfoWithDefaults",null);_.Y([_.x({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.V("design:type",Number)],WY.prototype,"currentNumPollOptions",void 0);
_.Y([_.x({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.V("design:type",Boolean)],WY.prototype,"hasMaxNumPollOptions",void 0);_.Y([_.S("pollEditorInfoWithDefaults","pollOptionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],WY.prototype,"shouldInitializePoll",null);_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"isValidPoll",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],WY.prototype,"createPollRequestInFlight",void 0);_.Y([_.x(),_.V("design:type",Object)],WY.prototype,"selected",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.V("design:type",Boolean)],WY.prototype,"showQuestionErrorMessage",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"dataChanged",null);_.Y([_.Nm("shouldInitializePoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"shouldInitializePollChanged",null);_.Y([_.Nm("isValidPoll"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"isValidPollChanged",null);
_.Y([_.Nm("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"selectedChanged",null);_.Y([_.f3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WY.prototype,"handleTextInputChanged",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"handleServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WY.prototype,"handleServiceRequestCompleted",null);
_.Y([_.f3("yt-live-chat-poll-editor-input-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],WY.prototype,"handlePollEditorInputClosed",null);_.Y([_.f3("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WY.prototype,"onPickerCancelled",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],WY);
_.X(WY,"yt-live-chat-poll-editor-panel-renderer",function(){if(pRM===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;W8U===void 0&&(W8U=document.createElement("template"));var Z=W8U;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);pRM=h}h=pRM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var zux;var ab2;var p9=function(){return _.D.apply(this,arguments)||this};
_.f(p9,_.D);p9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
p9.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ze.Object.defineProperties(p9.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var h,E;return(h=this.data)==null?void 0:(E=h.title)==null?void 0:E.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var h;return _.kB((h=this.data)==null?void 0:h.onTapCommand)}}});
_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],p9.prototype,"ytEndpointBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],p9.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],p9.prototype,"itemId",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],p9.prototype,"hasPromotion",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],p9.prototype,"innertubeCommand",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],p9);
_.X(p9,"yt-live-chat-product-picker-panel-item-view-model",function(){if(ab2===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;zux===void 0&&(zux=document.createElement("template"));var Z=zux;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ab2=h}h=ab2;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cbi;var itx;var GJ=function(){var h=_.D.apply(this,arguments)||this;h.id="product-picker";h.selected=!1;h.closeButtonId="close-button";h.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return h};
_.f(GJ,_.D);_.p=GJ.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var h=_.UB(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");h.length&&h[0].focus()};
_.p.onCloseBuyFlow=function(){_.Ra(this.hostElement,"picker-cancelled")};
_.p.onCloseClick=function(){_.Ra(this.hostElement,"picker-cancelled");var h;((h=this.data)==null?0:h.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.closeButton,_.i_))};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.Ra(this.hostElement,"picker-cancelled")};
GJ.prototype.observeSelected=GJ.prototype.observeSelected;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],GJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GJ.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],GJ.prototype,"id",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],GJ.prototype,"selected",void 0);_.Y([_.x(),_.V("design:type",Object)],GJ.prototype,"closeButtonId",void 0);_.Y([_.Nm("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],GJ.prototype,"observeSelected",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],GJ);
_.X(GJ,"yt-live-chat-product-picker-panel-view-model",function(){if(itx===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;cbi===void 0&&(cbi=document.createElement("template"));var Z=cbi;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);itx=h}h=itx;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var opL;var IbM;var zJ=function(){var h=_.D.apply(this,arguments)||this;h.iconId="";h.icon="";h.disabled=!1;h.systemIcons=_.J("kevlar_system_icons");return h};
_.f(zJ,_.D);_.p=zJ.prototype;_.p.computeIconId=function(h){return h&&h.icon&&h.icon.iconType?h.icon.iconType.toLowerCase():""};
_.p.computeIcon=function(h){return h&&h.icon&&h.icon.iconType?(h=h.icon.iconType.toLowerCase(),(h.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+h):""};
_.p.computeDisabled=function(h){return!!h};
_.p.computeCommand=function(h,E){return E?void 0:h};
_.p.computeTooltip=function(h,E){return E&&h?h:""};
_.p.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ze.Object.defineProperties(zJ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var h="",E,g,Z;if((E=this.data)==null?0:(g=E.text)==null?0:(Z=g.runs)==null?0:Z.length)h=this.data.text.runs[0].text||"";else{var M,W;if((M=this.data)==null?0:(W=M.text)==null?0:W.simpleText)h=this.data.text.simpleText}var z,c,I;if((z=this.data)==null?0:(c=z.subtext)==null?0:(I=c.runs)==null?0:I.length)h&&(h+=". "),h+=this.data.subtext.runs[0].text||"";else{var B,U;if((B=this.data)==null?0:(U=B.subtext)==
null?0:U.simpleText)h&&(h+=". "),h+=this.data.subtext.simpleText}return h}}});
_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],zJ.prototype,"ytEndpointBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zJ.prototype,"data",void 0);_.Y([_.x({computed:"computeIconId(data)",reflectToAttribute:!0}),_.V("design:type",Object)],zJ.prototype,"iconId",void 0);
_.Y([_.x({computed:"computeIcon(data)",reflectToAttribute:!0}),_.V("design:type",Object)],zJ.prototype,"icon",void 0);_.Y([_.x({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.V("design:type",Object)],zJ.prototype,"disabled",void 0);_.Y([_.x({computed:"computeCommand(data.command, disabled)"}),_.V("design:type",Object)],zJ.prototype,"command",void 0);_.Y([_.x({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.V("design:type",String)],zJ.prototype,"tooltip",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],zJ.prototype,"systemIcons",void 0);_.Y([_.S("data.text","data.subtext"),_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],zJ.prototype,"ariaLabel",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],zJ);
_.X(zJ,"yt-live-chat-product-button-renderer",function(){if(IbM===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;opL===void 0&&(opL=document.createElement("template"));var Z=opL;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);IbM=h}h=IbM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var RuM;var Pn0;var aL=function(){var h=_.D.apply(this,arguments)||this;h.selected=!1;h.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 h};
_.f(aL,_.D);_.p=aL.prototype;_.p.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.computeId=function(h){return h.id||""};
_.p.onCloseClick=function(){_.Ra(this.hostElement,"picker-cancelled")};
_.p.observeSelected=function(){this.selected&&this.hostElement.focus();var h=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");h.length&&h[0].focus()};
_.p.onCloseBuyFlow=function(){_.Ra(this.hostElement,"picker-cancelled")};
_.p.onCloseEngageWithAudienceEditorPanels=function(){_.Ra(this.hostElement,"picker-cancelled")};
aL.prototype.observeSelected=aL.prototype.observeSelected;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],aL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],aL.prototype,"data",void 0);
_.Y([_.x({computed:"computeId(data)",reflectToAttribute:!0}),_.V("design:type",String)],aL.prototype,"id",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],aL.prototype,"selected",void 0);_.Y([_.Nm("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],aL.prototype,"observeSelected",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],aL);
_.X(aL,"yt-live-chat-product-picker-renderer",function(){if(Pn0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;RuM===void 0&&(RuM=document.createElement("template"));var Z=RuM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Pn0=h}h=Pn0;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var B2F;var Us2;var L8r;var jfG;var cY=function(){return _.D.apply(this,arguments)||this};
_.f(cY,_.D);cY.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()};
cY.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
cY.prototype.created=function(){this.ids={background:_.BD(),maskOne:_.BD(),maskTwo:_.BD(),gradient:_.BD(),largeBackground:_.BD(),largeGradientOne:_.BD(),largeGradientTwo:_.BD(),largeGradientPath:_.BD()}};
cY.prototype.maybeLoadAnimationBackground=cY.prototype.maybeLoadAnimationBackground;_.Y([_.x({value:!1}),_.V("design:type",Boolean)],cY.prototype,"useLargeBackground",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],cY.prototype,"useAnimationBackground",void 0);_.Y([_.x({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.V("design:type",Boolean)],cY.prototype,"useRegularBackground",void 0);
_.Y([_.x(),_.V("design:type",Object)],cY.prototype,"ids",void 0);_.Y([_.x(),_.V("design:type",Object)],cY.prototype,"lottieAnimation",void 0);_.Y([_.Sg("#animation-background"),_.V("design:type",HTMLDivElement)],cY.prototype,"animationBackground",void 0);_.Y([_.Nm("useAnimationBackground"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cY.prototype,"maybeLoadAnimationBackground",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],cY);
_.X(cY,"yt-live-interactivity-component-background",function(){if(jfG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;L8r===void 0&&(L8r=document.createElement("template"));var Z=L8r;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);jfG=h}h=jfG;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var iT=function(){var h=_.D.apply(this,arguments)||this;h.characterCount=0;h.showInputErrorMessage=!1;h.startQnaRequestInFlight=!1;h.modern=_.J("web_button_rework_with_live");h.buttonOverrides={style:"mono",type:"filled"};h.closeButtonOverrides={iconPosition:"icon-only"};h.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return h};
_.f(iT,_.D);_.p=iT.prototype;
_.p.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.p.onCharacterCountChanged=function(h){var E,g,Z,M,W=(g=_.e(this==null?void 0:(E=this.data)==null?void 0:E.creatorCallForQuestions,bMU))==null?void 0:(Z=g.inputField)==null?void 0:(M=Z.liveChatTextInputFieldRenderer)==null?void 0:M.maxCharacterLimit,z,c;W!=null&&(h==null?void 0:(z=h.detail)==null?void 0:z.characterCount)!=null&&_.e(this==null?void 0:(c=this.data)==null?void 0:c.startButton,_.Gh)&&(E=h.detail.characterCount>W,this.set("data.startButton.buttonRenderer.isDisabled",h.detail.characterCount===
0||E),this.showInputErrorMessage=E)};
_.p.onCloseClick=function(){_.Ra(this.hostElement,"picker-cancelled");_.BX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.onPickerCancelled=function(){var h=_.UB(this.hostElement).querySelector("#qna-creator-text-input-field");h&&h.setLiveChatRichMessageInput(null)};
_.p.handleOpenQnaStartPanel=function(){var h=_.UB(this.hostElement).querySelector("#qna-creator-text-input-field");h&&h.focus()};
_.p.handleStartButtonAction=function(h){var E=this;if(h.detail.actionName==="yt-service-request"&&(h.stopPropagation(),h=h.detail.args[1])){var g=_.UB(this.hostElement).querySelector("#qna-creator-text-input-field"),Z;(g==null?0:(Z=g.liveChatRichMessageInput)==null?0:Z.textSegments)&&g.liveChatRichMessageInput.textSegments.length!==0&&(Z={rich_message:_.FN(g.liveChatRichMessageInput)},_.LZ(this.hostElement,[h,Z]).then(function(){_.Ra(E.hostElement,"picker-cancelled")}))}};
_.p.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.p.handleServiceRequestCompleted=function(h){var E;h=h==null?void 0:(E=h.detail)==null?void 0:E.data;(h==null?0:h.actions)&&h.actions.length>0?this.startQnaRequestInFlight=!1:_.BX(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.p.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
iT.prototype.handleServiceRequestError=iT.prototype.handleServiceRequestError;iT.prototype.handleServiceRequestCompleted=iT.prototype.handleServiceRequestCompleted;iT.prototype.handleServiceRequestSent=iT.prototype.handleServiceRequestSent;iT.prototype.onPickerCancelled=iT.prototype.onPickerCancelled;iT.prototype.onCharacterCountChanged=iT.prototype.onCharacterCountChanged;_.Y([_.x(),_.V("design:type",Object)],iT.prototype,"characterCount",void 0);
_.Y([_.x(),_.V("design:type",Object)],iT.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iT.prototype,"showInputErrorMessage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iT.prototype,"startQnaRequestInFlight",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iT.prototype,"modern",void 0);_.Y([_.x(),_.V("design:type",Object)],iT.prototype,"buttonOverrides",void 0);
_.Y([_.x(),_.V("design:type",Object)],iT.prototype,"closeButtonOverrides",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],iT.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.t(_.BB.YtLiveChatItemBehavior),_.V("design:type",_.UE)],iT.prototype,"ytLiveChatItemBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],iT.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.f3("yt-live-chat-text-input-field-renderer-character-count-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iT.prototype,"onCharacterCountChanged",null);_.Y([_.f3("picker-cancelled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iT.prototype,"onPickerCancelled",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iT.prototype,"handleServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iT.prototype,"handleServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iT.prototype,"handleServiceRequestError",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],iT);
_.X(iT,"yt-live-chat-qna-start-panel-renderer",function(){if(Us2===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;B2F===void 0&&(B2F=document.createElement("template"));var Z=B2F;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Us2=h}h=Us2;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var dsF;var Cno;var oL=function(){return _.D.apply(this,arguments)||this};
_.f(oL,_.D);oL.prototype.dismiss=function(){_.Ra(this.hostElement,"yt-live-chat-error-message-dismiss")};
oL.prototype.edit=function(){_.Ra(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.Y([_.x(),_.V("design:type",Object)],oL.prototype,"data",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],oL);
_.X(oL,"yt-live-chat-text-actions-error-message-renderer",function(){if(Cno===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;dsF===void 0&&(dsF=document.createElement("template"));var Z=dsF;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Cno=h}h=Cno;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var Jbx;var eur;var q6x;var fbG;var IL=function(){var h=_.D.apply(this,arguments)||this;h.isDarkTheme=document.documentElement.hasAttribute("dark");h.newnessDotEligible=!1;return h};
_.f(IL,_.D);IL.prototype.sendReaction=function(){var h,E,g=((h=this.data)==null?void 0:h.emojiId)||((E=this.data)==null?void 0:E.emoteId),Z;g&&((Z=this.data)==null?0:Z.shouldTriggerAnimation)&&_.BX(this.hostElement,"yt-create-user-reaction-animation",[g]);var M;(h=_.kB((M=this.data)==null?void 0:M.onTap))&&_.qB(h,this.hostElement);this.showNewnessDot&&_.BX(this.hostElement,"yt-hide-newness-dot")};
IL.prototype.onClick=function(h){(!h||h.clientX||h.clientY)&&this.sendReaction()};
IL.prototype.onKeyDown=function(h){h.key!=="Enter"&&h.key!==" "||h.repeat||this.sendReaction()};
_.ze.Object.defineProperties(IL.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!(((h=this.data)==null?0:h.emojiId)||((E=this.data)==null?0:E.emoteId))}}});
_.Y([_.x(),_.V("design:type",Object)],IL.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],IL.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],IL.prototype,"newnessDotEligible",void 0);_.Y([_.S("data.maybeShowNewnessDot"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IL.prototype,"showNewnessDot",null);_.Y([_.S("data.emojiId","data.emoteId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],IL.prototype,"useYtImage",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],IL);
_.X(IL,"yt-reaction-control-panel-button-view-model",function(){if(fbG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;q6x===void 0&&(q6x=document.createElement("template"));var Z=q6x;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);fbG=h}h=fbG;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var N22;var t8j;var RL=function(){var h=_.D.apply(this,arguments)||this;h.reactionControlPanelExpanded=!1;h.isDarkTheme=document.documentElement.hasAttribute("dark");h.newnessDotEligible=!1;return h};
_.f(RL,_.D);_.p=RL.prototype;_.p.expandedButtonsChanged=function(){var h,E;_.Ja(this.hostElement,{"--expanded-buttons-height":((E=(h=this.expandedButtonsData)==null?void 0:h.length)!=null?E:0)*36+"px"})};
_.p.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.p.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.p.onMouseLeave=function(){var h=this;this.collapseTimer=setTimeout(function(){h.reactionControlPanelExpanded=!1},500)};
_.p.onFocusIn=function(){this.onMouseEnter()};
_.p.onFocusOut=function(){this.onMouseLeave()};
_.p.onCollapsedButtonFocusIn=function(){var h=this;setTimeout(function(){var E;(E=h.expandedButtons.querySelector("button"))==null||E.focus()},100)};
_.p.onCollapsedButtonFocusOut=function(h){h.stopPropagation()};
_.ze.Object.defineProperties(RL.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var h,E;return _.Kt.unsafeClone((h=this.liveReactionsData)==null?void 0:h.emojiButtonData)||((E=this.data)==null?void 0:E.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var h;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((h=this.data)==null||!h.maybeShowNewnessDot)}}});
RL.prototype.expandedButtonsChanged=RL.prototype.expandedButtonsChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],RL.prototype,"ytLiveChatReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],RL.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"reactionControlPanelExpanded",void 0);_.Y([_.x({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NIF}),_.V("design:type",Object)],RL.prototype,"liveReactionsData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],RL.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],RL.prototype,"newnessDotEligible",void 0);
_.Y([_.S("liveReactionsData","data.expandedButtons"),_.V("design:type",Object),_.V("design:paramtypes",[])],RL.prototype,"expandedButtonsData",null);_.Y([_.S("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.x({reflectToAttribute:!0}),_.V("design:type",Object),_.V("design:paramtypes",[])],RL.prototype,"showNewnessDot",null);_.Y([_.Sg("#expanded-buttons"),_.V("design:type",HTMLElement)],RL.prototype,"expandedButtons",void 0);
_.Y([_.Nm("expandedButtonsData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],RL.prototype,"expandedButtonsChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],RL);
_.X(RL,"yt-reaction-control-panel-view-model",function(){if(t8j===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;N22===void 0&&(N22=document.createElement("template"));var Z=N22;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);t8j=h}h=t8j;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var PY=new _.sY("yt-live-chat"),S6L=Date.parse("2024-7-24"),BY=function(){var h=_.D.apply(this,arguments)||this;h.emojiManager=_.PB;h.newnessDotEligible=!1;h.newnessDotImpressionCounted=!1;h.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return h};
_.f(BY,_.D);_.p=BY.prototype;_.p.emojiCustomizationEnabledChanged=function(){var h;((h=this.data)==null?0:h.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((h=PY.getCreationTime("emoji-customization-count"))&&h<S6L&&PY.set("emoji-customization-count","0"),h=Number(PY.get("emoji-customization-count"))||0,h<3&&(this.newnessDotEligible=!0,PY.set("emoji-customization-count",(h+1).toString())),this.newnessDotImpressionCounted=!0)};
_.p.hideNewnessDot=function(){this.newnessDotEligible=!1;PY.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.p.handleReactionsMute=function(h){var E=_.sH(),g=_.Uz(206221),Z={checkboxData:{state:h?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};E&&_.Z$(E,g,Z);this.reactionsMuted=h};
_.p.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.p.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.ze.Object.defineProperties(BY.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var h;return(!((h=this.liveReactionsData)==null||!h.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
BY.prototype.liveReactionsSettingChanged=BY.prototype.liveReactionsSettingChanged;BY.prototype.emojiCustomizationEnabledChanged=BY.prototype.emojiCustomizationEnabledChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.ik),_.V("design:type",Object)],BY.prototype,"ytLiveChatReduxBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],BY.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BY.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",_.oq)],BY.prototype,"emojiManager",void 0);_.Y([_.x(),_.V("design:type",Object)],BY.prototype,"newnessDotEligible",void 0);_.Y([_.x(),_.V("design:type",Object)],BY.prototype,"newnessDotImpressionCounted",void 0);
_.Y([_.x({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:txF}),_.V("design:type",Boolean)],BY.prototype,"liveReactionsSetting",void 0);_.Y([_.x({selectorArgs:["data.liveReactionsDataEntityKey"],selector:NIF}),_.V("design:type",Object)],BY.prototype,"liveReactionsData",void 0);_.Y([_.x({value:function(){var h=_.J("enable_lwe_web_mute"),E=PY.get("allow-reactions");return E===void 0?!1:!E&&h}}),
_.V("design:type",Boolean)],BY.prototype,"reactionsMuted",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BY.prototype,"liveReactionsEnabled",null);_.Y([_.Nm("data.emojiCustomizationEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BY.prototype,"emojiCustomizationEnabledChanged",null);
_.Y([_.Nm("liveReactionsEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BY.prototype,"liveReactionsSettingChanged",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],BY);
_.X(BY,"yt-reaction-control-panel-overlay-view-model",function(){if(eur===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Jbx===void 0&&(Jbx=document.createElement("template"));var Z=Jbx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);eur=h}h=eur;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var xsj={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(h){var E=this.$.pickers.selected;if(E){_.UB(this.hostElement).removeAttribute(E+"-open");var g="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(g="#picker-buttons",E==="emoji"&&_.UB(this.hostElement).querySelector("#emoji-picker-button")&&(g="#emoji-picker-button"));if(g=_.UB(this.hostElement).querySelector(g).querySelector("#"+E))g.active=!1}g=h;E==h&&(g=null);E!=
h&&_.UB(this.hostElement).setAttribute(h+"-open","");this.$.pickers.selected=g;_.BX(this.hostElement,"yt-live-chat-picker-changed",[g])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var UM=function(){var h=_.D.apply(this,arguments)||this;h.numSentMessages=0;h.timeoutDurationMs=0;h.timeoutMs=0;h.lastTimeoutTimeMs=0;h.pendingMessageId="";h.hasFiredInitialFocusActions=!1;h.isBeforeFocusEnabled=!0;h.id="";h.characterCount=0;h.maxCharacterLimit=0;h.remainingCharacterCount=0;h.inputExpanded=!1;h.buttonOverrides={iconPosition:"icon-only"};h.inReplyPanel=!1;h.countdownRatio=0;h.isTooltipVisible=!1;h.tooltipTimeout=1E4;h.systemIcons=_.J("kevlar_system_icons");h.tallerEmojiPicker=_.J("live_chat_taller_emoji_picker");
h.sendReplyMessageInFlight=!1;h.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"};h.onResize=function(){h.maybeToggleCharacterCount()};
return h};
_.f(UM,_.D);_.p=UM.prototype;
_.p.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.p.attached=function(){window.addEventListener("resize",this.onResize)};
_.p.detached=function(){window.removeEventListener("resize",this.onResize)};
_.p.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.p.sendMessage=function(){var h=this,E,g,Z,M;return _.a(function(W){if(h.sendDisabled)return W.return();h.isTooltipVisible&&_.BX(h.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(h.data.sendButton&&h.data.sendButton.buttonRenderer){h.input.completeEmojis();E=h.data.sendButton.buttonRenderer.serviceEndpoint;if(!E)return W.return();Z=((g=_.e(E,_.XCf))==null?void 0:g.clientIdPrefix)||"";M={client_message_id:Z+String(h.numSentMessages++),rich_message:_.FN(h.input.liveChatRichMessageInput)};
h.pendingMessageId=M.client_message_id;h.inReplyPanel&&(h.sendReplyMessageInFlight=!0);_.LZ(h.hostElement,[E,M]);h.input.setLiveChatRichMessageInput(null)}_.SK(W)})};
_.p.handleSendButtonAction=function(h){h.detail.actionName==="yt-service-request"&&(h.stopPropagation(),this.sendMessage())};
_.p.onSendCompleted=function(h,E){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(h=this.get("timeoutDurationUsec",E.data))&&this.handleTimeout(Number(h)/1E3);this.errorMessage=this.get("errorMessage",E.data);this.pendingMessageId=""};
_.p.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.BX(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.p.handlePickerButtonToggle=function(h){h=h.detail.targetId;this.ytPickerBehavior.togglePicker_(h);if(h==="emoji")this.input.focus();else if(h==="qna-start-panel"){var E,g;(E=_.UB(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(g=E.querySelector("#qna-creator-text-input-field"))==null||g.focus()}};
_.p.onComponentReplaced=function(h){var E,g;h.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((E=h.replacement.liveChatMessageInputRenderer)==null?0:(g=E.headerRenderer)==null?0:g.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.p.onEmojiSelect=function(h){this.input.focus();this.input.insertEmoji(h.detail)};
_.p.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.p.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.BX(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.BX(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.p.onOpenPopupAction=function(h,E){var g=this;E===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.BX(g.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.p.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.p.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.p.focusChanged=function(){this.maybeToggleCharacterCount()};
_.p.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var h=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",h>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.p.computeId=function(){return this.data&&this.data.targetId||""};
_.p.computeSendDisabled=function(h,E,g,Z){h=!!(!h||E&&h>E||Z);(E=_.UB(this.hostElement).querySelector("#send-button"))&&E.children.length&&(E.children[0].disabled=h);return h};
_.p.handleTimeout=function(h){this.timeoutDurationMs=this.timeoutMs=h;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.p.updateTimeout=function(h){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(h-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=h,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.p.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.p.onErrorMessageEdit=function(h){this.input.setLiveChatRichMessageInput(h.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.p.errorMessageChanged=function(){var h=this;_.hW(function(){_.BX(h.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.p.computeAuthorNameColor=function(h){var E;if(_.J("live_chat_author_name_color_usernames")&&(h==null?0:(E=h.authorName)==null?0:E.simpleText))return _.y3$(_.F0V(h.authorName.simpleText));if(_.J("live_chat_seed_color_usernames")&&(h==null?0:h.authorSeedColorArgb))return _.y3$(_.jQ(h.authorSeedColorArgb));if(_.J("live_chat_colored_usernames"))return"#cc0000";var g;return _.J("live_chat_simple_color_usernames")&&(h==null?0:(g=h.authorName)==null?0:g.simpleText)&&(h==null?0:h.authorUsernameColorLight)&&
(h==null?0:h.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.jQ(h.authorUsernameColorDark):_.jQ(h.authorUsernameColorLight):""};
_.p.onIsTooltipVisibleChanged=function(){var h=_.UB(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){h.hidden=!1;h.setAttribute("role","alert")},0):(h.hidden=!0,h.removeAttribute("role"))};
_.p.onFocusedChanged=function(h){this.inputFocused=h.detail.value};
_.ze.Object.defineProperties(UM.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 h;return!((h=this.data)==null||!h.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.pickers)==null?void 0:E.find(function(g){return g.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var h=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return h?this.ytRendererBehavior.getSimpleString(h):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
UM.prototype.onIsTooltipVisibleChanged=UM.prototype.onIsTooltipVisibleChanged;UM.prototype.errorMessageChanged=UM.prototype.errorMessageChanged;UM.prototype.onErrorMessageEdit=UM.prototype.onErrorMessageEdit;UM.prototype.onErrorMessageDismiss=UM.prototype.onErrorMessageDismiss;UM.prototype.focusChanged=UM.prototype.focusChanged;UM.prototype.characterCountChanged=UM.prototype.characterCountChanged;UM.prototype.onEmojiSelect=UM.prototype.onEmojiSelect;UM.prototype.handlePickerButtonToggle=UM.prototype.handlePickerButtonToggle;
UM.prototype.onSendError=UM.prototype.onSendError;UM.prototype.onSendCompleted=UM.prototype.onSendCompleted;UM.prototype.sendMessage=UM.prototype.sendMessage;UM.prototype.dataChanged=UM.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],UM.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(xsj.YtPickerBehavior),_.V("design:type",Object)],UM.prototype,"ytPickerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],UM.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.oU.YtLiveChatTooltipTargetingBehavior),_.V("design:type",Object)],UM.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"hasFiredInitialFocusActions",void 0);
_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"isBeforeFocusEnabled",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"data",void 0);_.Y([_.x({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.V("design:type",Object)],UM.prototype,"id",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"characterCount",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"maxCharacterLimit",void 0);
_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"remainingCharacterCount",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],UM.prototype,"inputExpanded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],UM.prototype,"inputFocused",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],UM.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.Y([_.x(),_.V("design:type",_.dP)],UM.prototype,"participantsManager",void 0);
_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"buttonOverrides",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],UM.prototype,"inReplyPanel",void 0);_.Y([_.S("characterCount, maxCharacterLimit, countdownActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"sendDisabled",null);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"countdownRatio",void 0);
_.Y([_.S("countdownRatio"),_.V("design:type",Number),_.V("design:paramtypes",[])],UM.prototype,"countdownStrokeDashOffset",null);_.Y([_.S("countdownRatio"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"countdownActive",null);_.Y([_.S("data.interactionMessage"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"hasInteractionMessage",null);
_.Y([_.S("data.emojiPickerButton"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"hasEmojiPickerButton",null);_.Y([_.S("data, characterCount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"showAvatar",null);_.Y([_.S("data.pickers"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UM.prototype,"hasProductPickerPanelViewModel",null);
_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"errorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"genericErrorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"isTooltipVisible",void 0);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"tooltipTimeout",void 0);_.Y([_.S("data.onInitialFocusCommand"),_.V("design:type",String),_.V("design:paramtypes",[])],UM.prototype,"tooltipMessage",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],UM.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],UM.prototype,"tallerEmojiPicker",void 0);_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],UM.prototype,"authorNameColor",null);_.Y([_.x(),_.V("design:type",Object)],UM.prototype,"sendReplyMessageInFlight",void 0);_.Y([_.Sg("#input"),_.V("design:type",_.lKB)],UM.prototype,"input",void 0);
_.Y([_.Sg("#count"),_.V("design:type",HTMLElement)],UM.prototype,"count",void 0);_.Y([_.Sg("#input-container"),_.V("design:type",HTMLElement)],UM.prototype,"inputContainer",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"dataChanged",null);_.Y([_.f3("yt-live-chat-send-message"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],UM.prototype,"sendMessage",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.Zd]),_.V("design:returntype")],UM.prototype,"onSendCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"onSendError",null);
_.Y([_.f3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],UM.prototype,"handlePickerButtonToggle",null);_.Y([_.f3("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],UM.prototype,"onEmojiSelect",null);
_.Y([_.Nm("characterCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"characterCountChanged",null);_.Y([_.Nm("inputFocused"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"focusChanged",null);_.Y([_.f3("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"onErrorMessageDismiss",null);
_.Y([_.f3("yt-live-chat-error-message-edit"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],UM.prototype,"onErrorMessageEdit",null);_.Y([_.Nm("errorMessage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"errorMessageChanged",null);_.Y([_.Nm("isTooltipVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UM.prototype,"onIsTooltipVisibleChanged",null);
_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],UM);
_.X(UM,"yt-live-chat-message-input-renderer",function(){if(bXM===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;TxM===void 0&&(TxM=document.createElement("template"));var Z=TxM;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);bXM=h}h=bXM;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var wRa;var DsF;var L9=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.firedOnClickCommand=!1;h.inReplyPanel=!1;return h};
_.f(L9,_.D);
L9.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"}}}};
L9.prototype.onButtonToggle=function(h){h.target.disabled||this.ytPickerBehavior.togglePicker_(h.detail.targetId)};
L9.prototype.onClick=function(){var h=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.BX(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return h.firedOnClickCommand=!1},5E3))};
_.ze.Object.defineProperties(L9.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.panels)==null?void 0:E.find(function(g){return g.liveChatProductPickerPanelViewModel}))!==void 0}}});
L9.prototype.onButtonToggle=L9.prototype.onButtonToggle;_.Y([_.t(xsj.YtPickerBehavior),_.V("design:type",Object)],L9.prototype,"ytPickerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],L9.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L9.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Object)],L9.prototype,"firedOnClickCommand",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],L9.prototype,"inReplyPanel",void 0);_.Y([_.S("data.pickers"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],L9.prototype,"hasProductPickerPanelViewModel",null);
_.Y([_.f3("yt-live-chat-icon-toggle-button-renderer-toggle"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],L9.prototype,"onButtonToggle",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],L9);
_.X(L9,"yt-live-chat-restricted-participation-renderer",function(){if(DsF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;wRa===void 0&&(wRa=document.createElement("template"));var Z=wRa;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);DsF=h}h=DsF;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var jU=function(){var h=_.D.apply(this,arguments)||this;h.genericErrorMessage=_.MR("Error, try again.");h.inReplyPanel=!1;h.hideBorder=!1;return h};
_.f(jU,_.D);jU.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}}}}}};
_.ze.Object.defineProperties(jU,{template:{configurable:!0,enumerable:!0,get:function(){return VKU()}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jU.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],jU.prototype,"genericErrorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],jU.prototype,"inReplyPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jU.prototype,"hideBorder",void 0);
_.Y([_.yc({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],jU);_.X(jU,"yt-live-chat-engagement-panel-input-renderer",function(){return VKU()},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var lb2,rbo;lb2=_.Uz(115994);rbo=_.Uz(115993);_.msi=function(h,E,g){var Z=this;var M=g.dragDownAction;this.layer=0;this.JSC$22572_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$22572_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var W=_.SQ();_.Ht(W,lb2,this.layer);_.Ht(W,rbo,this.layer);this.dragDownAction=function(){M();_.TT(W,{visualElement:Z.fullscreen?lb2:rbo})};
this.gesture=new _.Om(h,E,this.JSC$22572_watchConfig,"pandown");this.attach()};
_.msi.prototype.attach=function(){this.gesture.attach()};
_.msi.prototype.detach=function(){this.gesture.detach()};
_.msi.prototype.update=function(h){this.fullscreen=h;this.gesture.config=h?this.JSC$22572_watchFullScreenConfig:this.JSC$22572_watchConfig};var vpF={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(h){if(h&&h.length==1&&Array.isArray(h[0].loggingUrls)){h=_.Kt.unsafeClone(h[0]);var E=this.macros||{},g=this.getAdModuleClient_();if(!g)return _.dC();h.loggingUrls.forEach(function(Z){if(Z.baseUrl){var M=Z.baseUrl;var W=E;W=W===void 0?{}:W;M=g.getOptions().includes("replaceUrlMacros")?_.bEl(g,"replaceUrlMacros",{url:M,additionalMapping:W}):M;Z.baseUrl=M}},this);
h=[h]}return _.LZ(this.hostElement,h)},
getAdModuleClient_:function(){var h=_.zD(this);return h?(h=h.getPlayer())?new _.Qb(h):null:null}}]};var HtL;var d3=function(){var h=_.D.apply(this,arguments)||this;h.isCollapsed=!1;h.modernPanels=_.J("kevlar_watch_modern_panels");h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return h};
_.f(d3,_.D);_.p=d3.prototype;_.p.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.onDonateTap=function(){var h=this.get("data.donateButton.buttonRenderer.command");if(h){var E=_.sH(),g=this.get("data.donateButton.buttonRenderer.trackingParams");E&&g&&_.Z$(E,_.rp(g));this.ytOpenPopupBehavior.openPopup(h)}};
_.p.onShowMore=function(){this.isCollapsed=!1;var h=_.sH(),E=this.get("data.expandButton.buttonRenderer.trackingParams");h&&E&&_.Z$(h,_.rp(E))};
_.p.onShowLess=function(){this.isCollapsed=!0};
_.p.dataChanged=function(){_.Ja(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.handleUpdate=function(h){if(h=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",h))this.set("data.startLabel",h.startLabel),this.set("data.endLabel",h.endLabel),this.set("data.progress",h.progress),this.set("data.amountRaisedLabel",h.amountRaisedLabel),this.dataChanged()};
_.p.handleOpenPopupAction=function(h){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",h)&&_.BX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.p.computeHeaderBackgroundUrl=function(h,E){if(h)return E?h.headerBackgroundDarkUrl:h.headerBackgroundUrl};
_.p.isProgressBarVisible=function(h){return!(!h||h.progress===void 0)};
_.p.headerBackgroundClass=function(){return _.nF("HTML_DIR")==="rtl"?"flip":""};
d3.prototype.dataChanged=d3.prototype.dataChanged;_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],d3.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],d3.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],d3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],d3.prototype,"isCollapsed",void 0);_.Y([_.x({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.V("design:type",String)],d3.prototype,"headerBackgroundUrl",void 0);_.Y([_.x(),_.V("design:type",Boolean)],d3.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],d3.prototype,"modernPanels",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d3.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],d3);
_.X(d3,"ytd-donation-shelf-renderer",function(){if(HtL!==void 0)return HtL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HtL=h},{mode:1});var $sK;var K8G=function(){return _.D.apply(this,arguments)||this};
_.f(K8G,_.D);_.Y([_.x(),_.V("design:type",Object)],K8G.prototype,"data",void 0);_.Y([_.K({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],K8G);
_.X(K8G,"ytd-donation-unavailable-renderer",function(){if($sK!==void 0)return $sK;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $sK=h},{mode:1});var Oto;var C9=function(){return _.D.apply(this,arguments)||this};
_.f(C9,_.D);C9.prototype.computeIconType=function(h){return h?"yt-icons:"+h.toLowerCase():null};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],C9.prototype,"data",void 0);_.Y([_.K({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],C9);
_.X(C9,"ytd-limited-state-message-renderer",function(){if(Oto!==void 0)return Oto;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Oto=h},{mode:1});var npr;var Jw=function(){return _.D.apply(this,arguments)||this};
_.f(Jw,_.D);Jw.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Jw.prototype.onTap=function(h){var E=this.data&&this.data.endpoint;E&&!_.MI(_.Gw(h),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:E})};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Jw.prototype,"data",void 0);_.Y([_.K({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Jw);
_.X(Jw,"ytd-autotagging-metadata-renderer",function(){if(npr!==void 0)return npr;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return npr=h},{mode:1});var XR2;var eU=function(){return _.D.apply(this,arguments)||this};
_.f(eU,_.D);eU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eU.prototype,"data",void 0);_.Y([_.K({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],eU);
_.X(eU,"ytd-autotagging-metadata-row-renderer",function(){if(XR2!==void 0)return XR2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return XR2=h},{mode:1});var Y6r;var sfr;var qF=function(){var h=_.D.apply(this,arguments)||this;h.engagementPanelContent=!1;return h};
_.f(qF,_.D);qF.prototype.computeHasDividerLine=function(h,E){return h&&!E};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qF.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.V("design:type",Boolean)],qF.prototype,"hasDividerLine",void 0);_.Y([_.x(),_.V("design:type",Object)],qF.prototype,"engagementPanelContent",void 0);
_.Y([_.K({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],qF);
_.X(qF,"ytd-metadata-row-header-renderer",function(){if(sfr!==void 0)return sfr;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return sfr=h},{mode:1});var V82;var f9=function(){return _.D.apply(this,arguments)||this};
_.f(f9,_.D);f9.prototype.computeHasDividerLine=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],f9.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],f9.prototype,"hasDividerLine",void 0);_.Y([_.K({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],f9);
_.X(f9,"ytd-metadata-row-renderer",function(){if(V82!==void 0)return V82;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return V82=h},{mode:1});var kR2;var ybG=function(){return _.D.apply(this,arguments)||this};
_.f(ybG,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ybG.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ybG.prototype,"data",void 0);_.Y([_.K({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],ybG);
_.X(ybG,"ytd-metadata-with-image-row-renderer",function(){if(kR2!==void 0)return kR2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kR2=h},{mode:1});var F8L;var NF=function(){var h=_.D.apply(this,arguments)||this;h.rounded=!0;h.fixie=!1;h.fullWidth=!1;return h};
_.f(NF,_.D);_.p=NF.prototype;_.p.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.onDataChanged=function(){var h=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(E){h.onEndpointLinkKeyPress(E)}))};
_.p.onEndpointLinkKeyPress=function(h){h.target===this.endpointLink&&h.keyCode===13&&_.Ra(this.hostElement,"click")};
_.p.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var h;if((h=this.data)==null?0:h.endpoint)_.jj(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.p.onYtNavigate=function(h){this.endpointHref||(h.stopPropagation(),h.preventDefault())};
_.p.onInformationButtonContainerClick=function(h){h.target.id!=="information-button-container"&&(h.stopPropagation(),h.preventDefault())};
_.p.computeStyle=function(h){return h};
_.p.computeIsThumbnailStyle=function(h){return h==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.p.computeThumbnailWidth=function(h){switch(h){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.p.computeThumbnailObjectFit=function(h){switch(h){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ze.Object.defineProperties(NF.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?0:h.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
NF.prototype.onYtNavigate=NF.prototype.onYtNavigate;NF.prototype.onClick=NF.prototype.onClick;NF.prototype.onDataChanged=NF.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],NF.prototype,"componentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],NF.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],NF.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],NF.prototype,"componentStyle",void 0);_.Y([_.x({computed:"computeIsThumbnailStyle(data.style)"}),_.V("design:type",Boolean)],NF.prototype,"isThumbnailStyle",void 0);_.Y([_.x({computed:"computeThumbnailObjectFit(data.style)"}),_.V("design:type",String)],NF.prototype,"thumbnailObjectFit",void 0);
_.Y([_.x({computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],NF.prototype,"thumbnailWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NF.prototype,"rounded",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NF.prototype,"fixie",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NF.prototype,"fullWidth",void 0);_.Y([_.Sg("#endpoint-link"),_.V("design:type",HTMLAnchorElement)],NF.prototype,"endpointLink",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NF.prototype,"onDataChanged",null);_.Y([_.S("data.endpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],NF.prototype,"endpointHref",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],NF.prototype,"onClick",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],NF.prototype,"onYtNavigate",null);_.Y([_.K({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],NF);
_.X(NF,"ytd-rich-metadata-renderer",function(){if(F8L!==void 0)return F8L;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return F8L=h},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var Ab2;var tw=function(){var h=_.D.apply(this,arguments)||this;h.fixie=!1;h.fullWidth=!1;return h};
_.f(tw,_.D);tw.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
tw.prototype.computeHasDividerLine=function(h){return h};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tw.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.V("design:type",Boolean)],tw.prototype,"hasDividerLine",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],tw.prototype,"fixie",void 0);_.Y([_.x(),_.V("design:type",Object)],tw.prototype,"fullWidth",void 0);
_.Y([_.K({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],tw);
_.X(tw,"ytd-rich-metadata-row-renderer",function(){if(Ab2!==void 0)return Ab2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Ab2=h},{mode:1});var SU=function(){var h=_.D.apply(this,arguments)||this;h.engagementPanelContent=!1;h.fixie=!1;h.fullWidth=!1;return h};
_.f(SU,_.D);
SU.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"}}}};
SU.prototype.computeCollapsibleItems=function(h,E,g){return h===void 0||E===void 0||g===void 0||g?[]:h.slice(E)};
SU.prototype.computeAlwaysShownItems=function(h,E){return h&&h.length?h.slice(0,E):[]};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SU.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],SU.prototype,"collapsed",void 0);
_.Y([_.x({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.V("design:type",Array)],SU.prototype,"alwaysShownItems",void 0);_.Y([_.x({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.V("design:type",Array)],SU.prototype,"collapsibleItems",void 0);_.Y([_.x(),_.V("design:type",Object)],SU.prototype,"engagementPanelContent",void 0);_.Y([_.x(),_.V("design:type",Object)],SU.prototype,"fixie",void 0);
_.Y([_.x(),_.V("design:type",Object)],SU.prototype,"fullWidth",void 0);_.Y([_.K({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],SU);
_.X(SU,"ytd-metadata-row-container-renderer",function(){if(Y6r!==void 0)return Y6r;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Y6r=h},{mode:1});var T2U;var xb=function(){var h=_.D.apply(this,arguments)||this;h.currentPageUrl="";h.baseUrl="";h.isHiddenByUser=null;h.hidden=!1;h.showAboveScrim=!1;h.watchNextGrid=_.J("kevlar_watch_grid");h.modernButtons=_.J("web_modern_buttons");h.roundedContainer=!0;h.noBorder=!1;h.roundBackground=!_.J("live_chat_round_background_killswitch");h.overflowHideChat=_.J("live_chat_overflow_hide_chat");h.forceDarkTheme=!1;h.theaterWatchWhile=!1;h.isListeningForPlayerProgress=!1;h.JSC$22608_playerEvents=new Map;h.isFrameReady=
!1;h.player=null;h.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 h};
_.f(xb,_.D);_.p=xb.prototype;_.p.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.U7(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.p.created=function(){var h=this;this.handleIframeEventListener=function(E){h.handleIframeEvent(E)};
this.handleKeyboardEventListener=function(E){h.handleKeyboardEvent(E)};
this.JSC$22608_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22608_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22608_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22608_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22608_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.p.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.p.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.p.computeBaseUrl=function(h){var E="/live_chat";this.isChatReplay()&&(E="/live_chat_replay");return _.Uf(_.B5(_.P5(_.T8(h),E),null),"").toString()};
_.p.dataChanged=function(){_.J("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.p.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var h=this.url;if(this.isChatReplay()&&this.player){var E=Math.floor(this.player.getProgressState().current*1E3);h=_.u4(_.T8(h),"playerOffsetMs",E.toString()).toString()}E=this.chatframe;try{var g=h==="about:blank"?_.$Nk:_.Yr(h),Z=E.contentDocument.location,M=_.kr(g);M!==void 0&&Z.replace(M)}catch(W){E.src=h}}};
_.p.collapsedChanged=function(){_.Ra(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.p.handleIframeEvent=function(h){if(h&&this.baseUrl.startsWith(h.origin)&&h.source===this.chatframe.contentWindow&&_.yx(h.data))if(h.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(h);else if(h.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(h.data["yt-show-feedback-dialog"]){var E=_.GF().resolve(_.pl(_.zVZ));if(E){var g=h.ports,Z;g&&g.length&&(Z=function(){g[0].postMessage({})});
h=h.data["yt-show-feedback-dialog"];E.showFeedbackDialog(h.customProductData,h.feedbackContent,Z,h.bucket)}}else if(h.data["yt-show-survey"])_.Ra(this.hostElement,"yt-show-survey",h.data["yt-show-survey"]);else if(h.data["yt-purchase-membership"])_.GF().resolve(_.zF).resolveCommand(h.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(h.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(h.data["yt-tunnel-out-live-service-request"]);else if(h.data["yt-user-activity"])_.Gq();
else if(h.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(h.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(h.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(h.data["yt-open-popup"]);else if(h.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(h.data["yt-log-flow-logging-event-command"]);else if(h.data["yt-hide-live-chat"])this.onShowHideChat();else h.data["yt-report-moderation-state-log"]&&
this.player&&(E={cpn:this.player.getVideoData().cpn},_.vT("liveChatBeingModerated",E))};
_.p.attachLiveChatResponseVeTrackingParams=function(h){h=_.rp(h);var E=_.sH(),g=_.yy("liveChatRenderer.trackingParams",this.data);E&&g&&_.uw(E,_.rp(g),h)};
_.p.handleBuyflowMessages=function(h){var E=h.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,g=h.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,Z=h.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.hx4(_.Zt(_.p3),E.replace(/-/g,"+").replace(/_/g,"/"),function(M){h.ports[0].postMessage({success:!0,buyFlowResponse:M})},void 0,function(M){h.ports[0].postMessage({success:!1,
error:M&&M.message||"Buyflow rejected without error."})},_.xe().get("hl"),void 0,function(){h.ports[0].postMessage({closed:!0})},g,Z)};
_.p.setupPlayerProgressRelay=function(){var h=this;if(!this.isListeningForPlayerProgress){var E=_.aJ();E!=null&&E.getPlayerPromise&&(E.getPlayerPromise().then(function(g){h.playerApiReady(g)}),this.isListeningForPlayerProgress=!0)}};
_.p.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.p.playerApiReady=function(h){this.setPlayer(h)};
_.p.playerProgressHandler=function(){if(this.player){var h=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":h.current})}};
_.p.playerAdStartHandler=function(h){this.postToContentWindow({"yt-player-ad-start":h})};
_.p.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.p.playerStateChangeHandler=function(h){this.postToContentWindow({"yt-player-state-change":h})};
_.p.setPlayer=function(h){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22608_playerEvents);h&&(this.player=h,this.ytPlayerListenerBehavior.listenToPlayerEvents(h,this.JSC$22608_playerEvents),_.Ra(this.hostElement,"player-api-ready"))};
_.p.liveChatPageUrl=function(h,E,g,Z){return!g||E?"about:blank":g.liveChatRenderer?(E=_.T8(this.currentPageUrl).JSC$10033_queryData_,NUL(E),h=_.T8(h),E.add("continuation",g.liveChatRenderer.continuations[0].reloadContinuationData.continuation),g=_.Hp()==="USER_INTERFACE_THEME_DARK",(Z||g)&&E.add("dark_theme","true"),_.B5(h,E),Z=_.T8(h.toString()),g=Z.JSC$10033_queryData_,"SESSION_INDEX"in _.KF&&(g.add("authuser",_.nF("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.KF&&g.add("pageId",_.nF("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.KF&&g.add("sdc",_.nF("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),Z.toString()):""};
_.p.isCollapsed=function(h,E){return E!==null?E:this.isChatReplay()||h&&h.conversationBarRenderer&&h.conversationBarRenderer.availabilityMessage?!0:h?h.liveChatRenderer?h.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.J("live_chat_hide_premiere_replay_message")||h.conversationBarRenderer&&h.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.p.isHidden=function(h,E,g){var Z=E&&E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage,M=E&&E.liveChatRenderer&&E.liveChatRenderer.showHideButton,W=E&&E.liveChatRenderer&&E.liveChatRenderer.showButton;return g&&h&&!Z&&!W||!g&&h&&!Z&&!M?!0:E&&E.liveChatRenderer&&E.liveChatRenderer.initialDisplayState?E.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.p.computeButtonOverride=function(h,E){if(h&&E)return{type:"outline"}};
_.p.setCollapsedState=function(h){_.e(h,_.WCl)&&(this.isHiddenByUser=!!_.e(h,_.WCl).collapsed,!this.isHiddenByUser&&_.J("enable_teaser_framework_web_client")&&_.BX(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.p.forwardReduxActionToIframe=function(h){this.postToContentWindow({"yt-live-chat-forward-redux-action":h})};
_.p.onLoopRangeChange=function(h){this.showAboveScrim=!(h==null||!h.postId)};
_.p.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.p.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.p.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.p.sendDarkThemePostMessage=function(h){this.postToContentWindow({"yt-live-chat-set-dark-theme":h})};
_.p.onLiveChatBuyFlowCallback=function(h){this.postToContentWindow({"yt-live-chat-buy-flow-callback":h})};
_.p.handleKeyboardEvent=function(h){(0,_.Kt.containsValue)(fTM,h.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:h.type,keyCode:h.keyCode}})};
_.p.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.p.postToContentWindow=function(h){if(this.isFrameReady)try{var E=window.location.protocol+"//"+window.location.host,g;(g=this.chatframe)!=null&&g.contentWindow?this.chatframe.contentWindow.postMessage(h,E):_.O$(new _.xX("Tried posting a message to an iframe with no content window",h))}catch(Z){_.$W(Z)}};
_.p.shouldHideChatFrame=function(h){return h&&_.J("hide_live_chat_button_when_collapsed")};
_.ze.Object.defineProperties(xb.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.J("live_chat_overflow_hide_chat")||_.J("web_watch_chat_hide_button_killswitch"))return _.J("live_chat_overflow_hide_chat");var h,E,g,Z;return!!((h=this.data)==null?0:(E=h.liveChatRenderer)==null?0:(g=E.header)==null?0:(Z=g.liveChatHeaderRenderer)==null?0:Z.collapseButton)}}});
xb.prototype.collapsedChanged=xb.prototype.collapsedChanged;xb.prototype.urlChanged=xb.prototype.urlChanged;xb.prototype.dataChanged=xb.prototype.dataChanged;xb.prototype.onShowHideChat=xb.prototype.onShowHideChat;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],xb.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xb.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],xb.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],xb.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xb.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],xb.prototype,"currentPageUrl",void 0);
_.Y([_.x({computed:"computeBaseUrl(currentPageUrl,data)"}),_.V("design:type",Object)],xb.prototype,"baseUrl",void 0);_.Y([_.x({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.V("design:type",String)],xb.prototype,"url",void 0);_.Y([_.x(),_.V("design:type",Object)],xb.prototype,"isHiddenByUser",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.V("design:type",Object)],xb.prototype,"hidden",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.V("design:type",Boolean)],xb.prototype,"collapsed",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.V("design:type",Boolean)],xb.prototype,"hideChatFrame",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"showAboveScrim",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"watchNextGrid",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xb.prototype,"modernButtons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"noBorder",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xb.prototype,"roundBackground",void 0);
_.Y([_.x({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.V("design:type",Object)],xb.prototype,"toggleButtonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],xb.prototype,"overflowHideChat",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"forceDarkTheme",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xb.prototype,"enableShowWithoutHideChatButton",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xb.prototype,"theaterWatchWhile",void 0);_.Y([_.Sg("#chatframe"),_.V("design:type",HTMLIFrameElement)],xb.prototype,"chatframe",void 0);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xb.prototype,"onShowHideChat",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xb.prototype,"dataChanged",null);
_.Y([_.Nm("url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xb.prototype,"urlChanged",null);_.Y([_.Nm("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xb.prototype,"collapsedChanged",null);_.Y([_.K({is:"ytd-live-chat-frame",disableElementRegistration:!0})],xb);
_.X(xb,"ytd-live-chat-frame",function(){if(T2U!==void 0)return T2U;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return T2U=h},{mode:1});var bt2;var w3=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_modern_buttons");h.buttonOverrides={style:"call-to-action",type:"filled"};return h};
_.f(w3,_.D);w3.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=_.bU(this.data.backgroundColor)))};
w3.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var h=this.getFormattedStringLoggingDirectives(this.data.headline);h&&this.rendererBehavior.logExplicitClick(h)}};
w3.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var h=this.getFormattedStringLoggingDirectives(this.data.description);h&&this.rendererBehavior.logExplicitClick(h)}};
w3.prototype.getFormattedStringLoggingDirectives=function(h){return h&&h.runs&&h.runs.length>0&&h.runs[0]&&h.runs[0].loggingDirectives?h.runs[0].loggingDirectives:null};
w3.prototype.dataChanged=w3.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],w3.prototype,"rendererBehavior",void 0);_.Y([_.t(vpF.YtMacroReplacementBehavior),_.V("design:type",Object)],w3.prototype,"macroReplacementBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],w3.prototype,"navigationEndpoint",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],w3.prototype,"enableColors",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],w3.prototype,"modern",void 0);_.Y([_.x(),_.V("design:type",Object)],w3.prototype,"buttonOverrides",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],w3.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],w3);
_.X(w3,"ytd-action-basic-immersive-content-renderer",function(){if(bt2!==void 0)return bt2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return bt2=h},{mode:1});var uKL;var Qf0;var Dj=function(){return _.D.apply(this,arguments)||this};
_.f(Dj,_.D);Dj.prototype.dataChanged=function(){var h;((h=this.data)==null?void 0:h.backgroundColor)!==void 0&&_.Ja(this.hostElement,{"--bgu-color":_.bU(this.data.backgroundColor)})};
Dj.prototype.onImageTileClick=function(){var h;((h=this.data)==null?0:h.navigationEndpoint)&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var E;((E=this.data)==null?0:E.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ze.Object.defineProperties(Dj.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var h;if(((h=this.data)==null?void 0:h.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 h;return((h=this.data)==null?void 0:h.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var h,E,g;if(((h=this.data)==null?void 0:(E=h.detailsLine)==null?void 0:E.texts)!=null&&((g=this.data)==null?void 0:g.detailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.detailsLine.texts.map(function(M){return M.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var h,E,g;if(((h=this.data)==null?void 0:(E=h.optionalDetailsLine)==null?void 0:E.texts)!=null&&((g=this.data)==null?void 0:g.optionalDetailsLine.texts.length)>0){var Z;return(Z=this.data)==null?void 0:Z.optionalDetailsLine.texts.map(function(M){return M.text}).join("")}return null}}});
Dj.prototype.dataChanged=Dj.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Dj.prototype,"rendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Dj.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Dj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.backgroundColor"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Dj.prototype,"hasBackgroundColor",null);
_.Y([_.S("data.objectFit"),_.V("design:type",Object),_.V("design:paramtypes",[])],Dj.prototype,"getObjectFit",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.tileRenderingStyle"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Dj.prototype,"hasTileMetadata",null);_.Y([_.S("data.detailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],Dj.prototype,"getSecondaryDetails",null);
_.Y([_.S("data.optionalDetailsLine"),_.V("design:type",Object),_.V("design:paramtypes",[])],Dj.prototype,"getOptionalDetails",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dj.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],Dj);
_.X(Dj,"ytd-image-tile-renderer",function(){if(Qf0!==void 0)return Qf0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Qf0=h},{mode:1});var hlL;var lT=function(){return _.D.apply(this,arguments)||this};
_.f(lT,_.D);lT.prototype.getOpenLinkIcon=function(){return _.J("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
lT.prototype.onSitelinkTap=function(){_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.J("kevlar_command_handler_migration_killswitch"))_.jj(this.hostElement,this.data.clickCommands,this.hostElement);else for(var h=_.G(this.data.clickCommands),E=h.next();!E.done;E=h.next())this.ytComponentBehavior.resolveCommand(E.value)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lT.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],lT.prototype,"rendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lT.prototype,"data",void 0);_.Y([_.K({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],lT);
_.X(lT,"ytd-sitelink-renderer",function(){if(hlL!==void 0)return hlL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return hlL=h},{mode:1});var r3=function(){var h=_.D.apply(this,arguments)||this;h.paddingFix=_.J("enable_ads_web_ep_buenos_aires_and_padding_fix");return h};
_.f(r3,_.D);r3.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"}}}};
r3.prototype.dataChanged=function(){var h=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;h.ytMacroReplacementBehavior.sendServiceRequestAction([E])})};
r3.prototype.shouldHideFooter=function(h){return!(h&&_.J("use_ads_engagement_panel_desktop_footer_cta"))};
_.ze.Object.defineProperties(r3.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(g){var Z;return(Z=_.e(g,Dor))==null?void 0:Z.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(g){var Z;return((Z=_.e(g,Dor))==null?void 0:Z.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
r3.prototype.dataChanged=r3.prototype.dataChanged;_.Y([_.t(vpF.YtMacroReplacementBehavior),_.V("design:type",Object)],r3.prototype,"ytMacroReplacementBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],r3.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],r3.prototype,"paddingFix",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],r3.prototype,"removeBorderFromImageTiles",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.imageTileRenderers"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],r3.prototype,"useFooteredMetadataRenderingStyle",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],r3.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],r3);
_.X(r3,"ytd-action-engagement-panel-content-renderer",function(){if(uKL!==void 0)return uKL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uKL=h},{mode:1});var EdL;var gdM=_.O(function(h){var E=h.data;var g=h.customCommandResolver;return _.R("ad-grid-card-image-full-metadata-view-model",{class:function(){var Z;return((Z=E().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g)),
"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(Z){return _.R(_.Xu,{data:Z.data,
customCommandResolver:g})}})),_.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.R(_.P,{cond:function(){return E().headline},
then:function(Z){return _.R(_.dK,{text:Z,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.R(_.P,{cond:function(){return E().detailsLine},
then:function(Z){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.R(_.Sv,{data:Z},{adDetailsLineViewModel:function(M){return _.R(_.mt,{data:M.data,customCommandResolver:g,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.R(_.P,{cond:function(){return E().secondaryDetailsLine},
then:function(Z){return _.R("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.R(_.Sv,{data:Z},{adDetailsLineViewModel:function(M){return _.R(_.mt,{data:M.data,customCommandResolver:g,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ek");var Z80=_.O(function(h){var E=h.data;var g=h.customCommandResolver;return _.R("ad-grid-card-image-view-model",{class:function(){var Z;return((Z=E().interaction)==null?0:Z.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g)),
"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(Z){return _.R(_.Xu,{data:Z.data,
customCommandResolver:g})}}),_.R("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.R(_.Sv,{data:function(){return E().adCardBadge}},{adCardBadgeViewModel:_.eXM})))},"Fk");var Mfo=_.O(function(h){var E=h.data;var g=h.customCommandResolver;return _.R("ad-grid-card-text-view-model",{class:function(){var Z;return((Z=E().interaction)==null?0:Z.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g)),
"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.R(_.P,{cond:function(){return E().title},
then:function(Z){return _.R(_.dK,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.R("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.R(_.SX,{each:function(){var Z;
return((Z=E())==null?void 0:Z.descriptions)||[]},
keyBy:"INDEX"},function(Z){return _.R(_.dK,{text:Z,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.R("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.R(_.Sv,{data:function(){return E().moreInfoButton}},{adButtonViewModel:function(Z){return _.R(_.SV,{data:Z.data,
customCommandResolver:g})}})))},"Gk");var Wxj=_.O(function(h){var E=h.data;var g=h.customCommandResolver;var Z=h.adGridCardCollectionStyle;return _.R("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(M){var W,z=(W=E().interaction)==null?void 0:W.onFirstVisible;M&&z&&_.Tl(z)},
showOption:_.Nq})),style:function(){return"grid-template-columns: repeat("+KiF(Z?Z():E().style)+", minmax(0, 1fr));"}},_.R(_.Sv,{data:function(){var M;
return(M=E())==null?void 0:M.gridCards}},{adGridCardImageViewModel:function(M){return _.R(Z80,{data:M.data,
customCommandResolver:g})},
adGridCardImageFullMetadataViewModel:function(M){return _.R(gdM,{data:M.data,customCommandResolver:g})},
adGridCardTextViewModel:function(M){return _.R(Mfo,{data:M.data,customCommandResolver:g})}}))},"Hk");_.I9(_.O(function(h){var E=h.data;return _.R("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.zT(_.c6({visibilityCallback:function(g){var Z,M=(Z=E().interaction)==null?void 0:Z.onFirstVisible;g&&M&&_.Tl(M)},
showOption:_.Nq}),_.VS(function(){return E().interaction},nUG))},_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.R(_.P,{cond:_.Deu("(min-width: "+((0,_.UI)()+_.FS)+"px)"),
then:function(){return _.R(_.Sv,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(g){return _.R(Wxj,{data:g.data,
customCommandResolver:nUG})}})},
else:function(){return _.R(_.Sv,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(g){return _.R(Wxj,{data:g.data,
customCommandResolver:nUG,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.R("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.R(_.Sv,{data:function(){return E().adButton}},{adButtonViewModel:function(g){return _.R(_.SV,{data:g.data,
customCommandResolver:nUG})}})))},"Ik"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;return _.R("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.zT(_.c6({visibilityCallback:function(g){var Z,M=(Z=E().interaction)==null?void 0:Z.onFirstVisible;g&&M&&_.Tl(M)},
showOption:_.Nq}),_.VS(function(){return E().interaction},Xca))},_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.R(_.Sv,{data:function(){if(_.Deu("(min-width: "+((0,_.UI)()+_.FS)+"px)")())var g=E().adGridCardCollection;
else{g=Object.assign({},_.e(E().adGridCardCollection,l0j));var Z;g.gridCards!==void 0&&((Z=g.gridCards)==null?void 0:Z.length)>1?g.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":g.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";g={adGridCardCollectionViewModel:g}}return g}},{adGridCardCollectionViewModel:function(g){return _.R(Wxj,{data:g.data,
customCommandResolver:Xca})}})),_.R("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.R(_.Sv,{data:function(){return E().adButton}},{adButtonViewModel:function(g){return _.R(_.SV,{data:g.data,
customCommandResolver:Xca})}})))},"Jk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.C6}});var mB=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return h};
_.f(mB,_.D);_.p=mB.prototype;_.p.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.p.attached=function(){this.getDataFromPlayerAndRender()};
_.p.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.p.getDataFromPlayerAndRender=function(){var h=this,E=_.zD(this.hostElement);E&&E.getPlayerPromise().then(function(g){h.getCachedDataAndListen(g)})};
_.p.getCachedDataAndListen=function(h){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(h,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(h,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=h)};
_.p.resolveCachedActions=function(){var h=_.yy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(h=h&&h())&&!_.Kt.isEmpty(h)&&this.sendUpdateEngagementPanelAction(h);(h=(h=_.yy("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&h())&&!_.Kt.isEmpty(h)&&this.sendChangeEngagementPanelVisibilityAction(h);(h=(h=_.yy("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&h())&&!_.Kt.isEmpty(h)&&this.sendScrollToEngagementPanelCommand(h)};
_.p.sendUpdateEngagementPanelAction=function(h){var E;_.BX(this.hostElement,"yt-update-engagement-panel-action",[(E=_.Kt.get(h,"action"))!=null?E:h])};
_.p.sendChangeEngagementPanelVisibilityAction=function(h){_.BX(this.hostElement,"yt-change-engagement-panel-visibility-action",[h])};
_.p.sendScrollToEngagementPanelCommand=function(h){_.BX(this.hostElement,"yt-scroll-to-engagement-panel-command",[h])};
_.p.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.J("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.O$(Error("Po"))};
mB.prototype.dataChanged=mB.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],mB.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],mB.prototype,"componentBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],mB.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],mB.prototype,"player",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mB.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],mB);
_.X(mB,"ytd-ads-engagement-panel-content-renderer",function(){if(EdL!==void 0)return EdL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return EdL=h},{mode:1});var phM;var vY=function(){var h=_.D.apply(this,arguments)||this;h.player=null;h.JSC$22645_playerEvents=new Map;h.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return h};
_.f(vY,_.D);_.p=vY.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.p.created=function(){this.player=null;this.JSC$22645_playerEvents=new Map;this.JSC$22645_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22645_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22645_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22645_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.attached=function(){var h=this,E=_.zD();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));E&&E.getPlayerPromise().then(function(g){h.setPlayer(g);h.set("isPageLoad",!1)})};
_.p.setPlayer=function(h){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22645_playerEvents);this.set("player",h);h&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(h,this.JSC$22645_playerEvents),h.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.p.onLoopRangeChange=function(h){var E=_.GF().resolve(_.pl(_.p4));if((!E||E.isOnWatch())&&this.hostElement.clientHeight){var g;!h&&((g=this.data)==null?0:g.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.p.onVideoProgress=function(h){var E,g,Z=((E=this.player)==null?void 0:(g=E.getPresentingPlayerType)==null?void 0:g.call(E))===2;this.isAdPlaying!==Z&&this.set("isAdPlaying",Z);var M;if(!Z&&(M=this.player)!=null&&M.getLoopRange()){g=this.player.getLoopRange();E=g.startTimeMs;g=g.endTimeMs;Z=this.player.getProgressState(1).seekableStart;var W;E<Z*1E3&&((W=this.data)==null?0:W.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
h=g<h*1E3;var z;((z=this.player)==null?0:z.getLoopRange())&&h&&this.player.seekTo(E/1E3)}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onYtDeleteClipEngagementPanelCommand=function(h){_.e(h,F2i).command&&this.ytComponentBehavior.resolveCommand(_.e(h,F2i).command)};
_.ze.Object.defineProperties(vY.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.voteCount)||_.MR("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],vY.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],vY.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],vY.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],vY.prototype,"isAdPlaying",void 0);_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],vY.prototype,"isPageLoad",void 0);_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],vY.prototype,"isDarkTheme",void 0);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vY.prototype,"voteCount",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],vY.prototype,"channelEndpoint",null);_.Y([_.S("channelEndpoint"),_.V("design:type",Object),_.V("design:paramtypes",[])],vY.prototype,"channelHref",null);_.Y([_.K({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],vY);
_.X(vY,"ytd-clip-attribution-renderer",function(){if(phM!==void 0)return phM;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return phM=h},{mode:1});var G8j;var HY=function(){var h=_.D.apply(this,arguments)||this;h.player=null;h.JSC$22650_playerEvents=new Map;return h};
_.f(HY,_.D);_.p=HY.prototype;_.p.created=function(){this.player=null;this.JSC$22650_playerEvents=new Map;this.JSC$22650_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22650_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22650_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.p.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.p.attached=function(){var h=this,E=_.zD();E&&E.getPlayerPromise().then(function(g){h.setPlayer(g);h.set("isPageLoad",!1)})};
_.p.setPlayer=function(h){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22650_playerEvents);this.set("player",h);if(h){this.ytPlayerListenerBehavior.listenToPlayerEvents(h,this.JSC$22650_playerEvents);var E;(h==null?void 0:(E=h.getPresentingPlayerType)==null?void 0:E.call(h))===2&&this.playerAdStartHandler()}};
_.p.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.p.onVideoProgress=function(){var h,E,g=((h=this.player)==null?void 0:(E=h.getPresentingPlayerType)==null?void 0:E.call(h))===2;this.isAdPlaying!==g&&this.set("isAdPlaying",g)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],HY.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],HY.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],HY.prototype,"isAdPlaying",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],HY.prototype,"isPageLoad",void 0);_.Y([_.K({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],HY);
_.X(HY,"ytd-clip-section-footer-renderer",function(){if(G8j!==void 0)return G8j;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return G8j=h},{mode:1});var zlU;var aJG;var cAL=function(){return _.D.apply(this,arguments)||this};
_.f(cAL,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cAL.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cAL.prototype,"data",void 0);_.Y([_.K({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],cAL);
_.X(cAL,"ytd-clip-ad-state-renderer",function(){if(aJG!==void 0)return aJG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return aJG=h},{mode:1});var i8L;var $b=function(){var h=_.D.apply(this,arguments)||this;h.value="";h.valid=!1;h.userChangedValue=!1;h.disabled=!1;h.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return h};
_.f($b,_.D);_.p=$b.prototype;_.p.detached=function(){this.userChangedValue=!1};
_.p.handleKeyDown=function(h){if(_.RV)var E=13;else _.$rV&&_.PW?E=13:E=13;h.keyCode===E&&h.preventDefault()};
_.p.handleInput=function(){var h=_.UB(this.hostElement).querySelector("#title");if(h){var E=(h.value||"").replace(/\r|\n/g," ");this.set("value",E);h.value=E;this.valid=h.validate();this.userChangedValue=!0}};
_.p.handleBlur=function(){this.valid=_.UB(this.hostElement).querySelector("#title").validate()};
_.p.onValueChanged=function(){_.Ra(this.hostElement,"title-changed",{title:this.value})};
_.p.onValidChanged=function(){_.Ra(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.p.setInput=function(h,E){var g=_.UB(this.hostElement).querySelector("#title");g&&(g.value=h,this.handleInput(),E&&(g.invalid=!1,this.valid=!0))};
_.p.onClipCreationDisable=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable=function(){this.set("disabled",!1)};
_.p.onClipCreationVisibilityChange=function(h){var E=this;h.visible?requestAnimationFrame(function(){var g;((g=_.UB(E.hostElement).querySelector("#title"))==null?void 0:g.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
$b.prototype.onValidChanged=$b.prototype.onValidChanged;$b.prototype.onValueChanged=$b.prototype.onValueChanged;$b.prototype.handleBlur=$b.prototype.handleBlur;$b.prototype.handleInput=$b.prototype.handleInput;$b.prototype.handleKeyDown=$b.prototype.handleKeyDown;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$b.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],$b.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],$b.prototype,"value",void 0);_.Y([_.x(),_.V("design:type",Object)],$b.prototype,"valid",void 0);_.Y([_.x(),_.V("design:type",Object)],$b.prototype,"userChangedValue",void 0);_.Y([_.x(),_.V("design:type",Object)],$b.prototype,"disabled",void 0);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],$b.prototype,"handleKeyDown",null);
_.Y([_.f3("input"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$b.prototype,"handleInput",null);_.Y([_.f3("blur"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$b.prototype,"handleBlur",null);_.Y([_.Nm("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$b.prototype,"onValueChanged",null);
_.Y([_.Nm("valid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$b.prototype,"onValidChanged",null);_.Y([_.K({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],$b);
_.X($b,"ytd-clip-creation-text-input-renderer",function(){if(i8L!==void 0)return i8L;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return i8L=h},{mode:1});var odi;var IJL;var RlL;var P4a;var BOU;var K9=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};h.pendingStoryboardImages_={};h.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];h.tickLabelInterval=30;h.mediumTickInterval=5;h.largeTickInterval=15;h.aboveRulerHeight=32;h.rulerHeight=50;h.smallTickHeight=4;h.mediumTickHeight=8;h.largeTickHeight=16;h.mediaListeners_=
{};return h};
_.f(K9,_.D);_.p=K9.prototype;_.p.attached=function(){var h=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(E){E=_.G(["screen and (min-resolution: "+E+")","screen and (max-resolution: "+E+")"]);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=window.matchMedia(g);Z&&(h.mediaListeners_[g]=h.updatePixelRatio_.bind(h),Z.addEventListener?Z.addEventListener("change",h.mediaListeners_[g]):Z.addListener?Z.addListener(h.mediaListeners_[g]):delete h.mediaListeners_[g])}})};
_.p.detached=function(){this.setPlayer(null);for(var h=_.G(Object.keys(this.mediaListeners_)),E=h.next();!E.done;E=h.next()){var g=E.value;E=this.mediaListeners_[g];(g=window.matchMedia(g))&&(g.removeEventListener?g.removeEventListener("change",E):g.removeListener&&g.removeListener(E))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.p.onVisibilityChangedAction_=function(h){var E=this;h.visible&&!this.player_&&(h=_.zD())&&h.getPlayerPromise().then(function(g){E.setPlayer(g)})};
_.p.setPlayer=function(h){h&&this.set("player_",h)};
_.p.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.p.setUpCanvas_=function(){var h=this.rulerWidth,E=this.devicePixelRatio_,g=this.visible;this.set("canvasReady_",!1);if(g&&E!==0){g=this.aboveRulerHeight+this.rulerHeight;var Z=_.UB(this.hostElement).querySelector("#ticks");Z.width=h*E;Z.height=g*E;Z.style.width=h+"px";Z.style.height=g+"px";Z.getContext("2d").scale(E,E);this.set("canvasReady_",!0)}};
_.p.drawRuler_=function(h,E,g,Z,M,W,z,c,I,B,U,L){h&&g&&E&&(h=_.UB(this.hostElement).querySelector("#ticks"),E=h.getContext("2d"),E.clearRect(0,0,h.width,h.height),E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),E.lineWidth=2,E.beginPath(),E.moveTo(0,this.aboveRulerHeight),E.lineTo(h.width,this.aboveRulerHeight),E.moveTo(0,h.height),E.lineTo(h.width,h.height),E.stroke(),this.drawRulerTicks_(h,W,M,Z),this.drawStoryboardImages_(h,g,W,M,Z),E.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
E.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(z-W,Z,!1),this.rulerHeight),g=this.timeToPixels_(c-W,Z,!1),E.fillRect(g,this.aboveRulerHeight,h.width-g,this.rulerHeight),this.drawSpeedLines_(h,W,L))};
_.p.drawRulerTicks_=function(h,E,g,Z){var M=h.getContext("2d");M.save();M.lineWidth=1;for(var W=Math.floor(Math.max(0,E-this.tickLabelInterval));W<E+g;W++){M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var z=(W-E)*Z;M.beginPath();M.moveTo(z,h.height);var c=this.smallTickHeight;W%this.largeTickInterval===0?c=this.largeTickHeight:W%this.mediumTickInterval===0&&(c=this.mediumTickHeight);M.lineTo(z,h.height-c);M.stroke();W%this.tickLabelInterval===0&&(M.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),M.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),M.fillText(YR(W),z+4,12),M.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),M.moveTo(z,0),M.lineTo(z,this.aboveRulerHeight),M.stroke())}M.restore()};
_.p.percentToHex_=function(h){h=Math.round(h*255).toString(16);h.length<2&&(h="0"+h);return h};
_.p.drawSpeedLines_=function(h,E,g){var Z=h.getContext("2d");Z.save();var M=Math.min(25,Math.abs(g)-15)/25,W=h.width*.3*M,z=h.width*-.3,c=h.width*1.3,I=this.aboveRulerHeight;h=h.height;var B=Math.round(4*M),U=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");U.length<7&&(U="#"+U.substring(1,4).repeat(2));var L=this.percentToHex_(.5+M/2);L=U+L;U+="00";if(M>0)for(M=0;M<B;M++){var d=z+Math.random()*(c-z),C=I+Math.random()*(h-I),q=W+E%W,w=Z.createLinearGradient(d,C,d+q,C);
g<0?(w.addColorStop(0,L),w.addColorStop(.4,L),w.addColorStop(.9,U)):(w.addColorStop(.1,U),w.addColorStop(.6,L),w.addColorStop(1,L));Z.strokeStyle=w;Z.lineWidth=1;Z.beginPath();Z.moveTo(d,C);Z.lineTo(d+q,C);Z.stroke()}Z.restore()};
_.p.getStoryboardForTime_=function(h,E,g){g===void 0&&(g=E.getNumberOfStoryboardLevels()-1);h=E.getStoryboardFrameIndex(h,g);return E.getStoryboardFrame(h,g)};
_.p.drawStoryboardImages_=function(h,E,g,Z,M){if(!this.disabled){h=h.getContext("2d");var W=this.getStoryboardForTime_(0,E);if(W){var z=W.width/W.columns;W=W.height/W.rows;var c=z/W,I=this.rulerHeight*c;I=this.tickLabelInterval*(c<this.tickLabelInterval*M/this.rulerHeight?1/Math.floor(this.tickLabelInterval*M/I):Math.round(I/(this.tickLabelInterval*M)));var B=I*M,U=this.rulerHeight,L=B/this.rulerHeight,d=Math.floor(Math.max(0,g-I));for(d-=d%I;d<g+Z;d+=I){var C=this.getStoryboardForTime_(d,E),q=this.getPreloadedStoryboard_(C.url);
if(q){var w=(d-g)*M,r=this.aboveRulerHeight,v=C.column*z,H=C.row*W;if(c<L){var u=U/(B/c);C=z;u*=W;H+=(W-u)/2}else C=B/(U*c)*z,u=W,v+=(z-C)/2;h.drawImage(q,v,H,C,u,w,r,B,U)}else this.fetchStoryboardImage_(C)}}}};
_.p.getPreloadedStoryboard_=function(h){return this.storyboardImages_.find(function(E){if(E.src==h)return!0;var g=E.src.indexOf(h);return g!=-1&&g==E.src.length-h.length})};
_.p.fetchStoryboardImage_=function(h){var E=this,g=this.getPreloadedStoryboard_(h.url),Z=this.pendingStoryboardImages_[h.url];g||Z!==void 0||(g=new Promise(function(M){var W=new Image(h.width,h.height);W.src=h.url;W.onload=function(){M(W)};
W.onerror=function(){M(null)}}),this.pendingStoryboardImages_[h.url]=g,g.then(function(M){M&&E.push("storyboardImages_",M);
return M}).finally(function(){delete E.pendingStoryboardImages_[h.url]}))};
_.p.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.p.timeToPixels_=function(h,E,g){h*=E;return g===void 0||g?h+"px":h};
_.p.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
K9.prototype.drawRuler_=K9.prototype.drawRuler_;K9.prototype.setUpCanvas_=K9.prototype.setUpCanvas_;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],K9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],K9.prototype,"start",void 0);_.Y([_.x({value:30}),_.V("design:type",Number)],K9.prototype,"end",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],K9.prototype,"visible",void 0);_.Y([_.x(),_.V("design:type",Object)],K9.prototype,"player_",void 0);_.Y([_.x(),_.V("design:type",Number)],K9.prototype,"tickSpacing",void 0);_.Y([_.x(),_.V("design:type",Number)],K9.prototype,"windowSizeSec",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],K9.prototype,"rulerWidth",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],K9.prototype,"rulerShift",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],K9.prototype,"canvasReady_",void 0);_.Y([_.x({value:function(){return[]}}),
_.V("design:type",Array)],K9.prototype,"storyboardImages_",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],K9.prototype,"disabled",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],K9.prototype,"forceRender_",void 0);_.Y([_.x({value:1}),_.V("design:type",Number)],K9.prototype,"devicePixelRatio_",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],K9.prototype,"windowSpeed",void 0);
_.Y([_.Nm("visible","devicePixelRatio_","rulerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],K9.prototype,"setUpCanvas_",null);
_.Y([_.Nm("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.V("design:returntype")],K9.prototype,"drawRuler_",null);_.Y([_.yc({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],K9);
_.X(K9,"yt-clip-creation-scrubber-canvas",function(){if(BOU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);BOU=h}h=BOU;return h},
{mode:2});var U3M;var Lxo;var OM=function(){var h=_.D.apply(this,arguments)||this;h.start=0;h.end=30;h.visible=!1;h.draggingLeft_=!1;h.draggingRight_=!1;h.draggingRuler_=!1;h.draggingWindow_=!1;h.seekableStart=0;h.seekableEnd=0;h.rulerWidth_=0;h.rulerShift_=0;h.windowSlideSpeed=0;h.disabled=!1;h.initialized=!1;h.durationAccessibilityLabel="";h.activeLoopRange_=!1;h.rulerDragMouseStart_=0;h.rulerDragRulerStart_=0;h.rulerDragStartTime_=0;h.rulerDragEndTime_=0;h.dragMouseLastX_=0;h.scrollInterval_=null;h.scrubberVe_=null;h.boundHandlers_=
{};h.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return h};
_.f(OM,_.D);_.p=OM.prototype;
_.p.created=function(){var h=this;this.JSC$22663_playerEvents=new Map;this.JSC$22663_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22663_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22663_playerEvents.set("onStateChange",this.onStateChange_);var E={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(E).forEach(function(g){h.boundHandlers_[g]=E[g].bind(h)})};
_.p.attached=function(){this.activeLoopRange_=!1;_.UB(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.UB(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Uz(156731)};
_.p.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.UB(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.UB(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.p.onVisibilityChangedAction_=function(h){var E=this;h.visible&&!this.player_&&(h=_.zD())&&h.getPlayerPromise().then(function(g){E.setPlayer(g)})};
_.p.setPlayer=function(h){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22663_playerEvents);h&&(this.set("player_",h),this.ytPlayerListenerBehavior.listenToPlayerEvents(h,this.JSC$22663_playerEvents))};
_.p.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.p.beginHandleDrag_=function(h){this.disabled||(h.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=h.clientX,h.target===_.UB(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():h.target===_.UB(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.p.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.p.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.p.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.p.beginRulerDrag_=function(h){this.disabled||(h.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=h.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.p.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.p.beginWindowScroll_=function(){var h=this;this.scrollInterval_=setInterval(function(){var E=h.windowSlideSpeed;if(E=_.kux(h.start,h.boundedRulerStartLimit_())?E-.1:_.kux(h.end,h.boundedRulerEndLimit_())?E+.1:0){var g=h.capRulerOffset_(h.rulerShift_+E);g==h.rulerShift_?E=0:(h.set("rulerShift_",g),_.Ra(h.hostElement,"set-fixed-length-range",{start:h.start+E,duration:h.end-h.start}))}h.set("windowSlideSpeed",E)},33)};
_.p.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.p.endDrag_=function(){this.logClick();var h=void 0;this.draggingRight_?h=this.end-1:this.draggingLeft_&&(h=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,h);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.p.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.p.updateRulerSize_=function(){this.set("rulerWidth_",_.UB(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.p.handleMouseDrag_=function(h){h.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(h):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(h):this.draggingWindow_&&this.handleWindowDrag_(h))};
_.p.handleRulerDrag_=function(h){h=this.pixelsToTime_(h.clientX-this.rulerDragMouseStart_);h=this.capRulerOffset_(this.rulerDragRulerStart_-h);this.set("rulerShift_",h);var E=this.rulerDragStartTime_-(this.rulerDragRulerStart_-h);_.Ra(this.hostElement,"set-fixed-length-range",{start:E,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-h)-E})};
_.p.handleWindowDrag_=function(h){var E=h.clientX-this.dragMouseLastX_;this.dragMouseLastX_=h.clientX;h=this.pixelsToTime_(E);_.Ra(this.hostElement,"set-fixed-length-range",{start:this.start+h,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.capRulerOffset_=function(h){var E=this.seekableStart-this.pixelsToTime_(16),g=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(E,h),g)};
_.p.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.p.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.p.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.p.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.p.handleWindowHandleDrag_=function(h){var E=h.clientX-this.dragMouseLastX_;this.dragMouseLastX_=h.clientX;h=this.pixelsToTime_(E);if(this.draggingLeft_){var g=this.start+h;var Z=this.end}else this.draggingRight_&&(g=this.start,Z=this.end+h);_.Ra(this.hostElement,"set-range",{start:g,end:Z,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.p.onVideoProgress_=function(h){this.disabled||(h=this.timeToPixels_(h-this.rulerShift_,this.tickSpacing_),_.UB(this.hostElement).querySelector("#playhead").style.transform="translateX("+h+")")};
_.p.onClipCreationDisable_=function(){this.endDrag_()};
_.p.timeToPixels_=function(h,E,g){h*=E;return g===void 0||g?h+"px":h};
_.p.pixelsToTime_=function(h){return h/this.tickSpacing_};
_.p.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.centerRuler_=function(h,E,g){this.set("rulerShift_",this.capRulerOffset_(h+(E-h)/2-g/2))};
_.p.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.p.updateLoopRange_=function(h,E,g,Z,M,W,z){h&&(E&&Z&&!g?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(h.pauseVideo(),h.seekTo(M,!1,void 0,void 0,50)):this.draggingRight_?(h.pauseVideo(),h.seekTo(W-.1,!1,void 0,void 0,50)):(z!==void 0?h.seekTo(z,!0,void 0,void 0,50):(E=h.getCurrentTime(),E<M||E>W?h.seekTo(M,!0,void 0,void 0,50):h.seekTo(E,!0,void 0,void 0,50)),h.playVideo()),h.setLoopRange({startTimeMs:M*1E3,endTimeMs:W*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(h.getCurrentTime())):
this.activeLoopRange_&&(h.setLoopRange(null),this.activeLoopRange_=!1))};
_.p.updateHandles_=function(){_.UB(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.UB(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.p.updateRuler_=function(){var h=this.end,E=this.start,g=this.draggableStartLimit_(),Z=this.draggableEndLimit_();(E<g-.001||h>Z+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.p.computeDurationLabel_=function(h,E){return h?h.replace("$clip_length",parseFloat(E).toFixed(1)):""};
_.p.computeDuration_=function(h,E){return this.isValidTime_(h)&&this.isValidTime_(E)&&h<E?E-h:0};
_.p.isValidTime_=function(h){return isNaN(parseFloat(h))||h<0?!1:this.player_?h>=this.seekableStart&&h<=this.seekableEnd:!0};
_.p.computeWindowSizeSec_=function(h,E,g){return Math.min((h||12E4)/1E3,g-E)};
_.p.computeTickSpacing_=function(h,E){return E?E/h:1};
_.p.onDragStateChanged_=function(){_.Ra(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.p.centerRangeOnTime_=function(h){var E=this.duration;h=sGL(h-E/2,E,this.seekableStart,this.seekableEnd);_.Ra(this.hostElement,"set-fixed-length-range",{start:h.start,duration:h.end-h.start})};
_.p.nearlyLessThan_=function(h,E,g){return h+(g===void 0?1E-6:g)<E};
_.p.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var h=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(h,this.start)||this.nearlyLessThan_(this.end,h))&&this.centerRangeOnTime_(h)}};
_.p.onStateChange_=function(h){this.visible&&!this.disabled&&h==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.p.computeDragState_=function(h,E,g,Z){return h?"left":E?"right":g?"ruler":Z?"window":"none"};
_.p.logClick=function(){var h=_.sH(),E=_.YN();h&&E&&this.scrubberVe_&&(_.J("combine_ve_grafts")?_.vt(_.SQ(),this.scrubberVe_,E):_.uw(h,E,this.scrubberVe_),_.Z$(h,this.scrubberVe_))};
OM.prototype.onDragStateChanged_=OM.prototype.onDragStateChanged_;OM.prototype.updateRuler_=OM.prototype.updateRuler_;OM.prototype.updateHandles_=OM.prototype.updateHandles_;OM.prototype.onUpdateLoopRange=OM.prototype.onUpdateLoopRange;OM.prototype.onInitializedChanged_=OM.prototype.onInitializedChanged_;OM.prototype.onVisibleChanged_=OM.prototype.onVisibleChanged_;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],OM.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",Object)],OM.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OM.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"start",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"end",void 0);_.Y([_.x({computed:"computeDuration_(start, end)"}),_.V("design:type",Number)],OM.prototype,"duration",void 0);
_.Y([_.x(),_.V("design:type",String)],OM.prototype,"lengthTemplate",void 0);_.Y([_.x({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.V("design:type",String)],OM.prototype,"durationLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"visible",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"player_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"draggingLeft_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"draggingRight_",void 0);
_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"draggingRuler_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Object)],OM.prototype,"draggingWindow_",void 0);_.Y([_.x({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.V("design:type",Number)],OM.prototype,"tickSpacing_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"seekableStart",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"seekableEnd",void 0);
_.Y([_.x(),_.V("design:type",Number)],OM.prototype,"windowSizeMs",void 0);_.Y([_.x({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.V("design:type",Number)],OM.prototype,"windowSizeSec_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"rulerWidth_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"rulerShift_",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"windowSlideSpeed",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OM.prototype,"disabled",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"initialized",void 0);_.Y([_.x(),_.V("design:type",Object)],OM.prototype,"durationAccessibilityLabel",void 0);_.Y([_.x({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.V("design:type",String)],OM.prototype,"dragState",void 0);
_.Y([_.Nm("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"onVisibleChanged_",null);_.Y([_.Nm("initialized"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"onInitializedChanged_",null);_.Y([_.Nm("player_","visible","disabled","initialized","start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"onUpdateLoopRange",null);
_.Y([_.Nm("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"updateHandles_",null);_.Y([_.Nm("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"updateRuler_",null);
_.Y([_.Nm("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OM.prototype,"onDragStateChanged_",null);_.Y([_.yc({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],OM);
_.X(OM,"yt-clip-creation-scrubber-view",function(){if(Lxo===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;U3M===void 0&&(U3M=document.createElement("template"));var Z=U3M;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Lxo=h}h=Lxo;return h},{mode:2});var n9=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};h.startHighlightTimeout=0;h.endHighlightTimeout=0;return h};
_.f(n9,_.D);_.p=n9.prototype;_.p.attached=function(){var h=this;this.startInput.addEventListener("input",function(E){return h.handleStartInput_(E)});
this.endInput.addEventListener("input",function(E){return h.handleEndInput_(E)});
this.startInput.addEventListener("focusout",function(E){return h.handleStartBlur_(E)});
this.endInput.addEventListener("focusout",function(E){return h.handleEndBlur_(E)})};
_.p.setPlayer=function(h){this.set("player_",h)};
_.p.onSetFixedLengthRange_=function(h){var E=h.detail;h=E.start;var g=E.duration,Z=E.startLimit;E=E.endLimit;Z||(Z=this.seekableStart_);E||(E=this.seekableEnd_);h=sGL(h,g,Z,E);this.start=h.start;this.end=h.end};
_.p.onSetRange_=function(h){var E=h.detail;h=E.start;var g=E.end,Z=E.startLimit;E=E.endLimit;Z||(Z=this.seekableStart_);E||(E=this.seekableEnd_);if(h=VxN(h,g,Z,E,this.minLengthSec,this.maxLengthSec))this.start=h.start,this.end=h.end};
_.p.updateInputs_=function(){var h=this.end,E=this.start;this.startInput.focused||(this.startInput.value=YR(E,!0));this.endInput.focused||(this.endInput.value=YR(h,!0))};
_.p.handleStartInput_=function(h){h=Y0L(h.target.value);if(h===null)this.set("startValid",!1);else{var E=this.end,g=VxN(h,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);g?(this.set("endWillUpdate",g.end!==E),this.set("startValid",g.start===h)):this.set("startValid",!1)}};
_.p.handleEndInput_=function(h){h=Y0L(h.target.value);if(h===null)this.set("endValid",!1);else{var E=this.start,g=kpo(this.start,h,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);g?(this.set("startWillUpdate",g.start!==E),this.set("endValid",g.end===h)):this.set("endValid",!1)}};
_.p.handleStartBlur_=function(h){h=Y0L(h.target.value);h===null?this.startInput.value=YR(this.start,!0):this.forceUpdateInputs_(VxN(h,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.handleEndBlur_=function(h){h=Y0L(h.target.value);h===null?this.endInput.value=YR(this.end,!0):this.forceUpdateInputs_(kpo(this.start,h,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.p.forceUpdateInputs_=function(h){h&&(this.start=h.start,this.end=h.end);this.startInput.value=YR(this.start,!0);this.endInput.value=YR(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.p.initializeClipRange_=function(){var h=this.seekableEnd_,E=this.seekableStart_,g=this.visible_,Z=this.player_;if(!Z||!g||E===null||!h)this.set("initialized",!1);else if(!this.initialized){var M=Z.getCurrentTime(),W=this.getDefaultLengthSec_();g=Z.getVideoData();var z=Z.getPlayerState()==1,c=g.isLive;W=Math.min(W,h-E);M=Math.max(0,M);h=c?kpo(M-W,M,E,h,this.minLengthSec,this.maxLengthSec):z?sGL(M-W/2,W,E,h):sGL(M,W,E,h);this.start=h.start;this.end=h.end;this.set("initialized",!0);g.isLive&&Z.seekTo(h.start);
this.startInput.value=YR(this.start,!0);this.endInput.value=YR(this.end,!0)}};
_.p.onStartChanged_=function(){var h=this;_.Ra(this.hostElement,"start-changed",{start:this.start});var E;isNaN((E=this.oldStart)!=null?E:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){h.set("highlightStart",!1);h.startHighlightTimeout=0;h.oldStart=h.start},3E3))};
_.p.onEndChanged_=function(){var h=this;_.Ra(this.hostElement,"end-changed",{end:this.end});var E;isNaN((E=this.oldEnd)!=null?E:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){h.set("highlightEnd",!1);h.endHighlightTimeout=0;h.oldEnd=h.end},3E3))};
_.p.onVisibilityChangedAction_=function(h){var E=this;this.set("visible_",h.visible);this.visible_&&!this.player_&&(h=_.zD())&&h.getPlayerPromise().then(function(g){E.setPlayer(g)})};
_.p.computeMinLengthSec_=function(h){return h/1E3||5};
_.p.computeMaxLengthSec_=function(h){return h/1E3||60};
_.p.computeDefaultLengthSec_=function(h){return h/1E3};
_.p.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.p.computeSeekableStart_=function(h,E){return h&&E?h.getProgressState(1).seekableStart:0};
_.p.computeSeekableEnd_=function(h,E){return h&&E?h.getProgressState(1).seekableEnd:0};
_.p.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.p.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.p.onDragState_=function(h){this.set("highlightStart",h.detail.startChanging);this.set("highlightEnd",h.detail.endChanging)};
n9.prototype.onDragState_=n9.prototype.onDragState_;n9.prototype.onEndChanged_=n9.prototype.onEndChanged_;n9.prototype.onStartChanged_=n9.prototype.onStartChanged_;n9.prototype.initializeClipRange_=n9.prototype.initializeClipRange_;n9.prototype.updateInputs_=n9.prototype.updateInputs_;n9.prototype.onSetRange_=n9.prototype.onSetRange_;n9.prototype.onSetFixedLengthRange_=n9.prototype.onSetFixedLengthRange_;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],n9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],n9.prototype,"data",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],n9.prototype,"start",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],n9.prototype,"startValid",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],n9.prototype,"startWillUpdate",void 0);_.Y([_.x({value:30}),_.V("design:type",Number)],n9.prototype,"end",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],n9.prototype,"endValid",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],n9.prototype,"endWillUpdate",void 0);_.Y([_.x({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.V("design:type",Number)],n9.prototype,"minLengthSec",void 0);
_.Y([_.x({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.V("design:type",Number)],n9.prototype,"maxLengthSec",void 0);_.Y([_.x({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.V("design:type",Number)],n9.prototype,"defaultLengthSec",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],n9.prototype,"visible_",void 0);_.Y([_.x(),_.V("design:type",Object)],n9.prototype,"player_",void 0);
_.Y([_.x({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.V("design:type",Number)],n9.prototype,"seekableStart_",void 0);_.Y([_.x({computed:"computeSeekableEnd_(player_, visible_)"}),_.V("design:type",Number)],n9.prototype,"seekableEnd_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],n9.prototype,"initialized",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],n9.prototype,"disabled",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],n9.prototype,"highlightStart",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],n9.prototype,"highlightEnd",void 0);_.Y([_.Sg("#start"),_.V("design:type",HTMLInputElement)],n9.prototype,"startInput",void 0);_.Y([_.Sg("#end"),_.V("design:type",HTMLInputElement)],n9.prototype,"endInput",void 0);
_.Y([_.f3("set-fixed-length-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],n9.prototype,"onSetFixedLengthRange_",null);_.Y([_.f3("set-range"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],n9.prototype,"onSetRange_",null);_.Y([_.Nm("start","end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n9.prototype,"updateInputs_",null);
_.Y([_.Nm("player_","visible_","seekableStart_","seekableEnd_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n9.prototype,"initializeClipRange_",null);_.Y([_.Nm("start"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n9.prototype,"onStartChanged_",null);_.Y([_.Nm("end"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],n9.prototype,"onEndChanged_",null);
_.Y([_.f3("clips-drag-state"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],n9.prototype,"onDragState_",null);_.Y([_.yc({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],n9);
_.X(n9,"yt-clip-creation-scrubber-renderer",function(){if(P4a===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;RlL===void 0&&(RlL=document.createElement("template"));var Z=RlL;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);P4a=h}h=P4a;return h},{mode:2});var X6=function(){var h=_.D.apply(this,arguments)||this;h.player_=null;h.JSC$22677_playerEvents=new Map;h.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return h};
_.f(X6,_.D);_.p=X6.prototype;_.p.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.p.created=function(){this.JSC$22677_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22677_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22677_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22677_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.p.detached=function(){this.setPlayer(null)};
_.p.onVisibilityChangedAction_=function(h){var E=this,g;if((g=this.data)==null?0:g.externalVideoId){var Z;this.videoId=(Z=this.data)==null?void 0:Z.externalVideoId}this.getPlayer().then(function(M){if(h.visible)E.returnTime=M.getCurrentTime(),E.isAtLiveHead=M.getProgressState().isAtLiveHead;else{var W=E.returnTime;E.isAtLiveHead&&(W=Number.POSITIVE_INFINITY);M.seekTo(W,void 0,void 0,void 0,51)}})};
_.p.getPlayer=function(){var h=this;if(!this.player_){var E=_.zD();if(E)return E.getPlayerPromise().then(function(g){h.setPlayer(g);return g})}return Promise.resolve(this.player_)};
_.p.setPlayer=function(h){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22677_playerEvents);if(h){this.player_=h;var E;((E=this.data)==null?0:E.externalVideoId)||this.set("videoId",h.getVideoData().video_id||"");var g;(h==null?void 0:(g=h.getPresentingPlayerType)==null?void 0:g.call(h))===2&&(this.set("isAdPlaying",!0),_.BX(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(h,this.JSC$22677_playerEvents)}};
_.p.ready=function(){_.UB(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.p.onTitleChanged_=function(h){this.set("titleValue",h.detail.title)};
_.p.onStartChanged_=function(h){this.set("start",h.detail.start)};
_.p.onEndChanged_=function(h){this.set("end",h.detail.end)};
_.p.onTitleValidChanged_=function(h){this.set("titleValid",h.detail.valid)};
_.p.onStartValidChanged_=function(h){this.set("startValid",h.detail.valid)};
_.p.onEndValidChanged_=function(h){this.set("endValid",h.detail.valid)};
_.p.onVideoDataChange_=function(){var h;if((h=this.data)==null||!h.externalVideoId){var E;this.set("videoId",((E=this.player_)==null?void 0:E.getVideoData().video_id)||"")}};
_.p.computeFormValid_=function(h,E,g,Z){return!!(h&&E&&g&&Z)};
_.p.computeCancelButton_=function(h,E,g){return h&&_.e(h,_.Gh)?{buttonRenderer:Object.assign({},_.e(h,_.Gh),{isDisabled:E||g})}:null};
_.p.computeSubmitButton_=function(h,E,g){return h&&_.e(h,_.Gh)?{buttonRenderer:Object.assign({},_.e(h,_.Gh),{command:void 0,isDisabled:!this.formValid||E||g})}:null};
_.p.computeSubmitCommand_=function(h){return h||null};
_.p.onSubmit_=function(h){var E=this;h.stopPropagation();h.preventDefault();this.submitCommand_&&(h={},h.comment_text=this.titleValue,h.clip_external_video_id=this.videoId,h.clip_offset_ms=parseInt(this.start*1E3,10),h.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.LZ(this.hostElement,[this.submitCommand_,h]).then(function(){E.set("isLoading_",!1)},function(){E.set("isLoading_",!1)}))};
_.p.playerAdStartHandler_=function(){_.BX(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.p.playerAdEndHandler_=function(){_.BX(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.p.onVideoProgress_=function(){var h=this;this.getPlayer().then(function(E){var g,Z=(E==null?void 0:(g=E.getPresentingPlayerType)==null?void 0:g.call(E))===2;h.isAdPlaying!==Z&&(Z?h.playerAdStartHandler_():h.playerAdEndHandler_())})};
X6.prototype.onEndValidChanged_=X6.prototype.onEndValidChanged_;X6.prototype.onStartValidChanged_=X6.prototype.onStartValidChanged_;X6.prototype.onTitleValidChanged_=X6.prototype.onTitleValidChanged_;X6.prototype.onEndChanged_=X6.prototype.onEndChanged_;X6.prototype.onStartChanged_=X6.prototype.onStartChanged_;X6.prototype.onTitleChanged_=X6.prototype.onTitleChanged_;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],X6.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",Object)],X6.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],X6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],X6.prototype,"data",void 0);_.Y([_.x({value:""}),_.V("design:type",String)],X6.prototype,"titleValue",void 0);
_.Y([_.x({value:!1}),_.V("design:type",Boolean)],X6.prototype,"titleValid",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],X6.prototype,"start",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],X6.prototype,"startValid",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],X6.prototype,"end",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],X6.prototype,"endValid",void 0);_.Y([_.x({value:""}),_.V("design:type",String)],X6.prototype,"videoId",void 0);
_.Y([_.x({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.V("design:type",Boolean)],X6.prototype,"formValid",void 0);_.Y([_.x({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.V("design:type",Object)],X6.prototype,"submitButton_",void 0);_.Y([_.x({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.V("design:type",Object)],X6.prototype,"submitCommand_",void 0);
_.Y([_.x({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.V("design:type",Object)],X6.prototype,"cancelButton_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],X6.prototype,"isLoading_",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],X6.prototype,"isAdPlaying",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],X6.prototype,"returnTime",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],X6.prototype,"isAtLiveHead",void 0);
_.Y([_.f3("title-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onTitleChanged_",null);_.Y([_.f3("start-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onStartChanged_",null);_.Y([_.f3("end-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onEndChanged_",null);
_.Y([_.f3("title-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onTitleValidChanged_",null);_.Y([_.f3("start-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onStartValidChanged_",null);_.Y([_.f3("end-valid-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],X6.prototype,"onEndValidChanged_",null);
_.Y([_.yc({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],X6);
_.X(X6,"yt-clip-creation-renderer",function(){if(IJL===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;odi===void 0&&(odi=document.createElement("template"));var Z=odi;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);IJL=h}h=IJL;return h},{mode:2});var Yb=function(){return _.D.apply(this,arguments)||this};
_.f(Yb,_.D);Yb.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"}}}};
Yb.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(h){return h.hasOwnProperty("clipCreationRenderer")})&&_.BX(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
Yb.prototype.onPanelContentVisibleChanged=Yb.prototype.onPanelContentVisibleChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],Yb.prototype,"ytVisibilityBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Yb.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Yb.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Yb.prototype,"panelContentVisible",void 0);_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yb.prototype,"onPanelContentVisibleChanged",null);_.Y([_.K({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],Yb);
_.X(Yb,"ytd-clip-section-renderer",function(){if(zlU!==void 0)return zlU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zlU=h},{mode:1});var jDr;var sM=function(){return _.D.apply(this,arguments)||this};
_.f(sM,_.D);_.p=sM.prototype;
_.p.onKeyDown=function(h){if(this.snippetElements.length!==0&&(h=h.keyCode,h===38||h===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);h===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.vw(this.highlightedIndex,-1,this.snippetElements.length);h=this.snippetElements.length;var E=this.highlightedIndex%h;this.highlightedIndex=E*h<0?E+h:E;h=this.snippetElements[this.highlightedIndex];this.highlightSnippet(h);this.ensureVisible(h)}};
_.p.onKeyUp=function(h){var E=this;xo2(h)&&(h.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.KP.cancelJob(this.inputTimerId),this.inputTimerId=_.KP.addLowPriorityJob(function(){E.typedValue&&(E.fetchSnippets(E.typedValue),E.logInputGesture(E.data))},1E3))};
_.p.onClick=function(h){(h=_.DZm(h.target,null,"snippet-item"))&&this.selectSnippet(h)};
_.p.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.p.ready=function(){var h=this;this.inputElement.addEventListener("focus",function(){h.snippetsWrapper.style.removeProperty("display")})};
_.p.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.p.getSourceTimelines=function(){if(!this.data)return[];var h=[];if(this.data.searchInVideoSources)for(var E=_.G(this.data.searchInVideoSources),g=E.next();!g.done;g=E.next())g=g.value,g==="SEARCH_IN_VIDEO_SOURCE_ASR"?h.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):g==="SEARCH_IN_VIDEO_SOURCE_OCR"&&h.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return h};
_.p.fetchSnippets=function(h){var E=_.BX(this.hostElement,"yt-get-current-video-id-action")[0],g=this.getSourceTimelines();h={getSearchInVideoCommand:{externalVideoId:E,query:h!=null?h:"",sourceTimelines:g},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})};
_.p.filterSnippets=function(h,E){var g=this;if(E){this.filteredSnippets=(0,_.Kt.unsafeClone)(h);var Z=RegExp(_.W9a(E),"i");this.filteredSnippets=this.filteredSnippets.filter(function(z){return Z.test(g.ytRendererBehavior.getSimpleString(z.snippet))});
h=_.G(this.filteredSnippets);for(var M=h.next();!M.done;M=h.next()){M=M.value;var W=this.ytRendererBehavior.getSimpleString(M.snippet);M.snippet={runs:[{text:W.substring(0,W.toLowerCase().indexOf(E))},{text:W.substring(W.toLowerCase().indexOf(E),W.toLowerCase().indexOf(E)+E.length),bold:!0},{text:W.substring(W.toLowerCase().indexOf(E)+E.length,W.length)}]}}}else this.filteredSnippets=h};
_.p.onUpdateSearchInVideoResults=function(h){if(!(this.snippets.length>0)){var E,g,Z;if((Z=(E=_.e(h,XiL))==null?void 0:(g=E.results)==null?void 0:g.length)!=null&&Z){var M;this.filteredSnippets=this.snippets=((M=_.e(h,XiL))==null?void 0:M.results).map(function(W){var z,c,I;return{startMs:W==null?void 0:(z=W.searchInVideoResultRenderer)==null?void 0:z.startMs,startTimeText:W==null?void 0:(c=W.searchInVideoResultRenderer)==null?void 0:c.startTimeText,snippet:W==null?void 0:(I=W.searchInVideoResultRenderer)==
null?void 0:I.snippet}})}}};
_.p.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.p.highlightSnippet=function(h){h.classList.add("highlighted")};
_.p.removeSnippetHighlight=function(h){h.classList.remove("highlighted")};
_.p.selectSnippet=function(h){this.typedValue=String(h.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(h);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.p.ensureVisible=function(h){var E=this.snippetsWrapper.scrollTop,g=E+this.snippetsWrapper.clientHeight,Z=h.offsetTop-this.snippetsWrapper.offsetTop;h=Z+h.clientHeight;Z<E?this.snippetsWrapper.scrollTop-=E-Z:h>g&&(this.snippetsWrapper.scrollTop+=h-g)};
_.p.seekPlayer=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1){if(!h)return Z.jumpTo(0);E=Number(h.dataset.startOffset);return Z.yield(_.aJ().getPlayerPromise(),3)}g=Z.yieldResult;g.seekTo(E/1E3,!0);g.wakeUpControls();_.SK(Z)})};
_.p.logInputGesture=function(h){var E=_.sH();E&&(h==null?0:h.trackingParams)&&_.Mw(E,_.rp(h.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.p.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("typed-value-changed",this.typedValue))};
_.p.updateTypedValueFromBinding=function(h){this.typedValue=h.currentTarget.value};
sM.prototype.typedValueChangedForBinding=sM.prototype.typedValueChangedForBinding;sM.prototype.dataChanged=sM.prototype.dataChanged;sM.prototype.panelContentVisibleChanged=sM.prototype.panelContentVisibleChanged;sM.prototype.onClick=sM.prototype.onClick;sM.prototype.onKeyUp=sM.prototype.onKeyUp;sM.prototype.onKeyDown=sM.prototype.onKeyDown;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],sM.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sM.prototype,"data",void 0);_.Y([_.x({value:[]}),_.V("design:type",Array)],sM.prototype,"snippets",void 0);_.Y([_.x({value:[]}),_.V("design:type",Array)],sM.prototype,"filteredSnippets",void 0);_.Y([_.x({value:[]}),_.V("design:type",Array)],sM.prototype,"snippetElements",void 0);
_.Y([_.Sg("#siv-input"),_.V("design:type",HTMLElement)],sM.prototype,"inputElement",void 0);_.Y([_.Sg("#siv-snippets-wrapper"),_.V("design:type",HTMLElement)],sM.prototype,"snippetsWrapper",void 0);_.Y([_.x(),_.V("design:type",String)],sM.prototype,"typedValue",void 0);_.Y([_.x({value:-1}),_.V("design:type",Number)],sM.prototype,"highlightedIndex",void 0);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[_.w6]),_.V("design:returntype")],sM.prototype,"onKeyDown",null);
_.Y([_.f3("keyup"),_.V("design:type",Function),_.V("design:paramtypes",[_.w6]),_.V("design:returntype")],sM.prototype,"onKeyUp",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],sM.prototype,"onClick",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],sM.prototype,"panelContentVisible",void 0);
_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sM.prototype,"panelContentVisibleChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sM.prototype,"dataChanged",null);_.Y([_.Nm("typedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sM.prototype,"typedValueChangedForBinding",null);
_.Y([_.K({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],sM);
_.X(sM,"ytd-search-in-video-renderer",function(){if(jDr!==void 0)return jDr;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jDr=h},{mode:1});var d3F;var Vf=function(){return _.D.apply(this,arguments)||this};
_.f(Vf,_.D);Vf.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Vf.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]]"}}}}}};
Vf.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var h,E,g,Z,M=(E=_.e((h=this.data)==null?void 0:h.onClickCommand,_.K1))==null?void 0:(g=E.item)==null?void 0:(Z=g.notificationTextRenderer)==null?void 0:Z.successResponseText;M&&_.$0u(this.hostElement,M)}};
_.ze.Object.defineProperties(Vf.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return this.isProductPlaceholder&&((h=this.data)==null?void 0:(E=h.hiddenProductOptions)==null?void 0:E.showDropCountdown)&&!!((g=this.data)==null?0:(Z=g.hiddenProductOptions)==null?0:Z.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var h;return!this.isProductPlaceholder&&!((h=this.data)==null?0:h.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null?0:h.priceReplacementText)&&!((E=this.data)==null||!E.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vf.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Vf.prototype,"componentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Vf.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vf.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"useCenterLayoutContainer",null);_.Y([_.x({computed:"computeButtonOverride(data)"}),_.V("design:type",Object)],Vf.prototype,"buttonOverride",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"isProductPlaceholder",null);
_.Y([_.S("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"showDropCountdown",null);_.Y([_.S("isProductPlaceholder","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"showBrandName",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"showPriceReplacementText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"showPrice",null);
_.Y([_.S("isProductPlaceholder"),_.V("design:type",Object),_.V("design:paramtypes",[])],Vf.prototype,"showMetadata",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Vf);
_.X(Vf,"ytd-product-list-item-renderer",function(){if(d3F!==void 0)return d3F;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return d3F=h},{mode:1});var C4G;var kb=function(){return _.D.apply(this,arguments)||this};
_.f(kb,_.D);kb.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
kb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
kb.prototype.panelContentVisibleChanged=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return h.playerApi?g.jumpTo(2):g.yield(_.aJ().getPlayerPromise(),3);g.nextAddress!=2&&(h.playerApi=g.yieldResult);(E=h.playerApi)==null||E.productsInVideoVisibilityUpdated(!!h.panelContentVisible);_.SK(g)})};
kb.prototype.panelContentVisibleChanged=kb.prototype.panelContentVisibleChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],kb.prototype,"panelContentVisible",void 0);_.Y([_.x(),_.V("design:type",Object)],kb.prototype,"data",void 0);
_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],kb.prototype,"panelContentVisibleChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],kb);
_.X(kb,"ytd-product-list-renderer",function(){if(C4G!==void 0)return C4G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return C4G=h},{mode:1});var JAG;var yf=function(){var h=_.D.apply(this,arguments)||this;h.hideTimestamps=!!_.YY("hide-transcript-timestamps");h.currentCueIndex=-1;h.flatCues=[];h.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};h.TEST_ONLY={getFlatCues:function(){return h.flatCues}};
return h};
_.f(yf,_.D);_.p=yf.prototype;_.p.hideTimestampsChanged=function(){_.Xt("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.dataChanged=function(){var h;if((h=this.data)!=null&&h.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;h=_.G(this.data.cueGroups);for(var E=h.next();!E.done;E=h.next()){E=_.G(_.e(E.value,YGr).cues);for(var g=E.next();!g.done;g=E.next())this.flatCues.push(Number(_.e(g.value,sKL).startOffsetMs))}}};
_.p.onYtPlayerTimeChanged=function(h){if(!(h<0)){for(var E=this.currentCueIndex,g=E;;){var Z=g>=0?this.flatCues[g]/1E3:-1;if(h+.5<Z)--g;else if(Z=g+1<this.flatCues.length?this.flatCues[g+1]/1E3:Infinity,h+.5>Z)g+=1;else break}g!==E&&(E>=0&&((h=this.getCueElement(E))&&h.classList.remove("active"),(E=this.getCueGroupElement(E))&&E.classList.remove("active")),(E=this.getCueElement(g))&&E.classList.add("active"),(E=this.getCueGroupElement(g))&&E.classList.add("active"),this.currentCueIndex=g,this.isHovered||
this.scrollElementToTop(g))}};
_.p.scrollElementToTop=function(h){h=this.getCueElement(h>=3?h-3:0);this.hostElement.scrollTop=Math.min(h.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.getCueElement=function(h){return _.UB(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[h]+'"]')};
_.p.getCueGroupElement=function(h){return(h=this.getCueElement(h))&&h.parentElement?h.parentElement.parentElement:null};
_.p.onTap=function(h){var E=_.zw(h);h.target.classList.contains("cue")&&this.seekCueElement(E)};
_.p.onKeyPress=function(h){h.keyCode==13&&(h=_.DZm(h.target,null,"cue"))&&this.seekCueElement(h)};
_.p.seekCueElement=function(h){h=Number(h.getAttribute("start-offset"));_.BX(this.hostElement,"yt-transcript-player-seek",[h/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
yf.prototype.onMouseLeave=yf.prototype.onMouseLeave;yf.prototype.onMouseEnter=yf.prototype.onMouseEnter;yf.prototype.onKeyPress=yf.prototype.onKeyPress;yf.prototype.onTap=yf.prototype.onTap;yf.prototype.dataChanged=yf.prototype.dataChanged;yf.prototype.hideTimestampsChanged=yf.prototype.hideTimestampsChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],yf.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yf.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yf.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],yf.prototype,"hideTimestamps",void 0);_.Y([_.x(),_.V("design:type",Boolean)],yf.prototype,"isHovered",void 0);_.Y([_.Nm("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yf.prototype,"hideTimestampsChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yf.prototype,"dataChanged",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],yf.prototype,"onTap",null);_.Y([_.f3("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],yf.prototype,"onKeyPress",null);
_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yf.prototype,"onMouseEnter",null);_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yf.prototype,"onMouseLeave",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],yf);
_.X(yf,"ytd-transcript-body-renderer",function(){if(JAG!==void 0)return JAG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JAG=h},{mode:1});var elF;var F6=function(){var h=_.D.apply(this,arguments)||this;h.darkerPanels=_.J("web_watch_darker_panels");return h};
_.f(F6,_.D);F6.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],F6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],F6.prototype,"darkerPanels",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],F6);
_.X(F6,"ytd-transcript-footer-renderer",function(){if(elF!==void 0)return elF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return elF=h},{mode:1});var qtN;var fJL;var Aw=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.showClearButton=!1;return h};
_.f(Aw,_.D);_.p=Aw.prototype;_.p.handleInput=function(h){var E=this;h.target.value.length?_.EQ(this,"ytdTranscriptSearchBoxSearch",function(){E.emitSearchEvent(h)},500):(_.hcu(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=h.target.value.length>0};
_.p.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.p.handleClick=function(){var h,E=(h=this.data)==null?void 0:h.trackingParams;E&&_.KC(_.SQ(),E)};
_.p.handleClear=function(){_.hcu(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var h,E,g=(E=_.e((h=this.data)==null?void 0:h.clearButton,_.Gh))==null?void 0:E.trackingParams;g&&_.KC(_.SQ(),g);this.clear()};
_.p.emitSearchEvent=function(h){_.Ra(this.hostElement,"yt-transcript-search-box-search",{query:h.target.value});var E,g;(h=(g=_.e((E=this.data)==null?void 0:E.searchButton,_.Gh))==null?void 0:g.trackingParams)&&_.KC(_.SQ(),h)};
_.p.emitClearEvent=function(){_.Ra(this.hostElement,"yt-transcript-search-box-clear")};
_.ze.Object.defineProperties(Aw.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.UB(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Aw.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Aw.prototype,"systemIcons",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Aw);
_.X(Aw,"ytd-transcript-search-box-renderer",function(){if(fJL!==void 0)return fJL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fJL=h},{mode:1});var NOr;var tfo;var TJ=function(){return _.D.apply(this,arguments)||this};
_.f(TJ,_.D);TJ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var h,E;this.sectionHeaderAriaLabel=(h=this.data)==null?void 0:(E=h.accessibility)==null?void 0:E.accessibilityData.label}};
TJ.prototype.fireSelectedEvent=function(h){_.Ra(this.hostElement,"ytd-transcript-section-header",{startMs:h})};
TJ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
TJ.prototype.handleKeyPress=function(h){this.data&&h.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ze.Object.defineProperties(TJ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.data)==null?void 0:h.enableTappableTranscriptHeader)!=null?E:!1}}});
TJ.prototype.dataChanged=TJ.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],TJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],TJ.prototype,"sectionHeaderAriaLabel",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],TJ.prototype,"enableTappableTranscriptHeader",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TJ.prototype,"dataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],TJ);
_.X(TJ,"ytd-transcript-section-header-renderer",function(){if(tfo!==void 0)return tfo;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return tfo=h},{mode:1});var Sta;var x3N;var bT=function(){var h=_.D.apply(this,arguments)||this;h.isEditMode=!1;h.touchCaptionsEnabled=!1;h.deleteCaptionCorrectionPopupCommand=null;h.voteCaptionCorrectionPopupCommand=null;h.roundedContainer=!0;h.mouseOver=!1;h.textChanged=!1;h.messages={suggest_correction:_.NH("suggest_correction",void 0,"Edit caption"),suggested_caption:_.NH("suggested_caption",void 0,"Suggested caption"),submit_correction:_.NH("submit_correction",void 0,"Submit for review"),cancel_correction:_.NH("cancel_correction",
void 0,"Cancel"),replay_segment:_.NH("replay_segment",void 0,"Re-play segment"),delete_correction:_.NH("delete_correction",void 0,"Delete correction")};h.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return h};
_.f(bT,_.D);_.p=bT.prototype;_.p.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.p.handleDelete=function(h){if(this.deleteCaptionCorrectionPopupCommand){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);E&&this.ytdOpenPopupBehavior.openPopup(E);h.stopPropagation()}};
_.p.handleSubmit=function(h){if(this.data&&this.data.submitCaptionCorrectionCommand&&(h.stopPropagation(),this.textChanged)){var E;h=(E=_.e(this.data.submitCaptionCorrectionCommand,_.QUM))==null?void 0:E.params;E=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:h,correctionText:String(this.ironTextAreaElement.value),originalText:_.Wp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(E);this.isEditMode=!1}};
_.p.handleUpdateSegmentText=function(h){(h=_.e(h,GHM))&&h.targetId&&this.data&&h.targetId===this.data.targetId&&(h.userCorrection&&(this.editedText=h.userCorrection),h.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Wp(this.data.snippet)),h.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=h.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=h.voteCaptionCorrectionPopupCommand?
h.voteCaptionCorrectionPopupCommand:null,h.accessibility&&(this.segmentAriaLabel=h.accessibility.accessibilityData.label))};
_.p.handleCancel=function(h){this.isEditMode=!1;h.stopPropagation();this.logClientVe(159409)};
_.p.handleEditSegmentCommand=function(h){(h=_.e(h,pAM))&&h.targetId&&this.data&&h.targetId===this.data.targetId&&this.handleEdit()};
_.p.handleEditButtonClick=function(h){this.data&&(this.handleEdit(),h.stopPropagation())};
_.p.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var h;(h=this.ironTextAreaElement.textarea)==null||h.focus();this.logClientVe(159407)}};
_.p.handleMouseEnter=function(){this.mouseOver=!0};
_.p.handleMouseLeave=function(){this.mouseOver=!1};
_.p.handleReplay=function(h){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),h.stopPropagation(),this.logClientVe(159408))};
_.p.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.p.handleKeypress=function(h){this.data&&(this.isEditMode?h.stopPropagation():this.isEnterPress(h)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(h)&&this.logClientVe(138758))};
_.p.handleTextboxClick=function(h){h.stopPropagation()};
_.p.handleTextboxKeydown=function(h){this.isControlEnterPress(h)?this.handleSubmit(h):h.key==="Escape"&&this.handleCancel(h)};
_.p.handleTextboxKeyup=function(){this.textChanged=_.Wp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.p.fireSelectedEvent=function(h){_.Ra(this.hostElement,"yt-transcript-segment-selected",{startMs:h})};
_.p.fireReplayEvent=function(h,E){_.Ra(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(h-100,0),endMs:E})};
_.p.fireEditEvent=function(h,E){_.Ra(this.hostElement,"yt-transcript-segment-edit",{startMs:h,endMs:E})};
_.p.isEnterPress=function(h){return h.key==="Enter"||h.code==="Enter"||h.code==="NumpadEnter"||h.keyCode===13?!0:!1};
_.p.isControlEnterPress=function(h){var E=h.key==="Enter"||h.code==="Enter"||h.code==="NumpadEnter"||h.keyCode===13;return(h.ctrlKey||h.metaKey)&&E};
_.p.isCopyPress=function(h){var E=h.ctrlKey;return h.key==="c"&&E};
_.p.logClick=function(){var h,E=(h=this.data)==null?void 0:h.trackingParams;E&&_.KC(_.SQ(),E)};
_.p.logClientVe=function(h){_.$T(_.SQ(),_.Uz(h))};
_.ze.Object.defineProperties(bT.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}}});
bT.prototype.handleMouseLeave=bT.prototype.handleMouseLeave;bT.prototype.handleMouseEnter=bT.prototype.handleMouseEnter;bT.prototype.dataChanged=bT.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],bT.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],bT.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bT.prototype,"isEditMode",void 0);_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"touchCaptionsEnabled",void 0);_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"editedText",void 0);_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.Y([_.x(),_.V("design:type",String)],bT.prototype,"segmentAriaLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bT.prototype,"roundedContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bT.prototype,"mouseOver",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bT.prototype,"textChanged",void 0);_.Y([_.x(),_.V("design:type",Object)],bT.prototype,"messages",void 0);
_.Y([_.Sg("#suggestion"),_.V("design:type",Object)],bT.prototype,"ironTextAreaElement",void 0);_.Y([_.S("data","editedText"),_.V("design:type",Object),_.V("design:paramtypes",[])],bT.prototype,"latestText",null);_.Y([_.S("touchCaptionsEnabled","isEditMode"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bT.prototype,"enableEditButton",null);
_.Y([_.S("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],bT.prototype,"enableUndoButton",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bT.prototype,"dataChanged",null);_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bT.prototype,"handleMouseEnter",null);
_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bT.prototype,"handleMouseLeave",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],bT);
_.X(bT,"ytd-transcript-segment-renderer",function(){if(x3N!==void 0)return x3N;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return x3N=h},{mode:1});var uT=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};h.isError=!1;h.darkerPanels=_.J("web_watch_darker_panels");h.useParentMaxHeight=_.J("web_watch_transscript_use_parent_max_height");h.segmentOffsets=[];h.segmentIndex=-1;return h};
_.f(uT,_.D);_.p=uT.prototype;_.p.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.p.segmentsChanged=function(){this.updateOffsets()};
_.p.onYtPlayerTimeChanged=function(h){for(var E=this.segmentIndex,g=E;;){if(g>=0){var Z=this.segmentOffsets[g].start;var M=this.segmentOffsets[g].isAutoScrollable}else Z=-1,M=!0;var W=h+.5;if(!M){Z=g+1<this.segmentOffsets.length?this.segmentOffsets[g+1].start:Infinity;if(W>=Z){g+=1;continue}g=-1;break}if(W<Z)Z=g-1>=0&&this.segmentOffsets[g-1].isAutoScrollable,M=g===0||Z?1:2,g-=M;else if(M=g+1<this.segmentOffsets.length&&this.segmentOffsets[g+1].isAutoScrollable?1:2,Z=g+M<this.segmentOffsets.length?
this.segmentOffsets[g+M].start:Infinity,W>Z)g+=M;else{if(g<0)break;g<this.segmentOffsets.length&&W>this.segmentOffsets[g].end&&(g=-1);break}}if(E!==g){if(E>=0){var z;(z=this.getSegmentElement(E))==null||z.classList.remove("active")}this.segmentIndex=g;if(!(g<0)){var c;(c=this.getSegmentElement(g))==null||c.classList.add("active");this.isHovered||this.scrollElementToTop(g)}}};
_.p.handleSegmentEdit=function(h){h.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=h.target,_.BX(this.hostElement,"yt-transcript-player-edit",[h.detail.startMs/1E3,h.detail.endMs/1E3]))};
_.p.handleSegmentSelected=function(h){_.BX(this.hostElement,"yt-transcript-player-seek",[h.detail.startMs/1E3])};
_.p.handleSegmentReplay=function(h){_.BX(this.hostElement,"yt-transcript-player-replay",[h.detail.startMs/1E3,h.detail.endMs/1E3])};
_.p.handleSectionHeaderSelected=function(h){_.BX(this.hostElement,"yt-transcript-player-seek",[h.detail.startMs/1E3])};
_.p.onMouseEnter=function(){this.isHovered=!0};
_.p.onMouseLeave=function(){this.isHovered=!1};
_.p.onRetryButtonClick=function(){_.Ra(this.hostElement,"transcript-retry-button-click")};
_.p.getSegmentElement=function(h){return _.UB(this.hostElement).querySelector(":nth-child("+(h+1)+")")};
_.p.scrollElementToTop=function(h){h=this.getSegmentElement(h>=2?h-2:0);this.hostElement.scrollTop=Math.min(h.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.p.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(h){var E,g=(E=h.transcriptSegmentRenderer)!=null?E:h.transcriptSectionHeaderRenderer;return{start:Number(g.startMs)/1E3,end:Number(g.endMs)/1E3,isAutoScrollable:h.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.p.clearHighlightedSegments=function(){var h=_.UB(this.hostElement);h=_.G(h.querySelectorAll("ytd-transcript-segment-renderer"));for(var E=h.next();!E.done;E=h.next())E.value.classList.remove("active")};
_.ze.Object.defineProperties(uT.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.searchResultSegments)||((E=this.data)==null?void 0:E.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
uT.prototype.onMouseLeave=uT.prototype.onMouseLeave;uT.prototype.onMouseEnter=uT.prototype.onMouseEnter;uT.prototype.handleSectionHeaderSelected=uT.prototype.handleSectionHeaderSelected;uT.prototype.handleSegmentReplay=uT.prototype.handleSegmentReplay;uT.prototype.handleSegmentSelected=uT.prototype.handleSegmentSelected;uT.prototype.handleSegmentEdit=uT.prototype.handleSegmentEdit;uT.prototype.segmentsChanged=uT.prototype.segmentsChanged;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],uT.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uT.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],uT.prototype,"isError",void 0);
_.Y([_.x(),_.V("design:type",Object)],uT.prototype,"noResultLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uT.prototype,"darkerPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uT.prototype,"useParentMaxHeight",void 0);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],uT.prototype,"segments",null);
_.Y([_.S("segments","noResultLabel"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uT.prototype,"displayNoResults",null);_.Y([_.Nm("segments"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uT.prototype,"segmentsChanged",null);_.Y([_.f3("yt-transcript-segment-edit"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],uT.prototype,"handleSegmentEdit",null);
_.Y([_.f3("yt-transcript-segment-selected"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],uT.prototype,"handleSegmentSelected",null);_.Y([_.f3("yt-transcript-segment-replay"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],uT.prototype,"handleSegmentReplay",null);
_.Y([_.f3("ytd-transcript-section-header"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],uT.prototype,"handleSectionHeaderSelected",null);_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uT.prototype,"onMouseEnter",null);_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uT.prototype,"onMouseLeave",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],uT);
_.X(uT,"ytd-transcript-segment-list-renderer",function(){if(Sta!==void 0)return Sta;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Sta=h},{mode:1});var Qf=function(){var h=_.D.apply(this,arguments)||this;h.hideTimestamps=!!_.YY("hide-transcript-timestamps");h.isLoadingTranscripts=!1;h.darkerPanels=_.J("web_watch_darker_panels");h.isError=!1;h.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return h};
_.f(Qf,_.D);_.p=Qf.prototype;_.p.headerChanged=function(){var h,E;this.baseGetTranscriptsCommand=(E=_.e((h=this.data)==null?void 0:h.header,zLi))==null?void 0:E.onTextChangeCommand};
_.p.bodyChanged=function(){var h=this.getBodyRenderer();h&&(h.initialSegments&&(this.initialTranscriptsRenderer=h),h.noResultLabel&&(this.noResultLabel=h.noResultLabel),h.retryLabel&&(this.retryLabel=h.retryLabel))};
_.p.detached=function(){this.clearSearchBoxText()};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.p.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.p.fireSearch=function(h){var E=this;if(h){var g=h.detail.query;if(this.baseGetTranscriptsCommand){var Z;h=(Z=_.e(this.baseGetTranscriptsCommand,_.MbF))==null?void 0:Z.params;var M;Z=_.e((M=this.data)==null?void 0:M.footer,VLa);var W;if((M=(W=_.e(Z==null?void 0:Z.languageMenu,ZXj))==null?void 0:W.subMenuItems)&&M.length>0&&(W=M.find(function(I){return I.selected}))){var z,c;
h=(z=W.continuation)==null?void 0:(c=z.reloadContinuationData)==null?void 0:c.continuation}z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:h,searchQuery:g}});this.ytComponentBehavior.resolveCommand(z,{commandController:{onServerError:function(){E.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});tLx(this.ytContinuationHandlerBehavior,function(){return g===E.getCurrentSearchBoxText()})}}};
_.p.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.p.onRetryButtonClick=function(){this.isError=!1;var h={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:h}))};
_.p.hideTimestampsChanged=function(){_.Xt("hide-transcript-timestamps",this.hideTimestamps)};
_.p.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.p.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.p.handleSignalActionCopyTranscript=function(){var h=this,E=this.getBodyRenderer();E&&(E=((E==null?void 0:E.searchResultSegments)||(E==null?void 0:E.initialSegments)||[]).map(function(g){return _.e(g,chL)}).filter(function(g){return!!g}).map(function(g){return{snippet:g.snippet||{runs:[{text:""}]},
startTimeText:g.startTimeText||{simpleText:""}}}).map(function(g){var Z=(g.snippet.runs||[]).reduce(function(M,W){return M+W.text},"");
return h.hideTimestamps?Z:g.startTimeText.simpleText+" "+Z}).join("\n"),this.copyToClipboard(E))};
_.p.copyToClipboard=function(h){navigator.clipboard&&navigator.clipboard.writeText(h)};
_.p.getCurrentSearchBoxText=function(){var h;return(h=this.searchBox)==null?void 0:h.value};
_.p.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.p.getBodyRenderer=function(){var h;return _.e((h=this.data)==null?void 0:h.body,aTr)};
_.p.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ze.Object.defineProperties(Qf.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.UB(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Qf.prototype.hideTimestampsChanged=Qf.prototype.hideTimestampsChanged;Qf.prototype.searchCleared=Qf.prototype.searchCleared;Qf.prototype.fireSearch=Qf.prototype.fireSearch;Qf.prototype.onReloadContinuationFinish=Qf.prototype.onReloadContinuationFinish;Qf.prototype.bodyChanged=Qf.prototype.bodyChanged;Qf.prototype.headerChanged=Qf.prototype.headerChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qf.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Qf.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Qf.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],Qf.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qf.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Qf.prototype,"hideTimestamps",void 0);
_.Y([_.x(),_.V("design:type",Object)],Qf.prototype,"isLoadingTranscripts",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Qf.prototype,"darkerPanels",void 0);_.Y([_.x(),_.V("design:type",Object)],Qf.prototype,"isError",void 0);_.Y([_.Nm("data.header"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qf.prototype,"headerChanged",null);
_.Y([_.lq("data.body"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qf.prototype,"bodyChanged",null);_.Y([_.f3("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qf.prototype,"onReloadContinuationFinish",null);_.Y([_.f3("yt-transcript-search-box-search"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Qf.prototype,"fireSearch",null);
_.Y([_.f3("yt-transcript-search-box-clear"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qf.prototype,"searchCleared",null);_.Y([_.Nm("hideTimestamps"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Qf.prototype,"hideTimestampsChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Qf);
_.X(Qf,"ytd-transcript-search-panel-renderer",function(){if(NOr!==void 0)return NOr;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return NOr=h},{mode:1});var hy=function(){var h=_.D.apply(this,arguments)||this;h.player=null;h.playerPollJobId=0;return h};
_.f(hy,_.D);_.p=hy.prototype;_.p.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.p.onLoadReloadContinuation=function(h){_.J("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:h.target.data.continuation}}):(h={clickTrackingParams:h.target.data.clickTrackingParams,getTranscriptEndpoint:{params:h.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}}))};
_.p.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.p.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.p.attached=function(){this.updatePlayerListening()};
_.p.detached=function(){this.updatePlayerListening()};
_.p.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.p.startPlayerListening=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return(E=_.zD())?g.yield(E.getPlayerPromise(),2):g.return();h.player=g.yieldResult;h.playerPollJobId=_.KP.addLowPriorityJob(function(){h.getPlayerVideoProgress()},1E3);
h.player.addEventListener("onCueRangeEnter",function(Z){h.onCueRangeEnter(Z)});
h.player.addEventListener("onCueRangeExit",function(Z){h.onCueRangeExit(Z)});
h.player.addEventListener("onStateChange",function(Z){h.onPlayerStateChange(Z)});
h.player.addEventListener("SEEK_TO",function(Z){h.onPlayerSeek(Z)});
_.SK(g)})};
_.p.getPlayerVideoProgress=function(){var h=this;_.KP.cancelJob(this.playerPollJobId);if(this.player){var E=this.player.getCurrentTime();_.BX(this.hostElement,"yt-player-time-changed",[E])}this.playerPollJobId=_.KP.addLowPriorityJob(function(){h.getPlayerVideoProgress()},1E3)};
_.p.stopPlayerListening=function(){this.player=null;_.KP.cancelJob(this.playerPollJobId)};
_.p.onPlayerStateChange=function(h){h===2&&this.removePendingCue()};
_.p.onPlayerSeek=function(h){var E;if(E=this.pendingReplayCueId)E=this.pendingReplayCueId,E=h===(_.J("web_transcript_cue_id_killswitch")?Number(E):Number(E.split("_")[1]));E||this.removePendingCue()};
_.p.onCueRangeEnter=function(h){FiF(h)&&(this.pendingReplayCueId=h)};
_.p.onCueRangeExit=function(h){FiF(h)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.p.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.p.onYtTranscriptPlayerSeek=function(h){this.player&&this.player.seekTo(h,!0)};
_.p.onYtTranscriptPlayerReplay=function(h,E){this.player&&(this.player.addCueRange(yCj(h),h,E),this.player.seekTo(h,!0),this.player.playVideo())};
_.p.onYtTranscriptPlayerEdit=function(h,E){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(yCj(h),h,E),this.player.seekTo(h,!0))};
hy.prototype.onLoadReloadContinuation=hy.prototype.onLoadReloadContinuation;hy.prototype.panelContentVisibleChanged=hy.prototype.panelContentVisibleChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],hy.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hy.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],hy.prototype,"panelContentVisible",void 0);_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hy.prototype,"panelContentVisibleChanged",null);
_.Y([_.f3("yt-load-reload-continuation"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],hy.prototype,"onLoadReloadContinuation",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],hy);
_.X(hy,"ytd-transcript-renderer",function(){if(qtN!==void 0)return qtN;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return qtN=h},{mode:1});var whL;var D30;var EN=function(){return _.D.apply(this,arguments)||this};
_.f(EN,_.D);EN.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.jj(this.hostElement,[this.data.clickCommand],this.hostElement))};
EN.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.UI)()+_.FS)+"px)"};
EN.prototype.updateShouldHideFromBinding=function(h){this.shouldHide=h.detail.value};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EN.prototype,"rendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],EN.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],EN.prototype,"shouldHide",void 0);_.Y([_.K({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],EN);
_.X(EN,"ytd-ad-engagement-panel-banner-renderer",function(){if(D30!==void 0)return D30;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return D30=h},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var lJr;var gj=function(){var h=_.D.apply(this,arguments)||this;h.modernPanels=_.J("kevlar_watch_modern_panels");h.buttonUpdate=_.J("web_modern_buttons");h.adsSemanticText=_.J("enable_ads_web_ep_buenos_aires_and_padding_fix");return h};
_.f(gj,_.D);gj.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.Y([_.x(),_.V("design:type",Object)],gj.prototype,"data",void 0);_.Y([_.x({computed:"computeHideDefaultAdBadge(data)"}),_.V("design:type",Boolean)],gj.prototype,"hideDefaultAdBadge",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gj.prototype,"modernPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gj.prototype,"buttonUpdate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],gj.prototype,"adsSemanticText",void 0);
_.Y([_.K({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],gj);
_.X(gj,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(lJr!==void 0)return lJr;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return lJr=h},{mode:1});var rAN;var ZH=function(){var h=_.D.apply(this,arguments)||this;h.darkerPanels=_.J("web_watch_darker_panels");h.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");h.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");h.modernPanels=_.J("kevlar_watch_modern_panels");h.headerClickListener=function(E){h.onHeaderClick(E)};
h.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return h};
_.f(ZH,_.D);_.p=ZH.prototype;_.p.computeAdsInfoButton=function(){if(_.J("web_modern_buttons")){var h,E;return(E=_.e((h=this.data)==null?void 0:h.subtitleComplex,kNF))==null?void 0:E.adInfoRenderer}};
_.p.updateHeaderClickListener=function(){var h,E,g;((h=this.data)==null?0:h.navigationEndpoint)||((E=this.data)==null?0:E.onClickCommand)||_.e((g=this.data)==null?void 0:g.visibilityButton,_.zh)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.p.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.p.collapsedChanged=function(){var h;(h=this.data)!=null&&h.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.J("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.p.focus=function(h){var E=this;this.titleElement&&_.KP.addJob(function(){_.h1(E.titleElement,h)},0,500)};
_.p.computeTitleAriaLabel=function(h){var E=[];if(h.title){var g,Z;E.push(this.ytRendererBehavior.getSimpleString(h.title)||((g=h.title.accessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label))}h.contextualInfo&&E.push(this.ytRendererBehavior.getSimpleString(h.contextualInfo));return E.join(" ")};
_.p.onHeaderClick=function(h){this.shouldTriggerHeaderClick(h)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.jj(this.hostElement,[this.data.onClickCommand],this.hostElement)):(h=this.getVisibilityToggleButton())&&h.click())};
_.p.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var h=_.e(this.data.visibilityButton,_.Gh)||_.e(this.data.visibilityButton,_.zh);h&&this.ytRendererBehavior.logExplicitClick(h)}};
_.p.getVisibilityToggleButton=function(){var h=_.UB(this.hostElement).querySelector("#visibility-button").firstElementChild;return(h==null?void 0:h.is)==="ytd-toggle-button-renderer"?h:null};
_.p.shouldTriggerHeaderClick=function(h){return!_.MI(_.Gw(h),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.p.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(h){h=_.e(h,_.HMM);this.targetId&&(h==null?void 0:h.targetId)===this.targetId&&(h=h.navigationButton)&&this.set("data.navigationButton",h)};
_.ze.Object.defineProperties(ZH.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var h;return!!(((h=this.entity)==null?0:h.isActionButtonHidden)||this.hideActionButton)}}});
ZH.prototype.collapsedChanged=ZH.prototype.collapsedChanged;ZH.prototype.updateHeaderClickListener=ZH.prototype.updateHeaderClickListener;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ZH.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],ZH.prototype,"targetId",void 0);_.Y([_.x(),_.V("design:type",Boolean)],ZH.prototype,"collapsed",void 0);_.Y([_.x(),_.V("design:type",Boolean)],ZH.prototype,"hideActionButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],ZH.prototype,"shortsPanel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],ZH.prototype,"liveChatEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],ZH.prototype,"learningChatEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZH.prototype,"darkerPanels",void 0);_.Y([_.Sg("#title"),_.V("design:type",HTMLElement)],ZH.prototype,"titleElement",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],ZH.prototype,"headerElement",void 0);
_.Y([_.x({computed:"computeAdsInfoButton(data)"}),_.V("design:type",Object)],ZH.prototype,"adsInfoButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZH.prototype,"enableSqueezebackPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZH.prototype,"enableAnchoredPanel",void 0);_.Y([_.x({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(h,E){return _.Jj(h.entities,"engagementPanelTitleHeaderEntity",E)}}),
_.V("design:type",Object)],ZH.prototype,"entity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZH.prototype,"modernPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("targetId"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZH.prototype,"adsSemanticText",null);_.Y([_.Nm("data","data.navigationEndpoint","data.onClickCommand"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZH.prototype,"updateHeaderClickListener",null);
_.Y([_.lq("collapsed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ZH.prototype,"collapsedChanged",null);_.Y([_.S("entity","hideActionButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ZH.prototype,"isActionButtonHidden",null);_.Y([_.K({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ZH);
_.X(ZH,"ytd-engagement-panel-title-header-renderer",function(){if(rAN!==void 0)return rAN;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return rAN=h},{mode:1});var m3G;var MQ=function(){return _.D.apply(this,arguments)||this};
_.f(MQ,_.D);MQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MQ.prototype,"data",void 0);_.Y([_.K({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],MQ);
_.X(MQ,"ytd-macro-markers-info-item-renderer",function(){if(m3G!==void 0)return m3G;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return m3G=h},{mode:1});var vdN;var WN=function(h,E,g,Z,M,W){_.wO.call(this);var z=this;this.JSC$22779_containerElement=h;this.hostElement=E;this.supportedSyncItems=g;this.syncEntityKey=Z;this.options=M;this.renderLazyListItems=W;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;H8U(this);$3x(this);this.JSC$22779_scrollAnimation=new _.UA(function(c){h.scrollTop=c});
_.jf(this,this.JSC$22779_scrollAnimation);this.addOnDisposeCallback(function(){KxL(z,!1);z.activeItem&&z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.f(WN,_.wO);var H8U=function(h){var E=_.kT(_.GF().resolve(_.c4),function(g){return g.entities.markersEngagementPanelSyncEntity||{}},function(g,Z){var M;
if(g[h.syncEntityKey]!==Z[h.syncEntityKey]&&((M=g[h.syncEntityKey])==null?void 0:M.activeItemIndex)!==void 0)if(Z=g[h.syncEntityKey].activeItemIndex,g=h.getItemByIndex(Z)){if(O8a(h,g),h.contentVisible)if(h.browsingMode){var W;((W=h.options)==null?void 0:W.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=nda(h),g.offsetTop<h.JSC$22779_containerElement.clientHeight+h.JSC$22779_containerElement.scrollTop&&W&&!h.activeItemBelowSyncPosition&&KxL(h,!1));Xh2(h)}else h.scrollToItem(g)}else _.O$(new _.xX("Could not find "+
h.supportedSyncItems+" sync child to set active.",Z,h.JSC$22779_containerElement.querySelectorAll(h.supportedSyncItems).length))});
h.unsubscribeFromTimedMarkersListSyncEntity=E;h.addOnDisposeCallback(E);YtU(h)},YtU=function(h){var E=_.GF().resolve(_.c4);
E=_.hG4(E.getState(),h.syncEntityKey);(E==null?void 0:E.activeItemIndex)!==void 0&&(E=h.getItemByIndex(E.activeItemIndex))&&O8a(h,E)},$3x=function(h){var E=new _.TD(h.onScroll,50,h);
_.jf(h,E);var g=function(){E.fire()};
h.JSC$22779_containerElement.addEventListener("scroll",g);h.addOnDisposeCallback(function(){h.JSC$22779_containerElement.removeEventListener("scroll",g)})};
WN.prototype.getItemByIndex=function(h){var E;(E=this.renderLazyListItems)==null||E.call(this,h);E=this.JSC$22779_containerElement.querySelectorAll(this.supportedSyncItems);if(E.length>h)return E[h]};
var O8a=function(h,E){h.activeItem&&h.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));E.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));h.activeItem=E};
WN.prototype.scrollToItem=function(h){h=this.getScrollPositionForItem(h);this.JSC$22779_containerElement.scrollTop!==h&&this.JSC$22779_scrollAnimation.start(this.JSC$22779_containerElement.scrollTop,h,300)};
WN.prototype.getScrollPositionForItem=function(h){if(this.JSC$22779_containerElement.querySelectorAll(this.supportedSyncItems)[0]===h)return 0;var E,g=((E=this.options)==null?0:E.percentOffset)?this.JSC$22779_containerElement.clientHeight*this.options.percentOffset:0;h=_.s6(h).y+this.JSC$22779_containerElement.scrollTop-(_.s6(this.JSC$22779_containerElement).y+g);return Math.max(0,Math.min(h,this.JSC$22779_containerElement.scrollHeight-this.JSC$22779_containerElement.offsetHeight))};
WN.prototype.onScroll=function(){this.activeItemBelowSyncPosition=nda(this);if(this.activeItem&&!this.JSC$22779_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22779_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var h;switch((h=this.options)==null?void 0:h.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":sDL(this,!VfL(this));Xh2(this);break;default:sDL(this,!0)}}};
var sDL=function(h,E){var g,Z;_.a(function(M){if(M.nextAddress==1){if(h.browsingMode)return M.return();h.browsingMode=!0;E&&h.hostElement.classList.add("browsing-mode");h.playerExitBrowsingModeListener=function(){KxL(h,!1)};
return M.yield(_.L4(),2)}g=M.yieldResult;(Z=g)==null||Z.addEventListener("SEEK_TO",h.playerExitBrowsingModeListener);_.SK(M)})},KxL=function(h,E){E=E===void 0?!0:E;
h.browsingMode&&(h.browsingMode=!1,h.hostElement.classList.remove("browsing-mode"),E&&h.scrollToItem(h.activeItem),k8o(h))},k8o=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return h.playerExitBrowsingModeListener?Z.yield(_.L4(),3):Z.jumpTo(0);E=Z.yieldResult;(g=E)==null||g.removeEventListener("SEEK_TO",h.playerExitBrowsingModeListener);h.playerExitBrowsingModeListener=void 0;_.SK(Z)})},Xh2=function(h){var E;
((E=h.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(VfL(h)?h.hostElement.classList.remove("browsing-mode"):h.activeItem&&h.hostElement.classList.add("browsing-mode"))},nda=function(h){if(!h.activeItem)return!1;
var E,g=((E=h.options)==null?0:E.percentOffset)?h.JSC$22779_containerElement.clientHeight*h.options.percentOffset:0;return h.activeItem.offsetTop>=h.JSC$22779_containerElement.scrollTop+g},VfL=function(h){if(!h.activeItem)return!1;
var E=h.activeItem.offsetTop+14<=h.JSC$22779_containerElement.scrollTop+h.JSC$22779_containerElement.clientHeight;return h.activeItem.offsetTop+h.activeItem.clientHeight-14>=h.JSC$22779_containerElement.scrollTop&&E};
WN.prototype.panelContentVisibleChanged=function(h){(this.contentVisible=h)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var yA0=function(h,E){h.syncEntityKey=E;var g;(g=h.unsubscribeFromTimedMarkersListSyncEntity)==null||g.call(h);H8U(h)},Fx0=function(h,E){h.options=E};var pK=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return h};
_.f(pK,_.D);_.p=pK.prototype;_.p.detached=function(){var h;(h=this.scrollController)==null||h.dispose();this.scrollController=void 0};
_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.p.dataChanged=function(){var h=this;_.pQ(this,function(){if(h.scrollController){var E;(E=h.scrollController)==null||KxL(E,!1);var g,Z,M;(Z=h.scrollController)==null||yA0(Z,(M=(g=h.data)==null?void 0:g.syncModelEntityKey)!=null?M:"default-macro-markers-list-renderer-entity-key");var W,z,c;(c=h.scrollController)==null||Fx0(c,{percentOffset:(W=h.data)==null?void 0:W.selectedItemAlignmentPercentOffset,floatingPillType:(z=h.data)==null?void 0:z.floatingPillType})}else{var I,B,U,L;h.scrollController=
new WN(h.contents,h.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(L=(I=h.data)==null?void 0:I.syncModelEntityKey)!=null?L:"default-macro-markers-list-renderer-entity-key",{percentOffset:(B=h.data)==null?void 0:B.selectedItemAlignmentPercentOffset,floatingPillType:(U=h.data)==null?void 0:U.floatingPillType},function(d){h.renderLazyListItems(d)})}h.scrollController.panelContentVisibleChanged(!!h.panelContentVisible)})};
_.p.computeButtonShape=function(){var h=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){h.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.p.renderLazyListItems=function(h){for(var E=this.contents.children,g=0,Z=0;Z<E.length;Z++){var M=void 0;(M=E[Z].ytLazyListBehavior)==null||M.fillRemainingListItems();var W=void 0,z=void 0;M=_.e((W=this.data)==null?void 0:(z=W.contents)==null?void 0:z[Z],_.rmH);z=W=void 0;if((W=M)==null?0:(z=W.contents)==null?0:z.length)g+=M.contents.length;if(g>=h)break}};
_.p.handleSetActivePanelItemAction=function(h){if((h=_.e(h,K2L))&&this.panelTargetId===h.panelTargetId){h=h.itemIndex;var E,g,Z=(g=(E=this.data)==null?void 0:E.syncModelEntityKey)!=null?g:"default-macro-markers-list-renderer-entity-key",M;((M=this.syncEntity)==null?void 0:M.activeItemIndex)!==h&&this.ytdReduxBehavior.dispatch(_.xx("markersEngagementPanelSyncEntity",Z,{key:Z,activeItemIndex:h}))}};
_.p.onSyncClick=function(){var h;(h=this.scrollController)==null||KxL(h)};
_.p.panelContentVisibleChanged=function(){var h;(h=this.scrollController)==null||h.panelContentVisibleChanged(!!this.panelContentVisible)};
pK.prototype.panelContentVisibleChanged=pK.prototype.panelContentVisibleChanged;pK.prototype.dataChanged=pK.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],pK.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],pK.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],pK.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pK.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],pK.prototype,"useCustomColors",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],pK.prototype,"panelTargetId",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],pK.prototype,"panelContentVisible",void 0);
_.Y([_.Sg("#contents"),_.V("design:type",HTMLElement)],pK.prototype,"contents",void 0);_.Y([_.x({selectorArgs:["data.syncModelEntityKey"],selector:_.hG4}),_.V("design:type",Object)],pK.prototype,"syncEntity",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pK.prototype,"dataChanged",null);
_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],pK.prototype,"panelContentVisibleChanged",null);_.Y([_.K({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],pK);
_.X(pK,"ytd-macro-markers-list-renderer",function(){if(vdN!==void 0)return vdN;var h=document.createElement("template");_.N(h,'\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" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vdN=h},{mode:1});var AA2;var G6=function(){return _.D.apply(this,arguments)||this};
_.f(G6,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],G6.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],G6.prototype,"data",void 0);_.Y([_.K({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],G6);
_.X(G6,"ytd-error-corrections-section-item-renderer",function(){if(AA2!==void 0)return AA2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return AA2=h},{mode:1});var TOG;var z6=function(){return _.D.apply(this,arguments)||this};
_.f(z6,_.D);z6.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],z6.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],z6.prototype,"data",void 0);_.Y([_.K({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],z6);
_.X(z6,"ytd-error-corrections-section-renderer",function(){if(TOG!==void 0)return TOG;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return TOG=h},{mode:1});var b8N;var az=function(){return _.D.apply(this,arguments)||this};
_.f(az,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],az.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],az.prototype,"data",void 0);_.Y([_.K({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],az);
_.X(az,"ytd-topic-link-renderer",function(){if(b8N!==void 0)return b8N;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return b8N=h},{mode:1});var uRU;var cN=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("kevlar_modern_sd_v2");h.modernLockupV2=_.J("modernize_structured_description_playlist_lockups_v2");return h};
_.f(cN,_.D);cN.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cN.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cN.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cN.prototype,"modernLockupV2",void 0);
_.Y([_.K({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],cN);
_.X(cN,"ytd-video-description-course-section-renderer",function(){if(uRU!==void 0)return uRU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uRU=h},{mode:1});var QD2;var iS=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("kevlar_modern_sd_v2");return h};
_.f(iS,_.D);iS.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],iS.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iS.prototype,"modern",void 0);_.Y([_.K({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],iS);
_.X(iS,"ytd-video-description-files-section-renderer",function(){if(QD2!==void 0)return QD2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return QD2=h},{mode:1});var hoN;var oz=function(){return _.D.apply(this,arguments)||this};
_.f(oz,_.D);oz.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],oz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],oz.prototype,"data",void 0);_.Y([_.K({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],oz);
_.X(oz,"ytd-video-description-gaming-section-renderer",function(){if(hoN!==void 0)return hoN;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return hoN=h},{mode:1});var EZF;var Iz=function(){var h=_.D.apply(this,arguments)||this;h.isExpanded=!1;return h};
_.f(Iz,_.D);Iz.prototype.computeHasDefaultMetadataEndpoint=function(h){var E;h=h==null?void 0:(E=h.defaultMetadata)==null?void 0:E.runs;return!(!h||h.length!==1||!h[0].navigationEndpoint)};
Iz.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ze.Object.defineProperties(Iz.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Iz.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Iz.prototype,"isExpanded",void 0);_.Y([_.x({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Iz.prototype,"hasDefaultMetadataEndpoint",void 0);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Iz.prototype,"isExpandable",null);_.Y([_.S("data","isExpandable","isExpanded"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Iz.prototype,"showExpandedMetadata",null);_.Y([_.K({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Iz);
_.X(Iz,"ytd-info-row-renderer",function(){if(EZF!==void 0)return EZF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return EZF=h},{mode:1});var gZU;var Rz=function(){var h=_.D.apply(this,arguments)||this;h.currentIndex=0;h.supportComponentResize=!0;h.modern=_.J("kevlar_modern_sd_v2");h.JSC$22809_lastScrollContainerWidth=NaN;return h};
_.f(Rz,_.D);_.p=Rz.prototype;
_.p.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.p.getItemsPath=function(){return"videoLockups"};
_.p.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.p.onIronResize=function(){this.updateVideoLockupStyles()};
_.p.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.p.updateVideoLockupStyles=function(){var h;this.JSC$22809_scrollContainer!==void 0&&(h=this.videoLockups)!=null&&h.length&&(h=this.JSC$22809_scrollContainer.clientWidth,h!==this.JSC$22809_lastScrollContainerWidth&&(this.JSC$22809_lastScrollContainerWidth=h,_.Ja(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(h*.8,415)+"px"}),_.Ra(this.hostElement,"iron-resize")))};
_.ze.Object.defineProperties(Rz.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var h=[],E;if((E=this.data)==null||!E.carouselLockups)return h;E=_.G(this.data.carouselLockups);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;((Z=_.e(g,RLM))==null?0:Z.videoLockup)&&h.push(_.e(g,RLM).videoLockup)}return h}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.videoLockups)==null||!h.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var h=[],E;if((E=this.data)==null||!E.carouselLockups)return h;var g;return(g=_.e(this.data.carouselLockups[this.scrollCount],RLM))==null?void 0:g.infoRows}}});
Rz.prototype.dataChanged=Rz.prototype.dataChanged;Rz.prototype.onIronResize=Rz.prototype.onIronResize;Rz.prototype.hiddenChanged=Rz.prototype.hiddenChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Rz.prototype,"componentBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],Rz.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rz.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rz.prototype,"inlineStructuredDescription",void 0);_.Y([_.x({value:2}),_.V("design:type",Number)],Rz.prototype,"initialCount",void 0);_.Y([_.x(),_.V("design:type",Object)],Rz.prototype,"currentIndex",void 0);
_.Y([_.x(),_.V("design:type",Number)],Rz.prototype,"scrollCount",void 0);_.Y([_.x(),_.V("design:type",Object)],Rz.prototype,"supportComponentResize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Rz.prototype,"contentHidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Rz.prototype,"modern",void 0);_.Y([_.Sg("#scroll-container"),_.V("design:type",HTMLDivElement)],Rz.prototype,"JSC$22809_scrollContainer",void 0);
_.Y([_.Nm("contentHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rz.prototype,"hiddenChanged",null);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],Rz.prototype,"videoLockups",null);_.Y([_.S("videoLockups"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Rz.prototype,"hasVideoLockups",null);
_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rz.prototype,"onIronResize",null);_.Y([_.S("data","scrollCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rz.prototype,"infoRows",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rz.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Rz);
_.X(Rz,"ytd-video-description-music-section-renderer",function(){if(gZU!==void 0)return gZU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return gZU=h},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var ZwN;var PN=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("kevlar_modern_sd_v2");return h};
_.f(PN,_.D);PN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.Y([_.x({}),_.V("design:type",Object)],PN.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],PN.prototype,"modern",void 0);_.Y([_.K({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],PN);
_.X(PN,"ytd-video-description-transcript-section-renderer",function(){if(ZwN!==void 0)return ZwN;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ZwN=h},{mode:1});var MAa;_.I9(_.O(function(h){var E=_.qI(_.Yd4,function(){return h.data().firstProviderLinkStatusEntityKey}),g=_.qI(_.Yd4,function(){return h.data().secondProviderLinkStatusEntityKey}),Z=function(){var M,W;
return((M=E())==null?void 0:M.linked)||((W=g())==null?void 0:W.linked)};
return _.R("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.R(_.dK,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return h.data().sectionTitle}}),_.R(_.dK,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return Z()?h.data().connectedMessage:h.data().notConnectedMessage}}),_.R(_.P,{cond:Z,
then:function(){return _.R(_.Sv,{data:function(){return h.data().connectedButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.R(_.P,{cond:function(){return!Z()},
then:function(){return _.R(_.Sv,{data:function(){return h.data().notConnectedButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Kk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;return _.R("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.R("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.R(_.dK,{text:function(){return E().sectionTitle}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.R(_.dK,{text:function(){return E().bodyHeader}})),_.R("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.R(_.dK,{text:function(){return E().bodyText}})),_.R(_.P,{cond:function(){return E().attributionText},
then:function(){return _.R("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.R(_.dK,{text:function(){return E().attributionText}}))}}))},"Lk"),"how-this-was-made-section-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){return _.R("yt-video-description-youchat-section-view-model",{class:_.CO("ytVideoDescriptionYouchatSectionViewModelHost")},_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.R(_.dK,{text:function(){return h.data().sectionTitle}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.R(_.dK,{text:function(){return h.data().subHeaderText}})),_.R("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.R(_.$l,{data:function(){return _.e(h.data().primaryButton,
_.i_)}})))},"Mk"),"yt-video-description-youchat-section-view-model",{props:{data:_.C6}});var BN=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return h};
_.f(BN,_.D);_.p=BN.prototype;
_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.p.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.p.dataChanged=function(){var h,E;this.hasDescriptionOnly=!(((h=this.data)==null?void 0:(E=h.items)==null?void 0:E.length)!==1||!_.e(this.data.items[0],kR))};
_.p.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.p.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.p.autoFocusDescription=function(){var h;((h=_.GF().resolve(_.pl(_.DX)))==null?0:h.isKeyBoardInUse())&&this.description&&_.E$(this.description)};
_.p.resize=function(){if(_.J("kevlar_disable_sd_resize"))this.JSC$22818_cardList&&_.Ra(this.JSC$22818_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Ra(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Ra(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.p.scrollToSection=function(h){if(h=this.getSectionElement(h))_.BX(this.hostElement,"yt-scroll-to-watch-element",[h]),h.focus()};
_.p.getSectionElement=function(h){switch(h){case "infocards-item-section":var E;return(E=this.infocardsSection)!=null?E:null;case "transcript-item-section":var g;return(g=this.transcriptSection)!=null?g:null;case "how-this-was-made-section-item-section":var Z;return(Z=this.howThisWasMadeSection)!=null?Z:null;case "files-item-section":var M;return(M=this.filesSection)!=null?M:null;default:return null}};
_.p.handleSetActiveItemAction=function(h){var E=_.e(h,K2L),g=E&&(E==null?void 0:E.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22818_cardList;if(E&&g){h=this.currentActiveChapter;var Z=this.currentActiveProblem;E=g==null?void 0:g.getItemByIndex(E.itemIndex);var M=g=!0;E&&(E.active=!0,E.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(g=h!==E,M=!1,this.currentActiveChapter=E):(E==null?void 0:E.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(g=!1,M=Z!==E,this.currentActiveProblem=E));h&&g&&(h.active=!1);Z&&M&&(Z.active=!1)}};
_.ze.Object.defineProperties(BN.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.J("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
BN.prototype.onYtExpanderMoreTapped=BN.prototype.onYtExpanderMoreTapped;BN.prototype.onHiddenChanged=BN.prototype.onHiddenChanged;BN.prototype.dataChanged=BN.prototype.dataChanged;BN.prototype.panelContentVisibleChanged=BN.prototype.panelContentVisibleChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],BN.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],BN.prototype,"ironResizableBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BN.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],BN.prototype,"panelContentVisible",void 0);_.Y([_.x(),_.V("design:type",Boolean)],BN.prototype,"hasDescriptionOnly",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"inlineStructuredDescription",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"hidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"shortsPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],BN.prototype,"videoSummary",void 0);_.Y([_.x(),_.V("design:type",Object)],BN.prototype,"merchShelf",void 0);
_.Y([_.S("videoSummary"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],BN.prototype,"showVideoSummary",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"engagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],BN.prototype,"watchWhileSdp",void 0);_.Y([_.Sg("ytd-expandable-video-description-body-renderer"),_.V("design:type",Object)],BN.prototype,"description",void 0);
_.Y([_.Sg("ytd-horizontal-card-list-renderer"),_.V("design:type",Object)],BN.prototype,"JSC$22818_cardList",void 0);_.Y([_.Sg("ytd-horizontal-card-list-renderer[center-items]"),_.V("design:type",Object)],BN.prototype,"problemWalkthroughCardList",void 0);_.Y([_.Sg("ytd-shelf-renderer"),_.V("design:type",Object)],BN.prototype,"shelfSection",void 0);_.Y([_.Sg("ytd-video-description-music-section-renderer"),_.V("design:type",Object)],BN.prototype,"musicMetadataSection",void 0);
_.Y([_.Sg("ytd-video-description-infocards-section-renderer"),_.V("design:type",Object)],BN.prototype,"infocardsSection",void 0);_.Y([_.Sg("ytd-video-description-transcript-section-renderer"),_.V("design:type",Object)],BN.prototype,"transcriptSection",void 0);_.Y([_.Sg("how-this-was-made-section-view-model"),_.V("design:type",Object)],BN.prototype,"howThisWasMadeSection",void 0);_.Y([_.Sg("ytd-video-description-files-section-renderer"),_.V("design:type",Object)],BN.prototype,"filesSection",void 0);
_.Y([_.Nm("panelContentVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"panelContentVisibleChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"dataChanged",null);_.Y([_.Nm("hidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"onHiddenChanged",null);
_.Y([_.f3("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BN.prototype,"onYtExpanderMoreTapped",null);_.Y([_.K({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],BN);
_.X(BN,"ytd-structured-description-content-renderer",function(){if(MAa!==void 0)return MAa;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return MAa=h},{mode:2});var WEo;var pmj;var UN=function(){return _.D.apply(this,arguments)||this};
_.f(UN,_.D);UN.prototype.computeAriaLabel=function(h){var E,g;return(h==null?void 0:(E=h.accessibility)==null?void 0:(g=E.accessibilityData)==null?void 0:g.label)||_.NH("LOADING",void 0,"Loading")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UN.prototype,"data",void 0);_.Y([_.x({computed:"computeAriaLabel(data)"}),_.V("design:type",String)],UN.prototype,"ariaLabel",void 0);_.Y([_.yc({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],UN);
_.X(UN,"yt-content-loading-renderer",function(){if(pmj===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;WEo===void 0&&(WEo=document.createElement("template"));var Z=WEo;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);pmj=h}h=pmj;return h},{mode:_.UQ("kevlar_poly_si_batch_j043")?1:2});_.I9(_.O(function(h){var E=_.G(_.Bm(!1,void 0,"OZMtVb")),g=E.next().value,Z=E.next().value;E=_.G(_.Bm(!1,void 0,"qWERsf"));var M=E.next().value,W=E.next().value;_.vJ(function(){var I=_.e(h.data().collaboratePlaylistCollaborationSetting,MKF);I&&Z(I.switchedOnByDefault);var B=_.e(h.data().allowNewCollaboratorsPlaylistCollaborationSetting,MKF);B&&W(B.switchedOnByDefault);if(!I&&!B||!I&&h.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")Z(!0),W(!0)});
var z=function(I){Z(I);W(I);var B=h.data().playlistCollaborationEntityKey||"";var U=_.pL().getState();(U=_.Jj(U.entities,"playlistCollaborationEntity",B))&&(U==null?void 0:U.isCollaborative)===I||_.pL().dispatch(_.xx("playlistCollaborationEntity",B,Object.assign({},U,{isCollaborative:I})))},c=function(I){W(I)};
return _.R("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.Sv,{data:function(){return h.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.R(_.y8D,{data:I.data,
onSwitch:z})}})),_.R(_.P,{cond:g,
then:function(){return _.R(_.zt,null,_.R("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.R(_.Sv,{data:function(){return h.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(I){return _.R(_.y8D,{data:I.data,
onSwitch:c,overrideDisabled:!1})}})),_.R(_.P,{cond:M,
then:function(){return _.R("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.R(_.Sv,{data:function(){return h.data().copyLinkButton}},{buttonViewModel:_.$l}))}}),_.R("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.R(_.Sv,{data:function(){return h.data().playlistCollaborators}},{contentListItemViewModel:_.FkG})))}}))},"Nk"),"playlist-collaboration-view-model",{props:{data:_.C6}});var G9G=_.O(function(h){var E=h.data;var g=h.customCommandResolver;return _.R(_.zt,null,_.R("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.R(_.Sv,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(Z){return _.R(_.eiD,{data:Z.data,
customCommandResolver:g})}})),_.R("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.R(_.P,{cond:function(){return E().headline},
then:function(Z){return _.R(_.dK,{text:Z,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.R("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.R(_.Sv,{data:function(){return E().adBadge}},{adBadgeViewModel:function(Z){return _.R(_.rS,{data:Z.data,
hasDot:function(){return E().primaryDetailsLine!==void 0},
customCommandResolver:g,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.R(_.Sv,{data:function(){return E().primaryDetailsLine}},{adDetailsLineViewModel:function(Z){return _.R(_.mt,{data:Z.data,
customCommandResolver:g,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ok"),zoL=_.O(function(h){var E=h.data;
var g=h.customCommandResolver;return _.R("ad-avatar-lockup-view-model",{class:function(){var Z;return((Z=E().interaction)==null?0:Z.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.zT(_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq}),_.VS(function(){return E().interaction},g)),
"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R(_.DG,null,_.R(_.x3,{when:function(){return E().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.R(G9G,{data:E,
customCommandResolver:g})}),_.R(_.wX,null,function(){return null})))},"Pk");_.I9(_.O(function(h){var E=h.data;var g=h.panelContentVisibility;h=_.c6({visibilityCallback:function(W){var z,c=(z=E().interaction)==null?void 0:z.onFirstVisible;W&&c&&_.Tl(c)},
showOption:_.Nq});var Z=_.VS(function(){return E().interaction},ACL);
_.$Z(function(){var W,z;if(z=_.yy("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;z=(c=z())==null?void 0:c.onLayoutVisibleCallback}else z=null;(W=z)==null||W()});
var M=function(){return g()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.R("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.zT(h,Z)},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.R(_.P,{cond:_.Deu("(min-width: "+((0,_.UI)()+_.FS)+"px) or (max-width: 600px)"),then:function(){return _.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(W){return _.R(_.Xu,{data:W.data,
targetHeight:80,customCommandResolver:ACL})}})}})),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.R(_.Sv,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(W){return _.R(zoL,{data:W.data,
customCommandResolver:ACL})}})),_.R(_.P,{cond:M,
then:function(){return _.R(_.Sv,{data:function(){return E().adButton}},{adButtonViewModel:function(W){return _.R(_.SV,{data:W.data,
customCommandResolver:ACL})}})},
else:function(){return _.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:_.$l})}}),_.R("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.R(_.Sv,{data:function(){var W=_.e(E().toggleButton,_.Ix);
return{toggleButtonViewModel:Object.assign({},W,{isTogglingDisabled:!0,isToggled:M()})}}},{toggleButtonViewModel:_.Z7})))))},"Qk"),"panel-ad-header-image-lockup-view-model",{props:{data:_.C6,
panelContentVisibility:_.C6}});_.I9(_.O(function(h){var E=function(){return _.e(h.data().inputComposerViewModel,WnG)},g=function(){var q;
return((q=E())==null?void 0:q.youchatPendingResponseEntityKey)||""},Z=_.qI(_.LkG,g),M=function(){var q;
return!((q=Z())==null||!q.isPendingResponse)},W=_.G(_.Bm(!0,void 0,"UmKX1e")),z=W.next().value,c=W.next().value,I=function(){return E().sectionTargetId||"youchat_messages_section"};
W=_.MC("yt-chat-input-view-model");var B=_.hf("textarea"),U=_.qI(HUL,"chat_input_view_model_state"),L=$Za(),d=function(){var q;return!((q=U())==null||!q.value)};
_.vJ(function(){var q;if(!d()&&((q=E())==null?0:q.welcomeFeatureContinuation)){var w;((w=E())==null?0:w.setPendingResponseOnWelcome)&&_.jvC(g())(!0);q={continuationCommand:{token:E().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var r;w=String(Math.floor(((r=_.jv())==null?void 0:r.getCurrentTime())||0)*1E3);r={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:w}};_.y1(q,{form:{formData:r}});L(!0)}var v=I(),H;(H=_.GF().resolve(_.pl(_.TV)))==null||
H.addEventListener("yt-navigate-start",function(){_.tU.remove(v);L(!1)},{once:!0})});
var C=function(){var q=B.value.value;B.value.value="";TIj(B.value);var w,r=((w=E())==null?void 0:w.enableGradientColorBg)||!1;w=bUL(I(),q,r);_.y1(w);var v=_.jvC(g()),H;_.Tl(((H=E())==null?void 0:H.onSubmitCommand)||{});v(!0);var u;H=String(Math.floor(((u=_.jv())==null?void 0:u.getCurrentTime())||0)*1E3);var k;u={continuationCommand:{token:(k=E())==null?void 0:k.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};q={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:q,
playerOffsetMs:H}};_.y1(u,{form:{formData:q},commandController:{onSuccess:function(){v(!1)},
onServerError:function(){var y=I();_.y1({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:y}}]}}});v(!1)}}})};
return _.R("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:W},_.R("div",{class:"chatInputViewModelChatInputWrapper"},_.R("form",{class:"chatInputViewModelChatInputForm"},_.R("textarea",{class:"chatInputViewModelChatInput",el:B,"on:keydown":_.J7(function(q){var w=M()||!1;TIj(B.value);w||q.key!=="Enter"||q.shiftKey||(q.preventDefault(),C());return!1}),
"on:keyup":_.J7(function(){c(B.value.value.length===0);return!1}),
placeholder:function(){var q,w;var r=_.e((w=E())==null?void 0:w.inputFormField,vr2);return r==null?void 0:(q=r.contentProperties)==null?void 0:q.placeholderText},
rows:1}),_.R(_.$l,{data:function(){return _.e(h.data().sendButton,_.i_)},
onClick:function(q){q.preventDefault();C();c(B.value.value.length===0)},
buttonOverrides:function(){return{disabled:z()||M()}}})),_.R(_.dK,{className:"chatInputViewModelChatDisclaimer",
text:function(){var q;return(q=_.e(h.data().disclaimer,_.m8D))==null?void 0:q.text}})))},"Rk"),"yt-chat-input-view-model",{props:{data:_.C6}});var aax=["engagement-panel-clip-create","engagement-panel-clip-view"],cVU=0,LK=function(){var h=_.D.apply(this,arguments)||this;var E;h.headerData=(E=h.data)==null?void 0:E.header;h.darkerPanels=_.J("web_watch_darker_panels");h.matchContentTheme=_.J("web_watch_panel_content_match_theme");h.disableAutoFill=!1;h.isFullscreen=!1;h.isTheaterMode=!1;h.modernPanels=_.J("kevlar_watch_modern_panels");h.liveChatReplyPanel=!1;h.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");h.disableBackdropFilter=
_.J("web_disable_backdrop_filter");h.isPersistentPanel=!1;h.trackEngagementPanelVisibility=_.J("web_watch_track_engagement_panel_visibility");h.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 h};
_.f(LK,_.D);_.p=LK.prototype;
_.p.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(h){var E;return(h==null?void 0:(E=h.webComponentHint)==null?void 0:E.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.p.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var h;if((h=this.hostElement.parentElement)==null?0:h.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.p.detached=function(){this.updateTheaterDisablement()};
_.p.showPanel=function(){var h=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.KP.addJob(function(){h.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.p.maybeScrollToItemSection=function(h){var E=this,g,Z=h==null?void 0:(g=h.sectionListEngagementPanelExtras)==null?void 0:g.scrollToItemSectionIdentifier;Z&&_.KP.addJob(function(){var M;(M=E.sectionListRendererElement)==null||M.scrollToItemSection(Z)},8)};
_.p.hidePanel=function(){var h=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.KP.addJob(function(){h.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.p.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.p.updatePanel=function(h,E,g,Z){var M=this;if((h=h==null?void 0:h.engagementPanelSectionListRenderer)||Z){if(h){Z=h.header;var W=h.content,z=h.footer;(h=h.targetId)&&this.set("data.targetId",h);Z&&this.set("data.header",Z);W&&this.set("data.content",W);z&&this.set("data.footer",z)}else Z&&(h=Z.content,W=Z.secondaryHeaderContent,(Z=Z.targetId)&&this.set("data.targetId",Z),h&&this.set("data.content",h),W&&(this.secondaryHeaderData=W));this.updateChildVisibilityProperties();if(E){var c;_.J("kevlar_update_panel_focus_scroll_killswitch")||
(c={preventScroll:!0});this.focus(c)}_.pQ(this,function(){_.Ra(M.hostElement,"yt-refit");M.maybeScrollToItemSection(g)})}};
_.p.computeHeaderData=function(){var h,E=(0,_.Kt.unsafeClone)((h=this.data)==null?void 0:h.header);if(E){h=new _.I2(Object.keys(E)[0]);var g=_.e(E,h),Z=_.e(this.secondaryHeaderData,h);Z&&_.nL(E,h,Object.assign({},Z,g))}return E};
_.p.getReloadContinuation=function(){var h,E,g,Z=_.G(((h=this.data)==null?void 0:(E=h.content)==null?void 0:(g=E.sectionListRenderer)==null?void 0:g.continuations)||[]);for(h=Z.next();!h.done;h=Z.next())if(h=h.value,h.reloadContinuationData)return h.reloadContinuationData.continuation};
_.p.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var h;((h=this.data)==null?0:h.targetId)&&(h=this.contentElement.firstElementChild)&&h.setAttribute("panel-target-id",this.data.targetId)};
_.p.forwardPopupClosedToFlowRootRenderer=function(){var h=_.UB(this.hostElement).querySelector("ytd-flow-root-renderer");if(h)h.onPopupClosed()};
_.p.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var h;if(!aax.includes((h=this.theaterDisablementPanelIdentifier)!=null?h:""))if(h=_.J("web_watch_imax_theater_mode")&&this.isTheaterMode,h=_.J("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||h,_.J("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||h){var E;this.visibility=(E=this.data)==null?void 0:E.visibility;var g;this.trackEngagementPanelVisibility&&((g=this.data)==null?void 0:g.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var Z,M,W,z;this.contentEmpty=!!(((Z=this.data)==null?0:(M=Z.content)==null?0:M.structuredDescriptionContentRenderer)&&Object.keys((W=this.data)==null?void 0:(z=W.content)==null?void 0:
z.structuredDescriptionContentRenderer).length===0);(E=_.GF().resolve(_.QW))&&E.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.p.isTheaterModeChanged=function(){_.J("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.isFullscreenChanged=function(){_.J("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.p.focus=function(h){if(this.header)this.header.focus(h);else{var E;(E=_.UB(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||E.focus(h)}};
_.p.visibilityChanged=function(){if(!_.J("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var h=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",g=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Z=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",M=Z||!this.lastVisibility,W,z,c,I=((W=this.data)==null?void 0:(z=W.identifier)==null?void 0:
z.tag)||((c=this.data)==null?void 0:c.panelIdentifier);if(h&&M){var B;((B=this.data)==null?0:B.onShowCommands)&&_.jj(this.hostElement,this.data.onShowCommands,this.hostElement);I&&_.Gv().dispatch(_.RY({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:I}}))}else if(E&&g){var U;((U=this.data)==null?0:U.onHideCommands)&&_.jj(this.hostElement,this.data.onHideCommands,this.hostElement);I&&_.Gv().dispatch(_.RY({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:I}}))}h&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*cVU++));_.J("kevlar_watch_focus_on_engagement_panels")&&h&&Z&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.p.notifyVisibilityChanged=function(h){var E;_.U7(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,h,(E=this.data)==null?void 0:E.targetId])};
_.p.updateTheaterDisablement=function(){if(!_.J("kevlar_watch_theater_disablement_killswitch")){var h=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&aax.includes(h)&&!_.J("watch_next_grid_ignore_disallowed_panels")){var E=_.XN(_.Gv().getState()),g=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";h!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():g?(this.originalTheaterState===void 0&&(this.originalTheaterState=E,this.theaterDisablementPanelIdentifier=
h),E&&_.BX(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.p.clearTheaterDisablement=function(){_.BX(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.p.updateChildVisibilityProperties=function(){this.hostElement||_.J("kevlar_panel_property_init_killswitch")||this._enableProperties();var h=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=h);var E,g=(E=this.headerElement)==null?void 0:E.firstElementChild;if(g&&!this.adHeaderImageLockupViewModel){E=h==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";g.collapsed=E;g=_.UB(g).querySelector("#visibility-button");if(!g)return;(g=g.firstElementChild)&&
g.polymerController.is==="ytd-toggle-button-renderer"&&g.polymerController.data.isToggled!==E&&g.polymerController.set("data.isToggled",E)}var Z;if(E=(Z=this.contentElement)==null?void 0:Z.firstElementChild)if(h&&h!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")E.removeAttribute("panel-content-visible");else{E.setAttribute("panel-content-visible","");var M;(M=E.markDirty)==null||M.call(E)}};
_.p.onYtChangeEngagementPanelVisibilityAction=function(h){var E=this,g,Z=(g=this.data)==null?void 0:g.targetId,M,W,z;g=((M=this.data)==null?void 0:(W=M.identifier)==null?void 0:W.tag)||((z=this.data)==null?void 0:z.panelIdentifier);var c=_.e(h,_.c2F),I;h=Z&&(c==null?void 0:c.targetId)===Z||g&&(c==null?void 0:(I=c.panelIdentifier)==null?void 0:I.tag)===g;this.dialog&&h&&(c==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(Z==="engagement-panel-comments-section"?_.BX(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.BX(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",g]));!_.J("kevlar_use_engagement_panel_management_component")&&h&&(Z=c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!Z?_.KP.addJob(function(){E.visibility=c.visibility},2,this.hideDelayMs):this.visibility=c.visibility,c.visibility&&this.notifyVisibilityChanged(c.visibility))};
_.p.onYtScrollToEngagementPanelCommand=function(h){var E,g=(E=this.data)==null?void 0:E.targetId,Z,M,W;E=((Z=this.data)==null?void 0:(M=Z.identifier)==null?void 0:M.tag)||((W=this.data)==null?void 0:W.panelIdentifier);h=_.e(h,_.J2D);var z;(g&&(h==null?void 0:h.targetId)===g||E&&(h==null?void 0:(z=h.panelIdentifier)==null?void 0:z.tag)===E)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.BX(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.p.attachVEs=function(h){var E,g;(h==null?0:(E=h.content)==null?0:(g=E.productListRenderer)==null?0:g.trackingParams)&&_.SQ().graftServerVe(h.content.productListRenderer.trackingParams);var Z,M;(h==null?0:(Z=h.content)==null?0:(M=Z.transcriptRenderer)==null?0:M.trackingParams)&&_.SQ().graftServerVe(h.content.transcriptRenderer.trackingParams)};
_.p.onYtUpdateEngagementPanelAction=function(h){var E,g=(E=this.data)==null?void 0:E.targetId;h=_.e(h,nrK);g&&(h==null?void 0:h.targetId)===g&&(this.updatePanel({engagementPanelSectionListRenderer:{header:h==null?void 0:h.header,content:h==null?void 0:h.content}},!1),this.attachVEs(h))};
_.p.onYtShowEngagementPanelScrimAction=function(h){var E,g=(E=this.data)==null?void 0:E.targetId;h=_.e(h,OMF);g&&(h==null?void 0:h.engagementPanelTargetId)===g&&(this.scrimmed=!0)};
_.p.onYtHideEngagementPanelScrimAction=function(h){var E,g=(E=this.data)==null?void 0:E.targetId;h=_.e(h,$oM);g&&(h==null?void 0:h.engagementPanelTargetId)===g&&(this.scrimmed=!1)};
_.p.getIdentifier=function(){var h,E,g;return((h=this.data)==null?void 0:h.panelIdentifier)||((E=this.data)==null?void 0:(g=E.identifier)==null?void 0:g.tag)};
_.p.getSurface=function(){var h,E;return(h=this.data)==null?void 0:(E=h.identifier)==null?void 0:E.surface};
_.ze.Object.defineProperties(LK.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var h=this.getIdentifier();return h==="engagement-panel-youchat"||h==="PAyouchat"}}});
LK.prototype.visibilityChanged=LK.prototype.visibilityChanged;LK.prototype.isFullscreenChanged=LK.prototype.isFullscreenChanged;LK.prototype.isTheaterModeChanged=LK.prototype.isTheaterModeChanged;LK.prototype.dataChanged=LK.prototype.dataChanged;LK.prototype.forwardPopupClosedToFlowRootRenderer=LK.prototype.forwardPopupClosedToFlowRootRenderer;LK.prototype.onYtRendererstamperFinished=LK.prototype.onYtRendererstamperFinished;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],LK.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],LK.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],LK.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],LK.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"data",void 0);
_.Y([_.x({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.V("design:type",Object)],LK.prototype,"headerData",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"secondaryHeaderData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"visibility",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"contentEmpty",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"scrimmed",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"dialog",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"dropdown",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"darkerPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"matchContentTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"disableAutoFill",void 0);
_.Y([_.x({reflectToAttribute:!0,value:_.J("optimal_reading_width_comments_ep")}),_.V("design:type",Boolean)],LK.prototype,"optimalReadingWidthComments",void 0);_.Y([_.x(),_.V("design:type",Number)],LK.prototype,"hideDelayMs",void 0);_.Y([_.x({selector:_.YP,reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"isFullscreen",void 0);_.Y([_.x({selector:_.XN,reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"isTheaterMode",void 0);
_.Y([_.x(),_.V("design:type",Number)],LK.prototype,"showDelayMs",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.targetId"),_.V("design:type",Object),_.V("design:paramtypes",[])],LK.prototype,"targetId",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],LK.prototype,"webSize",null);_.Y([_.x(),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],LK.prototype,"hideFooterBorder",null);
_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"isWatch",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"originalTheaterState",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"theaterDisablementPanelIdentifier",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"modernPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"isWatchWhilePanel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"shortsPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"liveChatEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],LK.prototype,"learningChatEngagementPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"liveChatReplyPanel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"enableAnchoredPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"disableBackdropFilter",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LK.prototype,"isPersistentPanel",void 0);_.Y([_.x(),_.V("design:type",Object)],LK.prototype,"trackEngagementPanelVisibility",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],LK.prototype,"headerElement",void 0);
_.Y([_.Sg("#header > *"),_.V("design:type",HTMLElement)],LK.prototype,"header",void 0);_.Y([_.Sg("ytd-section-list-renderer"),_.V("design:type",Object)],LK.prototype,"sectionListRendererElement",void 0);_.Y([_.Sg("panel-ad-header-image-lockup-view-model"),_.V("design:type",HTMLElement)],LK.prototype,"adHeaderImageLockupViewModel",void 0);_.Y([_.Sg("#content"),_.V("design:type",HTMLElement)],LK.prototype,"contentElement",void 0);
_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"onYtRendererstamperFinished",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.Y([_.lq("data","isFullscreen","isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"dataChanged",null);
_.Y([_.Nm("isTheaterMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"isTheaterModeChanged",null);_.Y([_.Nm("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"isFullscreenChanged",null);_.Y([_.Nm("visibility"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LK.prototype,"visibilityChanged",null);
_.Y([_.K({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],LK);
_.X(LK,"ytd-engagement-panel-section-list-renderer",function(){if(whL!==void 0)return whL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return whL=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var iw2;var j5=function(){var h=_.D.apply(this,arguments)||this;h.lastRenderedPanelIds=new Set;h.visiblePanels=[];h.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return h};
_.f(j5,_.D);_.p=j5.prototype;_.p.dataChanged=function(){if(this.data){for(var h=[],E=_.G(this.data),g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0,M=void 0,W=(Z=g)==null?void 0:(M=Z.engagementPanelSectionListRenderer)==null?void 0:M.visibility;M=Z=void 0;((Z=g)==null?0:(M=Z.engagementPanelSectionListRenderer)==null?0:M.targetId)&&W!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&h.push(g)}this.visiblePanels=h}else this.visiblePanels=[]};
_.p.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.p.withoutVisiblePanelById=function(h){return this.visiblePanels.filter(function(E){var g;return((g=E.engagementPanelSectionListRenderer)==null?void 0:g.targetId)!==h})};
_.p.onYtChangeEngagementPanelVisibilityAction=function(h){var E=this,g=_.e(h,_.c2F);if(this.data&&(g==null?0:g.targetId)&&(g==null?0:g.visibility)){var Z,M=(Z=this.data.find(function(z){var c;return((c=z.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===g.targetId}))==null?void 0:Z.engagementPanelSectionListRenderer;
if(M){var W=this.withoutVisiblePanelById(g.targetId);g.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(h=this.data.find(function(z){var c;return((c=z.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===g.targetId}))&&(W=[h].concat(_.$E(W)));
this.hideDelayMs&&g.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.length===0?_.KP.addJob(function(){M.visibility=g.visibility;E.visiblePanels=W},10,this.hideDelayMs):(M.visibility=g.visibility,this.visiblePanels=W);
_.U7(this.hostElement,"yt-engagement-panels-visible-changed",[W])}}};
_.p.onRendererstamperFinished=function(){var h=new Set(this.visiblePanels.map(function(E){var g;return(g=E.engagementPanelSectionListRenderer)==null?void 0:g.targetId}));
this.handlePanelVisibilityChange(h,this.lastRenderedPanelIds);this.lastRenderedPanelIds=h};
_.p.handlePanelVisibilityChange=function(h,E){h=h===void 0?new Set:h;E=E===void 0?new Set:E;if(this.data)for(var g=_.G(this.data),Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=void 0,W=void 0,z=(M=Z)==null?void 0:(W=M.engagementPanelSectionListRenderer)==null?void 0:W.targetId;if(z&&(M=E.has(z),W=h.has(z),z=void 0,!M&&W?(W=M=void 0,z=(M=Z)==null?void 0:(W=M.engagementPanelSectionListRenderer)==null?void 0:W.onShowCommands):M&&!W&&(W=M=void 0,z=(M=Z)==null?void 0:(W=M.engagementPanelSectionListRenderer)==
null?void 0:W.onHideCommands),z))for(Z=_.G(z),z=Z.next();!z.done;z=Z.next())this.ytComponentBehavior.resolveCommand(z.value)}};
j5.prototype.onRendererstamperFinished=j5.prototype.onRendererstamperFinished;j5.prototype.dataChanged=j5.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],j5.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],j5.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],j5.prototype,"lastRenderedPanelIds",void 0);_.Y([_.x(),_.V("design:type",Number)],j5.prototype,"hideDelayMs",void 0);_.Y([_.x(),_.V("design:type",Array)],j5.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],j5.prototype,"visiblePanels",void 0);_.Y([_.x(),_.V("design:type",Boolean)],j5.prototype,"isWatchWhilePanel",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j5.prototype,"dataChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j5.prototype,"onRendererstamperFinished",null);_.Y([_.K({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],j5);
_.X(j5,"ytd-watch-engagement-panels",function(){if(iw2!==void 0)return iw2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return iw2=h},{mode:1});var oZj;var dj=function(){return _.D.apply(this,arguments)||this};
_.f(dj,_.D);dj.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.GH(_.UB(this.hostElement).querySelector("#text"),_.kfD(_.Ank,this.data.companionLegalText))};
dj.prototype.computeAutoScrollEnabled=function(h,E){return h&&!E};
dj.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
dj.prototype.onToggleTap=function(){this.expanded=!this.expanded};
dj.prototype.expandedChanged=dj.prototype.expandedChanged;dj.prototype.dataChanged=dj.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.rrc),_.V("design:type",Object)],dj.prototype,"ytdAutoScrollBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],dj.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],dj.prototype,"expanded",void 0);
_.Y([_.x({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.V("design:type",Boolean)],dj.prototype,"autoScrollEnabled",void 0);_.Y([_.x(),_.V("design:type",String)],dj.prototype,"expanderIcon",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dj.prototype,"dataChanged",null);
_.Y([_.Nm("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dj.prototype,"expandedChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],dj);
_.X(dj,"ytd-companion-legal-text-renderer",function(){if(oZj!==void 0)return oZj;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return oZj=h},{mode:1});var Iar;var CK=function(){var h=_.D.apply(this,arguments)||this;h.buttonUpdate=_.J("web_modern_buttons");h.kevlarWatchGrid=_.J("kevlar_watch_grid");h.centerAlignDescription=_.J("action_companion_center_align_description");h.truncateDomain=_.J("action_companion_truncate_domain");return h};
_.f(CK,_.D);_.p=CK.prototype;_.p.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.p.getOnLayoutVisibleCallback=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.layoutId:null};
_.p.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",CK.JSC$22865_DEFAULT_AD_BADGE_RENDERER);var h=this.getOnLayoutVisibleCallback();h&&h()}};
_.p.getButtonRenderer=function(h){return h.actionButton&&_.e(h.actionButton,_.Gh)?(delete _.e(h.actionButton,_.Gh).navigationEndpoint,_.e(h.actionButton,_.Gh)):{}};
_.p.onClick=function(h){var E=this;if((!_.J("web_modern_buttons")||!_.MI(_.Gw(h),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){h=_.zD();var g=this.getLayoutId();h&&g&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?h.getPlayerPromise().then(function(Z){(new _.Qb(Z)).executeCommand(E.data.navigationEndpoint,g)}):_.J("kevlar_companion_resolve_command_killswitch")?_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.BX(this.hostElement,"yt-companion-ad-clicked",["action-companion",g])}};
_.ze.Object.defineProperties(CK.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?0:(E=h.detailsLine)==null?0:(g=E.adRating)==null?0:g.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 h,E,g,Z;return((h=this.data)==null?0:(E=h.detailsLine)==null?0:(g=E.adRating)==null?0:(Z=g.ratingIcon)==null?0:Z.iconType)?_.CL(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return((h=this.data)==null?0:(E=h.detailsLine)==null?0:(g=E.texts)==null?0:(Z=g[0])==null?0:Z.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 h,E;return((h=this.data)==null?0:(E=h.description)==null?0:E.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var h=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return h?h.indexOf("/default_banner")!==-1:!0}}});
CK.prototype.onClick=CK.prototype.onClick;CK.prototype.dataChanged=CK.prototype.dataChanged;CK.JSC$22865_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.NH("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],CK.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CK.prototype,"rendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],CK.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],CK.prototype,"buttonUpdate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],CK.prototype,"kevlarWatchGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],CK.prototype,"centerAlignDescription",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],CK.prototype,"truncateDomain",void 0);
_.Y([_.x({computed:"computeButtonOverride(buttonUpdate)"}),_.V("design:type",Object)],CK.prototype,"buttonOverride",void 0);_.Y([_.S("data.detailsLine.adRating.ratingText"),_.V("design:type",Object),_.V("design:paramtypes",[])],CK.prototype,"getRating",null);_.Y([_.S("getRating"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CK.prototype,"computeRatingHidden",null);
_.Y([_.S("data.detailsLine.adRating.ratingIcon.iconType"),_.V("design:type",Object),_.V("design:paramtypes",[])],CK.prototype,"iconType",null);_.Y([_.S("data.detailsLine.texts.0.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],CK.prototype,"getDetailsLine",null);_.Y([_.S("getDetailsLine"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CK.prototype,"computeDetailsLineHidden",null);
_.Y([_.S("data.description.text"),_.V("design:type",Object),_.V("design:paramtypes",[])],CK.prototype,"getDescriptionText",null);_.Y([_.S("getDescriptionText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CK.prototype,"computeDescriptionTextHidden",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],CK.prototype,"interactionLoggingClientData",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],CK.prototype,"hideBanner",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CK.prototype,"dataChanged",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],CK.prototype,"onClick",null);_.Y([_.K({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],CK);
_.X(CK,"ytd-action-companion-ad-renderer",function(){if(Iar!==void 0)return Iar;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Iar=h},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var Ro2;var PXG;var Jy=function(){var h=_.D.apply(this,arguments)||this;h.buttonUpdate=_.J("web_modern_buttons");h.hideLegacyBanner=_.J("enable_dsa_one_click_ata_translators_infeed_elements");h.adInfoButtonStyle="mono";h.adInfoButtonType="text";h.noDotAdBadge=!0;return h};
_.f(Jy,_.D);_.p=Jy.prototype;_.p.getOnLayoutVisibleCallback=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.layoutId:null};
_.p.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var h=this.data.image.thumbnail.thumbnails[0];this.imageSrc=h.url?_.Yr(h.url):void 0;this.imageWidth=h.width||0;this.imageHeight=h.height||0}this.data.clickthroughEndpoint&&_.e(this.data.clickthroughEndpoint,_.yX)&&(h=_.e(this.data.clickthroughEndpoint,_.yX).url,_.J("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
h||"":h?(h=_.Yr(h),this.clickThroughUrl=_.$r(h)):this.clickThroughUrl=void 0);(h=this.getOnLayoutVisibleCallback())&&h()}};
_.p.onClick=function(h){_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(h)};
_.p.handleClick=function(){var h=this;this.data&&this.data.clickthroughEndpoint&&(_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(E){h.macroReplacementBehavior.sendServiceRequestAction([E])}),_.BX(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.p.onLoad=function(){_.U7(this.hostElement,"yt-refit-popups-action")};
_.ze.Object.defineProperties(Jy.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.interactionLoggingClientData:null}}});
Jy.prototype.onLoad=Jy.prototype.onLoad;Jy.prototype.onClick=Jy.prototype.onClick;Jy.prototype.dataChanged=Jy.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jy.prototype,"rendererBehavior",void 0);_.Y([_.t(vpF.YtMacroReplacementBehavior),_.V("design:type",Object)],Jy.prototype,"macroReplacementBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Jy.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Jy.prototype,"buttonUpdate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Jy.prototype,"hideLegacyBanner",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Jy.prototype,"adInfoButtonStyle",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Jy.prototype,"adInfoButtonType",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jy.prototype,"macros",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Jy.prototype,"interactionLoggingClientData",null);_.Y([_.x(),_.V("design:type",String)],Jy.prototype,"clickThroughUrl",void 0);_.Y([_.x(),_.V("design:type",_.m2)],Jy.prototype,"imageSrc",void 0);_.Y([_.x(),_.V("design:type",Number)],Jy.prototype,"imageWidth",void 0);_.Y([_.x(),_.V("design:type",Number)],Jy.prototype,"imageHeight",void 0);_.Y([_.x(),_.V("design:type",Object)],Jy.prototype,"noDotAdBadge",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jy.prototype,"dataChanged",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Jy.prototype,"onClick",null);_.Y([_.f3("load"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jy.prototype,"onLoad",null);_.Y([_.K({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Jy);
_.X(Jy,"ytd-image-companion-renderer",function(){if(PXG!==void 0)return PXG;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return PXG=h},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var B9N;var e5=function(){return _.D.apply(this,arguments)||this};
_.f(e5,_.D);_.p=e5.prototype;_.p.dataChanged=function(){this.set("data.adBadge",e5.JSC$22874_DEFAULT_AD_BADGE_RENDERER);if(this.data){var h=this.getOnLayoutVisibleCallback();h&&h()}};
_.p.getOnLayoutVisibleCallback=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.onLayoutVisibleCallback:null};
_.p.getLayoutId=function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.layoutId:null};
_.p.onCompanionClicked=function(h){this.data&&(h.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.BX(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.p.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var h=_.zD(),E=this.getLayoutId(),g=this.data.clickToAdvSiteEndpoint;h&&E&&_.J("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?h.getPlayerPromise().then(function(Z){(new _.Qb(Z)).executeCommand(g,E)}):_.Ra(this.hostElement,"yt-navigate",{endpoint:g})}};
_.p.sendTrackingPings=function(h){if(h&&h.length!==0&&h[0].loggingUrls&&(h=h[0].loggingUrls.map(this.getBaseUrl)))for(var E=0;E<h.length;E++)_.At(h[E])};
_.p.getBaseUrl=function(h){return h.baseUrl||""};
_.ze.Object.defineProperties(e5.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var h=_.yy("yt.www.ads.eventcache.getLastCompanionData");return h?(h=h())&&h.interactionLoggingClientData:null}}});
e5.prototype.onCompanionClicked=e5.prototype.onCompanionClicked;e5.prototype.dataChanged=e5.prototype.dataChanged;e5.JSC$22874_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.NH("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],e5.prototype,"data",void 0);_.Y([_.Sg("#title"),_.V("design:type",HTMLElement)],e5.prototype,"shopTitle",void 0);
_.Y([_.lq("data.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],e5.prototype,"dataChanged",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],e5.prototype,"interactionLoggingClientData",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],e5.prototype,"onCompanionClicked",null);
_.Y([_.K({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],e5);
_.X(e5,"ytd-shopping-companion-renderer",function(){if(B9N!==void 0)return B9N;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return B9N=h},{mode:1});_.I9(_.O(function(h){var E=h.data;h=_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq});var g=_.VS(function(){return E().interaction},uXN);
_.$Z(function(){var Z,M;M=(M=_.yy("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(Z=M)==null||Z()});
return _.R("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.J7(function(Z){_.U7(Z.currentTarget,"yt-refit-popups-action")}),
el:_.zT(h,g),"aria-label":function(){var Z,M;return(Z=E().interaction)==null?void 0:(M=Z.accessibility)==null?void 0:M.label}},_.R("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(Z){return _.R(_.Xu,{data:Z.data,
targetHeight:80,customCommandResolver:uXN})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.R(_.Sv,{data:function(){return E().adBadge}},{adBadgeViewModel:function(Z){return _.R(_.rS,{data:Z.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.R("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:_.$l}))))},"Sk"),"banner-image-layout-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;h=_.c6({visibilityCallback:function(Z){var M,W=(M=E().interaction)==null?void 0:M.onFirstVisible;Z&&W&&_.Tl(W)},
showOption:_.Nq});var g=_.VS(function(){return E().interaction},QGi);
_.$Z(function(){var Z,M;M=(M=_.yy("yt.www.ads.eventcache.getLastCompanionData"))?(M=M())&&M.onLayoutVisibleCallback:null;(Z=M)==null||Z()});
return _.R("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.zT(h,g)},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.R(_.Sv,{data:function(){return E().adImage}},{adImageViewModel:function(Z){return _.R(_.Xu,{data:Z.data,
targetHeight:80,customCommandResolver:QGi})}})),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.R(_.Sv,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(Z){return _.R(zoL,{data:Z.data,
customCommandResolver:QGi})}})),_.R(_.Sv,{data:function(){return E().adButton}},{adButtonViewModel:function(Z){return _.R(_.SV,{data:Z.data,
customCommandResolver:QGi})}}),_.R("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.R(_.Sv,{data:function(){return E().menu}},{buttonViewModel:_.$l}))))},"Tk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.C6}});var U6K={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"},qQ=function(){var h=_.D.apply(this,arguments)||this;h.updateCompanionDataJobId=0;h.contentVideoId=null;h.player=null;h.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return h};
_.f(qQ,_.D);_.p=qQ.prototype;_.p.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:U6K}}};
_.p.attached=function(){var h=this,E=_.zD();E&&E.getPlayerPromise().then(function(g){h.getCachedDataAndListen(g)})};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.p.updateRendererStamper=function(){var h={};if(this.data)for(var E in U6K)if(this.data[E]){h[E]=this.data[E];break}if(this.oneofRenderer!=void 0||Object.keys(h).length)this.oneofRenderer=h};
_.p.getCachedDataAndListen=function(h){var E=this.retrieveCachedCompanionData();E&&Object.keys(E).length&&this.receiveCompanionData(E);this.ytPlayerListenerBehavior.listenToPlayerEvent(h,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=h};
_.p.retrieveCachedCompanionData=function(){return _.MN.yt&&_.MN.yt.www&&_.MN.yt.www.ads&&_.MN.yt.www.ads.eventcache&&_.MN.yt.www.ads.eventcache.getLastCompanionData?_.MN.yt.www.ads.eventcache.getLastCompanionData():null};
_.p.receiveCompanionData=function(h){h&&Object.keys(h).length?(this.contentVideoId=h.contentVideoId,this.setCompanionData(h)):this.setCompanionData(h)};
_.p.setCompanionData=function(h){this.cancelPendingCompanionAdJobs();if(h){this.updateCompanionDataJobId=0;for(var E in U6K)U6K.hasOwnProperty(E)&&(this.data[E]=void 0);h.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",h.shoppingCompanionCarouselRenderer):h.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",h.imageCompanionAdRenderer):h.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",h.actionCompanionAdRenderer),_.U7(this.hostElement,
"yt-hide-unlimited-offer-module"),_.U7(this.hostElement,"yt-hide-tvfilm-offer-module")):h.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",h.bannerImageLayoutViewModel):h.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",h.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.p.dataChanged=function(){var h=this,E=_.zD();E?E.getPlayerPromise().then(function(g){h.contentVideoId&&g.getVideoUrl().includes("v="+h.contentVideoId)||(h.cancelPendingCompanionAdJobs(),h.updateRendererStamper())}):_.Fn(Error("Qo"))};
_.p.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.KP.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.p.handleCompanionAdClicked=function(h,E){this.player.onAdUxClicked(h,E);this.player.pauseVideo()};
qQ.prototype.dataChanged=qQ.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],qQ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],qQ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],qQ.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],qQ.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qQ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],qQ.prototype,"oneofRenderer",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qQ.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],qQ);
_.X(qQ,"ytd-companion-slot-renderer",function(){if(Ro2!==void 0)return Ro2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Ro2=h},{mode:_.UQ("kevlar_poly_si_batch_j067")?
1:2});var LEU;var fK=function(){return _.D.apply(this,arguments)||this};
_.f(fK,_.D);fK.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
fK.prototype.dataChanged=fK.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fK.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fK.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],fK.prototype,"companionSlotData",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fK.prototype,"dataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],fK);
_.X(fK,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(LEU!==void 0)return LEU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return LEU=h},{mode:1});var jpL;var NQ=function(){var h=_.D.apply(this,arguments)||this;h.skinnyMode=!1;h.COMPACT_EVENT_COUNT=4;h.onShelfToggleButtonTap=function(){h.logTap(h.data);h.showingMore=!h.showingMore};
h.onShelfToggleButtonFocus=function(){h.showingMore||(h.logTap(h.data),h.showingMore=!0,_.pQ(h,function(){var E=h.COMPACT_EVENT_COUNT-1,g;(g=_.UB(h.hostElement).querySelector("#event-"+E))==null||g.focus()}))};
return h};
_.f(NQ,_.D);_.p=NQ.prototype;_.p.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.p.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.p.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.qm(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.qm(this.infoTooltip,this.infoTooltip.hide))};
_.p.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.qm(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.qm(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.qm(this.infoTooltip,this.infoTooltip.hide))};
_.p.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.p.onShowingMoreChanged=function(){var h;this.showingMoreChanged((h=this.showingMore)!=null?h:!1)};
_.p.showingMoreChanged=function(h){var E=this.get("data.events")||[];this.set("restEvents",E.slice(1,h?E.length:this.COMPACT_EVENT_COUNT).map(function(g){return g.ticketEventRenderer}));
E.slice(0,h?E.length:this.COMPACT_EVENT_COUNT).forEach(function(g){var Z=_.sH();g=g.ticketEventRenderer.trackingParams;_.YN()&&Z&&g&&(g=_.rp(g),Z&&_.hj(Z,g))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.p.computeAriaLabel=function(h){return h.subtitle1+", "+h.subtitle2};
_.p.logTap=function(h){_.YN()&&this.ytRendererBehavior.logExplicitClick(h)};
_.p.isKeyboardAction=function(h){return this.get("detail.x",h)===0&&this.get("detail.y",h)===0};
_.p.onFirstEventTap=function(h){h.target&&this.handleTap(h.target,this.firstEvent,this.isKeyboardAction(h))};
_.p.onTicketLinkTap=function(h){h.target&&this.handleTap(h.target,h.model.item,this.isKeyboardAction(h))};
_.p.handleTap=function(h,E,g){if(E.buttonCommand)if(E.hasMultipleOffers)Object.assign(_.e(E.buttonCommand,_.sr),{properties:{source:g?"keyboard":"tap"}}),this.logTap(E),this.popupPositionTarget=h,_.jj(this.hostElement,[E.buttonCommand],this.hostElement);else{var Z;if((Z=_.e(E.buttonCommand,_.yX))==null?0:Z.url)this.logTap(E),_.EZ(window,_.e(E.buttonCommand,_.yX).url)}};
NQ.prototype.onShowingMoreChanged=NQ.prototype.onShowingMoreChanged;NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],NQ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],NQ.prototype,"firstEvent",void 0);_.Y([_.x(),_.V("design:type",Object)],NQ.prototype,"restEvents",void 0);_.Y([_.x(),_.V("design:type",String)],NQ.prototype,"imageUrl",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],NQ.prototype,"showingMore",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],NQ.prototype,"canShowMore",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NQ.prototype,"skinnyMode",void 0);_.Y([_.x(),_.V("design:type",HTMLElement)],NQ.prototype,"popupPositionTarget",void 0);_.Y([_.Sg("#banner-info-tooltip"),_.V("design:type",Object)],NQ.prototype,"infoTooltip",void 0);
_.Y([_.Sg("#info-container"),_.V("design:type",HTMLElement)],NQ.prototype,"infoContainer",void 0);_.Y([_.Sg("#shelf-toggler"),_.V("design:type",HTMLElement)],NQ.prototype,"shelfToggleButton",void 0);_.Y([_.Sg("#separator"),_.V("design:type",HTMLDivElement)],NQ.prototype,"separator",void 0);_.Y([_.x(),_.V("design:type",String)],NQ.prototype,"shelfTogglerLabelText",void 0);_.Y([_.x(),_.V("design:type",String)],NQ.prototype,"shelfTogglerIcon",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NQ.prototype,"dataChanged",null);_.Y([_.lq("showingMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],NQ.prototype,"onShowingMoreChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],NQ);
_.X(NQ,"ytd-ticket-shelf-renderer",function(){if(jpL!==void 0)return jpL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jpL=h},{mode:1});var d6U;var CXj;var JVG=function(){return _.D.apply(this,arguments)||this};
_.f(JVG,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JVG.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],JVG.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],JVG);
_.X(JVG,"ytd-comments-entry-point-message-renderer",function(){if(CXj!==void 0)return CXj;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return CXj=h},{mode:1});var eo0;var ty=function(){return _.D.apply(this,arguments)||this};
_.f(ty,_.D);_.ze.Object.defineProperties(ty.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.teaserAvatar)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ty.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ty.prototype,"hasAvatar",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],ty);
_.X(ty,"ytd-comments-entry-point-teaser-renderer",function(){if(eo0!==void 0)return eo0;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return eo0=h},{mode:1});var q90;var faL=function(){return _.D.apply(this,arguments)||this};
_.f(faL,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],faL.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],faL.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],faL);
_.X(faL,"ytd-comments-simplebox-renderer",function(){if(q90!==void 0)return q90;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return q90=h},{mode:1});var S5=function(){var h=_.D.apply(this,arguments)||this;h.fullHeight=!_.J("comment_teaser_full_height_kill_switch")&&_.J("kevlar_watch_grid");return h};
_.f(S5,_.D);S5.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"}}}};
S5.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
S5.prototype.onTap=function(){var h=this.tapCommand;h&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(h))};
S5.prototype.onKeyUp=function(h){if(h.keyCode===13)this.onTap()};
_.ze.Object.defineProperties(S5.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null?0:h.onTap)return this.data.onTap;var E,g;if(((E=this.data)==null?0:E.teaserContent)||((g=this.data)==null?0:g.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)!=null&&h.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
S5.prototype.onKeyUp=S5.prototype.onKeyUp;S5.prototype.onTap=S5.prototype.onTap;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],S5.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],S5.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],S5.prototype,"fullHeight",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"tapCommand",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"simpleboxPlaceholder",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S5.prototype,"hasSimpleboxPlaceholder",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"simpleboxAvatar",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"teaserContent",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S5.prototype,"hasTeaserContent",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"teaserAvatar",null);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S5.prototype,"hasTeaserAvatar",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"messageText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],S5.prototype,"contentRenderer",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S5.prototype,"hasContents",null);
_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],S5.prototype,"hasContentRenderer",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],S5.prototype,"onTap",null);_.Y([_.f3("keypress"),_.V("design:type",Function),_.V("design:paramtypes",[_.w6]),_.V("design:returntype")],S5.prototype,"onKeyUp",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],S5);
_.X(S5,"ytd-comments-entry-point-header-renderer",function(){if(d6U!==void 0)return d6U;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return d6U=h},{mode:1});var N9K;_.I9(_.qAD,"yt-animated-rolling-number",{props:{numberText:_.C6,numberValue:_.C6,heightPx:_.C6,fontSizeMultiplier:_.C6,shouldAnimate:_.C6,forceRollUp:_.C6}});var tAK=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),S9N={numberText:"",heightPx:2*tAK,shouldAnimate:!1},x4=function(){var h=_.D.apply(this,arguments)||this;h.usingAnimatedComponents=!0;h.wasDetailed=!1;h.JSC$22911_browserSupportsAnimation=_.J("web_supports_animations_api");h.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};h.detailed=!1;h.shouldAnimate=!1;h.viewCountProps=S9N;h.dateTextProps=
S9N;h.metadataBadgesInDescription=_.J("web_metadata_badges_in_description");return h};
_.f(x4,_.D);_.p=x4.prototype;_.p.resetAnimationState=function(){this.shouldAnimate=!1};
_.p.updateDynamicMetadata=function(){if(this.JSC$22911_browserSupportsAnimation){if(!this.detailed){var h,E,g,Z;var M=(h=this.videoPrimaryInfoRenderer)==null?void 0:(E=h.viewCount)==null?void 0:(g=E.videoViewCountRenderer)==null?void 0:(Z=g.extraShortViewCount)==null?void 0:Z.simpleText;var W,z,c,I;var B=(W=this.videoPrimaryInfoRenderer)==null?void 0:(z=W.viewCount)==null?void 0:(c=z.videoViewCountRenderer)==null?void 0:(I=c.shortViewCount)==null?void 0:I.simpleText}if(!B){var U,L,d,C;M=(U=this.videoPrimaryInfoRenderer)==
null?void 0:(L=U.viewCount)==null?void 0:(d=L.videoViewCountRenderer)==null?void 0:(C=d.unlabeledViewCountValue)==null?void 0:C.simpleText;var q,w,r,v;B=(q=this.videoPrimaryInfoRenderer)==null?void 0:(w=q.viewCount)==null?void 0:(r=w.videoViewCountRenderer)==null?void 0:(v=r.viewCount)==null?void 0:v.simpleText}var H,u,k;h=Number((H=this.videoPrimaryInfoRenderer)==null?void 0:(u=H.viewCount)==null?void 0:(k=u.videoViewCountRenderer)==null?void 0:k.originalViewCount);var y,A;H=(y=this.videoPrimaryInfoRenderer)==
null?void 0:(A=y.relativeDateText)==null?void 0:A.simpleText;var E4;y=!((E4=this.videoPrimaryInfoRenderer)==null||!E4.relativeDateText);if(M&&B&&h&&(H||!y)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;E4=B.split(new RegExp("("+M+")"));M=W2G(E4[0]);var iO;B={numberText:(iO=E4[1])!=null?iO:"",numberValue:h,heightPx:2*tAK,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var RW;iO=((RW=E4[2])!=null?RW:"")+"  ";this.setViewCount(B,M,W2G(iO));
if(!this.detailed&&y){M=H.split(/(\d+)/);RW=W2G(M[0]);var NN;iO={numberText:(NN=M[1])!=null?NN:"",heightPx:2*tAK,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Cd;NN=((Cd=M[2])!=null?Cd:"")+"  ";this.setDateText(iO,RW,W2G(NN))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.p.setViewCount=function(h,E,g){_.Wp(E)!==_.Wp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=E);this.viewCountProps.numberText!==(h==null?void 0:h.numberText)&&(this.viewCountProps=h||S9N);_.Wp(g)!==_.Wp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=g)};
_.p.setDateText=function(h,E,g){_.Wp(E)!==_.Wp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=E);this.dateTextProps.numberText!==(h==null?void 0:h.numberText)&&(this.dateTextProps=h||S9N);_.Wp(g)!==_.Wp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=g)};
_.p.onYtUpdateViewershipAction=function(h){this.videoPrimaryInfoRenderer&&(_.e(h,ITM).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.e(h,ITM).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.e(h,ITM).viewCount)))};
_.p.onYtUpdateDateTextAction=function(h){if(this.videoPrimaryInfoRenderer){h=_.e(h,_.iX2).dateText;this.shouldAnimate=!0;var E;((E=this.videoPrimaryInfoRenderer)==null?0:E.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",h):this.set("videoPrimaryInfoRenderer.dateText",h)}};
_.ze.Object.defineProperties(x4.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return MLN(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Wp(MLN(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Wp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Wp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Wp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Wp(this.dateTextPostNumberText)].join("")}}});
x4.prototype.updateDynamicMetadata=x4.prototype.updateDynamicMetadata;x4.prototype.resetAnimationState=x4.prototype.resetAnimationState;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],x4.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"detailed",void 0);_.Y([_.x(),_.V("design:type",Object)],x4.prototype,"shouldAnimate",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"viewCountPreNumberText",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"viewCountProps",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"viewCountPostNumberText",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"dateTextPreNumberText",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"dateTextProps",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"dateTextPostNumberText",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],x4.prototype,"metadataBadgesInDescription",void 0);_.Y([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.V("design:type",Object),_.V("design:paramtypes",[])],x4.prototype,"infoText",null);
_.Y([_.S("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.V("design:type",String),_.V("design:paramtypes",[])],x4.prototype,"descriptionInfoTooltipText",null);_.Y([_.S("detailed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],x4.prototype,"showDescriptionInfoTooltip",null);
_.Y([_.S("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],x4.prototype,"animatedViewCountAccessibilityLabel",null);_.Y([_.S("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.V("design:type",String),_.V("design:paramtypes",[])],x4.prototype,"animatedDateTextAccessibilityLabel",null);
_.Y([_.Nm("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x4.prototype,"resetAnimationState",null);_.Y([_.Nm("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],x4.prototype,"updateDynamicMetadata",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-watch-info-text"})],x4);
_.X(x4,"ytd-watch-info-text",function(){if(N9K!==void 0)return N9K;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return N9K=h},{mode:1});var x6G;var wmU="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var D6x=_.O(function(h){var E=h.data;var g=h.setTapCommand;_.lX(function(){var Z=_.kB(E().onTap);g(Z)},"Hj6Srd");
return _.R("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq}),_.R("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.R("span",null,function(){return E().simpleboxText})))},"Uk");var la2=_.O(function(h){return _.R("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.R(_.P,{cond:function(){return _.e(h.data().avatar,_.X5)},
then:function(E){return _.R(_.Mq,{data:E,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.R("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.R(_.dK,{text:function(){return h.data().teaserText}})))},"Vk");var rVG=_.O(function(h){var E=h.data;var g=h.setTapCommand;_.lX(function(){var Z=_.kB(E().onTap);g(Z)},"IlZFqc");
return _.R("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.R(_.Sv,{data:function(){return E().teasers}},{commentsEntryPointTeaserViewModel:la2}))},"Wk");var m6G=_.O(function(h){var E=h.data;var g=h.setTapCommand;_.lX(function(){var Z=_.kB(E().onTap);g(Z)},"sYe8ye");
return _.R("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.R(_.dK,{text:function(){return E().messageText}}))},"Xk");var vZa=_.O(function(h){var E=h.data;var g=h.setTapCommand;var Z=h.isDisabled;_.lX(function(){var M=(Z==null?0:Z())?void 0:_.kB(E().onTap);g(M)},"GZxRqd");
return _.R("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.R(_.Ni,{icon:function(){return E().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.R(_.P,{cond:function(){return E().image},
then:function(M){return _.R(_.pO,{data:M,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.R(_.dK,{text:function(){return E().text},
className:function(){return E().image||E().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.R(_.Sv,{data:function(){return E().button}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:Z==null?void 0:Z()}}})}}))},"Yk");var HwN=_.O(function(h){var E=h.data;var g=h.itemIndex;var Z=h.selectedIndex;var M=h.indexUpdatedCallback;var W=h.observer;h=h.title;var z=_.hf("yt-carousel-item-view-model",function(L){W&&W().observe(L)}),c=function(L){g()===Z()&&M(L)},I=_.VQ(rC2),B=_.VQ(_.rDa),U=function(){var L,d,C;
return((L=E())==null?void 0:L.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!I()||((d=E())==null?void 0:d.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&B().includes("PAposts_by_host")||((C=E())==null?void 0:C.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&B().includes("PAyouchat")};
return _.R("yt-carousel-item-view-model",{el:z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":h},_.R(_.Sv,{data:function(){var L,d;return(d=(L=_.e(E().carouselItem,moK))==null?void 0:L.textCarousel)!=null?d:E().carouselItem}},{textCarouselItemViewModel:function(L){return _.R(vZa,{data:L.data,
setTapCommand:c,isDisabled:U})},
commentTeaserCarouselItemViewModel:function(L){return _.R(rVG,{data:L.data,setTapCommand:c})},
commentInputBoxCarouselItemViewModel:function(L){return _.R(D6x,{data:L.data,setTapCommand:c})},
commentsEntryPointMessageViewModel:function(L){return _.R(m6G,{data:L.data,setTapCommand:c})}}))},"Zk");var $6j=_.O(function(h){var E=h.numDots;var g=h.activeIndex;return _.R("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.R(_.SX,{each:function(){return Array.from({length:E()})},
keyBy:"INDEX"},function(Z,M){return _.R("div",{class:function(){var W={};return _.v3("ytCarouselDotsShapeDot",(W.ytCarouselDotsShapeDotActive=M===g(),W))}})}))},"$k");var KEj=_.O(function(h){var E=h.data;var g=h.handleCarouselNavigation;var Z=h.numItems;var M=h.selectedIndex;var W=function(){return{disabled:M()===0}},z=function(){return{disabled:M()===Z()-1}};
return _.R("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.R("div",null,_.R("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return E().title}),_.R(_.P,{cond:function(){return E().subtitle},
then:function(c){return _.R("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return E().subtitleAccessibilityText}},c)}})),_.R(_.P,{cond:function(){return Z()>1},
then:function(){return _.R("div",{class:"ytCarouselTitleViewModelNavigation"},_.R($6j,{numDots:Z,activeIndex:M}),_.R(_.P,{cond:function(){return E().previousButton},
then:function(c){return _.R(_.Sv,{data:c},{buttonViewModel:function(I){return _.R(_.$l,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return g(-1)},
buttonOverrides:W})}})}}),_.R(_.P,{cond:function(){return E().nextButton},
then:function(c){return _.R(_.Sv,{data:c},{buttonViewModel:function(I){return _.R(_.$l,{data:I.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return g(1)},
buttonOverrides:z})}})}}))}}))},"al");_.I9(_.O(function(h){var E=h.data;var g,Z=_.hf("yt-video-metadata-carousel-view-model"),M=_.hf("div",function(y){var A=function(){var E4=y.offsetWidth*w(),iO=24*(w()-1);d(E4+iO)};
A();window.ResizeObserver&&(g=new ResizeObserver(A),g.observe(y))}),W=_.nF("HTML_DIR")==="rtl",z=!1,c=0,I=0;
h=_.G(_.Bm(0,void 0,"M49TDf"));var B=h.next().value,U=h.next().value;h=_.G(_.Bm(0,void 0,"zLIok"));var L=h.next().value,d=h.next().value;h=_.G(_.Bm(!1,void 0,"bhelhc"));var C=h.next().value,q=h.next().value,w=function(){var y,A,E4;return(E4=(y=E())==null?void 0:(A=y.carouselTitles)==null?void 0:A.length)!=null?E4:0},r=function(){M.value&&M.value.scrollLeft!==c&&U((W?M.value.scrollLeft<c:M.value.scrollLeft>c)?Math.min(B()+1,w()-1):Math.max(B()-1,0))},v;
window.IntersectionObserver&&(v=new IntersectionObserver(function(y){y=_.G(y);for(var A=y.next();!A.done;A=y.next())if(A.value.isIntersecting){if(z){z=!1;break}r()}else U(I)},{threshold:.2}));
_.lX(function(){if(M.value){var y=(W?-1:1)*(L()/w()+12)*(C()&&v?I:B());typeof M.value.scrollTo==="function"?M.value.scrollTo({left:y,behavior:"smooth"}):M.value.scrollLeft=y;c=y;I=C()&&v?I:B()}},"s9rbgc");
var H,u=function(y){H=y};
_.r9(function(){var y;(y=g)==null||y.disconnect();var A;(A=v)==null||A.disconnect()});
var k=function(y){y=B()+y;y>=0&&y<w()&&(z=!0,U(y))};
return _.R("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:Z,"on:click":_.J7(function(y){if(_.$x(_.H3(y),Z.value,["BUTTON".toString()])||!H)return!1;_.GF().resolve(_.zF).resolveCommand(H,{forceClickLogging:!0});return!1}),
"on:touchstart":_.J7(function(){q(!0);return!1}),
"on:touchend":_.J7(function(){v||r();q(!1);return!1}),
hidden:function(){var y,A;return!((y=E())==null?0:(A=y.carouselItems)==null?0:A.length)}},_.R("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.R(_.P,{cond:function(){return E().carouselTitles},
then:function(y){return _.R(_.Sv,{data:function(){return y()[C()&&v?I:B()]}},{carouselTitleViewModel:function(A){return _.R(KEj,{data:A.data,
handleCarouselNavigation:k,numItems:w,selectedIndex:B})}})}})),_.R("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:M},_.R("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+L()+"px;"}},_.R(_.P,{cond:function(){return E().carouselItems},
then:function(y){return _.R(_.SX,{each:y},function(A,E4){return _.R(_.Sv,{data:function(){return A}},{carouselItemViewModel:function(iO){return _.R(HwN,{data:iO.data,
itemIndex:E4,selectedIndex:B,indexUpdatedCallback:u,observer:v,title:function(){a:{var RW=E4();var NN,Cd=(NN=E())==null?void 0:NN.carouselTitles;if(Cd&&(RW=Cd[RW])){var Ba;RW=(Ba=_.e(RW,rLG))==null?void 0:Ba.title;break a}RW=void 0}return RW}})}})})}}))))},"bl"),"yt-video-metadata-carousel-view-model",{props:{data:_.C6}});var OwU=_.J("web_action_buttons_update_owner_width")?32:12,wj=function(){var h=_.D.apply(this,arguments)||this;h.isHovering=!1;h.enableColorSampling=_.J("web_delhi_colorful_sd");h.metadataBadgesInDescription=_.J("web_metadata_badges_in_description");h.descriptionCollapsed=!0;h.useFadedScrimDescription=_.J("kevlar_enable_faded_scrim_on_description");h.skinnyMode=!1;h.playlist=!1;h.isDark=document.documentElement.hasAttribute("dark");h.disableVideoOwnerOnTap=_.J("swatchie_video_owner_on_tap_ks");h.swatcherooDelayLoad=
_.J("swatcheroo_enable_ghost_cards");h.primaryMenuWidth=0;h.videoId="";h.titleHeadlineXs=_.J("web_watch_typography_title_headline_xs");h.titleHeadlineS=_.J("web_watch_typography_title_headline_s");h.titleHeadlineM=_.J("web_watch_typography_title_headline_m");h.titleHashtagBlackLinkified=_.J("web_title_hashtag_black_linkified");h.titleHashtagGreyLinkified=_.J("web_title_hashtag_grey_linkified");h.actionButtonsUpdateOwnerWidth=_.J("web_action_buttons_update_owner_width");h.shouldForceIconOnly=!1;h.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};h.isFullscreen=!1;h.isTheaterMode=!1;return h};
_.f(wj,_.D);_.p=wj.prototype;_.p.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.p.updateOwnerAndDescriptionPosition=function(){_.J("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.VO(this.bottomRowElement,this.ownerElement)):(_.VO(this.bottomRowElement,this.descriptionElement),_.VO(this.topRowElement,this.ownerElement)))};
_.p.titleOnTap=function(h){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||this.handleExpandDescriptionCommands()}};
_.p.videoOwnerOnTap=function(h){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.p.detached=function(){var h=this,E;return _.a(function(g){(E=h.resizeObserver)==null||E.disconnect();_.SK(g)})};
_.p.maybeAttachResizeObserver=function(){var h=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.TD(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){h.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.p.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var h=this.hostElement.clientWidth,E=Math.max(this.largerItemWrap?400:350,h/2-OwU);if(_.J("web_action_buttons_update_owner_width")){var g;E=(((g=document.getElementById("owner"))==null?void 0:g.clientWidth)||0)+OwU}this.actionsOnSeparateLine=this.primaryMenuWidth>h-E?!0:!1}};
_.p.stripAttributedDescription=function(h){return{content:h.content.replace(/[\r\n]{2,}/g,"\n")}};
_.p.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.J("web_modern_buttons"),forceIconButton:!_.J("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:_.J("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.p.videoPrimaryInfoRendererChanged=function(){var h;if((h=this.videoPrimaryInfoRenderer)==null?0:h.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.p.videoSecondaryInfoRendererChanged=function(){var h,E;(E=(h=this.descriptionInlineExpander).collapse)==null||E.call(h);this.descriptionExpandClientVe=_.Uz(110509);this.descriptionCollapseClientVe=_.Uz(110510);h=_.sH();E=_.YN();h&&E&&(_.J("combine_ve_grafts")?(_.vt(_.SQ(),this.descriptionExpandClientVe,E),_.vt(_.SQ(),this.descriptionCollapseClientVe,E)):_.Qp(h,E,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.p.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.p.updateTopLevelIconsOnly=function(){var h=this;_.J("top_level_update_killswitch")||this.menu&&_.KP.addLowPriorityJob(function(){h.menu.topLevelIconsOnly=h.skinnyMode},_.cx("swathceroo_delay_flexible_menu_update",100))};
_.p.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.J("web_action_buttons_minimize_subscribe")};
_.p.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.p.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.p.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.p.onYtTextInlineExpanderExpandedChanged=function(){if(!_.J("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var h,E;(E=(h=this.structuredDescriptionContentRendererElement).resize)==null||E.call(h)}};
_.p.onRenderStamperFinished=function(h){(h==null?void 0:h.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.p.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.p.onYtExpanderLessTapped=function(){var h,E=(h=this.videoSecondaryInfoRenderer)==null?void 0:h.showLessCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.p.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.p.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.p.onDescriptionClick=function(h){if(!_.MI(_.Gw(h)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.J("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.p.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.p.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.p.logCollapseClick=function(){var h=_.sH();h&&this.descriptionCollapseClientVe&&_.Z$(h,this.descriptionCollapseClientVe)};
_.p.logExpandClick=function(){var h=_.sH();h&&this.descriptionExpandClientVe&&_.Z$(h,this.descriptionExpandClientVe)};
_.p.collapseDescription=function(){this.descriptionCollapsed=!0};
_.p.scrollToTopOfContainer=function(){_.BX(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.p.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.p.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.p.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.p.resize=function(){if(this.descriptionInlineExpander){var h,E;(E=(h=this.descriptionInlineExpander).resize)==null||E.call(h)}else _.O$(new _.xX("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var g;(g=this.menu)==null||g.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.p.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var h,E,g,Z,M=_.J("web_action_buttons_update_owner_width")?(g=(h=_.UB(this.menu).querySelector("#button-shape"))==null?void 0:h.clientWidth)!=null?g:0:(Z=(E=_.UB(this.menu).querySelector("#button"))==null?void 0:E.clientWidth)!=null?Z:0,W,z;h=((z=(W=_.UB(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:W.clientWidth)!=null?z:0)+8+M;var c,I;M=(I=(c=_.UB(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:c.children.length)!=null?I:2;h<=8*M||(this.primaryMenuWidth=h)}};
_.p.onYtUpdateTitleAction=function(h){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.e(h,oEL).title)};
_.p.onYtUpdateDescriptionAction=function(h){if(h=_.e(h,_.MRD)){var E,g=!((E=this.videoSecondaryInfoRenderer)==null||!E.attributedDescription);h.isEmpty||!h.description&&!h.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):h.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",h.attributedDescription):h.description&&(g?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.X8(h.description)):this.set("videoSecondaryInfoRenderer.description",h.description))}};
_.p.onYtDarkModeToggledAction=function(h){this.isDark=h};
_.p.registerPanel=function(){if(!_.J("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var h=_.J("web_watch_imax_theater_mode")&&this.isTheaterMode;h=_.J("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||h;var E=_.GF().resolve(_.QW);E&&!h&&E.registerPanel("engagement-panel-structured-description",this)}};
_.p.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.p.parseColorSamplingData=function(){var h;if(_.J("web_delhi_colorful_sd")&&((h=this.structuredDescriptionContentRenderer)==null?0:h.items)&&(h=this.structuredDescriptionContentRenderer.items.find(function(M){return!!_.e(M,kR)}))){var E,g;
this.hoverColor={lightTheme:(E=_.e(h,kR))==null?void 0:E.lightThemeColorPalette,darkTheme:(g=_.e(h,kR))==null?void 0:g.darkThemeColorPalette};var Z;this.hoverText=(Z=_.e(h,kR))==null?void 0:Z.colorSampledDescriptionBodyText}};
_.p.updateHoverColor=function(){if(_.J("web_delhi_colorful_sd")){var h=this.hoverColor,E={},g;h=(g=this.isDark?h==null?void 0:h.darkTheme:h==null?void 0:h.lightTheme)!=null?g:{};g=_.G(wmU);for(var Z=g.next();!Z.done;Z=g.next()){Z=Z.value;var M=h[Z];E["--yt-saturated-"+_.tQ(Z)]=M?_.uU(M):"initial"}_.Ja(this.hostElement,E)}};
_.p.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.p.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.p.showPanel=function(h){this.expandDescription();var E=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;E.resize();var g,Z=h==null?void 0:(g=h.sectionListEngagementPanelExtras)==null?void 0:g.scrollToItemSectionIdentifier;Z?_.KP.addJob(function(){E==null||E.scrollToSection(Z)},8):this.scrollToTopOfContainer()};
_.p.isVisible=function(){return!this.descriptionCollapsed};
_.p.getReloadContinuation=function(){};
_.p.hidePanel=function(){};
_.p.updatePanel=function(){};
_.ze.Object.defineProperties(wj.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var h;return _.J("web_delhi_colorful_sd")&&(h=this.structuredDescriptionContentRenderer)!=null&&h.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(E){return!_.e(E,kR)&&!_.e(E,PrL)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.structuredDescriptionContentRendererComputed)!=null&&h.items){var E;h=_.G((E=this.structuredDescriptionContentRendererComputed)==null?void 0:E.items);for(E=h.next();!E.done;E=h.next())if(E=_.e(E.value,_.u3l))return E}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.videoPrimaryInfoRenderer)==null?0:h.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!!((h=this.videoSecondaryInfoRenderer)==null?0:(E=h.owner)==null?0:(g=E.videoOwnerRenderer)==null?0:g.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var h,E;if((h=this.videoSecondaryInfoRenderer)==null?0:(E=h.attributedDescription)==null?0:E.content){var g,Z;return(Z=this.stripAttributedDescription((g=this.videoSecondaryInfoRenderer)==null?void 0:g.attributedDescription))!=null?Z:{runs:[]}}}if(_.J("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var M,W,z,c;return(c=(z=(M=this.videoSecondaryInfoRenderer)==
null?void 0:M.description)!=null?z:(W=this.videoSecondaryInfoRenderer)==null?void 0:W.attributedDescription)!=null?c:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.videoSecondaryInfoRenderer)==null?void 0:h.headerRuns)!=null?E:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.commentsEntryPointHeaderRenderer)==null||!h.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.videoMetadataCarousel)==null||!h.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.cx("swatchie_desc_lines",3):this.hasTeaserCarousel?_.cx("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var h,E,g=Object.assign({},(h=this.videoSecondaryInfoRenderer)==null?void 0:(E=h.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(g&&g.rows&&g.collapsedItemCount!==void 0&&!(g.rows.length<=g.collapsedItemCount))return g.rows=g.rows.slice(g.collapsedItemCount),g.collapsedItemCount=0,g}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var h,E,g=Object.assign({},(h=this.videoSecondaryInfoRenderer)==null?void 0:(E=h.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(g&&g.rows&&g.collapsedItemCount!==void 0)return g.rows=g.rows.slice(0,g.collapsedItemCount),g.collapsedItemCount=g.rows.length,g}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!((h=this.structuredDescriptionContentRendererComputed)==null?0:(E=h.items)==null?0:E.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var h;return(h=this.videoSecondaryInfoRenderer)==null?void 0:h.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.videoSecondaryInfoRenderer)==null?0:(E=h.owner)==null?0:(g=E.videoOwnerRenderer)==null?0:g.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return!!((h=this.videoPrimaryInfoRenderer)==null?0:(E=h.videoActions)==null?0:(g=E.menuRenderer)==null?0:(Z=g.flexibleItems)==null?0:Z.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.ZC(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.ZC(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var h=this;if(_.J("web_title_hashtag_grey_delinkified")){var E,g=_.Kt.unsafeClone((E=this.videoPrimaryInfoRenderer)==null?void 0:E.title);(E=g==null?void 0:g.runs)&&E.forEach(function(Z){if(Z==null?0:Z.navigationEndpoint)Z.textColor=4284506208,h.isDark&&(Z.textColor=4289374890)});
return g}return(g=this.videoPrimaryInfoRenderer)==null?void 0:g.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.J("web_title_hashtag_black_delinkified")||_.J("web_title_hashtag_grey_delinkified")}}});
wj.prototype.updateHoverColor=wj.prototype.updateHoverColor;wj.prototype.parseColorSamplingData=wj.prototype.parseColorSamplingData;wj.prototype.resetDescriptionState=wj.prototype.resetDescriptionState;wj.prototype.registerPanel=wj.prototype.registerPanel;wj.prototype.onYtExpanderLessTapped=wj.prototype.onYtExpanderLessTapped;wj.prototype.onYtExpanderMoreTapped=wj.prototype.onYtExpanderMoreTapped;wj.prototype.onRenderStamperFinished=wj.prototype.onRenderStamperFinished;
wj.prototype.onYtTextInlineExpanderExpandedChanged=wj.prototype.onYtTextInlineExpanderExpandedChanged;wj.prototype.onYtTextInlineExpanderCollapseClicked=wj.prototype.onYtTextInlineExpanderCollapseClicked;wj.prototype.onYtTextInlineExpanderExpandClicked=wj.prototype.onYtTextInlineExpanderExpandClicked;wj.prototype.moveActionsElement=wj.prototype.moveActionsElement;wj.prototype.updateShouldForceIconOnly=wj.prototype.updateShouldForceIconOnly;wj.prototype.updateTopLevelIconsOnly=wj.prototype.updateTopLevelIconsOnly;
wj.prototype.structuredDescriptionContentRendererChanged=wj.prototype.structuredDescriptionContentRendererChanged;wj.prototype.videoSecondaryInfoRendererChanged=wj.prototype.videoSecondaryInfoRendererChanged;wj.prototype.videoPrimaryInfoRendererChanged=wj.prototype.videoPrimaryInfoRendererChanged;wj.prototype.maybeUpdateActionsOnSeparateLine=wj.prototype.maybeUpdateActionsOnSeparateLine;wj.prototype.updateOwnerAndDescriptionPosition=wj.prototype.updateOwnerAndDescriptionPosition;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],wj.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],wj.prototype,"ytdReduxBehavior",void 0);_.Y([_.Sg("#above-the-fold"),_.V("design:type",HTMLElement)],wj.prototype,"aboveTheFoldContainer",void 0);_.Y([_.Sg("#menu ytd-menu-renderer"),_.V("design:type",Object)],wj.prototype,"menu",void 0);_.Y([_.Sg("#description-inline-expander"),_.V("design:type",Object)],wj.prototype,"descriptionInlineExpander",void 0);
_.Y([_.Sg("#faded-structured-description"),_.V("design:type",Object)],wj.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.Y([_.Sg("#structured-description"),_.V("design:type",Object)],wj.prototype,"structuredDescriptionContentRendererElement",void 0);_.Y([_.Sg("#title"),_.V("design:type",HTMLElement)],wj.prototype,"titleElement",void 0);_.Y([_.Sg("#description"),_.V("design:type",HTMLElement)],wj.prototype,"descriptionElement",void 0);
_.Y([_.Sg("#description-interaction"),_.V("design:type",Object)],wj.prototype,"descriptionInteraction",void 0);_.Y([_.Sg("#owner"),_.V("design:type",HTMLElement)],wj.prototype,"ownerElement",void 0);_.Y([_.Sg("#top-row"),_.V("design:type",HTMLElement)],wj.prototype,"topRowElement",void 0);_.Y([_.Sg("#bottom-row"),_.V("design:type",HTMLElement)],wj.prototype,"bottomRowElement",void 0);_.Y([_.Sg("#actions"),_.V("design:type",HTMLElement)],wj.prototype,"actionsElement",void 0);
_.Y([_.Sg("#bottom-actions"),_.V("design:type",HTMLElement)],wj.prototype,"bottomActionsElement",void 0);_.Y([_.Sg("#ytd-watch-info-text"),_.V("design:type",Object)],wj.prototype,"watchInfoTextElement",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"videoSecondaryInfoRenderer",void 0);
_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"videoMetadataCarousel",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"structuredDescriptionContentRenderer",void 0);_.Y([_.S("structuredDescriptionContentRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"structuredDescriptionContentRendererComputed",null);
_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"videoSummary",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"merchShelf",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"infoPanelBelowMetadata",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"hoverColor",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"hoverText",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"isHovering",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"enableColorSampling",void 0);_.Y([_.S("structuredDescriptionContentRendererComputed"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"productShelf",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"metadataBadgesInDescription",void 0);_.Y([_.S("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"shouldHideBadges",null);
_.Y([_.S("productShelf","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"shouldShowProductShelf",null);_.Y([_.x(),_.V("design:type",Boolean)],wj.prototype,"isWatchFlexy",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"descriptionCollapsed",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],wj.prototype,"useFadedScrimDescription",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"skinnyMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"largerItemWrap",null);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"playlist",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"clarifyBox",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"playerAds",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],wj.prototype,"isDark",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],wj.prototype,"actionsOnSeparateLine",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"disableVideoOwnerOnTap",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"swatcherooDelayLoad",void 0);_.Y([_.x(),_.V("design:type",Boolean)],wj.prototype,"suppressTopLevelMetadataRows",void 0);
_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"primaryMenuWidth",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"videoId",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"titleHeadlineXs",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"titleHeadlineS",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"titleHeadlineM",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"titleHashtagBlackLinkified",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"titleHashtagGreyLinkified",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],wj.prototype,"shouldForceIconOnly",void 0);
_.Y([_.lq("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"updateOwnerAndDescriptionPosition",null);_.Y([_.lq("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.Y([_.S("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"descriptionText",null);_.Y([_.S("videoSecondaryInfoRenderer.headerRuns"),_.V("design:type",Array),_.V("design:paramtypes",[])],wj.prototype,"headerRuns",null);
_.Y([_.x({value:!1}),_.S("commentsEntryPointHeaderRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"hasTeaser",null);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.S("videoMetadataCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"hasTeaserCarousel",null);_.Y([_.x({value:3}),_.S("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"descriptionMaxLines",null);
_.Y([_.S("videoSecondaryInfoRenderer.metadataRowContainer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"collapsibleMetadataRows",null);_.Y([_.S("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"alwaysVisibleMetadataRows",null);
_.Y([_.S("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"hasInlineStructuredDescription",null);_.Y([_.S("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"showInlineStructuredDescription",null);
_.Y([_.S("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"descriptionExpandCommand",null);_.Y([_.S("videoSecondaryInfoRenderer.owner"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"videoOwnerCommand",null);_.Y([_.x({reflectToAttribute:!0}),_.S("videoPrimaryInfoRenderer.videoActions"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"flexMenuEnabled",null);
_.Y([_.x({selector:_.YP,reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"isFullscreen",void 0);_.Y([_.x({selector:_.XN,reflectToAttribute:!0}),_.V("design:type",Object)],wj.prototype,"isTheaterMode",void 0);_.Y([_.S("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"showAttributedStringDescription",null);
_.Y([_.S("descriptionText","useFadedScrimDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"showFormattedStringDescription",null);_.Y([_.S("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wj.prototype,"showFadedStructuredDescription",null);
_.Y([_.lq("videoPrimaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"videoPrimaryInfoRendererChanged",null);_.Y([_.S("videoPrimaryInfoRenderer.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"videoTitle",null);_.Y([_.S("videoPrimaryInfoRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],wj.prototype,"noEndpoints",null);
_.Y([_.lq("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"videoSecondaryInfoRendererChanged",null);_.Y([_.Nm("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"structuredDescriptionContentRendererChanged",null);
_.Y([_.Nm("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"updateTopLevelIconsOnly",null);_.Y([_.Nm("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"updateShouldForceIconOnly",null);_.Y([_.Nm("skinnyMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"moveActionsElement",null);
_.Y([_.f3("yt-text-inline-expander-expand-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"onYtTextInlineExpanderExpandClicked",null);_.Y([_.f3("yt-text-inline-expander-collapse-clicked"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.Y([_.f3("yt-text-inline-expander-expanded-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],wj.prototype,"onRenderStamperFinished",null);
_.Y([_.f3("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"onYtExpanderMoreTapped",null);_.Y([_.f3("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"onYtExpanderLessTapped",null);
_.Y([_.Nm("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"registerPanel",null);_.Y([_.Nm("videoSecondaryInfoRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"resetDescriptionState",null);
_.Y([_.Nm("structuredDescriptionContentRenderer"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"parseColorSamplingData",null);_.Y([_.Nm("hoverColor","isDark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wj.prototype,"updateHoverColor",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-watch-metadata"})],wj);
_.X(wj,"ytd-watch-metadata",function(){if(x6G!==void 0)return x6G;var h=document.createElement("template");_.N(h,'\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" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\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"> </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="[[structuredDescriptionContentRendererComputed]]" 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="[[structuredDescriptionContentRendererComputed]]" 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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return x6G=h},{mode:2});_.FEi=function(h){_.wO.call(this);this.JSC$22936_watchApi=h;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;nZj(this);XmM(this);Y92(this);spL(this);VA2(this);k9L(this);yVM(this)};
_.f(_.FEi,_.wO);var Y92=function(h){var E=function(){_.J("kevlar_is_pupi_enabled")||DH(h)};
h.JSC$22936_watchApi.getRoot().addEventListener("yt-player-updated",E);h.addOnDisposeCallback(function(){h.JSC$22936_watchApi.getRoot().removeEventListener("yt-player-updated",E)})},VA2=function(h){if(_.J("kevlar_endscreen_auto_theater_mode")){var E=h.JSC$22936_watchApi.subscribeToActiveChanged(function(){AVN(h)},!1);
h.addOnDisposeCallback(E)}},nZj=function(h){var E,g,Z,M,W;
_.a(function(z){if(z.nextAddress==1)return z.yield(h.JSC$22936_watchApi.playerApi,2);E=z.yieldResult;g=function(c){c=!!c;T9G(h)&&(c=c?2:1,_.q8.getInstance().setState(c,!0,!1))};
Z=function(c){c&&_.lRK(_.Gv().getState())&&(_.BX(h.JSC$22936_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),h.temporaryTheaterMode=!0)};
M=function(c){_.J("kevlar_player_update_autonav_on_new_data")&&c.type==="newdata"&&(_.J("kevlar_is_pupi_enabled")||DH(h))};
W=function(c){h.onPlayerStateChange(c)};
_.J("kevlar_endscreen_auto_theater_mode")&&E.addEventListener("onAutonavCancelled",Z);E.addEventListener("onAutonavChangeRequest",g);E.addEventListener("onVideoDataChange",M);E.addEventListener("onStateChange",W);h.addOnDisposeCallback(function(){E.removeEventListener("onAutonavChangeRequest",g);E.removeEventListener("onVideoDataChange",M);E.removeEventListener("onStateChange",W);_.J("kevlar_endscreen_auto_theater_mode")&&E.removeEventListener("onAutonavCancelled",Z)});
_.SK(z)})},XmM=function(h){h.JSC$22936_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){h.autonavCancelledBySignal=!0;
_.J("kevlar_is_pupi_enabled")||DH(h)});
h.JSC$22936_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(E,g,Z){g&&DH(h,Z)});
h.JSC$22936_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){T9G(h)&&_.q8.getInstance().setState(2,!0,!0)});
h.JSC$22936_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){T9G(h)&&_.q8.getInstance().setState(1,!0,!0)});
h.addOnDisposeCallback(function(){h.JSC$22936_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");h.JSC$22936_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");h.JSC$22936_watchApi.unregisterActionHandler("yt-enable-autoplay-command");h.JSC$22936_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},spL=function(h){var E=h.JSC$22936_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){yVM(h)}),g=h.JSC$22936_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){k9L(h)});
h.addOnDisposeCallback(function(){h.JSC$22936_watchApi.unsubscribeByKey(E);h.JSC$22936_watchApi.unsubscribeByKey(g)})},yVM=function(h){h.autonavCancelledBySignal=!1;
_.J("kevlar_is_pupi_enabled")||DH(h)},k9L=function(h){var E=h.JSC$22936_watchApi.getWatchNextResponse(),g,Z;
var M=(E=(Z=_.e(E==null?void 0:(M=E.playerOverlays)==null?void 0:(g=M.playerOverlayRenderer)==null?void 0:g.autonavToggle,_.pBl))==null?void 0:Z.enabled)?2:1;_.J("kevlar_is_pupi_enabled")?_.q8.getInstance().setState(M,!1,!1):DH(h);_.J("web_persist_server_autonav_state_on_client")&&typeof E==="boolean"&&_.XCZ(M===2)},T9G=function(h){if(h.autonavCancelledBySignal)return!1;
var E,g,Z,M;return!!((E=h.JSC$22936_watchApi.getWatchNextResponse())==null?0:(g=E.contents)==null?0:(Z=g.twoColumnWatchNextResults)==null?0:(M=Z.autoplay)==null?0:M.autoplay)};
_.FEi.prototype.onPlayerStateChange=function(h){if(h===0){h=!_.q8.getInstance().isAutoplaySetExplicitly();var E=this.JSC$22936_watchApi.getWatchNextResponse(),g,Z,M,W;E=_.e(E==null?void 0:(g=E.contents)==null?void 0:(Z=g.twoColumnWatchNextResults)==null?void 0:(M=Z.autoplay)==null?void 0:(W=M.autoplay)==null?void 0:W.autoplayExplicitChoiceDialogRenderer,_.qUl);T9G(this)&&h&&E&&_.eQ.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:E},popupType:"DIALOG"}})}else AVN(this)};
var AVN=function(h){h.temporaryTheaterMode&&(h.temporaryTheaterMode=!1,_.BX(h.JSC$22936_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},DH=function(h,E){E=E===void 0?!1:E;
var g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22936_watchApi.playerApi,2);g=Z.yieldResult;T9G(h)?g.setAutonavState(_.q8.getInstance().getState(),E):g.setAutonavState(1,E);_.SK(Z)})};var bwK={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.QpL=function(h){_.wO.call(this);var E=this;this.JSC$22941_watchApi=h;var g=this.JSC$22941_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){uhj(E)});
this.addOnDisposeCallback(function(){E.JSC$22941_watchApi.unsubscribeByKey(g)});
uhj(this)};
_.f(_.QpL,_.wO);var uhj=function(h){var E=h.JSC$22941_watchApi.getPlayerResponse(),g=h.JSC$22941_watchApi.getWatchNextResponse();if(!_.AFa(E==null?void 0:E.playabilityStatus,g==null?void 0:g.playerOverlays)){var Z;var M=E==null?void 0:(Z=E.playabilityStatus)==null?void 0:Z.errorScreen}h.JSC$22941_watchApi.provideRenderingData("ERROR_SCREEN",M)};var hJM=_.O(function(h){var E=h.data;h=_.J("web_watch_video_details_hide_subtitle");var g=_.J("web_watch_video_details_single_line_title"),Z=_.J7(function(){var c=E().onTap;c&&_.GF().resolve(_.zF).resolveCommand(c)}),M={},W={},z={};
return _.R("yt-player-overlay-video-details-renderer",{class:_.CO("ytPlayerOverlayVideoDetailsRendererHost",(M.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.J("web_watch_video_details_transparent_background"),M)),"on:click":Z,role:"button"},_.R("h2",{class:_.CO("ytPlayerOverlayVideoDetailsRendererTitle",(W.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return g},W))},_.R(_.dK,{text:function(){return E().title}})),_.R("div",{class:_.CO("ytPlayerOverlayVideoDetailsRendererSubtitle",
(z.ytPlayerOverlayVideoDetailsRendererHideSubtitle=h,z))},_.R(_.dK,{text:function(){return E().subtitle}})))},"cl");var lS={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},E3M=_.O(function(h){var E=h.data;var g=_.VQ(_.YP),Z=_.J("web_watch_action_bar_resize_buttons"),M=_.J("web_watch_video_action_dsdvb"),W=_.J("delhi_modern_web_player_icons")&&!_.J("enable_web_delhi_icons");h=_.J("delhi_modern_web_player_disable_frosted_glass");var z=_.J("delhi_modern_web_player_compact_controls"),c=function(){return z?
{size:"S",iconPosition:"icon-only"}:Z&&!g()?{size:"M"}:void 0},I={};
return _.R("yt-player-quick-action-buttons",{class:_.CO("ytPlayerQuickActionButtonsHost",(I.ytPlayerQuickActionButtonsHostCompactControls=function(){return!g()||z},I.ytPlayerQuickActionButtonsHostDisableBackdropFilter=h,I))},_.R(_.SX,{each:function(){var B=E();
if(W){B=JSON.parse(JSON.stringify(B));for(var U=_.G(B),L=U.next();!L.done;L=U.next()){var d=L.value,C=void 0;L=_.e((C=_.e(d,_.EU))==null?void 0:C.toggleButtonViewModel,_.Ix);var q=void 0;C=_.e((q=_.e(d,_.hm))==null?void 0:q.toggleButtonViewModel,_.Ix);q=_.e(d,_.i_);d=_.e(d,_.Ix);if(L)C=_.e(L.defaultButtonViewModel,_.i_),L=_.e(L.toggledButtonViewModel,_.i_),C&&C.iconName&&(C.iconName=lS[C.iconName]),L&&L.iconName&&(L.iconName=lS[L.iconName]);else if(C)L=_.e(C.defaultButtonViewModel,_.i_),C=_.e(C.toggledButtonViewModel,
_.i_),L&&L.iconName&&(L.iconName=lS[L.iconName]),C&&C.iconName&&(C.iconName=lS[C.iconName]);else if(q)q.iconName&&(q.iconName=lS[q.iconName]);else if(d){L=_.e(d.defaultButtonViewModel,_.i_);C=_.e(d.toggledButtonViewModel,_.i_);d=void 0;if((d=L)==null?0:d.iconName)L.iconName=lS[L.iconName];L=void 0;if((L=C)==null?0:L.iconName)C.iconName=lS[C.iconName]}}}M&&(B=pii(B));return B}},function(B){return _.R(_.Sv,{data:function(){return B}},{buttonViewModel:function(U){return _.R(_.$l,{data:U.data,
buttonOverrides:c})},
likeButtonViewModel:function(U){return _.R(_.zj,{data:U.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(U){return _.R(_.Gj,{data:U.data,buttonShapeOverrideables:c})},
toggleButtonViewModel:function(U){return _.R(_.Z7,{data:U.data,buttonShapeOverrides:c})}})}))},"dl");_.ZFM=function(h){_.wO.call(this);var E=this;this.JSC$22945_watchApi=h;h=_.G(_.Bm({},void 0,"n9wCVe"));this.quickActionsViewModel=h.next().value;this.setQuickActionsViewModel=h.next().value;h=_.G(_.Bm({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=h.next().value;this.setPlayerOverlayVideoDetailsRenderer=h.next().value;var g=this.JSC$22945_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){g3L(E)});
this.addOnDisposeCallback(function(){E.JSC$22945_watchApi.unsubscribeByKey(g)});
g3L(this)};
_.f(_.ZFM,_.wO);
var g3L=function(h){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q;_.a(function(w){if(w.nextAddress==1)return w.yield(h.JSC$22945_watchApi.playerApi,2);E=w.yieldResult;g=h.JSC$22945_watchApi.getWatchNextResponse();W=(Z=g)==null?void 0:(M=Z.playerOverlays)==null?void 0:M.playerOverlayRenderer;c=_.e((z=W)==null?void 0:z.fullscreenQuickActionsBar,_.Wwl);(B=(I=h).setQuickActionsViewModel)==null||B.call(I,c||{});c&&MX2(h,E);d=(U=W)==null?void 0:(L=U.videoDetails)==null?void 0:L.playerOverlayVideoDetailsRenderer;(q=(C=
h).setPlayerOverlayVideoDetailsRenderer)==null||q.call(C,d||{});d&&W1L(h,E);_.SK(w)})},MX2=function(h,E){if(!h.quickActionButtonsContainer)if(E.setFullscreenQuickActions){h.quickActionButtonsContainer=document.createElement("div");
E.setFullscreenQuickActions(h.quickActionButtonsContainer);var g=function(){return h.quickActionsViewModel().quickActionButtons||[]},Z=_.rX(h.quickActionButtonsContainer,function(){return _.R(E3M,{data:g})},"el");
h.addOnDisposeCallback(function(){E.setFullscreenQuickActions(void 0);Z()})}else _.O$(new _.xX("setFullscreenQuickActions not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))},W1L=function(h,E){if(!h.playerOverlayVideoDetailsRendererContainer)if(E.setPlayerOverlayVideoDetailsRenderer){h.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
E.setPlayerOverlayVideoDetailsRenderer(h.playerOverlayVideoDetailsRendererContainer);var g=_.rX(h.playerOverlayVideoDetailsRendererContainer,function(){return _.R(hJM,{data:h.playerOverlayVideoDetailsRenderer})},"fl");
h.addOnDisposeCallback(function(){E.setPlayerOverlayVideoDetailsRenderer(void 0);g()})}else _.O$(new _.xX("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))};_.rj=function(h){_.wO.call(this);var E=this;this.JSC$22951_watchApi=h;this.JSC$22951_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;h=_.kT(_.Gv(),_.YP,function(g){E.onFullscreenChanged(g)});
this.addOnDisposeCallback(h);h=_.kT(_.Gv(),_.XS,function(g){E.onWatchScroll(g)});
this.addOnDisposeCallback(h);_.J("kevlar_watch_while_v2")&&(h=_.kT(_.Gv(),_.so,function(g){pJN(E,g)}),this.addOnDisposeCallback(h));
Gto(this);zJN(this);aG0();this.onWatchScroll(_.XS(_.Gv().getState()));_.Xn("START_IN_FULL_WINDOW_MODE")&&this.JSC$22951_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.f(_.rj,_.wO);var Gto=function(h){h.JSC$22951_watchApi.registerActionHandler("yt-fullscreen-change-action",function(E){var g=h.JSC$22951_watchApi.isActive();E&&!g||_.Gv().dispatch(_.RY({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!E}}))});
h.addOnDisposeCallback(function(){h.JSC$22951_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},zJN=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22951_watchApi.playerApi,2);E=Z.yieldResult;g=function(){h.onFullerscreenEduClicked()};
E.addEventListener("onFullerscreenEduClicked",g);h.addOnDisposeCallback(function(){E.removeEventListener("onFullerscreenEduClicked",g)});
_.SK(Z)})};
_.rj.prototype.onFullscreenChanged=function(h){var E=this,g;return _.a(function(Z){if(Z.nextAddress==1)return E.isFullscreen=!!_.cX(),Z.yield(E.JSC$22951_watchApi.playerApi,2);g=Z.yieldResult;E.JSC$22951_miniplayerActive||g.setFauxFullscreen(E.isFullscreen);if(h&&(E.JSC$22951_watchApi.focusOnPlayer(),!E.fullerscreenEduButtonShownThisPlayback)){E.fullerscreenEduButtonShownThisPlayback=!0;var M=_.YY("yt-fullerscreen-edu-button-shown-count")||0;_.Xt("yt-fullerscreen-edu-button-shown-count",M+1,31536E3);
E.updateFullerscreenEduButtonSubtleModeState()}_.SK(Z)})};
var pJN=function(h,E){var g;_.a(function(Z){if(Z.nextAddress==1)return h.JSC$22951_miniplayerActive=E,Z.yield(h.JSC$22951_watchApi.playerApi,2);g=Z.yieldResult;g.setFauxFullscreen(!h.JSC$22951_miniplayerActive&&h.isFullscreen);_.SK(Z)})};
_.rj.prototype.onWatchScroll=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return _.J("external_fullscreen_with_edu")?M.yield(E.JSC$22951_watchApi.playerApi,2):M.return();g=M.yieldResult;Z=h<=0;E.shouldShowFullerscreenEdu!==Z&&(E.shouldShowFullerscreenEdu=Z,g.updateFullerscreenEduButtonVisibility(!E.shouldShowFullerscreenEdu));_.SK(M)})};
_.rj.prototype.onFullerscreenEduClicked=function(){this.JSC$22951_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var h=_.YY("yt-fullerscreen-edu-button-click-count")||0;_.Xt("yt-fullerscreen-edu-button-click-count",h+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.rj.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var h=this,E,g,Z,M,W,z;return _.a(function(c){if(c.nextAddress==1)return E=_.YY("yt-fullerscreen-edu-button-click-count")||0,g=_.YY("yt-fullerscreen-edu-button-shown-count")||0,Z=_.cx("external_fullscreen_button_click_threshold"),M=_.cx("external_fullscreen_button_shown_threshold"),W=E>=Z||g>=M,c.yield(h.JSC$22951_watchApi.playerApi,2);z=c.yieldResult;z.updateFullerscreenEduButtonSubtleModeState(W);_.SK(c)})};
_.rj.prototype.disposeInternal=function(){_.wO.prototype.disposeInternal.call(this);var h=_.cX();_.J("kevlar_exit_fullscreen_leaving_watch")&&h&&_.iw(h)};
var aG0=function(){if(_.J("web_watch_add_viewport_meta_tag")){var h=document.querySelector("meta[name=viewport]"),E=document.head;E&&!h&&(h=document.createElement("meta"),h.name="viewport",h.content="width=device-width, initial-scale=1.0, viewport-fit=cover",E.appendChild(h))}};_.iFL=function(h){_.wO.call(this);var E=this;this.JSC$22955_watchApi=h;this.jobId=0;this.pendingRequestId=void 0;var g=this.JSC$22955_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cxa(E)});
this.addOnDisposeCallback(function(){E.JSC$22955_watchApi.unsubscribeByKey(g)});
cxa(this)};
_.f(_.iFL,_.wO);var o3N=function(h){_.KP.cancelJob(h.jobId);h.pendingRequestId=void 0},cxa=function(h){o3N(h);
var E=GNj(h.JSC$22955_watchApi.getWatchNextResponse());if(E){var g=250,Z,M=(Z=_.e(E,_.MnC))==null?void 0:Z.initialDelayMs;_.J("web_watch_updated_metadata_server_initial_delay")&&M&&(g=M);h.jobId=_.KP.addLowPriorityJob(function(){return h.fetchUpdatedMetadata(E)},g)}};
_.iFL.prototype.fetchUpdatedMetadata=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v;return _.a(function(H){switch(H.nextAddress){case 1:E&&(Z={continuation:E});if(!_.J("web_get_updated_metadata_fantasy_panel_continuation_params")){H.jumpTo(2);break}M=_.GF().resolve(_.QW);W="PAsports_fantasy";return H.yield(M.isVisible(W,!0),3);case 3:H.yieldResult&&(B=(c=(z=M).getUpdatePanelContinuationData)==null?void 0:(I=c.call(z,W))==null?void 0:I.updatePanelContinuationRequest)&&(Z||(Z={}),Z.clientParams=
{panelContinuationParams:{panelContinuation:B}});case 2:U=_.GF().resolve(_.yV);if(!U)return _.$W(Error("Ro")),H.return();L={};g.pendingRequestId=L;return H.yield(_.QQ(U,h,Z),4);case 4:d=H.yieldResult;if(L!==g.pendingRequestId)return H.return();w=(C=d)==null?void 0:(q=C.continuation)==null?void 0:q.timedContinuationData;((r=w)==null?0:r.continuation)&&((v=w)==null?0:v.timeoutMs)&&(g.jobId=_.KP.addLowPriorityJob(function(){return g.fetchUpdatedMetadata(h,w.continuation)},w.timeoutMs));
_.SK(H)}})};
_.iFL.prototype.disposeInternal=function(){_.wO.prototype.disposeInternal.call(this);o3N(this)};var IGG=_.O(function(h){var E=_.J7(function(){var Z=h.data().videoId;if(h.active())Z=_.cn(Z),_.GF().resolve(_.zF).resolveCommand(Z);else{var M=h.playerApi(),W=M.getAvailableAudioTracks(),z,c,I=(z=h.sourceVideoConfig().audioTracks)==null?void 0:(c=z.find(function(B){return B.isDefaultForSource}))==null?void 0:c.id;
if(W=W.find(function(B){return B.getLanguageInfo().getId()===I}))M.setAudioTrack(W,!0),M.setCompositeParam({activeVideoId:Z}),h.setActiveSourceId(Z)}}),g={};
return _.R("ytw-composite-source-video-overlay",{class:_.CO("ytwCompositeSourceVideoOverlayHost",(g.ytwCompositeSourceVideoOverlayActive=h.active,g.ytwCompositeSourceVideoOverlayInteracting=h.interacting,g)),style:_.fO({left:function(){var Z;return((Z=h.data().topLeftCornerX)!=null?Z:0)*100+"%"},
top:function(){var Z;return((Z=h.data().topLeftCornerY)!=null?Z:0)*100+"%"},
width:function(){var Z;return((Z=h.data().width)!=null?Z:0)*100+"%"},
height:function(){var Z;return((Z=h.data().height)!=null?Z:0)*100+"%"}}),
"on:click":E},_.R("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"gl");var RJK=_.O(function(h){var E=_.G(_.qi(function(){var z,c=(z=h.data().sources)==null?void 0:z.find(function(I){return I.isActive});
if(c)return c.videoId})),g=E.next().value,Z=E.next().value;
E=_.G(_.Bm(!1,void 0,"yNRzwd"));var M=E.next().value,W=E.next().value;return _.R("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.J7(function(){W(!0)}),
"on:mouseout":_.J7(function(){W(!1)})},_.R(_.P,{cond:function(){return h.data().sources},
then:function(z){return _.R(_.SX,{each:z},function(c){return _.R(IGG,{data:c,active:function(){return c.videoId===g()},
setActiveSourceId:Z,interacting:M,playerApi:h.playerApi,sourceVideoConfig:function(){return zaL(h.compositeVideoConfig(),c.videoId)}})})}}))},"hl");_.Uaj=function(h){_.wO.call(this);this.JSC$22971_watchApi=h;h=_.G(_.Bm({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=h.next().value;this.setCompositeVideoOverlayRenderer=h.next().value;h=_.G(_.Bm({},void 0,"OlaJpc"));this.compositeVideoConfig=h.next().value;this.setCompositeVideoConfig=h.next().value;PIK(this);BXM(this)};
_.f(_.Uaj,_.wO);var PIK=function(h){var E=h.JSC$22971_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){BXM(h)});
h.addOnDisposeCallback(function(){h.JSC$22971_watchApi.unsubscribeByKey(E)})},L1N=function(h){var E;
return _.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$22971_watchApi.playerApi,2);E=g.yieldResult;E.setCompositeVideoOverlayRendererComponent(h.container);_.SK(g)})},joL=function(h){var E;
return _.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$22971_watchApi.playerApi,2);E=g.yieldResult;E.setCompositeVideoOverlayRendererComponent(void 0);_.SK(g)})},daM=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22971_watchApi.playerApi,2);E=Z.yieldResult;h.container=document.createElement("div");g=_.rX(h.container,function(){return _.R(RJK,{data:h.compositeVideoOverlayRenderer,compositeVideoConfig:h.compositeVideoConfig,playerApi:E})},"il");
h.addOnDisposeCallback(g);_.SK(Z)})},BXM=function(h){var E,g,Z,M,W,z,c,I;
_.a(function(B){return B.nextAddress==1?(E=h.JSC$22971_watchApi.getPlayerResponse(),W=_.e((g=E)==null?void 0:(Z=g.overlay)==null?void 0:(M=Z.playerControlsOverlayRenderer)==null?void 0:M.compositeVideoOverlay,gEG),I=(z=E)==null?void 0:(c=z.playerConfig)==null?void 0:c.compositeVideoConfig,W&&h.setCompositeVideoOverlayRenderer(W),I&&h.setCompositeVideoConfig(I),W&&I?h.container?B.jumpTo(6):B.yield(daM(h),6):CIi(h)?B.yield(joL(h),0):B.jumpTo(0)):CIi(h)?B.jumpTo(0):B.yield(L1N(h),0)})},CIi=function(h){var E;
return!((E=h.container)==null||!E.parentElement)};
_.Uaj.prototype.disposeInternal=function(){CIi(this)&&joL(this);_.wO.prototype.disposeInternal.call(this)};_.NXj=function(h){_.wO.call(this);var E=this;this.JSC$22977_watchApi=h;var g=this.JSC$22977_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var Z=E.JSC$22977_watchApi.getPlayerResponse();if(Z){var M,W;if(Z=_.e((M=Z.endscreen)==null?void 0:(W=M.endscreenRenderer)==null?void 0:W.hideButton,_.Ix)){var z;(z=E.setEndscreenHideButton)==null||z.call(E,Z);JxN(E)}}});
this.addOnDisposeCallback(function(){E.JSC$22977_watchApi.unsubscribeByKey(g)});
h=_.G(_.Bm({},void 0,"ER3tqb"));this.endscreenHideButton=h.next().value;this.setEndscreenHideButton=h.next().value;eJj(this);qWL(this);fG2(this)};
_.f(_.NXj,_.wO);
var JxN=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return h.creatorEndscreenHideButtonContainer?Z.return():Z.yield(h.JSC$22977_watchApi.playerApi,2);E=Z.yieldResult;h.creatorEndscreenHideButtonContainer=document.createElement("div");_.Q_(h.creatorEndscreenHideButtonContainer,!1);E.setCreatorEndscreenHideButton(h.creatorEndscreenHideButtonContainer);g=_.rX(h.creatorEndscreenHideButtonContainer,function(){return _.R(_.Z7,{data:h.endscreenHideButton,useOutlinedIcon:!0})},"jl");
h.addOnDisposeCallback(function(){g();var M;(M=E)==null||M.setCreatorEndscreenHideButton(void 0)});
_.SK(Z)})},eJj=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22977_watchApi.playerApi,2);E=Z.yieldResult;g=function(){h.creatorEndscreenHideButtonContainer&&_.Q_(h.creatorEndscreenHideButtonContainer,!0)};
E.addEventListener("endscreenelementshown",g);h.addOnDisposeCallback(function(){var M;(M=E)==null||M.removeEventListener("endscreenelementshown",g)});
_.SK(Z)})},qWL=function(h){var E=function(){h.creatorEndscreenHideButtonContainer&&_.Q_(h.creatorEndscreenHideButtonContainer,!1)},g=h.JSC$22977_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",E),Z=h.JSC$22977_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",E);
h.addOnDisposeCallback(function(){h.JSC$22977_watchApi.unsubscribeByKey(g);h.JSC$22977_watchApi.unsubscribeByKey(Z)})},fG2=function(h){h.JSC$22977_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(E){var g=_.e(E,TUL);
h.JSC$22977_watchApi.playerApi.then(function(Z){Z==null||Z.setCreatorEndscreenVisibility(!!g.hide)})});
h.addOnDisposeCallback(function(){h.JSC$22977_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.SWj=function(h){_.wO.call(this);this.JSC$22983_watchApi=h;tXL(this)};
_.f(_.SWj,_.wO);var tXL=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22983_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){_.Gv().dispatch(_.RY({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:M}}))};
E.addEventListener("onRetroModeChanged",g);h.addOnDisposeCallback(function(){E.removeEventListener("onRetroModeChanged",g)});
_.SK(Z)})};var BUU=0,se=0,L2a=0;var xaL;xaL=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.m4=function(h){_.wO.call(this);this.JSC$22988_watchApi=h;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;wJx(this)};
_.f(_.m4,_.wO);
var wJx=function(h){var E,g,Z;_.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$22988_watchApi.playerApi,2);E=M.yieldResult;if(h.isDisposed())return M.return();h.sessionStorage=_.AhG("yt-sleep-timer");h.sessionStorage||_.O$(new _.xX("SessionStorage for Sleep Timer is undefined."));((g=h.sessionStorage)==null?void 0:g.get("yt-sleep-timer"))==="true"&&(Cxa(),(Z=h.sessionStorage)==null||Z.remove("yt-sleep-timer"),E.syncVolume());DaU(h,E);lGG(h,E);rxr(h,E);_.SK(M)})},DaU=function(h,E){var g=function(B){h.onSleepTimerSettingsChanged(B,
E)},Z=function(B){h.onPlayerStateChange(B,E)},M=function(){h.onLoopChange(E)},W=function(){h.onCloseMiniplayer(E)},z=function(){Px2(E,(0,_.zn)(),JLG(E),h.selectedOption==="End of video",E.getPlayerState()!==1)},c=function(){h.onSeekComplete(E)},I=function(){_.KP.cancelJob(se);
var B=E.getCurrentTime()>=E.getDuration(),U=h.selectedOption==="End of video"||h.selectedOption==="End of playlist"&&!orU(h.playlistId);B&&U&&maL(h,E)};
E.addEventListener("onSleepTimerSettingsChanged",g);E.addEventListener("onLoopChange",M);E.addEventListener("onLoopRangeChange",M);E.addEventListener("onStateChange",Z);E.addEventListener("onCloseMiniplayer",W);E.addEventListener("onSleepTimerFeatureAvailable",z);E.addEventListener("SEEK_COMPLETE",c);E.addEventListener("onAdStart",I);h.addOnDisposeCallback(function(){E.removeEventListener("onSleepTimerSettingsChanged",g);E.removeEventListener("onLoopChange",M);E.removeEventListener("onLoopRangeChange",
M);E.removeEventListener("onStateChange",Z);E.removeEventListener("onCloseMiniplayer",W);E.removeEventListener("onSleepTimerFeatureAvailable",z);E.removeEventListener("SEEK_COMPLETE",c);E.removeEventListener("onAdStart",I)})},lGG=function(h,E){var g=h.JSC$22988_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var Z=E.getVideoData().video_id,M,W=(M=cLo(h.JSC$22988_watchApi))==null?void 0:M.playlistId;
h.pauseAutonavPlayback&&(E.pauseVideo(),E.syncVolume(),h.pauseAutonavPlayback=!1);if(h.selectedOption==="End of video"&&Z!==h.videoId)vN(h,E);else{if(h.selectedOption==="End of playlist"){M=orU(h.playlistId);if(W!==h.playlistId){vN(h,E);break a}M?M&&v3L(h,E):HFi(h,E)}h.videoId=Z;h.playlistId=W}}});
h.addOnDisposeCallback(function(){h.JSC$22988_watchApi.unsubscribeByKey(g)})},rxr=function(h,E){var g=_.GF().resolve(_.c4),Z=_.kT(g,_.Wua,function(W){W&&h.selectedOption!=="Off"&&vN(h,E)}),M=h.JSC$22988_watchApi.subscribeToActiveChanged(function(W){var z,c;
return _.a(function(I){if(I.nextAddress==1)return I.yield(_.sU().navigationFinishPromise,2);z=!_.JYf();c=_.GF().resolve(_.Yu).isMiniplayerActive();W||!a0G(h.selectedOption)||c||z||vN(h,E);_.SK(I)})},!1);
g=_.kT(g,function(W){return W.entities.playlistLoopStateEntity||{}},function(W){W=W===void 0?{}:W;
var z=iMx(h.JSC$22988_watchApi);if(z){var c;((c=W[z])==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ALL"&&a0G(h.selectedOption)&&vN(h,E)}});
h.addOnDisposeCallback(Z);h.addOnDisposeCallback(g);h.addOnDisposeCallback(M)};
_.m4.prototype.onSleepTimerSettingsChanged=function(h,E){switch(h){case "Off":this.selectedOption!=="Off"&&vN(this,E);break;case "End of video":case "End of playlist":$aU(this,h,E);break;default:$aU(this,h,E,xaL.get(h))}};
_.m4.prototype.onLoopChange=function(h){(h.getLoopVideo()||h.getLoopRange())&&a0G(this.selectedOption)&&vN(this,h)};
_.m4.prototype.onCloseMiniplayer=function(h){a0G(this.selectedOption)&&vN(this,h)};
var $aU=function(h,E,g,Z){K1L(h,g);h.selectedOption=E;h.videoId=g.getVideoData().video_id;h.playlistId="";var M;(M=h.sessionStorage)==null||M.set("yt-sleep-timer","true");h.adjustmentsCount++;Px2(g,(0,_.zn)(),JLG(g),h.selectedOption==="End of video");if(h.selectedOption==="End of video")HFi(h,g),OFK(h,g);else if(h.selectedOption==="End of playlist"){OFK(h,g);var W,z;h.playlistId=(z=(W=cLo(h.JSC$22988_watchApi))==null?void 0:W.playlistId)!=null?z:"";orU(h.playlistId)||HFi(h,g)}else Z&&(h.presetFadeSchedulerId=
_.lv(_.KP,function(){jK0(g,15E3)},Z-15E3),h.presetPauseSchedulerId=_.lv(_.KP,function(){maL(h,g)},Z),Uoo(g,(0,_.zn)(),Z))},maL=function(h,E){if(h.JSC$22988_watchApi.isActive()){var g={dismissDialogEndpoint:{}};
var Z={commandExecutorCommand:{commands:[g,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};g={buttonViewModel:{title:_.NH("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:g}}};Z={buttonViewModel:{title:_.NH("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:Z}}};var M={dialogHeaderViewModel:{headline:{content:_.NH("SLEEP_TIMER_ENDED_TITLE")}}},
W={basicContentViewModel:{paragraphs:[{text:{content:_.NH("SLEEP_TIMER_ENDED_TEXT")}}]}};g={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:M,content:W,footer:{panelFooterViewModel:{primaryButton:g,secondaryButton:Z,shouldHideDivider:!0}}}}}}};_.GF().resolve(_.zF).resolveCommand(g,{form:{element:h}})}else Cxa();n3r(h,!1);XJL(h,E);E.pauseVideo();_.q8.getInstance().getState()===2&&E.getPlayerState()===5&&(h.pauseAutonavPlayback=!0)},vN=function(h,E){n3r(h,!0);
XJL(h,E);Cxa()},XJL=function(h,E){K1L(h,E);
h.selectedOption="Off";h.videoId="";h.playlistId="";h.adjustmentsCount=0;var g;(g=h.sessionStorage)==null||g.remove("yt-sleep-timer");_.KP.cancelJob(BUU);E.resetSleepTimerMenuSettings()},n3r=function(h,E){E={timer_length_adjustment_times_during_session:h.adjustmentsCount-1,
is_session_cancelled:E};switch(h.selectedOption){case "Off":E.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:E.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",E.option_duration_in_minutes=xaL.get(h.selectedOption)/6E4}_.vT("sleepTimerSessionFinishEvent",E)};
_.m4.prototype.onPlayerStateChange=function(h,E){h===1?Px2(E,(0,_.zn)(),JLG(E),this.selectedOption==="End of video"):h===0?(_.KP.cancelJob(se),E.setVideoTimeLeft(Ra2(0,0))):h===2&&_.KP.cancelJob(se);this.selectedOption==="End of video"?h===0?maL(this,E):h===2&&doN(E):this.selectedOption!=="End of playlist"||orU(this.playlistId)||(h===0?maL(this,E):h===2&&doN(E))};
_.m4.prototype.onSeekComplete=function(h){h.getPlayerState()===2&&Px2(h,(0,_.zn)(),JLG(h),this.selectedOption==="End of video",!0)};
_.m4.prototype.onCueRangeEnter=function(h,E){h==="sleep-timer-fade-audio"&&jK0(E,(E.getDuration()-E.getProgressState().current)*1E3)};
_.m4.prototype.onCueRangeExit=function(h,E){h==="sleep-timer-fade-audio"&&E.getPlayerState()!==0&&doN(E,!0)};
var HFi=function(h,E){E.addCueRange("sleep-timer-fade-audio",E.getDuration()-15,E.getDuration());E.addEventListener("onCueRangeEnter",function(g){h.onCueRangeEnter(g,E)});
E.addEventListener("onCueRangeExit",function(g){h.onCueRangeExit(g,E)})},v3L=function(h,E){E.removeCueRange("sleep-timer-fade-audio");
E.removeEventListener("onCueRangeEnter",function(g){h.onCueRangeEnter(g,E)});
E.removeEventListener("onCueRangeExit",function(g){h.onCueRangeExit(g,E)})},K1L=function(h,E){a0G(h.selectedOption)?v3L(h,E):(_.KP.cancelJob(h.presetPauseSchedulerId),_.KP.cancelJob(h.presetFadeSchedulerId),h.presetPauseSchedulerId=0,h.presetFadeSchedulerId=0);
doN(E,!0)},OFK=function(h,E){E.setLoop(!1);
E.setLoopVideo(!1);E.setLoopRange(null);(h=iMx(h.JSC$22988_watchApi))&&_.GF().resolve(_.c4).dispatch(_.xx("playlistLoopStateEntity",h,{key:h,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ktL=function(h){_.wO.call(this);this.JSC$22991_watchApi=h;YWK(this);soN(this);VXr(this);h=h.getRoot();if(h.is==="ytd-watch-flexy"||h.is==="ytd-watch-grid")h.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.mZN();_.J("web_watch_log_theater_mode_cookie_state")&&_.qd.get("wide","0")==="1"&&_.bkM("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.f(_.ktL,_.wO);var YWK=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$22991_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){yxj(h,!!M)};
E.addEventListener("SIZE_CLICKED",g);h.addOnDisposeCallback(function(){E.removeEventListener("SIZE_CLICKED",g)});
_.SK(Z)})},soN=function(h){h.JSC$22991_watchApi.registerActionHandler("yt-toggle-theater-mode",function(E,g){yxj(h,E,g===void 0?!0:g)});
h.addOnDisposeCallback(function(){h.JSC$22991_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ktL.prototype.getState=function(){return _.XN(_.Gv().getState())};
var yxj=function(h,E,g){g=g===void 0?!0:g;var Z,M,W,z=_.J("enable_player_resize_transition")&&!!h.JSC$22991_watchApi.getWatchNextResponse()&&!((Z=h.JSC$22991_watchApi.getWatchNextResponse())==null?0:(M=Z.contents)==null?0:(W=M.twoColumnWatchNextResults)==null?0:W.conversationBar);_.AVp(function(){_.Gv().dispatch(_.RY({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:E}}));_.J("theater_mode_scroll_to_top_killswitch")||h.JSC$22991_watchApi.scrollWatchTo(0,!1);_.cX()&&_.J("external_fullscreen")&&_.iw(document.documentElement);
VXr(h);g&&_.fl("wide",E?"1":"0",-1);_.BX(h.JSC$22991_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);h.JSC$22991_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:E});E&&_.mZN()},{shouldWrap:z})},VXr=function(h){var E;
_.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$22991_watchApi.playerApi,2);E=g.yieldResult;E.setSizeStyle(!0,h.getState());_.SK(g)})};var TXa=function(h){_.wO.call(this);var E=this;this.playerApi=h;this.timeToPanelSyncKeyMap={};var g;if(h==null?0:(g=h.isReady)==null?0:g.call(h)){g=_.kT(_.GF().resolve(_.c4),function(M){return M.entities.timedMarkersListSyncEntity||{}},function(M,W){M=M===void 0?{}:M;
W=W===void 0?{}:W;for(var z=_.G(Object.keys(W)),c=z.next();!c.done;c=z.next())c=c.value,M[c]!==W[c]&&F1G(E,W[c]);W=_.G(Object.keys(M));for(z=W.next();!z.done;z=W.next())z=z.value,c=M[z],E.timeToPanelSyncKeyMap[z]&&AxL(E,c)});
this.addOnDisposeCallback(g);var Z=function(M){E.onCueRangeEnter(M)};
h.addEventListener("onCueRangeEnter",Z);this.addOnDisposeCallback(function(){var M;(M=h.removeEventListener)==null||M.call(h,"onCueRangeEnter",Z)})}};
_.f(TXa,_.wO);
var AxL=function(h,E){var g,Z;if((g=h.playerApi)==null?0:(Z=g.isReady)==null?0:Z.call(g)){var M;if((g=E==null?void 0:(M=E.timedListData)==null?void 0:M.sections)&&E!=null&&E.key)for(M=_.G(g),g=M.next();!g.done;g=M.next())if(g=g.value,g.timedSyncDataList&&g.sectionId)for(Z=0;Z<g.timedSyncDataList.length;Z++){var W=g.timedSyncDataList[Z];W.syncItemId&&h.playerApi.addCueRange(g.sectionId+"_"+E.key+"_"+W.syncItemId,Number(W.videoTimeMs)/1E3,Z===g.timedSyncDataList.length-1?0x8000000000000:Number(g.timedSyncDataList[Z+
1].videoTimeMs)/1E3)}}},F1G=function(h,E){var g,Z;
if((g=h.playerApi)==null?0:(Z=g.isReady)==null?0:Z.call(g)){var M;if((g=E==null?void 0:(M=E.timedListData)==null?void 0:M.sections)&&E!=null&&E.key)for(M=_.G(g),g=M.next();!g.done;g=M.next())if(g=g.value,g.timedSyncDataList&&g.sectionId){Z=_.G(g.timedSyncDataList);for(var W=Z.next();!W.done;W=Z.next())W=W.value,W.syncItemId&&h.playerApi.removeCueRange(g.sectionId+"_"+E.key+"_"+W.syncItemId)}}};
TXa.prototype.onCueRangeEnter=function(h){for(var E=_.G(Object.keys(this.timeToPanelSyncKeyMap)),g=E.next();!g.done;g=E.next()){g=g.value;var Z=_.G(h.split("_"+g+"_")),M=Z.next().value;Z=Z.next().value;if(M&&Z){h=_.GF().resolve(_.c4);E=this.timeToPanelSyncKeyMap[g];var W=_.hG4(h.getState(),E);g=bFF(g,M,Z);if(g===-1)break;g={activeSyncId:Z,activeItemIndex:g,activeSectionInfo:{sectionIdentifier:M}};W?h.dispatch(_.vg("markersEngagementPanelSyncEntity",E,g)):h.dispatch(_.xx("markersEngagementPanelSyncEntity",
E,Object.assign({},{key:E},g)));break}}};
var bFF=function(h,E,g){var Z=_.GF().resolve(_.c4),M,W;h=(M=xZF(Z.getState(),h))==null?void 0:(W=M.timedListData)==null?void 0:W.sections;if(!h)return-1;M=0;W=_.G(h);for(h=W.next();!h.done;h=W.next()){h=h.value;Z=h.timedSyncDataList||[];if(h.sectionId===E)return E=Z.findIndex(function(z){return z.syncItemId===g}),E===-1?E:M+E;
M+=Z.length}return-1};_.hwG=function(h){_.wO.call(this);var E=this;this.JSC$23004_watchApi=h;this.unresolvedCommands=[];this.JSC$23004_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(g){unL(E,g)});
this.addOnDisposeCallback(function(){E.JSC$23004_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Qoa(this)};
_.f(_.hwG,_.wO);var Qoa=function(h){var E;_.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$23004_watchApi.playerApi,2);E=g.yieldResult;if(h.isDisposed())return g.return();h.timedSyncObserver=new TXa(E);h.unresolvedCommands.length&&(h.unresolvedCommands.forEach(function(Z){return unL(h,Z)}),h.unresolvedCommands=[]);
_.jf(h,h.timedSyncObserver);_.SK(g)})},unL=function(h,E){if(h.timedSyncObserver){var g=_.e(E,ujx);
if(g&&g.timedSyncEntityKey&&g.panelSyncEntityKey){h=h.timedSyncObserver;E=g.timedSyncEntityKey;var Z=g.panelSyncEntityKey;g=!!g.isEnabled;g=g===void 0?!0:g;var M=_.GF().resolve(_.c4);M=xZF(M.getState(),E);g?h.timeToPanelSyncKeyMap[E]||(h.timeToPanelSyncKeyMap[E]=Z,AxL(h,M)):(delete h.timeToPanelSyncKeyMap[E],F1G(h,M))}}else h.unresolvedCommands.push(E)};var EXj=_.O(function(h){var E=h.data,g=h.maybeLogSmartSkipClientData,Z=null,M=null,W=_.J("web_enable_auto_focus_for_timely_action_button"),z=function(){Z=document.activeElement},c=function(){E().smartSkipMetadata&&(Z=document.activeElement,_.uOU(function(){return M}))},I=function(U){if(E().smartSkipMetadata&&(!U||U.key!=="Enter")){Z&&Z.isConnected&&(_.uOU(function(){return Z}),Z=null);
var L;(L=M)==null||L.blur()}};
h=_.J7(function(){g==null||g(!0,E());return!1});
var B=_.zT(_.n4(function(){return E().rendererContext},{onTap:function(U,L){L({disableClickTracking:!0})}}),_.c6({visibilityCallback:function(U){if(W)U?M&&E().smartSkipMetadata&&(c(),document.addEventListener("focusin",z)):(document.removeEventListener("focusin",z),I());
else if(U){U=_.K4(E().rendererContext);var L=Number(E().maxVisibleDurationMilliseconds),d,C=(d=_.e(E().rendererContext,_.te))==null?void 0:d.label;U&&L&&C&&(d={label:C,command:U,durationMs:L},_.GF().resolve(_.gm).enqueue(d))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.m1(function(){if(W){var U;if((M=(U=B.value)==null?void 0:U.querySelector("button"))&&E().smartSkipMetadata){var L;(L=B.value)==null||L.addEventListener("keydown",I)}}});
_.r9(function(){W&&(M&&E().smartSkipMetadata&&M.removeEventListener("keydown",I),document.removeEventListener("focusin",z),I())});
return _.R("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:B,"on:click":h},_.R(_.Sv,{data:function(){return E().content}},{buttonViewModel:_.$l}))},"kl");var gXL=_.O(function(h){var E=h.data,g=h.playerApi,Z=_.GF().resolve(_.$AU);h=_.G(_.qi(function(){E()}));
var M=h.next().value,W=h.next().value,z=function(){return f0a(E(),M())},c=function(B,U){var L,d,C=(L=_.e(U==null?void 0:U.rendererContext,_.xB))==null?void 0:(d=L.loggingDirectives)==null?void 0:d.trackingParams;
if((U=U==null?void 0:U.smartSkipMetadata)&&U.loggingData&&(d=U.loggingData,U=d.algorithmId,L=d.startMilliseconds,d=d.endMilliseconds,U&&L!==void 0&&d!==void 0)){var q,w;B={smartSkipData:Object.assign({},{versionName:U,startMediaTimeMs:L,endMediaTimeMs:d},B&&{userInteractionMediaTimeMs:(Math.floor(((q=_.zD())==null?void 0:(w=q.getPlayer())==null?void 0:w.getCurrentTime())||0)*1E3).toString()})};q=_.sH();var r;C&&(r=_.rp(C));q&&r&&_.Wn(q,r,B)}},I=function(B,U){var L=f0a(E(),B);
if(L){var d=_.e(L,qGL),C;if(C=U)C=g(),L=_.e(L,qGL),C=L!=null&&L.smartSkipMetadata?!(C==null?0:C.isSameMarkerTypeVisible((L==null?void 0:L.smartSkipMetadata.markerKey)||"")):!0;if(C){var q,w;(d==null?0:(q=d.smartSkipMetadata)==null?0:(w=q.loggingData)==null?0:w.isCounterfactual)||(c(!1,d),W(B))}else U||M()!==B||W(void 0)}};
_.lX(function(){var B=E().timelyActions;if(B){B=_.G(B);for(var U=B.next();!U.done;U=B.next()){U=_.e(U.value,qGL);var L=void 0;(L=U)!=null&&L.cueRangeId&&Z.timelyActionsMap.set(U.cueRangeId,I)}_.r9(function(){Z.timelyActionsMap.clear()})}},"PSaw4c");
return _.R("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.R(_.Sv,{data:z},{timelyActionViewModel:function(B){return _.R(EXj,{data:B.data,maybeLogSmartSkipClientData:function(){c(!0,_.e(z(),qGL))}})}}))},"ll");_.Myx=function(h){_.wO.call(this);this.JSC$23016_watchApi=h;h=_.G(_.Bm({},void 0,"UN7k5e"));this.timelyActionsOverlay=h.next().value;this.setTimelyActionsOverlay=h.next().value;ZlL(this)};
_.f(_.Myx,_.wO);var ZlL=function(h){var E,g,Z,M;_.a(function(W){if(W.nextAddress==1)return WXj(h),pxo(h),h.timelyActionsContainer=document.createElement("div"),W.yield(h.JSC$23016_watchApi.playerApi,2);E=W.yieldResult;(Z=(g=E).insertTimelyActionUi)==null||Z.call(g,h.timelyActionsContainer);M=_.rX(h.timelyActionsContainer,function(){return _.R(gXL,{data:h.timelyActionsOverlay,playerApi:E})},"ml");
h.addOnDisposeCallback(M);_.SK(W)})},pxo=function(h){var E=h.JSC$23016_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WXj(h)});
h.addOnDisposeCallback(function(){h.JSC$23016_watchApi.unsubscribeByKey(E)})},WXj=function(h){var E=h.JSC$23016_watchApi.getWatchNextResponse();
if(E){var g,Z;if(E=_.e((g=E.playerOverlays)==null?void 0:(Z=g.playerOverlayRenderer)==null?void 0:Z.timelyActionsOverlayViewModel,QKx)){var M;(M=h.setTimelyActionsOverlay)==null||M.call(h,E)}}};_.zwa=function(h){_.wO.call(this);this.JSC$23020_watchApi=h;GFK(this)};
_.f(_.zwa,_.wO);var GFK=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23020_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){_.eQ.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.e(M,_.FZ0)},popupType:"TOAST"}})};
E.addEventListener("onYtShowToast",g);h.addOnDisposeCallback(function(){E.removeEventListener("onYtShowToast",g)});
_.SK(Z)})};var aVa,oXj,UdK,clF,ilL,Bfr,Rwo,PNL,LXU,dd2;aVa=!1;_.IVG=function(h){_.wO.call(this);this.JSC$23023_watchApi=h;this.fullscreen=this.theater=!1;clF(this);ilL(this);oXj(this)};
_.f(_.IVG,_.wO);oXj=function(h){var E,g,Z;_.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$23023_watchApi.playerApi,2);E=M.yieldResult;if(h.isDisposed())return M.return();g=h.JSC$23023_watchApi.getElement("CINEMATICS");if(!g)return M.return();h.JSC$23023_cinematicController=new _.qr(g,E);_.jf(h,h.JSC$23023_cinematicController);_.BBM(h.JSC$23023_cinematicController);Rwo(h,_.Y3W());Z=h.JSC$23023_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(W){PNL(h,W)});
h.addOnDisposeCallback(function(){h.JSC$23023_watchApi.unsubscribeByKey(Z)});
Bfr(h);PNL(h,h.JSC$23023_cinematicController.isAllowed());UdK(h);LXU(h);_.SK(M)})};
UdK=function(h){h.fullscreen=_.YP(_.Gv().getState());h.theater=_.XN(_.Gv().getState());_.jCj(h,h.fullscreen,h.theater);var E=_.kT(_.Gv(),_.YP,function(Z){h.fullscreen=Z;_.jCj(h,h.fullscreen,h.theater)}),g=_.kT(_.Gv(),_.XN,function(Z){h.theater=Z;
_.jCj(h,h.fullscreen,h.theater)});
h.addOnDisposeCallback(E);h.addOnDisposeCallback(g)};
clF=function(h){var E=h.JSC$23023_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Bfr(h)});
h.addOnDisposeCallback(function(){h.JSC$23023_watchApi.unsubscribeByKey(E)})};
ilL=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23023_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){Rwo(h,M)};
E.addEventListener("cinematicSettingsToggleChange",g);h.addOnDisposeCallback(function(){E.removeEventListener("cinematicSettingsToggleChange",g)});
_.SK(Z)})};
Bfr=function(h){var E=h.JSC$23023_watchApi.getWatchNextResponse(),g;E=_.e(E==null?void 0:(g=E.pageVisualEffects)==null?void 0:g[0],_.M5);var Z;(Z=h.JSC$23023_cinematicController)==null||_.Lfx(Z,E)};
Rwo=function(h,E){var g;(g=h.JSC$23023_cinematicController)==null||_.UAj(g,E);dd2(h)};
PNL=function(h,E){var g;_.a(function(Z){if(Z.nextAddress==1)return _.J("kevlar_watch_cinematics_invisible")&&(E=!1),Z.yield(h.JSC$23023_watchApi.playerApi,2);g=Z.yieldResult;g.updateCinematicSettings(E);dd2(h);_.SK(Z)})};
LXU=function(h){var E=_.xe();if(_.J("kevlar_measure_ambient_mode_idle")&&!E.getFlag(192)&&!aVa){aVa=!0;var g=_.xW(_.KP,function(){_.GF().resolve(_.yhC).start(1E4)},5E3);
h.addOnDisposeCallback(function(){_.KP.cancelJob(g);_.GF().resolve(_.yhC).stop()})}};
_.jCj=function(h,E,g){h.fullscreen=E;h.theater=g;var Z;(Z=h.JSC$23023_cinematicController)==null||Z.setFullscreen(h.fullscreen,h.theater);if(_.J("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(h.theater||h.fullscreen){var M;(M=h.JSC$23023_cinematicController)==null||_.jmj(M)}else if((h=h.JSC$23023_cinematicController)!=null){var W;(W=h.currentCinematicEffect)==null||W.pause()}};
dd2=function(h){if(_.J("web_cinematic_theater_mode")||_.J("web_cinematic_fullscreen")){var E;h.JSC$23023_watchApi.getRoot().toggleCinematicsActive(!((E=h.JSC$23023_cinematicController)==null||!E.isEnabled()))}};_.qqi=function(h){_.wO.call(this);var E=this;this.JSC$23026_watchApi=h;this.commentsReady=!1;this.setCommentsJobId=0;h=_.kT(_.Gv(),_.XS,function(){CNx(E)});
this.addOnDisposeCallback(h);var g=this.JSC$23026_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JlK(E)}),Z=this.JSC$23026_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){JlK(E)});
this.addOnDisposeCallback(function(){E.JSC$23026_watchApi.unsubscribeByKey(g);E.JSC$23026_watchApi.unsubscribeByKey(Z)});
var M=function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ewM(E,"false")};
this.JSC$23026_watchApi.getRoot().addEventListener("yt-page-data-will-update",M);this.addOnDisposeCallback(function(){E.JSC$23026_watchApi.getRoot().removeEventListener("yt-page-data-will-update",M)});
JlK(this)};
_.f(_.qqi,_.wO);var JlK=function(h){h.commentsReady=!1;_.KP.cancelJob(h.setCommentsJobId);h.setCommentsJobId=_.xW(_.KP,function(){CNx(h)},1E3)},CNx=function(h){if(!h.commentsReady){_.s7("cmi");
_.KP.cancelJob(h.setCommentsJobId);var E,g,Z,M,W=(E=h.JSC$23026_watchApi.getWatchNextResponse())==null?void 0:(g=E.contents)==null?void 0:(Z=g.twoColumnWatchNextResults)==null?void 0:(M=Z.results)==null?void 0:M.results.contents;E=void 0;if(W&&W.length)for(W=_.G(W),g=W.next();!g.done;g=W.next())if(g=g.value,M=Z=void 0,((Z=g)==null?void 0:(M=Z.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"){_.J("web_watch_provide_undefined_comments")?E=g.itemSectionRenderer:h.JSC$23026_watchApi.provideRenderingData("COMMENTS",
g.itemSectionRenderer);ewM(h,"true");break}_.J("web_watch_provide_undefined_comments")&&h.JSC$23026_watchApi.provideRenderingData("COMMENTS",E);h.commentsReady=!0;h.JSC$23026_watchApi.dispatchEvent("yt-watch-comments-ready")}},ewM=function(h,E){var g;
(g=h.JSC$23026_watchApi.getElement("COMMENTS"))==null||g.setAttribute("canScheduleJobs",E)};_.xdj=function(h){_.wO.call(this);var E=this;this.JSC$23029_watchApi=h;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.J("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.J("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.J("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.cx("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)fVa(this);
else{var g=this.JSC$23029_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){NfL(E);HN(E)}),Z=this.JSC$23029_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){$4(E);
HN(E)});
this.JSC$23029_watchApi.getRoot().is==="ytd-watch-grid"&&_.J("swatcheroo_pbs_load_grid")&&(tyr(this),Sqa(this));this.addOnDisposeCallback(function(){E.JSC$23029_watchApi.unsubscribeByKey(g);E.JSC$23029_watchApi.unsubscribeByKey(Z);_.KP.cancelJob(E.provideRichGridJobId)});
NfL(this);$4(this)}};
_.f(_.xdj,_.wO);var fVa=function(h){var E=h.JSC$23029_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){h.providePlayerJobId=_.Pw(_.KP,function(){NfL(h);HN(h)},h.provideAllDataDelayMs)}),g=h.JSC$23029_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){h.provideWatchNextJobId=_.Pw(_.KP,function(){$4(h);
HN(h)},h.provideAllDataDelayMs)}),Z=h.JSC$23029_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){h.provideWatchNextJobId=_.Pw(_.KP,function(){$4(h);
HN(h)},h.provideAllDataDelayMs)});
h.JSC$23029_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.xW(_.KP,function(){NfL(h);$4(h);HN(h)},100)});
h.JSC$23029_watchApi.addPageDisposeJob(function(){_.KP.cancelJob(h.provideWatchNextJobId);_.KP.cancelJob(h.providePlayerJobId)});
h.addOnDisposeCallback(function(){h.JSC$23029_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");h.JSC$23029_watchApi.unsubscribeByKey(E);h.JSC$23029_watchApi.unsubscribeByKey(g);h.JSC$23029_watchApi.unsubscribeByKey(Z);_.KP.cancelJob(h.providePlayerJobId);_.KP.cancelJob(h.provideWatchNextJobId)});
NfL(h);$4(h)},NfL=function(h){var E=h.JSC$23029_watchApi.getPlayerResponse(),g,Z,M=(Z=E==null?void 0:(g=E.playabilityStatus)==null?void 0:g.messageRenderers)!=null?Z:[],W,z;
E=(z=E==null?void 0:(W=E.playabilityStatus)==null?void 0:W.messages)!=null?z:[];W=_.G(E);for(z=W.next();!z.done;z=W.next())M.push({alertRenderer:{text:_.MR(z.value),type:"WARNING"}});h.JSC$23029_watchApi.provideRenderingData("ALERTS",M)},$4=function(h){var E=[],g,Z,M,W=h.JSC$23029_watchApi.getWatchNextResponse(),z,c,I,B,U=W==null?void 0:(z=W.contents)==null?void 0:(c=z.twoColumnWatchNextResults)==null?void 0:(I=c.results)==null?void 0:(B=I.results)==null?void 0:B.contents;
if(U)for(z=_.G(U),c=z.next();!c.done;c=z.next())if(c=c.value,c.videoPrimaryInfoRenderer)var L=c;else if(c.videoSecondaryInfoRenderer){var d=c;B=I=void 0;c=Object.assign({},(I=c.videoSecondaryInfoRenderer)==null?void 0:(B=I.metadataRowContainer)==null?void 0:B.metadataRowContainerRenderer);if(c.rows&&c.collapsedItemCount!==void 0){c.rows=c.rows.slice(0,c.collapsedItemCount).filter(function(Qk){return!!Qk.richMetadataRowRenderer});
c.collapsedItemCount=c.rows.length;var C={metadataRowContainerRenderer:c}}}else if(c.merchandiseShelfRenderer)var q=c;else if(c.ticketShelfRenderer)var w=c;else if(c.expandableMetadataRenderer)var r=c;else if(c.itemSectionRenderer)if(I=c.itemSectionRenderer.contents,B=void 0,h.directlyProvideComments&&((B=c.itemSectionRenderer)==null?void 0:B.sectionIdentifier)==="comment-item-section")_.s7("cmi"),h.JSC$23029_watchApi.provideRenderingData("COMMENTS",c.itemSectionRenderer);else if(I)for(c=_.G(I),I=
c.next();!I.done;I=c.next())if(I=I.value,I.commentsEntryPointHeaderRenderer)var v=I;else if(I.clarificationRenderer||I.infoPanelContainerRenderer||I.infoPanelContentRenderer||I.emergencyOneboxRenderer){E.push(I);var H=H||!!d}else I.limitedStateMessageRenderer?Z=I:I.videoMetadataCarouselViewModel&&(M=I);if(_.J("web_watch_merch_in_sd_when_ticket_shelf_present")&&q&&w){var u=q;q=void 0}if(h.provideWatchNextSecondaryResults){var k,y,A;h.JSC$23029_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
W==null?void 0:(k=W.contents)==null?void 0:(y=k.twoColumnWatchNextResults)==null?void 0:(A=y.secondaryResults)==null?void 0:A.secondaryResults)}if(h.JSC$23029_watchApi.getRoot().is==="ytd-watch-grid"){var E4,iO;h.JSC$23029_watchApi.provideRenderingData("LIVE_CHAT",W==null?void 0:(E4=W.contents)==null?void 0:(iO=E4.twoColumnWatchNextResults)==null?void 0:iO.conversationBar)}var RW,NN,Cd,Ba;(k=W==null?void 0:(RW=W.contents)==null?void 0:(NN=RW.twoColumnWatchNextResults)==null?void 0:(Cd=NN.secondaryResults)==
null?void 0:(Ba=Cd.secondaryResults)==null?void 0:Ba.offerModule)&&(k.donationShelfRenderer||k.donationUnavailableRenderer)&&h.JSC$23029_watchApi.getRoot().is!=="ytd-watch-grid"&&(g=k);RW=h.JSC$23029_watchApi.getPlayerResponse();if(!RW||!_.AFa(RW.playabilityStatus,W==null?void 0:W.playerOverlays)){var $$;if(W==null?0:($$=W.contents)==null?0:$$.singleColumnWatchNextResults){var Ha,zf;var eF=W==null?void 0:(Ha=W.contents.singleColumnWatchNextResults.results)==null?void 0:(zf=Ha.results)==null?void 0:
zf.contents}else{var Rm,bO,jF,PM;$$=!!(U==null?0:(Rm=U[0])==null?0:(bO=Rm.itemSectionRenderer)==null?0:(jF=bO.contents)==null?0:(PM=jF[0])==null?0:PM.backgroundPromoRenderer);var ll,xU;Rm=!!(W==null?0:(ll=W.contents)==null?0:(xU=ll.twoColumnWatchNextResults)==null?0:xU.secondaryResults);$$&&!Rm&&(eF=U)}}U=E[0];ll=E[1];H&&E.length===1&&(ll=U,U=void 0);h.JSC$23029_watchApi.provideRenderingData("PRIMARY_INFO",L);h.JSC$23029_watchApi.provideRenderingData("SECONDARY_INFO",d);h.JSC$23029_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
v);h.JSC$23029_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",M);h.JSC$23029_watchApi.provideRenderingData("CLARIFICATION",U);h.JSC$23029_watchApi.provideRenderingData("RICH_METADATA",C);h.JSC$23029_watchApi.provideRenderingData("MERCH_SHELF",q);_.J("web_watch_merch_in_sd_when_ticket_shelf_present")&&h.JSC$23029_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",u);h.JSC$23029_watchApi.provideRenderingData("TICKET_SHELF",w);h.JSC$23029_watchApi.provideRenderingData("LIMITED_STATE",Z);h.JSC$23029_watchApi.getRoot().is!==
"ytd-watch-grid"&&h.JSC$23029_watchApi.provideRenderingData("DONATION_SHELF",g);h.JSC$23029_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",eF);h.JSC$23029_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",ll);h.JSC$23029_watchApi.provideRenderingData("EXPANDABLE_METADATA",r);if(h.swatcherooProvideAllDataOnScheduledJob){var pU,pd,gB,CD,E0,Im;L=W==null?void 0:(pU=W.contents)==null?void 0:(pd=pU.twoColumnWatchNextResults)==null?void 0:(gB=pd.secondaryResults)==null?void 0:(CD=gB.secondaryResults)==
null?void 0:(E0=CD.results)==null?void 0:(Im=E0[0])==null?void 0:Im.richGridRenderer;h.JSC$23029_watchApi.provideRenderingData("RICH_GRID_RENDERER",L)}};
_.xdj.prototype.hasCompanionAds=function(h){var E,g;return(g=h==null?void 0:(E=h.adPlacements)==null?void 0:E.some(function(Z){var M,W,z,c;return(Z==null?void 0:(M=Z.adPlacementRenderer)==null?void 0:(W=M.renderer)==null?void 0:W.actionCompanionAdRenderer)||(Z==null?void 0:(z=Z.adPlacementRenderer)==null?void 0:(c=z.renderer)==null?void 0:c.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?g:!1};
var HN=function(h){if(!_.J("swaterdoo_ps_wn_handle_ks")){h.swatcherooProvideAllDataOnScheduledJob||Sqa(h,3E3);var E=h.JSC$23029_watchApi.getPlayerResponse(),g,Z,M,W,z,c=(g=h.JSC$23029_watchApi.getWatchNextResponse())==null?void 0:(Z=g.contents)==null?void 0:(M=Z.twoColumnWatchNextResults)==null?void 0:(W=M.secondaryResults)==null?void 0:(z=W.secondaryResults)==null?void 0:z.offerModule;E=h.hasCompanionAds(E);var I,B;g=(c==null?void 0:(I=c.tvfilmOfferModuleRenderer)==null?void 0:I.clientShouldSuppressIfCompanionAdDisplayed)||
(c==null?void 0:(B=c.unlimitedOfferModuleRenderer)==null?void 0:B.suppressIfCompanionAds);I=E&&g;h.JSC$23029_watchApi.getRoot().is==="ytd-watch-grid"&&h.JSC$23029_watchApi.provideRenderingData("OFFER_MODULE",I?void 0:c)}},Sqa=function(h,E){_.J("swatcheroo_pbs_load_grid")&&(h.provideRichGridJobId&&_.KP.cancelJob(h.provideRichGridJobId),h.provideRichGridJobId=_.Pw(_.KP,function(){h.provideRichGridJobId=0;
var g,Z,M,W,z,c,I,B=(g=h.JSC$23029_watchApi.getWatchNextResponse())==null?void 0:(Z=g.contents)==null?void 0:(M=Z.twoColumnWatchNextResults)==null?void 0:(W=M.secondaryResults)==null?void 0:(z=W.secondaryResults)==null?void 0:(c=z.results)==null?void 0:(I=c[0])==null?void 0:I.richGridRenderer;B&&h.JSC$23029_watchApi.provideRenderingData("RICH_GRID_RENDERER",B)},E))},tyr=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23029_watchApi.playerApi,2);E=Z.yieldResult;g=function(){h.onPlaybackStart()};
E.addEventListener("onPlaybackStartExternal",g);h.addOnDisposeCallback(function(){E.removeEventListener("onPlaybackStartExternal",g)});
_.SK(Z)})};
_.xdj.prototype.onPlaybackStart=function(){Sqa(this)};_.Dd2=function(h){_.wO.call(this);var E=this;this.JSC$23042_watchApi=h;h.playerApi.then(function(g){E.player=g});
this.gestures=new _.msi(this.JSC$23042_watchApi.getRoot(),h.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.wcK(_.Gv().getState())&&_.XS(_.Gv().getState())<=0)if(_.YP(_.Gv().getState())){var g;(g=E.player)==null||g.toggleFullscreen()}else _.BX(E.JSC$23042_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
wxi(this)};
_.f(_.Dd2,_.wO);var wxi=function(h){var E=_.kT(_.Gv(),_.YP,function(g){h.onFullscreenChanged(g)});
h.addOnDisposeCallback(E);E=_.kT(_.Gv(),_.XS,function(g){h.gestures&&(g>0?h.gestures.detach():h.gestures.attach())});
h.addOnDisposeCallback(E)};
_.Dd2.prototype.onFullscreenChanged=function(h){this.gestures&&this.gestures.update(h)};_.rlr=function(h){_.wO.call(this);var E=this;this.JSC$23045_watchApi=h;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(h.subscribeToActiveChanged(function(g){E.onActiveChanged(g)}));
lVG(this)};
_.f(_.rlr,_.wO);var mdG=function(h){if(_.J("swatcheroo_page_dispose_all_watch_data"))h.pageDisposalDataTypes=Object.values(bwK).filter(function(g){return g!=="PLAYLIST"});
else if(_.J("swatcheroo_page_dispose_rich_grid")){var E;(E=h.pageDisposalDataTypes)==null||E.push("RICH_GRID_RENDERER")}},lVG=function(h){_.J("swatcheroo_enable_ghost_cards")&&(mdG(h),h.JSC$23045_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.KP.cancelJob(h.clearDataJobId);
h.clearDataJobId=0}),h.runPageDisposeJob=function(){var E=_.GF().resolve(_.p4).getDestinationPageType()==="watch";
h.clearDataJobId=_.Pw(_.KP,h.runClearDataJob,E?0:_.cx("web_watch_delay_page_dispose_ms",1E4))},h.runClearDataJob=function(){vXF(h)},h.runOnYtNavigateAwayFinish=function(){h.clearDataJobId&&(_.KP.cancelJob(h.clearDataJobId),h.clearDataJobId=0,vXF(h))},document.addEventListener("yt-navigate-finish",h.runOnYtNavigateAwayFinish),h.JSC$23045_watchApi.addPageDisposeJob(h.runPageDisposeJob),h.addOnDisposeCallback(function(){h.JSC$23045_watchApi.removePageDisposeJob(h.runPageDisposeJob);
h.JSC$23045_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",h.runOnYtNavigateAwayFinish)}))},vXF=function(h){h.pageDisposalDataTypes.forEach(function(E){h.JSC$23045_watchApi.provideRenderingData(E,void 0)});
h.clearDataJobId=0};
_.rlr.prototype.onActiveChanged=function(h){h&&((h=document.querySelector("#watch-page-skeleton"))&&_.f8(h),HlK(this),document.body.removeAttribute("no-y-overflow"),_.Xn("IS_SHELL_LOAD")&&_.B3J())};
var HlK=function(h){_.a(function(E){if(E.nextAddress==1)return E.yield(h.JSC$23045_watchApi.playerApi,2);_.k7();_.SK(E)})};var $dr;$dr=_.J("kevlar_watch_while_counterfactual")?0:.25;_.XxM=function(h){_.wO.call(this);this.JSC$23048_watchApi=h;this.JSC$23048_watchWhileEnabled=_.J("kevlar_watch_while_v2");this.pipEnabled=_.J("web_enable_pip_on_miniplayer");KXi(this);Ola(this);nXK(this)};
_.f(_.XxM,_.wO);var KXi=function(h){h.JSC$23048_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){YqF(h)});
h.addOnDisposeCallback(function(){h.JSC$23048_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Ola=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23048_watchApi.playerApi,2);E=Z.yieldResult;g=function(){YqF(h)};
E.addEventListener("onCollapseMiniplayer",g);h.addOnDisposeCallback(function(){E.removeEventListener("onCollapseMiniplayer",g)});
_.SK(Z)})},nXK=function(h){var E=h.JSC$23048_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&E&&h.JSC$23048_watchWhileEnabled&&(h.playerIntersectionObserver=new IntersectionObserver(function(g){h.handleIntersect(g)},{threshold:[$dr]}),h.playerIntersectionObserver.observe(E),h.addOnDisposeCallback(function(){var g;
(g=h.playerIntersectionObserver)==null||g.disconnect()}))},YqF=function(h){var E,g,Z;
_.a(function(M){if(M.nextAddress==1){E=_.GF().resolve(_.p4);g=E.data;Z=_.my(g.response,!1,g.playerResponse);_.sU().miniplayerButtonActivation=!0;if(h.pipEnabled)return _.sU().watchPipActivation=!0,M.jumpTo(2);_.GF().resolve(_.Yu).collapse();return M.yield(_.sU().navigationFinishPromise,2)}if(M.nextAddress!=4)return _.sU().currentEndpoint=Z.watchEndpoint||null,M.yield(_.GF().resolve(_.Yu).activate(h.JSC$23048_watchApi.getElement("PLAYER"),Z,g),4);_.sU().userActivation=!0;_.SK(M)})};
_.XxM.prototype.handleIntersect=function(h){sCj(this,h[h.length-1])};
var sCj=function(h,E){h.watchWhileJobId&&_.KP.cancelJob(h.watchWhileJobId);h.watchWhileJobId=_.KP.addLowPriorityJob(function(){var g,Z;return _.a(function(M){if(M.nextAddress==1)return h.watchWhileJobId=void 0,g=_.GF().resolve(_.Yu),E.intersectionRatio>$dr?g.isMiniplayerActive()?M.yield(g.deactivate(),0):M.jumpTo(0):(Z=!g.isMiniplayerActive())?M.yield(VyL(h),5):M.jumpTo(4);M.nextAddress!=4&&(Z=M.yieldResult);if(!Z)return M.jumpTo(0);_.sU().watchWhileActivation=!0;return M.yield(kFG(h),0)})},100)},
VyL=function(h){return _.a(function(E){return E.nextAddress==1?_.J("kevlar_watch_while_paused")?E.return(!0):E.yield(h.isPlayerPlaying(),2):E.return(E.yieldResult)})};
_.XxM.prototype.isPlayerPlaying=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$23048_watchApi.playerApi,2);E=g.yieldResult;return g.return(E.getPlayerStateObject().isPlaying)})};
var kFG=function(h){var E,g;return _.a(function(Z){E=_.GF().resolve(_.p4).data;g=_.my(E.response,!1,E.playerResponse);_.sU().currentEndpoint=g.watchEndpoint||null;return Z.yield(_.GF().resolve(_.Yu).activate(h.JSC$23048_watchApi.getElement("PLAYER"),g,E),0)})};_.Ali=function(h){_.wO.call(this);this.JSC$23052_watchApi=h;ylL(this);FXr(this)};
_.f(_.Ali,_.wO);var FXr=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23052_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){var W;M.sessionData&&M.sessionData.itct&&(W=M.sessionData.itct);var z=M.watchEndpoint;if(z&&M.sessionData&&M.sessionData.autonav)z=_.Bn$(z,W);else{var c;z=_.cn(M.videoId,(c=M.listId)!=null?c:void 0,W)}W={endpoint:z};M.sessionData&&(W.tempData=M.sessionData);h.JSC$23052_watchApi.dispatchEvent("yt-navigate",W)};
E.addEventListener("onPlayVideo",g);h.addOnDisposeCallback(function(){E.removeEventListener("onPlayVideo",g)});
_.SK(Z)})},ylL=function(h){var E=function(g){h.onYtNavigate(g)};
h.JSC$23052_watchApi.getRoot().addEventListener("yt-navigate",E);h.addOnDisposeCallback(function(){h.JSC$23052_watchApi.getRoot().removeEventListener("yt-navigate",E)})};
_.Ali.prototype.onYtNavigate=function(h){var E=this,g,Z,M,W,z,c,I,B,U;return _.a(function(L){if(L.nextAddress==1){if(!((g=h.detail)==null?0:(Z=g.endpoint)==null?0:Z.watchEndpoint))return L.return();M=h.detail.endpoint.watchEndpoint;W=E.JSC$23052_watchApi.getWatchNextResponse();c=_.e((z=W)==null?void 0:z.currentVideoEndpoint,_.MH);if(!c)return L.return();if(M.videoId!==c.videoId||M.playlistId&&M.playlistId!==c.playlistId||typeof M.startTimeSeconds!=="number")return L.jumpTo(0);h.stopPropagation();
(I=_.J("kevlar_watch_while_v2")&&!_.J("kevlar_watch_while_counterfactual"))&&_.GF().resolve(_.Yu).isMiniplayerActive()||E.JSC$23052_watchApi.scrollWatchTo(0,!0);return L.yield(E.JSC$23052_watchApi.playerApi,3)}B=L.yieldResult;U=M.startTimeSeconds;B.seekTo(U,void 0,void 0,void 0,84);B.wakeUpControls();U<B.getDuration()&&B.playVideo();_.SK(L)})};_.bli=function(h){_.wO.call(this);var E=this;this.JSC$23055_watchApi=h;var g=this.JSC$23055_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TfK(E)});
this.addOnDisposeCallback(function(){E.JSC$23055_watchApi.unsubscribeByKey(g)});
TfK(this);_.J("enable_ai_companion")&&(h=this.JSC$23055_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.T90(_.GF().resolve(_.g_),h,"WATCH")};
_.f(_.bli,_.wO);var TfK=function(h){var E=h.JSC$23055_watchApi.getWatchNextResponse();if(E){var g,Z=[].concat(_.$E((g=E==null?void 0:E.engagementPanels)!=null?g:[]));Z.unshift.apply(Z,_.$E(uyo(E)));h.JSC$23055_watchApi.provideRenderingData("ENGAGEMENT_PANELS",Z)}},QCo=function(h){var E,g,Z,M=(E=h.engagementPanels)==null?void 0:(g=E.find(function(C){var q;
return((q=C.engagementPanelSectionListRenderer)==null?void 0:q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(Z=g.engagementPanelSectionListRenderer.content)==null?void 0:Z.structuredDescriptionContentRenderer,W;
if(_.e(M==null?void 0:(W=M.items)==null?void 0:W.find(function(C){return!!_.e(C,BxL)}),BxL))return!0;
var z,c,I,B;if(h=(((z=h.contents)==null?void 0:(c=z.twoColumnWatchNextResults)==null?void 0:(I=c.results)==null?void 0:(B=I.results)==null?void 0:B.contents)||[]).find(function(C){return C.videoPrimaryInfoRenderer})){var U,L,d;
return(((U=h.videoPrimaryInfoRenderer)==null?void 0:(L=U.videoActions)==null?void 0:(d=L.menuRenderer)==null?void 0:d.flexibleItems)||[]).some(function(C){C=_.e(C,_.NcH);if(!C)return!1;var q,w;C=(q=C.topLevelButton)==null?void 0:(w=q.buttonViewModel)==null?void 0:w.onTap;if(!C)return!1;q=_.kB(C);if(!q)return!1;var r;return((r=_.e(q,_.lz))==null?void 0:r.panelIdentifier)==="PAyouchat"})}return!1},uyo=function(h){var E=[];
if(!_.J("web_watch_inject_placeholder_fantasy_panel_killswitch")){var g,Z,M,W=(g=h.engagementPanels)==null?void 0:(Z=g.find(function(c){var I;return((I=c.engagementPanelSectionListRenderer)==null?void 0:I.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(M=Z.engagementPanelSectionListRenderer.content)==null?void 0:M.structuredDescriptionContentRenderer,z;
_.e(W==null?void 0:(z=W.items)==null?void 0:z.find(function(c){return!!_.e(c,yL0)}),yL0)&&(g=_.vvM("PAsports_fantasy"),g.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(g))}QCo(h)&&(h=_.vvM("PAyouchat"),h.engagementPanelSectionListRenderer.targetId="PAyouchat",h.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(h));
return E};_.ELj=function(h){_.wO.call(this);this.JSC$23058_watchApi=h;hT2(this)};
_.f(_.ELj,_.wO);var hT2=function(h){h.JSC$23058_watchApi.registerActionHandler("yt-loop-command",function(E){gLi(h,E)});
h.JSC$23058_watchApi.registerActionHandler("yt-repeat-chapter-command",function(E){ZPF(h,E)});
h.addOnDisposeCallback(function(){h.JSC$23058_watchApi.unregisterActionHandler("yt-loop-command");h.JSC$23058_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},gLi=function(h,E){var g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23058_watchApi.playerApi,2);g=Z.yieldResult;_.e(E,ALK).loop?(g.setLoopRange({startTimeMs:Number(_.e(E,ALK).startTimeMs),endTimeMs:Number(_.e(E,ALK).endTimeMs),postId:_.e(E,ALK).postId,type:"clips"}),g.playVideo()):g.setLoopRange(null);_.SK(Z)})},ZPF=function(h,E){var g,Z;
_.a(function(M){if(M.nextAddress==1)return M.yield(h.JSC$23058_watchApi.playerApi,2);g=M.yieldResult;Z=_.e(E,hLi).repeat;Z==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(g.setLoopRange({startTimeMs:Number(_.e(E,hLi).startTimeMs),endTimeMs:Number(_.e(E,hLi).endTimeMs),type:"repeatChapter"}),g.playVideo()):Z==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&g.setLoopRange(null);_.SK(M)})};_.Wgr=function(h){_.wO.call(this);this.JSC$23063_watchApi=h;MsK(this)};
_.f(_.Wgr,_.wO);var MsK=function(h){h.JSC$23063_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(E){puF(h,E)});
h.addOnDisposeCallback(function(){h.JSC$23063_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},puF=function(h,E){var g,Z,M,W,z,c,I,B,U,L,d;
_.a(function(C){if(C.nextAddress==1)return C.yield(h.JSC$23063_watchApi.playerApi,2);g=C.yieldResult;if(W=(M=(Z=_.e(E,EEi))==null?void 0:Z.highlightedMenuItemKey)!=null?M:"")(c=(z=g).highlightSettingsMenuItem)==null||c.call(z,W);if(U=(B=(I=_.e(E,EEi))==null?void 0:I.openMenuItemKey)!=null?B:"")(d=(L=g).openSettingsMenuItem)==null||d.call(L,U);_.SK(C)})};var GnG=_.jD("/youtube/app/watch/player_state","playerStateEntity");_.apx=function(h){_.wO.call(this);this.JSC$23066_watchApi=h;zTF(this)};
_.f(_.apx,_.wO);var cti=function(h){switch(h){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"}},zTF=function(h){var E,g;
_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23066_watchApi.playerApi,2);E=Z.yieldResult;g=function(M){h.onPlayerStateChange(M)};
E.addEventListener("onStateChange",g);h.addOnDisposeCallback(function(){E.removeEventListener("onStateChange",g)});
_.SK(Z)})};
_.apx.prototype.onPlayerStateChange=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(E.JSC$23066_watchApi.playerApi,2);g=M.yieldResult;Z=g.getVideoData().video_id;_.pL().dispatch(_.xx("playerStateEntity",GnG,{key:GnG,playerState:cti(h),videoId:Z}));_.SK(M)})};_.oLK=function(h){_.wO.call(this);var E=this;this.JSC$23070_watchApi=h;this.enableExternalPlaylistPanelInPlayer=_.J("delhi_web_player_use_external_playlist_panel");_.GF().resolve(_.oS).setPlayer(this.JSC$23070_watchApi.getElement("PLAYER"));h=this.JSC$23070_watchApi.subscribeToActiveChanged(function(g){E.onActiveChanged(g)});
this.addOnDisposeCallback(h);iP2(this)};
_.f(_.oLK,_.wO);var iP2=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return h.enableExternalPlaylistPanelInPlayer?Z.yield(h.JSC$23070_watchApi.playerApi,2):Z.return();E=Z.yieldResult;g=function(){if(h.playlistPanelElement)h.playlistPanelElement.onToggleExpanded()};
E.addEventListener("onToggleExternalPlaylistPanel",g);h.addOnDisposeCallback(function(){E.removeEventListener("onToggleExternalPlaylistPanel",g)});
_.SK(Z)})};
_.oLK.prototype.onActiveChanged=function(h){var E=this,g=_.GF().resolve(_.oS),Z=function(){IpK(E)};
h?(this.playlistPanelElement=this.JSC$23070_watchApi.getElement("PLAYLIST_PANEL"))?(g.setPlaylistComponent(this.playlistPanelElement),g.addEventListener("yt-playlist-data-updated",Z),this.addOnDisposeCallback(function(){g.removeEventListener("yt-playlist-data-updated",Z)}),IpK(this)):_.Fn(Error("So")):(g.removeEventListener("yt-playlist-data-updated",Z),g.cancelVideoSkip())};
var IpK=function(h){var E=_.GF().resolve(_.oS);h.JSC$23070_watchApi.provideRenderingData("PLAYLIST",E.getPlaylistData())};_.KK=function(h){_.wO.call(this);var E=this;this.JSC$23073_watchApi=h;this.onPageScroll=function(){E.scrollThrottle.fire();E.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.TD(this.onThrottledScroll,200,this);_.jf(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.TD(this.onMastheadThrottledScroll,50,this);_.jf(this,this.mastheadScrollThrottle);this.animation=new _.UA(function(g){E.JSC$23073_watchApi.getRoot().setScrollTop(g)});
h=_.kT(_.Gv(),_.YP,function(){E.onFullscreenChanged()});
this.addOnDisposeCallback(h);RTj(this);PKr(this);this.onThrottledScroll()};
_.f(_.KK,_.wO);
_.KK.prototype.onFullscreenChanged=function(){var h=this,E=this.JSC$23073_watchApi.getRoot();!this.pageScrollElement&&E.pageScrollElement?(this.pageScrollElement=E.pageScrollElement,E.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){h.pageScrollElement&&h.pageScrollElement.removeEventListener("scroll",h.onPageScroll)})):this.pageScrollElement&&!E.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var RTj=function(h){window.addEventListener("scroll",h.onPageScroll);h.addOnDisposeCallback(function(){window.removeEventListener("scroll",h.onPageScroll)})},PKr=function(h){h.JSC$23073_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(E){a:{var g;
if(g=h.JSC$23073_watchApi.getRoot().contains(E)&&!h.animation.isAnimating()){g=E.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var Z,M,W=(E==null?void 0:(Z=E.parentElement)==null?void 0:(M=Z.parentElement)==null?void 0:M.id)==="fixed-secondary";g=!(g&&W)}if(g){if(_.J("kevlar_watch_scroll_manager_absolute_offset_killswitch"))Z=E.offsetTop;else for(Z=0,M=E;M!==null;)Z+=M.offsetTop,Z-=M.scrollTop,M=M.offsetParent;M=Z;Z=M-24;E=M+E.offsetHeight+24;M=h.JSC$23073_watchApi.getRoot().getPageScrollingElement();
g=h.JSC$23073_watchApi.getRoot().getScrollTop();W=g+M.clientHeight-56;if(Z<g+56)E=Z-56;else if(E>W)E-=M.clientHeight;else break a;h.scrollWatchTo(Math.max(0,E),!0)}}});
h.addOnDisposeCallback(function(){h.JSC$23073_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.KK.prototype.onThrottledScroll=function(){var h=_.Gv(),E=h.dispatch,g=this.JSC$23073_watchApi.getRoot().getScrollTop();E.call(h,_.RY({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:g}}))};
_.KK.prototype.onMastheadThrottledScroll=function(){this.JSC$23073_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23073_watchApi.getRoot().getScrollTop())};
_.KK.prototype.scrollWatchTo=function(h,E){(E===void 0?0:E)?this.animation.start(this.JSC$23073_watchApi.getRoot().getScrollTop(),Math.max(0,h),500):this.JSC$23073_watchApi.getRoot().setScrollTop(h)};_.LgG=function(h){_.wO.call(this);var E=this;this.JSC$23076_watchApi=h;var g=this.JSC$23076_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Be2(E)}),Z=this.JSC$23076_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){U2o(E)});
this.addOnDisposeCallback(function(){E.JSC$23076_watchApi.unsubscribeByKey(g);E.JSC$23076_watchApi.unsubscribeByKey(Z)});
Be2(this);U2o(this)};
_.f(_.LgG,_.wO);
var Be2=function(h){var E,g,Z,M=(Z=(E=h.JSC$23076_watchApi.getPlayerResponse())==null?void 0:(g=E.videoDetails)==null?void 0:g.title)!=null?Z:"";h.JSC$23076_watchApi.dispatchEvent("yt-update-title",M)},U2o=function(h){var E,g,Z,M,W,z,c,I=(c=((z=(E=h.JSC$23076_watchApi.getWatchNextResponse())==null?void 0:(g=E.contents)==null?void 0:(Z=g.twoColumnWatchNextResults)==null?void 0:(M=Z.results)==null?void 0:(W=M.results)==null?void 0:W.contents)!=null?z:[]).find(function(B){return!!B.videoPrimaryInfoRenderer}))==null?
void 0:c.videoPrimaryInfoRenderer;
(E=_.Wp(I==null?void 0:I.title))&&h.JSC$23076_watchApi.dispatchEvent("yt-update-title",E)};_.d2j=function(h){_.wO.call(this);this.JSC$23079_watchApi=h;jIF(this)};
_.f(_.d2j,_.wO);var jIF=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$23079_watchApi.playerApi,2);E=Z.yieldResult;g=function(){h.onYpcContentRequest()};
E.addEventListener("onYpcContentRequest",g);h.addOnDisposeCallback(function(){E.removeEventListener("onYpcContentRequest",g)});
_.SK(Z)})};
_.d2j.prototype.onYpcContentRequest=function(){var h,E,g,Z,M,W=(h=this.JSC$23079_watchApi.getWatchNextResponse())==null?void 0:(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.secondaryResults)==null?void 0:(M=Z.secondaryResults)==null?void 0:M.offerModule,z,c,I,B;h=(B=(I=(c=(z=W==null?void 0:W.episodeOfferModuleRenderer)!=null?z:W==null?void 0:W.movieOfferModuleRenderer)!=null?c:W==null?void 0:W.unlimitedOfferModuleRenderer)!=null?I:W==null?void 0:W.liveOfferModuleRenderer)!=
null?B:W==null?void 0:W.tvfilmOfferModuleRenderer;var U,L,d;W=(d=W==null?void 0:(U=W.tvfilmOfferModuleRenderer)==null?void 0:(L=U.actionButtons)==null?void 0:L.length)!=null?d:0;L=Math.max(W-1,0);var C,q,w;U=(w=h==null?void 0:(C=h.offerButton)==null?void 0:C.buttonRenderer)!=null?w:h==null?void 0:(q=h.actionButtons)==null?void 0:q[L].buttonRenderer;var r,v;(C=(v=(r=U==null?void 0:U.navigationEndpoint)!=null?r:U==null?void 0:U.serviceEndpoint)!=null?v:U==null?void 0:U.command)&&_.eQ.instance.resolveCommand(C)};
}catch(e){_._DumpException(e)}
try{
var OQG,HQ0,m_C;_.vNU=function(){var h=_.Kt.clone(rQx),E;return(new _.jM(function(g,Z){h.onSuccess=function(M){_.Vjd(M)?g(new m_C(M)):Z(new _.Kk("Request failed, status="+_.Px(M),"net.badstatus",M))};
h.onError=function(M){Z(new _.Kk("Unknown request error","net.unknown",M))};
h.onTimeout=function(M){Z(new _.Kk("Request timed out","net.timeout",M))};
E=_.df("//googleads.g.doubleclick.net/pagead/id",h)})).thenCatch(function(g){if(g instanceof _.Y7){var Z;
(Z=E)==null||Z.abort()}return _.$B(g)})};
_.$_C=function(h){a:{var E="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(E="EMBEDDED_PLAYER_MODE_PFL");var g=h.raw_embedded_player_response;if(!g&&(h=h.embedded_player_response))try{g=JSON.parse(h)}catch(M){break a}if(g)b:for(var Z in HQ0)if(HQ0[Z]==g.embeddedPlayerMode){E=HQ0[Z];break b}}return E==="EMBEDDED_PLAYER_MODE_PFL"};
_.Krp=function(){if(_.J("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("uf");if(!_.J9u())return Error("vf");var h=_.nF("PLAYER_VARS",{});if(_.Kt.get(h,"privembed",!1)=="1")return Error("wf");if(_.$_C(h))return Error("xf")};
OQG=function(h){switch(h){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:_.Vk(h,"unknown result type")}};
_.nNU=function(h,E,g){E=_.NMq[E];g={detected:h===0,source:E.nPT,detectionResult:OQG(h),contentCpn:g};_.vT("biscottiBasedDetection",g);_.onB.increment(E.nPT,h);E.vlX!==void 0&&_.OW("CATSTAT",_.q3a(h,E))};
_.Od=function(h,E){var g={};g.key=h;g.value=E;return _.Gjz().then(function(Z){return new Promise(function(M,W){try{var z=Z.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(g);z.onsuccess=function(){M()};
z.onerror=function(){W()}}catch(c){W(c)}})})};
_.YHZ=function(){var h=_.cx("user_engagement_experiments_rate_limit_ms"),E=Xl0.get("last-user-engagement-exp-trigger-timestamp");return!E||(0,_.zn)()>=E+h?(Xl0.set("last-user-engagement-exp-trigger-timestamp",(0,_.zn)()),!0):!1};
_.nk=function(h,E,g,Z,M){E=E===void 0?null:E;g=g===void 0?null:g;Z=Z===void 0?null:Z;M=M===void 0?null:M;h={youThereEventType:h};g&&(h.lactThresholdMs=g.lactThresholdMs,h.mediaPosSec=g.promptDelaySec,h.lactServerRequestMs=g.lactServerRequestMs,h.triggerReason=g.triggerReason);M!=null&&(h.renderingMediaPosSec=Math.round(M));E||(E=_.sH());E&&(h.clientScreenNonce=E);Z&&(h.clientPlaybackNonce=Z);_.vT("youThere",h)};
HQ0={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"};m_C=function(h){this.xhr=h};
_.Kk=function(h,E,g){_.g$.call(this,h+", errorCode="+E);this.errorCode=E;this.xhr=g;this.name="PromiseAjaxError"};
_.f(_.Kk,_.g$);var rQx={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Xl0=new _.sY("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.lNJ=function(h){return _.RY({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:h})};
}catch(e){_._DumpException(e)}
try{
var Y4,ytj,Ata,TeN,bP2,uLr,h8a,aPL,c1K,iIM,QI2,FgN,MMU,ZIi,R8K;_.knU=function(){var h=window.location.hash;h.charAt(0)==="#"&&(h=h.charAt(1)==="!"?h.substring(2):h.substring(1));return _.bI(h)};
Y4=function(h,E,g){var Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(E(),2);Z=M.yieldResult;g(Z,h);_.SK(M)})};
ytj=function(){return _.a(function(h){return h.nextAddress==1?h.yield((_.Krp()!==void 0?_.$B(Error("yf")):_.vNU()).then(function(){return 1},function(E){if(E.message==="Biscotti id is disabled")return 3;
_.O$("Failed fetching bid");return 0}),2):h.return(h.yieldResult)})};
Ata=function(){var h=_.iU("I3JucTl6dmNvN2FqZHl0LWhhdmVuLWVtYmVkLXBsYXllcg=="),E=_.iU("YXU4MXZpZnJhbWUjMjh0bmVrMQ==");return document.querySelector(E+FgN+h)?0:1};
TeN=function(){return _.iV$(_.dW)};
bP2=function(){return _.oad()===0?0:_.IwO()};
uLr=function(){return _.LPa(_.l7$([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
h8a=function(){return _.ZVM(QI2)};
_.EWi=function(h){_.a(function(E){switch(E.nextAddress){case 1:return E.yield(Y4("b.f_",ytj,h),2);case 2:return E.yield(Y4("j.s_",_.Ead,h),3);case 3:return E.yield(Y4("r.s_",_.ugV,h),4);case 4:return E.yield(Y4("e.h_",h8a,h),5);case 5:if(!_.J("ab_det_sc_inj")){E.jumpTo(6);break}return E.yield(Y4("s.i_",_.awZ,h),6);case 6:if(_.J("ab_deg_unex_thr")){E.jumpTo(8);break}return E.yield(Y4("a.o_",_.G3W,h),8);case 8:if(_.J("ks_get_o_pp")){E.jumpTo(10);break}return E.yield(Y4("g.o_",_.p_$,h),10);case 10:if(_.J("ks_det_gpbl")){E.jumpTo(12);
break}return E.yield(Y4("p.i_",_.WPW,h),12);case 12:return E.yield(Y4("f.i_",_.nKN,h),14);case 14:return E.yield(Y4("a.b_",_.TPq,h),15);case 15:return E.yield(Y4("p.m_",_.sqq,h),16);case 16:if(!_.J("ab_det_el_h_v2")){E.jumpTo(17);break}return E.yield(Y4("n.h_",uLr,h),17);case 17:return E.yield(Y4("o.p_",TeN,h),19);case 19:return E.yield(Y4("e.i_",Ata,h),20);case 20:if(_.J("ab_det_apm"))return E.yield(Y4("o.a_",bP2,h),0);E.jumpTo(0)}})};
_.gWM=function(h,E){h={videoId:h};E&&(h.playlistId=E);return h};
_.WJ2=function(){if(_.J9u()){var h=_.nF("PLAYER_VARS",{});if(_.Kt.get(h,"privembed",!1)!="1"&&!_.$_C(h)){var E=function(){ZIi=!0;"google_ad_status"in window?_.OW("DCLKSTAT",1):_.OW("DCLKSTAT",2)};
try{_.bC(_.COG,E)}catch(g){}MMU.push(_.KP.addLowPriorityJob(function(){if(!(ZIi||"google_ad_status"in window)){try{_.R$W(_.COG.toString(),E)}catch(g){}ZIi=!0;_.OW("DCLKSTAT",3)}},5E3))}}};
_.pTj=function(h,E,g){g=g===void 0?!1:g;var Z=Math.max(h.width,_.Lno);if(_.J("kevlar_watch_feed_big_thumbs")&&h.width>=1550-_.UI()&&h.height>=800)Z-=_.qZM;else if(h.width>=_.FS){var M=_.jHL+_.dcM+_.yO;_.J("kevlar_watch_feed_big_thumbs")&&(M=_.eLj);Z-=M}else Z-=_.jHL;Z=Math.min(Z,_.CrN);M=240;g&&(M=380);E<.5624||(!_.J("kevlar_watch_flexy_disable_small_window_sizing")&&(h.height<630&&h.width>=657||h.height>=630&&h.width>=_.FS&&h.width<1327)?M=360:!_.J("kevlar_watch_flexy_disable_large_window_sizing")&&
h.height>=630&&h.width>=1327&&(M=480));var W=Math.min(Z*E,h.height-(56+_.UcL+_.JhU));W=Math.max(W,M);E<1?Z=W/E:h.width>=_.FS&&(Z=_.pTj(h,.5625,g).width);return new _.Ns(Math.round(Z),Math.round(W))};
_.Gqa=function(h){var E=0;h.indexOf("h")!=-1&&(h=h.split("h"),E=h[0]*60*60,h=h[1]);h.indexOf("m")!=-1&&(h=h.split("m"),E=h[0]*60+E,h=h[1]);h.indexOf("s")!=-1?(h=h.split("s"),E=h[0]*1+E):E=h*1+E;return E};
_.z8r=function(){_.cx("service_worker_push_logged_out_prompt_watches")!=-1&&_.Xw("WatchCount").then(function(h){h>=100||_.Od("WatchCount",h+1)})};
aPL=function(h){var E=h.externalVideoId||"";return E?h.isShortsEligible?"https://www.youtube.com/shorts/"+E:"https://www.youtube.com/watch?v="+E:""};
c1K=function(h){var E=[];h.viewCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:h.viewCount});h.likeCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:h.likeCount});return E};
iIM=function(h){var E,g,Z={"@context":"https://schema.org","@type":"VideoObject",description:_.Wp(h.description),duration:"PT"+(h.lengthSeconds||"0")+"S",embedUrl:h.embed?h.embed.iframeUrl:"",name:_.Wp(h.title),thumbnailUrl:((E=h.thumbnail)==null?void 0:(g=E.thumbnails)==null?void 0:g.map(function(U){return U&&U.url||""}))||[],
uploadDate:h.publishDate};_.J("mweb_video_schema_id_killswitch")||(Z["@id"]=aPL(h));E=c1K(h);E.length&&(Z.interactionStatistic=E);h.category&&(Z.genre=h.category);h.ownerChannelName&&(Z.author=h.ownerChannelName);h.liveBroadcastDetails&&(Z.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:h.liveBroadcastDetails.startTimestamp,endDate:h.liveBroadcastDetails.endTimestamp}]);if(h.learningResource){h=h.learningResource;Z["@type"]=["VideoObject","LearningResource"];var M;if((M=h.learningResourceType)==
null?0:M.length)Z.learningResourceType=h.learningResourceType[0];var W;if((W=h.educationalAlignment)==null?0:W.length)Z.educationalAlignment={"@type":"AlignmentObject",targetName:h.educationalAlignment[0]};var z;if((z=h.educationalLevel)==null?0:z.length){M=h.educationalLevel[0];var c;if((c=h.educationalLevelCountry)==null?0:c.length)M+=" ("+h.educationalLevelCountry+")";Z.educationalLevel=M}var I,B;if(((I=h.learningResourceType)==null?0:I.length)&&h.learningResourceType[0]==="Problem walkthrough"&&
((B=h.problemDescriptions)==null?0:B.length))for(Z.hasPart=[],c=_.G(h.problemDescriptions),I=c.next();!I.done;I=c.next())M=I.value,I=M.problemDescriptionText,B=M.startOffset,M=M.url,I&&B!==void 0&&M&&Z.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:I,text:I,startOffset:B,url:M})}return Z};
_.oWr=function(h){return _.RY({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:h}})};
QI2=[[["MXByaW1hcnkjbDBteWE5cW9nNHU=",null,null],[null,["LXJlc3VsdHMtcmVuZGVyZXIjMTZmM292MzJxbDJieXRkLXR3by1jb2x1bW4tYnJvd3Nl","ZWV6YnVvcW5mc3R5bGUtc2NvcGUjYnUy"],null],["YjRlYnl1cHRzbWFzdGhlYWQtYWQjcWU1",["Z3RpZnd6Z2p5dHN5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzk="],null],[null,["ZWNhd2xyYjN5NDh5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3E=","azNka3R4aGxvc3R5bGUtc2NvcGUjeHU4"],null],[null,["dWZnbjB5dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI242MXdxYjY=","NmZ2dDdzeGN5c3R5bGUtc2NvcGUjejIz"],null],[null,["ZXIjOGtsdWxmYno2ZXJveXRkLWFkLXNsb3QtcmVuZGVy"],
null]],[["aDNlNzhnNW10M3dicGxheWVyLWFkcyM=",null,null]],[["b24taW5uZXIjY2VkNTAxeTNsbW51ZGVzY3JpcHRp",null,null],[null,null,"Mng0OHh4N3l0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciNkMXZzZw=="],["IzR5YThpcmR4ajg3cm1haW4=",["ZGdtdGF0enl0ZC1tZXJjaC1zaGVsZi1yZW5kZXJlciN5dGNkYw=="],null]]];FgN="#";MMU=[];ZIi=!1;_.IPr=["engagement-panel-ads"];R8K=new _.I2("updateSentimentBarStateCommand");_.Pp0=new _.I2("showSurveyCommand");_.sN=new _.I2("changeMarkersVisibilityCommand");var UKx,LJa,J1i,Cpa,dKN,V2;_.BQG=function(h,E){this.playerProvider_=h;this.actionSenderElement_=E;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.BQG.prototype.reset=function(){UKx(this);this.isUserPredictedAbsent_=!1};
UKx=function(h,E){!h.youThereData_||h.showWarningJob_||E!==void 0&&E||(_.nk("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.sH(),h.youThereData_,h.clientPlaybackNonce_),_.HT());_.KP.cancelJob(h.showWarningJob_);h.showWarningJob_=0;_.KP.cancelJob(h.showBlockingWarningJob_);h.showBlockingWarningJob_=0;_.KP.cancelJob(h.pausePlaybackJob_);h.pausePlaybackJob_=0;h.youThereData_=null;h.clientPlaybackNonce_=void 0;h.inYouThereFlow_=!1};
_.j8r=function(h,E){var g,Z,M;_.a(function(W){if(W.nextAddress==1)return h.reset(),W.yield(h.playerProvider_().getPlayerPromise(),2);g=W.yieldResult;h.clientPlaybackNonce_=g.getVideoData().cpn;h.youThereData_=E.configData.youThereData;if(!h.youThereData_)return W.return();if(h.youThereData_.triggerReason&&h.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.YHZ())return _.nk("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.sH(),h.youThereData_,h.clientPlaybackNonce_),W.return();Z=h.youThereData_.promptDelaySec;
M=g.getCurrentTime();h.showWarningJob_=_.KP.addLowPriorityJob(function(){return _.a(function(z){h.showWarningJob_=0;return z.yield(LJa(h),0)})},Math.max(Z-M,0)*1E3);
_.SK(W)})};
LJa=function(h){var E,g,Z,M,W,z;return _.a(function(c){if(c.nextAddress==1)return c.yield(h.playerProvider_().getPlayerPromise(),2);if(c.nextAddress!=3)return E=c.yieldResult,g=E.getCurrentTime(),c.yield(dKN(h),3);Z=c.yieldResult;if(!Z||!h.youThereData_)return c.return();if(_.J("check_user_lact_at_prompt_shown_time_on_web")&&(M=parseInt(h.youThereData_.lactThresholdMs,10),_.zq()<M))return _.nk("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.sH(),h.youThereData_,h.clientPlaybackNonce_),c.return();if(h.youThereData_.playbackPauseDelayMs<=
0)return Cpa(h),c.return();!_.J("external_fullscreen")&&(W=_.cX())&&(h.ignoreFullscreenExitUserActivity_=!0,_.KP.addLowPriorityJob(function(){h.ignoreFullscreenExitUserActivity_=!1},2E3),_.iw(W));
h.youThereData_.showToastWarningPrompt&&(V2(h,h.youThereData_.showWarningActions),h.inYouThereFlow_=!0,_.nk("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.sH(),h.youThereData_,h.clientPlaybackNonce_,g),_.nk("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.sH(),h.youThereData_,h.clientPlaybackNonce_,g));z=0;h.youThereData_.blockingPromptDelayMs&&(z=h.youThereData_.blockingPromptDelayMs);h.showBlockingWarningJob_=_.KP.addLowPriorityJob(function(){return _.a(function(I){h.showBlockingWarningJob_=0;return I.yield(J1i(h),
0)})},z);
_.SK(c)})};
J1i=function(h){var E,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield(dKN(h),2);E=M.yieldResult;if(!h.youThereData_)return M.return();E&&(h.youThereData_.showBlockingWarningAction&&(_.nk("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.sH(),h.youThereData_,h.clientPlaybackNonce_),(g=_.e(h.youThereData_.showBlockingWarningAction,_.CZ))?V2(h,g.commands):V2(h,[h.youThereData_.showBlockingWarningAction]),h.inYouThereFlow_=!0),Z=h.youThereData_.playbackPauseDelayMs,h.pausePlaybackJob_=
_.KP.addLowPriorityJob(function(){return _.a(function(W){h.pausePlaybackJob_=0;return W.yield(Cpa(h),0)})},Z));
_.SK(M)})};
Cpa=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(dKN(h),2);E=g.yieldResult;if(!h.youThereData_)return g.return();E&&(_.nk("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.sH(),h.youThereData_,h.clientPlaybackNonce_),V2(h,h.youThereData_.showPausedActions),h.inYouThereFlow_=!0);_.SK(g)})};
_.BQG.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var h=_.e(this.youThereData_.userActiveDuringFlowAction,_.CZ);h?V2(this,h.commands):V2(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.nk("YOU_THERE_EVENT_TYPE_LACT_RESET",_.sH(),this.youThereData_,this.clientPlaybackNonce_),_.HT());UKx(this,!0)}_.e8G(this,!1)};
_.q$r=function(h){_.nk("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.sH(),h.youThereData_,h.clientPlaybackNonce_)};
dKN=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.playerProvider_().getPlayerPromise(),2);E=Z.yieldResult;g=E.getPlayerState();return Z.return(g==-1||g==1||g==3)})};
_.e8G=function(h,E){var g;_.a(function(Z){if(Z.nextAddress==1){if(h.isUserPredictedAbsent_==E)return Z.jumpTo(0);h.isUserPredictedAbsent_=E;return Z.yield(h.playerProvider_().getPlayerPromise(),3)}g=Z.yieldResult;g.setUserEngagement(E);E&&_.nk("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.sH(),h.youThereData_,h.clientPlaybackNonce_);_.SK(Z)})};
V2=function(h,E){if(_.J("handle_service_request_actions")||_.J("kevlar_youthere_service_endpoint_actions_killswitch"))_.jj(h.actionSenderElement_,E,h.actionSenderElement_);else{E=_.G(E);for(var g=E.next();!g.done;g=E.next())g=g.value,g.commandMetadata&&g.commandMetadata.webCommandMetadata&&g.commandMetadata.webCommandMetadata.sendPost?_.LZ(h.actionSenderElement_,[g]):_.jj(h.actionSenderElement_,[g],h.actionSenderElement_)}};var fPa;var NQL;var k4=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return h};
_.f(k4,_.D);k4.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var h=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(h=this.data.percentIfLiked||0,this.activated=!0):(h=this.data.percentIfIndifferent||0,this.activated=!1);_.UB(this.hostElement).querySelector("#like-bar").style.width=h+"%"}};
k4.prototype.handleUpdateSentimentBarStateCommand=function(h){this.data&&this.set("data.likeStatus",_.e(h,R8K).likeStatus)};
k4.prototype.observeLikeStatus=k4.prototype.observeLikeStatus;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],k4.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],k4.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],k4.prototype,"activated",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],k4.prototype,"systemIcons",void 0);_.Y([_.Nm("data.likeStatus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],k4.prototype,"observeLikeStatus",null);_.Y([_.K({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],k4);
_.X(k4,"ytd-sentiment-bar-renderer",function(){if(NQL!==void 0)return NQL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return NQL=h},{mode:1});var tMj;var y2=function(){var h=_.D.apply(this,arguments)||this;h.small=!0;return h};
_.f(y2,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],y2.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],y2.prototype,"small",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],y2);
_.X(y2,"ytd-video-view-count-renderer",function(){if(tMj!==void 0)return tMj;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return tMj=h},{mode:_.UQ("kevlar_poly_si_batch_j080")?1:2});var F1=function(){var h=_.D.apply(this,arguments)||this;h.infoFormattedStrings=[];h.wrapVideoActions=_.J("kevar_watch_wrap_video_actions");h.hideSentimentBar=_.J("kevlar_watch_hide_sentiment_bar");h.actionMap={};return h};
_.f(F1,_.D);_.p=F1.prototype;_.p.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.J("web_modern_buttons"),forceIconButton:!_.J("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.p.dataChanged=function(){_.J("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.p.computeInfoFormattedStrings=function(h){if(!h)return[];var E=[];h.dateText&&E.push(h.dateText);h.stationName&&E.push(h.stationName);h.rating&&E.push(h.rating);h.startEndTimeTemplate&&h.startTimeUtcMillis&&h.endTimeUtcMillis&&E.push(_.MR(_.vU0(_.Wp(h.startEndTimeTemplate),Number(h.startTimeUtcMillis),Number(h.endTimeUtcMillis))));h.upNextProgramText&&E.push(h.upNextProgramText);return E};
_.p.scheduleInitialUpdatedMetadataRequest=function(){var h,E=(h=this.data)==null?void 0:h.updatedMetadataEndpoint;if(E){var g;h=Number((g=_.e(E,_.MnC))==null?void 0:g.initialDelayMs);g=isNaN(h)?250:h;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),g)}};
_.p.setSentimentBarWidth=function(){var h=this;_.pQ(this,function(){var E=_.UB(h.hostElement).querySelector("ytd-menu-renderer");if(E){E=E.topLevelButtons;for(var g=0,Z=0;Z<E.length;Z++){var M=E[Z],W=h.get("toggleButtonSupportedData.toggleButtonIdData.id",M.data);if(W==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||W==="TOGGLE_BUTTON_ID_TYPE_LIKE")g+=M.clientWidth+8;else break}g&&(h.sentiment.style.width=g-8+" px")}})};
_.p.fetchUpdatedMetadata=function(h){var E;h&&(E={continuation:h});var g;(h=(g=this.data)==null?void 0:g.updatedMetadataEndpoint)&&_.GF().resolve(_.zF).resolveCommand(h,{form:Object.assign({},E,{element:this.hostElement})})};
_.p.onYtServiceRequestSent=function(h,E){E.endpoint&&_.e(E.endpoint,_.XD)&&(this.hasUpdateSentimentBarStateCommands()&&!_.J("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.e(E.endpoint,_.XD).status),this.setSentimentBarWidth())};
_.p.hasUpdateSentimentBarStateCommands=function(){var h,E,g,Z,M=(Z=(h=this.data)==null?void 0:(E=h.videoActions)==null?void 0:(g=E.menuRenderer)==null?void 0:g.topLevelButtons)!=null?Z:[];h=_.G(M);for(E=h.next();!E.done;E=h.next()){E=E.value;M=Z=g=void 0;var W=(g=E.toggleButtonRenderer)==null?void 0:(Z=g.toggleButtonSupportedData)==null?void 0:(M=Z.toggleButtonIdData)==null?void 0:M.id;if(W==="TOGGLE_BUTTON_ID_TYPE_LIKE"||W==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){Z=g=void 0;E=(Z=_.e((g=E.toggleButtonRenderer)==
null?void 0:g.defaultServiceEndpoint,_.CZ))==null?void 0:Z.commands;if(!E)break;E=_.G(E);for(g=E.next();!g.done;g=E.next())if(_.e(g.value,R8K))return!0}}return!1};
_.p.onYtServiceRequestCompleted=function(h,E){var g;(h=(g=E.data)==null?void 0:g.loggingDirectives)&&_.FLq(_.SQ(),h);this.get("continuation.timedContinuationData",E.data)&&this.data&&this.data.updatedMetadataEndpoint&&(E=E.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,E.continuation),E.timeoutMs))};
_.p.computeHasDateText=function(h){return!!h&&!!h.dateText};
_.ze.Object.defineProperties(F1.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return!((Z=(h=this.data)==null?void 0:(E=h.videoActions)==null?void 0:(g=E.menuRenderer)==null?void 0:g.flexibleItems)==null||!Z.length)}}});
F1.prototype.onYtServiceRequestCompleted=F1.prototype.onYtServiceRequestCompleted;F1.prototype.onYtServiceRequestSent=F1.prototype.onYtServiceRequestSent;F1.prototype.dataChanged=F1.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],F1.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.NJ.YtTaskEmitterBehavior),_.V("design:type",Object)],F1.prototype,"ytTaskEmitterBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],F1.prototype,"data",void 0);_.Y([_.x({computed:"computeInfoFormattedStrings(data)"}),_.V("design:type",Array)],F1.prototype,"infoFormattedStrings",void 0);
_.Y([_.x({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],F1.prototype,"hasDateText",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],F1.prototype,"wrapVideoActions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],F1.prototype,"hideSentimentBar",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],F1.prototype,"flexMenuEnabled",null);
_.Y([_.Sg("#sentiment"),_.V("design:type",Object)],F1.prototype,"sentiment",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F1.prototype,"dataChanged",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],F1.prototype,"onYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],F1.prototype,"onYtServiceRequestCompleted",null);
_.X(F1,"ytd-video-primary-info-renderer",function(){if(fPa===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);fPa=h}h=fPa;return h},{mode:1});var S$j;var Ay=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return h};
_.f(Ay,_.D);_.p=Ay.prototype;_.p.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.p.dataChanged=function(){var h;this.descriptionToggled=!((h=this.data)==null||!h.defaultExpanded);var E;this.collapsed=this.descriptionAlwaysCollapsed||!((E=this.data)==null?0:E.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Uz(110509);this.showLessClientVe=_.Uz(110510);h=_.sH();E=_.YN();h&&E&&_.Qp(h,E,[this.showMoreClientVe,this.showLessClientVe])};
_.p.onYtExpanderMoreTapped=function(){var h,E=(h=this.data)==null?void 0:h.showMoreCommand;E&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(E);(h=_.sH())&&this.showMoreClientVe&&_.Z$(h,this.showMoreClientVe)};
_.p.onYtExpanderLessTapped=function(){var h=_.sH();h&&this.showLessClientVe&&_.Z$(h,this.showLessClientVe);var E;(h=(E=this.data)==null?void 0:E.showLessCommand)&&this.componentBehavior.resolveCommand(h)};
_.p.handleUpdateDateTextAction=function(h){this.data&&this.data.dateText&&this.set("data.dateText",_.e(h,_.iX2).dateText)};
_.p.handleUpdateDescriptionAction=function(h){if(h=_.e(h,_.MRD))h.isEmpty||!h.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.X8(h.description)):this.set("data.description",h.description)};
_.p.onYtChangeEngagementPanelVisibilityAction=function(h){if(_.J("web_structured_description_show_more")||_.J("web_engagement_panel_open_description")){var E,g=(E=_.e(h,_.c2F))==null?void 0:E.targetId,Z;h=((Z=_.e(h,_.c2F))==null?void 0:Z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";g==="engagement-panel-structured-description"&&h&&(this.descriptionToggled=!0)}};
_.p.updateCollapsedFromBinding=function(h){this.collapsed=h.detail.value};
_.p.updateDescriptionToggledFromBinding=function(h){this.descriptionToggled=h.detail.value};
_.p.updateCanCollapseFromBinding=function(h){this.canCollapse=h.detail.value};
_.ze.Object.defineProperties(Ay.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer;return!!g&&!!g.rows&&g.rows.length>g.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.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}}});
Ay.prototype.onYtExpanderLessTapped=Ay.prototype.onYtExpanderLessTapped;Ay.prototype.onYtExpanderMoreTapped=Ay.prototype.onYtExpanderMoreTapped;Ay.prototype.dataChanged=Ay.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ay.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Ay.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ay.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Ay.prototype,"collapsed",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Ay.prototype,"descriptionToggled",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],Ay.prototype,"canCollapse",void 0);_.Y([_.x(),_.V("design:type",Object)],Ay.prototype,"subscribeButtonData",void 0);_.Y([_.x(),_.V("design:type",Number)],Ay.prototype,"descriptionCollapsedHeight",void 0);_.Y([_.x(),_.V("design:type",Object)],Ay.prototype,"structuredDescriptionContentRenderer",void 0);_.Y([_.x({value:function(){return _.J("web_watch_description_always_collapsed")}}),
_.V("design:type",Boolean)],Ay.prototype,"descriptionAlwaysCollapsed",void 0);_.Y([_.Sg("#description"),_.V("design:type",HTMLDivElement)],Ay.prototype,"description",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"dataChanged",null);_.Y([_.f3("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"onYtExpanderMoreTapped",null);
_.Y([_.f3("yt-expander-less-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ay.prototype,"onYtExpanderLessTapped",null);_.Y([_.S("data.metadataRowContainer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"metadataCollapsible",null);_.Y([_.S("data","structuredDescriptionContentRenderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"hasInlineStructuredDescription",null);
_.Y([_.S("data.attributedDescription"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"hasAttributedDescription",null);_.Y([_.S("hasInlineStructuredDescription","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"loadStructuredDescription",null);_.Y([_.S("data","structuredDescriptionContentRenderer","collapsed"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"showInlineStructuredDescription",null);
_.Y([_.S("data","hasInlineStructuredDescription","metadataCollapsible"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ay.prototype,"descriptionAlwaysCollapsible",null);
_.X(Ay,"ytd-video-secondary-info-renderer",function(){if(S$j===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);S$j=h}h=S$j;return h},{mode:2});var xK0;var T6=function(){return _.D.apply(this,arguments)||this};
_.f(T6,_.D);T6.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:_.J("web_modern_buttons"),forceIconButton:!_.J("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
T6.prototype.activate=function(h){h.appendTo(this.player);h.getPlayerPromise().then(function(E){E.setMinimized(!0)});
this.active=!0};
T6.prototype.deactivate=function(){var h=this.player.firstElementChild;h.getPlayerPromise().then(function(E){E.setMinimized(!1)});
this.active=!1;return h};
T6.prototype.onScrollUpTap=function(){var h=_.GF().resolve(_.p4).getCurrentPage();h&&h.setScrollTop(0)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],T6.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],T6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],T6.prototype,"active",void 0);
_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.V("design:type",Boolean)],T6.prototype,"darkLaunch",void 0);_.Y([_.Sg("#player"),_.V("design:type",HTMLDivElement)],T6.prototype,"player",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],T6);
_.X(T6,"ytd-miniplayer-bar-renderer",function(){if(xK0!==void 0)return xK0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return xK0=h},{mode:1});_.I9(_.O(function(h){var E=_.hf("script");_.lX(function(){var g;if(g=JSON)g=iIM(h.data()),g=_.Mc(JSON.stringify(g).replace(/</g,"\\u003C"));var Z=h.data(),M=_.Wp(Z.title).trim().length===0,W=!Z.publishDate||Z.publishDate.trim().length===0,z,c,I,B,U=!((z=Z.thumbnail)==null?0:(c=z.thumbnails)==null?0:c.length)||!((I=Z.thumbnail)==null?0:I.thumbnails[0].url)||((B=Z.thumbnail)==null?void 0:B.thumbnails[0].url.trim().length)===0;E.value&&g&&!(M||W||U)&&_.WA(E.value,g)},"Vy9K7b");
return _.R("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.R("script",{el:E,type:"application/ld+json"}))},"nl"),"player-microformat-renderer",{props:{data:_.c$}});
}catch(e){_._DumpException(e)}
try{
var JtF,eTj,fpL;_.CKL=function(h){return h.watch.watchWindowSize};
JtF=function(h,E){var g=document.querySelector(h);g?E(g):setTimeout(function(){JtF(h,E)},1E3)};
eTj=function(h,E,g,Z){if(h.isLockupToWatchTransitionEnabled){if(E){var M={};M=(M["watch-next-appears"]="player-watch-next-loaded",M);M["lockup-to-watch"]=h.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";h.viewTransitionCoordinator.registerElement(E,M)}g&&(E={},h.viewTransitionCoordinator.registerElement(g,(E["lockup-to-watch"]="below-lockup-to-watch",E["watch-next-appears"]="below-watch-next-loaded",E)));Z&&(g={},h.viewTransitionCoordinator.registerElement(Z,
(g["watch-next-appears"]="secondary-watch-next-loaded",g)))}};
_.qY2=function(h){return _.RY({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:h}})};
fpL=new _.I2("webWatchNextResponseExtensionData");var tsa=function(h){_.wO.call(this);var E=this;this.JSC$23083_watchApi=h;this.observer=null;var g=this.JSC$23083_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ner(E)});
this.addOnDisposeCallback(function(){E.JSC$23083_watchApi.unsubscribeByKey(g);E.observer&&(E.observer.disconnect(),E.observer=null)});
Ner(this)};
_.f(tsa,_.wO);
var Ner=function(h){var E,g,Z,M;_.a(function(W){if(W.nextAddress==1){h.observer&&(h.observer.disconnect(),h.observer=null);E=h.JSC$23083_watchApi.getWatchNextResponse();if(!E)return W.return();g=_.e(E,fpL);return(Z=g)!=null&&Z.enableCreatorChatbot?W.yield((0,_.$Tu)("NSzT5"),3):W.jumpTo(0)}M=_.Q5I;M();JtF("ytd-watch-metadata",function(z){h.observer=new MutationObserver(function(){var c,I;(c=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(I=c.closest("yt-button-view-model.ytd-menu-renderer"))==
null||I.remove()});
h.observer.observe(z,{childList:!0,subtree:!0})});
_.SK(W)})};var x2G=function(h){_.wO.call(this);this.JSC$23087_watchApi=h;SYG(this)};
_.f(x2G,_.wO);var SYG=function(h){_.a(function(E){if(E.nextAddress==1)return E.yield(wux(h),2);D2i(h);_.SK(E)})},wux=function(h){var E,g,Z,M;
return _.a(function(W){if(W.nextAddress==1)return W.yield(h.JSC$23087_watchApi.playerApi,2);E=W.yieldResult;h.JSC$23087_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){lpr(h)});
g=h.JSC$23087_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D2i(h)});
Z=function(z){h.onCueRangeEnter(z)};
E.addEventListener("onCueRangeEnter",Z);M=function(z){h.onCueRangeExit(z)};
E.addEventListener("onCueRangeExit",M);h.addOnDisposeCallback(function(){h.JSC$23087_watchApi.unsubscribeByKey(g);E.removeEventListener("onCueRangeEnter",Z);E.removeEventListener("onCueRangeExit",M)});
_.SK(W)})},rtL=function(h){var E,g,Z,M,W,z,c,I,B;
return(W=(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.results)==null?void 0:(M=Z.results)==null?void 0:M.contents)==null?void 0:(z=W.find(function(U){var L,d,C;return(L=U.itemSectionRenderer)==null?void 0:(d=L.contents)==null?void 0:(C=d[0])==null?void 0:C.shoppingTimelyShelfViewModel}))==null?void 0:(c=z.itemSectionRenderer)==null?void 0:(I=c.contents)==null?void 0:(B=I[0])==null?void 0:B.shoppingTimelyShelfViewModel},D2i=function(h){var E;
_.a(function(g){if(g.nextAddress==1)return(E=h.JSC$23087_watchApi.getWatchNextResponse())?g.yield(lpr(h),2):g.return();h.shoppingTimelyShelfViewModel=rtL(E);m2o(h);vL2(h);_.SK(g)})},m2o=function(h){var E,g=(E=h.shoppingTimelyShelfViewModel)==null?void 0:E.offerIdToVariants;
g&&(E=g.filter(function(Z){return Z.key&&Z.value}).map(function(Z){return[Z.key,
Z.value]}),h.variantsMap=new Map(E))},vL2=function(h){var E,g,Z,M,W,z;
_.a(function(c){if(c.nextAddress==1)return(g=(E=h.shoppingTimelyShelfViewModel)==null?void 0:E.cueRanges)?c.yield(h.JSC$23087_watchApi.playerApi,2):c.return();Z=c.yieldResult;h.cueRanges=g;M=_.G(g);for(W=M.next();!W.done;W=M.next())z=W.value,z.startTime!==void 0&&z.endTime!==void 0&&z.id!==void 0&&Z.addCueRange("shopping_timely_shelf"+z.id,HPN(z.startTime),HPN(z.endTime));_.SK(c)})},HPN=function(h){return Number(h.seconds||0)+(h.nanos||0)/1E9};
x2G.prototype.onCueRangeEnter=function(h){if(h.startsWith("shopping_timely_shelf")){var E=h.substring(21),g,Z;h=(g=this.variantsMap)==null?void 0:(Z=g.get(E))==null?void 0:Z.shelf;if(_.J("web_enable_shopping_timely_shelf_client_overwrite")){var M,W,z,c,I;g=h==null?void 0:(M=h.shoppingTimelyShelfContentViewModel)==null?void 0:(W=M.button)==null?void 0:(z=W[1])==null?void 0:(c=z.buttonViewModel)==null?void 0:(I=c.onTap)==null?void 0:I.innertubeCommand;var B,U;if(g==null?0:(B=g.menuEndpoint)==null?0:
(U=B.menu)==null?0:U.menuRenderer)g.openPopupAction=g.menuEndpoint,g.openPopupAction.popup=g.openPopupAction.menu,g.openPopupAction.popup.menuPopupRenderer=g.openPopupAction.popup.menuRenderer,g.openPopupAction.popupType="DROPDOWN",delete g.menuEndpoint,delete g.openPopupAction.menu,delete g.openPopupAction.popup.menuRenderer}h&&this.JSC$23087_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",h)}};
x2G.prototype.onCueRangeExit=function(h){h.startsWith("shopping_timely_shelf")&&this.JSC$23087_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var lpr=function(h){var E,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return z.yield(h.JSC$23087_watchApi.playerApi,2);E=z.yieldResult;if(h.cueRanges)for(g=_.G(h.cueRanges),Z=g.next();!Z.done;Z=g.next())M=Z.value,M.id&&(W="shopping_timely_shelf"+M.id,E.removeCueRange(W));h.JSC$23087_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});h.shoppingTimelyShelfViewModel=void 0;h.cueRanges=void 0;h.variantsMap=void 0;_.SK(z)})};var XuF=function(h){_.wO.call(this);var E=this;this.JSC$23094_watchApi=h;h=_.kT(_.Gv(),_.l3$,function(){$2L(E)});
this.addOnDisposeCallback(h);h=_.kT(_.Gv(),_.CKL,function(){$2L(E)});
this.addOnDisposeCallback(h);Kgx(this);OPr(this);nLL()};
_.f(XuF,_.wO);var Kgx=function(h){var E=function(Z){_.Gv().dispatch(_.wir(Z.matches))},g=window.matchMedia("(max-width: "+(999+_.UI())+"px)");
g.addListener(E);h.addOnDisposeCallback(function(){g.removeListener(E)});
E(g)},OPr=function(h){h.JSC$23094_watchApi.registerActionHandler("yt-window-resized",function(){nLL()});
h.addOnDisposeCallback(function(){h.JSC$23094_watchApi.unregisterActionHandler("yt-window-resized")})},nLL=function(){var h=_.wN();
_.Gv().dispatch(_.RY({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:h.width,height:h.height}}}))},$2L=function(h){var E;
_.a(function(g){if(g.nextAddress==1)return g.yield(h.JSC$23094_watchApi.playerApi,2);E=g.yieldResult;E.setSize(NaN,NaN);_.SK(g)})};var YYU=function(h){_.wO.call(this);var E=_.GF().resolve(_.Vr);eTj(E,h.getElement("PLAYER_CONTAINER"),h.getElement("BELOW_THE_PLAYER"),h.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var g=h.getElement("PLAYER_CONTAINER"),Z=h.getElement("BELOW_THE_PLAYER"),M=h.getElement("SECONDARY");E.isLockupToWatchTransitionEnabled&&(g&&_.sz(E.viewTransitionCoordinator,g),Z&&_.sz(E.viewTransitionCoordinator,Z),M&&_.sz(E.viewTransitionCoordinator,M))})};
_.f(YYU,_.wO);_.ON=function(h){_.Yt.call(this);var E=this;this.rootElement=h;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(g){E.initOrDisposeActiveModules(g)}));
this.onAttached()};
_.f(_.ON,_.Yt);_.p=_.ON.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(h){return this.rootElement.getElement(h)};
_.p.setPlayerResponse=function(h){this.playerResponse=h;this.publish("PLAYER_RESPONSE_UPDATED",h)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(h){this.watchNextResponse===h?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=h,this.publish("WATCH_NEXT_RESPONSE_UPDATED",h))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(h,E){var g=this;if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.bp(_.Tq.getInstance(),(Z[h]=E,Z),this.getRoot())}else this.actionHandlers.has(h)||(this.actionHandlers.set(h,[]),Z={},_.bp(_.Tq.getInstance(),(Z[h]=function(){var M=_.VF.apply(0,arguments);return(g.actionHandlers.get(h)||[]).map(function(W){return W.apply(null,_.$E(M))})},Z),this.getRoot())),this.actionHandlers.get(h).push(E)};
_.p.unregisterActionHandler=function(h){if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.up(_.Tq.getInstance(),(E[h]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(h))?(E.pop(),E.length===0&&(E={},_.up(_.Tq.getInstance(),(E[h]=!0,E),this.getRoot()),this.actionHandlers.delete(h))):_.O$(new _.xX("Attempted to unregister an action handler which is not registered.",h))};
_.p.addPageDisposeJob=function(h){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.JM$(this.rootElement.pageDisposeJobs,h)};
_.p.removePageDisposeJob=function(h){this.rootElement.pageDisposeJobs&&_.Xz(this.rootElement.pageDisposeJobs,h)};
_.p.dispatchEvent=function(h,E){_.Ra(this.rootElement,h,E)};
_.p.provideRenderingData=function(h,E){this.rootElement.provideRenderingData(h,E)};
_.p.scrollWatchTo=function(h,E){var g;(g=this.watchScrollManager)==null||g.scrollWatchTo(h,E)};
_.p.focusOnPlayer=function(){var h=this.getElement("PLAYER");_.pQ(h,function(){if(h&&h.firstElementChild){var E=h.querySelector(".html5-video-player");E&&(_.tS(_.GF().resolve(_.DC)),E.focus())}else _.O$(Error("To"))})};
_.p.subscribeToActiveChanged=function(h,E){E=E===void 0?!0:E;var g=_.kT(_.Gv(),_.wcK,function(Z){h(Z)});
E&&h(_.wcK(_.Gv().getState()));return g};
_.p.isActive=function(){return _.wcK(_.Gv().getState())};
_.p.onAttached=function(){var h=_.J("external_fullscreen");_.J("use_unified_flag_accessor")&&(h=_.GF().resolve(_.fTU).retriever.getFlag(_.CXC));(h||_.Xn("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var sIa=function(h){return h.getRoot().is==="ytd-watch-flexy"||h.getRoot().is==="ytd-watch-grid"},nK=function(h){return h.getRoot().is==="ytd-watch-fixie"};
_.ON.prototype.initPersistentModules=function(){if(nK(this)||sIa(this)&&_.J("kevlar_watch_flexy_theater_manager")){var h=new _.ktL(this);_.jf(this,h)}h=new _.rlr(this);_.jf(this,h);h=new _.rj(this);_.jf(this,h);h=new _.xdj(this);_.jf(this,h);h=new _.apx(this);_.jf(this,h);h=new _.m4(this);_.jf(this,h);if(nK(this)||sIa(this)&&_.J("kevlar_watch_flexy_playlist_manager"))h=new _.oLK(this),_.jf(this,h);_.J("web_thumbnail_to_watch_transition")&&(h=new YYU(this),_.jf(this,h))};
_.ON.prototype.initOrDisposeActiveModules=function(h){h?(this.watchScrollManager=new _.KK(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Ali(this)),_.J("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new x2G(this)),this.activeModules.push(new _.FEi(this)),nK(this)&&this.activeModules.push(new XuF(this)),this.activeModules.push(new _.LgG(this)),this.activeModules.push(new _.XxM(this)),(nK(this)||_.J("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.QpL(this)),this.activeModules.push(new _.ELj(this)),(nK(this)||_.J("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.d2j(this)),(nK(this)||_.J("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.zwa(this)),_.J("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IVG(this),this.activeModules.push(this.watchCinematicManager)),_.J("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Wgr(this)),_.J("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.Dd2(this)),h=_.J("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.J("kevlar_watch_flexy_comments_manager")&&!h&&this.activeModules.push(new _.qqi(this)),_.J("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.iFL(this)),this.activeModules.push(new _.hwG(this)),this.activeModules.push(new _.bli(this)),_.J("web_enable_timely_actions")&&this.activeModules.push(new _.Myx(this)),_.J("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.NXj(this)),_.J("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Uaj(this)),_.J("web_fullscreen_components")&&this.activeModules.push(new _.ZFM(this)),_.J("web_player_rtr_ctrls")&&this.activeModules.push(new _.SWj(this)),_.J("enable_creator_chatbot")&&this.activeModules.push(new tsa(this))):(_.G8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ON.prototype.disposeInternal=function(){_.Yt.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ze.Object.defineProperties(_.ON.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var LBx,pc,jLG,dFG,JwZ,e5G,CT0,qMC;LBx=function(){var h=_.DA();h.info||(h.info={});return h.info};
pc=function(h){return Math.round(_.vX()+h)};
jLG=function(){var h;if(_.J("csi_use_performance_navigation_timing")){var E,g,Z,M=_.mc==null?void 0:(h=_.mc.getEntriesByType)==null?void 0:(E=h.call(_.mc,"navigation"))==null?void 0:(g=E[0])==null?void 0:(Z=g.toJSON)==null?void 0:Z.call(g);M?(M.requestStart=pc(M.requestStart),M.responseEnd=pc(M.responseEnd),M.redirectStart=pc(M.redirectStart),M.redirectEnd=pc(M.redirectEnd),M.domainLookupEnd=pc(M.domainLookupEnd),M.connectStart=pc(M.connectStart),M.connectEnd=pc(M.connectEnd),M.responseStart=pc(M.responseStart),
M.secureConnectionStart=pc(M.secureConnectionStart),M.domainLookupStart=pc(M.domainLookupStart),M.isPerformanceNavigationTiming=!0,h=M):h=_.mc.timing}else h=_.J("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.mc.timing)):_.mc.timing;return h};
dFG=function(){if(_.mc.getEntriesByType){var h=_.mc.getEntriesByType("paint");if(h=_.mZ(h,function(g){return g.name==="first-paint"}))return pc(h.startTime)}var E;
_.J("csi_use_performance_navigation_timing")?E=_.mc.getEntriesByType("first-paint")[0].startTime:E=_.mc.timing.msFirstPaint;return E?Math.max(0,E):0};
JwZ=function(){var h=window.location.protocol,E=_.mc.getEntriesByType("resource");E=_.i3(E,function(g){return g.name.indexOf(h+"//fonts.gstatic.com/s/")===0});
(E=CT0(E,function(g,Z){return Z.duration>g.duration?Z:g}))&&E.startTime>0&&E.responseEnd>0&&(_.HX("wffs",pc(E.startTime)),_.HX("wffe",pc(E.responseEnd)))};
e5G=function(h,E){h=document.querySelector(h);if(!h)return!1;var g="",Z=h.nodeName;Z==="SCRIPT"?(g=h.src,g||(g=h.getAttribute("data-timing-href"))&&(g=window.location.protocol+g)):Z==="LINK"&&(g=h.href);_.gx(document)&&h.setAttribute("nonce",_.gx(document));return g?(h=_.mc.getEntriesByName(g))&&h[0]&&(h=h[0],g=_.vX(),_.HX("rsf_"+E,g+Math.round(h.fetchStart)),_.HX("rse_"+E,g+Math.round(h.responseEnd)),h.transferSize!==void 0&&h.transferSize===0)?!0:!1:!1};
_.fjX=function(h,E){_.k3(function(){_.rC("").info.actionType=h;E&&_.OW("TIMING_AFT_KEYS",E);_.OW("TIMING_ACTION",h);var g=_.IU4(_.nF("TIMING_INFO",{}));Object.keys(g).length>0&&_.$e(g);g={isNavigation:!0,actionType:_.hr$(_.nF("TIMING_ACTION"))};var Z=_.nF("PREVIOUS_ACTION");Z&&(g.previousAction=_.hr$(Z));if(Z=_.nF("CLIENT_PROTOCOL"))g.httpProtocol=Z;if(Z=_.nF("CLIENT_TRANSPORT"))g.transportProtocol=Z;(Z=_.sH())&&Z!=="UNDEFINED_CSN"&&(g.clientScreenNonce=Z);Z=_.oJq();if(Z===1||Z===-1)g.isVisible=!0;
Z=_.kCO().loadType==="cold";var M=LBx();Z||(Z=M.yt_lt==="cold");if(Z){g.loadType="cold";Z=LBx();M=jLG();var W=_.vX(),z=_.nF("CSI_START_TIMESTAMP_MILLIS",0);z>0&&!_.J("embeds_web_enable_csi_start_override_killswitch")&&(W=z);W&&(_.HX("srt",M.responseStart),Z.prerender!==1&&_.WdM(W));Z=dFG();Z>0&&_.HX("fpt",Z);Z=jLG();Z.isPerformanceNavigationTiming&&_.$e({performanceNavigationTiming:!0},void 0);_.HX("nreqs",Z.requestStart,void 0);_.HX("nress",Z.responseStart,void 0);_.HX("nrese",Z.responseEnd,void 0);
Z.redirectEnd-Z.redirectStart>0&&(_.HX("nrs",Z.redirectStart,void 0),_.HX("nre",Z.redirectEnd,void 0));Z.domainLookupEnd-Z.domainLookupStart>0&&(_.HX("ndnss",Z.domainLookupStart,void 0),_.HX("ndnse",Z.domainLookupEnd,void 0));Z.connectEnd-Z.connectStart>0&&(_.HX("ntcps",Z.connectStart,void 0),_.HX("ntcpe",Z.connectEnd,void 0));Z.secureConnectionStart>=_.vX()&&Z.connectEnd-Z.secureConnectionStart>0&&(_.HX("nstcps",Z.secureConnectionStart,void 0),_.HX("ntcpe",Z.connectEnd,void 0));_.mc&&"getEntriesByType"in
_.mc&&JwZ();Z=[];if(document.querySelector&&_.mc&&_.mc.getEntriesByName)for(var c in qMC)qMC.hasOwnProperty(c)&&(M=qMC[c],e5G(c,M)&&Z.push(M));if(Z.length>0)for(g.resourceInfo=[],c=_.G(Z),Z=c.next();!Z.done;Z=c.next())g.resourceInfo.push({resourceCache:Z.value})}_.$e(g);g=_.lw();g.preLoggedGelInfos||(g.preLoggedGelInfos=[]);c=g.preLoggedGelInfos;g=_.FCN();Z=void 0;for(M=0;M<c.length;M++)if(W=c[M],W.loadType){Z=W.loadType;break}if(_.kCO().loadType==="cold"&&(g.loadType==="cold"||Z==="cold")){Z=_.y9d();
M=_.lw();M=M.gelTicks?M.gelTicks:M.gelTicks={};for(var I in Z)if(!(I in M))if(typeof Z[I]==="number")_.HX(I,_.KZ(I));else if(_.J("log_repeated_ytcsi_ticks"))for(W=_.G(Z[I]),z=W.next();!z.done;z=W.next())z=z.value,_.HX(I.slice(1),z);I={};Z=!1;c=_.G(c);for(M=c.next();!M.done;M=c.next())Z=M.value,_.Fa(g,Z),_.Fa(I,Z),Z=!0;Z&&_.$e(I)}_.UOM(!0);I=_.nF("TIMING_ACTION");_.yy("ytglobal.timingready_")&&I&&_.NtV()&&_.BtN()&&_.cXW()})()};
CT0=function(h,E){return Array.prototype.reduce.call(h,E,{duration:0})};
qMC={'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 N3G={};N3G.YtVisibilityRootBehavior=[_.Mhm.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.p8(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.nF("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var h=_.nF("INNERTUBE_CLIENT_NAME")!=="WEB";_.J("kevlar_use_vimio_behavior")&&h&&_.Z0D()}}];_.GP={};_.GP.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(h){h.detail.contextProvider=this;h.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
N3G.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.hU();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(h){var E=this;this.pageCount+=1;_.J("kevlar_use_vimio_behavior")&&(_.nF("INNERTUBE_CLIENT_NAME")==="WEB"?_.KP.addJob(function(){E.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(h)},
loadPage_:function(h){this.data=h},
ytPageBehaviorActiveObserver_:function(h){var E=this;_.J("kevlar_use_vimio_behavior")&&(h?_.nF("INNERTUBE_CLIENT_NAME")==="WEB"?_.KP.addJob(function(){E.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(h){if(!this.setScrollTopJobId_){var E=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){E.setScrollTopJobId_=0;var g=_.GF().resolve(_.pl(_.DC));g&&_.tS(g);this.getPageScrollingElement().scrollTop=h}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.$S(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var UFX;var Wy=function(){var h=_.D.apply(this,arguments)||this;h.playerListenerConfig=null;h.actionMap={"yt-show-watch-page-survey":"openSurvey"};return h};
_.f(Wy,_.D);_.p=Wy.prototype;_.p.dataChanged=function(){var h=this,E=_.zD();E&&E.getPlayerPromise().then(function(Z){h.maybeRemovePlayerListeners(Z)});
var g=this.data&&this.data.survey;g&&((g=(g=g.singleOptionSurveyRenderer||g.checkboxSurveyRenderer||g.multiStageSurveyRenderer)&&g.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(E,g):this.openSurvey())};
_.p.triggerWatchPageSurvey=function(h,E){var g=this,Z,M,W,z,c,I,B,U,L;return _.a(function(d){if(d.nextAddress==1)return h?d.yield(h.getPlayerPromise(),2):d.return();g.player=d.yieldResult;if(!g.player)return d.return();Z={};M=_.G(E);for(W=M.next();!W.done;W=M.next())z=W.value,c=_.G(g.createEventListenerPair(z)),I=c.next().value,B=c.next().value,U=I,L=B,U&&L&&(Z[U]=L,g.ytPlayerListenerBehavior.listenToPlayerEvent(g.player,U,L));g.playerListenerConfig=Z;_.SK(d)})};
_.p.createEventListenerPair=function(h){var E=h.playbackEventTrigger;return E?this.handlePlaybackTrigger(E):(h=h.watchTimeTrigger)?this.handleWatchTimeTrigger(h):[void 0,void 0]};
_.p.handleWatchTimeTrigger=function(h){var E=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var g=h.videoWatchFraction,Z=h.watchTimeSec;return Z&&g?["onVideoProgress",function(){E.player&&E.isWatchTimeConditionMet(E.player,g,Z)&&E.showSurvey()}]:[void 0,
void 0]};
_.p.isWatchTimeConditionMet=function(h,E,g){var Z=h.getProgressState(),M=Z.current-this.lastKnownPlaybackPosition;M<5&&(this.accumulatedMediaTime+=M);this.lastKnownPlaybackPosition=Z.current;Z=Math.round(this.accumulatedMediaTime/Z.duration*1E3)/1E3;return h.getPresentingPlayerType&&h.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>g||Z>E)};
_.p.handlePlaybackTrigger=function(h){var E=this;h=h.playbackEvent;if(h==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var g="onStateChange";var Z=function(M){M===0&&E.showSurvey()}}else h==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(g="onVideoProgress",Z=function(M){E.player&&E.player.getPresentingPlayerType&&E.player.getPresentingPlayerType()===1&&M&&E.showSurvey()}):h==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(g="onAdEnd",Z=this.showSurvey);
return[g,Z]};
_.p.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.p.openSurvey=function(){var h=this,E=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.lNJ(!!E));_.KP.addJob(function(){h.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:E}})},0,0)};
_.p.maybeRemovePlayerListeners=function(h){if(this.playerListenerConfig){for(var E=_.G(Object.keys(this.playerListenerConfig)),g=E.next();!g.done;g=E.next())g=g.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(h,g,this.playerListenerConfig[g]);this.playerListenerConfig=null}};
Wy.prototype.dataChanged=Wy.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],Wy.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],Wy.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Wy.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],Wy.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Wy.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Wy.prototype,"playerListenerConfig",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],Wy.prototype,"lastKnownPlaybackPosition",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],Wy.prototype,"accumulatedMediaTime",void 0);_.Y([_.x(),_.V("design:type",Object)],Wy.prototype,"player",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wy.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Wy);
_.X(Wy,"ytd-survey-trigger-renderer",function(){if(UFX!==void 0)return UFX;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return UFX=h},{mode:1});
}catch(e){_._DumpException(e)}
try{
var oUF=new _.I2("promotedSparklesWebRenderer");var IR0=new _.I2("relatedChipCommand");var RCL;var PJa;var mk=function(){return _.D.apply(this,arguments)||this};
_.f(mk,_.D);mk.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mk.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],mk);
_.X(mk,"ytd-compact-tvfilm-entry-point-renderer",function(){if(PJa!==void 0)return PJa;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return PJa=h},{mode:1});var BIF;var UZK;var LiL;var vI=function(){return _.D.apply(this,arguments)||this};
_.f(vI,_.D);vI.prototype.ready=function(){this.initializeDefs()};
vI.prototype.initializeDefs=function(){var h=this.meta.byKey("yt-icons"),E=_.UB(h).querySelector("#star"),g=_.UB(h).querySelector("#star_half");h=_.UB(h).querySelector("#star_border");E&&this.defs.appendChild(E.cloneNode(!0));g&&this.defs.appendChild(g.cloneNode(!0));h&&this.defs.appendChild(h.cloneNode(!0))};
vI.prototype.percentChanged=function(){for(var h=this.rating;h.firstChild;)h.removeChild(h.firstChild);var E=Math.round(this.percent/10);h=Math.floor(E/2);E%=2;var g=5-h-E;this.appendStars("star",h,0);this.appendStars("star_half",E,h);this.appendStars("star_border",g,h+E)};
vI.prototype.appendStars=function(h,E,g){for(var Z=0;Z<E;Z++){var M=(18+this.spacing)*(Z+g),W=document.createElementNS("http://www.w3.org/2000/svg","use");_.TXC(W,"#"+h);W.setAttribute("x",""+M);W.setAttribute("y","0");this.rating.appendChild(W)}};
vI.prototype.percentChanged=vI.prototype.percentChanged;_.Y([_.Sg("#defs"),_.V("design:type",HTMLElement)],vI.prototype,"defs",void 0);_.Y([_.Sg("#rating"),_.V("design:type",HTMLElement)],vI.prototype,"rating",void 0);_.Y([_.x(),_.V("design:type",Number)],vI.prototype,"percent",void 0);_.Y([_.x({value:6}),_.V("design:type",Number)],vI.prototype,"spacing",void 0);_.Y([_.x({value:_.O1.create("iron-meta",{type:"iconset"})}),_.V("design:type",_.sJ)],vI.prototype,"meta",void 0);
_.Y([_.Nm("percent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vI.prototype,"percentChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ratings"})],vI);
_.X(vI,"ytd-ratings",function(){if(LiL!==void 0)return LiL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return LiL=h},{mode:1});var jGi=function(){return _.D.apply(this,arguments)||this};
_.f(jGi,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jGi.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jGi.prototype,"data",void 0);_.Y([_.K({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],jGi);
_.X(jGi,"ytd-offer-review-renderer",function(){if(UZK!==void 0)return UZK;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UZK=h},{mode:1});var HI=function(){var h=_.D.apply(this,arguments)||this;h.badges=[{textBadge:{label:_.MR("CC")}}];return h};
_.f(HI,_.D);_.p=HI.prototype;_.p.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.p.dataChanged=function(){var h=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(h&&h.commandMetadata&&_.e(h.commandMetadata,_.Vi)&&_.e(h.commandMetadata,_.Vi).fireAutomatically)_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}});else{var E;h&&((E=_.e(h,_.Vi))==null?0:E.fireAutomatically)&&_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})}};
_.p.isEmptyContent=function(h){return this.isStorefrontEntryPointEmpty(h)&&this.shouldHideOfferModule(h)};
_.p.isStorefrontEntryPointEmpty=function(h){return!h||!h.storefrontEntryPoint};
_.p.shouldHideOfferModule=function(h){return!!h.hideVideoDetails};
_.p.isOfferModuleNavigationInactive=function(h){return!h.navigationEndpoint&&!h.serviceEndpoint};
_.p.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
HI.prototype.dataChanged=HI.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],HI.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.V("design:type",Boolean)],HI.prototype,"hidden",void 0);
_.Y([_.x(),_.V("design:type",Object)],HI.prototype,"badges",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HI.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],HI);
_.X(HI,"ytd-movie-offer-module-renderer",function(){if(BIF!==void 0)return BIF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return BIF=h},{mode:1});var dZ0;var CJL=function(){return _.D.apply(this,arguments)||this};
_.f(CJL,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],CJL.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],CJL.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],CJL);
_.X(CJL,"ytd-media-masthead-renderer",function(){if(dZ0!==void 0)return dZ0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dZ0=h},{mode:1});var JCj;_.I9(_.SPH,"course-metadata-view-model",{props:{data:_.c$,isOverlay:_.c$}});var $R=function(){var h=_.D.apply(this,arguments)||this;h.isMetadataVisible=!1;h.modernPanels=_.J("kevlar_watch_modern_panels");h.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return h};
_.f($R,_.D);_.p=$R.prototype;
_.p.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.p.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.p.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.p.expanderChanged=function(){var h;if((h=this.data)==null?0:h.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.p.isExpandButtonToggled=function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.expandMetadataButton,_.Ix))==null?void 0:E.isToggled};
_.p.onVisibilityButtonClick=function(){var h;if((h=this.data)==null?0:h.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.p.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
$R.prototype.expanderChanged=$R.prototype.expanderChanged;$R.prototype.dataChanged=$R.prototype.dataChanged;$R.prototype.descriptionChanged=$R.prototype.descriptionChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],$R.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],$R.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],$R.prototype,"isMetadataVisible",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$R.prototype,"modernPanels",void 0);_.Y([_.Sg("#expander"),_.V("design:type",Object)],$R.prototype,"expander",void 0);_.Y([_.Nm("data.description"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$R.prototype,"descriptionChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$R.prototype,"dataChanged",null);_.Y([_.Nm("isMetadataVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$R.prototype,"expanderChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],$R);
_.X($R,"ytd-tvfilm-offer-module-renderer",function(){if(JCj!==void 0)return JCj;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JCj=h},{mode:2});var eCL;var Ko=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return h};
_.f(Ko,_.D);Ko.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Ko.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Ko.prototype.onThumbnailTap=function(h){this.data&&this.data.serviceEndpoint&&(_.GF().resolve(_.zF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),h.stopPropagation())};
Ko.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Ko.prototype.dataChanged=Ko.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ko.prototype,"rendererBehaviors",void 0);_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],Ko.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ko.prototype,"data",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ko.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Ko);
_.X(Ko,"ytd-unlimited-offer-module-renderer",function(){if(eCL!==void 0)return eCL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return eCL=h},{mode:1});var q0N;var fRr;var Oe=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return h};
_.f(Oe,_.D);Oe.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Oe.prototype.handleRelatedChipCommand=function(h){h=_.e(h,IR0);var E=h.contents;E?_.U7(this.hostElement,"yt-item-section-replace-action",[E,h.targetSectionIdentifier]):_.U7(this.hostElement,"yt-item-section-continuation-action",[h.continuationData,h.targetSectionIdentifier])};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Oe.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Oe.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Oe.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Oe.prototype,"data",void 0);_.Y([_.yc({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Oe);
_.X(Oe,"yt-related-chip-cloud-renderer",function(){if(fRr===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;q0N===void 0&&(q0N=document.createElement("template"));var Z=q0N;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);fRr=h}h=fRr;return h},{mode:2});var no=function(){var h=_.D.apply(this,arguments)||this;h.isTwoColumns=!0;h.watchFeedBigThumbs=_.J("kevlar_watch_feed_big_thumbs");h.watchFeedBigThumbsOnLockup=_.J("web_watch_next_big_thumbs");h.watchNextGridHideChips=_.J("kevlar_watch_grid_hide_chips");h.eligibleToSwitchToGrid=_.J("web_watch_eligible_to_switch_to_grid");h.disableShortsShelfHeightOverride=_.J("web_shorts_wn_shelf_ratio_tuning");h.isWatchNextGrid=!1;h.reuseComponents=!_.J("kevlar_watch_grid");h.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return h};
_.f(no,_.D);_.p=no.prototype;
_.p.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.J("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",
properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.p.getItemsPath=function(){return"data.results"};
_.p.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.p.created=function(){this.ytLazyListBehavior.initialCount=1};
_.p.ready=function(){_.Ja(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.p.resultsChanged=function(){if(this.data&&this.data.results){for(var h=this.data.results,E=null,g=null,Z=0;Z<h.length;Z++)h[Z].relatedChipCloudRenderer?E=h[Z].relatedChipCloudRenderer:h[Z].itemSectionRenderer&&(g=h[Z].itemSectionRenderer);if(E&&g)for(this.set("data.continuations",[]),h=_.e(E.content,_.x8k).chips,E=0;E<h.length;E++)if(Z=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",h[E]),Z.loadCached||!Z.contents){Z.contents=g.contents;break}}};
_.p.dataChanged=function(){var h=this,E;if((E=this.data)!=null&&E.results&&this.hasAllowedInstreamAd(this.playerData)){if(E=this.data.results.filter(function(c){return!!c.promotedSparklesWebRenderer})){for(var g=0;g<E.length;g++){var Z=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",E[g]);
if(Z)for(var M=0;M<Z.length;M++)Z[M]&&Z[M].baseUrl&&_.At(Z[M].baseUrl)}this.set("data.results",this.data.results.filter(function(c){return!c.promotedSparklesWebRenderer}))}if(E=this.data.results.filter(function(c){return!!h.getSparklesAd(c)})){E=_.G(E);
for(M=E.next();!M.done;M=E.next())if(Z=g=void 0,M=(g=this.getSparklesAd(M.value))==null?void 0:(Z=g.errorCommand)==null?void 0:Z.loggingUrls)for(g=_.G(M),Z=g.next();!Z.done;Z=g.next())(Z=Z.value)&&Z.baseUrl&&_.At(Z.baseUrl);var W,z;this.set("data.results",(W=this.data)==null?void 0:(z=W.results)==null?void 0:z.filter(function(c){return!c.adSlotRenderer}))}}};
_.p.getSparklesAd=function(h){var E,g;h=_.e((E=h.adSlotRenderer)==null?void 0:(g=E.fulfillmentContent)==null?void 0:g.fulfilledLayout,_.zPF);return _.e(h==null?void 0:h.renderingContent,oUF)};
_.p.hasAllowedInstreamAd=function(h){h=this.get("adPlacements",h)||[];for(var E=0;E<h.length;E++){var g=this.get("adPlacementRenderer.config.adPlacementConfig",h[E]);if(g&&g.suppressDisplayAd)return!0}return!1};
_.p.computeHideUnlimitedOfferModule=function(h,E){return h&&h.offerModule&&E&&h.offerModule.unlimitedOfferModuleRenderer&&h.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(E)?!0:!1};
_.p.hideUnlimitedOfferModuleChanged=function(){var h=_.UB(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");h&&(h.hidden=this.hideUnlimitedOfferModule)};
_.p.updateLockupContainerTypes=function(h){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||E.forEach(function(g){g.containerType=h})}};
_.p.computeHideTvfilmOfferModule=function(h,E){var g,Z;return!!((h==null?0:(g=h.offerModule)==null?0:(Z=g.tvfilmOfferModuleRenderer)==null?0:Z.clientShouldSuppressIfCompanionAdDisplayed)&&E&&this.hasCompanionAds(E))};
_.p.hideTvfilmOfferModuleChanged=function(){var h=_.UB(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");h&&(h.hidden=this.hideTvfilmOfferModule)};
_.p.hasCompanionAds=function(h){h=this.get("adPlacements",h)||[];for(var E=0;E<h.length;E++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",h[E]))return!0;var g=void 0,Z=void 0,M=void 0;if(!_.J("web_watch_top_banner_companion_check_killswitch")&&((g=h[E])==null?0:(Z=g.adPlacementRenderer)==null?0:(M=Z.renderer)==null?0:M.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.p.hasSuppressedResults=function(h){return h==null?!0:h.filter(function(E){return!E.continuationItemRenderer&&!E.compactPromotedVideoRenderer&&!E.promotedSparklesWebRenderer}).length===0};
_.p.computeShowButton=function(h,E){return this.isWatchNextGrid?h:h||this.hasSuppressedResults(E)};
_.p.showButtonChanged=function(){if(this.isWatchNextGrid){var h=_.UB(this.hostElement).querySelector("ytd-rich-grid-renderer");h&&this.showButton!==null&&(h.continuationShowButton=this.showButton)}else{h=_.UB(this.hostElement).querySelector("yt-next-continuation");var E=_.UB(this.hostElement).querySelector("ytd-continuation-item-renderer"),g=_.UB(this.hostElement).querySelector("ytd-item-section-renderer");h&&(h.showButton=this.showButton);E&&(E.showButton=this.showButton);g&&(g.continuationShowButton=
this.showButton)}};
_.p.continuationTap=function(h){var E;if(((E=this.data)==null?void 0:E.continuations)!=null&&h.target.tagName==="TP-YT-PAPER-BUTTON")for(h=this.data.continuations,E=0;E<h.length;E++)h[E].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(h[E].nextContinuationData||{})};
_.p.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("shown-items-changed",this.shownItems))};
_.ze.Object.defineProperties(no.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.shownItems)==null||!h.some(function(E){return!!E.lockupViewModel||E.compactVideoRenderer}))}}});
no.prototype.shownItemsChangedForBinding=no.prototype.shownItemsChangedForBinding;no.prototype.showButtonChanged=no.prototype.showButtonChanged;no.prototype.hideTvfilmOfferModuleChanged=no.prototype.hideTvfilmOfferModuleChanged;no.prototype.updateLockupContainerTypes=no.prototype.updateLockupContainerTypes;no.prototype.hideUnlimitedOfferModuleChanged=no.prototype.hideUnlimitedOfferModuleChanged;no.prototype.dataChanged=no.prototype.dataChanged;no.prototype.resultsChanged=no.prototype.resultsChanged;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],no.prototype,"ytLazyListBehavior",void 0);_.Y([_.t(_.Ub.YtNextContinuationBehavior),_.V("design:type",Object)],no.prototype,"ytNextContinuationBehavior",void 0);
_.Y([_.t(_.Bv),_.V("design:type",Object)],no.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],no.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"playerData",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],no.prototype,"autoFill",void 0);_.Y([_.x({value:60}),_.V("design:type",Number)],no.prototype,"targetFramerate",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"isTwoColumns",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"shownItems",void 0);_.Y([_.x({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.V("design:type",Boolean)],no.prototype,"hideUnlimitedOfferModule",void 0);_.Y([_.x({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.V("design:type",Boolean)],no.prototype,"hideTvfilmOfferModule",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"watchFeedBigThumbs",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"watchFeedBigThumbsOnLockup",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"watchNextGridHideChips",void 0);_.Y([_.x(),_.V("design:type",Object)],no.prototype,"eligibleToSwitchToGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"disableShortsShelfHeightOverride",void 0);
_.Y([_.x({selector:_.sL,reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"isGridViewEnabled",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],no.prototype,"showMoreButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],no.prototype,"isWatchNextGrid",void 0);_.Y([_.x({computed:"computeShowButton(showMoreButton, data.results)"}),_.V("design:type",Boolean)],no.prototype,"showButton",void 0);
_.Y([_.lq("data.results.*"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"resultsChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"dataChanged",null);_.Y([_.Nm("hideUnlimitedOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"hideUnlimitedOfferModuleChanged",null);
_.Y([_.S("isGridViewEnabled","containsLockups","data"),_.x({reflectToAttribute:!0}),_.V("design:type",Number),_.V("design:paramtypes",[])],no.prototype,"lockupContainerType",null);_.Y([_.Nm("lockupContainerType","data"),_.V("design:type",Function),_.V("design:paramtypes",[Number]),_.V("design:returntype")],no.prototype,"updateLockupContainerTypes",null);
_.Y([_.Nm("hideTvfilmOfferModule"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"hideTvfilmOfferModuleChanged",null);_.Y([_.Nm("showButton"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"showButtonChanged",null);_.Y([_.Nm("shownItems"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],no.prototype,"shownItemsChangedForBinding",null);
_.Y([_.S("shownItems"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],no.prototype,"containsLockups",null);
_.X(no,"ytd-watch-next-secondary-results-renderer",function(){if(RCL===void 0){var h=document.createElement("template");_.N(h,'\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" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);RCL=h}h=RCL;return h},{mode:1});
}catch(e){_._DumpException(e)}
try{
var GJZ=new _.I2("replaceFeedContentAction");var z5U;var ajC;var b$=function(){return _.D.apply(this,arguments)||this};
_.f(b$,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],b$.prototype,"data",void 0);_.Y([_.K({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],b$);
_.X(b$,"ytd-sub-feed-option-renderer",function(){if(ajC!==void 0)return ajC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ajC=h},{mode:1});var cwc;var u$=function(){return _.D.apply(this,arguments)||this};
_.f(u$,_.D);u$.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],u$.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],u$.prototype,"data",void 0);_.Y([_.K({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],u$);
_.X(u$,"ytd-sub-feed-selector-renderer",function(){if(cwc!==void 0)return cwc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return cwc=h},{mode:1});var Qv=function(){return _.D.apply(this,arguments)||this};
_.f(Qv,_.D);
Qv.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}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Qv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qv.prototype,"data",void 0);_.Y([_.K({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Qv);
_.X(Qv,"ytd-browse-feed-actions-renderer",function(){if(z5U!==void 0)return z5U;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return z5U=h},{mode:1});var i9J;var obJ;var hJ=function(){return _.D.apply(this,arguments)||this};
_.f(hJ,_.D);hJ.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hJ.prototype,"data",void 0);_.Y([_.K({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],hJ);
_.X(hJ,"ytd-mini-channel-renderer",function(){if(obJ!==void 0)return obJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return obJ=h},{mode:1});var IjC;var EP=function(){return _.D.apply(this,arguments)||this};
_.f(EP,_.D);EP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],EP.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],EP);
_.X(EP,"ytd-vertical-channel-section-renderer",function(){if(IjC!==void 0)return IjC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return IjC=h},{mode:1});var g1=function(){return _.D.apply(this,arguments)||this};
_.f(g1,_.D);g1.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],g1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],g1.prototype,"data",void 0);_.Y([_.K({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],g1);
_.X(g1,"ytd-browse-secondary-contents-renderer",function(){if(i9J!==void 0)return i9J;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return i9J=h},{mode:1});var R5G;var ZB=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};h.notActive=!1;h.isConstrainedList=!1;return h};
_.f(ZB,_.D);_.p=ZB.prototype;
_.p.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(h){var E;return(h==null?void 0:(E=h.webComponentHint)==null?void 0:E.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.p.getPath=function(h,E){var g="data.tabs.#"+E+".";h.tabs[E].tabRenderer?g+="tabRenderer.":h.tabs[E].expandableTabRenderer&&(g+="expandableTabRenderer.");return g+"content.sectionListRenderer"};
_.p.computeDisplayedContent=function(h){this.unlinkPaths("content");if(h&&h.tabs)for(var E=h.tabs.length,g=0;g<E;g++){var Z=h.tabs[g].tabRenderer||h.tabs[g].expandableTabRenderer;if(Z.selected&&Z.content)return this.linkPaths("content",this.getPath(h,g)),Z.content}return null};
_.p.computeHasSecondaryColumnData=function(h){return!!h&&!!h.secondaryContents};
_.p.onRetrieveLocation=function(h,E){E.locationRetrieved(E.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);h.stopPropagation()};
_.p.onYtServiceRequestSent=function(h,E){_.J("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.p.onYtServiceRequestCompleted=function(h,E){_.J("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.p.onReplaceFeedContentAction=function(h){if(!_.J("replace_feed_content_action_killswitch")&&!this.notActive){var E;(h=(E=_.e(h,GJZ))==null?void 0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(h)}};
_.p.handleServiceRequestActions=function(h){if(h=h.actions){h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=void 0;((g=_.e(E,GJZ))==null?0:g.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.e(E,GJZ).items)}}};
ZB.prototype.onYtServiceRequestCompleted=ZB.prototype.onYtServiceRequestCompleted;ZB.prototype.onYtServiceRequestSent=ZB.prototype.onYtServiceRequestSent;ZB.prototype.onRetrieveLocation=ZB.prototype.onRetrieveLocation;_.Y([_.t(_.IF),_.V("design:type",Object)],ZB.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZB.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ZB.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZB.prototype,"data",void 0);_.Y([_.x({computed:"computeDisplayedContent(data)"}),_.V("design:type",Object)],ZB.prototype,"content",void 0);
_.Y([_.x({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],ZB.prototype,"hasSecondaryColumnData",void 0);_.Y([_.x({value:function(){return window.outerHeight>1024?3:2}}),
_.V("design:type",Number)],ZB.prototype,"initialCount",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],ZB.prototype,"pageSubtype",void 0);_.Y([_.Sg("ytd-section-list-renderer"),_.V("design:type",Object)],ZB.prototype,"listRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],ZB.prototype,"notActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ZB.prototype,"isConstrainedList",void 0);
_.Y([_.x(),_.V("design:type",String)],ZB.prototype,"responsiveSizing",void 0);_.Y([_.f3("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],ZB.prototype,"onRetrieveLocation",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],ZB.prototype,"onYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],ZB.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],ZB);
_.X(ZB,"ytd-two-column-browse-results-renderer",function(){if(R5G!==void 0)return R5G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return R5G=h},{mode:2});
}catch(e){_._DumpException(e)}
try{
var wTx=function(h){if((h==null?void 0:h.value)===void 0||h==null||!h.unit)return"initial";a:{switch(h.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var E="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":E="%";break a}E=void 0}return E?""+h.value+E:"initial"},DKF=new _.I2("shoppingContentLineItemViewModel");var lPK=_.O(function(h){var E=_.au(h,{}).data;return _.R("yt-shopping-content-line-item-view-model",{class:_.CO("ytShoppingContentLineItemViewModelHost")},_.R(_.dK,{text:function(){var g;return(g=E().text)==null?void 0:g.attributedString}}))},"ol");var r1U=_.O(function(h){h=_.au(h,{});var E=h.data,g={};return _.R("yt-shopping-content-line-view-model",{class:_.CO("ytShoppingContentLineViewModelHost",h.className,(g.ytShoppingContentLineViewModelTruncateText=function(){return!E().wrapContent},g)),
style:_.fO({"--shopping-content-line-gap":function(){return E().itemGap?E().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return E().lineHeight?E().lineHeight+"px":void 0}})},_.R(_.SX,{each:function(){return(E().items||[]).map(function(Z){return _.e(Z,DKF)}).filter(function(Z){return!!Z})}},function(Z){return _.R(lPK,{data:Z})}))},"pl");_.I9(_.O(function(h){var E=_.au(h,{}).data,g=function(){var Z;return((Z=E().image)==null?void 0:Z.height)||40};
return _.R("yt-shopping-timely-shelf-content-view-model",{el:_.zT(_.n4(function(){var Z;return(Z=E())==null?void 0:Z.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.CO("ytShoppingTimelyShelfContentViewModelHost"),style:_.fO({"--shopping-timely-shelf-content-padding-top":function(){var Z;return wTx((Z=E().padding)==null?void 0:Z.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var Z;return wTx((Z=E().padding)==null?void 0:Z.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var Z;return wTx((Z=E().padding)==null?void 0:Z.start)},
"--shopping-timely-shelf-content-padding-end":function(){var Z;return wTx((Z=E().padding)==null?void 0:Z.end)},
"--yt-shopping-timely-shelf-background-color":function(){return E().backgroundColor!==void 0?_.uU(E().backgroundColor):"initial"}})},_.R(_.P,{cond:function(){var Z;
return(Z=E().image)==null?void 0:Z.image},
then:function(Z){return _.R(_.pO,{preserveHeight:!0,preserveWidth:!0,height:g,data:Z,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq}),_.R("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.R(_.Sv,{data:function(){return E().line1}},{shoppingContentLineViewModel:function(Z){return _.R(r1U,{data:Z.data})}}),_.R(_.Sv,{data:function(){return E().line2}},{shoppingContentLineViewModel:function(Z){return _.R(r1U,
{data:Z.data})}})),_.R("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.R(_.SX,{each:function(){var Z;
return(Z=E().button)!=null?Z:[]}},function(Z){return _.R(_.Sv,{data:function(){return Z}},{buttonViewModel:_.$l})})))},"ql"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.C6}});_.mKa={};
_.mKa.YtdWatchBehavior=[_.T.YtRendererBehavior,_.dM.YtPlayerListenerBehavior,_.wK.YtRendererstamperBehavior,_.Yl.YtActionHandlerBehavior,_.GP.YtPageBehavior,_.Xd.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)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{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 _.Xn("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.J("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 _.Xn("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_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},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 _.J("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.J("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 _.cx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cx("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.J("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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, isSingleColumn)"},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 _.J("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.J("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.J("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(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 h={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"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},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:_.dm(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.dm(["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"||_.J("swa_prov_panels_ks")?h.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(h.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},h.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return h},
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 h=this;this.watchController=void 0;this.pageDisposeJobs=[function(){h.showMetadataPlaceholder_()},
function(){_.J("web_watch_dont_clear_comments")||h.clearComments_()},
function(){h.clearPlayerAds_()},
function(){h.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;_.J("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.J("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.BQG(function(){return _.GD(h)},this.hostElement);
this.pageDisposeJobs.push(function(){h.youThereManager_.reset()});
_.J("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){h.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.NO;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;_.J("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));_.J("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qm(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(h){h&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:h}),h.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(h){_.J("kevlar_watch_flexy_theater_manager")&&(this.theater=h,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(h){!_.J("kevlar_watch_while_v2")&&!_.J("web_watch_pip")||h||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(h){this.active!==void 0&&(this.fullscreen=h,_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(h){this.active!==void 0&&(_.Ra(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(h>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(h){this.initCsi_();this.updatePageData_(h)},
updatePageData_:function(h){var E=this;if(h)if(this.data===h){this.onPageLoadWithSameData_();var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data)}else this.data=h;this.playlist&&_.nZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.s7("nw");this.loading=!1;_.xW(_.KP,function(){E.initDclkstatus_();var Z,M=((Z=E.player)==null?void 0:Z.getVideoData().cpn)||"";_.EWi(function(W,z){_.nNU(W,z,M)})})},
onPageLoadWithSameData_:function(){_.J("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 h=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!h);this.set("loadingData.playlistLoading",h&&h!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),h=this.watchNextSkeletonEl_.firstElementChild;h;)h.classList.remove("hidden"),h=h.nextElementSibling;if(_.J("kevlar_watch_frame0_loading_state")){var E,g,Z;h=(E=this.loadingData)==null?void 0:(g=E.endpoint)==null?void 0:(Z=g.watchEndpoint)==null?void 0:Z.videoId;var M;h&&(M="https://i.ytimg.com/vi/"+h+"/frame0.jpg");_.UB(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var h=_.UB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&h&&(h.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,g;(g=(E=this.watchMetadata).updateSentimentBarWidth)==
null||g.call(E);var Z,M;(M=(Z=this.watchMetadata).resize)==null||M.call(Z)}_.J("kevlar_watch_frame0_loading_state")&&(_.UB(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(h){var E=_.UB(this.hostElement).querySelector(h);E?_.oa(E,!1):_.O$(new _.xX("Overscroll monitor not found for component: ",h))},
removeSplitScrollMouseTrap:function(h){var E=_.UB(this.hostElement).querySelector(h);E?_.Ia(E):_.O$(new _.xX("Disposal component for  overscroll monitoring not found: ",h))},
onLoadingChanged_:function(h){h?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.J("web_thumbnail_to_watch_transition")&&!_.T2I||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.J("web_thumbnail_to_watch_transition")&&!_.T2I||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(h){var E=this;h?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.KP.addLowPriorityJob(function(){E.onWindowResized_(_.wN(!0))})},
updateTheaterModeState_:function(h){if(!_.J("kevlar_watch_flexy_theater_manager")){h=h||this.fullWindowMode_;if(this.theater!==void 0||h)this.theater=h;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();h&&_.mZN()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var h=this.fullBleedPlayer?_.UB(this.hostElement).querySelector("#player-full-bleed-container"):_.UB(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),g=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip");E.parentElement!==h&&(g&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.GD(this).appendTo(h,E))},
updateErrorScreenLocation:function(){var h=_.UB(this.hostElement).querySelector("#error-screen"),E=this.fullBleedPlayer?_.UB(this.hostElement).querySelector("#player-full-bleed-container"):_.UB(this.hostElement).querySelector("#player");h.parentElement!==E&&E.appendChild(h)},
deactivateMiniplayerAndResetPlayer:function(){var h=this;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.GF().resolve(_.Yu).deactivate(),2);h.updatePlayerLocation();_.SK(E)})},
updateCinematicsLocation:function(){var h=this.getElement("CINEMATICS");if(h){var E=this.getCinematicsLocationContainer();h.parentElement!==E&&E.appendChild(h)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.UB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.UB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(h,E,g){var Z=document.documentElement.hasAttribute("dark"),M=Z&&_.J("web_cinematic_theater_mode"),W=Z&&_.J("web_cinematic_fullscreen");Z=!Z&&this.cinematicLightTheme;return g||h&&M||E&&W||(E||h)&&Z},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var h=this,E;(E=this.watchController)==null||E.setWatchNextResponse(this.data);_.J("kevlar_watch_flexy_comments_manager")||this.initComments_();_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GF().resolve(_.oS).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,_.J("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.KP.addLowPriorityJob(function(){_.U7(h.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.J("web_watch_start_chat_in_theater_mode")){var g,Z,M;if((g=this.data)==null?0:(Z=g.contents)==null?0:(M=Z.twoColumnWatchNextResults)==null?0:M.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var W,z;((W=this.data)==null?0:(z=W.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(h){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);h&&h.playabilityStatus&&(E=this.isVideoPlayable_(h.playabilityStatus,this.getPlayerOverlays_(this.data)),h=this.isLiveStreamOffline_(h.playabilityStatus),E&&!h||_.pQ(this,function(){_.s7("pbu")}));
this.setPlayerAds_();_.U7(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(h,E){if((_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"))&&this.playerData&&E)return this.playerData.videoDetails},
watchPageActiveChanged_:function(h){_.Gv().dispatch(_.qY2(this.active));h?this.activate_():this.deactivate_()},
attached:function(){var h=this;this.watchController=new _.ON(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);_.J("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.GD(this);_.J("kevlar_disable_prepare_player")||
E.preparePlayer();_.J("kevlar_watch_flexy_playlist_manager")||_.GF().resolve(_.oS).setPlayer(E);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.UI()+"px"};this.is==="ytd-watch-grid"&&(E["--ytd-watch-flexy-sidebar-width"]=_.dcM+"px",E["--ytd-watch-grid-horizontal-page-margins"]=_.yO+"px",E["--ytd-watch-grid-columns-top-margins"]=_.UcL+"px",E["--ytd-watch-grid-min-player-height-medium"]="360px");!_.cx("kv_pl_mx_sz_ks")&&
_.cx("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CrN+"px");_.cx("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.JhU+"px");this.safeUpdateStyles(E);_.J("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.msi(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return h.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.UB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var h=_.UI(),E=_.FS+h,g=E;this.fixedPanels&&(E+=_.dcM);var Z=657+h;h=1327+h;_.UB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.UB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(h+"px)");_.UB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(h+"px)");
_.UB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+g+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var h=_.UB(this.hostElement).querySelector("#miniplayer-bar").firstChild,E=this.squeezeback&&!_.J("web_watch_squeezeback_player_size_killswitch");return h&&h.active||this.theater||_.J("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||E||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Ns(NaN,NaN):_.pTj(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.pTj(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var h=this;this.onWindowResized_(_.wN());_.J("browse_skeleton_removal_on_watch_killswitch")||_.Xn("IS_SHELL_LOAD")&&_.B3J();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.GD(this);E.addEventListener("yt-player-updated",_.qm(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(g){h.playerApiReady_(g)});
_.J("kevlar_watch_flexy_playlist_manager")||(E=_.GF().resolve(_.oS),_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.qm(this,this.onYtNavigate_)),E.setPlaylistComponent(_.UB(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.qm(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.KP.addLowPriorityJob(function(){_.Ra(h.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GD(this).removeEventListener("yt-player-updated",_.qm(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.J("kevlar_watch_flexy_playlist_manager")){var h=_.GF().resolve(_.oS);_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&h.removeEventListener("yt-navigate",_.qm(this,this.onYtNavigate_));
h.cancelVideoSkip();h.removeEventListener("yt-playlist-data-updated",_.qm(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ra(this.hostElement,"yt-autonav-pause-player",!1);h=_.cX();_.J("kevlar_exit_fullscreen_leaving_watch")&&h&&_.iw(h)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(h){this.player&&this.player.updateVideoData({rvs:h.rvs})},
getPageContents:function(h){return h&&h.contents&&h.contents.twoColumnWatchNextResults&&h.contents.twoColumnWatchNextResults.results&&h.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(h){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",h)},
onRetrieveLocation_:function(h,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);h.stopPropagation()},
onSubscriptionChanged_:function(h,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fjX("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.UB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.UB(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(h){this.player=h;this.setPlayerState(h.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.J("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.J("kevlar_unified_player")||_.J("kevlar_player_new_bootstrap_adoption"))&&_.k7()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(h,E){E=E===void 0?!0:E;_.cX()&&_.J("external_fullscreen")&&_.iw(document.documentElement);this.theaterRequested_=h;E&&_.fl("wide",h?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.BX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ra(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(h){_.nI(h,typeof this.player),this.player&&_.nI(h,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var h;((h=this.player)==null?0:h.isFullscreen())?this.player.toggleFullscreen():_.BX(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(h,E){return this.loading?E:!!Object.keys(h).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(h){if(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next())E=E.value,E.youThereRenderer&&_.j8r(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(h){return h||{}},
userEngagementConfigDataChanged_:function(h){if(h)if(h.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.zq()<h.lowEngagementThresholdMs||_.e8G(E,!0)}else h.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.BX(this.hostElement,"yt-autonav-pause-user-engagement",[h])},
isPlayerUnavailable_:function(h,E,g){return!!h&&!this.isVideoPlayable_(h,g)&&!E},
getPlayerOverlays_:function(h){return(h==null?void 0:h.playerOverlays)||null},
isVideoPlayable_:function(h,E){if(!h)return!1;var g=h.status==="OK"||h.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",h)||this.get("errorScreen.ypcTrailerRenderer",h);h=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",h);var M;E=E==null?void 0:(M=E.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!g||!!Z||!!h||!!E},
hasWatchNextResponseErrorRenderer:function(h){var E=this.getPageContents(h),g,Z,M,W,z;return!(h==null?0:(g=h.contents)==null?0:(Z=g.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((M=E[0])==null?0:(W=M.itemSectionRenderer)==null?0:(z=W.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(h){return h?h.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(h,E,g){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.J("web_no_skip_video_on_verification_checks")?(h==null?void 0:h.status)&&M.includes(h.status):h&&h.status==="AGE_CHECK_REQUIRED";var W=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",h);W==void 0&&(W=!0);!g||this.isVideoPlayable_(h,this.getPlayerOverlays_(E))||
Z||M||!W||_.GF().resolve(_.oS).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.z8r()},
onPlayerFeedbackStartRequest_:function(h){_.BX(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:h}])},
onPlayerFeedbackArticleRequest_:function(h){_.BX(this.hostElement,"yt-help-dialog-requested",[h])},
onPlayerYpcContentRequest_:function(){var h,E,g,Z,M,W,z,c,I=((h=this.data)==null?NaN:(E=h.contents)==null?NaN:(g=E.twoColumnWatchNextResults)==null?NaN:(Z=g.secondaryResults)==null?NaN:(M=Z.secondaryResults)==null?NaN:(W=M.offerModule)==null?NaN:(z=W.tvfilmOfferModuleRenderer)==null?NaN:(c=z.actionButtons)==null?NaN:c.length)-1;h=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];E=_.G(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(g=E.next();!g.done;g=E.next())for(g=g.value,Z=_.G(h),M=Z.next();!M.done;M=Z.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+g+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.qB(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(h){_.Ra(this.hostElement,"yt-autonav-pause-player",h)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(h){h()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(h){switch(h){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(h){switch(h){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ra(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(h)},
setPlayerState:function(h){_.Gv().dispatch(_.dxA(h))},
onPlayerSubscribe_:function(h){_.BX(this.hostElement,"yt-player-subscribe",[h])},
onPlayerUnsubscribe_:function(h){_.BX(this.hostElement,"yt-player-unsubscribe",[h])},
onPlayerAdYtShowToast_:function(h){_.BX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:h.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(h){if(h)return h},
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(h){return!_.J("web_watch_move_summary_to_sd")&&!!h},
computeWatchMetadataRefresh:function(){return _.J("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.J("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var h,E,g,Z;this.watchNextSecondaryResults=(h=this.data)==null?void 0:(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.secondaryResults)==null?void 0:Z.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.J("swatcheroo_pbs_load_grid")&&!_.J("swatcheroo_provide_all_data_on_scheduled_job")){_.KP.cancelJob(this.setRichGridJobId_);var h,E,g,Z,M,W,z;this.setRichGridRendererData((h=this.data)==null?void 0:(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.secondaryResults)==null?void 0:(M=Z.secondaryResults)==null?void 0:(W=M.results)==null?void 0:(z=W[0])==null?
void 0:z.richGridRenderer)}},
setRichGridRendererData:function(h){this.richGridRendererData=h},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var h,E=(h=this.data)==null?void 0:h.engagementPanels;if(E==null?0:E.length){h=null;E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;if(((Z=g.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){h=g;break}}var M,W,z;h=(M=h)==null?void 0:(W=M.engagementPanelSectionListRenderer)==null?void 0:(z=W.content)==null?void 0:z.structuredDescriptionContentRenderer;if(h==null?0:h.items){M=
[];W=_.G(h.items);for(z=W.next();!z.done;z=W.next()){z=z.value;if(!_.J("sd_horizontal_list_show_nav_killswitch")){var c=Z=g=E=h=void 0,I=void 0,B=(h=z.horizontalCardListRenderer)==null?void 0:(E=h.header)==null?void 0:(g=E.richListHeaderRenderer)==null?void 0:(Z=g.navigationButton)==null?void 0:(c=Z.buttonRenderer)==null?void 0:(I=c.command)==null?void 0:I.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(U){return!_.e(U,_.HMM)}))}(!z.expandableVideoDescriptionBodyRenderer&&
!z.videoDescriptionHeaderRenderer||_.J("web_delhi_colorful_sd"))&&M.push(z)}return{items:M}}}},
constructWarning_:function(h){return{text:_.MR(h),type:"WARNING"}},
isPlaShelfEnabled_:function(h){if((this.get("adPlacements",h)||[]).length)return!0;h=this.get("playerAds",h)||[];return!(!h.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",h[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var h=this;_.Ra(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.J("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.GD(this).getPlayerPromise().then(function(g){g.updateFullerscreenEduButtonVisibility(h.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ra(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var h=this;this.commentsReady=!1;_.KP.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.xW(_.KP,function(){h.setComments_()},1E3)},
setComments_:function(){if(!_.J("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.s7("cmi");_.KP.cancelJob(this.setCommentsJobId_);var h=this.getPageContents(this.data);if(h&&h.length){h=_.G(h);for(var E=h.next();!E.done;E=h.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ra(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.s7("cmc")},
doRemoveComments_:function(){this.comments={};_.J("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.KP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.KP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(h,E){var g=_.e(E.endpoint,_.MH);g&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||g.videoId!==E.videoId||g.playlistId&&g.playlistId!==E.playlistId||g.index!==void 0&&g.index!==E.index||typeof g.startTimeSeconds!=="number"||(h.stopPropagation(),this.setScrollTop(0),_.GD(this).getPlayerPromise().then(function(Z){var M=g.startTimeSeconds;Z.seekTo(M);Z.wakeUpControls();M<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var h=_.knU();"t"in h&&(h=_.Gqa(h.t),this.player.seekTo(h,!0))},
updateTitleFromWatchNext:function(h){h=this.getPageContents(h);var E,g;(h=_.Wp(h==null?void 0:(E=h[0])==null?void 0:(g=E.videoPrimaryInfoRenderer)==null?void 0:g.title))&&_.Ra(this.hostElement,"yt-update-title",h)},
updateTitle_:function(h){h=this.get("videoDetails.title",h)||"";_.Ra(this.hostElement,"yt-update-title",h)},
syncWithRemoteVideo_:function(h,E,g){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===g&&(g=Z.list,_.J("polymer_enable_mdx_queue")&&g&&g.startsWith("RQ")&&(g=void 0),Z.video_id!==h||g!=E)){var M;_.J("kevlar_player_watch_endpoint_navigation")?M=_.Bn$(_.gWM(h,E)):M=this.buildWatchEndpoint_(h,E);_.Ra(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(h,E,g){return _.cn(h,E,g)},
initDclkstatus_:function(){_.WJ2()},
attachWatchPageSkeleton_:function(){var h=document.querySelector("#watch-page-skeleton");if(h){var E=h.querySelector("#primary-info"),g=h.querySelector("#secondary-info"),Z=h.querySelector("#related");E&&_.UB(this.hostElement).querySelector("#info-skeleton").appendChild(E);g&&_.UB(this.hostElement).querySelector("#meta-skeleton").appendChild(g);Z&&(_.UB(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.f8(h)}},
handlePlayerUpdated_:function(){_.GD(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(h,E){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof E!=="undefined"){var g=this.watchNextSkeletonEl_.children,Z=h&&h.indexSplices.length?h.indexSplices[0].index:0;h=Math.min(this.watchNextShownItems.length,g.length);E||(Z=0,h=g.length);for(E=Z;E<h;E++)g[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(h){_.J("external_fullscreen")||_.BX(this.hostElement,"yt-player-fullscreen",[h.fullscreen])},
onFullscreenChange_:function(h){this.fullscreen=h;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.GD(this);E.getPlayerPromise().then(function(g){g.setFauxFullscreen(!!_.cX())});
this.updateFullBleedElementLocations();h&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(h,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(h){return h},
computeShouldShowMerchShelf:function(h,E){return E&&!!h},
computeResponseHasComments:function(h){var E,g,Z,M,W;return!!(h==null?0:(E=h.contents)==null?0:(g=E.twoColumnWatchNextResults)==null?0:(Z=g.results)==null?0:(M=Z.results)==null?0:(W=M.contents)==null?0:W.some(function(z){var c;return(z==null?void 0:(c=z.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(h,E,g,Z){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&Z?!1:!!h&&!!Object.keys(h).length&&!E},
identity:_.va,onWindowResized_:function(h){this.windowSize_=h;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(h){var E=this;h&&h.type!=="dataloaded"&&h.type!=="dataupdated"||_.GD(this).getPlayerPromise().then(function(g){var Z=g.getPlayerState();Z!==5&&Z!==0&&(g=1/g.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==g&&(E.videoHeightToWidthRatio_=g))})},
schedulePlayerSizeUpdate_:function(h){var E=this,g=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"),Z=function(){if(E.watchMetadata){var M,W;(W=(M=E.watchMetadata).resize)==null||W.call(M)}_.GD(E).getPlayerPromise().then(function(z){if(_.J("kevlar_set_internal_player_size")){if(!g||!E.isMiniplayerActive()){var c=E.calculateCurrentPlayerSize_();z.setInternalSize(c.width,c.height)}}else z.setSize(NaN,NaN);_.J("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
h?Z():_.Pw(_.KP,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(h){this.set("data.survey",h.detail)},
onYtShowSurveyCommand_:function(h){this.set("data.survey",_.e(h,_.Pp0).survey)},
onDownloadedVideoDeleted:function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1){if(!E.active||(g=E.playerData)==null||!g.offlineState||E.videoId!==h)return M.return();(Z=E.player)==null||Z.stopVideo();_.sU().navigatingAwayFromWatchDeletedVideo=!0;_.qB(_.Ix$,E.hostElement);return M.yield(_.sU().navigationFinishPromise,2)}_.sU().navigatingAwayFromWatchDeletedVideo=!1;_.SK(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var h;this.theater?h=_.vw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):h=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==h&&(this.watchWhileScrollThreshold_=h,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var h=_.UB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&h){var E=this.windowSize_.height>=624,g=this.active?this.getScrollTop():0;!h.active&&E&&g>=this.watchWhileScrollThreshold_?(h.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):h.active&&(!E||g<this.watchWhileScrollThreshold_&&!_.cX())&&(h.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var h=_.UB(this.hostElement).querySelector("#secondary-inner");if(h){var E=_.UB(this.hostElement).querySelector("#below"),g=_.UB(this.hostElement).querySelector("#secondary"),Z=_.UB(this.hostElement).querySelector("#comments");Z&&g&&E&&(this.defaultTwoColumnLayout?(h.appendChild(Z),g.appendChild(h)):(E.appendChild(Z),_.VO(E,h)))}}},
isTwoColumnsChanged_:function(h,E){if(h!==!0||E!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(h=_.UB(this.hostElement).querySelector("#secondary-inner"))){E=_.UB(this.hostElement).querySelector("#below");var g=_.UB(this.hostElement).querySelector("#secondary"),Z=_.UB(this.hostElement).querySelector("#comments");Z&&g&&E&&(this.isTwoColumns_?(h.appendChild(Z),g.appendChild(h)):(E.appendChild(Z),_.VO(E,h)))}}else{h=!_.J("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);E=_.UB(this.hostElement).querySelector("#panels");var M=_.UB(this.hostElement).querySelector("#alerts");g=_.UB(this.hostElement).querySelector("#playlist");Z=_.UB(this.hostElement).querySelector("#related");var W=_.UB(this.hostElement).querySelector("#donation-shelf"),z=_.UB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.UB(this.hostElement).querySelector("#secondary-inner"),h&&(M.appendChild(E),M.appendChild(g)),M.appendChild(W),
M.appendChild(Z)):(h&&(_.YS(E,M),_.YS(g,M)),_.YS(W,M),z&&_.YS(Z,z));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.J("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.J("web_watch_enable_fs_squeezeback_panels")&&_.J("web_watch_theater_chat")){var h=_.UB(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.J("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?(E=_.UB(this.hostElement).querySelector("#columns"),(h==null?void 0:h.parentElement)!==E&&E.append(h),this.fixedPanels=!0):(this.fixedPanels=
!1,E=_.UB(this.hostElement).querySelector("#playlist"),h&&E?_.sp(h,E):_.O$(new _.xX("Missing element when updating chat location",{"chatContainer defined":!!h,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(h,E){return _.J("sw_metadata_vis_toggle_ks")?!0:!!h||!!E},
computeForceDarkPanelTheme:function(h){return _.J("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&h:!1},
safeUpdateStyles:function(h){try{_.Ja(this.hostElement,h)}catch(E){_.O$(E)}},
videoHeightToWidthRatioChanged_:function(h,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(h){this.videoHeightToWidthRatio_=1/h},
computeIsVerticalVideo_:function(h){return h>=1},
computeIsFourThreeToSixteenNineVideo_:function(h){return h<=.7501&&h>=.5624},
computeIsExtraWideVideo_:function(h){return h<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GD(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GD(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.q$r(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(h){var E=_.YY(h)||0;_.Xt(h,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var h=_.YY("yt-fullerscreen-edu-button-click-count")||0,E=_.YY("yt-fullerscreen-edu-button-shown-count")||0,g=_.cx("external_fullscreen_button_shown_threshold"),Z=h>=_.cx("external_fullscreen_button_click_threshold")||E>=g;_.GD(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(h,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GF().resolve(_.oS).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var h=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.KP.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.KP.addLowPriorityJob(function(){h.fullHeightPanelPositionUpdateJobId=0;var E=_.UB(h.hostElement).querySelector("#secondary"),g=_.UB(h.hostElement).querySelector("#fixed-secondary");E=E.getBoundingClientRect();var Z=E.width;h.swatcherooSqueezeback&&
(Z+=_.yO);if(h.swatcherooSqueezeback){var M=_.UB(h.hostElement).querySelector("#squeezeback-constraining-container");M.style.width=Z+"px";M.style.flex="0 0 "+Z+"px"}g.style.width=Z+"px";g.style.left=E.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var h=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.KP.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.KP.addLowPriorityJob(function(){h.panelMaxHeightUpdateJob_=0;var E;!h.isTwoColumns_||h.theater||h.fullscreen?E=460:E=h.calculateNormalPlayerSize_().height;var g=E+"px";_.J("live_chat_taller_height")&&!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.J("live_chat_medium_height")&&!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.J("live_chat_scaled_height")&&!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) - 238px)");h.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":g,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(h){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",h)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.jj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(h){var E=_.UB(this.hostElement).querySelector("#engagement-panel-scrim");h?E.addEventListener("tap",_.qm(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.qm(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(h){if(this.hostElement.contains(h)&&!this.scrollToAnimation_.isAnimating()){var E=h.offsetTop-24;h=h.offsetTop+h.offsetHeight+24;var g=this.getPageScrollingElement(),Z=this.getScrollTop(),M=Z+g.clientHeight-56;if(E<Z+56)E-=56;else if(h>M)E=h-g.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var h=this.hostElement.querySelector("#comments");if(h&&!this.scrollToAnimation_.isAnimating()){h=h.offsetTop-56-24;if(_.J("kevlar_comment_teaser_scroll_to_midpoint")&&(h-=_.S8().height/3,h<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,h),500)}},
onYtEngagementPanelVisibleChanged:function(h,E,g){if(this.active&&this.trackEngagementPanelVisibility&&!_.IPr.includes(g)){if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.U7(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var Z=_.GF().resolve(_.QW);this.visiblePanelIdentifiers_.forEach(function(M){M!==g&&Z.hidePanel(M)})}this.visiblePanelIdentifiers_.add(g)}E!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(g);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(h){return h?"":"watch-active-metadata"},
computeNewMetadataClass:function(h){return h?"watch-active-metadata":""},
computeIsSingleColumn:function(h,E){return E&&!h},
computeFullBleedPlayer:function(h,E,g){return _.J("external_fullscreen")&&h||E||g},
computeDefaultLayout:function(h){return!h},
computeDefaultTwoColumnLayout:function(h,E){return!h&&E},
updatePanelsLocation:function(){if(_.J("web_watch_enable_fs_squeezeback_panels")){var h=_.UB(this.hostElement).querySelector("#below"),E=_.UB(this.hostElement).querySelector("#panels"),g=_.UB(this.hostElement).querySelector("#playlist"),Z=_.UB(this.hostElement).querySelector("#chat-container"),M=_.UB(this.hostElement).querySelector("#panels-full-bleed-container"),W=_.UB(this.hostElement).querySelector("#secondary-inner");if(h&&E&&g&&Z&&M&&W){var z=this.fullscreen||this.theater&&this.iMaxTheaterMode,
c=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;z?(M.appendChild(E),M.appendChild(Z),M.appendChild(g)):this.isTwoColumns_?(c?(h=_.UB(this.hostElement).querySelector("#columns"),(Z==null?void 0:Z.parentElement)!==h&&h.append(Z),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.VO(W,Z),_.VO(W,E),_.VO(W,g)):(h.appendChild(E),h.appendChild(Z),h.appendChild(g))}}},
swatcherooUpdatePanelsLocation:function(h,E,g,Z,M,W){if(this.is==="ytd-watch-grid"){E=h&&!E;this.swatcherooSplitScroll&&(E?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));g=_.UB(this.hostElement).querySelector("#panels");var z=_.UB(this.hostElement).querySelector("#playlist"),c=_.UB(this.hostElement).querySelector("#fixed-secondary"),I=_.UB(this.hostElement).querySelector("#fixed-below"),
B=_.UB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),U=_.UB(this.hostElement).querySelector("#chat-container");W&&(h?c.appendChild(g):I.appendChild(g));M?h?c.appendChild(U):I.appendChild(U):_.sp(U,B);Z?h?c.appendChild(z):I.appendChild(z):_.sp(z,B);this.swatcherooSplitScroll&&(h=_.UB(this.hostElement).querySelector("#secondary"),Z=_.UB(this.hostElement).querySelector("#columns"),M=_.UB(this.hostElement).querySelector("#fixed-columns-secondary"),E?
M.appendChild(h):Z.appendChild(h))}},
computeMetadataSkinnyMode:function(h,E,g){return this.is!=="ytd-watch-grid"?!1:h?g:E},
computeWatchWhilePanelsActive:function(h,E){return h||E},
computeNoBorderOnChat:function(h){return _.J("web_watch_theater_chat_no_border")&&h},
computeLiveChatPresentAndExpanded:function(h,E){return h&&!E},
computePanelExpanded:function(h,E,g){return h||E||g},
computeSqueezeback:function(h,E,g,Z){if(_.J("web_watch_enable_fs_squeezeback_panels")){var M=this.iMaxTheaterMode&&this.theater;return(h||E||g)&&(Z||M)}},
computeSwatcherooSqueezeback:function(h,E,g){return this.is!=="ytd-watch-grid"||_.J("ww_squeezeback_killswitch")?!1:h&&E&&g},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(h){_.GD(this).getPlayerPromise().then(function(E){var g;(g=E.changeMarkerVisibility)==null||g.call(E,_.e(h,_.sN).isVisible||!1,_.e(h,_.sN).entityKeys||[],_.e(h,_.sN).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(h){this.liveChatCollapsed=h.detail;_.Gv().dispatch(_.oWr(h.detail));if(!this.liveChatCollapsed&&this.squeezeback){var E=_.GF().resolve(_.QW);this.visiblePanelIdentifiers_.forEach(function(g){E.hidePanel(g)})}},
onSetPlaylistCollapsed:function(h){_.J("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!h)},
provideRenderingData:function(h,E){switch(h){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=E;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=
E;break;case "DONATION_SHELF":this.donation=E;break;case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
E;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=E}},
toggleCinematicsActive:function(h){this.cinematicsActive=h},
isMiniplayerActive:function(){return _.GF().resolve(_.Yu).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var VNc;_.s5x=function(h){if(!(0,_.i9O)(h))throw Error("K``"+String(h));};
_.keJ=function(h){return h.findIndex(function(E){return VNc.indexOf(E.tagName)>-1})>-1};
_.yQR=function(){var h=_.GF().resolve(_.km);_.yWV(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(h.isFullscreenEnabled()?_.iw(document.documentElement):_.xuN(document.documentElement))};
VNc=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.sd=new Map;_.sd.set(32,59972);_.sd.set(27,50765);_.sd.set(70,60102);_.sd.set(76,60221);_.sd.set(77,60222);_.sd.set(74,60223);_.sd.set(84,60224);_.sd.set(38,61941);_.sd.set(40,61942);_.sd.set(73,62521);_.sd.set(67,62522);_.sd.set(80,63390);_.sd.set(78,63397);_.sd.set(75,59972);_.sd.set(188,63385);_.sd.set(190,63384);_.sd.set(36,63387);
_.sd.set(35,63386);_.sd.set(37,63388);_.sd.set(39,63389);_.sd.set(79,63423);_.sd.set(87,63424);_.sd.set(107,63426);_.sd.set(109,63425);_.sd.set(65,63428);_.sd.set(83,63430);_.sd.set(68,63429);_.sd.set(221,63431);_.sd.set(219,63432);_.sd.set(97,63439);_.sd.set(98,63440);_.sd.set(99,63441);_.sd.set(100,63442);_.sd.set(101,63443);_.sd.set(102,63444);_.sd.set(103,63445);_.sd.set(104,63446);_.sd.set(105,63447);_.V4=new Map;_.V4.set(80,63390);_.V4.set(78,63397);_.V4.set(188,63400);_.V4.set(190,63401);
_.V4.set(191,60765);_.V4.set(13,247917);_.kt=new Map;_.y4=new Map;
}catch(e){_._DumpException(e)}
try{
var fGi,SWX,xaC,wJJ;_.CIc=function(h){return h.ui.guideIsVisibleButNotPersistent};
_.Jxp=function(h){return h.ui.tabGesturesIsActive};
_.eJX=function(){var h=_.iN("service_worker_scope");try{return navigator.serviceWorker.getRegistration(h)}catch(E){return Promise.reject(E)}};
_.qWx=function(h){return!(!h||!h.pushManager)};
fGi=function(){return _.eJX().then(_.qWx).catch(function(){return!1})};
_.NXX=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?fGi():Promise.resolve(!1)};
_.tXx=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
SWX=function(){var h,E,g;return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.QU.getInstance(),2);case 2:h=Z.yieldResult;if(!h){E=void 0;Z.jumpTo(3);break}return Z.yield(h.get("lmqf"),4);case 4:E=Z.yieldResult;case 3:switch((g=E)||(g="SD"),g){case "HD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return Z.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
xaC=function(h){var E,g,Z;return _.a(function(M){if(M.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.J("disable_av1_setting")){var W=window.localStorage["yt-player-av1-pref"];W=W==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":W==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else W="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(E=h===W)return M.jumpTo(2);Z=g=h;return M.yield(SWX(),3)}M.nextAddress!=2&&(E=Z===M.yieldResult);return M.return(E)})};var DaI;var lG0=_.X3.IronButtonState,rxU=(0,_.K2)(HTMLElement);
_.OB({_template:function(){if(DaI!==void 0)return DaI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;wJJ===void 0&&(wJJ=document.createElement("template"));var Z=wJJ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return DaI=h},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[lG0,_.OJ,_.YJ,_.kJ],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(h){var E=(0,_.tf)(this);E.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:h});E.shadowRoot.appendChild(h);return rxU.prototype._attachDom.call(this,h)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var h=this.contentElement;h&&h.selectedItem&&this._setSelectedItem(h.selectedItem)},
get contentElement(){for(var h=_.vl(this.$.content).getDistributedNodes(),E=0,g=h.length;E<g;E++)if(h[E].nodeType===Node.ELEMENT_NODE)return h[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(h){this._setSelectedItem(h.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(h){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h)===this&&this.open()},
_selectedItemChanged:function(h){var E="";h?E=h.label||h.getAttribute("label")||h.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(h,E){return E?E:h?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var h=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",h)}});_.Dm=new _.I2("navigateAction");var max=new _.I2("formRenderer");var li=function(){var h=_.wD.apply(this,arguments)||this;h.showInput=!1;return h};
_.f(li,_.wD);_.p=li.prototype;_.p.detached=function(){this.showInput&&window.removeEventListener("click",_.qm(this,this.closeOnOutsideClick_))};
_.p.stopPropagation_=function(h){this.showInput&&h.stopPropagation()};
_.p.closeOnOutsideClick_=function(h){this.closeOnOutsideClickCondition(h)&&(this.showInput=!1,window.removeEventListener("click",_.qm(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.p.closeOnOutsideClickCondition=function(){return!0};
_.p.closeOnOutsideClickHandler=function(){};
_.p.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.qm(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.p.openOnClickHandler=function(){};
_.p.showInputChanged=function(){};
_.p.setShowInput=function(h){this.showInput=h};
li.prototype.setShowInput=li.prototype.setShowInput;li.prototype.showInputChanged=li.prototype.showInputChanged;li.prototype.openOnClickHandler=li.prototype.openOnClickHandler;li.prototype.openOnClick_=li.prototype.openOnClick_;li.prototype.closeOnOutsideClickHandler=li.prototype.closeOnOutsideClickHandler;li.prototype.closeOnOutsideClickCondition=li.prototype.closeOnOutsideClickCondition;li.prototype.closeOnOutsideClick_=li.prototype.closeOnOutsideClick_;li.prototype.stopPropagation_=li.prototype.stopPropagation_;
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],li.prototype,"showInput",void 0);_.Y([_.f3("click"),_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],li.prototype,"stopPropagation_",null);_.Y([_.Nm("showInput"),_.V("design:type",Function),_.V("design:paramtypes",[Boolean]),_.V("design:returntype")],li.prototype,"showInputChanged",null);_.Y([_.DM()],li);_.v3C=[li.prototype];var HFc;var $aI;var rm=function(){return _.D.apply(this,arguments)||this};
_.f(rm,_.D);_.p=rm.prototype;_.p.computePreselectedOption=function(h,E){return E===this.itemSelected_?h:void 0};
_.p.dataChanged_=function(){var h=this;this.preselectedSubreason=this.itemSelected_=-1;var E;(E=this.data)!=null&&E.key&&_.pQ(this,function(){var g,Z=Number((g=h.data)==null?void 0:g.key);!Number.isNaN(Z)&&(h.itemSelected_=Z,g=(g=(h.data.items||[])[Z])&&g.optionSelectableItemRenderer&&g.optionSelectableItemRenderer.preselectedIndex)&&(h.preselectedSubreason=g)})};
_.p.isSubReasonHidden_=function(h,E){return h!=E};
_.p.onTopItemSelected_=function(h,E){for(var g=_.UB(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),Z=0,M=g.length;Z<M;Z++)g[Z].select(0);_.BX(this.hostElement,"yt-report-form-update",[E.item.value]);h.stopPropagation()};
_.p.onItemSelected_=function(h,E){_.BX(this.hostElement,"yt-report-form-update",[E.item.value]);h.stopPropagation()};
_.p.getItem_=function(h){return h.serviceItem?h.serviceItem:h.navigationItem?h.navigationItem:h.optionSelectableItemRenderer?h.optionSelectableItemRenderer:null};
_.p.computeText_=function(h){return(h=this.getItem_(h))?this.ytRendererBehavior.getSimpleString(h.text):null};
_.p.validate=function(){return this.itemSelected_!==-1};
_.p.computeAriaLabel_=function(h){var E=_.Wp(h.text);(h=h.accessibility&&h.accessibility.accessibilityData&&h.accessibility.accessibilityData.label)&&(E+=". "+h);return E};
_.p.computeItemSelected_=function(h){return h};
_.p.preventSelection_=function(h){h.stopPropagation();this.tooltipTapped=!0};
_.p.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.p.updateItemSelectedFromBinding=function(h){this.itemSelected_=h.detail.value};
_.p.save=function(){var h;this.validate()&&(h=this.data)!=null&&h.items&&(h=this.data.items[this.itemSelected_],h!=null&&h.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(h.optionSelectableItemRenderer.submitEndpoint)||_.LZ(this.hostElement,[h.optionSelectableItemRenderer.submitEndpoint])))};
rm.prototype.onPaperRippleTransitionEnd_=rm.prototype.onPaperRippleTransitionEnd_;rm.prototype.dataChanged_=rm.prototype.dataChanged_;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],rm.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rm.prototype,"data",void 0);_.Y([_.x({value:-1}),_.V("design:type",Number)],rm.prototype,"itemSelected_",void 0);
_.Y([_.x({computed:"computeItemSelected_(itemSelected_)"}),_.V("design:type",Number)],rm.prototype,"value",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],rm.prototype,"restoreFocusOnClose",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],rm.prototype,"tooltipTapped",void 0);_.Y([_.x({value:-1}),_.V("design:type",Number)],rm.prototype,"preselectedSubreason",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rm.prototype,"dataChanged_",null);_.Y([_.f3("transitionend"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rm.prototype,"onPaperRippleTransitionEnd_",null);_.Y([_.yc({is:"yt-options-renderer",disableElementRegistration:!0})],rm);
_.X(rm,"yt-options-renderer",function(){if($aI===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;HFc===void 0&&(HFc=document.createElement("template"));var Z=HFc;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);$aI=h}h=$aI;return h},{mode:2});var K1x;var OFG;var n3U;var XJC;var YWG;var sop;var m7=function(){return _.D.apply(this,arguments)||this};
_.f(m7,_.D);m7.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
m7.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
m7.prototype.onTap=function(h){if(this.hostElement.classList.contains("selected")||_.BX(this.hostElement,"yt-share-panel-can-select-contact-action")[0])h&&h.detail&&(h.detail.x||h.detail.y)&&_.UB(this.hostElement).querySelector("#target").blur(),(h=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),h={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:h?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.BX(this.hostElement,"yt-share-panel-select-contact-action",[h])};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],m7.prototype,"ytRendererBehavior",void 0);_.Y([_.x({observer:"onDataChanged"}),_.V("design:type",Object)],m7.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],m7.prototype,"componentTitle",void 0);_.Y([_.Sg("#thumbnail"),_.V("design:type",Object)],m7.prototype,"thumbnail",void 0);_.Y([_.yc({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],m7);
_.X(m7,"yt-enrolled-contact-renderer",function(){if(sop===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;YWG===void 0&&(YWG=document.createElement("template"));var Z=YWG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);sop=h}h=sop;return h},{mode:2});var VXU;var ktx;var vD=function(){return _.D.apply(this,arguments)||this};
_.f(vD,_.D);vD.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
vD.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
vD.prototype.onTap=function(h){if(this.hostElement.classList.contains("selected")||_.BX(this.hostElement,"yt-share-panel-can-select-contact-action")[0])h&&h.detail&&(h.detail.x||h.detail.y)&&_.UB(this.hostElement).querySelector("#target").blur(),(h=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),h={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:h?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.BX(this.hostElement,"yt-share-panel-select-contact-action",[h])};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.Y([_.x({observer:"onDataChanged"}),_.V("design:type",Object)],vD.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.V("design:type",String)],vD.prototype,"componentTitle",void 0);_.Y([_.Sg("#thumbnail"),_.V("design:type",Object)],vD.prototype,"thumbnail",void 0);_.Y([_.yc({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],vD);
_.X(vD,"yt-suggested-contact-renderer",function(){if(ktx===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;VXU===void 0&&(VXU=document.createElement("template"));var Z=VXU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ktx=h}h=ktx;return h},{mode:2});var HD=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-share-panel-reset-action":"onReset"};return h};
_.f(HD,_.D);HD.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"}}}}}};
HD.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.BX(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
HD.prototype.onReset=function(){for(var h=_.UB(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),E=h.length-1;E>=0;E--)h[E].classList.toggle("selected")};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],HD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],HD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({observer:"onDataChanged"}),_.V("design:type",Object)],HD.prototype,"data",void 0);
_.Y([_.yc({is:"yt-contact-section-renderer",disableElementRegistration:!0})],HD);
_.X(HD,"yt-contact-section-renderer",function(){if(XJC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;n3U===void 0&&(n3U=document.createElement("template"));var Z=n3U;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);XJC=h}h=XJC;return h},{mode:2});var $0=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return h};
_.f($0,_.D);_.p=$0.prototype;_.p.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.p.onYtRefreshFormCommand=function(h){var E;(h=_.e((E=_.e(h,_.d$f))==null?void 0:E.formRenderer,max))&&this.set("data",h)};
_.p.reset=function(){var h=_.UB(this.hostElement).querySelector("#fields").children;h=_.G(h);for(var E=h.next();!E.done;E=h.next())E=E.value,E.reset&&E.reset()};
_.p.getForm=function(){var h={},E=_.UB(this.hostElement).querySelector("#fields").children;E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;if(!g.validate())return null;h[g.data.key]=g.value}return h};
_.p.submitFormFields=function(){if(this.fields)for(var h=_.G(this.fields),E=h.next();!E.done;E=h.next())E=E.value,E.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?E.save():E.nodeName==="YT-OPTIONS-RENDERER"&&E.save()};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$0.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$0.prototype,"data",void 0);_.Y([_.xA("#fields > *"),_.V("design:type",Array)],$0.prototype,"fields",void 0);
_.Y([_.yc({is:"yt-form-renderer",disableElementRegistration:!0})],$0);
_.X($0,"yt-form-renderer",function(){if(OFG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;K1x===void 0&&(K1x=document.createElement("template"));var Z=K1x;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);OFG=h}h=OFG;return h},{mode:2});var yxX;var Ks=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return h};
_.f(Ks,_.D);Ks.prototype.onCheckboxChange=function(h){this.data&&(h=(this.checked=_.zw(h).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})};
Ks.prototype.handleUpdateCheckboxCommand=function(h){(h=_.e(h,_.$$M))&&this.data&&this.data.id===h.id&&(this.set("data.disabled",h.disabled),this.set("data.title",h.title))};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ks.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ks.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Ks.prototype,"checked",void 0);_.Y([_.K({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Ks);
_.X(Ks,"ytd-settings-checkbox-renderer",function(){if(yxX!==void 0)return yxX;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return yxX=h},{mode:1});var F10;var OI=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return h};
_.f(OI,_.D);OI.prototype.dataChanged=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return h.radio.removeAttribute("checked"),!h.data||!h.data.id||h.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.tXx()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(E=h.data&&h.data.id)?g.yield(xaC(h.data.id),4):g.jumpTo(3):(h.set("data.hidden",!0),g.jumpTo(0));g.nextAddress!=3&&(E=g.yieldResult);E&&_.BX(h.hostElement,"yt-select-settings-radio-option",[h.data.id]);_.SK(g)})};
OI.prototype.onButtonChanged=function(h){_.zw(h).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.BX(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
OI.prototype.onSelectOption=function(h){this.data&&this.data.id&&(this.data.id===h?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
OI.prototype.dataChanged=OI.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OI.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],OI.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.Sg("#radio"),_.V("design:type",Object)],OI.prototype,"radio",void 0);_.Y([_.x(),_.V("design:type",Object)],OI.prototype,"data",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],OI.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],OI);
_.X(OI,"ytd-settings-radio-option-renderer",function(){if(F10!==void 0)return F10;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return F10=h},{mode:1});var Axx;var ns=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return h};
_.f(ns,_.D);
ns.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"}}}};
ns.prototype.handleUpdateTextCommand=function(h){(h=_.e(h,_.K9B))&&this.data&&this.data.id===h.id&&this.set("data",h)};
ns.prototype.handleUpdateConnectedAppRendererCommand=function(h){if(_.e(h,_.X5C)&&this.data){var E,g;if(h=(E=_.e(h,_.X5C))==null?void 0:(g=E.newConnectedAppRenderer)==null?void 0:g.connectedAppRenderer)this.data=h}};
ns.prototype.computeConnectedAppStyle=function(h){return h.style?h.style.toLowerCase().replace(/_/g,"-"):""};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ns.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.V("design:type",String)],ns.prototype,"connectedAppStyle",void 0);_.Y([_.K({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ns);
_.X(ns,"ytd-connected-app-renderer",function(){if(Axx!==void 0)return Axx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Axx=h},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.$d("iuT5Oc");

_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("L3n37");
var XTr=function(h){return h.watch.isLearningJourneyActive},Y$K=_.Uz(115994),s8U=_.Uz(115993),VMx=function(h,E,g){var Z=this;
var M=g.dragDownAction;this.layer=0;this.JSC$23163_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.JSC$23163_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return Z.dragDownAction()}}}};
this.fullscreen=!1;var W=_.SQ();_.Ht(W,Y$K,this.layer);_.Ht(W,s8U,this.layer);this.dragDownAction=function(){M();_.TT(W,{visualElement:Z.fullscreen?Y$K:s8U})};
this.gesture=new _.Om(h,E,this.JSC$23163_watchConfig,"pandown");this.attach()};
VMx.prototype.attach=function(){this.gesture.attach()};
VMx.prototype.detach=function(){this.gesture.detach()};
VMx.prototype.update=function(h){this.fullscreen=h;this.gesture.config=h?this.JSC$23163_watchFullScreenConfig:this.JSC$23163_watchConfig};var kqa=function(h){_.Yt.call(this);var E=this;this.rootElement=h;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(g){E.initOrDisposeActiveModules(g)}));
this.onAttached()};
_.f(kqa,_.Yt);_.p=kqa.prototype;_.p.getRoot=function(){return this.rootElement};
_.p.getElement=function(h){return this.rootElement.getElement(h)};
_.p.setPlayerResponse=function(h){this.playerResponse=h;this.publish("PLAYER_RESPONSE_UPDATED",h)};
_.p.getPlayerResponse=function(){return this.playerResponse};
_.p.setWatchNextResponse=function(h){this.watchNextResponse===h?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=h,this.publish("WATCH_NEXT_RESPONSE_UPDATED",h))};
_.p.getWatchNextResponse=function(){return this.watchNextResponse};
_.p.registerActionHandler=function(h,E){var g=this;if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var Z={};_.bp(_.Tq.getInstance(),(Z[h]=E,Z),this.getRoot())}else this.actionHandlers.has(h)||(this.actionHandlers.set(h,[]),Z={},_.bp(_.Tq.getInstance(),(Z[h]=function(){var M=_.VF.apply(0,arguments);return(g.actionHandlers.get(h)||[]).map(function(W){return W.apply(null,_.$E(M))})},Z),this.getRoot())),this.actionHandlers.get(h).push(E)};
_.p.unregisterActionHandler=function(h){if(_.J("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.up(_.Tq.getInstance(),(E[h]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(h))?(E.pop(),E.length===0&&(E={},_.up(_.Tq.getInstance(),(E[h]=!0,E),this.getRoot()),this.actionHandlers.delete(h))):_.O$(new _.xX("Attempted to unregister an action handler which is not registered.",h))};
_.p.addPageDisposeJob=function(h){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.JM$(this.rootElement.pageDisposeJobs,h)};
_.p.removePageDisposeJob=function(h){this.rootElement.pageDisposeJobs&&_.Xz(this.rootElement.pageDisposeJobs,h)};
_.p.dispatchEvent=function(h,E){_.Ra(this.rootElement,h,E)};
_.p.provideRenderingData=function(h,E){this.rootElement.provideRenderingData(h,E)};
_.p.scrollWatchTo=function(h,E){var g;(g=this.watchScrollManager)==null||g.scrollWatchTo(h,E)};
_.p.focusOnPlayer=function(){var h=this.getElement("PLAYER");_.pQ(h,function(){if(h&&h.firstElementChild){var E=h.querySelector(".html5-video-player");E&&(_.tS(_.GF().resolve(_.DC)),E.focus())}else _.O$(Error("To"))})};
var y1j=function(h){var E=!!h.rootElement.theater,g=!!h.rootElement.fullscreen,Z;(Z=h.watchCinematicManager)==null||_.jCj(Z,g,E)};
_.p=kqa.prototype;_.p.subscribeToActiveChanged=function(h,E){E=E===void 0?!0:E;var g=_.kT(_.Gv(),XTr,function(Z){h(Z)});
E&&h(XTr(_.Gv().getState()));return g};
_.p.isActive=function(){return XTr(_.Gv().getState())};
_.p.onAttached=function(){var h=_.J("external_fullscreen");_.J("use_unified_flag_accessor")&&(h=_.GF().resolve(_.fTU).retriever.getFlag(_.CXC));(h||_.Xn("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.p.initPersistentModules=function(){if(_.J("kevlar_watch_flexy_theater_manager")){var h=new _.ktL(this);_.jf(this,h)}h=new _.rlr(this);_.jf(this,h);h=new _.rj(this);_.jf(this,h);h=new _.xdj(this);_.jf(this,h);h=new _.apx(this);_.jf(this,h);h=new _.m4(this);_.jf(this,h);_.J("kevlar_watch_flexy_playlist_manager")&&(h=new _.oLK(this),_.jf(this,h))};
_.p.initOrDisposeActiveModules=function(h){h?(this.watchScrollManager=new _.KK(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Ali(this)),this.activeModules.push(new _.FEi(this)),this.activeModules.push(new _.LgG(this)),this.activeModules.push(new _.XxM(this)),_.J("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.QpL(this)),this.activeModules.push(new _.ELj(this)),_.J("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.d2j(this)),
_.J("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.zwa(this)),_.J("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.IVG(this),this.activeModules.push(this.watchCinematicManager),y1j(this)),_.J("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.Wgr(this)),_.J("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Dd2(this)),h=_.J("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.J("kevlar_watch_flexy_comments_manager")&&
!h&&this.activeModules.push(new _.qqi(this)),_.J("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.iFL(this)),this.activeModules.push(new _.hwG(this)),this.activeModules.push(new _.bli(this)),_.J("web_enable_timely_actions")&&this.activeModules.push(new _.Myx(this)),_.J("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.NXj(this)),_.J("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.Uaj(this)),_.J("web_fullscreen_components")&&
this.activeModules.push(new _.ZFM(this)),_.J("web_player_rtr_ctrls")&&this.activeModules.push(new _.SWj(this))):(_.G8(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.p.disposeInternal=function(){_.Yt.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ze.Object.defineProperties(kqa.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var FJG={},A10=["learning-journey-engagement-panel","PAlearning_chat"];
FJG.YtdLearningJourneyWatchBehavior=[_.T.YtRendererBehavior,_.dM.YtPlayerListenerBehavior,_.wK.YtRendererstamperBehavior,_.Yl.YtActionHandlerBehavior,_.GP.YtPageBehavior,_.Xd.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 _.Xn("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.J("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 _.Xn("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 _.J("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.J("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 _.cx("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cx("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)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_rounded_player_large")||_.J("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 _.J("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.J("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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 _.J("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.J("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:_.dm(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.dm(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var h=this;this.watchController=void 0;this.pageDisposeJobs=[function(){h.showMetadataPlaceholder_()},
function(){_.J("web_watch_dont_clear_comments")||h.clearComments_()},
function(){h.clearPlayerAds_()},
function(){h.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;_.J("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.J("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.BQG(function(){return _.GD(h)},this.hostElement);
this.pageDisposeJobs.push(function(){h.youThereManager_.reset()});
_.J("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){h.resetFullerscreenEduButtonForNewPlayback_()}));
_.J("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.NO;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;_.J("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.J("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));_.J("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qm(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(h){h&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:h}),h.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(h){_.J("kevlar_watch_flexy_theater_manager")&&(this.theater=h,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.J("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(h){!_.J("kevlar_watch_while_v2")&&!_.J("web_watch_pip")||h||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(h){this.active!==void 0&&(this.fullscreen=h,_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(h){this.active!==void 0&&(_.Ra(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.J("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(h>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(h){this.initCsi_();this.updatePageData_(h)},
updatePageData_:function(h){var E=this;if(h)if(this.data===h){this.onPageLoadWithSameData_();var g;(g=this.watchController)==null||g.setWatchNextResponse(this.data)}else this.data=h;this.playlist&&_.nZ({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.s7("nw");this.loading=!1;_.xW(_.KP,function(){E.initDclkstatus_();var Z,M=((Z=E.player)==null?void 0:Z.getVideoData().cpn)||"";_.EWi(function(W,z){_.nNU(W,z,M)})})},
onPageLoadWithSameData_:function(){_.J("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 h=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!h);this.set("loadingData.playlistLoading",h&&h!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),h=this.watchNextSkeletonEl_.firstElementChild;h;)h.classList.remove("hidden"),h=h.nextElementSibling;var E,g,Z;h=(E=this.loadingData)==null?void 0:(g=E.endpoint)==null?void 0:(Z=g.watchEndpoint)==null?void 0:Z.videoId;var M;h&&(M="https://i.ytimg.com/vi/"+h+"/frame0.jpg");_.UB(this.hostElement).querySelector("#player").style.backgroundImage=M?"url("+M+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var h=_.UB(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&h&&(h.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,g;(g=(E=this.watchMetadata).updateSentimentBarWidth)==
null||g.call(E);var Z,M;(M=(Z=this.watchMetadata).resize)==null||M.call(Z)}_.UB(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(h){var E=_.UB(this.hostElement).querySelector(h);E?_.oa(E,!1):_.O$(new _.xX("Overscroll monitor not found for component: ",h))},
removeSplitScrollMouseTrap:function(h){var E=_.UB(this.hostElement).querySelector(h);E?_.Ia(E):_.O$(new _.xX("Disposal component for  overscroll monitoring not found: ",h))},
onLoadingChanged_:function(h){h?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(h){var E=this;h?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.KP.addLowPriorityJob(function(){E.onWindowResized_(_.wN(!0))})},
updateTheaterModeState_:function(h){if(!_.J("kevlar_watch_flexy_theater_manager")){h=h||this.fullWindowMode_;if(this.theater!==void 0||h)this.theater=h;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();h&&_.mZN()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var h=this.theater;_.J("external_fullscreen")&&this.fullscreen&&(h=!0);h=h?_.UB(this.hostElement).querySelector("#player-full-bleed-container"):_.UB(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),g=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip");E.parentElement!==h&&(g&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.GD(this).appendTo(h,E),h.appendChild(_.UB(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var h=this;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.GF().resolve(_.Yu).deactivate(),2);h.updatePlayerLocation();_.SK(E)})},
updateCinematicsLocation:function(){var h=this.getElement("CINEMATICS");if(h){var E=this.getCinematicsLocationContainer();h.parentElement!==E&&E.appendChild(h);var g;(g=this.watchController)==null||y1j(g)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.UB(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.UB(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(h,E){var g=document.documentElement.hasAttribute("dark"),Z=g&&_.J("web_cinematic_theater_mode"),M=g&&_.J("web_cinematic_fullscreen");g=!g&&this.cinematicLightTheme;return h&&Z||E&&M||(E||h)&&g},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var h;(h=this.watchController)==null||h.setWatchNextResponse(this.data);_.J("kevlar_watch_flexy_comments_manager")||this.initComments_();_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.GF().resolve(_.oS).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.J("web_watch_start_chat_in_theater_mode")){var E,
g,Z;if((E=this.data)==null?0:(g=E.contents)==null?0:(Z=g.twoColumnWatchNextResults)==null?0:Z.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var M,W;((M=this.data)==null?0:(W=M.contents)==null?0:W.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(h){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);h&&h.playabilityStatus&&(E=this.isVideoPlayable_(h.playabilityStatus,this.getPlayerOverlays_(this.data)),h=this.isLiveStreamOffline_(h.playabilityStatus),E&&!h||_.pQ(this,function(){_.s7("pbu")}));
this.setPlayerAds_();_.U7(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(h){_.Gv().dispatch(_.RY({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));h?this.activate_():this.deactivate_()},
attached:function(){var h=this;this.watchController=new kqa(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.J("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.GD(this);_.J("kevlar_disable_prepare_player")||E.preparePlayer();_.J("kevlar_watch_flexy_playlist_manager")||_.GF().resolve(_.oS).setPlayer(E);this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.UI()+
"px"};!_.cx("kv_pl_mx_sz_ks")&&_.cx("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.CrN+"px");_.cx("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.JhU+"px");this.safeUpdateStyles(E);_.J("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new VMx(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return h.onPlayerTouchPanDown_()}}));
_.J("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.UB(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var h=_.UI(),E=_.FS+h,g=E;this.fixedPanels&&(E+=_.dcM);var Z=657+h;h=1327+h;_.UB(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.UB(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(Z+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(h+"px)");_.UB(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(h+"px)");
_.UB(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+g+"px)"},
calculateCurrentPlayerSize_:function(){var h=_.UB(this.hostElement).querySelector("#miniplayer-bar").firstChild;return h&&h.active||this.theater||_.J("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Ns(NaN,NaN):_.pTj(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.pTj(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.p8(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var h=this;this.onWindowResized_(_.wN());_.J("browse_skeleton_removal_on_watch_killswitch")||_.Xn("IS_SHELL_LOAD")&&_.B3J();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.GD(this);E.addEventListener("yt-player-updated",_.qm(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(g){h.playerApiReady_(g)});
_.J("kevlar_watch_flexy_playlist_manager")||(E=_.GF().resolve(_.oS),_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.qm(this,this.onYtNavigate_)),E.setPlaylistComponent(_.UB(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.qm(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.KP.addLowPriorityJob(function(){_.Ra(h.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.GD(this).removeEventListener("yt-player-updated",_.qm(this,this.onPlayerUpdated_));if(!_.J("kevlar_watch_flexy_playlist_manager")){var h=_.GF().resolve(_.oS);_.J("kevlar_watch_observe_playlist_navigations_killswitch")&&h.removeEventListener("yt-navigate",_.qm(this,this.onYtNavigate_));h.cancelVideoSkip();h.removeEventListener("yt-playlist-data-updated",_.qm(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.J("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Ra(this.hostElement,"yt-autonav-pause-player",!1);h=_.cX();_.J("kevlar_exit_fullscreen_leaving_watch")&&h&&_.iw(h)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(h){this.player&&this.player.updateVideoData({rvs:h.rvs})},
getPageContents:function(h){return h&&h.contents&&h.contents.twoColumnWatchNextResults&&h.contents.twoColumnWatchNextResults.results&&h.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(h){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",h)},
onRetrieveLocation_:function(h,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);h.stopPropagation()},
onSubscriptionChanged_:function(h,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.fjX("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.UB(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.UB(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(h){this.player=h;this.setPlayerState(h.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.J("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.J("kevlar_unified_player")||_.J("kevlar_player_new_bootstrap_adoption"))&&_.k7()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(h,E){E=E===void 0?!0:E;_.cX()&&_.J("external_fullscreen")&&_.iw(document.documentElement);this.theaterRequested_=h;E&&_.fl("wide",h?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.BX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Ra(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(h){_.nI(h,typeof this.player),this.player&&_.nI(h,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var h;((h=this.player)==null?0:h.isFullscreen())?this.player.toggleFullscreen():_.BX(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(h,E){return this.loading?E:!!Object.keys(h).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(h){if(h){h=_.G(h);for(var E=h.next();!E.done;E=h.next())E=E.value,E.youThereRenderer&&_.j8r(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(h){return h||{}},
userEngagementConfigDataChanged_:function(h){if(h)if(h.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.zq()<h.lowEngagementThresholdMs||_.e8G(E,!0)}else h.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.BX(this.hostElement,"yt-autonav-pause-user-engagement",[h])},
isPlayerUnavailable_:function(h,E,g){return!!h&&!this.isVideoPlayable_(h,g)&&!E},
getPlayerOverlays_:function(h){return(h==null?void 0:h.playerOverlays)||null},
isVideoPlayable_:function(h,E){if(!h)return!1;var g=h.status==="OK"||h.status==="LIVE_STREAM_OFFLINE",Z=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",h)||this.get("errorScreen.ypcTrailerRenderer",h);h=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",h);var M;E=E==null?void 0:(M=E.playerOverlayRenderer)==null?void 0:M.gatedActionsOverlayRenderer;return!!g||!!Z||!!h||!!E},
hasWatchNextResponseErrorRenderer:function(h){var E=this.getPageContents(h),g,Z,M,W,z;return!(h==null?0:(g=h.contents)==null?0:(Z=g.twoColumnWatchNextResults)==null?0:Z.secondaryResults)&&!!((M=E[0])==null?0:(W=M.itemSectionRenderer)==null?0:(z=W.contents[0])==null?0:z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(h){return h?h.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(h,E,g){var Z=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),M=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];M=_.J("web_no_skip_video_on_verification_checks")?(h==null?void 0:h.status)&&M.includes(h.status):h&&h.status==="AGE_CHECK_REQUIRED";var W=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",h);W==void 0&&(W=!0);!g||this.isVideoPlayable_(h,this.getPlayerOverlays_(E))||
Z||M||!W||_.GF().resolve(_.oS).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.z8r()},
onPlayerFeedbackStartRequest_:function(h){_.BX(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:h}])},
onPlayerFeedbackArticleRequest_:function(h){_.BX(this.hostElement,"yt-help-dialog-requested",[h])},
onPlayerYpcContentRequest_:function(){var h,E,g,Z,M,W,z,c,I=((h=this.data)==null?NaN:(E=h.contents)==null?NaN:(g=E.twoColumnWatchNextResults)==null?NaN:(Z=g.secondaryResults)==null?NaN:(M=Z.secondaryResults)==null?NaN:(W=M.offerModule)==null?NaN:(z=W.tvfilmOfferModuleRenderer)==null?NaN:(c=z.actionButtons)==null?NaN:c.length)-1;h=[".offerButton.buttonRenderer.",".actionButtons."+(I>=0?I:0)+".buttonRenderer."];E=_.G(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(g=E.next();!g.done;g=E.next())for(g=g.value,Z=_.G(h),M=Z.next();!M.done;M=Z.next())if(M="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+g+M.value,M=this.get(M+"navigationEndpoint",this.data)||this.get(M+"serviceEndpoint",this.data)||this.get(M+"command",this.data)){_.qB(M,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(h){_.Ra(this.hostElement,"yt-autonav-pause-player",h)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(h){h()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(h){switch(h){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(h){switch(h){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Ra(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(h)},
setPlayerState:function(h){_.Gv().dispatch(_.dxA(h))},
onPlayerSubscribe_:function(h){_.BX(this.hostElement,"yt-player-subscribe",[h])},
onPlayerUnsubscribe_:function(h){_.BX(this.hostElement,"yt-player-unsubscribe",[h])},
onPlayerAdYtShowToast_:function(h){_.BX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:h.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(h){if(h)return h},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(h){return!_.J("web_watch_move_summary_to_sd")&&!!h},
computeWatchMetadataRefresh:function(){return _.J("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var h,E,g,Z;this.watchNextSecondaryResults=(h=this.data)==null?void 0:(E=h.contents)==null?void 0:(g=E.twoColumnWatchNextResults)==null?void 0:(Z=g.secondaryResults)==null?void 0:Z.secondaryResults}},
setRichGridRendererData:function(h){this.richGridRendererData=h},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var h,E=(h=this.data)==null?void 0:h.engagementPanels;if(E==null?0:E.length){h=null;E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;if(((Z=g.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)==="engagement-panel-structured-description"){h=g;break}}var M,W,z;h=(M=h)==null?void 0:(W=M.engagementPanelSectionListRenderer)==null?void 0:(z=W.content)==null?void 0:z.structuredDescriptionContentRenderer;if(h==null?0:h.items){M=
[];W=_.G(h.items);for(z=W.next();!z.done;z=W.next()){z=z.value;if(!_.J("sd_horizontal_list_show_nav_killswitch")){var c=Z=g=E=h=void 0,I=void 0,B=(h=z.horizontalCardListRenderer)==null?void 0:(E=h.header)==null?void 0:(g=E.richListHeaderRenderer)==null?void 0:(Z=g.navigationButton)==null?void 0:(c=Z.buttonRenderer)==null?void 0:(I=c.command)==null?void 0:I.commandExecutorCommand;B&&B.commands&&(B.commands=B.commands.filter(function(U){return!_.e(U,_.HMM)}))}z.expandableVideoDescriptionBodyRenderer||
z.videoDescriptionHeaderRenderer||M.push(z)}return{items:M}}}},
constructWarning_:function(h){return{text:_.MR(h),type:"WARNING"}},
isPlaShelfEnabled_:function(h){if((this.get("adPlacements",h)||[]).length)return!0;h=this.get("playerAds",h)||[];return!(!h.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",h[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var h=this;_.Ra(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.J("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.GD(this).getPlayerPromise().then(function(g){g.updateFullerscreenEduButtonVisibility(h.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Ra(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var h=this;this.commentsReady=!1;_.KP.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.xW(_.KP,function(){h.setComments_()},1E3)},
setComments_:function(){if(!_.J("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.s7("cmi");_.KP.cancelJob(this.setCommentsJobId_);var h=this.getPageContents(this.data);if(h&&h.length){h=_.G(h);for(var E=h.next();!E.done;E=h.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Ra(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.J("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.J("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.s7("cmc")},
doRemoveComments_:function(){this.comments={};_.J("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.KP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.KP.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(h,E){var g=_.e(E.endpoint,_.MH);g&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||g.videoId!==E.videoId||g.playlistId&&g.playlistId!==E.playlistId||g.index!==void 0&&g.index!==E.index||typeof g.startTimeSeconds!=="number"||(h.stopPropagation(),this.setScrollTop(0),_.GD(this).getPlayerPromise().then(function(Z){var M=g.startTimeSeconds;Z.seekTo(M);Z.wakeUpControls();M<Z.getDuration()&&Z.playVideo()})))},
updatePlayerStartTime_:function(){var h=_.knU();"t"in h&&(h=_.Gqa(h.t),this.player.seekTo(h,!0))},
updateTitleFromWatchNext:function(h){h=this.getPageContents(h);var E,g;(h=_.Wp(h==null?void 0:(E=h[0])==null?void 0:(g=E.videoPrimaryInfoRenderer)==null?void 0:g.title))&&_.Ra(this.hostElement,"yt-update-title",h)},
updateTitle_:function(h){h=this.get("videoDetails.title",h)||"";_.Ra(this.hostElement,"yt-update-title",h)},
syncWithRemoteVideo_:function(h,E,g){if(this.active&&this.player){var Z=this.player.getVideoData();if(Z.video_id===g&&(g=Z.list,_.J("polymer_enable_mdx_queue")&&g&&g.startsWith("RQ")&&(g=void 0),Z.video_id!==h||g!=E)){var M;_.J("kevlar_player_watch_endpoint_navigation")?M=_.Bn$(_.gWM(h,E)):M=this.buildWatchEndpoint_(h,E);_.Ra(this.hostElement,"yt-navigate",{endpoint:M,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(h,E,g){return _.cn(h,E,g)},
initDclkstatus_:function(){_.WJ2()},
attachWatchPageSkeleton_:function(){var h=document.querySelector("#watch-page-skeleton");if(h){var E=h.querySelector("#primary-info"),g=h.querySelector("#secondary-info"),Z=h.querySelector("#related");E&&_.UB(this.hostElement).querySelector("#info-skeleton").appendChild(E);g&&_.UB(this.hostElement).querySelector("#meta-skeleton").appendChild(g);Z&&(_.UB(this.hostElement).querySelector("#related-skeleton").appendChild(Z),this.watchNextSkeletonEl_=Z);_.f8(h)}},
handlePlayerUpdated_:function(){_.GD(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(h,E){if(this.watchNextSkeletonEl_&&typeof E!=="undefined"){var g=this.watchNextSkeletonEl_.children,Z=h&&h.indexSplices.length?h.indexSplices[0].index:0;h=Math.min(this.watchNextShownItems.length,g.length);E||(Z=0,h=g.length);for(E=Z;E<h;E++)g[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(h){_.J("external_fullscreen")||_.BX(this.hostElement,"yt-player-fullscreen",[h.fullscreen])},
onFullscreenChange_:function(h){this.fullscreen=h;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.GD(this);E.getPlayerPromise().then(function(g){g.setFauxFullscreen(!!_.cX())});
this.updateFullBleedElementLocations();h&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(h,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(h){return h},
computeShouldShowMerchShelf:function(h,E){return E&&!!h},
computeResponseHasComments:function(h){var E,g,Z,M,W;return!!(h==null?0:(E=h.contents)==null?0:(g=E.twoColumnWatchNextResults)==null?0:(Z=g.results)==null?0:(M=Z.results)==null?0:(W=M.contents)==null?0:W.some(function(z){var c;return(z==null?void 0:(c=z.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(h,E){this.responseHasComments=this.computeResponseHasComments(this.data);return!!h&&!!Object.keys(h).length&&!E},
identity:_.va,onWindowResized_:function(h){this.windowSize_=h;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.J("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(h){var E=this;h&&h.type!=="dataloaded"&&h.type!=="dataupdated"||_.GD(this).getPlayerPromise().then(function(g){var Z=g.getPlayerState();Z!==5&&Z!==0&&(g=1/g.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==g&&(E.videoHeightToWidthRatio_=g))})},
schedulePlayerSizeUpdate_:function(h){var E=this,g=_.J("kevlar_watch_while_v2")||_.J("web_watch_pip"),Z=function(){if(E.watchMetadata){var M,W;(W=(M=E.watchMetadata).resize)==null||W.call(M)}_.GD(E).getPlayerPromise().then(function(z){if(_.J("kevlar_set_internal_player_size")){if(!g||!E.isMiniplayerActive()){var c=E.calculateCurrentPlayerSize_();z.setInternalSize(c.width,c.height)}}else z.setSize(NaN,NaN);_.J("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
h?Z():_.Pw(_.KP,Z)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(h){this.set("data.survey",h.detail)},
onYtShowSurveyCommand_:function(h){this.set("data.survey",_.e(h,_.Pp0).survey)},
onDownloadedVideoDeleted:function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1){if(!E.active||(g=E.playerData)==null||!g.offlineState||E.videoId!==h)return M.return();(Z=E.player)==null||Z.stopVideo();_.sU().navigatingAwayFromWatchDeletedVideo=!0;_.qB(_.Ix$,E.hostElement);return M.yield(_.sU().navigationFinishPromise,2)}_.sU().navigatingAwayFromWatchDeletedVideo=!1;_.SK(M)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var h;this.theater?h=_.vw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):h=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==h&&(this.watchWhileScrollThreshold_=h,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var h=_.UB(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&h){var E=this.windowSize_.height>=624,g=this.active?this.getScrollTop():0;!h.active&&E&&g>=this.watchWhileScrollThreshold_?(h.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):h.active&&(!E||g<this.watchWhileScrollThreshold_&&!_.cX())&&(h.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(h,E){if(h!==!0||E!==void 0){h=!_.J("live_chat_over_engagement_panels");E=_.UB(this.hostElement).querySelector("#chat-container");var g=_.UB(this.hostElement).querySelector("#plj-sidebar"),Z=_.UB(this.hostElement).querySelector("#panels"),M=_.UB(this.hostElement).querySelector("#plj-panels"),W=_.UB(this.hostElement).querySelector("#plj-playlist"),z=_.UB(this.hostElement).querySelector("#alerts"),c=_.UB(this.hostElement).querySelector("#playlist"),I=_.UB(this.hostElement).querySelector("#related"),
B=_.UB(this.hostElement).querySelector("#donation-shelf"),U=_.UB(this.hostElement).querySelector("#comments");this.isTwoColumns_?(z=_.UB(this.hostElement).querySelector("#secondary-inner"),z.appendChild(g),g.appendChild(W),W.appendChild(c),g.appendChild(M),h&&z.appendChild(Z),_.J("web_watch_theater_chat")||z.appendChild(E),h||z.appendChild(Z),z.appendChild(B),z.appendChild(I)):(h&&_.YS(Z,z),_.YS(c,z),_.J("web_watch_theater_chat")||_.YS(E,z),h||_.YS(Z,z),_.YS(B,z),U&&(M&&_.YS(M,U),_.YS(I,U)));_.J("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.J("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.J("web_watch_theater_chat")){var h=_.UB(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.J("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?_.J("web_watch_theater_chat_beside_player")?(E=_.UB(this.hostElement).querySelector("#panels-full-bleed-container"),(h==null?void 0:h.parentElement)!==E&&E.append(h),this.panelsBesidePlayer=!0):_.J("web_watch_theater_fixed_chat")&&
(E=_.UB(this.hostElement).querySelector("#columns"),(h==null?void 0:h.parentElement)!==E&&E.append(h),this.fixedPanels=!0):(_.J("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.J("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),E=_.UB(this.hostElement).querySelector("#playlist"),h&&E?_.sp(h,E):_.O$(new _.xX("Missing element when updating chat location",{"chatContainer defined":!!h,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(h,E){return _.J("sw_metadata_vis_toggle_ks")?!0:!!h||!!E},
computeForceDarkPanelTheme:function(h){return _.J("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&h:!1},
safeUpdateStyles:function(h){try{_.Ja(this.hostElement,h)}catch(E){_.O$(E)}},
videoHeightToWidthRatioChanged_:function(h,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.J("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(h){this.videoHeightToWidthRatio_=1/h},
computeIsVerticalVideo_:function(h){return h>=1},
computeIsFourThreeToSixteenNineVideo_:function(h){return h<=.7501&&h>=.5624},
computeIsExtraWideVideo_:function(h){return h<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.GD(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.GD(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.q$r(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(h){var E=_.YY(h)||0;_.Xt(h,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var h=_.YY("yt-fullerscreen-edu-button-click-count")||0,E=_.YY("yt-fullerscreen-edu-button-shown-count")||0,g=_.cx("external_fullscreen_button_shown_threshold"),Z=h>=_.cx("external_fullscreen_button_click_threshold")||E>=g;_.GD(this).getPlayerPromise().then(function(M){M.updateFullerscreenEduButtonSubtleModeState(Z)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(h,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.GF().resolve(_.oS).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var h=this;this.panelMaxHeightUpdateJob_&&_.KP.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.KP.addLowPriorityJob(function(){h.panelMaxHeightUpdateJob_=0;var E;!h.isTwoColumns_||h.theater||h.fullscreen?E=460:E=h.calculateNormalPlayerSize_().height;var g=E+"px";_.J("live_chat_taller_height")&&!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.J("live_chat_medium_height")&&
!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.J("live_chat_scaled_height")&&!h.theater&&(g="calc(100vh - var(--ytd-toolbar-height) - 238px)");h.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":g,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})})},
onYtShowEngagementPanelScrimAction_:function(h){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",h)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.jj(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(h){var E=_.UB(this.hostElement).querySelector("#engagement-panel-scrim");h?E.addEventListener("tap",_.qm(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.qm(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(h){if(this.hostElement.contains(h)&&!this.scrollToAnimation_.isAnimating()){var E=h.offsetTop-24;h=h.offsetTop+h.offsetHeight+24;var g=this.getPageScrollingElement(),Z=this.getScrollTop(),M=Z+g.clientHeight-56;if(E<Z+56)E-=56;else if(h>M)E=h-g.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var h=this.hostElement.querySelector("#comments");if(h&&!this.scrollToAnimation_.isAnimating()){h=h.offsetTop-56-24;if(_.J("kevlar_comment_teaser_scroll_to_midpoint")&&(h-=_.S8().height/3,h<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,h),500)}},
onYtEngagementPanelVisibleChanged:function(h,E,g){this.active&&this.trackEngagementPanelVisibility&&!_.IPr.includes(g)&&(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(g),E!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(g),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(h){return h?"":"watch-active-metadata"},
computeNewMetadataClass:function(h){return h?"watch-active-metadata":""},
computeFullBleedPlayer:function(h,E){return h||E},
computeDefaultLayout:function(h){return!h},
computeDefaultTwoColumnLayout:function(h,E){return!h&&E},
computeWatchWhilePanelsActive:function(h,E){return h||E},
computeNoBorderOnChat:function(h){return _.J("web_watch_theater_chat_no_border")&&h},
computeLiveChatPresentAndExpanded:function(h,E){return h&&!E},
computePanelExpanded:function(h,E,g){return h||E||g},
onChangeMarkersVisibility:function(h){_.GD(this).getPlayerPromise().then(function(E){var g;(g=E.changeMarkerVisibility)==null||g.call(E,_.e(h,_.sN).isVisible||!1,_.e(h,_.sN).entityKeys||[],_.e(h,_.sN).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(h){this.liveChatCollapsed=h.detail;_.Gv().dispatch(_.oWr(h.detail))},
provideRenderingData:function(h,E){switch(h){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.J("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=E;break;case "DONATION_SHELF":this.donation=E;break;
case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=E}},
toggleCinematicsActive:function(h){this.cinematicsActive=h},
isMiniplayerActive:function(){return _.GF().resolve(_.Yu).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(h){return A10.map(function(E){return h.find(function(g){var Z;return(g==null?void 0:(Z=g.engagementPanelSectionListRenderer)==null?void 0:Z.targetId)===E})}).filter(function(E){return E!==void 0})},
getNonLearningJourneyEngagementPanels:function(h){return h.filter(function(E){var g;return!A10.includes((E==null?void 0:(g=E.engagementPanelSectionListRenderer)==null?void 0:g.targetId)||"")})}}];var TQa;var Q2=function(){var h=_.D.apply(this,arguments)||this;h.flexy=!0;h.learningJourney=!0;h.viewTransitionEnabled=_.J("enable_player_resize_transition");h.smallerChatMinHeight=_.J("live_chat_smaller_min_height");h.cinematicTheaterMode=_.J("web_cinematic_theater_mode");h.transparentTheaterMode=_.J("web_transparent_theater_mode");h.cinematicFullscreen=_.J("web_cinematic_fullscreen");h.useLargerMaxPlayerValue=_.J("kevlar_flexy_use_larger_player_value");h.cinematicFullscreenV2=_.J("web_cinematic_fullscreen_v2");
h.isDarkTheme=document.documentElement.hasAttribute("dark");h.theaterLargerPlayer=_.J("web_watch_theater_larger_player");h.defaultCollapsePlaylist=_.J("web_watch_default_collapse_playlist");h.enableCanvasLayout=_.J("web_enable_canvas_on_learning_journey");return h};
_.f(Q2,_.D);_.p=Q2.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var h=this,E=function(){h.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(h){_.J("web_watch_update_narrow_width_killswitch")||_.Gv().dispatch(_.wir(!h.detail.value));this.ytdWatchBehavior.isTwoColumns_=h.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(h){this.ytdWatchBehavior.flexySmallWindow_=h.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(h){this.ytdWatchBehavior.flexyLargeWindow_=h.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(h){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=h.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(h){this.ytdWatchBehavior.watchNextCanShowMore=h.detail.value};
_.p.updateShownItemsFromBinding=function(h){h.detail.path?this.set(h.detail.path,h.detail.value):this.ytdWatchBehavior.watchNextShownItems=h.detail.value};
_.p.getElement=function(h){switch(h){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23172_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23172_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ze.Object.defineProperties(Q2.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(h=_.e(this.data.pageVisualEffects[E],_.M5))return E=void 0,(E=h.config)==null?void 0:E.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.learningJourneyEngagementPanels)==null?void 0:h.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.learningJourneyEngagementPanels)==null?void 0:h.find(function(d){var C;return(d==null?void 0:(C=d.engagementPanelSectionListRenderer)==null?void 0:C.panelIdentifier)==="learning-journey-engagement-panel"});
if(E){var g,Z,M,W,z,c,I,B,U;if(h=(B=((I=(z=((W=E==null?void 0:(g=E.engagementPanelSectionListRenderer)==null?void 0:(Z=g.content)==null?void 0:(M=Z.sectionListRenderer)==null?void 0:M.contents)!=null?W:[])[0])==null?void 0:(c=z.itemSectionRenderer)==null?void 0:c.contents)!=null?I:[])[0])==null?void 0:(U=B.accordionViewModel)==null?void 0:U.onTitleTap){var L=_.kB(h);if(L)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.eQ.instance.resolveCommand(L)}}}}}}});
_.ze.Object.defineProperties(Q2,{template:{configurable:!0,enumerable:!0,get:function(){if(TQa===void 0){var h=document.createElement("template");_.N(h,'\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  <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="watch-content" hidden="[[!showWatchResponse]]" 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 id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);TQa=h}h=TQa;return h}}});
Q2.prototype.updateMiniplayerIsActiveValue=Q2.prototype.updateMiniplayerIsActiveValue;Q2.prototype.updateScrollTopValue=Q2.prototype.updateScrollTopValue;Q2.prototype.updateFullscreenValue=Q2.prototype.updateFullscreenValue;Q2.prototype.updateTheaterValue=Q2.prototype.updateTheaterValue;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Q2.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(FJG.YtdLearningJourneyWatchBehavior),_.V("design:type",Object)],Q2.prototype,"ytdWatchBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Q2.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Q2.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Q2.prototype,"playerData",void 0);_.Y([_.x(),_.V("design:type",Object)],Q2.prototype,"browseData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"flexy",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"learningJourney",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"viewTransitionEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"smallerChatMinHeight",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"cinematicTheaterMode",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"transparentTheaterMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"cinematicFullscreen",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"useLargerMaxPlayerValue",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"cinematicFullscreenV2",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"isDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Q2.prototype,"theaterLargerPlayer",void 0);_.Y([_.x(),_.V("design:type",Object)],Q2.prototype,"defaultCollapsePlaylist",void 0);_.Y([_.x(),_.V("design:type",Object)],Q2.prototype,"enableCanvasLayout",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("playerData","browseData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q2.prototype,"showBrowseResponse",null);_.Y([_.x({reflectToAttribute:!0}),_.S("playerData","enableCanvasLayout"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q2.prototype,"showWatchResponse",null);_.Y([_.x({selector:_.XN}),_.V("design:type",Object)],Q2.prototype,"theaterValue",void 0);
_.Y([_.x({selector:_.YP}),_.V("design:type",Object)],Q2.prototype,"fullscreenValue",void 0);_.Y([_.x({selector:_.XS}),_.V("design:type",Object)],Q2.prototype,"scrollTopValue",void 0);_.Y([_.x({selector:_.so}),_.V("design:type",Object)],Q2.prototype,"miniplayerIsActiveValue",void 0);_.Y([_.Sg("#ytd-plj-player"),_.V("design:type",HTMLElement)],Q2.prototype,"ytdPlayer",void 0);_.Y([_.Sg("#playlist"),_.V("design:type",HTMLElement)],Q2.prototype,"JSC$23172_ytdPlaylistPanelRenderer",void 0);
_.Y([_.XQ("ytd-comments"),_.V("design:type",HTMLElement)],Q2.prototype,"ytdComments",void 0);_.Y([_.Sg("#primary"),_.V("design:type",HTMLElement)],Q2.prototype,"primary",void 0);_.Y([_.Sg("#secondary"),_.V("design:type",HTMLElement)],Q2.prototype,"secondary",void 0);_.Y([_.Sg("#player-container"),_.V("design:type",HTMLElement)],Q2.prototype,"playerContainer",void 0);_.Y([_.Sg("#cinematics"),_.V("design:type",HTMLElement)],Q2.prototype,"JSC$23172_cinematics",void 0);
_.Y([_.Nm("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q2.prototype,"updateTheaterValue",null);_.Y([_.Nm("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q2.prototype,"updateFullscreenValue",null);_.Y([_.Nm("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q2.prototype,"updateScrollTopValue",null);
_.Y([_.Nm("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q2.prototype,"updateMiniplayerIsActiveValue",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Q2.prototype,"cinematicLightTheme",null);_.Y([_.x({reflectToAttribute:!0}),_.S("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],Q2.prototype,"hasLearningJourneyPanels",null);
_.Y([_.S("learningJourneyEngagementPanels"),_.V("design:type",Object),_.V("design:paramtypes",[])],Q2.prototype,"backButtonData",null);_.Y([_.K({is:"ytd-watch-learning-journey"})],Q2);_.HZ.registerService(_.RMu,Q2);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("Tm0L3c");
var HI2;var $Kr;var KJx=function(){return _.D.apply(this,arguments)||this};
_.f(KJx,_.D);_.Y([_.K({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],KJx);
_.X(KJx,"ytd-ghost-comments-renderer",function(){if($Kr===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);$Kr=h}h=$Kr;return h},{mode:1});var OIF;var nWr=function(){return _.D.apply(this,arguments)||this};
_.f(nWr,_.D);_.Y([_.K({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],nWr);
_.X(nWr,"ytd-ghost-watch-metadata-renderer",function(){if(OIF===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);OIF=h}h=OIF;return h},{mode:1});var uS=function(){var h=_.D.apply(this,arguments)||this;h.ghostGridRenderer={rows:6};h.smallerChatMinHeight=_.J("live_chat_smaller_min_height");h.cinematicTheaterMode=_.J("web_cinematic_theater_mode");h.transparentTheaterMode=_.J("web_transparent_theater_mode");h.darkerPanels=_.J("web_watch_darker_panels");h.cinematicFullscreen=_.J("web_cinematic_fullscreen");h.cinematicFullscreenV2=_.J("web_cinematic_fullscreen_v2");h.isDarkTheme=document.documentElement.hasAttribute("dark");return h};
_.f(uS,_.D);_.p=uS.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.p.ready=function(){var h=this,E=function(){h.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(h){this.ytdWatchBehavior.isTwoColumns_=h.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(h){this.ytdWatchBehavior.flexySmallWindow_=h.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(h){this.ytdWatchBehavior.flexyLargeWindow_=h.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(h){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=h.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(h){this.ytdWatchBehavior.watchNextCanShowMore=h.detail.value};
_.p.updateShownItemsFromBinding=function(h){_.J("swatcheroo_direct_use_rich_grid")||(h.detail.path?this.set(h.detail.path,h.detail.value):this.ytdWatchBehavior.watchNextShownItems=h.detail.value)};
_.p.getElement=function(h){switch(h){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23160_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23160_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ze.Object.defineProperties(uS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(h=_.e(this.data.pageVisualEffects[E],_.M5))return E=void 0,(E=h.config)==null?void 0:E.enableInLightTheme;return!1}}});
uS.prototype.updateMiniplayerIsActiveValue=uS.prototype.updateMiniplayerIsActiveValue;uS.prototype.updateScrollTopValue=uS.prototype.updateScrollTopValue;uS.prototype.updateFullscreenValue=uS.prototype.updateFullscreenValue;uS.prototype.updateTheaterValue=uS.prototype.updateTheaterValue;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uS.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],uS.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.mKa.YtdWatchBehavior),_.V("design:type",Object)],uS.prototype,"ytdWatchBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],uS.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uS.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],uS.prototype,"ghostGridRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],uS.prototype,"playerData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"smallerChatMinHeight",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"cinematicTheaterMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"transparentTheaterMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"darkerPanels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"cinematicFullscreen",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"cinematicFullscreenV2",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],uS.prototype,"isDarkTheme",void 0);_.Y([_.x({selector:_.XN}),_.V("design:type",Object)],uS.prototype,"theaterValue",void 0);_.Y([_.x({selector:_.YP}),_.V("design:type",Object)],uS.prototype,"fullscreenValue",void 0);_.Y([_.x({selector:_.XS}),_.V("design:type",Object)],uS.prototype,"scrollTopValue",void 0);
_.Y([_.x({selector:_.so}),_.V("design:type",Object)],uS.prototype,"miniplayerIsActiveValue",void 0);_.Y([_.Sg("#ytd-player"),_.V("design:type",HTMLElement)],uS.prototype,"ytdPlayer",void 0);_.Y([_.Sg("#playlist"),_.V("design:type",HTMLElement)],uS.prototype,"JSC$23160_ytdPlaylistPanelRenderer",void 0);_.Y([_.Sg("#ytd-comments"),_.V("design:type",HTMLElement)],uS.prototype,"ytdComments",void 0);_.Y([_.Sg("#primary"),_.V("design:type",HTMLElement)],uS.prototype,"primary",void 0);
_.Y([_.Sg("#secondary"),_.V("design:type",HTMLElement)],uS.prototype,"secondary",void 0);_.Y([_.Sg("#player-container"),_.V("design:type",HTMLElement)],uS.prototype,"playerContainer",void 0);_.Y([_.Sg("#cinematics"),_.V("design:type",HTMLElement)],uS.prototype,"JSC$23160_cinematics",void 0);_.Y([_.Nm("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uS.prototype,"updateTheaterValue",null);
_.Y([_.Nm("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uS.prototype,"updateFullscreenValue",null);_.Y([_.Nm("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uS.prototype,"updateScrollTopValue",null);_.Y([_.Nm("miniplayerIsActiveValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uS.prototype,"updateMiniplayerIsActiveValue",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],uS.prototype,"cinematicLightTheme",null);
_.X(uS,"ytd-watch-grid",function(){if(HI2===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);HI2=h}h=HI2;return h},{mode:2});_.HZ.registerService(_.IBN,uS);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("CF909");
var vW0;var bS=function(){var h=_.D.apply(this,arguments)||this;h.viewTransitionEnabled=_.J("enable_player_resize_transition");h.smallerChatMinHeight=_.J("live_chat_smaller_min_height");h.cinematicTheaterMode=_.J("web_cinematic_theater_mode");h.transparentTheaterMode=_.J("web_transparent_theater_mode");h.cinematicFullscreen=_.J("web_cinematic_fullscreen");h.useLargerMaxPlayerValue=_.J("kevlar_flexy_use_larger_player_value");h.isDarkTheme=document.documentElement.hasAttribute("dark");h.defaultCollapsePlaylist=
_.J("web_watch_default_collapse_playlist");h.retroModeReduxValue=!1;h.persistentPanelVisibleValue=!1;return h};
_.f(bS,_.D);_.p=bS.prototype;_.p.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.p.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.p.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.p.updateRetroModeReduxValue=function(){_.J("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.p.updatePersistentPanelVisibleValue=function(){_.J("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.p.ready=function(){var h=this,E=function(){h.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.p.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.p.updateIsTwoColumnsFromBinding=function(h){_.J("web_watch_update_narrow_width_killswitch")||_.Gv().dispatch(_.wir(!h.detail.value));this.ytdWatchBehavior.isTwoColumns_=h.detail.value};
_.p.updateFlexySmallWindowFromBinding=function(h){this.ytdWatchBehavior.flexySmallWindow_=h.detail.value};
_.p.updateFlexyLargeWindowFromBinding=function(h){this.ytdWatchBehavior.flexyLargeWindow_=h.detail.value};
_.p.updateWatchWhileWindowSizeSufficientFromBinding=function(h){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=h.detail.value};
_.p.updateWatchNextCanShowMoreFromBinding=function(h){this.ytdWatchBehavior.watchNextCanShowMore=h.detail.value};
_.p.updateShownItemsFromBinding=function(h){h.detail.path?this.set(h.detail.path,h.detail.value):this.ytdWatchBehavior.watchNextShownItems=h.detail.value};
_.p.getElement=function(h){switch(h){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23155_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23155_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.ze.Object.defineProperties(bS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(h=_.e(this.data.pageVisualEffects[E],_.M5))return E=void 0,(E=h.config)==null?void 0:E.enableInLightTheme;return!1}}});
_.ze.Object.defineProperties(bS,{template:{configurable:!0,enumerable:!0,get:function(){if(vW0===void 0){var h=document.createElement("template");_.N(h,'\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="shopping-timely-shelf" class="attached-message 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 id="persistent-panel-container" class="style-scope ytd-watch-flexy"></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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);vW0=h}h=vW0;return h}}});
bS.prototype.updatePersistentPanelVisibleValue=bS.prototype.updatePersistentPanelVisibleValue;bS.prototype.updateRetroModeReduxValue=bS.prototype.updateRetroModeReduxValue;bS.prototype.updateScrollTopValue=bS.prototype.updateScrollTopValue;bS.prototype.updateFullscreenValue=bS.prototype.updateFullscreenValue;bS.prototype.updateTheaterValue=bS.prototype.updateTheaterValue;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],bS.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.mKa.YtdWatchBehavior),_.V("design:type",Object)],bS.prototype,"ytdWatchBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],bS.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bS.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],bS.prototype,"playerData",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"viewTransitionEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"smallerChatMinHeight",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"cinematicTheaterMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"transparentTheaterMode",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"cinematicFullscreen",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"useLargerMaxPlayerValue",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bS.prototype,"isDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],bS.prototype,"defaultCollapsePlaylist",void 0);_.Y([_.x({selector:_.XN}),_.V("design:type",Object)],bS.prototype,"theaterValue",void 0);
_.Y([_.x({selector:_.YP}),_.V("design:type",Object)],bS.prototype,"fullscreenValue",void 0);_.Y([_.x({selector:_.XS}),_.V("design:type",Object)],bS.prototype,"scrollTopValue",void 0);_.Y([_.x({selector:_.so}),_.V("design:type",Object)],bS.prototype,"miniplayerIsActive",void 0);_.Y([_.x({selector:function(h){return h.watch.isWatchRetroMode}}),
_.V("design:type",Object)],bS.prototype,"retroModeReduxValue",void 0);_.Y([_.x({selector:_.AU.persistentPanelVisibleSelector}),_.V("design:type",Object)],bS.prototype,"persistentPanelVisibleValue",void 0);_.Y([_.XQ("ytd-player"),_.V("design:type",HTMLElement)],bS.prototype,"ytdPlayer",void 0);_.Y([_.Sg("#playlist"),_.V("design:type",HTMLElement)],bS.prototype,"JSC$23155_ytdPlaylistPanelRenderer",void 0);_.Y([_.XQ("ytd-comments"),_.V("design:type",HTMLElement)],bS.prototype,"ytdComments",void 0);
_.Y([_.Sg("#primary"),_.V("design:type",HTMLElement)],bS.prototype,"primary",void 0);_.Y([_.Sg("#secondary"),_.V("design:type",HTMLElement)],bS.prototype,"secondary",void 0);_.Y([_.Sg("#player-container"),_.V("design:type",HTMLElement)],bS.prototype,"playerContainer",void 0);_.Y([_.Sg("#below"),_.V("design:type",HTMLElement)],bS.prototype,"below",void 0);_.Y([_.Sg("#cinematics"),_.V("design:type",HTMLElement)],bS.prototype,"JSC$23155_cinematics",void 0);
_.Y([_.Sg("#persistent-panel-container"),_.V("design:type",HTMLElement)],bS.prototype,"persistentPanelContainer",void 0);_.Y([_.Nm("theaterValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"updateTheaterValue",null);_.Y([_.Nm("fullscreenValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"updateFullscreenValue",null);
_.Y([_.Nm("scrollTopValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"updateScrollTopValue",null);_.Y([_.Nm("retroModeReduxValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"updateRetroModeReduxValue",null);_.Y([_.Nm("persistentPanelVisibleValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bS.prototype,"updatePersistentPanelVisibleValue",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],bS.prototype,"cinematicLightTheme",null);_.Y([_.K({is:"ytd-watch-flexy"})],bS);_.HZ.registerService(_.oG4,bS);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("nmfa2d");
var VsK;var X1=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;h.errorScreen=null;h.playlistData={};return h};
_.f(X1,_.D);_.p=X1.prototype;_.p.getPlayer=function(){return this.ytdPlayer};
_.p.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.dm(["aa","eocs"])}}};
_.p.onActiveChanged=function(){_.Gv().dispatch(_.qY2(this.ytPageBehavior.active))};
_.p.playerDataChanged=function(){var h;(h=this.watchController)==null||h.setPlayerResponse(this.playerData)};
_.p.dataChanged=function(){var h;(h=this.watchController)==null||h.setWatchNextResponse(this.data)};
_.p.sizeChanged=function(){var h,E;(E=(h=this.metadata).resize)==null||E.call(h)};
_.p.attached=function(){this.watchController=new _.ON(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.p.detached=function(){_.p8(this.watchController);this.watchController=void 0};
_.p.getPlayerContainer=function(){return this.playerContainer};
_.p.getElement=function(h){switch(h){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.p.provideRenderingData=function(h,E){switch(h){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=E;break;case "ERROR_SCREEN":this.errorScreen=E!=null?E:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=E;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=E;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=E;break;case "RICH_METADATA":this.richMetadataRowContainer=E;break;case "CLARIFICATION":this.clarificationData=E;break;case "PLAYLIST":this.playlistData=
E!=null?E:{};break;case "MERCH_SHELF":this.merchShelf=E;break;case "TICKET_SHELF":this.ticketShelf=E;break;case "LIMITED_STATE":this.limitedState=E;break;case "DONATION_SHELF":this.donationShelf=E;break;case "ALERTS":this.alerts=E}};
_.ze.Object.defineProperties(X1.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return!this.hidden&&!!((h=this.data)==null?0:(E=h.contents)==null?0:(g=E.twoColumnWatchNextResults)==null?0:g.conversationBar)}}});
X1.prototype.sizeChanged=X1.prototype.sizeChanged;X1.prototype.dataChanged=X1.prototype.dataChanged;X1.prototype.playerDataChanged=X1.prototype.playerDataChanged;X1.prototype.onActiveChanged=X1.prototype.onActiveChanged;_.Y([_.t(_.GP.YtPageBehavior),_.V("design:type",Object)],X1.prototype,"ytPageBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],X1.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"playerData",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],X1.prototype,"hidden",void 0);_.Y([_.Sg("#ytd-player"),_.V("design:type",HTMLElement)],X1.prototype,"ytdPlayer",void 0);_.Y([_.Sg("#player-container"),_.V("design:type",HTMLElement)],X1.prototype,"playerContainer",void 0);_.Y([_.Sg("#metadata"),_.V("design:type",Object)],X1.prototype,"metadata",void 0);_.Y([_.Sg("#playlist"),_.V("design:type",HTMLElement)],X1.prototype,"playlistPanel",void 0);
_.Y([_.x({selector:_.lRK,reflectToAttribute:!0}),_.V("design:type",Object)],X1.prototype,"fixie",void 0);_.Y([_.x({selector:_.DZK,reflectToAttribute:!0}),_.V("design:type",Object)],X1.prototype,"singleColumn",void 0);_.Y([_.x({selector:function(h){return _.XN(h)&&!_.YP(h)},
reflectToAttribute:!0}),_.V("design:type",Object)],X1.prototype,"theater",void 0);_.Y([_.x({selector:_.YP,reflectToAttribute:!0}),_.V("design:type",Object)],X1.prototype,"fullscreen",void 0);_.Y([_.x({selector:_.CKL}),_.V("design:type",Object)],X1.prototype,"windowSize",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"singleColumnContents",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"errorScreen",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"playlistData",void 0);
_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"videoPrimaryInfoRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"videoSecondaryInfoRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"richMetadataRowContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"clarificationData",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"ticketShelf",void 0);
_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"merchShelf",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"donationShelf",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"limitedState",void 0);_.Y([_.x(),_.V("design:type",Object)],X1.prototype,"alerts",void 0);_.Y([_.S("playlistData"),_.V("design:type",Object),_.V("design:paramtypes",[])],X1.prototype,"hasPlaylistData",null);
_.Y([_.S("data","hidden"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],X1.prototype,"hasChat",null);_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X1.prototype,"onActiveChanged",null);_.Y([_.Nm("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X1.prototype,"playerDataChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X1.prototype,"dataChanged",null);_.Y([_.Nm("windowSize","singleColumn"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],X1.prototype,"sizeChanged",null);
_.X(X1,"ytd-watch-fixie",function(){if(VsK===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);VsK=h}h=VsK;return h},{mode:1});_.HZ.registerService(_.ic$,X1);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("xwEKAe");
var dAj=function(h){return _.gQ(h)?h.getAttribute("jsname")==="coFSxe":!1},Cl0=function(h,E){E.id||(E.id="ow"+_.AM(E));
h.setAttribute("jsowner",E.id);h.__owner=E;var g=_.Vw(E,dAj);g&&(_.vWl.has(g)||_.vWl.set(g,[]),_.vWl.get(g).push(h));(g=_.mKH.get(E))||_.mKH.set(E,g=[]);g.includes(h)||g.push(h);E.setAttribute("__IS_OWNER",!0)},Jn2=function(){var h=_.eTz(1);
h=_.Wm(h,_.x24);if(!(_.Jtx(h)||h[_.Mja]&&!h.__hasBeenSet))return h.value},eHj=function(h){var E=_.xe();
if(E.getFlag(202))E=E.getFlag(201);else{var g;E=(h==null?void 0:(g=h.config)==null?void 0:g.settingOnByDefault)!==void 0?h.config.settingOnByDefault:!_.J("web_shorts_cinematics_disabled_by_default")}return E},qD2=function(h){var E=_.xe();
_.wC(0,201,h);_.wC(0,202,!0);E.save()},flF=function(h){return(h=_.mY4(h))?_.Hvz(h):0},NBj=function(h){return h.shorts.isSmallScreenSqueezeback},tFx=function(h){return h.shorts.isPlaybackStarted},wM2=function(h){var E=_.eTz(2),g=new Set;
_.r9(function(){return void g.forEach(function(Z){return void Z()})});
return function(Z){var M=_.M6(E);try{var W=SD2(xAL(h),Z);g.add(W);return function(){W();g.delete(W)}}finally{_.M6(M)}}},DA0=function(h){var E=h.children;
var g=h.root;_.m1(function(){var Z=wM2(g)(E);_.r9(Z)});
return document.createTextNode("")},SD2=function(h,E){var g=llU(h);
(h=Jn2())&&Cl0(g,h);E=_.G(_.NHW(E,!0));h=E.next().value;var Z=E.next().value;E=_.G(h);for(h=E.next();!h.done;h=E.next())g.appendChild(h.value);return function(){Z();g.remove()}},xAL=function(h){if(typeof h==="string")return h=document.querySelector(h),_.s5x(h),h;
if(_.cJ(h)&&h.nodeType===Node.ELEMENT_NODE)return h;if(!h.__value&&!h.__optional){var E=_.pX$.USE_ELEMENT_NOT_ASSIGNED(h.__expectedTagName);h.__hasErrored=!0;throw E;}return h.value},llU=function(h){var E=document.createElementNS(h.namespaceURI,h.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return h.appendChild(E)},rnG=function(h,E,g,Z){h=E-h;
g=Z-g;return Math.sqrt(h*h+g*g)},mA2=function(h,E){h&&_.GF().resolve(_.zF).resolveCommand(h,{forceClickLogging:!0,
form:{element:E}})},vM2=function(h,E,g,Z){h=E-h;
g=Z-g;return Math.sqrt(h*h+g*g)},HDj=function(h,E){h&&_.GF().resolve(_.zF).resolveCommand(h,{forceClickLogging:!0,
form:{element:E}})},$AM=function(){return _.GF().resolve(_.km).dismissedIndices},Kfa=function(h,E){var g,Z,M,W,z,c,I,B,U;
return _.a(function(L){if(L.nextAddress==1){g=_.GF().resolve(_.gUI);W=(Z=g)==null?void 0:(M=Z.reelWatchEndpointMap)==null?void 0:M.reelWatchSequence;c=(z=h.innertubeTransportService)!=null?z:_.GF().resolve(_.yV);if(!W)return L.jumpTo(2);I=W();return(B=I.JSC$13116_getRequest(E,{}))?L.yield(_.ic(c,B.innerTubeRequest,B.input,E.clickTrackingParams,B.config),4):L.jumpTo(2)}return L.nextAddress!=2?(U=L.yieldResult,L.return(U)):L.return(void 0)})},ODx=function(h){return _.RY({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:h}})},nMG=function(h){return _.RY({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:h}})},XML=function(h){return _.RY({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:h}})};var fo=function(h,E){if(h instanceof fo)this.array_=h.array_;else{var g;if(g=_.s4(h))a:{for(var Z=g=0;Z<h.length;Z++){if(!_.s4(h[Z])||g>0&&h[Z].length!=g){g=!1;break a}for(var M=0;M<h[Z].length;M++)if(typeof h[Z][M]!=="number"){g=!1;break a}g==0&&(g=h[Z].length)}g=g!=0}if(g)this.array_=_.Y$(h);else if(h instanceof _.Ns)this.array_=YDi(h.height,h.width);else if(typeof h==="number"&&typeof E==="number"&&h>0&&E>0)this.array_=YDi(h,E);else throw Error("Go");}this.size_=new _.Ns(this.array_[0].length,
this.array_.length)},smx=function(h,E,g){for(var Z=0;Z<h.getSize().height;Z++)for(var M=0;M<h.getSize().width;M++)E.call(g,h.array_[Z][M],Z,M,h)},VF2=function(h,E){var g=new fo(h.getSize());
smx(h,function(Z,M,W){g.array_[M][W]=E.call(void 0,Z,M,W,h)});
return g},YDi=function(h,E){for(var g=[],Z=0;Z<h;Z++){g[Z]=[];
for(var M=0;M<E;M++)g[Z][M]=0}return g};
fo.prototype.add=function(h){if(!_.yM2(this.size_,h.getSize()))throw Error("Ho");return VF2(this,function(E,g,Z){return E+h.array_[g][Z]})};
fo.prototype.equals=function(h,E){if(this.size_.width!=h.size_.width||this.size_.height!=h.size_.height)return!1;E=E||0;for(var g=0;g<this.size_.height;g++)for(var Z=0;Z<this.size_.width;Z++)if(!_.kux(this.array_[g][Z],h.array_[g][Z],E))return!1;return!0};
fo.prototype.getSize=function(){return this.size_};
var Nr=function(h,E,g){return E>=0&&E<h.size_.height&&g>=0&&g<h.size_.width?h.array_[E][g]:null};
fo.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var kfG=function(h,E,g,Z){if(!(E>=0&&E<h.size_.height&&g>=0&&g<h.size_.width))throw Error("Io`"+E+"`"+g+"`"+h.size_.height+"`"+h.size_.width);h.array_[E][g]=Z};
fo.prototype.multiply=function(h){if(h instanceof fo){if(this.size_.width!=h.getSize().height)throw Error("Jo");return ynU(this,h)}if(typeof h==="number")return FfK(this,h);throw Error("Ko");};
var ynU=function(h,E){var g=new fo(h.size_.height,E.getSize().width);smx(g,function(Z,M,W){for(var z=Z=0;z<this.size_.width;z++)Z+=Nr(this,M,z)*Nr(E,z,W);kfG(g,M,W,Z)},h);
return g},FfK=function(h,E){return VF2(h,function(g){return g*E})};var AnF=new _.I2("inlineSurveyRenderer");var TBx=new _.I2("interstitialViewModel");var bDK=new _.I2("reelNavigateCommand");var uC2=new _.I2("reelNonVideoContentDismissalCommand");var Qma=new _.I2("showReelsCommentsOverlayCommand");var hCx=new _.I2("shortsSuggestedActionViewModel");var EU2=new _.I2("videoInteractionPopUpRenderer");var gUU;var ZUU;var Mx2;var tr=function(){var h=_.D.apply(this,arguments)||this;h.ctaVisualElement=null;h.currentCsn=null;return h};
_.f(tr,_.D);_.p=tr.prototype;_.p.onDataChanged=function(){this.maybeLogShows()};
_.p.computeButtonShape=function(){var h=this;if(this.data)return{buttonText:_.Wp(this.data.text),state:"active",onTap:function(){h.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.p.maybeCreateCtaVe=function(){var h;if((h=this.data)!=null&&h.badgeInteractionLogging){var E;if(h=(E=this.data.badgeInteractionLogging)==null?void 0:E.trackingParams)this.ctaVisualElement=_.rp(h)}};
_.p.maybeLogClicks=function(){this.currentCsn=_.sH(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Z$(this.currentCsn,this.ctaVisualElement)};
_.p.maybeLogShows=function(){this.currentCsn=_.sH(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Eo(this.currentCsn,[this.ctaVisualElement])};
_.p.onTap=function(){var h;if((h=this.data)!=null&&h.onClickCommand){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand);this.maybeLogClicks()}};
tr.prototype.onDataChanged=tr.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],tr.prototype,"ytComponentBehavior",void 0);_.Y([_.x({}),_.V("design:type",Object)],tr.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tr.prototype,"onDataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],tr);
_.X(tr,"ytd-shopping-overlay-badge-renderer",function(){if(Mx2!==void 0)return Mx2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Mx2=h},{mode:1});_.I9(_.VLC,"reel-sound-metadata-view-model",{props:{data:_.c$,overlayDensity:_.c$}});_.I9(_.k8Z,"player-disclosure-view-model",{props:{data:_.C6}});_.I9(_.S2f,"pivot-button-view-model",{props:{data:_.c$,className:_.c$}});_.I9(_.xeB,"reel-action-bar-view-model",{props:{data:_.C6,buttonShapeOverrideables:_.C6}});_.I9(_.O(function(h){function E(){var iO,RW,NN,Cd,Ba=(RW=_.e((iO=u())==null?void 0:iO.command,_.K1))==null?void 0:(NN=RW.item)==null?void 0:(Cd=NN.notificationTextRenderer)==null?void 0:Cd.successResponseText;if(Ba)_.BX(Z.value,"yt-open-popup-action",[_.at(Ba),Z.value]);else if(k())mA2(k(),q.value);else{var $$;mA2(($$=u())==null?void 0:$$.command,q.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var g=h.data;var Z=_.hf("yt-player-overlay-video-interactions");h=_.G(_.Bm("0px",void 0,"O3ow6c"));var M=h.next().value,W=h.next().value;h=_.G(_.Bm("0px",void 0,"V0TSYd"));var z=h.next().value,c=h.next().value;h=_.G(_.Bm(0,void 0,"ipRdDf"));var I=h.next().value,B=h.next().value;h=_.G(_.Bm(0,void 0,"ztYEKb"));var U=h.next().value,L=h.next().value,d=function(){var iO;if(((iO=_.jv())==null?void 0:iO.getPlayerState())!==-1){Z.value.style.display="inherit";var RW;(RW=_.jv())==null||RW.removeEventListener("onStateChange",
d)}C()},C=function(){var iO=document.querySelector("video");
if(iO){B(iO.getBoundingClientRect().width);L(iO.getBoundingClientRect().height);var RW;W((iO==null?void 0:(RW=iO.style)==null?void 0:RW.left)||"0px");var NN;c((iO==null?void 0:(NN=iO.style)==null?void 0:NN.top)||"0px")}};
_.lX(function(){var iO,RW,NN;if(((iO=_.jv())==null?void 0:iO.getPlayerState())===-1&&Math.round(((NN=(RW=_.jv())==null?void 0:RW.getVideoAspectRatio())!=null?NN:0)*100)!==Math.round(I()/U()*100)){Z.value.style.display="none";var Cd,Ba;L(I()/((Ba=(Cd=_.jv())==null?void 0:Cd.getVideoAspectRatio())!=null?Ba:1))}},"ikzYW");
_.m1(function(){var iO;(iO=_.jv())==null||iO.addEventListener("onStateChange",d);window.addEventListener("resize",C);C();var RW,NN,Cd;if((Cd=(RW=g())==null?void 0:(NN=RW.regions)==null?void 0:NN[0])==null||!Cd.transformationMatrix)throw Error("Oo");var Ba;if((Ba=g())==null?0:Ba.trackingParams){var $$;_.SQ().graftServerVe(($$=g().trackingParams)!=null?$$:"")}_.r9(function(){var Ha;(Ha=_.jv())==null||Ha.removeEventListener("onStateChange",d);window.removeEventListener("resize",C)})});
var q=_.hf("svg"),w=_.G(_.Bm(!1,void 0,"Thzfnf"));h=w.next().value;var r=w.next().value,v=_.G(_.Bm(!1,void 0,"nsniPd"));w=v.next().value;var H=v.next().value,u=function(){var iO;return _.e((iO=g())==null?void 0:iO.popUp,EU2)},k=function(){var iO;
return(iO=g())==null?void 0:iO.command},y=function(){return _.e(k(),_.w5)!==void 0};
v=_.J7(function(){E();return!1});
var A={},E4={};return _.R("yt-player-overlay-video-interactions",{el:Z},_.R("svg",{"on:mouseover":_.J7(function(){y()&&r(!0);H(!0);return!1}),
"on:mouseout":_.J7(function(){r(!1);H(!1);return!1}),
"on:keydown":_.J7(function(iO){iO.key==="Enter"&&E();return!1}),
"on:focus":_.J7(function(){y()&&r(!0);return!1}),
"on:blur":_.J7(function(){y()&&r(!1);return!1}),
el:q,tabindex:0,"aria-label":function(){var iO;return(iO=g())==null?void 0:iO.a11yString},
id:"player-overlay-video-interaction-svg",class:_.CO("ytPlayerOverlayVideoInteractionsInteractionsSvg",(A.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=h,A),(E4.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=w,E4)),role:"button",style:function(){var iO,RW,NN,Cd=(NN=(iO=g())==null?void 0:(RW=iO.regions)==null?void 0:RW[0].transformationMatrix)!=null?NN:[];iO=I();RW=U();NN=[];for(var Ba=0,$$=-1;Ba<Cd.length;Ba++)Ba%3===0&&($$++,NN[$$]=[]),NN[$$].push(Cd[Ba]);Cd=new fo(NN);NN=new fo([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);NN=Cd.multiply(NN);Cd=new fo([[0,0],[0,0],[0,0],[0,0]]);for(Ba=0;Ba<NN.getSize().width;Ba++){$$=Nr(NN,0,Ba);var Ha=Nr(NN,1,Ba);if($$===null||Ha===null)throw Error("No`"+(Ba+1).toString());kfG(Cd,Ba,0,$$*iO);kfG(Cd,Ba,1,Ha*RW)}iO=Nr(Cd,0,0);Ba=Nr(Cd,1,0);RW=Nr(Cd,0,1);$$=Nr(Cd,1,1);if(iO===null||Ba===null||RW===null||$$===null)throw Error("Lo");NN=rnG(iO,Ba,RW,$$);Ha=Nr(Cd,3,0);Cd=Nr(Cd,3,1);if(Ha===null||Cd===null)throw Error("Mo");Cd=rnG(iO,Ha,RW,Cd);$$=(Number(($$*-1).toFixed(2))-
Number((RW*-1).toFixed(2)))/(Number(Ba.toFixed(2))-Number(iO.toFixed(2)));Ha=Math.atan($$)*180/Math.PI;Ba=$$===Number.POSITIVE_INFINITY?-90:$$===Number.NEGATIVE_INFINITY?90:Object.is($$,-0)?180:$$===0?0:$$>0?Ha*-1:iO<Ba?Ha*-1:Math.abs(Ha)+180;return"left:calc("+iO+"px + "+M()+"); top:calc("+(RW+"px + "+z()+"); width:")+(NN+"px; height:")+(Cd+"px; transform:rotate(")+(Ba+"deg);")},
"on:click":v}))},"zk"),"yt-player-overlay-video-interactions",{props:{data:_.C6}});_.I9(_.b8p,"yt-reel-metapanel-view-model",{props:{data:_.C6,overlayDensity:_.C6}});var Wii=_.O(function(h){var E=h.children;var g=h.region;h=_.G(_.Bm(void 0,void 0,"MsSyte"));var Z=h.next().value,M=h.next().value;h=_.G(_.Bm("0px",void 0,"U9Yihd"));var W=h.next().value,z=h.next().value;h=_.G(_.Bm("0px",void 0,"UO1H6d"));var c=h.next().value,I=h.next().value;h=_.G(_.Bm(0,void 0,"sMVTKb"));var B=h.next().value,U=h.next().value;h=_.G(_.Bm(0,void 0,"kZZV8b"));var L=h.next().value,d=h.next().value,C=function(){var u=Z();if(u){var k;if(((k=_.jv())==null?void 0:k.getPlayerState())!==-1){u.style.display=
"inherit";var y;(y=_.jv())==null||y.removeEventListener("onStateChange",C)}w()}},q=function(){var u=document.querySelectorAll("video");
return Array.from(u).find(function(k){var y;return k==null?void 0:(y=k.style)==null?void 0:y.width})},w=function(){var u=q();
if(u){U(u.getBoundingClientRect().width);d(u.getBoundingClientRect().height);var k;z((u==null?void 0:(k=u.style)==null?void 0:k.left)||"0px");var y;I((u==null?void 0:(y=u.style)==null?void 0:y.top)||"0px")}};
_.lX(function(){var u=Z();if(u){var k,y,A;if(((k=_.jv())==null?void 0:k.getPlayerState())===-1&&Math.round(((A=(y=_.jv())==null?void 0:y.getVideoAspectRatio())!=null?A:0)*100)!==Math.round(B()/L()*100)){u.style.display="none";var E4,iO;d(B()/((iO=(E4=_.jv())==null?void 0:E4.getVideoAspectRatio())!=null?iO:1))}}},"jJLfwe");
var r=function(){w()},v;
_.m1(function(){w();var u;if(!(g==null?0:(u=g())==null?0:u.transformationMatrix))throw Error("Oo");var k;(k=_.jv())==null||k.addEventListener("onStateChange",C);if(window.ResizeObserver){if(u=q())v=new ResizeObserver(r),v.observe(u)}else window.addEventListener("resize",w);_.r9(function(){var y;(y=_.jv())==null||y.removeEventListener("onStateChange",C);v?v.disconnect():window.removeEventListener("resize",w)})});
var H=function(){var u,k,y=(k=g==null?void 0:(u=g())==null?void 0:u.transformationMatrix)!=null?k:[];u=B();k=L();for(var A=[],E4=0,iO=-1;E4<y.length;E4++)E4%3===0&&(iO++,A[iO]=[]),A[iO].push(y[E4]);y=new fo(A);A=new fo([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);A=y.multiply(A);y=new fo([[0,0],[0,0],[0,0],[0,0]]);for(E4=0;E4<A.getSize().width;E4++){iO=Nr(A,0,E4);var RW=Nr(A,1,E4);if(iO===null||RW===null)throw Error("No`"+(E4+1).toString());kfG(y,E4,0,iO*u);kfG(y,E4,1,RW*k)}u=Nr(y,0,0);E4=Nr(y,1,0);k=Nr(y,0,
1);iO=Nr(y,1,1);if(u===null||E4===null||k===null||iO===null)throw Error("Lo");A=vM2(u,E4,k,iO);RW=Nr(y,3,0);y=Nr(y,3,1);if(RW===null||y===null)throw Error("Mo");y=vM2(u,RW,k,y);iO=(Number((iO*-1).toFixed(2))-Number((k*-1).toFixed(2)))/(Number(E4.toFixed(2))-Number(u.toFixed(2)));RW=Math.atan(iO)*180/Math.PI;E4=iO===Number.POSITIVE_INFINITY?-90:iO===Number.NEGATIVE_INFINITY?90:Object.is(iO,-0)?180:iO===0?0:iO>0?RW*-1:u<E4?RW*-1:Math.abs(RW)+180;return"left:calc("+u+"px + "+W()+"); top:calc("+(k+"px + "+
c()+"); width:")+(A+"px; height:")+(y+"px; transform:rotate(")+(E4+"deg);")};
return _.R(DA0,{root:"#sticker-layer"},function(){return _.R("yt-overlay-sticker",{el:_.zT(M),style:H,class:"ytOverlayStickerHost"},E)})},"Ak");var pcU=_.O(function(h){function E(){var C,q,w,r,v=(q=_.e((C=I())==null?void 0:C.command,_.K1))==null?void 0:(w=q.item)==null?void 0:(r=w.notificationTextRenderer)==null?void 0:r.successResponseText;if(v)_.BX(Z.value,"yt-open-popup-action",[_.at(v),Z.value]);else if(B())HDj(B(),Z.value);else{var H;HDj((H=I())==null?void 0:H.command,Z.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var g=h.data;var Z=_.hf("svg"),M=_.G(_.Bm(!1,void 0,"i4BL1"));h=M.next().value;var W=M.next().value,z=_.G(_.Bm(!1,void 0,"FzRJKd"));M=z.next().value;var c=z.next().value,I=function(){var C;return _.e((C=g())==null?void 0:C.popUp,EU2)},B=function(){var C;
return(C=g())==null?void 0:C.command},U=function(){return _.e(B(),_.w5)!==void 0};
z=_.J7(function(){E();return!1});
var L={},d={};return _.R("svg",{"on:mouseover":_.J7(function(){U()&&W(!0);c(!0);return!1}),
"on:mouseout":_.J7(function(){W(!1);c(!1);return!1}),
"on:keydown":_.J7(function(C){C.key==="Enter"&&E();return!1}),
"on:focus":_.J7(function(){U()&&W(!0);return!1}),
"on:blur":_.J7(function(){U()&&W(!1);return!1}),
el:Z,tabindex:0,"aria-label":function(){var C;return(C=g())==null?void 0:C.a11yString},
id:"player-overlay-video-interaction-svg",class:_.CO("ytPlayerOverlayInteractionInteractionsSvg",(L.ytPlayerOverlayInteractionInteractionsSvgHover=h,L),(d.ytPlayerOverlayInteractionInteractionsSvgHideOutline=M,d)),role:"button","on:click":z})},"Ck");_.I9(_.O(function(h){var E=h.data;_.m1(function(){var g;if((g=E())==null?0:g.trackingParams){var Z;_.SQ().graftServerVe((Z=E().trackingParams)!=null?Z:"")}});
return _.R("yt-player-overlay-interaction",null,_.R(Wii,{region:function(){var g,Z;return(g=E())==null?void 0:(Z=g.regions)==null?void 0:Z[0]}},_.R(pcU,Object.assign({},h))))},"Bk"),"yt-player-overlay-interaction",{props:{data:_.C6}});var Sr=function(){var h=_.D.apply(this,arguments)||this;h.showScrubber=!1;h.isWatchWhileMode=!1;h.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");h.enableNewStickers=_.J("use_shorts_sticker_overlay_web");h.anchoredPanelActive=!1;h.enableLivingroomLayout=_.J("reels_enable_livingroom_layout");h.enablePlayerMetadataContainer=_.J("reels_web_enable_metadata_container");h.enableSqueezebackPanels=_.J("web_shorts_enable_squeezeback_panels");h.useAspectRatio=_.J("web_use_aspect_ratio");h.isSqueezebackActive=
!1;h.smallScreenSqueezeback=!1;h.isPlayerStarted=!1;h.overlayDensity=0;h.extractOverlay=!1;h.extractActionBar=!1;h.isOverlay=!1;h.isImmersive=!1;h.isImmersiveHorizontal=!1;h.isFullscreen=!1;h.onWindowResized=function(){var E;h.set("isImmersive",((E=window.getComputedStyle(h.hostElement))==null?void 0:E.getPropertyValue("--immersive-mode-on"))==="1");h.set("isImmersiveHorizontal",h.isImmersive&&h.enableLivingroomLayout&&!h.isWatchWhileMode)};
return h};
_.f(Sr,_.D);_.p=Sr.prototype;_.p.updateIsOverlay=function(h){this.isOverlay=h.detail.value};
_.p.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.p.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.p.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.p.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.p.onOverlayDensityChange=function(){var h=_.UB(this.hostElement).querySelector("ytd-info-panel-container-renderer");h&&(h.set("extractOverlay",this.extractOverlay),h.set("roundedContainer",this.extractOverlay))};
_.p.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.p.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.p.ready=function(){(_.J("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.J("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.iN("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.iN("reels_action_justified_content")||"flex-start")};
_.p.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.p.setFakeLoadingButtons=function(){_.J("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.NH("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.NH("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.NH("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.NH("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.NH("REMIX_LABEL",void 0,"Remix")}}}));this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.p.setEmptyOverlayMetadata=function(){_.J("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}))};
_.ze.Object.defineProperties(Sr.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.infoPanel)}}});
Sr.prototype.onOverlayDensityChange=Sr.prototype.onOverlayDensityChange;Sr.prototype.onIsActiveChanged=Sr.prototype.onIsActiveChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Sr.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Sr.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Sr.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Sr.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Sr.prototype,"isActive",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Sr.prototype,"hidden",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],Sr.prototype,"useShortsIcon",void 0);
_.Y([_.x({value:"left"}),_.V("design:type",String)],Sr.prototype,"buttonTooltipPosition",void 0);_.Y([_.x({value:_.J("reels_enable_livingroom_layout")?"top":"left"}),_.V("design:type",String)],Sr.prototype,"likeButtonTooltipPosition",void 0);_.Y([_.x({value:"none"}),_.V("design:type",String)],Sr.prototype,"textTransform",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"showScrubber",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"isWatchWhileMode",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.infoPanel"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sr.prototype,"hasInfoPanel",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"enableAnchoredPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"enableNewStickers",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"anchoredPanelActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"enableLivingroomLayout",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Sr.prototype,"enablePlayerMetadataContainer",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"enableSqueezebackPanels",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"useAspectRatio",void 0);_.Y([_.x({selector:_.BTd,reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"isSqueezebackActive",void 0);_.Y([_.x({selector:NBj,reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"smallScreenSqueezeback",void 0);_.Y([_.x({selector:tFx}),_.V("design:type",Object)],Sr.prototype,"isPlayerStarted",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"overlayDensity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"extractOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"extractActionBar",void 0);_.Y([_.x(),_.V("design:type",Object)],Sr.prototype,"isOverlay",void 0);_.Y([_.x(),_.V("design:type",Object)],Sr.prototype,"isImmersive",void 0);
_.Y([_.x(),_.V("design:type",Object)],Sr.prototype,"isImmersiveHorizontal",void 0);_.Y([_.x({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.V("design:type",Boolean)],Sr.prototype,"isShortsImmersive",void 0);_.Y([_.x({computed:"computeButtonOverride(extractActionBar)"}),_.V("design:type",Object)],Sr.prototype,"buttonOverride",void 0);
_.Y([_.x({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.V("design:type",Object)],Sr.prototype,"actionBarButtonOverride",void 0);_.Y([_.x({selector:_.cg,reflectToAttribute:!0}),_.V("design:type",Object)],Sr.prototype,"isFullscreen",void 0);_.Y([_.Nm("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sr.prototype,"onIsActiveChanged",null);
_.Y([_.Nm("extractOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Sr.prototype,"onOverlayDensityChange",null);_.Y([_.K({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Sr);
_.X(Sr,"ytd-reel-player-overlay-renderer",function(){if(ZUU!==void 0)return ZUU;var h=document.createElement("template");_.N(h,'\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="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ZUU=h},{mode:1});var GpN;var xR=function(){var h=_.D.apply(this,arguments)||this;h.videoDuration=0;h.playedTime=0;h.isActive=!1;h.JSC$22352_playerEvents=new Map;return h};
_.f(xR,_.D);_.p=xR.prototype;_.p.created=function(){this.JSC$22352_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22352_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.p.attached=function(){this.getPlayerAndInitializeListeners()};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22352_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.qm(this,this.onPageChanged))};
_.p.getPlayerAndInitializeListeners=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return E=_.zD(),E?g.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qm(h,h.onPageChanged)),g.jumpTo(0));h.player=g.yieldResult;h.initializePlayerListeners();_.SK(g)})};
_.p.onPageChanged=function(h){var E=this;return _.a(function(g){if(g.nextAddress==1)return h.detail.newPageType!=="ytd-shorts"?g.return():g.yield(_.aJ().getPlayerPromise(),2);E.player=g.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qm(E,E.onPageChanged));_.SK(g)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22352_playerEvents)};
_.p.onVideoDataChange=function(h){var E=this;return _.a(function(g){if(!E.player||h.type!=="newdata")return g.return();E.videoDuration=_.J("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(h.playertype).seekableEnd:E.player.getDuration(h.playertype);E.playedTime=0;_.SK(g)})};
_.p.onVideoProgress=function(h){var E=this,g,Z;return _.a(function(M){if(!E.player)return M.return();g=E.player.getPresentingPlayerType();Z=E.player.getPlayerState();E.videoDuration=_.J("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(g).seekableEnd:E.player.getDuration(g);E.playedTime=Z===0?E.videoDuration:h;_.SK(M)})};
_.p.getPercentPlayed=function(h,E){return h?_.vw(E/h,0,1):0};
_.ze.Object.defineProperties(xR.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 h="";return h=this.videoDuration&&this.playedTime?h+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):h+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xR.prototype,"componentBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],xR.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xR.prototype,"player",void 0);_.Y([_.x(),_.V("design:type",Object)],xR.prototype,"videoDuration",void 0);_.Y([_.x(),_.V("design:type",Object)],xR.prototype,"playedTime",void 0);_.Y([_.x(),_.V("design:type",Object)],xR.prototype,"isActive",void 0);
_.Y([_.S("videoDuration","playedTime"),_.V("design:type",Number),_.V("design:paramtypes",[])],xR.prototype,"percentPlayed",null);_.Y([_.S("videoDuration","playedTime"),_.V("design:type",Object),_.V("design:paramtypes",[])],xR.prototype,"percentPlayedStyle",null);_.Y([_.S("videoDuration","isActive"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xR.prototype,"hideProgressBar",null);
_.X(xR,"ytd-progress-bar-line",function(){if(GpN===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);GpN=h}h=GpN;return h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var zCG;_.I9(_.daU,"ytm-closed-captioning-button",{props:{captionIconType:_.C6,onClick:_.c$,ariaLabel:_.C6,ariaPressed:_.C6,isOverlay:_.c$,isModern:_.c$}});_.I9(_.VfC,"desktop-shorts-volume-controls",{props:{orientation:_.C6}});var wJ=function(){var h=_.D.apply(this,arguments)||this;h.playerState=null;h.isMuted=!1;h.shortsModernControlsEnabled=_.J("web_shorts_modern_controls");h.volumeControlsOrientationState=_.J("web_shorts_modern_controls")?"vertical_down":"horizontal_right";h.isOverlay=!0;h.captionIconType=-1;h.ariaLabel="";h.overlayDensity=0;h.extractActionBar=!0;h.JSC$22355_playerEvents=new Map;h.onClosedCaptionsButtonClick=function(){h.player&&_.e0(h.player)&&(h.player.toggleSubtitles(),h.updateCaptionIconType())};
return h};
_.f(wJ,_.D);_.p=wJ.prototype;_.p.created=function(){this.JSC$22355_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22355_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22355_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.p.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Uz(28662);this.playPauseButtonClientVE=_.Uz(36842);this.fullscreenButtonToggleOffClientVE=_.Uz(222256);this.fullscreenButtonToggleOnClientVE=_.Uz(222257);var h=_.sH(),E=_.YN();h&&E&&(_.J("combine_ve_grafts")?(_.vt(_.SQ(),this.muteButtonClientVE,E),_.vt(_.SQ(),this.playPauseButtonClientVE,E)):_.Qp(h,E,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.p.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22355_playerEvents),this.player=null)};
_.p.updateCaptionIconType=function(){var h=-1,E=void 0,g=_.NH("CLOSED_CAPTIONS_DISABLED");this.player&&_.e0(this.player)&&(_.zJp(this.player)?(E=!0,g=_.NH("CLOSED_CAPTIONS_ON"),h=1):(E=!1,g=_.NH("CLOSED_CAPTIONS_OFF"),h=0));this.captionIconType=h;this.ariaPressedState=E;this.ariaLabel=g};
_.p.getPlayerAndInitializeListeners=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return E=_.zD(),E?g.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qm(h,h.onPageChanged)),g.jumpTo(0));h.player=g.yieldResult;h.initializePlayerListeners();_.SK(g)})};
_.p.onPageChanged=function(h){var E=this;return _.a(function(g){if(g.nextAddress==1)return h.detail.newPageType!=="ytd-shorts"?g.return():g.yield(_.aJ().getPlayerPromise(),2);E.player=g.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qm(E,E.onPageChanged));_.SK(g)})};
_.p.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22355_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.p.onPlayerStateChange=function(h){this.playerState=h};
_.p.onPlayerVolumeChange=function(h){this.isMuted=h.muted};
_.p.onPlayPauseButtonClick=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.aJ().getPlayerPromise(),2);E=Z.yieldResult;(g=_.sH())&&h.playPauseButtonClientVE&&_.Z$(g,h.playPauseButtonClientVE);E.getPlayerState()!==1?E.playVideo():E.pauseVideo();_.SK(Z)})};
_.p.computePlayPauseIcon=function(h){return h===2||h===-1||h===5?_.J("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.J("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.J("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.p.computeFullscreenLabel=function(h){return h?_.NH("FULLSCREEN_EXIT_LABEL"):_.NH("FULLSCREEN_ENTER_LABEL")};
_.p.computePlayPauseLabel=function(h){return h===1||h===3?_.NH("PLAYER_LABEL_PAUSE"):_.NH("PLAYER_LABEL_PLAY")};
_.p.onMuteButtonClick=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.aJ().getPlayerPromise(),2);E=Z.yieldResult;(g=_.sH())&&h.muteButtonClientVE&&_.Z$(g,h.muteButtonClientVE);E.isMuted()?E.unMute(!0):E.mute(!0);_.SK(Z)})};
_.p.computeMuteIcon=function(h){return h?"miniplayer:volume-off":"miniplayer:volume-up"};
_.p.computeMuteLabel=function(h){return h?_.NH("PLAYER_LABEL_UNMUTE"):_.NH("PLAYER_LABEL_MUTE")};
_.p.onFullscreenButtonClick=function(){var h=_.sH();h&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Z$(h,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Z$(h,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.yQR()};
_.ze.Object.defineProperties(wJ.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var h=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(){h.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?_.J("web_shorts_modern_controls")?"player_full_exit_alt":_.J("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.J("web_shorts_modern_controls")?"player_full_enter_alt":_.J("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],wJ.prototype,"componentBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],wJ.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],wJ.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"player",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"playerState",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"isMuted",void 0);
_.Y([_.x({computed:"computePlayPauseIcon(playerState)"}),_.V("design:type",String)],wJ.prototype,"playPauseIcon",void 0);_.Y([_.x({computed:"computeMuteIcon(isMuted)"}),_.V("design:type",String)],wJ.prototype,"muteIcon",void 0);_.Y([_.x({selector:_.cg}),_.V("design:type",Boolean)],wJ.prototype,"isFullscreen",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wJ.prototype,"shortsModernControlsEnabled",void 0);
_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"volumeControlsOrientationState",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"isOverlay",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"captionIconType",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"ariaLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"ariaPressedState",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wJ.prototype,"overlayDensity",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],wJ.prototype,"extractActionBar",void 0);_.Y([_.S("playerState"),_.V("design:type",Object),_.V("design:paramtypes",[])],wJ.prototype,"playPauseButtonData",null);_.Y([_.S("isFullscreen"),_.V("design:type",Object),_.V("design:paramtypes",[])],wJ.prototype,"fullscreenButtonData",null);_.Y([_.x(),_.V("design:type",Object)],wJ.prototype,"onClosedCaptionsButtonClick",void 0);
_.Y([_.S("isFullscreen"),_.V("design:type",String),_.V("design:paramtypes",[])],wJ.prototype,"fullscreenIcon",null);
_.X(wJ,"ytd-shorts-player-controls",function(){if(zCG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);zCG=h}h=zCG;return h},{mode:1});var aR2;_.I9(_.POU,"yt-interstitial-view-model",{props:{data:_.C6}});var cC2=_.O(function(h){var E=h.data;return _.R("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.R("h1",{class:"reelWatchBreakViewModelHostTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("h2",{class:"reelWatchBreakViewModelHostBody"},_.R(_.dK,{text:function(){return E().body},
isOverlay:!0})),_.R(_.Sv,{data:function(){return E().buttons}},{buttonViewModel:function(g,Z){return _.R("div",{class:function(){return Z()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.R(_.$l,{data:g.data}))}}))},"Dk");
cC2.idomCompat=!0;_.I9(cC2,"reel-watch-break-view-model",{props:{data:_.C6}});var Do=function(){return _.D.apply(this,arguments)||this};
_.f(Do,_.D);Do.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}}};
_.ze.Object.defineProperties(Do.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var h;return!!_.e((h=this.data)==null?void 0:h.renderer,AnF)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var h;return!!_.e((h=this.data)==null?void 0:h.renderer,TBx)}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Do.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Do.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Do.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Do.prototype,"isSurvey",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.renderer"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Do.prototype,"isInterstitialViewModel",null);_.Y([_.K({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Do);
_.X(Do,"ytd-reel-non-video-content-renderer",function(){if(aR2!==void 0)return aR2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return aR2=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var iUM;_.I9(_.sDC,"desktop-shorts-player-controls",{});var lj=function(){var h=_.D.apply(this,arguments)||this;h.isPlayerPaused=!1;h.isPlayerStarted=!1;h.showPlayerControls=!1;h.showScrubber=!1;h.autoHideJobId=0;h.modern=_.J("web_button_rework");h.overlayType=_.iN("web_shorts_expanded_overlay_type");h.panelData=void 0;h.isWatchWhileMode=!1;h.hasError=!1;h.panelShowDelayMs=1;h.scrubberComponent={};h.isFullscreen=!1;h.shouldHideOverlay=!1;h.enableAnchoredPanel=_.J("desktop_shorts_v2_anchored_panel");h.enablePersistentAnchoredPanel=_.J("desktop_shorts_v2_persistent_anchored_panel");
h.hideWatchWhilePanel=_.J("web_shorts_hide_watch_while_panel");h.useAspectRatio=_.J("web_use_aspect_ratio");h.isPersistentPanelActive=!1;h.anchoredPanelActive=!1;h.isShortsPipActive=!1;h.smallScreenSqueezeback=!1;h.enableFlexibleOverlay=_.J("web_enable_flexible_overlay");h.overlayDensity=0;h.extractOverlay=!1;h.extractActionBar=!1;h.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
h.onWindowResized=function(){_.EQ(h,"calculateOverlayDensity",function(){h.calculateOverlayDensity()},100)};
return h};
_.f(lj,_.D);_.p=lj.prototype;_.p.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.p.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.p.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var h=_.GF().resolve(_.QW);this.isWatchWhileMode&&_.KP.addJob(function(){h.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0)}}else this.panelData=void 0};
_.p.handleShowReelsCommentsOverlayCommand=function(h){h=_.e(h,Qma);this.isActive&&(h==null?0:h.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.p.updateEngagementPanelVisibility=function(h,E){h&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:E?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:h}})};
_.p.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.p.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.GF().resolve(_.km).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.p.handleWatchWhilePanelScrimClick=function(){var h=_.GF().resolve(_.QW);this.activeWatchWhilePanel&&(h.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.p.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.p.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.p.handlePlayerClick=function(h){var E=this,g,Z;if((Z=(g=window).matchMedia)!=null&&Z.call(g,"(any-pointer: coarse)").matches||!h)this.showPlayerControls=!0,_.KP.cancelJob(this.autoHideJobId),this.autoHideJobId=_.xW(_.KP,function(){E.showPlayerControls=!1},4E3)};
_.p.isFirstReel=function(){return this.index===0};
_.p.handleMouseenter=function(){_.KP.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.p.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.p.handleScrubberEnter=function(){this.showScrubber=!0};
_.p.handleScrubberLeave=function(){this.showScrubber=!1};
_.p.maybeLogNonDefaultAspectRatio=function(){var h;(h=this.data)!=null&&h.thumbnail&&this.isActive&&.5625!==flF(this.data.thumbnail)&&_.bkM("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.p.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var h=document.querySelector("#shorts-container");if(h){var E=!1,g,Z=this.playerContainer.offsetWidth;h=h.offsetWidth/2-Z/2;h>=368?(h=1,E=g=!0):h>=72?(h=0,g=!0):(h=2,g=!1);Z>=600?h=1:window.innerWidth<=599&&(h=2,g=E=!1);this.isPersistentPanelActive&&(h=0,E=!1);this.extractActionBar=g;_.J("web_enable_flexible_overlay")&&(this.overlayDensity=h,this.extractOverlay=E);var M;(M=this.onOverlayDensityChanged)==
null||M.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.p.onOverlayDensityChange=function(){var h;(h=this.onOverlayDensityChanged)==null||h.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(h=_.UB(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))h.set("overlayDensity",this.overlayDensity),h.set("extractOverlay",this.extractOverlay),h.set("extractActionBar",this.extractActionBar);if(h=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))h.overlayDensity=this.overlayDensity,h.extractOverlay=
this.extractOverlay,h.extractActionBar=this.extractActionBar};
_.p.isVideoContent=function(h){_.GF().resolve(_.km);return!!_.e(h,_.D9)};
_.p.isNonVideoContent=function(h){_.GF().resolve(_.km);return!!_.e(h,_.Wt)};
_.p.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ze.Object.defineProperties(lj.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var h,E;return _.J("web_enable_format_first")||((h=this.data)==null?void 0:h.adsOverlay)&&_.J("web_enable_format_first_ads_only")||((E=this.data)==null?void 0:E.reelPlayerOverlayRenderer)&&_.J("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.J("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var h;return!this.isActive||!this.isPlayerStarted||(h=this.data)!=null&&h.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var h;if(((h=this.data)==null?0:h.command)&&this.isVideoContent(this.data.command)){var E,g;if(((E=this.data)==null?0:E.adsOverlay)&&Object.keys((g=this.data)==null?void 0:g.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var Z,M;if(((Z=this.data)==null?0:Z.reelPlayerOverlayRenderer)&&Object.keys((M=this.data)==null?void 0:M.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
lj.prototype.onOverlayDensityChange=lj.prototype.onOverlayDensityChange;lj.prototype.calculateOverlayDensity=lj.prototype.calculateOverlayDensity;lj.prototype.maybeLogNonDefaultAspectRatio=lj.prototype.maybeLogNonDefaultAspectRatio;lj.prototype.onEngagementPanelsChanged=lj.prototype.onEngagementPanelsChanged;lj.prototype.onScrubberDataChange=lj.prototype.onScrubberDataChange;lj.prototype.updateShouldHideOverlay=lj.prototype.updateShouldHideOverlay;
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],lj.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],lj.prototype,"index",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"isActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lj.prototype,"isHiddenInDom",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"isPlayerPaused",void 0);_.Y([_.x({selector:tFx}),_.V("design:type",Object)],lj.prototype,"isPlayerStarted",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"showPlayerControls",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"showScrubber",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"autoHideJobId",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"overlayType",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],lj.prototype,"ytdReduxBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],lj.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"watchWhileEngagementPanels",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"panelData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"isWatchWhileMode",void 0);_.Y([_.x(),_.V("design:type",String)],lj.prototype,"activeWatchWhilePanel",void 0);
_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"hasError",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"panelShowDelayMs",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"scrubberComponent",void 0);_.Y([_.x({selector:_.cg,reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"isFullscreen",void 0);_.Y([_.x(),_.V("design:type",Object)],lj.prototype,"shouldHideOverlay",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"enableAnchoredPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"enablePersistentAnchoredPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"hideWatchWhilePanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"useAspectRatio",void 0);
_.Y([_.x({selector:_.BTd,reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"isPersistentPanelActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"anchoredPanelActive",void 0);_.Y([_.x({selector:_.i1,reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"isShortsPipActive",void 0);_.Y([_.x({selector:NBj,reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"smallScreenSqueezeback",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],lj.prototype,"enableFormatFirst",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"enableFlexibleOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"overlayDensity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"extractOverlay",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lj.prototype,"extractActionBar",void 0);_.Y([_.x(),_.V("design:type",Function)],lj.prototype,"onOverlayDensityChanged",void 0);_.Y([_.x(),_.S("isActive","hasError","isPlayerStarted"),_.V("design:type",Object),_.V("design:paramtypes",[])],lj.prototype,"shouldRenderPlayerElements",null);_.Y([_.x(),_.S("isActive","isWatchWhileMode"),_.V("design:type",Object),_.V("design:paramtypes",[])],lj.prototype,"watchWhileOrPersistentActive",null);
_.Y([_.Nm("isActive","hasError","showingExpandedOverlay"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"updateShouldHideOverlay",null);_.Y([_.x({reflectToAttribute:!0}),_.S("isActive","isPlayerStarted","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],lj.prototype,"shouldRenderScrubber",null);
_.Y([_.Nm("shouldRenderScrubber"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"onScrubberDataChange",null);_.Y([_.S("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.V("design:type",Object),_.V("design:paramtypes",[])],lj.prototype,"overlayComponent",null);_.Y([_.Nm("watchWhileEngagementPanels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"onEngagementPanelsChanged",null);
_.Y([_.Sg("#player-container"),_.V("design:type",HTMLElement)],lj.prototype,"playerContainer",void 0);_.Y([_.Sg("#cinematic-container"),_.V("design:type",HTMLElement)],lj.prototype,"cinematicContainer",void 0);_.Y([_.Nm("isPersistentPanelActive","data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"maybeLogNonDefaultAspectRatio",null);
_.Y([_.Nm("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"calculateOverlayDensity",null);_.Y([_.Nm("overlayDensity","extractOverlay","extractActionBar"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lj.prototype,"onOverlayDensityChange",null);_.Y([_.K({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],lj);
_.X(lj,"ytd-reel-video-renderer",function(){if(iUM!==void 0)return iUM;var h=document.createElement("template");_.N(h,'\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]]" extract-action-bar="[[extractActionBar]]" 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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return iUM=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var rJ=function(){var h=_.D.apply(this,arguments)||this;h.isPreviousPageShorts=!1;h.index=0;h.delayedActiveIndex=0;h.playablePreviousIndex=null;h.isPlayerPaused=!1;h.isPlayerStarted=!1;h.intersectionObserverThreshold=.6;h.fitToVisibleBounds=!1;h.pageSubtype="shorts";h.enablePreviousContinuation=_.J("shorts_in_playlists_web");h.shortsPipEnabled=_.J("web_shorts_pip");h.isDark=document.documentElement.hasAttribute("dark");h.shortsViewTransitions=_.J("web_shorts_view_transitions");h.isFullscreen=!1;h.isShortsPipActive=
!1;h.buttonOverride={iconPosition:"icon-only",size:"XL"};h.anchoredPanelActive=!1;h.isActive=!1;h.smallScreenPersistentPanel=!1;h.isPersistentPanelActive=!1;h.smallScreenSqueezeBack=!1;h.enableScrollIntoViewCenter=_.J("web_scroll_into_view_center");h.formatFirst=_.J("web_enable_format_first")||_.J("web_enable_format_first_ads_only")||_.J("web_enable_format_first_organic_only");h.enableFlexibleOverlay=_.J("web_enable_flexible_overlay");h.extractOverlay=!1;h.useAspectRatio=_.J("web_use_aspect_ratio");
h.sequenceRefactor=_.J("web_enable_shorts_sequence_refactor");h.isShortsInitialized=!1;h.hidePreviousButtonImmediately=!1;h.showPreviousButtonImmediately=!1;h.endOfNextContinuation=!1;h.currentPlayerIndex=0;h.nextReelVe=_.Uz(56921);h.prevReelVe=_.Uz(56922);h.loopToggleOffVe=_.Uz(198013);h.loopToggleOnVe=_.Uz(198014);h.ambientModeToggleVe=_.Uz(227860);h.reelPlayerPausedStateRendererVe=_.Uz(141313);h.storedPlaybackSpeed=null;h.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"};h.onOverlayDensityChanged=function(E,g,Z,M){E=h.getActiveReelVideo(E);h.extractOverlay=!!Z;E==null||E.setAttribute("overlay-density",String(g));Z===void 0||E!=null&&E.toggleAttribute("extract-overlay",Z);M===void 0||E!=null&&E.toggleAttribute("extract-action-bar",M)};
return h};
_.f(rJ,_.D);_.p=rJ.prototype;_.p.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.p.deflateInactivePreviousSlides=function(){var h=_.cx("web_shorts_deflate_inactive_slides_aggressive_distance");if(h>0&&this.shortsProcessedSequence&&this.activeIndex){h=this.activeIndex-h;for(var E=0;E<=h;E++){var g=void 0;((g=this.shortsProcessedSequence[E].reelPlayerOverlayRenderer)==null?0:g.metapanel)&&this.set("shortsProcessedSequence."+E+".reelPlayerOverlayRenderer",{});g=void 0;((g=this.shortsProcessedSequence[E].adsOverlay)==null?0:g.adSlotMetadata)&&this.set("shortsProcessedSequence."+
E+".adsOverlay",{})}}};
_.p.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.p.onResize=function(){var h=_.Gv(),E=h.dispatch,g=this.calculateIsSmallWidth();E.call(h,_.RY({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:g}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.p.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.p.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var h=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,E=h,g=0;h<250&&(E=h+this.shortsInnerContainer.clientWidth,g=24);_.Ja(this.hostElement,{"--ytd-shorts-header-width":E+"px","--ytd-shorts-top-spacing":g+"px"})}};
_.p.isFirstShorts=function(h){return h?this.index===-h.length:this.index===0};
_.p.isActiveReel=function(h,E,g){g&&(E=this.calculatePrevIndex(E,g));return h===E};
_.p.onFullscreenChange=function(){if(_.J("web_fullscreen_shorts")){var h;(h=this.getActiveReelVideo(this.activeIndex))==null||h.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.GF().resolve(_.Yu).close(!0)}};
_.p.engagementPanelsChanged=function(){var h;this.watchWhileEngagementPanels=(h=this.data)==null?void 0:h.engagementPanels};
_.p.unregisterPanels=function(){var h=_.GF().resolve(_.QW);if(this.watchWhileEngagementPanels)for(var E=_.G(this.watchWhileEngagementPanels),g=E.next();!g.done;g=E.next()){var Z=g.value,M=void 0,W=void 0;g=(M=Z.engagementPanelSectionListRenderer)==null?void 0:(W=M.identifier)==null?void 0:W.tag;Z=this.getPanelContentIdentifier(Z.engagementPanelSectionListRenderer);h&&(g&&h.panelMap.delete(g),Z&&_.J("web_shorts_panel_caching_bugfix")&&(M=g=void 0,(M=(g=h).unregisterPanelContent)==null||M.call(g,Z)))}};
_.p.isVideoContent=function(h){return this.isVideoContentCommand(h==null?void 0:h.command)};
_.p.getActiveReelVideo=function(h){return _.UB(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+h+'"]')};
_.p.calculatePrevIndex=function(h,E){return E?h-((E==null?void 0:E.length)||0):-1};
_.p.onKeydown=function(h){var E=_.Gw(h)||[];if(!_.keJ(E))if(h.code==="ArrowUp")h.preventDefault(),this.handlePrevButtonClick();else if(h.code==="ArrowDown")h.preventDefault(),this.handleNextButtonClick();else if(h.code==="KeyM")this.toggleMuteUnmuteVideo();else if(h.code==="KeyK"||h.code==="Space")this.togglePlayPauseVideo();else if((h.code==="KeyA"||h.code==="ArrowLeft")&&_.J("web_shorts_keyboard_enable_seek_shortcuts")){var g;(g=this.player)==null||g.seekBy(-5)}else if((h.code==="KeyD"||h.code===
"ArrowRight")&&_.J("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var Z;(Z=this.player)==null||Z.seekBy(5)}};
_.p.onServiceRequestCompleted=function(h,E){h=E.data;h.continuationEndpoint&&h.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:h.entries,continuationEndpoint:h.continuationEndpoint}}):h.prevContinuationEndpoint&&h.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:h.prevEntries,prevContinuationEndpoint:h.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.p.handleEngagementPanelVisibilityChanged=function(h,E){var g=_.GF().resolve(_.QW);if(h&&g){var Z=this.getPanelIdentifier(h);if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==Z){g.hidePanel(this.activePanel);var M;this.activePanel=((M=h.identifier)==null?void 0:M.tag)||h.panelIdentifier}else this.isPersistentPanelActive=!0,_.Gv().dispatch(ODx(!0)),this.anchoredPanelActive=!0,this.activePanel=Z;else E==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
Z&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Gv().dispatch(ODx(!1)))}};
_.p.handlePanelScrimClick=function(){var h=_.GF().resolve(_.QW);this.activePanel&&(h.hidePanel(this.activePanel),_.Gv().dispatch(ODx(!1)))};
_.p.getShortsLoopSetting=function(){var h,E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return _.J("kevlar_shorts_auto_advance")?W.yield(_.QU.getInstance(),2):W.return(!0);case 2:return(h=W.yieldResult)?W.yield(h.get("sfvles"),3):W.return(!0);case 3:return g=(E=W.yieldResult)!=null?E:!1,W.yield(h.get("sfvle"),4);case 4:return M=(Z=W.yieldResult)!=null?Z:!0,g?W.return(M):W.return(!0)}})};
_.p.handleSignalActionToggleLoopShortsOff=function(){var h=this,E,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!h.player)return M.return();h.player.setLoopVideo(!1);E=_.SQ();_.$T(E,h.loopToggleOffVe);return M.yield(_.QU.getInstance(),2);case 2:return(g=M.yieldResult)?M.yield(g.set("sfvle",!1),3):M.return();case 3:return M.yield(g.set("sfvles",!0),4);case 4:Z=_.xe(),_.wC(0,203,!1),_.wC(0,204,!0),Z.save(),_.SK(M)}})};
_.p.handleSignalActionToggleLoopShortsOn=function(){var h=this,E,g,Z;return _.a(function(M){switch(M.nextAddress){case 1:if(!h.player)return M.return();h.player.setLoopVideo(!0);E=_.SQ();_.$T(E,h.loopToggleOnVe);return M.yield(_.QU.getInstance(),2);case 2:return(g=M.yieldResult)?M.yield(g.set("sfvle",!0),3):M.return();case 3:return M.yield(g.set("sfvles",!0),4);case 4:Z=_.xe(),_.wC(0,203,!0),_.wC(0,204,!0),Z.save(),_.SK(M)}})};
_.p.handleSignalActionToggleCinematicShortsOn=function(){qD2(!0);var h;(h=this.JSC$22379_cinematicController)==null||_.UAj(h,!0);_.$T(_.SQ(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.p.handleSignalActionToggleCinematicShortsOff=function(){qD2(!1);var h;(h=this.JSC$22379_cinematicController)==null||_.UAj(h,!1);_.$T(_.SQ(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.p.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.p.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.p.unhideCurrentOverlay=function(){if(this.overlayContainer){var h=this.overlayContainer.querySelector("#experiment-overlay");h&&_.KP.addLowPriorityJob(function(){h.style.display="unset"},100)}};
_.p.getCurrentShort=function(){if(this.currentEndpoint){var h=this.currentEndpoint;if(this.isNonVideoContentCommand(h)){var E=_.e(h,_.Wt);return{reelNonVideoContentRenderer:_.e(E==null?void 0:E.renderer,_.LwM),command:h}}if(this.data){var g;E=(g=_.e(this.currentEndpoint,_.D9))==null?void 0:g.thumbnail;var Z;g=(Z=this.data.overlay)==null?void 0:Z.reelPlayerOverlayRenderer;_.GF().resolve(_.km);h=this.data;var M,W;Z=(M=h.overlay)==null?void 0:(W=M.shortsAdsRenderer)==null?void 0:W.adSlots;if(Z!==void 0)Z.length===
0?(_.bv("Shorts ads returned no ad slots."),h=void 0):(Z.length>1&&_.bv("Shorts ads has more than one ad slots."),h=_.e(Z[0],_.cOD));else{var z,c;h=_.e((z=h.overlay)==null?void 0:(c=z.shortsAdsRenderer)==null?void 0:c.overlay,_.cOD)}z=h;h=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.e(this.currentEndpoint,_.D9),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:g,thumbnail:E,command:h,adsOverlay:z}}}};
_.p.created=function(){var h=this;this.scrollToVideoThrottle=new _.TD(function(E){var g;(g=h.getActiveReelVideo(E))==null||g.scrollIntoView({behavior:"smooth",block:"nearest",inline:h.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.TD(function(E){var g;(g=h.getActiveReelVideo(E))==null||g.scrollIntoView({behavior:"auto",block:"nearest",inline:h.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.p.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.p.attached=function(){var h=this;_.GF().resolve(_.km).registerRootElement(this);this.pageScrollElement=_.UB(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.qm(this,this.processResetAction));_.J("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var E=h.getActiveReelVideo(h.activeIndex);h.maybeCreateIntersectionObserver();E==null||E.scrollIntoView({behavior:"instant",
block:"nearest",inline:h.enableScrollIntoViewCenter?"center":"start"});h.shortsContainer.style.overflowY="scroll"}))};
_.p.updateReelWatchSequenceResponse=function(){var h=this,E;_.J("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((E=_.e(this.currentEndpoint,_.D9))==null?0:E.sequenceParams)&&!this.reelWatchSequenceResponse&&(E=_.GF().resolve(_.km))&&Kfa(E,this.currentEndpoint).then(function(g){g&&(h.reelWatchSequenceResponse=g,_.KP.addLowPriorityJob(function(){h.observeShorts()}))})};
_.p.calculateSqueezebackPanelSize=function(){var h=this,E=window.innerWidth-456-(window.innerHeight-106)*.5625;_.KP.addLowPriorityJob(function(){E<360?_.Gv().dispatch(nMG(!0)):(h.hostElement.style.setProperty("--anchored-panel-width",Math.min(E,480)+"px"),_.Gv().dispatch(nMG(!1)))})};
_.p.detached=function(){var h=_.GF().resolve(_.km);h.rootElement=void 0;var E;(E=h.unsubscribeFromStore)==null||E.call(h);h.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.qm(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.p.onResizeFinished=function(h,E){var g=this,Z=new ResizeObserver(function(){g.shortsContainer.style.overflowY="hidden";_.KP.addLowPriorityJob(function(){E()},100)});
Z.observe(h);return Z};
_.p.resetDocumentScrollTop=function(){var h,E;if((h=document)==null?0:(E=h.scrollingElement)==null?0:E.scrollTop)document.scrollingElement.scrollTop=0};
_.p.loadPage_=function(h){var E=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),h){var g;!_.J("web_enable_delay_shorts_sequence_call")&&((g=_.e(this.currentEndpoint,_.D9))==null?0:g.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=h;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){E.isPlayerStarted&&(E.handleOnPlaybackCommand(),E.afterPlayerStarted=function(){})};
this.registerPanel(h)}};
_.p.afterPlayerStarted=function(){};
_.p.handleOnPlaybackCommand=function(){if(_.J("web_shorts_comment_stickers")&&this.isPlayerStarted){var h,E=(h=_.e(this.currentEndpoint,_.D9))==null?void 0:h.onPlaybackCommand;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.p.maybeCreateIntersectionObserver=function(){var h=this,E=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==E){this.intersectionObserverThreshold=E;var g={rootMargin:"0px",threshold:E},Z;(Z=this.intersectionObserver)==null||Z.disconnect();this.intersectionObserver=new IntersectionObserver(function(M){M=_.G(M);for(var W=M.next();!W.done;W=M.next())if(W=W.value,W.intersectionRatio>E){W=Number(W.target.id);if(isNaN(W))break;if(W===h.index)break;
_.erz();h.loadVideo(W);_.ke("r_vtc")}},g);
this.observeShorts()}};
_.p.observeShorts=function(){var h=[].concat(_.$E(_.UB(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));h=_.G(h);for(var E=h.next();!E.done;E=h.next()){E=E.value;var g=void 0;(g=this.intersectionObserver)==null||g.observe(E)}};
_.p.initCsi=function(){_.fjX("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var h={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"}},E,g;if((E=this.playerData)==null?0:(g=E.cacheMetadata)==null?0:g.isCacheHit)h.isCacheHit=!0;var Z;if(E=(Z=_.e(this.currentEndpoint,_.D9))==null?void 0:
Z.prefetchTaskId)h.prefetchInfo={taskId:E};_.nZ(h)};
_.p.isAd=function(){var h,E;return!!((h=_.e(this.currentEndpoint,_.D9))==null?0:(E=h.adClientParams)==null?0:E.isAd)};
_.p.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.p.getPlayerContainer=function(){var h;return(h=_.UB(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:h.playerContainer};
_.p.onPlayerStateChange=function(h){var E=this;this.isPlayerPaused=h===2;h!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?h===1&&this.index===0&&(this.isPlayerStarted||_.Gv().dispatch(XML(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Gv().dispatch(XML(!0)));this.player&&!this.player.getLoopVideo()&&_.KP.addLowPriorityJob(function(){E.getShortsLoopSetting().then(function(g){var Z;(Z=E.player)==null||Z.setLoopVideo(g)})});
this.isPlayerPaused&&_.J("web_shorts_paused_state_logging")&&_.Eo(_.sH(),[this.reelPlayerPausedStateRendererVe])};
_.p.isInBackground=function(){var h=window.document.visibilityState;return!(!h||h==="visible")};
_.p.isShortPlayable=function(){if(_.J("kevlar_playable_short_killswitch"))return!0;var h;return(h=this.playerData)!=null&&h.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.p.setNormalPlaybackSpeed=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.getPlayer().getPlayerPromise(),2);E=Z.yieldResult;g=E.getPlaybackRate();g!==1&&(h.storedPlaybackSpeed=g,E.setPlaybackRate(1));_.SK(Z)})};
_.p.restorePlaybackSpeed=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1)return h.storedPlaybackSpeed===null?g.jumpTo(0):g.yield(h.getPlayer().getPlayerPromise(),3);E=g.yieldResult;E.setPlaybackRate(h.storedPlaybackSpeed);h.storedPlaybackSpeed=null;_.SK(g)})};
_.p.playerDataChanged=function(){var h=this,E,g,Z,M,W,z,c,I,B;return _.a(function(U){if(U.nextAddress==1){E=h.getPlayer();(g=h.intersectionObserver)==null||g.disconnect();if(h.playerData){if(((Z=h.playerData.videoDetails)==null?void 0:Z.videoId)!==((M=E.getPlayer())==null?void 0:M.getVideoData().video_id)){W={};if(z=_.e(h.currentEndpoint,_.D9))W.watch_endpoint=z,z.endTimeSeconds&&(W.end=z.endTimeSeconds);E.loadVideoWithPlayerResponse(h.playerData,W)}}else return U.return();return h.player?U.jumpTo(2):
U.yield(E.getPlayerPromise(),3)}U.nextAddress!=2&&(h.player=U.yieldResult,h.JSC$22379_playerStateChangeListener=h.onPlayerStateChange.bind(h),h.player.addEventListener("onStateChange",h.JSC$22379_playerStateChangeListener),_.J("kevlar_client_enable_shorts_player_bootstrap")&&_.k7(),h.scrollToVideoThrottle.fire(h.index),h.movePlayerToVideo(h.index),_.KP.addLowPriorityJob(function(){h.getShortsLoopSetting().then(function(L){var d;(d=h.player)==null||d.setLoopVideo(L)})}),_.c$D.resolve(h.player),h.player.syncVolume(),
h.getPlayer().focusOnPlayer());
_.KP.addLowPriorityJob(function(){h.observeShorts()},100);
c=h.player.getPlayerState(h.player.getPresentingPlayerType());c!==1||h.isPlayerStarted||_.Gv().dispatch(XML(!0));h.updateBackNavContainerWidth();I=_.e(h.currentEndpoint,_.D9);((B=I)==null?0:B.startTimeSeconds)&&h.player.seekTo(I.startTimeSeconds);if(h.JSC$22379_cinematicController||h.cinematicsInitializeJobId)return U.return();h.cinematicsInitializeJobId=_.KP.addLowPriorityJob(function(){h.initCinematicController();h.cinematicsInitializeJobId=void 0});
_.SK(U)})};
_.p.onShortUndoDismiss=function(){var h=this,E=$AM().pop();E!==void 0&&(_.pQ(this,function(){h.showCardWithIndex(E)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.p.onShortsDismiss=function(h){if(h=h.detail.reelDismissalActionRenderer)(h=_.e(h.onDismissalCompletionRenderer,_.FZ0))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:h}}}),this.scrollAndDismissCard()};
_.p.processReelNonVideoContentDismissalCommand=function(h){var E=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);h=_.e(h,uC2);this.activeDimissalTimeout=setTimeout(function(){E.scrollAndDismissCard()},Number(h==null?void 0:h.delayMs))};
_.p.scrollAndDismissCard=function(){var h=this,E=this.index;$AM().push(E);_.pQ(this,function(){var g=h.getPlayableNextIndex();g!==null&&(g=h.getActiveReelVideo(g),h.hideCardWithIndex(E),g==null||g.scrollIntoView({behavior:"smooth",block:"nearest",inline:h.enableScrollIntoViewCenter?"center":"start"}))})};
_.p.hideCardWithIndex=function(h){if(h=this.getActiveReelVideo(h))h.hidden=!0};
_.p.showCardWithIndex=function(h){if(h=this.getActiveReelVideo(h))h.hidden=!1};
_.p.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.p.activeChanged=function(h){_.Gv().dispatch(_.RY({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:h}}));if(h)document.addEventListener("keydown",_.qm(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var E;(E=this.player)==null||E.sendAbandonmentPing()}var g;(g=this.player)==null||g.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.qm(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.p.graftClientVisualElements=function(){if(this.data){var h=_.SQ();_.GiH(h,_.dC({response:this.reelWatchSequenceResponse}));_.vt(h,this.nextReelVe);_.vt(h,this.prevReelVe);_.J("kevlar_shorts_auto_advance")&&(_.vt(h,this.loopToggleOffVe),_.vt(h,this.loopToggleOnVe));_.vt(h,this.ambientModeToggleVe);_.Eo(_.sH(),[this.nextReelVe,this.prevReelVe]);_.J("web_shorts_paused_state_logging")&&_.vt(h,this.reelPlayerPausedStateRendererVe)}};
_.p.graftNvcRenderer=function(){var h,E,g,Z,M=this.index<0?(h=this.shortsProcessedPrevSequence)==null?void 0:(E=h[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:E.command:(g=this.shortsProcessedSequence)==null?void 0:(Z=g[this.index])==null?void 0:Z.command;if(M&&this.isNonVideoContentCommand(M)){h=_.e(M,_.Wt);var W,z;(h=(W=_.e(h==null?void 0:h.renderer,_.LwM))==null?void 0:(z=W.loggingDirectives)==null?void 0:z.trackingParams)&&_.SQ().graftServerVe(h)}};
_.p.setActiveIndex=function(){_.GF().resolve(_.km).setActiveIndex(this.index)};
_.p.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.p.lazyUpdateMiniplayerData=function(){var h=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.KP.addLowPriorityJob(function(){h.updateMiniplayerData();h.updateMiniplayerDataJobId=void 0}))};
_.p.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.KP.cancelJob(this.updateMiniplayerDataJobId)};
_.p.updateMiniplayerData=function(){var h,E,g,Z=_.GF().resolve(_.Yu),M={shortsData:this.getCurrentShort(),previousButtonDisabled:!((h=this.prevButtonData)==null||!h.isDisabled),nextButtonDisabled:!((E=this.nextButtonData)==null||!E.isDisabled),playabilityStatus:(g=this.playerData)==null?void 0:g.playabilityStatus};_.PD(Z,M)};
_.p.resetPlayerLocation=function(){var h=this.getPlayer();this.initialPlayerContainer&&h.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.p.movePlayerToVideo=function(h,E){var g=this;E=E===void 0?!0:E;var Z=this.getActiveReelVideo(h),M=this.getPlayer();if(Z){this.overlayContainer?Z.appendChild(this.overlayContainer):(this.overlayContainer=_.UB(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,Z.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||M.appendTo(this.overlayContainer.playerContainer,void 0,!0));var W;(W=this.player)==null||W.setSize(NaN,NaN);this.isActive||_.xW(_.KP,function(){g.isActive=
!0});
M.style.visibility="visible";_.J("reels_web_disable_rtr_tick")||_.J("reels_web_use_pbs_first_shorts")&&h===0||_.s7("r_tr");this.currentPlayerIndex=h;Z.appendChild(this.errorScreenContainer);var z;(z=this.JSC$22379_cinematicController)==null||_.jmj(z)}else E?_.KP.addLowPriorityJob(function(){g.movePlayerToVideo(g.index,!1)}):Math.random()<=_.cx("web_shorts_error_logging_threshold")&&_.KI(new _.xX("Trying to movePlayerToVideo with undefined container.",{firstAttempt:E,
index:h}))};
_.p.enableFormatFirst=function(h){return _.J("web_enable_format_first")||h.adsOverlay&&_.J("web_enable_format_first_ads_only")||h.reelPlayerOverlayRenderer&&_.J("web_enable_format_first_organic_only")};
_.p.getAspectRatio=function(h){if(this.enableFormatFirst(h))return(h==null?0:h.thumbnail)&&flF(h.thumbnail)?"--ytd-shorts-player-ratio: "+flF(h.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.p.getBackgroundImage=function(h){return(h=this.getBackgroundImageUrl(h))?'background-image:url("'+h+'");':"background-color:black;"};
_.p.getBackgroundImageUrl=function(h){if(h!=null&&h.thumbnail)return _.P$(h.thumbnail.thumbnails)};
_.p.onPersistentPanelActiveChanged=function(){var h=this.getCurrentShort();if(h&&this.enableFormatFirst(h)&&(h==null?0:h.thumbnail)&&flF(h.thumbnail)!==.5625){var E;(E=this.player)==null||E.setSize(NaN,NaN)}};
_.p.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.p.moveCinematicsToVideo=function(){var h=_.UB(this.hostElement).querySelector("ytd-reel-video-renderer");(h==null?0:h.cinematicContainer)&&h.cinematicContainer!==this.shortsCinematicContainer.parentElement&&h.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.p.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.p.updatePrevButtonData=function(){var h=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(h){var E;this.prevButtonData=h=Object.assign({},h,{accessibility:{label:_.NH("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:h.isDisabled||this.index===-(((E=this.shortsProcessedPrevSequence)==null?void 0:E.length)||0),tooltip:this.isUpArrowHidden?"":_.NH("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=h=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.p.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.p.updateNextButtonData=function(){var h=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(h){var E;this.nextButtonData=h=Object.assign({},h,{accessibility:{label:_.NH("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:h.isDisabled||this.index===((E=this.shortsProcessedSequence)==null?void 0:E.length),tooltip:_.NH("NEXT_VIDEO_LABEL")||""})}};
_.p.getPlayablePreviousIndex=function(){for(var h,E=this.index-1;E>=-(((h=this.prevShortsSequence)==null?void 0:h.length)||0);E--)if(!$AM().includes(E))return E;return null};
_.p.getIndexInSequence=function(h,E){return h.findIndex(function(g){var Z;return((Z=_.e(g.command,_.D9))==null?void 0:Z.videoId)===E})};
_.p.handlePrevButtonClick=function(h){var E=this,g,Z;return _.a(function(M){g=E.getPlayablePreviousIndex();if(g===null)return M.return();E.gestureType=((Z=h)==null?void 0:Z.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";g===0&&(E.hidePreviousButtonImmediately=!0);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.transitionToVideoThrottle.fire(g)}),M.return();
E.scrollToVideoThrottle.fire(g);_.SK(M)})};
_.p.getPlayableNextIndex=function(){for(var h,E=this.index+1;E<(((h=this.shortsProcessedSequence)==null?void 0:h.length)||0);E++)if(!$AM().includes(E))return E;return null};
_.p.handleNextButtonClick=function(h,E){var g=this,Z,M;return _.a(function(W){Z=g.getPlayableNextIndex();if(Z===null)return W.return();Z===1&&(g.showPreviousButtonImmediately=!0);g.gestureType=((M=h)==null?void 0:M.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E&&(g.gestureType=E);if(g.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){g.transitionToVideoThrottle.fire(Z)}),W.return();
g.scrollToVideoThrottle.fire(Z);_.SK(W)})};
_.p.handleReelNavigateCommand=function(h,E,g){(h=_.e(h,bDK))&&E&&h.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(g)};
_.p.loadVideo=function(h,E){E=E===void 0?!1:E;if(h!==this.currentPlayerIndex){_.Gv().dispatch(XML(!1));if(this.isAd()&&!E){var g;(g=this.player)==null||g.notifyShortsAdSwipeEvent()}if((E=this.JSC$22379_cinematicController)!=null){var Z;(Z=E.currentCinematicEffect)==null||Z.pause()}if((Z=this.JSC$22379_cinematicController)!=null){var M;(M=Z.currentCinematicEffect)==null||M.clear()}Z=h>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(Z));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var W,z,c,I;M=h<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(z=W[this.shortsProcessedPrevSequence.length+h])==null?void 0:z.command:(c=this.shortsProcessedSequence)==null?void 0:(I=c[h])==null?void 0:I.command;this.index=h;this.gestureType||(this.gestureType=Z?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
M&&this.isVideoContentCommand(M)&&(this.ytComponentBehavior.resolveCommand(M,{form:{createScreenConfig:{clickedVisualElement:Z?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(M&&this.isNonVideoContentCommand(M)){this.currentEndpoint=M;this.data=void 0;W=_.SQ();z=_.e(M,_.Wt);var B,U;(z=(B=_.e(z==null?void 0:z.renderer,_.LwM))==null?void 0:(U=B.screenLoggingData)==null?void 0:U.screenVeType)&&_.mw(W,z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(B=this.getActiveReelVideo(h))&&B.appendChild(this.overlayContainer)}var L,d;if(((L=this.reelWatchSequenceResponse)==null?0:L.continuationEndpoint)&&((d=this.reelWatchSequenceResponse)==null?0:d.entries)&&h===this.reelWatchSequenceResponse.entries.length-1){var C,q;L={contentPlaybackContext:_.mb({},(q=_.e((C=this.currentEndpoint)==null?void 0:C.commandMetadata,_.qH))==null?void 0:q.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:L})}var w,r,v;((w=this.reelWatchSequenceResponse)==null?0:w.prevContinuationEndpoint)&&h===-(((r=this.reelWatchSequenceResponse)==null?void 0:(v=r.prevEntries)==null?void 0:v.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.p.setMiniplayerPreview=function(h){h=(h===void 0?0:h)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var E,g,Z=_.GF().resolve(_.Yu),M={shortsData:void 0,shortsPreviewThumbnail:h?(E=this.shortsProcessedSequence)==null?void 0:(g=E[h])==null?void 0:g.thumbnail:void 0};_.PD(Z,M)};
_.p.updateTitle=function(h){var E,g;h=(h==null?0:h.adSlots)?"":(g=h==null?void 0:(E=h.videoDetails)==null?void 0:E.title)!=null?g:"";_.Ra(this.hostElement,"yt-update-title",h)};
_.p.registerPanel=function(h){var E=_.GF().resolve(_.QW);if(E){h=_.G(h.engagementPanels||[]);for(var g=h.next();!g.done;g=h.next()){g=g.value;var Z=this.getPanelContentIdentifier(g.engagementPanelSectionListRenderer),M=void 0,W=void 0;(W=(M=E).registerPanelContent)==null||W.call(M,Z,g)}}};
_.p.getPanelIdentifier=function(h){var E;return(h==null?void 0:(E=h.identifier)==null?void 0:E.tag)||(h==null?void 0:h.panelIdentifier)||(h==null?void 0:h.targetId)};
_.p.getPanelContentIdentifier=function(h){var E;return(h==null?void 0:h.targetId)||(h==null?void 0:h.panelIdentifier)||(h==null?void 0:(E=h.identifier)==null?void 0:E.tag)};
_.p.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Gv().dispatch(XML(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Gv().dispatch(ODx(!1));var h=_.GF().resolve(_.km);h.dismissedIndices=[];h.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.GF().resolve(_.Yu).close(!0)};
_.p.processAppendReelWatchSequenceContinuationEntriesAction=function(h){var E=this,g;(g=this.intersectionObserver)==null||g.disconnect();h=h.appendReelWatchSequenceContinuationEntriesAction;if(h==null?0:h.entries){var Z;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.$E(((Z=this.reelWatchSequenceResponse)==null?void 0:Z.entries)||[]),_.$E(h.entries)),continuationEndpoint:h.continuationEndpoint})}else if(h==null?0:h.prevEntries){var M;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.$E(((M=this.reelWatchSequenceResponse)==null?void 0:M.prevEntries)||[]),_.$E(h.prevEntries)),prevContinuationEndpoint:h.prevContinuationEndpoint});_.KP.addLowPriorityJob(function(){E.movePlayerToVideo(E.index);var W;(W=E.getActiveReelVideo(E.index))==null||W.scrollIntoView({block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.KP.addLowPriorityJob(function(){E.observeShorts()},100)};
_.p.processWatchSequence=function(h){var E=this;return h.map(function(g){g=g.command;if(E.isVideoContentCommand(g)){var Z=_.e(g,_.D9);return{reelPlayerOverlayRenderer:_.e(Z==null?void 0:Z.overlay,_.jxf),thumbnail:Z.thumbnail,command:g}}return E.isNonVideoContentCommand(g)?(Z=_.e(g,_.Wt),{reelNonVideoContentRenderer:_.e(Z==null?void 0:Z.renderer,_.LwM),command:g}):{command:g}})};
_.p.calculateIntersectionObserverThreshold=function(){var h=_.UB(this.hostElement).querySelector("ytd-reel-video-renderer"),E=1;(h==null?0:h.offsetHeight)&&(h==null?0:h.offsetWidth)&&(E=Math.min(h.offsetHeight,this.shortsContainer.offsetHeight)/h.offsetHeight*(Math.min(h.offsetWidth,this.shortsContainer.offsetWidth)/h.offsetWidth));return Math.round(E*.6*10)/10};
_.p.isVideoContentCommand=function(h){_.GF().resolve(_.km);return!!_.e(h,_.D9)};
_.p.isNonVideoContentCommand=function(h){_.GF().resolve(_.km);return!!_.e(h,_.Wt)};
_.p.initCinematicController=function(){var h=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22379_cinematicController=new _.qr(this.shortsCinematicContainer,this.player);var E,g=_.e((E=this.data)==null?void 0:E.background,_.M5);_.Lfx(this.JSC$22379_cinematicController,g);_.UAj(this.JSC$22379_cinematicController,eHj(g));_.BBM(this.JSC$22379_cinematicController);_.KP.addLowPriorityJob(function(){h.moveCinematicsToVideo()})}};
_.p.handleMiniplayerNavigateShorts=function(h){h==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():h==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.p.handleSignalActionToggleShortsPictureInPicture=function(){if(_.GF().resolve(_.Yu).pictureInPictureSupported()){var h=_.GF().resolve(_.km);if(_.J("web_shorts_pip")){var E=_.GF().resolve(_.Yu);h.isShortsPipActive()?E.deactivate():E.isMiniplayerActive()||(_.sU().shortsPipActivation=!0,_.EZG(E))}}else(h=this.player)==null||h.togglePictureInPicture()};
_.ze.Object.defineProperties(rJ.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.reelWatchSequenceResponse)!=null&&h.prevEntries)return this.processWatchSequence([].concat(_.$E(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.J("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.$E(this.prevShortsSequence));var h=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!h)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var E=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.$E(this.prevShortsSequence.slice(0,E)),[h],_.$E(this.prevShortsSequence.slice(E+1)))}E=this.index+this.shortsProcessedPrevSequence.length;h.thumbnail=this.shortsProcessedPrevSequence[E].thumbnail;return[].concat(_.$E(this.shortsProcessedPrevSequence.slice(0,E)),[h],_.$E(this.shortsProcessedPrevSequence.slice(E+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.reelWatchSequenceResponse)!=null&&h.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var h=this;if(_.J("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var E;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((E=this.shortsProcessedSequence)==null?void 0:E.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var g,Z=_.e((g=this.firstShortsData)==null?void 0:g.command,_.D9);if(Z==null||!Z.videoId)return this.shortsProcessedSequence;
Z=this.getIndexInSequence(this.shortsSequence,Z.videoId);if(Z!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=Z,_.KP.addLowPriorityJob(function(){h.transitionToVideoThrottle.fire(h.index);h.movePlayerToVideo(h.index)}));
return[].concat(_.$E(this.shortsSequence))}return[this.firstShortsData].concat(_.$E(this.shortsSequence))}}else if(this.data||this.shortsSequence){g=this.getCurrentShort();if(!g||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[g];if(g==null||!g.reelNonVideoContentRenderer)if(E=this.getIndexInSequence(this.shortsSequence,_.e(this.currentEndpoint,_.D9).videoId),this.index===0&&E!==-1)return this.currentPlayerIndex=this.index=E,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.$E(this.shortsSequence.slice(0,this.index)),[g],_.$E(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){g.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var M,W,z;E=((M=_.e((Z=this.shortsProcessedSequence[0])==null?void 0:Z.command,_.D9))==null?void 0:M.videoId)===((z=_.e((W=this.shortsSequence[0])==null?void 0:W.command,_.D9))==null?void 0:z.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.$E(this.shortsProcessedSequence.slice(0,
this.index)),[g],_.$E(this.shortsSequence.slice(E)))}return[g].concat(_.$E(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var h=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;h&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(h)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 h,E;return this.index===((h=this.reelWatchSequenceResponse)==null?void 0:(E=h.entries)==null?void 0:E.length)}var g;return!((g=this.reelWatchSequenceResponse)==null?0:g.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var h;(h=this.delayedActiveIndexUpdateDebouncer)==null||h.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return this.isShortPlayable()||((E=_.e((h=this.data)==null?void 0:h.watchStatus,_.SUm))==null?void 0:(g=E.style)==null?void 0:g.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var h=this,E=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),g;if((this.data||E)&&(((g=this.data)==null?0:g.engagementPanels)||this.isAd()||E)){E=!1;this.activePanel="shorts-comments-panel";var Z;g=_.G(((Z=this.data)==null?void 0:Z.engagementPanels)||[]);for(Z=g.next();!Z.done;Z=g.next())if(this.getPanelIdentifier(Z.value.engagementPanelSectionListRenderer)===this.activePanel){E=!0;break}if(this.isPersistentPanelActive){var M=
_.GF().resolve(_.QW);_.xW(_.KP,function(){M.showPanel(h.activePanel,void 0,void 0,void 0,null)},100)}var W;
Z=[].concat(_.$E(Object.values(((W=this.data)==null?void 0:W.engagementPanels)||{})));if(_.J("enable_preview_panel_for_shorts_search_suggested_action")){var z,c,I,B,U;((B=_.e((z=this.data)==null?void 0:(c=z.overlay)==null?void 0:(I=c.reelPlayerOverlayRenderer)==null?void 0:I.metapanel,_.U8M))==null?void 0:(U=B.metadataItems)==null?void 0:U.find(function(L){var d,C;return((d=_.e(L,hCx))==null?void 0:(C=d.icon)==null?void 0:C.iconType)==="SEARCH"}))!==void 0&&Z.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}W=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);z=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return W===void 0&&z===void 0||(W==null?0:W.isDisabled)||(z==null?void 0:z.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!E?(E=Z==null?void 0:Z.findIndex(function(L){var d,
C;return((d=L.engagementPanelSectionListRenderer)==null?void 0:(C=d.identifier)==null?void 0:C.tag)==="shorts-comments-panel"}),E===-1||E===void 0||Z!=null&&Z.splice(E,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.NH("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.NH("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:_.NH("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.NH("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(_.$E(Object.values(Z||
{})))):Z}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.shortsProcessedSequence)==null?void 0:h[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g,Z;if((E=this.playerData)==null?0:(g=E.playabilityStatus)==null?0:(Z=g.errorScreen)==null?0:Z.playerInterstitialRenderer)return _.KP.addLowPriorityJob(function(){h.movePlayerToVideo(h.index)}),this.playerData.playabilityStatus.errorScreen;
var M,W;return((M=this.data)==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((W=this.data)==null?0:W.watchStatus)&&_.e(this.data.watchStatus,_.Q2n)?(_.KP.addLowPriorityJob(function(){h.movePlayerToVideo(h.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ze.Object.defineProperties(rJ,{template:{configurable:!0,enumerable:!0,get:function(){if(gUU===void 0){var h=document.createElement("template");_.N(h,'\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            <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n              <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n            </template>\n            <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </template>\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          <template is="dom-if" if="[[sequenceRefactor]]" class="style-scope ytd-shorts">\n            <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </template>\n          <template is="dom-if" if="[[!sequenceRefactor]]" class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </template>\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);gUU=h}h=gUU;return h}}});
rJ.prototype.onNextButtonDataChange=rJ.prototype.onNextButtonDataChange;rJ.prototype.onPrevButtonDataChange=rJ.prototype.onPrevButtonDataChange;rJ.prototype.onPersistentPanelActiveChanged=rJ.prototype.onPersistentPanelActiveChanged;rJ.prototype.lazyUpdateMiniplayerData=rJ.prototype.lazyUpdateMiniplayerData;rJ.prototype.onShortsPipActiveChanged=rJ.prototype.onShortsPipActiveChanged;rJ.prototype.setActiveIndex=rJ.prototype.setActiveIndex;rJ.prototype.graftNvcRenderer=rJ.prototype.graftNvcRenderer;
rJ.prototype.graftClientVisualElements=rJ.prototype.graftClientVisualElements;rJ.prototype.onActiveChanged=rJ.prototype.onActiveChanged;rJ.prototype.onShortsDismiss=rJ.prototype.onShortsDismiss;rJ.prototype.onShortUndoDismiss=rJ.prototype.onShortUndoDismiss;rJ.prototype.playerDataChanged=rJ.prototype.playerDataChanged;rJ.prototype.afterPlayerStarted=rJ.prototype.afterPlayerStarted;rJ.prototype.updateReelWatchSequenceResponse=rJ.prototype.updateReelWatchSequenceResponse;
rJ.prototype.unhideCurrentOverlay=rJ.prototype.unhideCurrentOverlay;rJ.prototype.onServiceRequestCompleted=rJ.prototype.onServiceRequestCompleted;rJ.prototype.engagementPanelsChanged=rJ.prototype.engagementPanelsChanged;rJ.prototype.onFullscreenChange=rJ.prototype.onFullscreenChange;rJ.prototype.onResize=rJ.prototype.onResize;rJ.prototype.setFirstShortsData=rJ.prototype.setFirstShortsData;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],rJ.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.GP.YtPageBehavior),_.V("design:type",Object)],rJ.prototype,"ytPageBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],rJ.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],rJ.prototype,"ironResizableBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],rJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],rJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],rJ.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],rJ.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"playerData",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"reelWatchSequenceResponse",void 0);
_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"cachedReelWatchSequenceResponse",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"cachedSequenceParams",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"cachedSequenceProvider",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"currentEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"nextButtonData",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"prevButtonData",void 0);
_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"isPreviousPageShorts",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"index",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"delayedActiveIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"playablePreviousIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"player",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"isPlayerPaused",void 0);
_.Y([_.x({selector:tFx}),_.V("design:type",Object)],rJ.prototype,"isPlayerStarted",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"intersectionObserver",void 0);_.Y([_.x(),_.V("design:type",Number)],rJ.prototype,"cinematicsInitializeJobId",void 0);_.Y([_.x(),_.V("design:type",Number)],rJ.prototype,"updateMiniplayerDataJobId",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"fitToVisibleBounds",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"pageSubtype",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],rJ.prototype,"enablePreviousContinuation",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"shortsPipEnabled",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"isDark",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"shortsViewTransitions",void 0);
_.Y([_.x({selector:_.cg,reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"isFullscreen",void 0);_.Y([_.x({selector:_.i1,reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"isShortsPipActive",void 0);_.Y([_.Sg("#shorts-inner-container"),_.V("design:type",HTMLElement)],rJ.prototype,"shortsInnerContainer",void 0);_.Y([_.Sg("#back-nav-button ytd-button-renderer"),_.V("design:type",_.tg)],rJ.prototype,"backNavButton",void 0);
_.Y([_.Sg("#shorts-container"),_.V("design:type",HTMLElement)],rJ.prototype,"shortsContainer",void 0);_.Y([_.XQ("error-screen"),_.V("design:type",HTMLElement)],rJ.prototype,"errorScreenContainer",void 0);_.Y([_.XQ("player"),_.V("design:type",Object)],rJ.prototype,"playerElement",void 0);_.Y([_.XQ("shorts-cinematic-container"),_.V("design:type",HTMLElement)],rJ.prototype,"shortsCinematicContainer",void 0);
_.Y([_.XQ("initial-player-container"),_.V("design:type",HTMLElement)],rJ.prototype,"initialPlayerContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"buttonOverride",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"anchoredPanelActive",void 0);_.Y([_.x(),_.V("design:type",String)],rJ.prototype,"activePanel",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"isActive",void 0);
_.Y([_.x({selector:NBj,reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"smallScreenPersistentPanel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"isPersistentPanelActive",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"smallScreenSqueezeBack",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"enableScrollIntoViewCenter",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"formatFirst",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"enableFlexibleOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"extractOverlay",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"useAspectRatio",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],rJ.prototype,"sequenceRefactor",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"panelContainer",void 0);
_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"overlayContainer",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"isShortsInitialized",void 0);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"firstShortsData",void 0);_.Y([_.S("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"prevShortsSequence",null);
_.Y([_.S("data","prevShortsSequence"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"shortsProcessedPrevSequence",null);_.Y([_.S("reelWatchSequenceResponse"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"shortsSequence",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"setFirstShortsData",null);
_.Y([_.S("data","shortsSequence","firstShortsData"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"shortsProcessedSequence",null);_.Y([_.x({reflectToAttribute:!0}),_.S("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],rJ.prototype,"isUpArrowHidden",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("reelWatchSequenceResponse","index","endOfNextContinuation"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],rJ.prototype,"isDownArrowHidden",null);_.Y([_.x(),_.S("index"),_.V("design:type",Number),_.V("design:paramtypes",[])],rJ.prototype,"activeIndex",null);_.Y([_.S("isShortPlayable","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],rJ.prototype,"shouldRenderOfflineContent",null);
_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onResize",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"anchoredEngagementPanels",null);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"watchWhileEngagementPanels",void 0);_.Y([_.Nm("isFullscreen"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onFullscreenChange",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"engagementPanelsChanged",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],rJ.prototype,"onServiceRequestCompleted",null);_.Y([_.S("data","shortsSequence","index"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"activeReel",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"unhideCurrentOverlay",null);_.Y([_.Nm("currentEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"updateReelWatchSequenceResponse",null);_.Y([_.Nm("isPlayerStarted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"afterPlayerStarted",null);
_.Y([_.S("playerData","reelWatchSequenceResponse","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],rJ.prototype,"errorScreen",null);_.Y([_.S("errorScreen"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],rJ.prototype,"hasError",null);_.Y([_.Nm("playerData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],rJ.prototype,"playerDataChanged",null);
_.Y([_.f3("yt-dismissible-item-undo-feedback"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onShortUndoDismiss",null);_.Y([_.f3("yt-disable-lockup-interaction"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],rJ.prototype,"onShortsDismiss",null);_.Y([_.lq("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onActiveChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"graftClientVisualElements",null);_.Y([_.Nm("currentPlayerIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"graftNvcRenderer",null);_.Y([_.Nm("index"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"setActiveIndex",null);
_.Y([_.Nm("isShortsPipActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onShortsPipActiveChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"lazyUpdateMiniplayerData",null);_.Y([_.x(),_.V("design:type",Object)],rJ.prototype,"onOverlayDensityChanged",void 0);
_.Y([_.Nm("isPersistentPanelActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onPersistentPanelActiveChanged",null);_.Y([_.Nm("index","data","isUpArrowHidden"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onPrevButtonDataChange",null);_.Y([_.Nm("index","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rJ.prototype,"onNextButtonDataChange",null);
_.Y([_.K({is:"ytd-shorts"})],rJ);_.HZ.registerService(_.cJa,rJ);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("JzFVk");
var UNj;var LZN;var Mr=function(){return _.D.apply(this,arguments)||this};
_.f(Mr,_.D);Mr.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Mr.prototype.computeBlueBottomLink=function(h){return h};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Mr.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon_(data.bottomIcon)"}),_.V("design:type",String)],Mr.prototype,"bottomIcon",void 0);
_.Y([_.x({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Mr.prototype,"enableBlueBottomLink",void 0);_.Y([_.K({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Mr);
_.X(Mr,"ytd-web-answer-renderer",function(){if(LZN!==void 0)return LZN;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return LZN=h},{mode:_.UQ("kevlar_poly_si_batch_j035")?1:2});var jW2;var WI=function(){var h=_.D.apply(this,arguments)||this;h.hasChipBar=!1;return h};
_.f(WI,_.D);WI.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}}};
WI.prototype.computeHasChipBar=function(h){return!(h==null||!h.chipBar)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WI.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.V("design:type",Object)],WI.prototype,"hasChipBar",void 0);_.Y([_.K({is:"ytd-search-header-renderer",disableElementRegistration:!0})],WI);
_.X(WI,"ytd-search-header-renderer",function(){if(jW2!==void 0)return jW2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return jW2=h},{mode:1});var dNj;var po=function(){return _.D.apply(this,arguments)||this};
_.f(po,_.D);po.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],po.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-page-continuation"})],po);
_.X(po,"ytd-page-continuation",function(){if(dNj!==void 0)return dNj;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return dNj=h},{mode:1});var COF;var JMr;var eVL;var q4U=function(){return _.D.apply(this,arguments)||this};
_.f(q4U,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],q4U.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],q4U.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],q4U);
_.X(q4U,"ytd-watch-card-one-vs-one-event",function(){if(eVL!==void 0)return eVL;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return eVL=h},{mode:1});var fzK=function(){return _.D.apply(this,arguments)||this};
_.f(fzK,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fzK.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fzK.prototype,"data",void 0);_.Y([_.K({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],fzK);
_.X(fzK,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(JMr!==void 0)return JMr;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JMr=h},{mode:1});var N$G;var tqM=function(){return _.D.apply(this,arguments)||this};
_.f(tqM,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tqM.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tqM.prototype,"data",void 0);_.Y([_.K({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],tqM);
_.X(tqM,"ytd-banner-and-box-hero-image-renderer",function(){if(N$G!==void 0)return N$G;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return N$G=h},{mode:1});var S4K;var GW=function(){var h=_.D.apply(this,arguments)||this;h.modern=_.J("web_modern_buttons");return h};
_.f(GW,_.D);GW.prototype.computeIcon=function(){var h,E,g=(h=this.data)==null?void 0:(E=h.icon)==null?void 0:E.iconType;if(g)return _.CL(g)};
GW.prototype.computeButtonShape=function(){var h;return{buttonText:_.Wp((h=this.data)==null?void 0:h.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ze.Object.defineProperties(GW.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"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GW.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],GW.prototype,"modern",void 0);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.S("data.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],GW.prototype,"buttonColor",null);
_.Y([_.K({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],GW);
_.X(GW,"ytd-call-to-action-button-renderer",function(){if(S4K!==void 0)return S4K;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return S4K=h},{mode:1});var xNM;var zW=function(){return _.D.apply(this,arguments)||this};
_.f(zW,_.D);zW.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.UB(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.R9(this.data.leftThumbnail.thumbnails,216)+")")};
zW.prototype.onLeftThumbnailChanged=zW.prototype.onLeftThumbnailChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zW.prototype,"data",void 0);_.Y([_.Nm("data.leftThumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zW.prototype,"onLeftThumbnailChanged",null);_.Y([_.K({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],zW);
_.X(zW,"ytd-collage-hero-image-renderer",function(){if(xNM!==void 0)return xNM;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return xNM=h},{mode:1});var wa2;var av=function(){return _.D.apply(this,arguments)||this};
_.f(av,_.D);av.prototype.computeStyle=function(h){return h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],av.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.V("design:type",String)],av.prototype,"componentStyle",void 0);_.Y([_.K({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],av);
_.X(av,"ytd-single-hero-image-renderer",function(){if(wa2!==void 0)return wa2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return wa2=h},{mode:1});var DN0;var cI=function(){return _.D.apply(this,arguments)||this};
_.f(cI,_.D);_.p=cI.prototype;
_.p.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.J("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.p.computeSubtitle=function(h){if(this.data){var E;if(this.data.upcomingEventData){h=_.Wp(h.subtitle);var g=Number(this.data.upcomingEventData.startTime);isNaN(g)||(E=_.MR(_.r5(h,g)))}else E=h.subtitle;return E}};
_.p.onHeroTap=function(h){h.preventDefault();var E=this.data&&this.data.navigationEndpoint;!E||!_.MI(_.Gw(h),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.MI(_.Gw(h),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.J("kevlar_watchcard_hero_video_renderer_killswitch")?_.Ra(this.hostElement,"yt-navigate",{navigationEndpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.p.computeHeroTabIndex=function(h){return h&&h.simpleText?-1:0};
_.p.computeHeroRole=function(h){return h&&h.simpleText?"":"link"};
_.p.computeIsReminderButtonPresent=function(h){return!(!h||!h.reminderButton)};
_.p.computeHideBottomItems=function(h){return!(this.computeIsReminderButtonPresent(h)||h.subtitle)};
_.p.dataChanged=function(){var h=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;((E=_.e(h==null?void 0:h.commandMetadata,_.Vi))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(h)};
cI.prototype.dataChanged=cI.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],cI.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cI.prototype,"data",void 0);
_.Y([_.x({computed:"computeSubtitle(data)"}),_.V("design:type",String)],cI.prototype,"subtitle",void 0);_.Y([_.x({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],cI.prototype,"isReminderButtonPresent",void 0);_.Y([_.x({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],cI.prototype,"hideBottomItems",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cI.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],cI);
_.X(cI,"ytd-watch-card-hero-video-renderer",function(){if(DN0!==void 0)return DN0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return DN0=h},{mode:1});var lzN;var ij=function(){return _.D.apply(this,arguments)||this};
_.f(ij,_.D);_.p=ij.prototype;_.p.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.p.computeTitleBadges=function(h){return h?[h]:[]};
_.p.computeHeaderStyle=function(h){return h?h.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.p.computeAvatarAriaLabel=function(h){if(h){var E,g,Z,M;return(M=(E=h.avatar)==null?void 0:(g=E.accessibility)==null?void 0:(Z=g.accessibilityData)==null?void 0:Z.label)!=null?M:_.Wp(h==null?void 0:h.title)}};
_.p.computeAvatarHeight=function(h){return h==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.p.computeBadgeRowClass=function(h){return(h==null?0:h[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ij.prototype,"data",void 0);_.Y([_.x({computed:"computeTitleBadges(data.titleBadge)"}),_.V("design:type",Array)],ij.prototype,"titleBadges",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.V("design:type",String)],ij.prototype,"headerStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.V("design:type",String)],ij.prototype,"badgeRowClass",void 0);_.Y([_.K({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],ij);
_.X(ij,"ytd-watch-card-rich-header-renderer",function(){if(lzN!==void 0)return lzN;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return lzN=h},{mode:1});var rM0;var mNU;var ov=function(){return _.D.apply(this,arguments)||this};
_.f(ov,_.D);ov.prototype.onMetadataTap=function(h){var E=this.data&&this.data.navigationEndpoint;E&&!_.MI(_.Gw(h),this.hostElement,["A".toString()])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:E})};
_.ze.Object.defineProperties(ov.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 h;if(this.data.upcomingEventData){var E=_.Wp(this.data.subtitle),g=Number(this.data.upcomingEventData.startTime);isNaN(g)||(h=_.MR(_.r5(E,g)))}else h=this.data.subtitle;return h}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ov.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data.style"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],ov.prototype,"isCondensed",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],ov.prototype,"subtitle",null);
_.Y([_.K({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ov);
_.X(ov,"ytd-watch-card-compact-video-renderer",function(){if(mNU!==void 0)return mNU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mNU=h},{mode:1});var v$j;var Hdx=function(){return _.D.apply(this,arguments)||this};
_.f(Hdx,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Hdx.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Hdx.prototype,"data",void 0);_.Y([_.K({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Hdx);
_.X(Hdx,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(v$j!==void 0)return v$j;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return v$j=h},{mode:1});var Iv=function(){return _.D.apply(this,arguments)||this};
_.f(Iv,_.D);Iv.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}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Iv.prototype,"ytRendererStamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Iv.prototype,"data",void 0);_.Y([_.K({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Iv);
_.X(Iv,"ytd-vertical-watch-card-list-renderer",function(){if(rM0!==void 0)return rM0;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return rM0=h},{mode:1});var $NF;var Rv=function(){var h=_.D.apply(this,arguments)||this;h.ariaExpanded="false";return h};
_.f(Rv,_.D);_.p=Rv.prototype;_.p.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.p.dataChanged=function(){var h;this.currentSeasonIndex=((h=this.data)==null?void 0:h.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.p.computeEpisodesInfo=function(h,E,g){if(h!==void 0&&E.length===h.length)return h[g]};
_.p.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.p.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.p.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.p.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.p.getUppercaseSimpleString=function(h){return this.ytRendererBehavior.getSimpleString(h).toUpperCase()};
_.p.updateCurrentSeasonIndexFromBinding=function(h){this.currentSeasonIndex=h.detail.value};
Rv.prototype.onIronOverlayClosed=Rv.prototype.onIronOverlayClosed;Rv.prototype.currentSeasonIndexChanged=Rv.prototype.currentSeasonIndexChanged;Rv.prototype.dataChanged=Rv.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rv.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",String)],Rv.prototype,"label",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],Rv.prototype,"currentSeasonIndex",void 0);_.Y([_.x({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.V("design:type",Object)],Rv.prototype,"episodesInfo",void 0);_.Y([_.x({value:"false"}),_.V("design:type",Object)],Rv.prototype,"ariaExpanded",void 0);_.Y([_.Sg("#lists"),_.V("design:type",Object)],Rv.prototype,"lists",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rv.prototype,"dataChanged",null);_.Y([_.lq("currentSeasonIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rv.prototype,"currentSeasonIndexChanged",null);_.Y([_.f3("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Rv.prototype,"onIronOverlayClosed",null);
_.Y([_.K({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Rv);
_.X(Rv,"ytd-watch-card-section-dropdown-renderer",function(){if($NF!==void 0)return $NF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $NF=h},{mode:1});var KZG;var PI=function(){var h=_.D.apply(this,arguments)||this;h.isSearch=!1;return h};
_.f(PI,_.D);PI.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}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],PI.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],PI.prototype,"isSearch",void 0);_.Y([_.K({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],PI);
_.X(PI,"ytd-watch-card-section-sequence-renderer",function(){if(KZG!==void 0)return KZG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return KZG=h},{mode:1});var Od0=_.O(function(h){return _.R("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.R(_.Sv,{data:function(){return h.data().ctaButton}},{buttonViewModel:_.$l}),_.R(_.dK,{text:function(){return h.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"xk");
Od0.idomCompat=!0;_.I9(Od0,"ytd-button-banner-view-model",{props:{data:_.C6}});var BI=function(){var h=_.D.apply(this,arguments)||this;h.isSearch=!1;return h};
_.f(BI,_.D);
BI.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"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BI.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],BI.prototype,"rounded",void 0);_.Y([_.x(),_.V("design:type",Object)],BI.prototype,"isSearch",void 0);
_.Y([_.K({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],BI);
_.X(BI,"ytd-universal-watch-card-renderer",function(){if(COF!==void 0)return COF;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return COF=h},{mode:1});var n$a;_.I9(_.O(function(h){var E=h.data;var g;h=!((g=_.GF().resolve(_.pl(_.gu)))==null||!g());g={};return _.R("overview-message-view-model",{class:_.CO("ytwOverviewMessageViewModelHost",(g.ytwOverviewMessageViewModelDarkBackground=h,g.ytwOverviewMessageViewModelLightBackground=!h,g))},_.R(_.P,{cond:function(){return E().primaryImage},
then:function(Z){return _.R(_.pO,{data:Z,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.R(_.P,{cond:function(){return E().primaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.R(_.dK,{text:function(){return E().primaryText}}))}}),_.R(_.P,{cond:function(){return E().secondaryText},
then:function(){return _.R("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.R(_.dK,{text:function(){return E().secondaryText}}))}}))},"yk"),"overview-message-view-model",{props:{data:_.C6}});_.I9(_.Kem,"ytd-overview-answer-view-model",{props:{data:_.C6}});var Ue=function(){return _.D.apply(this,arguments)||this};
_.f(Ue,_.D);Ue.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"}}}};
Ue.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],Ue.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ue.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Ue.prototype,"isSearch",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Ue);
_.X(Ue,"ytd-secondary-search-container-renderer",function(){if(n$a!==void 0)return n$a;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return n$a=h},{mode:1});var Xa2;var Lo=function(){var h=_.D.apply(this,arguments)||this;h.renderSecondarySearchContainer=!1;h.isSearch=!1;return h};
_.f(Lo,_.D);_.p=Lo.prototype;_.p.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.p.created=function(){var h=this;this.boundStampSecondarySearchContainerIfFits=function(){h.stampSecondarySearchContainerIfFits()};
_.OW("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.p.computeIsSearchFrictionPage=function(h){var E,g,Z,M,W;h=h==null?void 0:(E=h.primaryContents)==null?void 0:(g=E.sectionListRenderer)==null?void 0:(Z=g.contents)==null?void 0:(M=Z[0])==null?void 0:(W=M.itemSectionRenderer)==null?void 0:W.contents;if(!h)return!1;E=_.G(h);for(g=E.next();!g.done;g=E.next())if(Z=void 0,(Z=g.value)==null?0:Z.searchFrictionViewModel)return!0;return!1};
_.p.computeShowSecondaryColumn=function(h,E){return!!(E&&E.secondaryContents&&h)};
_.p.activeChanged=function(){var h=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.qm(this,this.debounceStampSecondarySearchContainerIfFits)),_.hW(function(){h.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.qm(this,this.debounceStampSecondarySearchContainerIfFits))};
_.p.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.p.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.p.debounceStampSecondarySearchContainerIfFits=function(){_.EQ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.p.onRetrieveLocation=function(h,E){E.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);h.stopPropagation()};
_.p.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Lo.prototype.dataChanged=Lo.prototype.dataChanged;Lo.prototype.onRetrieveLocation=Lo.prototype.onRetrieveLocation;Lo.prototype.persistentGuideChanged=Lo.prototype.persistentGuideChanged;Lo.prototype.activeChanged=Lo.prototype.activeChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Lo.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],Lo.prototype,"ironResizableBehavior",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Lo.prototype,"active",void 0);_.Y([_.x(),_.V("design:type",Object)],Lo.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.J("enable_desktop_search_bigger_thumbs")}}),
_.V("design:type",Boolean)],Lo.prototype,"useBiggerThumbs",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.iN("desktop_search_bigger_thumbs_style")}}),
_.V("design:type",String)],Lo.prototype,"biggerThumbsStyle",void 0);_.Y([_.x(),_.V("design:type",Object)],Lo.prototype,"renderSecondarySearchContainer",void 0);_.Y([_.x({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.V("design:type",Boolean)],Lo.prototype,"showSecondaryColumn",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.V("design:type",Boolean)],Lo.prototype,"isSearchFrictionPage",void 0);
_.Y([_.x(),_.V("design:type",Object)],Lo.prototype,"isSearch",void 0);_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"activeChanged",null);_.Y([_.Nm("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"persistentGuideChanged",null);
_.Y([_.f3("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Lo.prototype,"onRetrieveLocation",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Lo.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Lo);
_.X(Lo,"ytd-two-column-search-results-renderer",function(){if(Xa2!==void 0)return Xa2;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Xa2=h},{mode:1});var jr=function(){var h=_.D.apply(this,arguments)||this;h.hasSearchHeader=!1;h.hasSecondaryContent=!1;h.hasBiggerThumbs=_.J("enable_desktop_search_bigger_thumbs");h.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return h};
_.f(jr,_.D);_.p=jr.prototype;_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.dm(["aa","eocs"])}}};
_.p.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.p.loadPage_=function(h){this.initCsi();h&&(this.data=h,_.OW("REFINEMENTS_TUPLE",["FromSearchResponse",h.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.E$(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.p.initCsi=function(){_.fjX("results",["ol","cpt"])};
_.p.updateTitle=function(){var h=_.FR(window.location.href,"q");h||(h=_.FR(window.location.href,"search_query"));_.Ra(this.hostElement,"yt-update-title",h||"")};
_.p.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.p.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.J("web_srp_data_changed_terminate_imp_killswitch")||_.BX(this.hostElement,"yt-terminate-video-preview-action")};
_.p.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.p.computeHasSearchHeader=function(h){var E;h=h==null?void 0:(E=h.header)==null?void 0:E.searchHeaderRenderer;return!!h&&(!!h.searchFilterButton||!!h.chipBar)};
_.p.computeHasSecondaryContent=function(h){var E,g;return!!(h==null?0:(E=h.contents)==null?0:(g=E.twoColumnSearchResultsRenderer)==null?0:g.secondaryContents)};
_.ze.Object.defineProperties(jr,{template:{configurable:!0,enumerable:!0,get:function(){if(UNj===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);UNj=h}h=UNj;return h}}});
jr.prototype.onReloadContinuationFinish=jr.prototype.onReloadContinuationFinish;jr.prototype.dataChanged=jr.prototype.dataChanged;_.Y([_.t(_.GP.YtPageBehavior),_.V("design:type",Object)],jr.prototype,"ytPageBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],jr.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],jr.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jr.prototype,"data",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],jr.prototype,"monitorScroll",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jr.prototype,"hasSearchHeader",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jr.prototype,"hasSecondaryContent",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jr.prototype,"hasBiggerThumbs",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jr.prototype,"dataChanged",null);
_.Y([_.f3("yt-reload-continuation-finish"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jr.prototype,"onReloadContinuationFinish",null);_.Y([_.K({is:"ytd-search"})],jr);_.HZ.registerService(_.aBZ,jr);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("h8y2qb");
var tUX=function(h){if(h=_.mY4(h)){var E;(E=h.sources)!=null&&E[0]?(E=_.Hvz(h),E=E<1?"VERTICAL":E>1?"HORIZONTAL":"SQUARE"):E=void 0;return E}},zP=function(h){_.H5.call(this,"upload");
this.opts.query=h},xFJ=function(h,E){return _.R(SMi,{data:h,
onYtNavigate:E})},wYc=function(h,E){return _.Jj(h.entities,"pageHeaderEntity",E)},ljX=function(h,E){return h.map(function(g){if(g.tabRenderer)return DFJ(g.tabRenderer);
if(g.expandableTabRenderer&&E){var Z=g.expandableTabRenderer;return{customTabRenderable:function(){return E(Z)}}}return{}})},DFJ=function(h){return{identifier:h.tabIdentifier,
aTagConfig:_.F8({innertubeCommand:h.endpoint,forceNewState:!0}),title:h.title,selected:h.selected,disabled:h.unselectable,icon:h.icon}},rwG=function(h){return _.RY({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:h})},mFI=function(h){if(!_.c3(document,"gtm-noscript")){var E=document.createElement("noscript");
E.id="gtm-noscript";E.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+h+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(E)}};_.aV(zP,_.H5);zP.prototype.JSC$10075_setLabel=function(h){zP.superClass_.JSC$10075_setLabel.call(this,h);return this};
zP.prototype.addUploadMetadata=function(h,E){zP.superClass_.addUploadMetadata.call(this,h,E);return this};var vbC=function(h){if(h!=="youtubebanner"&&h!=="youtube-channel-banner")throw Error("Co");zP.call(this,h)};
_.f(vbC,zP);vbC.prototype.JSC$10075_setLabel=function(h){zP.prototype.JSC$10075_setLabel.call(this,h);return this};
vbC.prototype.addUploadMetadata=function(h,E){zP.prototype.addUploadMetadata.call(this,h,E);return this};var H9G=[_.F3,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(h){_.vl(h).path[0]!==this&&(this.resetLayout(),h.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var h=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.qu(this._layoutDebouncer,_.HK,h);_.f2(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var h=this;requestAnimationFrame(function(){h.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(h){this.resizerShouldNotify(h)&&this._notifyDescendant(h)},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 $FU=[_.AUM,{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(h,E){var g=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[h];if(!g)throw new ReferenceError(this._getUndefinedMsg(h));h=this._boundEffect(g,E||{});h.setUp();return h},
_effectsChanged:function(h,E,g){this._tearDownEffects();h&&g&&(h.split(" ").forEach(function(Z){var M;Z!==""&&((M=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[Z])?this._effects.push(this._boundEffect(M,E[Z])):console.warn(this._getUndefinedMsg(Z)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(h,E){E=E||{};var g=parseFloat(E.startsAt||0),Z=parseFloat(E.endsAt||1),M=Z-g,W=function(){};
Z=g===0&&Z===1?h.run:function(z,c){h.run.call(this,Math.max(0,(z-g)/M),c)};
return{setUp:h.setUp?h.setUp.bind(this,E):W,run:h.run?Z.bind(this):W,tearDown:h.tearDown?h.tearDown.bind(this):W}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(h){h.setUp()!==!1&&this._effectsRunFn.push(h.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(h){h.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(h,E){this._effectsRunFn&&this._effectsRunFn.forEach(function(g){g(h,E)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var h=this._clampedScrollTop;this._updateScrollState(h);this.threshold>0&&this._setThresholdTriggered(h>=this.threshold)}},
_getDOMRef:function(h){console.warn("_getDOMRef","`"+h+"` is undefined")},
_getUndefinedMsg:function(h){return"Scroll effect `"+h+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+h+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Do`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(h){var E={};h=parseFloat(h.scalar);E.background=this._getDOMRef("background");E.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");E.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");E.deltaBg=E.backgroundFrontLayer.offsetHeight-E.background.offsetHeight;E.deltaBg===0?(isNaN(h)&&(h=.8),E.deltaBg=(this._dHeight||0)*h):(isNaN(h)&&(h=
1),E.deltaBg*=h);this._fxParallaxBackground=E},
run:function(h){var E=this._fxParallaxBackground;this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,h)+"px, 0px)",E.backgroundFrontLayer);E.backgroundRearLayer&&this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,h)+"px, 0px)",E.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var KBC;var O9G;var nbJ=function(){};
_.p=nbJ.prototype;_.p._scrollTargetChanged=function(){};
_.p.scroll=function(){};
_.p._isValidScrollTarget=function(){};
_.p._toggleScrollListener=function(){};
_.p.toggleScrollListener=function(){};
_.p.createEffect=function(){};
_.p._effectsChanged=function(){};
_.p._layoutIfDirty=function(){};
_.p._boundEffect=function(){};
_.p._setUpEffect=function(){};
_.p._tearDownEffects=function(){};
_.p._runEffects=function(){};
_.p._scrollHandler=function(){};
_.p._scrollStateChanged=function(){};
_.p._getUndefinedMsg=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p._appResetLayoutHandler=function(){};
_.p.resetLayout=function(){};
_.p._notifyLayoutChanged=function(){};
_.p._notifyDescendantResize=function(){};
_.p._setThresholdTriggered=function(){};
nbJ=_.OB({_template:function(){if(O9G!==void 0)return O9G;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;KBC===void 0&&(KBC=document.createElement("template"));var Z=KBC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return O9G=h},
is:"tp-yt-app-header",behaviors:[$FU,H9G],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 h=_.vl(this.$.slot).getDistributedNodes(),E=0,g;g=h[E];E++)if(g.nodeType===Node.ELEMENT_NODE)if(g.hasAttribute("sticky")){this._stickyElRef=g;break}else this._stickyElRef||(this._stickyElRef=g);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var h=this._clampedScrollTop,E=this._height===0||h===0,g=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;E||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();E?this._updateScrollState(h,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=g}},
_updateScrollState:function(h,E){if(this._height!==0){var g=0,Z=this._top;var M=this._maxHeaderTop;var W=h-this._lastScrollTop,z=Math.abs(W),c=h>this._lastScrollTop,I=performance.now();this._mayMove()&&(g=this._clamp(this.reveals?Z+W:h,0,M));h>=this._dHeight&&(g=this.condenses&&!this.fixed?Math.max(this._dHeight,g):g,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&z<100){if(I-this._initTimestamp>300||this._wasScrollingDown!==c)this._initScrollTop=h,this._initTimestamp=I;h>=M&&
(Math.abs(this._initScrollTop-h)>30||z>10?(c&&h>=M?g=M:!c&&h>=this._dHeight&&(g=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((g-Z)/(W/(I-this._lastTimestamp)),0,300)+"ms"):g=this._top)}M=this._dHeight===0?h>0?1:0:g/this._dHeight;E||(this._lastScrollTop=h,this._top=g,this._wasScrollingDown=c,this._lastTimestamp=I);if(E||M!==this._progress||Z!==g||h===0)this._progress=M,this._runEffects(M,g),this._transformHeader(g)}},
_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(h){this.translate3d(0,-h+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&h>=this._stickyElTop?Math.min(h,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(h,E,g){return Math.min(g,Math.max(E,h))},
_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),_.vl(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(h){switch(h){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.vl(this).querySelector("[main-title]");case "condensedTitle":return _.vl(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var XYX;var YMJ;_.OB({_template:function(){if(YMJ!==void 0)return YMJ;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;XYX===void 0&&(XYX=document.createElement("template"));var Z=XYX;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return YMJ=h},
is:"tp-yt-app-header-layout",behaviors:[H9G],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.vl(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var h=this.header;if(this.isAttached&&h){this.$.wrapper.classList.remove("initializing");h.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)h.style.left=
"",h.style.right="";else{var E=this.getBoundingClientRect(),g=document.documentElement.clientWidth-E.right;h.style.left=E.left+"px";h.style.right=g+"px"}E=this.$.contentContainer.style;g=h.offsetHeight;h.fixed&&!h.condenses&&this.hasScrollingRegion?(E.marginTop=g+"px",E.paddingTop=""):(E.paddingTop=g+"px",E.marginTop="")}}});var sLp=new _.I2("alertCommand");var VUi=new _.I2("manageLabsStateCommand");var kJZ=new _.I2("inlineFormRenderer");var ywi=new _.I2("playlistSidebarPrimaryInfoRenderer");var FBx=new _.I2("productDetailsThumbnailRenderer"),Awx=new _.I2("productDetailsVariantRenderer"),T3X=new _.I2("productDetailsVariantOptionRenderer"),b9U=new _.I2("productDetailsOffersContainerRenderer"),u6i=new _.I2("productDetailsOfferRenderer");var QLC=new _.I2("shoppingFlaggingRenderer");var hvI=new _.I2("playlistBylineRenderer");var E4p=new _.I2("insertChannelTabCommand");var a6=function(){return _.wD.apply(this,arguments)||this};
_.f(a6,_.wD);_.p=a6.prototype;_.p.activeChanged=function(){if(this.active){var h=_.UB(this.hostElement).querySelector("#header");h&&_.Ra(h,"iron-resize");window.addEventListener("scroll",_.qm(this,this.onScroll))}else window.removeEventListener("scroll",_.qm(this,this.onScroll)),_.Ra(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.p.guideVisibleChanged=function(){var h=_.UB(this.hostElement).querySelector("#header");h&&_.Ra(h,"iron-resize")};
_.p.onScroll=function(){var h=this;_.EQ(this,"onScroll",function(){var E=_.UB(h.hostElement).querySelector("#header");E&&E.polymerController&&(E=E.polymerController.getScrollState().progress===1?"standard":"seamed",_.Ra(h.hostElement,"yt-request-panel-mode-change",{mode:E}))},10)};
_.p.tabsChanged=function(){if(this.tabs){for(var h=null,E=0,g=this.tabs.length;E<g;++E){var Z=this.tabs[E].tabRenderer;if(Z&&Z.selected){h=E;break}}this.selected=h}};
_.p.onTabsActivate=function(h){_.Ra(this.hostElement,"yt-navigate",{endpoint:this.tabs[h.detail.selected].tabRenderer.endpoint})};
a6.prototype.tabsChanged=a6.prototype.tabsChanged;a6.prototype.guideVisibleChanged=a6.prototype.guideVisibleChanged;a6.prototype.activeChanged=a6.prototype.activeChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],a6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],a6.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.x(),_.V("design:type",Array)],a6.prototype,"tabs",void 0);
_.Y([_.x(),_.V("design:type",Object)],a6.prototype,"selected",void 0);_.Y([_.x(),_.V("design:type",Boolean)],a6.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],a6.prototype,"disableHeaderFluidWidth",void 0);_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],a6.prototype,"activeChanged",null);
_.Y([_.Nm("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],a6.prototype,"guideVisibleChanged",null);_.Y([_.Nm("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],a6.prototype,"tabsChanged",null);_.Y([_.DM()],a6);var g4G=[_.T.YtRendererBehavior,_.P_.YtdGuideStateAwareBehavior,a6.prototype];var ZKc=2/3,M5Z=_.Uz(130749),W4x=function(h,E){var g=this;this.element=h;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){g.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:ZKc,moveAction:function(Z){g.moveAction(Z)},
triggerAction:function(){g.element.isReloading=!0;_.TT(_.SQ(),{visualElement:M5Z});_.eQ.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:g.element}})}}}};
_.Ht(_.SQ(),M5Z,this.layer);this.gesture=new _.Om(h,E,this.refreshConfig,"pan-down");this.attach()};
_.p=W4x.prototype;_.p.attach=function(){this.gesture.attach()};
_.p.detach=function(){this.gesture.detach()};
_.p.reset=function(){this.element.close()};
_.p.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.p.moveAction=function(h){this.element.rotation=h*360};var pNU=_.Uz(130750),cy=function(h,E,g,Z,M){var W=this;this.element=h;this.parent=g;this.channelHeader=Z;this.ytdReduxDispatch=M;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){W.tabsStartAtInPx=W.channelHeader.clientHeight-48;var z;(z=W.selectedTab)!=null&&z.title&&(z=_.GF().resolve(_.pl(_.p4)))&&(z=z.getCurrentPage(),W.lastVisitedTabScrollPosition=z.getScrollTop(),W.previousTab&&
((W.lastVisitedTabScrollPosition===void 0?0:W.lastVisitedTabScrollPosition<W.channelHeader.clientHeight-48)?W.scrollPositionForTabs.has(W.selectedTab.title)&&W.scrollPositionForTabs.delete(W.selectedTab.title):W.scrollPositionForTabs.set(W.selectedTab.title,z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:G6U(),triggerAction:function(){W.navigate(W.previousTab)},
moveAction:function(z,c){W.moveAction(z,c)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-G6U(),triggerAction:function(){W.navigate(W.nextTab)},
moveAction:function(z,c){W.moveAction(z,c)}}}};
_.Ht(_.SQ(),pNU,this.layer);this.gesture=new _.Om(h,E,this.tabConfig);this.attach()};
cy.prototype.attach=function(){this.gesture.attach()};
cy.prototype.detach=function(){this.gesture.detach()};
cy.prototype.tabsChanged=function(h){if(h){var E=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;h=_.G(h);for(var g=h.next();!g.done;g=h.next()){g=g.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=g);var Z=void 0;if((Z=g)==null?0:Z.selected)this.previousTab=E,this.selectedTab=g;E=g}E=this.gesture;h=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}});
E.config=h;this.scrollPositionNeedsUpdate=!0}};
cy.prototype.moveAction=function(h,E){if(!this.tabsElement){var g;this.tabsElement=(g=this.parent.header)==null?void 0:g.tabsElement;E==="right"&&this.previousTab?_.ZjC(_.Fp.instance,this.previousTab.endpoint,{},""):E==="left"&&this.nextTab&&_.ZjC(_.Fp.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}g=this.tabsElement._pos;E==="right"&&(h*=-1);this.tabsElement._positionBar(g.width,g.left*1+g.width*h)};
var G6U=function(){var h,E;return(E=(h=_.GF().resolve(_.p4).getCurrentPage())==null?void 0:h.clientWidth)!=null?E:0};
cy.prototype.navigate=function(h){this.element.data=void 0;if(h=h==null?void 0:h.endpoint)this.ytdReduxDispatch(rwG(!0)),_.TT(_.SQ(),{visualElement:pNU}),_.eQ.instance.resolveCommand({navigateAction:{endpoint:h}},{form:{element:this.element}})};var zvU;var aHx;var ib=function(){return _.D.apply(this,arguments)||this};
_.f(ib,_.D);ib.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ib.prototype,"data",void 0);_.Y([_.K({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ib);
_.X(ib,"ytd-labs-edit-renderer",function(){if(aHx!==void 0)return aHx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return aHx=h},{mode:1});var cyc;var o6=function(){var h=_.D.apply(this,arguments)||this;h.dark=!1;h.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";h.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(o6,_.D);o6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
o6.prototype.ready=function(){var h=document.documentElement.hasAttribute("dark");this.setBackgroundImage(h);this.dark=h};
o6.prototype.onDarkModeToggledAction=function(h){this.setBackgroundImage(h);this.dark=h};
o6.prototype.setBackgroundImage=function(h){_.Ja(this.hostElement,{"--yt-labs-header-background":"url("+(h?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],o6.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],o6.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],o6.prototype,"dark",void 0);
_.Y([_.K({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],o6);
_.X(o6,"ytd-labs-header-renderer",function(){if(cyc!==void 0)return cyc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return cyc=h},{mode:1});var iKx;var I6=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return h};
_.f(I6,_.D);I6.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"}}}}}};
I6.prototype.onYtToggleButton=function(h){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",h.detail.toggled)};
I6.prototype.onManageLabsState=function(h){if(h=_.e(h,VUi))h.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?h.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&h.labsItemId===this.data.labsItemId&&(h.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.BX(this.hostElement,"yt-check-labs-opted-in-state").some(function(E){return E})&&this.data.confirmationDialogCommand?_.jj(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.GF().resolve(_.zF).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&h.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.GF().resolve(_.zF).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
I6.prototype.onCheckLabsOptedInState=function(){var h=this.get("data.primaryButton.toggleButtonRenderer");return h?h.isToggled:!1};
_.ze.Object.defineProperties(I6.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
I6.prototype.onYtToggleButton=I6.prototype.onYtToggleButton;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],I6.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],I6.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],I6.prototype,"itemStyle",null);_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],I6.prototype,"onYtToggleButton",null);_.Y([_.K({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],I6);
_.X(I6,"ytd-labs-item-renderer",function(){if(iKx!==void 0)return iKx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return iKx=h},{mode:1});var o4i;var IHC;var Rvc=function(){return _.D.apply(this,arguments)||this};
_.f(Rvc,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rvc.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rvc.prototype,"data",void 0);_.Y([_.K({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Rvc);
_.X(Rvc,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(IHC!==void 0)return IHC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return IHC=h},{mode:1});var PSU;var R6=function(){return _.D.apply(this,arguments)||this};
_.f(R6,_.D);R6.prototype.observeSuperchatChip=function(){if(this.data){var h={"--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)};_.Ja(this.hostElement,h)}};
R6.prototype.colorFromDecimal=function(h){return _.uU(Number(h||0))};
R6.prototype.observeSuperchatChip=R6.prototype.observeSuperchatChip;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],R6.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],R6.prototype,"observeSuperchatChip",null);_.Y([_.K({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],R6);
_.X(R6,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(PSU!==void 0)return PSU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return PSU=h},{mode:1});var Py=function(){return _.D.apply(this,arguments)||this};
_.f(Py,_.D);Py.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"}}}};
_.ze.Object.defineProperties(Py.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.iL),_.V("design:type",Object)],Py.prototype,"ytdDismissibleItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Py.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Py.prototype,"hideMessageBlock",null);
_.Y([_.K({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Py);
_.X(Py,"ytd-live-chat-history-entry-renderer",function(){if(o4i!==void 0)return o4i;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return o4i=h},{mode:1});var Bjx;var UQZ=function(){return _.D.apply(this,arguments)||this};
_.f(UQZ,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UQZ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UQZ.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],UQZ);
_.X(UQZ,"ytd-channel-options-renderer",function(){if(Bjx!==void 0)return Bjx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Bjx=h},{mode:1});var L4c;var By=function(){return _.D.apply(this,arguments)||this};
_.f(By,_.D);By.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],By.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],By.prototype,"data",void 0);_.Y([_.K({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],By);
_.X(By,"ytd-settings-email-item-renderer",function(){if(L4c!==void 0)return L4c;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return L4c=h},{mode:1});var jzc;var UP=function(){return _.D.apply(this,arguments)||this};
_.f(UP,_.D);UP.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"}}}};
UP.prototype.getExpansionIcon=function(h){return h?"COLLAPSE":"EXPAND"};
UP.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ze.Object.defineProperties(UP.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],UP.prototype,"data",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],UP.prototype,"expanded",void 0);_.Y([_.S("expanded"),_.V("design:type",String),_.V("design:paramtypes",[])],UP.prototype,"emailListExpanded",null);
_.Y([_.Sg("#options"),_.V("design:type",Object)],UP.prototype,"options",void 0);_.Y([_.K({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],UP);
_.X(UP,"ytd-settings-email-list-renderer",function(){if(jzc!==void 0)return jzc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jzc=h},{mode:1});var dQc;var Lc=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return h};
_.f(Lc,_.D);Lc.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"}}}};
Lc.prototype.handleSignalActionSubmitForm=function(){var h,E=(h=this.formRenderer)==null?void 0:h.getForm();E&&this.data.serviceEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},E,{element:this.hostElement})})};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Lc.prototype,"data",void 0);_.Y([_.Sg("yt-form-renderer"),_.V("design:type",Object)],Lc.prototype,"formRenderer",void 0);
_.Y([_.K({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],Lc);
_.X(Lc,"ytd-settings-gaia-link-renderer",function(){if(dQc!==void 0)return dQc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dQc=h},{mode:1});var CSG;var jo=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return h};
_.f(jo,_.D);jo.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.tXx()&&this.set("data.hidden",!1)};
jo.prototype.onSwitchReady=function(){var h=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.J("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.NXX().then(function(E){E&&(Notification.permission==="default"?h.set("data.hidden",!1):Notification.permission==="granted"&&_.Xw("NotificationsDisabled").then(function(g){g||_.BX(h.hostElement,"yt-toggle-settings-switch",[h.data.id,!g]);h.set("data.hidden",!1)}).catch(function(){}))})})};
jo.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}}}}};
jo.prototype.handleUpdateOptionsCommand=function(h){(h=_.e(h,_.Orl))&&this.data&&this.data.id===h.id&&(this.set("data.hidden",h.hidden),h.text!==void 0&&this.set("data.text",h.text),h.clearOptions&&this.set("data.options",[]))};
jo.prototype.onSwitchReady=jo.prototype.onSwitchReady;jo.prototype.dataChanged=jo.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],jo.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jo.prototype,"data",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jo.prototype,"dataChanged",null);_.Y([_.f3("yt-settings-switch-ready"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jo.prototype,"onSwitchReady",null);_.Y([_.K({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],jo);
_.X(jo,"ytd-settings-options-renderer",function(){if(CSG!==void 0)return CSG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return CSG=h},{mode:1});var JyZ;var d1=function(){return _.D.apply(this,arguments)||this};
_.f(d1,_.D);d1.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
d1.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
d1.prototype.onYtExpanderMoreTapped=d1.prototype.onYtExpanderMoreTapped;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],d1.prototype,"data",void 0);
_.Y([_.f3("yt-expander-more-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d1.prototype,"onYtExpanderMoreTapped",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],d1);
_.X(d1,"ytd-product-details-description-renderer",function(){if(JyZ!==void 0)return JyZ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JyZ=h},{mode:1});var evU;var Cc=function(){var h=_.D.apply(this,arguments)||this;h.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";h.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";h.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";h.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return h};
_.f(Cc,_.D);Cc.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ze.Object.defineProperties(Cc.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:(E=h.offerData)==null?void 0:E.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?void 0:h.purchaseButtonRenderers)!==void 0&&((E=this.data)==null?void 0:E.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.formattedFromMerchantText)&&(!((E=this.data)==null||!E.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Cc.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cc.prototype,"data",void 0);
_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],Cc.prototype,"shippingIcon",void 0);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],Cc.prototype,"shippingAddressIcon",void 0);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],Cc.prototype,"googleGuaranteeIcon",void 0);
_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?String:void 0}),_.V("design:type",Object)],Cc.prototype,"returnPolicyIcon",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cc.prototype,"showAdditionalFees",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cc.prototype,"showMultiPurchaseButtons",null);
_.Y([_.S("data","showMultiPurchaseButtons"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Cc.prototype,"showPurchaseData",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Cc);
_.X(Cc,"ytd-product-details-hero-offer-renderer",function(){if(evU!==void 0)return evU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return evU=h},{mode:1});var qNc;var fHp;var JJ=function(){return _.D.apply(this,arguments)||this};
_.f(JJ,_.D);_.p=JJ.prototype;_.p.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.p.onKeyDown=function(h){h=h.keyCode;h!==13&&h!==32||this.handleSelection()};
_.p.onMouseEnterImage=function(){var h;((h=this.data)==null?void 0:h.thumbnailDetails)!==void 0&&_.U7(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.p.onMouseLeaveImage=function(){_.U7(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.p.handleSelection=function(){this.data&&_.Ra(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ze.Object.defineProperties(JJ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.isSelected)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],JJ.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],JJ.prototype,"isSelected",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],JJ);
_.X(JJ,"ytd-product-details-thumbnail-renderer",function(){if(fHp!==void 0)return fHp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return fHp=h},{mode:1});var eo=function(){var h=_.D.apply(this,arguments)||this;var E={};h.actionMap=(E["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",E["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",E);h.selectedThumbnailIndex=0;h.selectItem=function(g){g.target.onKeyDown(g)};
return h};
_.f(eo,_.D);_.p=eo.prototype;_.p.handlePreviewImageSelect=function(h){this.hoverThumbnail=h};
_.p.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.p.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.p.onThumbnailSelected=function(h,E){this.selectedThumbnailIndex=E};
_.p.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.p.updateOffset=function(){var h=_.UB(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-h));this.ytdHorizontalListBehavior.reposition_()};
_.ze.Object.defineProperties(eo.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null?0:h.imageRenderer){var E,g;return((E=this.data)==null?void 0:(g=E.imageRenderer)==null?void 0:g.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var h;if((h=this.data)==null?0:h.imageRenderer){var E;return(E=_.e(this.data.imageRenderer[this.selectedThumbnailIndex],FBx))==null?void 0:E.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g,Z,M=(Z=(E=this.data)==null?void 0:(g=E.imageRenderer)==null?void 0:g.map(function(W,z){return{productDetailsThumbnailRenderer:Object.assign({},_.e(W,FBx),{index:z,isSelected:z===h.selectedThumbnailIndex})}}))!=null?Z:[];
return Object.assign({},this.data,{imageRenderer:M})}}});
eo.prototype.updateOffset=eo.prototype.updateOffset;eo.prototype.dataChanged=eo.prototype.dataChanged;eo.prototype.onThumbnailSelected=eo.prototype.onThumbnailSelected;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Dw.YtdHorizontalListBehavior),_.V("design:type",Object)],eo.prototype,"ytdHorizontalListBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],eo.prototype,"componentBehavior",void 0);_.Y([_.t([_.Yl.YtActionHandlerBehavior]),_.V("design:type",Object)],eo.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eo.prototype,"data",void 0);_.Y([_.x({value:"$.items.children"}),_.V("design:type",String)],eo.prototype,"itemsPath",void 0);_.Y([_.x({value:3}),_.V("design:type",Number)],eo.prototype,"initialCount",void 0);
_.Y([_.Sg("#items"),_.V("design:type",Object)],eo.prototype,"items",void 0);_.Y([_.x(),_.V("design:type",Object)],eo.prototype,"selectedThumbnailIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],eo.prototype,"hoverThumbnail",void 0);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],eo.prototype,"showThumbnails",null);
_.Y([_.f3("ytd-product-details-thumbnail-renderer-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Number]),_.V("design:returntype")],eo.prototype,"onThumbnailSelected",null);_.Y([_.S("data","selectedThumbnailIndex","hoverThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],eo.prototype,"thumbnailDetails",null);_.Y([_.S("data","selectedThumbnailIndex"),_.V("design:type",Object),_.V("design:paramtypes",[])],eo.prototype,"populatedData",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"dataChanged",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eo.prototype,"updateOffset",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],eo);
_.X(eo,"ytd-product-details-image-carousel-renderer",function(){if(qNc!==void 0)return qNc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return qNc=h},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var NjU;var q5=function(){return _.D.apply(this,arguments)||this};
_.f(q5,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],q5.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],q5.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],q5);
_.X(q5,"ytd-product-details-offer-renderer",function(){if(NjU!==void 0)return NjU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return NjU=h},{mode:1});var t5Z;var fc=function(){var h=_.D.apply(this,arguments)||this;h.isOffersHidden=!0;return h};
_.f(fc,_.D);fc.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var h,E=_.e((h=this.data)==null?void 0:h.viewOffersButton,_.Gh);E&&this.ytRendererBehavior.logExplicitClick(E)};
fc.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ze.Object.defineProperties(fc.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z;return(g=_.e((h=this.data)==null?void 0:(E=h.offers)==null?void 0:E[0],u6i))==null?void 0:(Z=g.offerData)==null?void 0:Z.vendorLogoUrl}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],fc.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fc.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],fc.prototype,"isOffersHidden",void 0);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],fc.prototype,"firstOfferVendorLogoUrl",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],fc);
_.X(fc,"ytd-product-details-offers-container-renderer",function(){if(t5Z!==void 0)return t5Z;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return t5Z=h},{mode:1});var SNJ;var xQ0;var N5=function(){return _.D.apply(this,arguments)||this};
_.f(N5,_.D);N5.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
N5.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.U7(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
N5.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.U7(this,"ytd-product-details-variant-image-unselect")};
_.ze.Object.defineProperties(N5.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 h;return((h=this.data)==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?void 0:h.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((g=this.data)==null?void 0:g.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var h;if(((h=this.data)==null?void 0:h.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.isUnavailable?(h=this.data)==null?void 0:h.variantOptionUnavailableAccessibilityLabel:(E=this.data)==null?void 0:E.variantOptionAccessibilityLabel}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],N5.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],N5.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],N5.prototype,"displayType",void 0);
_.Y([_.S("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N5.prototype,"isImageButton",null);_.Y([_.S("displayType","data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N5.prototype,"isPillButton",null);_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N5.prototype,"isActive",null);
_.Y([_.S("data"),_.x({reflectToAttribute:!0}),_.V("design:type",Boolean),_.V("design:paramtypes",[])],N5.prototype,"isUnavailable",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],N5.prototype,"thumbnailDetails",null);_.Y([_.S("isUnavailable","data"),_.V("design:type",Object),_.V("design:paramtypes",[])],N5.prototype,"accessibilityLabel",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],N5);
_.X(N5,"ytd-product-details-variant-option-renderer",function(){if(xQ0!==void 0)return xQ0;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return xQ0=h},{mode:1});var wNU;var tJ=function(){var h=_.D.apply(this,arguments)||this;h.variantsExpanded=!1;h.hideShowMoreLessVariantButton=!0;h.initialized=!1;h.computeVariantsDebouncer=null;h.computeVariants=function(E){E=E===void 0?!1:E;h.variantsExpanded||h.showOptions()||!E||(h.variantsExpanded=!0);if(h.variantsExpanded){E=_.G(h.items.children);for(var g=E.next();!g.done;g=E.next())g.value.hidden=!1}h.initialized=!0};
return h};
_.f(tJ,_.D);_.p=tJ.prototype;_.p.ready=function(){var h=this;setTimeout(function(){h.computeVariants(!0)})};
_.p.showOptions=function(){for(var h=_.G(this.items.children),E=h.next();!E.done;E=h.next())E.value.hidden=!0;var g=this.container.getBoundingClientRect().width,Z=0,M=h=0;E=!1;for(var W=_.G(this.items.children),z=W.next();!z.done;z=W.next()){z=z.value;z.hidden=!1;var c=z.getBoundingClientRect().width;if(Z+c<g)Z+=c;else if(++M<2)Z=c;else break;h+=1;z.hasAttribute("is-active")&&(E=!0)}for(g=h;g<this.items.children.length;g++)this.items.children[g].hidden=!0;this.hideShowMoreLessVariantButton=h===this.items.children.length;
return E};
_.p.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.qu(this.computeVariantsDebouncer,_.o1.after(100),this.computeVariants)};
_.p.onShowMoreLessVariantsButtonClick=function(){var h;(h=this.data)!=null&&h.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.p.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ze.Object.defineProperties(tJ.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.variantOptionRenderers)==null?void 0:E.find(function(W){return _.e(W,T3X).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),Z,M;
return(M=(Z=_.e(g,T3X))==null?void 0:Z.name)!=null?M:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.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"}}}});
tJ.prototype.debouncedComputeVariants=tJ.prototype.debouncedComputeVariants;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],tJ.prototype,"componentBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],tJ.prototype,"ironResizableBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],tJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],tJ.prototype,"variantsExpanded",void 0);_.Y([_.x(),_.V("design:type",Object)],tJ.prototype,"hideShowMoreLessVariantButton",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],tJ.prototype,"initialized",void 0);_.Y([_.Sg("#items"),_.V("design:type",HTMLDivElement)],tJ.prototype,"items",void 0);_.Y([_.Sg("#container"),_.V("design:type",HTMLDivElement)],tJ.prototype,"container",void 0);
_.Y([_.Sg("#more-variants-button"),_.V("design:type",HTMLElement)],tJ.prototype,"moreVariantsButton",void 0);_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],tJ.prototype,"selectedOptionName",null);_.Y([_.Nm("data","variantsExpanded"),_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tJ.prototype,"debouncedComputeVariants",null);
_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],tJ.prototype,"displayType",null);_.Y([_.S("displayType"),_.V("design:type",Object),_.V("design:paramtypes",[])],tJ.prototype,"variantItemsClassname",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],tJ);
_.X(tJ,"ytd-product-details-variant-renderer",function(){if(wNU!==void 0)return wNU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return wNU=h},{mode:1});var So=function(){return _.D.apply(this,arguments)||this};
_.f(So,_.D);
So.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"}}}};
_.ze.Object.defineProperties(So.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(E=_.e((h=this.data)==null?void 0:h.offersContainerRenderer,b9U))==null?void 0:E.offers;return g!==void 0&&(g==null?void 0:g.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 h,E,g;return((g=(h=this.data)==null?void 0:(E=h.variants)==null?void 0:E.map(function(Z){var M,W;Z=(W=(M=_.e(Z,Awx))==null?void 0:M.variantOptionRenderers)==null?void 0:W.find(function(c){var I;return((I=_.e(c,T3X))==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var z;return(z=_.e(Z,T3X))==null?void 0:z.name}).filter(function(Z){return typeof Z==="string"}))!=null?g:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var h,E,g,Z=(E=_.e((h=this.data)==null?void 0:h.shoppingFlaggingRenderer,QLC))==null?void 0:(g=E.reportButton)==null?void 0:g.buttonRenderer;if(Z)return{text:Z.text,command:Z.command,icon:{iconType:"FLAG"},accessibilityData:Z.accessibilityData,trackingParams:Z.trackingParams,loggingDirectives:Z.loggingDirectives}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],So.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],So.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],So.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],So.prototype,"data",void 0);_.Y([_.Sg("#image-carousel-renderer"),_.V("design:type",Object)],So.prototype,"imageCarouselRenderer",void 0);
_.Y([_.Sg("#hero-offer-renderer"),_.V("design:type",Object)],So.prototype,"productDetailsHeroOfferRenderer",void 0);_.Y([_.Sg("#variants"),_.V("design:type",Object)],So.prototype,"productDetailsVariantRenderer",void 0);_.Y([_.Sg("#offers"),_.V("design:type",Object)],So.prototype,"productDetailsOffersContainerRenderer",void 0);_.Y([_.Sg("#description-renderer"),_.V("design:type",Object)],So.prototype,"productDetailsDescriptionRenderer",void 0);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showPurchaseData",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showHeroOfferRenderer",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showBrandText",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showOffers",null);
_.Y([_.S("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showBuySeparator",null);_.Y([_.S("showOffers","showPurchaseData"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],So.prototype,"showBuyCard",null);_.Y([_.S("data"),_.V("design:type",String),_.V("design:paramtypes",[])],So.prototype,"selectedVariantsText",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],So.prototype,"shoppingReportingButtonData",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],So);
_.X(So,"ytd-product-details-renderer",function(){if(SNJ!==void 0)return SNJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return SNJ=h},{mode:1});var DQC;var lHX;var ryG;var xG=function(){return _.D.apply(this,arguments)||this};
_.f(xG,_.D);xG.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ze.Object.defineProperties(xG.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xG.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],xG.prototype,"formattedAmount",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],xG.prototype,"ariaLabel",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],xG.prototype,"vcBalanceWidgetStyle",null);_.Y([_.yc({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],xG);
_.X(xG,"yt-vc-balance-renderer",function(){if(ryG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;lHX===void 0&&(lHX=document.createElement("template"));var Z=lHX;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ryG=h}h=ryG;return h},{mode:2});_.$P("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var w1=function(){return _.D.apply(this,arguments)||this};
_.f(w1,_.D);_.ze.Object.defineProperties(w1.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:""}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],w1.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w1.prototype,"data",void 0);_.Y([_.x({selectorArgs:["data.vcBalanceEntityKey"],selector:function(h,E){return _.Jj(h.entities,"vcBalanceEntity",E)}}),
_.V("design:type",Object)],w1.prototype,"vcBalanceEntity",void 0);_.Y([_.S("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],w1.prototype,"formattedAmount",null);_.Y([_.S("vcBalanceEntity"),_.V("design:type",String),_.V("design:paramtypes",[])],w1.prototype,"vcBalanceAriaLabel",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],w1);
_.X(w1,"ytd-vc-balance-renderer",function(){if(DQC!==void 0)return DQC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return DQC=h},{mode:1});var mQi;var DB=function(){var h=_.D.apply(this,arguments)||this;h.rotation=0;h.isReloading=!1;return h};
_.f(DB,_.D);DB.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
DB.prototype.reset=function(){this.hostElement.style.opacity=""};
DB.prototype.close=function(){var h=this;return _.a(function(E){if(E.nextAddress==1)return E.yield(h.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);h.hostElement.style.opacity="0";_.SK(E)})};
DB.prototype.rotationChanged=DB.prototype.rotationChanged;_.Y([_.x(),_.V("design:type",Object)],DB.prototype,"rotation",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],DB.prototype,"isReloading",void 0);_.Y([_.Sg("#icon"),_.V("design:type",HTMLElement)],DB.prototype,"icon",void 0);_.Y([_.Nm("rotation"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],DB.prototype,"rotationChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-refresh"})],DB);
_.X(DB,"ytd-refresh",function(){if(mQi!==void 0)return mQi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mQi=h},{mode:1});var v4J;var lb=function(){return _.D.apply(this,arguments)||this};
_.f(lb,_.D);lb.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"}}}};
lb.prototype.dataChanged=function(){if(this.data){var h=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var E=_.R9(this.data.banner.thumbnails,this.hostElement.clientWidth);E&&(E.indexOf("//")===0&&(E="https:"+E),this.hasBannerArt=!0,_.Ja(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+E+")"}))}this.hasBannerArt!==h&&_.UB(this.hostElement).querySelector("#header").fire("iron-resize")}};
lb.prototype.updateSelectedFromBinding=function(h){this.selected=h.detail.value};
lb.prototype.dataChanged=lb.prototype.dataChanged;_.Y([_.t(g4G),_.V("design:type",Object)],lb.prototype,"ytdTabbedHeaderBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IF),_.V("design:type",Object)],lb.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],lb.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lb.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lb.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],lb.prototype,"selected",void 0);_.Y([_.x(),_.V("design:type",Boolean)],lb.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],lb.prototype,"hasBannerArt",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lb.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],lb);
_.X(lb,"ytd-interactive-tabbed-header-renderer",function(){if(v4J!==void 0)return v4J;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return v4J=h},{mode:1});var HKC;var r1=function(){return _.D.apply(this,arguments)||this};
_.f(r1,_.D);r1.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
r1.prototype.computeActionsAlignment=function(h){return(h==null?void 0:h.actionsAlignment)||""};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],r1.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.V("design:type",String)],r1.prototype,"actionsAlignment",void 0);_.Y([_.K({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],r1);
_.X(r1,"ytd-page-footer-renderer",function(){if(HKC!==void 0)return HKC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HKC=h},{mode:1});var $QJ;var K4C;var me=function(){var h=_.D.apply(this,arguments)||this;h.isEditing=!1;h.useSlot=!1;h.isMultiline=!1;return h};
_.f(me,_.D);_.p=me.prototype;_.p.onKeydown=function(h){if(h.keyCode===13&&!this.isMultiline)this.onSave();else if(h.keyCode===27)this.onCancel()};
_.p.computeComponentStyle=function(h){return(h==null?0:h.style)?h.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.p.computeisMultiline=function(h){if(this.multilineOverride!==void 0)return this.multilineOverride;var E,g;return!!(h==null?0:(E=h.formField)==null?0:(g=E.textInputFormFieldRenderer)==null?0:g.isMultiline)};
_.p.computeTextDisplayed=function(h,E){if(h)return h;if(E)return E};
_.p.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.p.onSave=function(){if(this.textForm.validate()){this.textForm.save();var h=this.textForm.value;if(h)this.set("data.textDisplayed",_.MR(h));else{var E;((E=this.data)==null?0:E.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.jR("inline-form-changed",this.data));this.isEditing=!1}};
_.p.onCancel=function(){var h=_.Wp(this.data.textDisplayed);h===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(h);this.isEditing=!1};
me.prototype.onKeydown=me.prototype.onKeydown;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],me.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],me.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],me.prototype,"isEditing",void 0);_.Y([_.x(),_.V("design:type",Object)],me.prototype,"useSlot",void 0);_.Y([_.x(),_.V("design:type",Boolean)],me.prototype,"multilineOverride",void 0);_.Y([_.x(),_.V("design:type",Boolean)],me.prototype,"enableOverlayTheme",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.V("design:type",String)],me.prototype,"componentStyle",void 0);
_.Y([_.x({computed:"computeisMultiline(data)"}),_.V("design:type",Object)],me.prototype,"isMultiline",void 0);_.Y([_.Sg("#text-form"),_.V("design:type",Object)],me.prototype,"textForm",void 0);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],me.prototype,"onKeydown",null);_.Y([_.K({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],me);
_.X(me,"ytd-inline-form-renderer",function(){if(K4C!==void 0)return K4C;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return K4C=h},{mode:1});var OKU;var vy=function(){var h=_.D.apply(this,arguments)||this;h.previousSelectValue=void 0;h.selectedItemMessage=void 0;return h};
_.f(vy,_.D);vy.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
vy.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var h,E,g,Z,M=(h=this.data)==null?void 0:(E=h.dropdown)==null?void 0:(g=E.dropdownRenderer)==null?void 0:(Z=g.entries)==null?void 0:Z.map(function(c){return c.privacyDropdownItemRenderer});
h=_.G(M!=null?M:[]);for(E=h.next();!E.done;E=h.next())if((E=E.value)&&E.int32Value===this.selectedValue){this.selectedItemMessage=E.itemMessage;break}}else this.selectedItemMessage=void 0;var W;(W=this.onValueChanged)==null||W.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var z;(z=this.data)!=null&&z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
vy.prototype.onValueChangedForSelectedValue=function(h){this.selectedValue=h.detail.value};
vy.prototype.selectedValueChanged=vy.prototype.selectedValueChanged;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],vy.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],vy.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vy.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],vy.prototype,"theme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Number)],vy.prototype,"selectedValue",void 0);_.Y([_.x(),_.V("design:type",Function)],vy.prototype,"onValueChanged",void 0);
_.Y([_.lq("selectedValue"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vy.prototype,"selectedValueChanged",null);_.Y([_.K({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],vy);
_.X(vy,"ytd-dropdown-form-field-renderer",function(){if(OKU!==void 0)return OKU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return OKU=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var n4U;var Hy=function(){return _.D.apply(this,arguments)||this};
_.f(Hy,_.D);_.ze.Object.defineProperties(Hy.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var h=[],E=_.G(this.data||[]),g=E.next();!g.done;g=E.next())(g=_.e(g.value,hvI))&&h.push(g);return h}}});
_.Y([_.x(),_.V("design:type",Array)],Hy.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Hy.prototype,"byline",null);_.Y([_.K({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Hy);
_.X(Hy,"ytd-playlist-byline-renderer",function(){if(n4U!==void 0)return n4U;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return n4U=h},{mode:1});var XNC;var $G=function(){var h=_.D.apply(this,arguments)||this;h.rtlBullet=_.J("web_playlist_stats_rtl_bullet_icon_killswitch");h.modern=_.J("web_modern_buttons");h.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return h};
_.f($G,_.D);_.p=$G.prototype;_.p.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.p.attached=function(){};
_.p.computeIsCustomThumbnail=function(h){return h?!!h.playlistCustomThumbnailRenderer:!1};
_.p.onYtNavigate=function(h,E){if(E&&E.actions&&E.actions.indexOf("shuffle")>-1){h=_.GF().resolve(_.oS);var g=E.tempData||{};g.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);E.tempData=g;h.isShuffleNextPlaylist=!0}};
_.p.onUpdatePlaylistAction=function(h){var E;h=(E=_.e(h,_.PGl))==null?void 0:E.updatedRenderer;if(E=_.e(h,ywi))this.data=E};
_.p.computeStyleType=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeThumbnailWidth=function(h){return h==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.p.computeHideThumbnailAria=function(h){if(h==null?0:h.thumbnailOverlays)for(var E=0;E<h.thumbnailOverlays.length;E++){var g=void 0;if((g=h.thumbnailOverlays[E])==null?0:g.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
$G.prototype.onYtNavigate=$G.prototype.onYtNavigate;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$G.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],$G.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],$G.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$G.prototype,"rtlBullet",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.V("design:type",String)],$G.prototype,"styleType",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.V("design:type",Number)],$G.prototype,"thumbnailWidth",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$G.prototype,"modern",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.V("design:type",Boolean)],$G.prototype,"isCustomThumbnail",void 0);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],$G.prototype,"onYtNavigate",null);_.Y([_.K({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],$G);
_.X($G,"ytd-playlist-sidebar-primary-info-renderer",function(){if(XNC!==void 0)return XNC;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return XNC=h},{mode:1});var YNc;var Kc=function(){return _.D.apply(this,arguments)||this};
_.f(Kc,_.D);Kc.prototype.computeOwnerVisibility=function(h){return!(!h.videoOwner&&!h.button)};
Kc.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Kc.prototype,"data",void 0);_.Y([_.K({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Kc);
_.X(Kc,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(YNc!==void 0)return YNc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YNc=h},{mode:1});var szi;var OP=function(){var h=_.D.apply(this,arguments)||this;h.expanded=!1;h.isCompact=!1;return h};
_.f(OP,_.D);_.p=OP.prototype;_.p.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.p.dataChanged=function(){this.data&&_.GH(_.UB(this.text),_.kfD(_.Ank,_.Wp(this.data.text||null)))};
_.p.computeAutoScrollEnabled=function(h,E){return h&&!E};
_.p.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.p.toggleOnTap=function(){this.expanded=!this.expanded};
OP.prototype.expandedChanged=OP.prototype.expandedChanged;OP.prototype.dataChanged=OP.prototype.dataChanged;_.Y([_.t(_.rrc),_.V("design:type",Object)],OP.prototype,"ytdAutoScrollBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OP.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OP.prototype,"expanded",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OP.prototype,"isCompact",void 0);_.Y([_.x({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.V("design:type",Boolean)],OP.prototype,"autoScrollEnabled",void 0);_.Y([_.Sg("#text"),_.V("design:type",Object)],OP.prototype,"text",void 0);_.Y([_.Sg("#expander-icon"),_.V("design:type",Object)],OP.prototype,"expanderIcon",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OP.prototype,"dataChanged",null);_.Y([_.Nm("expanded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OP.prototype,"expandedChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],OP);
_.X(OP,"ytd-channel-legal-info-renderer",function(){if(szi!==void 0)return szi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return szi=h},{mode:1});var V5X;var k60=_.NH("DOWNLOAD",{},"Download"),yyJ=_.NH("DOWNLOADING",{},"Downloading"),F4p=_.NH("DOWNLOADED",{},"Downloaded"),nc=function(){var h=_.D.apply(this,arguments)||this;h.downloadProgress=0;h.isDownloadComplete=!1;h.transferState="TRANSFER_STATE_UNKNOWN";return h};
_.f(nc,_.D);_.p=nc.prototype;_.p.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.p.dataChanged=function(){var h;(h=this.data)!=null&&h.tooltip||(h=_.FM(_.Gv().getState(),this.playlistId),this.updateButtonState(h))};
_.p.computePlaylistId=function(h){return h};
_.p.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.p.updateButtonState=function(h){if(this.data&&(this.data.tooltip!==yyJ||!_.D$(h))){this.isDownloadComplete=!1;switch(h){case "TRANSFER_STATE_UNKNOWN":h=k60;var E="OFFLINE_DOWNLOAD";var g="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":h=F4p;E="OFFLINE_PIN";g="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":h=yyJ;E="OFFLINE_DOWNLOADING_ZERO";g="ACTION_REMOVE_WITH_PROMPT";
break;default:h=k60,E="OFFLINE_DOWNLOAD",g="ACTION_ADD"}var Z=Object.assign({},this.data);Z.tooltip=h;Z.accessibilityData={accessibilityData:{label:h}};Z.icon={iconType:E};Z.size="SIZE_DEFAULT";_.e(Z.command,_.ev)&&(_.e(Z.command,_.ev).action=g);this.set("data",Z)}};
_.p.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var h="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?h="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?h="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?h="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?h="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?h="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(h="OFFLINE_PIN",this.isDownloadComplete=!0);var E;h!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.tooltip=yyJ,E.accessibilityData={accessibilityData:{label:yyJ}},E.icon={iconType:h},_.e(E.command,_.ev)&&(_.e(E.command,_.ev).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
nc.prototype.updateProgress=nc.prototype.updateProgress;nc.prototype.onTransferStateChanged=nc.prototype.onTransferStateChanged;nc.prototype.dataChanged=nc.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],nc.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"forceIconButton",void 0);
_.Y([_.x({value:!0}),_.V("design:type",Boolean)],nc.prototype,"forceIconOnly",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"overrides",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"buttonTooltipPosition",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"styleActionButton",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"disableTextTransform",void 0);
_.Y([_.x({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.V("design:type",String)],nc.prototype,"playlistId",void 0);_.Y([_.x(),_.V("design:type",Object)],nc.prototype,"data",void 0);_.Y([_.x({selector:_.Pc$,selectorArgs:["playlistId"]}),_.V("design:type",Object)],nc.prototype,"downloadProgress",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],nc.prototype,"isDownloadComplete",void 0);
_.Y([_.x({selector:_.FM,selectorArgs:["playlistId"]}),_.V("design:type",String)],nc.prototype,"transferState",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],nc.prototype,"showTooltips",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],nc.prototype,"sendCommandWhenDisabled",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],nc.prototype,"disabled",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nc.prototype,"dataChanged",null);_.Y([_.lq("transferState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nc.prototype,"onTransferStateChanged",null);_.Y([_.lq("downloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],nc.prototype,"updateProgress",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],nc);
_.X(nc,"ytd-download-playlist-button-renderer",function(){if(V5X!==void 0)return V5X;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return V5X=h},{mode:1});var Ayc;_.I9(_.hiB,"thumbnail-overlay-button-view-model",{props:{data:_.C6,lockupExperiments:_.C6}});var XO=function(){var h=_.D.apply(this,arguments)||this;h.isSquare=!1;h.isVertical=!1;return h};
_.f(XO,_.D);XO.prototype.computeIsSquare=function(h){return h!=null&&h.thumbnail?tUX(h.thumbnail)==="SQUARE":!1};
XO.prototype.computeIsVertical=function(h){return h!=null&&h.thumbnail?tUX(h.thumbnail)==="VERTICAL":!1};
XO.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.V("design:type",Object)],XO.prototype,"isSquare",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.V("design:type",Object)],XO.prototype,"isVertical",void 0);
_.Y([_.x(),_.V("design:type",Object)],XO.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],XO);
_.X(XO,"ytd-hero-playlist-thumbnail-renderer",function(){if(Ayc!==void 0)return Ayc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Ayc=h},{mode:1});var YG=function(){var h=_.D.apply(this,arguments)||this;h.isDarkTheme=!1;h.isUltraWide=!1;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return h};
_.f(YG,_.D);_.p=YG.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.GF();var h;(h=_.GF().resolve(_.pl(_.vq)))!=null&&(h.headerElement=this.hostElement)};
_.p.detached=function(){var h;(h=_.GF().resolve(_.pl(_.vq)))!=null&&(h.headerElement=void 0)};
_.p.onUpdateHeader=function(h){(h=h.detail)&&this.set("data",h)};
_.p.computeTextDisplayed=function(h){if(h)return h.textDisplayed?h.textDisplayed:h.placeholder};
_.p.gradientColorToLinearGradientStop=function(h){var E=this.isDarkTheme?h.darkThemeColor:h.lightThemeColor;return E?_.uU(E)+" "+((h==null?void 0:h.startLocation)||0)*100+"%":"transparent"};
_.p.onWindowResize=function(){var h;((h=this.data)==null?0:h.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.p.onIronResize=function(h){this.isUltraWide=!h.detail.value};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.onUpdatePlaylistName=function(h){var E=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},h.detail.value));_.pQ(this,function(){var g;(g=E.editableTitle)==null||g.resize()})};
_.p.onUpdatePlaylistDescription=function(h){var E=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},h.detail.value));_.pQ(this,function(){var g;(g=E.editableDescriptionInlineExpander)==null||g.resize()})};
_.p.getCinematicData=function(h){return _.e(h==null?void 0:h.cinematicContainer,_.M5)};
_.ze.Object.defineProperties(YG.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 h,E=(h=this.getCinematicData(this.data))==null?void 0:h.config;return(h=this.isDarkTheme?E==null?void 0:E.darkThemeBackgroundColor:E==null?void 0:E.lightThemeBackgroundColor)?"background-color:"+_.bU(h)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var h;return _.e((h=this.data)==null?void 0:h.descriptionForm,kJZ)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g,Z;return"background:linear-gradient(to bottom, "+(((Z=(E=this.getCinematicData(this.data))==null?void 0:(g=E.gradientColorConfig)==null?void 0:g.map(function(M){return h.gradientColorToLinearGradientStop(M)}))==null?void 0:Z.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var h;return _.Wp((h=this.data)==null?void 0:h.descriptionTapText)}}});
YG.prototype.onUpdateHeader=YG.prototype.onUpdateHeader;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],YG.prototype,"actionHandlerBehavior",void 0);_.Y([_.Sg("#description-inline-expander"),_.V("design:type",Object)],YG.prototype,"descriptionInlineExpander",void 0);
_.Y([_.Sg("#editable-description-inline-expander"),_.V("design:type",Object)],YG.prototype,"editableDescriptionInlineExpander",void 0);_.Y([_.x(),_.V("design:type",Object)],YG.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],YG.prototype,"isUltraWide",void 0);_.Y([_.Sg("#editable-title-display"),_.V("design:type",Object)],YG.prototype,"editableTitle",void 0);_.Y([_.S("isUltraWide"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"maxDescriptionLines",null);
_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"noCinematicData",null);_.Y([_.f3("yt-new-playlist-header"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],YG.prototype,"onUpdateHeader",null);_.Y([_.S("data","isDarkTheme"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"backgroundStyle",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"descriptionFormData",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"getDropdownTheme",null);_.Y([_.S("data","isDarkTheme"),_.V("design:type",String),_.V("design:paramtypes",[])],YG.prototype,"gradientStyle",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YG.prototype,"descriptionTapText",null);
_.Y([_.K({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],YG);
_.X(YG,"ytd-playlist-header-renderer",function(){if($QJ!==void 0)return $QJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $QJ=h},{mode:_.UQ("kevlar_poly_si_batch_j078")?1:2});var TjG;var bKc;var sP=function(){return _.D.apply(this,arguments)||this};
_.f(sP,_.D);sP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sP.prototype,"data",void 0);_.Y([_.K({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],sP);
_.X(sP,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(bKc!==void 0)return bKc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return bKc=h},{mode:1});var VR=function(){return _.D.apply(this,arguments)||this};
_.f(VR,_.D);
VR.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}}}}};
VR.prototype.computeUsePremiumShowStyle=function(h){if(!h||!h.items)return!1;for(var E=0;E<h.items.length;E++)if(_.e(h.items[E],ywi)){var g=void 0;return((g=_.e(h.items[E],ywi))==null?void 0:g.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],VR.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.V("design:type",Boolean)],VR.prototype,"usePremiumShowStyle",void 0);
_.Y([_.K({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],VR);
_.X(VR,"ytd-playlist-sidebar-renderer",function(){if(TjG!==void 0)return TjG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return TjG=h},{mode:1});var u1I;var QzR;var hVK=function(h,E,g,Z,M,W,z,c){this.minWidth=h;this.minHeight=E;this.recommendedWidth=g;this.recommendedHeight=Z;this.JSC$22161_maxFileSize=M;this.title=W;this.bannerGalleryTitle=z;this.channelId=c;this.picker_=null;h=_.uJ$("yt-banner");E=h.addView;g=(new vbC("youtubebanner")).addUploadMetadata("silo_id","19");g.opts.ytMaxFileSize=this.JSC$22161_maxFileSize;Z=this.recommendedHeight;g.opts.ytRecWidth=this.recommendedWidth;g.opts.ytRecHeight=Z;E.call(h,g);h.addView(new _.Of);E=h.addView;g=new _.Of;
g.opts.type="ytbanner";E.call(h,g.JSC$10075_setLabel(this.bannerGalleryTitle));E=h.setTitle(this.title).setSize(1E3);E.urlParamMap_.set("thumbs","orig");g=this.minWidth;Z=this.minHeight;if(isNaN(g)||isNaN(Z))throw Error("gb`"+g+"`"+Z);E.urlParamMap_.set("minSize",g+"x"+Z);E.urlParamMap_.set("cropMode","ytcb");this.builder_=h};
hVK.prototype.open=function(){var h=this;return new _.jM(function(E,g){_.rlM(h.builder_,function(Z){Z.action=="picked"?E(Z):Z.action=="cancel"&&g(Error("Eo"))});
h.picker_&&h.picker_.dispose();h.picker_=h.builder_.build();h.picker_.setVisible(!0)})};
hVK.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var E$a=function(h){this.channelId=h};
E$a.prototype.upload=function(h){var E="";h.viewToken&&(E=h.viewToken[2].type);var g=h.docs[0];h=g.crop;E={channel_id:this.channelId,fife_url:g.thumbnails[0].url,photo_id:g.id,is_gallery_image:E=="ytbanner"};h&&(E.crop_top=h.top,E.crop_right=h.right,E.crop_bottom=h.bottom,E.crop_left=h.left);return _.xUx("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:E})};var kG=function(){var h=_.D.apply(this,arguments)||this;h.ariaLabel=null;return h};
_.f(kG,_.D);_.p=kG.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.p.detached=function(){this.picker&&this.picker.dispose()};
_.p.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.p.computeAriaLabel=function(h){return h};
_.p.onTap=function(){var h=this,E;if((E=this.data)==null||!E.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new hVK(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 g;(g=this.picker)==null||g.open().then(function(Z){h.handleBannerPicked(Z)},function(){})}};
_.p.handleBannerPicked=function(h){var E=this;this.uploader||(this.uploader=new E$a(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(h).then(function(g){E.handleBannerUploadSucceeded(g)},function(g){E.handleBannerUploadFailed(g)})};
_.p.handleBannerUploadSucceeded=function(h){h&&h.errors?this.handleBannerUploadFailed(h):(_.Ra(this.hostElement,"yt-banner-updated",h),this.message=null)};
_.p.handleBannerUploadFailed=function(h){this.message=h&&h.errors&&h.errors.length?h.errors[0]:null};
kG.prototype.dataChanged=kG.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],kG.prototype,"componentBehavior",void 0);_.Y([_.t(_.Td),_.V("design:type",Object)],kG.prototype,"ironButtonState",void 0);_.Y([_.x(),_.V("design:type",Object)],kG.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.V("design:type",Object)],kG.prototype,"ariaLabel",void 0);
_.Y([_.x(),_.V("design:type",Object)],kG.prototype,"message",void 0);_.Y([_.x(),_.V("design:type",Object)],kG.prototype,"picker",void 0);_.Y([_.x(),_.V("design:type",Object)],kG.prototype,"uploader",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kG.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],kG);
_.X(kG,"ytd-channel-banner-editor-renderer",function(){if(QzR!==void 0)return QzR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return QzR=h},{mode:1});var g$2;var ZdU=_.uz(["#"]),yR=function(){return _.D.apply(this,arguments)||this};
_.f(yR,_.D);yR.prototype.computeHrefWithDefault=function(h){return this.ytComponentBehavior.computeHref_(h,!0)||_.ujO(ZdU)};
yR.prototype.dataChanged=function(){var h=this.data;h&&h.targetId&&_.j4M(_.bc(),h.targetId,this.moreIcon)};
yR.prototype.dataChanged=yR.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yR.prototype,"data",void 0);_.Y([_.Sg("#more-icon"),_.V("design:type",Object)],yR.prototype,"moreIcon",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],yR.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],yR);
_.X(yR,"ytd-channel-tagline-renderer",function(){if(g$2!==void 0)return g$2;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return g$2=h},{mode:1});var Mqa;var FO=function(){return _.D.apply(this,arguments)||this};
_.f(FO,_.D);_.p=FO.prototype;_.p.ready=function(){var h=this;_.UB(this.hostElement).querySelector("#form").addEventListener("submit",function(E){h.onSubmit(E)})};
_.p.onDataChanged=function(){var h;((h=this.data)==null?0:h.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.p.onIconButtonKeydown=function(h){h.keyCode===13&&this.iconButton.click()};
_.p.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.p.openOnClickHandler=function(){this.input.focus()};
_.p.onSubmit=function(h){h.preventDefault();return!1};
_.p.submitOnEnterKeyUp=function(h){var E;if(h.keyCode===13&&((E=this.data)==null?0:E.expandedText)){h=this.data.endpoint;E=_.Kt.unsafeClone(h);var g;((g=_.e(E==null?void 0:E.commandMetadata,_.qH))==null?0:g.url)?(_.e(E.commandMetadata,_.qH).url=_.YW(_.e(E.commandMetadata,_.qH).url,"query",this.data.expandedText),_.e(E,_.tk)&&(_.e(E,_.tk).query=this.data.expandedText),_.Ra(this.hostElement,"yt-navigate",{endpoint:E,tempData:{disableCache:!0}})):(g=new _.xX("Error: Trying to navigate to an endpoint without url",
h),_.$W(g))}};
_.p.updateDataExpandedTextFromBinding=function(h){this.set("data.expandedText",h.detail.value)};
_.ze.Object.defineProperties(FO.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
FO.prototype.onDataChanged=FO.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.v3C),_.V("design:type",Object)],FO.prototype,"ytdExpandableInputBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],FO.prototype,"data",void 0);_.Y([_.Sg("#input"),_.V("design:type",Object)],FO.prototype,"input",void 0);_.Y([_.Sg("#icon-button"),_.V("design:type",HTMLElement)],FO.prototype,"iconButton",void 0);
_.Y([_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],FO.prototype,"searchIcon",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],FO.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],FO);
var SMi=_.BK()(FO,"ytd-expandable-tab-renderer",function(){if(Mqa===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);Mqa=h}h=Mqa;return h},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var WZa;var AJ=function(){var h=_.D.apply(this,arguments)||this;h.avatarSize=80;h.ariaLabel=_.NH("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return h};
_.f(AJ,_.D);AJ.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
AJ.prototype.computeHref=function(h){var E;return((E=_.e(h,_.yX))==null?0:E.url)?this.componentBehavior.computeHref_(h):null};
AJ.prototype.onTap=function(){var h,E;(h=this.data)==null||!h.editAvatarServiceEndpoint||((E=_.e(this.data.editAvatarServiceEndpoint,_.yX))==null?0:E.url)||_.GF().resolve(_.zF).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.Y([_.t(_.Td),_.V("design:type",Object)],AJ.prototype,"ironButtonState",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],AJ.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],AJ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],AJ.prototype,"avatarSize",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],AJ.prototype,"ariaLabel",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],AJ);
_.X(AJ,"ytd-channel-avatar-editor",function(){if(WZa!==void 0)return WZa;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return WZa=h},{mode:1});var paa=_.O(function(h){var E=h.data;var g=h.noPadding;var Z=h.enableBanner;var M=h.cinematicContainerTopbarOffset;var W=h.allowCinematicContainerOverflow;var z=h.displayAsSidebar;h=h.className;_.lX(function(){E().tagManagerId&&(_.Eh(E().tagManagerId,_.nF("GL")),mFI(E().tagManagerId))},"vUc8md");
var c=_.qI(wYc,function(){return E().pageHeaderEntityKey});
return _.R("yt-page-header-renderer",{class:_.CO("pageHeaderRendererHost",h)},_.R(_.Sv,{data:function(){var I;return((I=c())==null?0:I.header)?c().header:(z==null?0:z())&&E().sidebarContent?E().sidebarContent:E().content}},{pageHeaderViewModel:function(I){return _.R(_.lBB,{data:I.data,
noPadding:g,enableBanner:Z,cinematicContainerTopbarOffset:M,allowCinematicContainerOverflow:W,displayAsSidebar:function(){return(z==null?void 0:z())&&E().enableSidebarView}})}}))},"vk");
paa.idomCompat=!0;_.I9(paa,"yt-page-header-renderer",{props:{data:_.C6,noPadding:_.C6,enableBanner:_.C6,cinematicContainerTopbarOffset:_.C6,allowCinematicContainerOverflow:_.C6,displayAsSidebar:_.C6,className:_.C6}});_.I9(_.iy,"yt-image-banner-view-model",{props:{data:_.C6,isPositionRelative:_.C6}});_.I9(_.T1M,"yt-tab-group-shape",{props:{shape:_.C6}});var TP=function(){var h=_.D.apply(this,arguments)||this;h.expandableCustomTabRenderable=function(E){return xFJ(E,function(){return void h.onSearchNavigate()})};
h.isRichGrid=!1;h.isConstrainedList=!1;h.richGridMiniMode=!1;h.richGridStyle="RICH_GRID_STYLE_UNKNOWN";h.isRichGridShorts=!1;h.responsiveSizing="COMPACT";h.disableGridStateAware=!1;h.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return h};
_.f(TP,_.D);_.p=TP.prototype;_.p.computeHeaderDisabled=function(h,E){return E||!h||this.tabsHidden};
_.p.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.p.computeIsRichGridShorts=function(h){return h==="RICH_GRID_STYLE_SHORTS_GRID"||h==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.p.computeImageBannerViewModel=function(){var h,E;return _.e((E=_.e((h=this.data)==null?void 0:h.content,_.X4M))==null?void 0:E.banner,_.mJf)};
_.p.computeHasCinematicContainer=function(){var h,E;return!((E=_.e((h=this.data)==null?void 0:h.content,_.X4M))==null||!E.background)};
_.p.handleHeaderResize=function(){var h=_.UB(this.hostElement).querySelector("#header");h&&_.Ra(h,"iron-resize")};
_.p.handleInsertTabCommand=function(h){var E=_.e(h,E4p);E&&(E.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(g){return g.tabRenderer&&g.tabRenderer.tabIdentifier===E.tabIdentifier})||this.splice("tabs",E.tabIndex||-1,0,E.tab))};
_.p.handleRefreshChannelTabAction=function(h){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===h&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.p.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Ja(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.p.observerRichGridSlimItemsPerRow=function(){_.Ja(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.p.updateCssVars=function(){this.richGridItemsPerRow&&_.Ja(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cx("rich_grid_max_item_width",500))+16)-16+"px"})};
_.p.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Ja(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.p.onDataChanged=function(){this.handleHeaderResize()};
_.p.onWindowResize=function(){this.handleHeaderResize()};
_.p.onFocusedChanged=function(h){(h=_.zw(h))&&h.is==="tp-yt-paper-tab"&&h.hasRipple()&&(h.getRipple().holdDown=!h.pointerDown&&h.focused)};
_.p.updateSelectedFromBinding=function(h){this.ytdTabbedHeaderBehavior.selected=h.detail.value};
_.p.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ze.Object.defineProperties(TP.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ljX(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.imageBannerViewModel)==null?void 0:h.style)==="IMAGE_BANNER_STYLE_INSET"}}});
TP.prototype.onDataChanged=TP.prototype.onDataChanged;TP.prototype.updateCssVarsForResponsiveGrid=TP.prototype.updateCssVarsForResponsiveGrid;TP.prototype.updateCssVars=TP.prototype.updateCssVars;TP.prototype.observerRichGridSlimItemsPerRow=TP.prototype.observerRichGridSlimItemsPerRow;TP.prototype.observerRichGridItemsPerRow=TP.prototype.observerRichGridItemsPerRow;_.Y([_.t(_.IF),_.V("design:type",Object)],TP.prototype,"ytdGridStateAwareBehavior",void 0);
_.Y([_.t(g4G),_.V("design:type",Object)],TP.prototype,"ytdTabbedHeaderBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],TP.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],TP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],TP.prototype,"ytdReduxBehavior",void 0);_.Y([_.Sg("#tabs"),_.V("design:type",Object)],TP.prototype,"tabsElement",void 0);_.Y([_.x(),_.V("design:type",Array)],TP.prototype,"tabs",void 0);_.Y([_.x(),_.V("design:type",Object)],TP.prototype,"expandableCustomTabRenderable",void 0);_.Y([_.S("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],TP.prototype,"tabGroupShape",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TP.prototype,"isRichGrid",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TP.prototype,"isConstrainedList",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Object)],TP.prototype,"richGridMiniMode",void 0);_.Y([_.x({selector:function(h){return h.ui.richGridStyle}}),
_.V("design:type",Object)],TP.prototype,"richGridStyle",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.V("design:type",Object)],TP.prototype,"isRichGridShorts",void 0);_.Y([_.x({selector:_.Y8}),_.V("design:type",Number)],TP.prototype,"richGridItemsPerRow",void 0);_.Y([_.x({selector:function(h){return h.ui.richGridContainerWidth}}),
_.V("design:type",Number)],TP.prototype,"richGridContainerWidth",void 0);_.Y([_.x({selector:_.EmO}),_.V("design:type",Number)],TP.prototype,"richGridSlimItemsPerRow",void 0);_.Y([_.x(),_.V("design:type",Object)],TP.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TP.prototype,"responsiveSizing",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],TP.prototype,"disableGridStateAware",void 0);
_.Y([_.x({computed:"computeImageBannerViewModel(data)"}),_.V("design:type",Object)],TP.prototype,"imageBannerViewModel",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.V("design:type",Boolean)],TP.prototype,"hasCinematicContainer",void 0);_.Y([_.x({selector:_.CIc,reflectToAttribute:!0}),_.V("design:type",Boolean)],TP.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],TP.prototype,"hasBanner",null);_.Y([_.x({reflectToAttribute:!0}),_.S("imageBannerViewModel"),_.V("design:type",Object),_.V("design:paramtypes",[])],TP.prototype,"hasInsetBanner",null);_.Y([_.x({computed:"computeTabsHidden(tabs)",value:!0}),_.V("design:type",Boolean)],TP.prototype,"tabsHidden",void 0);
_.Y([_.Nm("richGridItemsPerRow","isRichGrid"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TP.prototype,"observerRichGridItemsPerRow",null);_.Y([_.Nm("richGridSlimItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TP.prototype,"observerRichGridSlimItemsPerRow",null);
_.Y([_.Nm("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TP.prototype,"updateCssVars",null);_.Y([_.Nm("richGridContainerWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TP.prototype,"updateCssVarsForResponsiveGrid",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],TP.prototype,"onDataChanged",null);
_.Y([_.K({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],TP);
_.X(TP,"ytd-tabbed-page-header",function(){if(u1I!==void 0)return u1I;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return u1I=h},{mode:1});var Gui;var bb=function(){return _.D.apply(this,arguments)||this};
_.f(bb,_.D);bb.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Ja(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ze.Object.defineProperties(bb.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var h,E;return this.componentBehavior.computeIcon_(((E=_.e((h=this.data)==null?void 0:h.badge,_.uED))==null?void 0:E.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.badge,_.uED))==null?void 0:E.label}}});
bb.prototype.observerRichGridItemsPerRow=bb.prototype.observerRichGridItemsPerRow;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],bb.prototype,"componentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.XM}),_.V("design:type",Boolean)],bb.prototype,"richGridMiniMode",void 0);
_.Y([_.x({selector:_.Y8}),_.V("design:type",Number)],bb.prototype,"richGridItemsPerRow",void 0);_.Y([_.x(),_.V("design:type",Object)],bb.prototype,"data",void 0);_.Y([_.Nm("richGridItemsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bb.prototype,"observerRichGridItemsPerRow",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],bb.prototype,"badgeIconName",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],bb.prototype,"badgeLabel",null);_.Y([_.K({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],bb);
_.X(bb,"ytd-member-hub-profile-renderer",function(){if(Gui!==void 0)return Gui;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Gui=h},{mode:1});var zVo;var ub=function(){return _.D.apply(this,arguments)||this};
_.f(ub,_.D);ub.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ub.prototype,"data",void 0);_.Y([_.K({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],ub);
_.X(ub,"ytd-settings-sidebar-renderer",function(){if(zVo!==void 0)return zVo;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zVo=h},{mode:1});var azK;var QR=function(){var h=_.D.apply(this,arguments)||this;h.expandableCustomTabRenderable=function(E){return xFJ(E,function(){return void h.onSearchNavigate()})};
return h};
_.f(QR,_.D);QR.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
QR.prototype.onSearchNavigate=function(){this.selected=void 0};
QR.prototype.onTabsChange=function(){var h,E=(h=this.tabs)==null?void 0:h.findIndex(function(g){var Z;return g==null?void 0:(Z=g.tabRenderer)==null?void 0:Z.selected});
E!==void 0&&(this.selected=E)};
QR.prototype.onTabsActive=function(h){if(this.tabs!==void 0){var E,g;(h=(E=this.tabs[h.detail.selected])==null?void 0:(g=E.tabRenderer)==null?void 0:g.endpoint)&&_.Ra(this.hostElement,"yt-navigate",{endpoint:h})}};
_.ze.Object.defineProperties(QR.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:ljX(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
QR.prototype.onTabsChange=QR.prototype.onTabsChange;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IF),_.V("design:type",Object)],QR.prototype,"ytdGridStateAwareBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],QR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],QR.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],QR.prototype,"tabs",void 0);_.Y([_.x(),_.V("design:type",Number)],QR.prototype,"selected",void 0);_.Y([_.S("tabs.*"),_.V("design:type",Object),_.V("design:paramtypes",[])],QR.prototype,"tabGroupShape",null);_.Y([_.x(),_.V("design:type",Object)],QR.prototype,"expandableCustomTabRenderable",void 0);
_.Y([_.S("tabs"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],QR.prototype,"tabsEnabled",null);_.Y([_.lq("tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QR.prototype,"onTabsChange",null);_.Y([_.K({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],QR);
_.X(QR,"ytd-topic-channel-details-renderer",function(){if(azK!==void 0)return azK;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return azK=h},{mode:1});var cM0;var hr=function(){var h=_.D.apply(this,arguments)||this;h.disableGridStateAware=!1;return h};
_.f(hr,_.D);hr.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]]"}}}}}};
hr.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
hr.prototype.updateCssVars=function(){_.Ja(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cx("rich_grid_max_item_width",500))+16)-16+"px"})};
hr.prototype.updateCssVars=hr.prototype.updateCssVars;hr.prototype.activeChanged=hr.prototype.activeChanged;_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],hr.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hr.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],hr.prototype,"tabs",void 0);_.Y([_.x(),_.V("design:type",Boolean)],hr.prototype,"active",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],hr.prototype,"disableGridStateAware",void 0);
_.Y([_.x({selector:_.Y8}),_.V("design:type",Number)],hr.prototype,"richGridItemsPerRow",void 0);_.Y([_.x({selector:_.XM}),_.V("design:type",Boolean)],hr.prototype,"richGridMiniMode",void 0);_.Y([_.Sg("ytd-carousel-item-renderer"),_.V("design:type",Object)],hr.prototype,"carousel",void 0);_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hr.prototype,"activeChanged",null);
_.Y([_.Nm("richGridItemsPerRow","richGridMiniMode"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hr.prototype,"updateCssVars",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],hr);
_.X(hr,"ytd-carousel-header-renderer",function(){if(cM0!==void 0)return cM0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return cM0=h},{mode:1});var idM;var o$L=_.uz(["https://www.google-analytics.com/analytics.js"]),Ee=function(){var h=_.D.apply(this,arguments)||this;h.scriptAnalyticsAdded=!1;return h};
_.f(Ee,_.D);Ee.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var h,E=(h=this.data)==null?void 0:h.tagManagerId;E&&(_.Eh(E,_.nF("GL")),mFI(E))};
Ee.prototype.sendGoogleAnalyticsPageview=function(h){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var g=_.VF.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(g)};
var E=window.ga;E("set","page",window.location.pathname);E.l=+new Date;E("set","forceSSL",!0);E("create",h,"'auto'");E("send","pageview")};
Ee.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var h=_.q3("SCRIPT");h.name="ga-analytics";var E=_.BR(o$L);_.pX(h,E);h.async=!0;_.UB(this.hostElement).appendChild(h)};
Ee.prototype.dataChanged=Ee.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],Ee.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ee.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Ee);
_.X(Ee,"ytd-channel-metadata-renderer",function(){if(idM!==void 0)return idM;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return idM=h},{mode:1});var IzN;var RV2;var gJ=function(){var h=_.D.apply(this,arguments)||this;h.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"]);h.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"]);h.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return h};
_.f(gJ,_.D);_.p=gJ.prototype;_.p.attached=function(){this.requestElementsPerRow()};
_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.p.onUpdateElementsPerRowAction=function(h){h&&this.elementsPerRow!==h&&(this.elementsPerRow=h)};
_.p.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.p.computeAlertStyle_=function(h){return h};
_.p.observerElementsPerRow=function(){this.elementsPerRow&&_.Ja(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.p.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.p.requestElementsPerRow=function(){_.Ra(this.hostElement,"yt-request-elements-per-row")};
gJ.prototype.onIsVisibleChanged_=gJ.prototype.onIsVisibleChanged_;gJ.prototype.observerElementsPerRow=gJ.prototype.observerElementsPerRow;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],gJ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],gJ.prototype,"actionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],gJ.prototype,"data",void 0);_.Y([_.x({value:6,reflectToAttribute:!0}),_.V("design:type",Number)],gJ.prototype,"elementsPerRow",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],gJ.prototype,"wrapButtons",void 0);_.Y([_.x({value:_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],gJ.prototype,"isMusic",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.V("design:type",String)],gJ.prototype,"alertStyle",void 0);_.Y([_.x({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.V("design:type",Function)],gJ.prototype,"dismissBoundButtonTap_",void 0);_.Y([_.x({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.V("design:type",Function)],gJ.prototype,"acceptBoundButtonTap_",void 0);_.Y([_.Nm("elementsPerRow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gJ.prototype,"observerElementsPerRow",null);_.Y([_.Nm("data.isVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gJ.prototype,"onIsVisibleChanged_",null);_.Y([_.yc({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],gJ);
_.X(gJ,"yt-alert-with-actions-renderer",function(){if(RV2===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;IzN===void 0&&(IzN=document.createElement("template"));var Z=IzN;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);RV2=h}h=RV2;return h},{mode:2});_.I9(_.O(function(h){function E(d){var C={};return _.R(_.dK,{text:d,className:_.CO("ytPersonalGreetingViewModelHeadline",(C.ytPersonalGreetingViewModelHeadlineSmall=function(){return c()===48},C))})}
function g(d,C){return _.R("span",{el:d,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},E(C))}
var Z=_.zT(_.n4(function(){var d;return(d=h.data())==null?void 0:d.rendererContext},void 0,void 0,void 0,!0)),M=_.hf("span"),W=_.hf("span"),z=function(){return h.data().canvasPromoData},c=function(){var d;
return(d=h.data().bannerHeight)!=null?d:56},I=_.Mwz(Z,{throttleMs:100}),B=_.Mwz(M,{throttleMs:100}),U=_.Mwz(W,{throttleMs:100}),L=function(){return B.width()-I.width()>1};
return _.R("yt-personal-greeting-view-model",{el:Z,"aria-hidden":L,class:_.CO(h.className,"ytPersonalGreetingViewModelHost"),style:_.fO({height:(0,_.WE)(function(){return L()?0:c()})})},_.R(_.P,{cond:function(){return h.data().avatar&&!(U.width()+(h.data().avatar?48:0)-I.width()>1)},
then:function(){return _.R(_.Sv,{data:function(){return h.data().avatar}},{decoratedAvatarViewModel:function(d){return _.R(_.W0,{data:d.data,
className:_.CO("ytPersonalGreetingViewModelAvatar")})}})}}),_.R("h1",null,E(function(){var d;
return(z==null?void 0:(d=z())==null?void 0:d.headline)||(U.width()+(h.data().avatar?48:0)-I.width()>1?h.data().shorterGreeting:h.data().greeting)})),g(W,function(){return h.data().greeting}),g(M,function(){return h.data().shorterGreeting}))},"wk"),"yt-personal-greeting-view-model",{props:{data:_.C6,
className:_.C6}});var Zo=function(){var h=_.D.apply(this,arguments)||this;h.hidden=!1;h.isConstrainedList=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.responsiveSizing="COMPACT";h.attachedPlayers=_.J("kevlar_channel_trailer_multi_attach")?[]:void 0;h.player=null;h.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return h};
_.f(Zo,_.D);_.p=Zo.prototype;
_.p.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.p.created=function(){var h=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){h.disposeMastheadAd()}]};
_.p.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new W4x(this.refresh,this.contents))};
_.p.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.p.activeChanged=function(){var h=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=h)};
_.p.tabsChanged=function(){var h=this,E,g;if(this.pageSubtype==="channels"||_.J("kevlar_tab_gestures_for_tabbed_header_data")&&((E=this.data)==null?0:(g=E.header)==null?0:g.carouselHeaderRenderer))this.tabGestures=new cy(this.contents,this.contents,this.hostElement,this.header,function(z){h.ytdReduxBehavior.dispatch(z)});
var Z,M,W;E=(Z=this.data)==null?void 0:(M=Z.contents)==null?void 0:(W=M.twoColumnBrowseResultsRenderer)==null?void 0:W.tabs;this.tabGestures&&this.tabGestures.tabsChanged(E)};
_.p.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.p.engagementPanelsChanged=function(){var h=_.GF().resolve(_.QW);if(h){if(this.engagementPanels)for(var E=_.G(this.engagementPanels),g=E.next();!g.done;g=E.next()){var Z=void 0;(g=(Z=g.value.identifier)==null?void 0:Z.tag)&&h.panelMap.delete(g)}this.engagementPanels=[];var M;E=_.G(((M=this.data)==null?void 0:M.panels)||[]);for(M=E.next();!M.done;M=E.next()){M=_.e(M.value,_.NJC);var W=g=void 0,z=void 0,c=void 0;if(Z=((g=M)==null?void 0:g.targetId)||((W=M)==null?void 0:W.panelIdentifier)||((z=M)==
null?void 0:(c=z.identifier)==null?void 0:c.tag))W=g=void 0,(W=(g=h).registerPanelContent)==null||W.call(g,Z,{engagementPanelSectionListRenderer:M}),this.engagementPanels.push(M)}}};
_.p.onStampFinished=function(){var h=this;_.pQ(this,function(){if(h.tabGestures){var E=h.tabGestures;if(E.scrollPositionNeedsUpdate){var g=_.GF().resolve(_.pl(_.p4)),Z;if((Z=E.selectedTab)!=null&&Z.title&&g&&(Z=g.getCurrentPage())){if(E.scrollPositionForTabs.has(E.selectedTab.title)){var M,W;g=(W=(M=g.getCurrentPage())==null?void 0:M.clientHeight)!=null?W:0;M=E.scrollPositionForTabs.get(E.selectedTab.title);Z.setScrollTop(M);g>M+100&&(E.scrollPositionNeedsUpdate=!1)}else Z.setScrollTop(Math.min(E.lastVisitedTabScrollPosition!==
void 0?E.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,E.tabsStartAtInPx)),E.scrollPositionNeedsUpdate=!1;E.ytdReduxDispatch(rwG(!1))}}}})};
_.p.loadPage_=function(h){this.initCsi();h&&(this.data=h);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.p.getTitle=function(h){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",h))return this.get("microformat.microformatDataRenderer.title",h);if(this.get("header.feedTabbedHeaderRenderer.title",h))return _.Wp(this.get("header.feedTabbedHeaderRenderer.title",h));if(this.get("header.interactiveTabbedHeaderRenderer.title",h))return this.get("header.interactiveTabbedHeaderRenderer.title",h);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
h))return _.Wp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",h));var E,g;return(h==null?0:(E=h.header)==null?0:(g=E.pageHeaderRenderer)==null?0:g.pageTitle)?h.header.pageHeaderRenderer.pageTitle:""};
_.p.updateTitle=function(h){_.Ra(this.hostElement,"yt-update-title",this.getTitle(h))};
_.p.initCsi=function(){_.fjX(this.pageSubtype||"browse",["ol","cpt"])};
_.p.getPlayer=function(){if(_.J("kevlar_channel_trailer_multi_attach")){for(var h=_.G(this.attachedPlayers),E=h.next();!E.done;E=h.next())if(E=E.value,E.isConnected||_.y_(this.hostElement,E))return E;return null}return this.player};
_.p.getPlayerContainer=function(){return null};
_.p.onPlayerAttached=function(h,E){_.J("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(E):this.player=E};
_.p.onPlayerDetached=function(h,E){_.J("kevlar_channel_trailer_multi_attach")?(h=this.attachedPlayers.indexOf(E),h<0||this.attachedPlayers.splice(h,1)):this.player=null};
_.p.getServiceTrackingParams=function(){var h,E;return((h=this.data)==null?void 0:(E=h.responseContext)==null?void 0:E.serviceTrackingParams)||[]};
_.p.setMastheadAd=function(h){h&&h.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=h&&h.mastheadAd};
_.p.dataChanged=function(){var h=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.B3J();_.pQ(this,function(){_.U7(h.hostElement,"ytd-update-grid-state-action")})};
_.p.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.p.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var h=this.data.alerts;return h&&h.find(function(E){return!!E.alertWithActionsRenderer})}};
_.p.computeGreetingData=function(){if(this.data&&this.data.alerts){var h=this.data.alerts;return h&&h.find(function(E){return!!E.personalGreetingViewModel})}};
_.p.computeHasMemberHubProfileRenderer=function(h){var E;return!!(h==null?0:(E=h.header)==null?0:E.memberHubProfileRenderer)};
_.p.handleAlertCommand=function(h){this.get("alertCommand.alert.alertWithActionsRenderer",h)&&(h=_.e(h,sLp),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",h.alert))};
_.p.handleYtPlaylistDeletionRedirect=function(h){h=this.get("playlistDeletionRedirectCommand.redirectEndpoint",h);_.Ra(this.hostElement,"yt-navigate",{endpoint:h})};
_.p.computeFluidWidth=function(h,E,g){if(E==="mini_app"||g)return!0;var Z,M,W;h=h==null?void 0:(Z=h.contents)==null?void 0:(M=Z.twoColumnBrowseResultsRenderer)==null?void 0:(W=M.tabs)==null?void 0:W.find(function(I){var B;return I==null?void 0:(B=I.tabRenderer)==null?void 0:B.selected});
if(!h)return!1;var z,c;return!!((z=h.tabRenderer)==null?0:(c=z.content)==null?0:c.richGridRenderer)&&!["channel","channels","playables"].includes(E)};
_.p.computeHeaderFluidWidth=function(h){return h==="hashtag-landing-page"};
_.p.computeHasSidebar=function(h){var E;return!!(h.sidebar||((E=h.header)==null?0:E.playlistHeaderRenderer))};
_.p.computeHasPageHeaderSidebar=function(h){var E,g;return!!((E=h.header)==null?0:(g=E.pageHeaderRenderer)==null?0:g.enableSidebarView)};
_.p.computeUseUnifiedShowPageLayout=function(h){if(!h||this.pageSubtype!=="show"||!h.sidebar||!h.sidebar.playlistSidebarRenderer)return!1;h=h.sidebar.playlistSidebarRenderer;if(!h.items)return!1;for(var E=0;E<h.items.length;E++)if(_.e(h.items[E],ywi)){var g=void 0;return((g=_.e(h.items[E],ywi))==null?void 0:g.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.p.computeIsConstrainedList=function(h){return _.J("web_enable_constrained_list_subscriptions_channels")&&h==="subscriptions-channels"};
_.p.computeResponsiveSizing=function(h){return h==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ze.Object.defineProperties(Zo.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E;return((h=this.data)==null?0:(E=h.header)==null?0:E.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var h,E;if(!((h=this.data)==null?0:(E=h.sidebar)==null?0:E.playlistSidebarRenderer))return!1;var g;return(g=this.data)!=null&&g.header?!1:!0}}});
_.ze.Object.defineProperties(Zo,{template:{configurable:!0,enumerable:!0,get:function(){if(zvU===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);zvU=h}h=zvU;return h}}});
Zo.prototype.dataChanged=Zo.prototype.dataChanged;Zo.prototype.onPlayerDetached=Zo.prototype.onPlayerDetached;Zo.prototype.onPlayerAttached=Zo.prototype.onPlayerAttached;Zo.prototype.onStampFinished=Zo.prototype.onStampFinished;Zo.prototype.engagementPanelsChanged=Zo.prototype.engagementPanelsChanged;Zo.prototype.scrollAtTopChanged=Zo.prototype.scrollAtTopChanged;Zo.prototype.tabsChanged=Zo.prototype.tabsChanged;Zo.prototype.activeChanged=Zo.prototype.activeChanged;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Zo.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],Zo.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Zo.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.GP.YtPageBehavior),_.V("design:type",Object)],Zo.prototype,"ytPageBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Zo.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Zo.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Zo.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Zo.prototype,"hidden",void 0);
_.Y([_.x(),_.V("design:type",Object)],Zo.prototype,"mastheadAdData",void 0);_.Y([_.x({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.V("design:type",Object)],Zo.prototype,"alertBannerData",void 0);_.Y([_.x({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.V("design:type",Object)],Zo.prototype,"greetingData",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],Zo.prototype,"pageSubtype",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.V("design:type",Boolean)],Zo.prototype,"hasMemberHubProfileRenderer",void 0);_.Y([_.x({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Zo.prototype,"hasSidebar",void 0);_.Y([_.x({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Zo.prototype,"hasPageHeaderSidebar",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!0}),_.V("design:type",Boolean)],Zo.prototype,"roundedContainer",void 0);_.Y([_.x({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Zo.prototype,"useUnifiedShowPageLayout",void 0);_.Y([_.x({computed:"computeIsConstrainedList(pageSubtype)"}),_.V("design:type",Object)],Zo.prototype,"isConstrainedList",void 0);
_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Zo.prototype,"usePlaylistHeaderRenderer",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Zo.prototype,"useOldPlaylistSidebarRenderer",null);_.Y([_.x({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.V("design:type",Boolean)],Zo.prototype,"fluidWidth",void 0);_.Y([_.x({selector:function(h){return h.ui.scrollAtTop}}),
_.V("design:type",Boolean)],Zo.prototype,"scrollAtTop",void 0);_.Y([_.x({selector:_.Jxp}),_.V("design:type",Boolean)],Zo.prototype,"tabGesturesIsActive",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Zo.prototype,"darkerDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.V("design:type",Boolean)],Zo.prototype,"disableHeaderFluidWidth",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.V("design:type",String)],Zo.prototype,"responsiveSizing",void 0);_.Y([_.Sg("ytd-two-column-browse-results-renderer"),_.V("design:type",HTMLElement)],Zo.prototype,"contents",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],Zo.prototype,"header",void 0);_.Y([_.Sg("ytd-refresh"),_.V("design:type",Object)],Zo.prototype,"refresh",void 0);
_.Y([_.Nm("active"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"activeChanged",null);_.Y([_.Nm("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"tabsChanged",null);_.Y([_.Nm("scrollAtTop"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"scrollAtTopChanged",null);
_.Y([_.x(),_.V("design:type",Object)],Zo.prototype,"engagementPanels",void 0);_.Y([_.Nm("data.panels"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"engagementPanelsChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"onStampFinished",null);
_.Y([_.f3("yt-player-attached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],Zo.prototype,"onPlayerAttached",null);_.Y([_.f3("yt-player-detached"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Element]),_.V("design:returntype")],Zo.prototype,"onPlayerDetached",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zo.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-browse"})],Zo);_.HZ.registerService(_.zM$,Zo);
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("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 Q4,cTU,iZJ,oeU,IAX,RhC,PwJ,BCR,UHC,LcU,jaR,dHG,JTJ,ehZ,fAU,NCU,tjx,xHC,wXC,DHU,lAU,hG,mHR,E_,veZ,HZX,$HU,KcX,OZG,XXX,saC,nei,Cwx,VjU,kGX,yTU,Fcp,ATc,TCI,bZ0,uFU,QaJ,E8p,g8x,MDG,pnJ,zO0,a$Z,cjJ,o8J,ROR,PV0,BZX,Uwp,LM0,jYR,dwU,CVc,JjU,eOI,qoU,f$I,NZC,tDC,Soi,xwU,wnU,Dwx,l$x,mwI,v8c,Hex,$wG,KM0,OeZ,n8U,XnG,YoG,sYx,VDC,kyx,yjG,FM0,AjC,TZG,beI,uMc,QYC,h9U,EYR,gYc,ZmX,MlX,WbC,cS,ppi,Gvx,z9X,ckG,imI,oYC,I9U,R9U,PUC,BNp,jtZ,S8Z,l9Z,rkG,Kb0,OmU,$RC,vYG,stJ,ykI,Qtp,mRI,AkC,Vlx,BS,EAG,MgC,Gwx,Whc,pbC,zbI,
oAU,caU,IMU,RbJ,i3c,aMx,PqX,dl,Cq,CqX,JaC,JG,ebI,qBC,fMR,DmG,lMx,ee,qn,mmx,rax,vAG,H3G,$mR,KhU,fq,Nn,tG,yaG,FhZ,AaU,x2,hqX,TDR,QNG,EBG,b3C,ZLI,uTC,pKI,MQ0,WTX,wl,zq0,GlU,oBI,BpU,mQ,vS,RqU,LTp,PsC,UBp,$2,O_,nq,Xq,OLU,xBX,YQG,suG,VQc,klp,FTU,qQG,f6X,VA,tQC,Y2,s_,SQC,yWC,nBG,NpG,yA,gPJ,MdG,Wmi,ZOR,u8p,GTi,c7I,ud,Tm,bd,ICX,bLi,hE,aCG,QuG,zzC,EPG,Tpp,hzG,PFX,BuG,Ui0,j9G,CFc,J7Z,ez0,qL0,NuG,fC0,SLG,xiC,DiJ,lCx,miR,vPG,HOI,$iJ,KmR,OOU,nPx,YLG,X$U,s9G,VdU,Z2,kTp,y7C,M0,Fmi,A7J,TuR,bOG,uNp,Q9p,hnx,ExC,Z4J,
Wo,Mvi,Wzp,znU,cUp,i4x,IdU,oxX,RnC,PvC,B5i,LzZ,jJc,dIJ,CvJ,JUC,enC,qzX,fdp,N5G,tvC,SzC,xIc,rUJ,mIp,DIR,ldp,w3Z,vxJ,KzG,H4U,$IC,X3i,O4G,nxZ,YzZ,sJX,VvU,kDZ,FzI,AUU,T5G,u5U,QJ0,E7G,ZuU,WqJ,GKU,aqU,iup,IqG,P1J,LqG,jdJ,dTJ,JeR,C1c,qax,fq0,NHG,tpp,GE,SaC,xTI,wgC,n7i,Yax,sdC,FqC,AeU,THR,buG,Qdi,uDJ,h1J,EuU,guG,Z$C,M6x,id,WyG,oB,pgG,pwG,G5X,GyU,z1U,atU,cNp,i$i,ouU,ItZ;
Q4=function(h){if(!h)return"browse";var E=h.page,g=h.url,Z,M,W,z=(Z=h.response)==null?void 0:(M=Z.responseContext)==null?void 0:(W=M.webResponseContextExtensionData)==null?void 0:W.pageTheme;if(z)E=z.toLowerCase().replace(/_/g,"-");else if(E!=="watch"&&E!=="learning_journey_watch"){var c,I;if((E==="browse"||E==="settings")&&((c=h.response)==null?0:(I=c.sidebar)==null?0:I.settingsSidebarRenderer))E="WEB_PAGE_TYPE_SETTINGS";else{var B,U;E==="browse"&&((B=h.response)==null?0:(U=B.metadata)==null?0:U.channelMetadataRenderer)?
E="channel":g&&(E=_.lwa(g)||E)}}return E};
cTU=function(){var h=_.yy("yt.aba.att");return h?h:_.Hj.instance!==void 0?_.Hj.instance.i7h.bind(_.Hj.instance):null};
iZJ=function(h,E){var g;return _.a(function(Z){return(g=cTU())?Z.return(g(h,E,6E4)):Z.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
oeU=function(h,E,g,Z,M){E=E===void 0?[]:E;M=M?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:M}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.iV(h),dialogMessages:E.map(function(W){return _.iV(W)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iV(g),serviceEndpoint:M}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iV(Z)}}}}}};
IAX=function(h){var E=!!_.Uk().queueProxy;var g,Z,M;h=h==null?void 0:(g=h.response)==null?void 0:(Z=g.currentVideoEndpoint)==null?void 0:(M=Z.watchEndpoint)==null?void 0:M.playlistId;return!(!E&&!h)};
RhC=function(h,E){var g=_.sU();if(IAX(h)&&!_.J("web_watch_disable_playlist_auto_miniplayer"))return g.playlistWatchPageActivation=!0;switch(Q4(E)){case "yts-products":return g.productDetailsPageActivation=!0;case "mini_app":return g.miniAppPageActivation=!0;case "playables":return g.playablesDestPageActivation=!0;default:return!1}};
PwJ=function(h,E,g){for(var Z=typeof h==="string"?h.split(""):h,M=h.length-1;M>=0;--M)M in Z&&E.call(g,Z[M],M,h)};
BCR=function(h,E){E=_.dNz(h,E);E>=0&&_.eVq(h,E)};
UHC=function(h){return Array.prototype.concat.apply([],arguments)};
LcU=function(h){var E=0;E=E===void 0?0:E;if(!_.ul(h))throw _.hn("uint64");var g=typeof h;switch(E){case 512:switch(g){case "string":return _.qDZ(h);case "bigint":return String((0,_.Bc)(64,h));default:return _.JnZ(h)}case 1024:switch(g){case "string":return _.flx(h);case "bigint":return _.vM((0,_.Bc)(64,h));default:return _.eHz(h)}case 0:switch(g){case "string":return _.qDZ(h);case "bigint":return _.vM((0,_.Bc)(64,h));default:return _.Clz(h)}default:return _.Vk(E,"Unknown format requested type for int64")}};
jaR=function(h){h!=null&&(h=h.JSC$8820_value_||"",h=typeof h==="string"?h:new Uint8Array(h));return h};
dHG=function(h,E){if(/-[a-z]/.test(E))return null;if(_.cLA&&h.dataset){if(_.idd()&&!(E in h.dataset))return null;h=h.dataset[E];return h===void 0?null:h}return h.getAttribute("data-"+_.tQ(E))};
JTJ=function(){var h=Cwx;_.yy("yt.ads.biscotti.getId_")||_.Wu("yt.ads.biscotti.getId_",h)};
ehZ=function(h){_.Wu("yt.ads.biscotti.lastId_",h)};
fAU=function(){var h={};for(_.mX=new q7p(h.handleError===void 0?_.KI:h.handleError,h.logEvent===void 0?_.vT:h.logEvent);_.vx.length>0;)switch(h=_.vx.shift(),h.type){case "ERROR":_.mX.logError(h.payload);break;case "EVENT":_.mX.logEvent(h.eventType,h.payload)}};
NCU=function(h,E,g){return _.FM4(function(Z){return g?Z.userIdentifier!==void 0&&!h.includes(Z.userIdentifier)&&g.includes(Z.publicName):Z.userIdentifier!==void 0&&!h.includes(Z.userIdentifier)},E)};
tjx=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return E=_.tl("YtIdbMeta hasAnyMeta other"),Z.yield(_.FM4(function(M){return M.userIdentifier!==void 0&&M.userIdentifier!==E},h),2);
g=Z.yieldResult;return Z.return(g.length>0)})};
xHC=function(h,E){S7G||(S7G=_.KP.addLowPriorityJob(function(){var g,Z,M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:return c.yield(_.pP(),2);case 2:g=c.yieldResult;if(!g)return c.return();Z=!0;_.CX(c,3);return c.yield(NCU(h,g,E),5);case 5:M=c.yieldResult;if(!M.length){Z=!1;c.jumpTo(6);break}W=M[0];return c.yield(_.uN(W.actualName),7);case 7:return c.yield(_.EY(W.actualName,g),6);case 6:_.bN(c,4);break;case 3:z=_.th(c),_.Hx(z),Z=!1;case 4:_.KP.cancelJob(S7G),S7G=0,Z&&xHC(h,E),_.SK(c)}})}))};
wXC=function(){var h;return _.a(function(E){return E.nextAddress==1?E.yield(_.pP(),2):(h=E.yieldResult)?E.return(tjx(h)):E.return(!1)})};
DHU=function(h){var E=100;E=E===void 0?500:E;var g,Z,M,W,z,c;return _.a(function(I){return I.nextAddress==1?(g=_.nF("INNERTUBE_CONTEXT_CLIENT_NAME",0),Z=[g,(0,_.zn)()-2592E6],M=[g,(0,_.zn)()],W=IDBKeyRange.bound(Z,M),I.yield(_.dBz(h),2)):I.nextAddress!=3?(z=I.yieldResult,c=[],I.yield(_.ht(z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(B){c.length=0;return _.aI(B.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:W,direction:"prev"},function(U){if(U.getValue()&&c.length<
E)return c.push(U.getValue()),U.delete().then(function(){return U.continue()})})}),3)):I.return(c)})};
lAU=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.pP(),2);h=E.yieldResult;if(!h||!_.Sy()&&!_.J("nwl_init_require_datasync_id_killswitch")||!_.OLd())return E.jumpTo(0);_.XK$=!0;_.nBW.isNwlInitialized=_.XK$;return E.yield(_.NAM().awaitInitialization(),0)})};
hG=function(h,E){_.Mdx[h]=!0;var g=_.cT();g&&g.publish.apply(g,arguments);_.Mdx[h]=!1};
mHR=function(){if(_.vAx()&&!rTG){var h=function(g){g=g.data;if(g.op==="serializedGelBatch"){var Z=_.Wzu.get(g.key);Z&&(_.GDu(g.serializedBatch,Z.client,Z.resolve,Z.networklessOptions,Z.isIsolated,Z.useVSSEndpoint,Z.dangerousLogToVisitorSession,Z.requestsOutstanding),_.Wzu.delete(g.key))}},E=_.mmq();
E&&(E.addEventListener("message",h),E.onerror=function(){_.Wzu.clear()});
rTG=!0}};
E_=function(){this.relativeTimeStart_=_.zZ()};
veZ=function(h,E){h!=null&&this.append.apply(this,arguments)};
HZX=function(){return _.AQ("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
$HU=function(h,E,g){g=g===void 0?!1:g;var Z,M,W,z,c;return _.a(function(I){switch(I.nextAddress){case 1:_.fl("SOCS",h,34128E3,"youtube.com",!0);if(_.UK)return M=fetch(E,{method:"POST",mode:_.E7(E),credentials:_.hT(E),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),W=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.E7("/upgrade_visitor_cookie?eom=1"),credentials:_.hT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),I.yield(Promise.all([M,W]).then(function(B){return B[1]}),5);
fetch(E,{method:"POST",mode:_.E7(E),credentials:_.hT(E),cache:"no-store",headers:{"Content-Type":"text/plain"}});return I.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.E7("/upgrade_visitor_cookie?eom=1"),credentials:_.hT("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:Z=I.yieldResult;I.jumpTo(3);break;case 5:Z=z=I.yieldResult;case 3:if(!Z.ok)throw Error("tf");return I.yield(Z.text(),7);case 7:c=I.yieldResult,
!c.includes('"state_switch":true')&&!g||c.includes("skip_reload_for_test")||window.location.reload(),_.SK(I)}})};
KcX=function(h){return _.a(function(E){return E.nextAddress==1?E.yield($HU(h.socsCookie,h.savePreferenceUrl,!0),2):E.return()})};
OZG=function(h){return _.a(function(E){return E.nextAddress==1?E.yield($HU(h.socsCookie,h.savePreferenceUrl),2):E.return()})};
XXX=function(h){h=h.xhr.responseText;if(!_.Gu(h,")]}'"))throw new gl;h=JSON.parse(h.substr(4));if((h.type||1)>1)throw new gl;h=h.id;ehZ(h);Zc=_.LC(h);nei(18E5,2);return h};
saC=function(h,E){E=new Y7Z(E);ehZ("");Zc=_.QqH(E);h>0&&nei(12E4,h-1);throw E;};
nei=function(h,E){_.Bx(function(){_.vNU().then(XXX,function(g){return saC(E,g)}).thenCatch(_.wk)},h)};
Cwx=function(){var h=_.Krp();if(h!==void 0)return _.$B(h);Zc||(Zc=_.vNU().then(XXX).thenCatch(function(E){return saC(2,E)}));
return Zc};
VjU=function(){var h=document;return _.mZ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(E){return"on"+E.toLowerCase()in h})};
kGX=function(h){h.addEventListener("click",function(E){var g=E.target;g&&g.getAttribute("href")&&(g=g.getAttribute("href"),_.EZ(window,g,"_blank"),E.preventDefault(),E.stopImmediatePropagation())})};
yTU=function(h){var E,g,Z,M=(Z=(g=((E=h.mainDownloadsListEntity)!=null?E:{})[_.ymN])==null?void 0:g.refresh)!=null?Z:"",W;h=(W=h.refresh)==null?void 0:W[M];M=h!=null?h:{};return(M==null?0:M.refreshTime)?Number(M==null?void 0:M.refreshTime):0};
Fcp=function(h,E){var g=_.Hn(h);return E.every(function(Z){var M;Z=Z==null?void 0:(M=Z.playbackDataEntity)==null?void 0:M.key;if(!Z)return!1;M=_.jD(_.Bn(Z).entityId,"mainVideoEntity");return!!g[M]})};
ATc=function(h){h=_.rZ(h.entities);return _.GhN(h).length};
TCI=function(h,E){if(E){var g;h=(g=_.Jj(h.entities,"downloadQualityPickerEntity",E))!=null?g:void 0}else h=void 0;return h};
bZ0=function(h){var E=document.getElementsByTagName("ytd-enforcement-message-view-model");E.length===0||getComputedStyle(E[0]).display==="none"?h(0,"p.h_"):h(1,"p.h_")};
uFU=function(){Mn=0;var h=[_.wN(!0)];WS&&_.U7(WS,"yt-window-resized",h)};
QaJ=function(){Mn||(Mn=_.KP.addLowPriorityJob(uFU,200))};
E8p=function(){pq=0;hOU=_.iUD(document);var h=[hOU];WS&&_.U7(WS,"yt-window-scrolled",h)};
g8x=function(){pq||(pq=_.KP.addLowPriorityJob(E8p,200))};
MDG=function(h){h=h===void 0?null:h;Ze0.push(_.WT(window,"resize",QaJ));Ze0.push(_.WT(window,"scroll",g8x));h&&(WS=h)};
pnJ=function(){var h={isWide:_.qd.get("wide","0")==="1"},E=_.xe();if(E=E.getFlag(165)||E.getFlag(174))h.theme=_.Hp(!0);if(_.k3$()){var g=_.vp()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";h.systemTheme=g}!E&&_.J("parent_tools_enable_app_settings")&&_.uI(window.location.href).theme!==void 0&&(h.theme=_.Hp());if((E=Gm)?!_.Kt.equals(E,h):h)E={currentValue:h},WMc&&(E.timeSinceLastSnapshotSecs=Math.round(((0,_.zn)()-WMc)/1E3)),Gm&&(E.previousValue=Gm),_.vT("appSettingsCaptured",E),Gm=h,WMc=
(0,_.zn)()};
zO0=function(){var h=_.nm.getLocalStorage();h&&GyU(h,h.mechanism.__iterator__(!0))};
a$Z=function(h){_.a(function(E){if(E.nextAddress==1)return E.yield(h.delete("yt-appshell-assets"),2);_.SK(E)})};
cjJ=function(h){return _.Qn((0,_.SXD)(),h)};
o8J=function(){var h;_.a(function(E){return E.nextAddress==1?E.yield(zm.getInstance(),2):(h=E.yieldResult)?E.yield(ieZ(h),0):E.jumpTo(0)})};
ROR=function(){var h;_.a(function(E){return E.nextAddress==1?E.yield(ag.getInstance(),2):(h=E.yieldResult)?E.yield(I$0(h),0):E.jumpTo(0)})};
PV0=function(h){a$Z(h);o8J();ROR()};
BZX=function(h){var E,g;return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(_.RY4(h),2);if(E=Z.yieldResult){var M;a:{if(E.headers&&(M=E.headers.get("date"))&&(M=Date.parse(M),!isNaN(M))){M=Math.round((0,_.zn)()-M);break a}M=-1}g=M;if(g>-1)return Z.return(g)}return Z.return(-1)})};
Uwp=function(){var h=_.MN.caches,E=_.Xn("IS_SHELL_LOAD"),g,Z;_.a(function(M){if(M.nextAddress==1)return g=-1,E?M.yield(BZX(h),3):(Z=_.vX(),g=Math.round((0,_.zn)()-Z),M.jumpTo(2));M.nextAddress!=2&&(g=M.yieldResult);g>=0&&g<2147483648&&_.nZ({appInstallDataAgeMs:g});_.SK(M)})};
LM0=function(h){var E=_.T8(_.MN.location.href),g={};"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(Z){var M=E.JSC$10033_queryData_.getValues(Z);if(M==null?0:M.length)g[Z]=M});
return _.U6(h,new Map(Object.entries(g)))};
jYR=function(h){h=h.match(/(.*)::.*::.*/);if(h!==null)return h[1]};
dwU=function(h){if(_.lia()){var E=Object.keys(window.localStorage);E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=jYR(g);Z===void 0||h.includes(Z)||self.localStorage.removeItem(g)}}};
CVc=function(){if(!_.lia())return!1;var h=_.tl(),E=Object.keys(window.localStorage);E=_.G(E);for(var g=E.next();!g.done;g=E.next())if(g=jYR(g.value),g!==void 0&&g!==h)return!0;return!1};
JjU=function(h){return _.Od("NotificationsDisabled",h)};
eOI=function(){return Notification.permission!="granted"?Promise.resolve():_.eJX().then(function(h){return h?h.pushManager.getSubscription().then(function(E){if(E)return Promise.resolve();E={userVisibleOnly:!0,applicationServerKey:_.Qx("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return h.pushManager.subscribe(E).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
qoU=function(h){return _.eJX().then(function(E){if(!E||!E.active)return Promise.reject(new _.xX("serviceworker.postMessage",h,E));try{return E.active.postMessage(h),Promise.resolve()}catch(g){return Promise.reject(g)}})};
f$I=function(){qoU({type:"notifications_register",data:_.nF("ID_TOKEN")})};
NZC=function(){if(!_.Xn("LOGGED_IN"))return Promise.resolve(!1);var h=_.iN("service_worker_push_force_notification_prompt_tag");return h?_.Xw("PromptTags").then(function(E){if(!E)return!0;var g=[];try{g=JSON.parse(E)}catch(Z){return!1}return g&&g.indexOf(h)==-1}):Promise.resolve(!1)};
tDC=function(){var h=_.cx("service_worker_push_prompt_delay_microseconds");return h?_.Xw("PromptTime").then(function(E){return Promise.resolve(Date.now()-h>(E||0))}):Promise.resolve(!0)};
Soi=function(){var h=_.cx("service_worker_push_logged_out_prompt_watches");return h==-1?Promise.resolve(!1):_.Xw("WatchCount").then(function(E){return E>=h})};
xwU=function(){var h=_.c3(document,"yt-push-prompt-modal-bg");h&&_.f8(h)};
wnU=function(){return _.cx("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.Xw("PromptCount").then(function(h){h||(h=0);return Promise.resolve(h<_.cx("service_worker_push_prompt_cap"))})};
Dwx=function(h){return _.Xn("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Xn("LOGGED_IN")&&(h===void 0?0:h)?NZC().then(function(E){if(E)return!0;E=[wnU(),tDC()];_.Xn("LOGGED_IN")||E.push(Soi());return Promise.all(E).then(function(g){return g.every(function(Z){return Z})})}):Promise.resolve(!1)};
l$x=function(){_.Xw("PromptCount").then(function(h){return _.Od("PromptCount",h+1)}).then(function(){return _.Od("PromptTime",Date.now())}).then(function(){var h=_.iN("service_worker_push_force_notification_prompt_tag");
if(h)return _.Xw("PromptTags").then(function(E){var g=[];if(E)try{g=JSON.parse(E)}catch(Z){return!1}g||(g=[]);g.push(h);return _.Od("PromptTags",JSON.stringify(g))})})};
mwI=function(){rjG||xwU()};
v8c=function(h){h.style.zIndex=2147483648;h.style.pointerEvents="auto";h.style.backgroundColor="rgba(0, 0, 0, 0.6)";h.style.width="100%";h.style.height="100vh";h.style.position="absolute";h.style.top="0";h.style.left="0";h.style.border="none"};
Hex=function(){var h=_.c3(document,"yt-push-prompt-modal-bg");rjG=_.J("service_worker_push_prompt_modal_ignore_click");h?v8c(h):(h=_.Kz("div",{id:"yt-push-prompt-modal-bg"}),v8c(h),document.body.appendChild(h),_.hzx(document,"click",mwI))};
$wG=function(){var h=arguments;_.J("service_worker_push_prompt_modal_enable")&&Hex();return Notification.requestPermission().then(function(E){xwU();var g=document.getElementById("ticker");g&&(g.className=g.classList.remove("show"));if(E=="granted")return eOI().then(function(){JjU(!1);f$I();return Promise.resolve(!0)});
E=="denied"&&f$I();return Promise.resolve(!1)}).catch(function(){xwU();
return Promise.reject.apply(Promise,_.$E(h))})};
KM0=function(h){h=h===void 0?!1:h;var E=_.bVN().client;if(E&&E.browserVersion){var g=E.browserVersion,Z=E.browserName=="CHROME"&&_.U4(g,"50.0.0")<0;E=E.browserName=="OPERA"&&_.U4(g,"42.0.0")<0;if(Z||E)return Promise.resolve()}return _.NXX().then(function(M){if(!M)return Promise.resolve();M=eOI().then(function(){return qoU({type:"notifications_check_registration",data:_.nF("ID_TOKEN")})});
return Notification.permission!="default"?M.catch(function(){}):M.then(function(){return Dwx(h)}).then(function(W){if(W)return l$x(),$wG().then(function(){})}).catch(function(){})})};
OeZ=function(h){return _.qWx(h)?KM0():Promise.resolve()};
n8U=function(h){var E=h.installing||h.waiting;return h.active||!E?Promise.resolve(h):new Promise(function(g){var Z=function(M){M=M.target;if(M.state==="activated"||M.state==="redundant")E.removeEventListener("statechange",Z),g(h)};
E.addEventListener("statechange",Z)})};
XnG=function(){var h=new _.Eia("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.oe(h,{mainAppWeb:_.ZM()});var E=_.kSk;_.J("service_worker_forward_exp_params")&&(E=LM0(E));try{var g=_.uZu(E).catch(function(){_.Ie(h,"FAILURE");return new Promise(function(){})});
_.J("service_worker_push_enabled")&&g.then(function(Z){_.Ie(h,"SUCCESS");return Z}).then(n8U).then(OeZ)}catch(Z){if(_.Ie(h,"FAILURE"),Z.name!=="SecurityError")throw Z;
}};
YoG=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&XnG()};
sYx=function(h,E){var g={};E&&(g.serializedYpcFamilyCreateLoggingParams=E);_.vT(h,g);_.HT()};
VDC=function(h,E){var g={};g.serializedYpcRefundFlowLoggingParams=E;h&&(g.eventType=h);_.vT("ypcRefundFlowEvent",g);_.HT()};
kyx=function(h){h&&_.hjd("transactionFlowSucceeded",h)};
yjG=function(h){h&&_.j0("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",h,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
FM0=function(h){var E,g,Z,M,W,z,c;_.a(function(I){if(I.nextAddress==1)return I.yield(_.rIz(),2);if(I.nextAddress!=3){if(!I.yieldResult)return I.return(!1);E=[];return I.yield(_.jd.keys(),3)}g=I.yieldResult;Z=_.G(g);for(M=Z.next();!M.done;M=Z.next())W=M.value,z=_.Dj$(W),c=z.datasyncId,!c||h.includes(c)||E.push(_.jd.delete(W));return I.return(Promise.all(E).then(function(B){return B.some(function(U){return U})}))})};
AjC=function(){var h,E,g,Z,M,W,z;return _.a(function(c){if(c.nextAddress==1)return c.yield(_.rIz(),2);if(c.nextAddress!=3){if(!c.yieldResult)return c.return(!1);h=_.tl("cache contains other");return c.yield(_.jd.keys(),3)}E=c.yieldResult;g=_.G(E);for(Z=g.next();!Z.done;Z=g.next())if(M=Z.value,W=_.Dj$(M),(z=W.datasyncId)&&z!==h)return c.return(!0);return c.return(!1)})};
TZG=function(){var h=_.GF().resolve(_.pl(_.X9F));return h?h.getCurrentTime():0};
beI=function(){var h,E,g,Z,M,W,z,c,I,B,U,L,d,C;return _.a(function(q){switch(q.nextAddress){case 1:h={},E=_.mfZ(),g=_.G(Object.entries(E)),Z=g.next();case 4:if(Z.done){q.jumpTo(3);break}M=Z.value;W=_.G(M);z=W.next().value;c=W.next().value;I=z;B=c;if(!B){q.jumpTo(5);break}return q.yield(B(),8);case 8:h[I]=q.yieldResult;case 5:Z=g.next();q.jumpTo(4);break;case 2:U=_.G(void 0),L=U.next();case 9:if(L.done){q.jumpTo(3);break}d=L.value;C=E[d];if(!C){q.jumpTo(10);break}return q.yield(C(),13);case 13:h[d]=
q.yieldResult;case 10:L=U.next();q.jumpTo(9);break;case 3:return q.return(h)}})};
uMc=function(){var h;_.a(function(E){if(E.nextAddress==1)return E.yield(beI(),2);h=E.yieldResult;return E.yield(navigator.clipboard.writeText(JSON.stringify(h,null,2)),0)})};
QYC=function(h,E){return _.Jj(h.entities,"superThanksSelectedTierEntity",E)};
h9U=function(h,E){return{popup:{searchSuggestionReportDialog:{searchQuery:h,title:_.NH("SBOX_INAPPROPRIATE_TITLE"),suggestions:E,categoryLabel:_.NH("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.NH("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.NH("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.NH("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.NH("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.NH("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.NH("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.NH("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.NH("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.NH("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
EYR=function(h){var E,g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u;return _.a(function(k){switch(k.nextAddress){case 1:return k.yield(_.fe(),2);case 2:return(E=k.yieldResult)?k.yield(_.JFa(E),3):k.return();case 3:g=k.yieldResult;if(!g)return k.return();M=((Z=g.offlineVideos)==null?void 0:Z.length)||0;z=((W=g.offlinePlaylists)==null?void 0:W.length)||0;if(M===0&&z===0)return k.return();c=0;if(g.offlineVideos)for(I=_.G(g.offlineVideos),B=I.next();!B.done;B=I.next())U=B.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
U.videoState&&(c+=1);h.offline_videos_count=M.toString();_.J("kevlar_log_offline_current_network_type_ks")||(h.offline_current_network_type=(L=_.Jj$())!=null?L:"CONN_INVALID");_.J("kevlar_log_updated_time_for_smart_downloads")&&(d=_.Gv().getState().entities,C=_.ne(d),q=yTU(d),h.offline_smart_downloads_last_sync_time_ms=C.toString(),h.offline_smart_downloads_next_sync_time_ms=q.toString());h.offline_videos_playable=c.toString();h.offline_playlists_count=z.toString();g.offlineVideos&&(w=g.offlineVideos.reduce(function(y,
A){A.downloadedBytes&&(y+=Number(A.downloadedBytes));return y},0).toString())&&(h.offline_used_disk_space_bytes=w);
if(!((r=navigator)==null?0:(v=r.storage)==null?0:v.estimate)){k.jumpTo(4);break}return k.yield(navigator.storage.estimate(),5);case 5:H=k.yieldResult,h.offline_free_disk_space_bytes=(((u=H)==null?void 0:u.quota)||0).toString();case 4:h.offline_client_state=JSON.stringify(g),_.SK(k)}})};
gYc=function(h){h=_.G(h);for(var E=h.next(),g={};!E.done;g={setter$jscomp$5:void 0},E=h.next()){var Z=E.value;E=Z.params;Z=Z.service;E&&Z&&(g.setter$jscomp$5=_.xcp[Z],g.setter$jscomp$5&&E.forEach(function(M){return function(W){var z=W.key;W=W.value;z&&W&&(0,M.setter$jscomp$5)(z,W)}}(g)))}};
ZmX=function(h){h=h.match(/(.*)::.*::.*/);if(h!==null)return h[1]};
MlX=function(h){if(_.mWx()){var E=Object.keys(window.sessionStorage);E=_.G(E);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=ZmX(g);Z===void 0||h.includes(Z)||self.sessionStorage.removeItem(g)}}};
WbC=function(){if(!_.mWx())return!1;var h=_.tl(),E=Object.keys(window.sessionStorage);E=_.G(E);for(var g=E.next();!g.done;g=E.next())if(g=ZmX(g.value),g!==void 0&&g!==h)return!0;return!1};
cS=function(h,E,g){(_.J("desktop_keyboard_shortcut_usage_log")||g&&_.J("web_shorts_keyboard_shortcut_usage_log"))&&(E?_.V4.get(h):_.sd.get(h))&&(h=E?_.y4.get(h):_.kt.get(h))&&_.Z$(_.sH(),h)};
ppi=function(h,E){return h.findIndex(function(g){return g.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(E.keyCode):!1};
Gvx=function(){var h,E;return typeof CSS!=="undefined"&&((E=(h=CSS).supports)==null?void 0:E.call(h,"selector(:has(*))"))};
z9X=function(h){return h.visibility!=="hidden"&&h.display!=="none"};
ckG=function(h){if(Gvx()||h.tagName!=="DETAILS"?!h.matches(a9I):h.querySelector("summary")!==null)return-1;h=h.getAttribute("tabindex")||"0";return Number(h)};
imI=function(h){return h.some(function(E){return ckG(E)>0})};
oYC=function(h){if(h.textContent)return!0;if(h instanceof HTMLInputElement){if(!h.labels)return!1;h=_.G(h.labels);for(var E=h.next();!E.done;E=h.next())if(E.value.textContent)return!0}return!1};
I9U=function(h){return h.sort(function(E,g){return ckG(g)-ckG(E)})};
R9U=function(h){h=Array.from(h.querySelectorAll(a9I)).filter(function(E){return(z9X(E.style)?z9X(window.getComputedStyle(E)):!1)&&oYC(E)});
return imI(h)?I9U(h):h};
PUC=function(h){h=R9U(h);h.length>0&&h[0].focus()};
BNp=function(h,E){E.stack&&(h.stack+="\n"+E.stack);return h};
jtZ=function(h){var E=id(h,"Content-Type");if(!E)return null;E=E.toLowerCase();if(E.startsWith("application/json"))return E.startsWith("application/json+protobuf")?new URc:new _.ez;if(E.startsWith("application/x-protobuf")){h=id(h,"Content-Transfer-Encoding");if(!h)return new og;if(h.toLowerCase()=="base64")return new Lb0}return null};
S8Z=function(h,E,g,Z){var M=new dRG(function(c,I){return CUU.has(I)?c.sentinel==="gal"&&c.event!==void 0:!1},function(c){c.event?(c=JkG(c.event),c=!c||e9U(Z,c)?!0:_.qv(h.lastEvent,Ig,2,Rg)?!_.qv(c,PS,1,Rg)&&!_.qv(c,Ig,2,Rg):!_.qv(c,PS,1,Rg)&&!_.qv(c,Ig,3,Rg)):c=!0;
return c});
g=_.U6(h.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",q8G(g)]]));if(h.nestedOrigins!==void 0)for(var W=_.G(h.nestedOrigins),z=W.next();!z.done;z=W.next())g=_.U6(g,new Map([["origin",z.value]]));return f9C(M,g,E).then(function(c){c=NN0(c.event);if(_.qv(c,PS,1,Rg)){var I,B=(I=_.KW(c,PS,1,Rg))==null?void 0:_.vW(I,2);B&&Z.JSC$19387_logErrorEvent(tlR(B));I=_.KW(c,PS,1,Rg);_.vW(I,2)===4?(c=_.KW(c,PS,1,Rg),c={statusCode:11,statusMessage:_.mj(c,
3)}):(c=_.KW(c,PS,1,Rg),c={statusCode:12,statusMessage:_.mj(c,3)});return c}_.qv(c,Ig,3,Rg)?(c=_.KW(c,Ig,3,Rg),c={statusCode:1,consentLanguageKeys:_.mj(c,2)}):c={statusCode:1};return c}).catch(function(c){return c.errorCode!==void 0?{statusCode:c.errorCode,
statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
l9Z=function(h){var E={};if(h===void 0||h===null)return E;h.getToken()!==void 0&&xRi(h.getToken())&&xRi(h.getToken()).length>0&&(E.scopes=new Set(xRi(h.getToken())));h.getToken()!==void 0&&wpR(h.getToken())&&wpR(h.getToken()).length>0&&(E.capabilities=new Set(wpR(h.getToken())));_.mj(h,3)!==void 0&&(E.consistencyKey=_.mj(h,3));h.getName()!==void 0&&h.getName()!==""&&(E.linkName=h.getName());_.eP(h,DRc,4)&&(h=_.iK(h,DRc,4),h=Object.assign({},_.mj(h,1)&&{userId:_.mj(h,1)},_.mj(h,2)&&{displayName:_.mj(h,
2)},_.mj(h,3)&&{email:_.mj(h,3)},_.mj(h,5)&&{username:_.mj(h,5)},_.mj(h,4)&&{profilePicture:_.mj(h,4)}),E.profile=h);return E};
rkG=function(h,E){var g=h.flowParams,Z;return{serviceId:g.serviceId,sessionId:g.sessionId,currentFlow:h.currentFlow,googleScopesString:E,linkingSessionSerialized:h.session.serialize(),consentLanguageKeys:g.consentLanguageKeys,callerState:h.callerState,dynamicUrlParameters:g.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(Z=g.partnerConfigMinReadTimestamp)==null?void 0:Z.serialize()}};
Kb0=function(h){var E=h.googleScopes!==void 0?Array.from(h.googleScopes).join(","):"";mRI(rkG(h,E));E=vYG(h);return E===null?Promise.resolve(Hmi):E.start().then(function(g){var Z,M=(Z=g.link)==null?void 0:Z.consistencyKey;return g.statusCode===1&&h.googleScopes!==void 0&&h.googleScopes.size>0&&M!==void 0?(Z=h.flowParams,$RC(Z.serviceId,Z.sessionId,h.googleScopes,M,Z.galService,h.config,g)):g})};
OmU=function(h){var E=vYG(h);return E===null?Promise.resolve(BS({statusCode:7,statusMessage:"Failed to create flow object"},h.callerState)):E.complete().then(function(g){var Z,M=(Z=g.link)==null?void 0:Z.consistencyKey;return g.statusCode===1&&h.googleScopes!==void 0&&h.googleScopes.size>0&&M!==void 0?(Z=h.flowParams,$RC(Z.serviceId,Z.sessionId,h.googleScopes,M,Z.galService,h.config,g)):BS(g,h.callerState)},function(g){return BS({statusCode:12,
statusMessage:"Failed to complete the flow: "+g.message},h.callerState)})};
$RC=function(h,E,g,Z,M,W,z){return nYG(M,{serviceId:h,sessionId:E,googleScopes:g,consistencyKey:Z}).then(function(){return z},function(c){return M.deleteLink({serviceId:h,
sessionId:E,accountLinkingEntryPoint:W.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+c.message}},function(I){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+I.message}})})};
vYG=function(h){switch(h.currentFlow){case 1:var E=h.flowParams;h=_.iK(h.session,XpX,1);return U_.createOAuthFlow(E,h);case 2:case 3:return E=h.flowParams,h=_.iK(h.session,Y8U,6),Lq.createStreamlinedFlow(E,h);default:return null}};
stJ=function(h,E){h===2&&(h=3);var g=0;je.indexOf(h)!==-1&&(g=je.indexOf(h)+1);for(h=g;h<je.length;h++)if(E.has(je[h]))return je[h]};
ykI=function(h){var E=h.serviceId;var g=h.sessionId;var Z=h.config;var M=h.galService;var W=h.capabilities;var z=h.scopes;var c=h.loginHint;var I=h.callerState;var B=h.consentLanguageKeys;var U=h.linkName;var L=h.dynamicUrlParameters;var d=h.partnerConfigMinReadTimestamp;h=Z.dataUsageNoticeConfig?Z.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return M.startLinkingSession({serviceId:E,sessionId:g,capabilities:W,scopes:z,loginHint:c,callerState:I,supportedFlows:Vlx(Z.supportedFlows),completionUrl:Z.completionUrl,
accountLinkingEntryPoint:Z.accountLinkingEntryPoint,consentLanguageKeys:B,dataUsageNoticeConfig:h,linkName:U,dynamicUrlParameters:L,partnerConfigMinReadTimestamp:d}).then(function(C){return new kvC(E,g,Z,M,C,void 0,I,B,L,d)})};
Qtp=function(h,E,g){var Z=(new Fbp).getSession(h);if(Z===null)return Promise.resolve({statusCode:2});AkC(h);var M=TNG(Z.linkingSessionSerialized),W=Z.googleScopesString!==""&&Z.googleScopesString!==void 0?new Set(Z.googleScopesString.split(",")):void 0,z=Z.partnerConfigMinReadTimestampSerialized?bmX(Z.partnerConfigMinReadTimestampSerialized):void 0;return utU(new kvC(h,Z.sessionId,E,g,M,W,Z.callerState,Z.consentLanguageKeys,Z.dynamicUrlParameters,z),Z.currentFlow,Z.consentLanguageKeys)};
mRI=function(h){var E=new Fbp;E.storage!==null&&E.storage.set("SAVED_SESSION",h)};
AkC=function(h){var E=new Fbp;if(E.storage!==null){var g=E.storage.get("SAVED_SESSION");g!==void 0&&g.serviceId===h&&E.storage.remove("SAVED_SESSION")}};
Vlx=function(h){var E=new Set;h=_.G(h);for(var g=h.next();!g.done;g=h.next())g=g.value,g!==1&&hbG.has(g)&&E.add(hbG.get(g));return E};
BS=function(h,E){E!==void 0&&(h.callerState=E);return h};
EAG=function(h){switch(h){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
MgC=function(h){return new gAZ(h,new Z3C(h))};
Gwx=function(h,E){E=E===void 0?!1:E;var g=document.createElement("div");h&&(g.style.transform="scaleX(-1)");g.style.backgroundColor=E?"rgba(138,180,248,.24)":"#e8f0fe";g.style.height="4px";g.style.overflow="hidden";g.style.position="absolute";g.style.top="0";g.style.width="100%";g.style.zIndex="1500";g.setAttribute("aria-label","Loading");g.setAttribute("aria-live","polite");h=document.createElement("style");h.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  }";
g.appendChild(h);h=Whc();h.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";h.style.left="-145.166611%";var Z=pbC(E);Z.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";h.appendChild(Z);g.appendChild(h);h=Whc();h.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";h.style.left="-54.888891%";E=pbC(E);E.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
h.appendChild(E);g.appendChild(h);return g};
Whc=function(){var h=document.createElement("div");h.style.height="100%";h.style.position="absolute";h.style.transformOrigin="top left";h.style.width="100%";return h};
pbC=function(h){var E=document.createElement("span");E.style.borderTop=h?"4px solid #669df6":"4px solid #4285f4";E.style.display="inline-block";E.style.position="absolute";E.style.width="100%";return E};
zbI=function(h){return h==null?void 0:_.L2H(h).valueOf()};
oAU=function(h){var E=document.body,g=!1,Z=function(){g||(g=!0,aMx(M,W),setTimeout(function(){E.removeChild(W);E.removeChild(M)},150))},M=caU(h,getComputedStyle(E).direction==="rtl",Z),W=i3c(Z);
aMx(M,W);E.appendChild(W);E.appendChild(M);window.requestAnimationFrame(function(){W.style.opacity="1";M.style.opacity="1";M.style.transform="translate(-50%, -50%) scale(1)";M.children[0].focus()})};
caU=function(h,E,g){var Z=document.createElement("div");Z.style.position="fixed";Z.style.alignItems="center";Z.style.backgroundColor=h?"rgb(32, 33, 36)":"white";Z.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";Z.style.display="flex";Z.style.flexDirection="column";Z.style.justifyContent="center";Z.style.left="50%";Z.style.top="50%";Z.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";Z.style.zIndex="2002";document.body.clientWidth>=
660?(Z.style.borderRadius="8px",Z.style.minHeight="220px",Z.style.maxHeight="90%",Z.style.maxWidth="90%",Z.style.minWidth="540px"):(Z.style.height="100%",Z.style.width="100%");Z.setAttribute("aria-label","Error");Z.setAttribute("aria-modal","true");Z.setAttribute("role","alertdialog");Z.addEventListener("keydown",function(W){W.key==="Escape"&&g()});
E=IMU(h,E,g);Z.appendChild(RbJ(E));Z.appendChild(E);var M=document.createElement("img");M.src=h?"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";M.style.height="72px";M.style.width="72px";M.style.color="#9aa0a6";M.setAttribute("alt","");Z.appendChild(M);M=document.createElement("h1");M.textContent="Something went wrong.  Try again.";
M.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";M.style.lineHeight="24px";M.style.fontSize="16px";M.style.textAlign="center";M.style.letterSpacing="0.1px";M.style.color=h?"rgb(232,234,237)":"#3c4043";Z.appendChild(M);Z.appendChild(RbJ(E));return Z};
IMU=function(h,E,g){var Z=document.createElement("button");Z.style.backgroundColor="transparent";Z.style.border="none";Z.style.borderRadius="50%";Z.style.cursor="pointer";Z.style.outline="none";Z.style.padding="12px";Z.setAttribute("aria-label","Close dialog");Z.style.position="absolute";Z.style.top="0";E?Z.style.right="0":Z.style.left="0";Z.addEventListener("focus",function(){Z.style.backgroundColor=h?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
Z.addEventListener("blur",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("mouseenter",function(){Z.style.backgroundColor=h?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
Z.addEventListener("mouseleave",function(){Z.style.backgroundColor="transparent"});
Z.addEventListener("click",g);Z.addEventListener("keydown",function(M){M.key!=="Enter"&&M.key!=="Space"||g()});
E=document.createElement("img");E.src=h?"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";E.style.display="block";E.style.height="24px";E.style.width="24px";E.setAttribute("alt","");Z.appendChild(E);return Z};
RbJ=function(h){var E=document.createElement("div");E.setAttribute("tabindex","0");E.setAttribute("aria-hidden","true");E.addEventListener("focus",function(){return void h.focus()});
return E};
i3c=function(h){var E=document.createElement("div");E.style.backgroundColor="rgba(32,33,36,0.6)";E.style.bottom="0";E.style.left="0";E.style.position="fixed";E.style.right="0";E.style.top="0";E.style.transition=" opacity 150 ms linear";E.style.zIndex="2001";E.addEventListener("click",h);return E};
aMx=function(h,E){E.style.opacity="0";h.style.opacity="0";h.style.transform="translate(-50%, -50%) scale(0.8)"};
PqX=function(h,E){h.sandbox&&h.sandbox.add&&(h.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),h.sandbox.add("allow-downloads"));h.src=E};
dl=function(h){BDG.call(this,h)};
Cq=function(h,E){E=E===void 0?!1:E;this.parsedImageUrl_=null;h instanceof UmJ||(LhU==void 0&&(LhU=new jNG),h=LhU.parse(h.toString(),E));h=this.parsedImageUrl_=h;h.JSC$19599_parsedOptions_==void 0&&((E=h.getOptions())||(E=""),h.JSC$19599_parsedOptions_=(new dmX).parse(E));BDG.call(this,h.JSC$19599_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;h=this.parsedImageUrl_;E=h.uri_.JSC$10033_port_;this.JSC$19601_domain_=h.uri_.JSC$10033_domain_+(E?":"+E:"");this.JSC$19601_query_=
this.parsedImageUrl_.uri_.JSC$10033_queryData_.toString()};
CqX=function(h){this.mode=4;this.data=h;this.parsedData=[];h=0;for(var E=this.data.length;h<E;h++){var g=[],Z=this.data.charCodeAt(h);Z>65536?(g[0]=240|(Z&1835008)>>>18,g[1]=128|(Z&258048)>>>12,g[2]=128|(Z&4032)>>>6,g[3]=128|Z&63):Z>2048?(g[0]=224|(Z&61440)>>>12,g[1]=128|(Z&4032)>>>6,g[2]=128|Z&63):Z>128?(g[0]=192|(Z&1984)>>>6,g[1]=128|Z&63):g[0]=Z;this.parsedData.push(g)}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))};
JaC=function(h){this.typeNumber=0;this.errorCorrectLevel=h===void 0?2:h;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
JG=function(h,E){if(h.length==void 0)throw Error("Kk`"+h.length+"`"+E);for(var g=0;g<h.length&&h[g]==0;)g++;this.num=Array(h.length-g+E);for(E=0;E<h.length-g;E++)this.num[E]=h[E+g]};
ebI=function(h,E){this.totalCount=h;this.dataCount=E};
qBC=function(){this.buffer=[];this.length=0};
fMR=function(){var h=!1;if(_.POd()){h=_.jq();var E="";_.LZu()?(E=/Windows (?:NT|Phone) ([0-9.]+)/,E=(h=E.exec(h))?h[1]:"0.0"):_.Dz()?(E=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,E=(h=E.exec(h))&&h[1].replace(/_/g,".")):_.UNz()?(E=/Mac OS X ([0-9_.]+)/,E=(h=E.exec(h))?h[1].replace(/_/g,"."):"10"):_.IW(_.jq(),"KaiOS")?(E=/(?:KaiOS)\/(\S+)/i,E=(h=E.exec(h))&&h[1]):_.POd()?(E=/Android\s+([^\);]+)(\)|;)/,E=(h=E.exec(h))&&h[1]):_.jWZ()&&(E=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,E=(h=E.exec(h))&&h[1]);h=
E||""}return h};
DmG=function(h,E){this.JSC$19624__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(E)for(var g in E)this.JSC$19624__htOption[g]=E[g];this.JSC$19624__htOption.useSVG&&(NDi=tgX);this.JSC$19624__android=fMR();this.JSC$19624__el=h;this._oQRCode=null;this._oDrawing=new NDi(this.JSC$19624__el,this.JSC$19624__htOption);this.JSC$19624__htOption.text&&(h=this.JSC$19624__htOption.text,this._oQRCode=new JaC(this.JSC$19624__htOption.correctLevel),SBU(this._oQRCode,
h),E=this._oQRCode,xmU(E,!1,wbi(E)),this.JSC$19624__el.title=h,this._oDrawing.draw(this._oQRCode),this.makeImage())};
lMx=function(h,E,g,Z,M){h.save();var W=new Path2D;W.roundRect(E,g,Z*7,Z*7,Z*2);W.roundRect(E+Z,g+Z,Z*5,Z*5,Z*1.3);W.roundRect(E+2*Z,g+2*Z,Z*3,Z*3,Z);h.clip(W,"evenodd");h.fillStyle=M;h.fillRect(0,0,h.canvas.width,h.canvas.height);h.restore()};
ee=function(h,E){if(typeof h!=="function")throw Error("Nk");return _.MN.setTimeout(function(){h()},E)};
qn=function(){};
mmx=function(h,E,g,Z,M){(new qn).debug("TestLoadImageWithRetries: "+M);if(Z==0)g(!1);else{var W=M||0;Z--;rax(h,E,function(z){z?g(!0):_.MN.setTimeout(function(){mmx(h,E,g,Z,W)},W)})}};
rax=function(h,E,g){var Z=new qn;Z.debug("TestLoadImage: loading "+h);var M=new Image;M.onload=function(){try{Z.debug("TestLoadImage: loaded"),vAG(M),g(!0)}catch(W){}};
M.onerror=function(){try{Z.debug("TestLoadImage: error"),vAG(M),g(!1)}catch(W){}};
M.onabort=function(){try{Z.debug("TestLoadImage: abort"),vAG(M),g(!1)}catch(W){}};
M.ontimeout=function(){try{Z.debug("TestLoadImage: timeout"),vAG(M),g(!1)}catch(W){}};
_.MN.setTimeout(function(){if(M.ontimeout)M.ontimeout()},E);
M.src=h};
vAG=function(h){h.onload=null;h.onerror=null;h.onabort=null;h.ontimeout=null};
H3G=function(){this.front_=[];this.back_=[]};
$mR=function(h,E){this.action=h;this.params=E||{}};
KhU=function(h,E){_.wO.call(this);this.delay_=new _.l4(this.JSC$19750_onTick_,0,this);_.jf(this,this.delay_);this.JSC$19748_interval_=5E3;this.nextTickTime_=0;if(typeof h==="function")E&&(h=(0,_.DJ)(h,E));else if(h&&typeof h.handleEvent==="function")h=(0,_.DJ)(h.handleEvent,h);else throw Error("ya");this.JSC$19750_listener_=h};
fq=function(h,E,g,Z,M,W,z,c,I,B,U,L,d,C){g=g===void 0?!1:g;Z=Z===void 0?function(){return""}:Z;
M=M===void 0?!1:M;W=W===void 0?!1:W;z=z===void 0?!1:z;c=c===void 0?function(){return _.dC({})}:c;
I=I===void 0?!1:I;U=U===void 0?!1:U;L=L===void 0?!1:L;d=d===void 0?!1:d;C=C===void 0?!1:C;this.JSC$19751_pathPrefix_=h;this.defaultQueryParams_=E;this.pubsub_=new _.Jl;this.reconnectTimer_=new KhU(this.safeReconnect_,this);this.JSC$19751_channel_=null;this.JSC$19751_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19751_pendingMessages_=[];this.enableAsyncTest_=g;this.JSC$19751_getXsrfToken_=Z;this.useAsyncBrowserChannelHandler_=W;this.getAuthorizationHeader_=
c;this.getAuthorizationHeaderSync_=B;this.enableCachedUpdateAuthorizationHeader_=z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.dC();this.enableLoungeTokenRefresh_=M;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=I;this.disableMdxAuthForNonPlaybackMessages_=U;this.disableMdxAuthForAdMessages_=L;this.enableMdxAuthForConnectionOnly_=d;this.disableMdxAuthForShortsMessages_=C;this.JSC$19751_channelOpenedCounter=new O3C;this.JSC$19751_channelClosedCounter=new nAJ;this.channelMessageSentCounter=
new XbX;this.JSC$19751_channelMessageReceivedCounter=new YBZ;this.JSC$19751_channelErrorCounter=new sNc;this.pendingMapsOnClosedCounter=new VgZ;this.undeliveredMapsOnClosedCounter=new kw0};
Nn=function(h){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;h=h||document.location.href;var E=Number(_.Eq(h)[4]||null)||"";E&&(this.port=":"+E);this.domain=_.gf(h)||"";h=_.jq();h.search("MSIE")>=0&&_.U4(h.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
tG=function(h){h=h||{};this.name=h.name||"";this.id=h.id||h.screenId||"";this.token=h.token||h.loungeToken||"";this.uuid=h.uuid||h.dialId||"";this.idType=h.screenIdType||"normal"};
yaG=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var E=Math.random()*16|0;return(h=="x"?E:E&3|8).toString(16)})};
FhZ=function(h){return _.O6(h,function(E){return{key:E.id,name:E.name}})};
AaU=function(h,E){return _.mZ(h,function(g){return g||E?!g!=!E?!1:g.id==E.id:!0})};
x2=function(h,E){return _.mZ(h,function(g){return Se(g,E)})};
hqX=function(){var h=TDR(),E=b3C();if(uTC()){var g=h,Z=_.S4W(g,E);Z<0&&_.fzW(g,-(Z+1),0,E)}h=QNG(h);if(h.length==0)try{_.LM4("remote_sid")}catch(M){}else try{_.fl("remote_sid",h.join(","),-1)}catch(M){}};
TDR=function(){var h=_.YY("yt-remote-connected-devices")||[];h.sort(_.tqd);return h};
QNG=function(h){if(h.length==0)return[];var E=h[0].indexOf("#"),g=E==-1?h[0]:h[0].substring(0,E);return _.O6(h,function(Z,M){return M==0?Z:Z.substring(g.length)})};
EBG=function(h){_.Xt("yt-remote-connected-devices",h,86400)};
b3C=function(){if(gBI)return gBI;var h=_.YY("yt-remote-device-id");h||(h=yaG(),_.Xt("yt-remote-device-id",h,31536E3));for(var E=TDR(),g=1,Z=h;_.nd(E,Z);)g++,Z=h+"#"+g;return gBI=Z};
ZLI=function(){return _.YY("yt-remote-session-browser-channel")};
uTC=function(){return _.YY("yt-remote-session-screen-id")};
pKI=function(h){h.length>5&&(h=h.slice(h.length-5));var E=_.O6(MQ0(),function(Z){return Z.loungeToken}),g=_.O6(h,function(Z){return Z.loungeToken});
_.xbx(g,function(Z){return!_.nd(E,Z)})&&WTX();
_.Xt("yt-remote-local-screens",h,31536E3)};
MQ0=function(){return _.YY("yt-remote-local-screens")||[]};
WTX=function(){_.Xt("yt-remote-lounge-token-expiration",!0,86400)};
wl=function(h){h||(_.s8("yt-remote-session-screen-id"),_.s8("yt-remote-session-video-id"));hqX();h=TDR();_.Xz(h,b3C());EBG(h)};
zq0=function(){GlU();return Dc?!!Dc.get("yt-remote-use-staging-server"):!1};
GlU=function(){if(!Dc){var h=_.tDV();h&&(Dc=new _.wf(h))}};
oBI=function(h,E,g,Z,M){g=g===void 0?function(){return""}:g;
var W=function(){return new fq(ld(h,"/bc"),E,!1,g,Z)};
return _.J("enable_mdx_web_channel_desktop")?new a60(function(){return new cWG(ld(h,"/wc"),E,g)}):new iLJ(W,M)};
BpU=function(){var h=I6c;RqU();rl.push(h);PsC()};
mQ=function(h,E){RqU();var g=UBp(h,String(E));rl.length==0?LTp(g):(PsC(),_.Tt(rl,function(Z){Z(g)}))};
vS=function(h){mQ("CP",h)};
RqU=function(){rl||(rl=_.yy("yt.mdx.remote.debug.handlers_")||[],_.Wu("yt.mdx.remote.debug.handlers_",rl))};
LTp=function(h){var E=(HS+1)%50;HS=E;jui[E]=h;dBX||(dBX=E==49)};
PsC=function(){var h=rl;if(jui[0]){var E=dBX?HS:-1,g={};do g={record$jscomp$15:void 0},E=(E+1)%50,g.record$jscomp$15=jui[E],_.Tt(h,function(Z){return function(M){M(Z.record$jscomp$15)}}(g));
while(E!=HS);jui=Array(50);HS=-1;dBX=!1}};
UBp=function(h,E){var g=(Date.now()-CsG)/1E3;g.toFixed&&(g=g.toFixed(3));var Z=[];Z.push("[",g+"s","] ");Z.push("[","yt.mdx.remote","] ");Z.push(h+": "+E,"\n");return Z.join("")};
$2=function(h){_.Yt.call(this);this.JSC$19775_logName_=h;this.screens=[]};
O_=function(h){$2.call(this,"LocalScreenService");this.JSC$19782_http_=h;this.loungeTokenRefreshTimer_=NaN;Kq(this);this.info("Initializing with "+JWZ(this.screens))};
nq=function(h,E){E=E===void 0?!1:E;$2.call(this,"ScreenService");this.JSC$19788_http_=h;this.disableAutomaticScreenCache_=E;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};eqR(this)};
Xq=function(h,E,g){_.Yt.call(this);this.JSC$19792_logName_=g;this.JSC$19792_screenService_=h;this.receiver_=E;this.screen_=null};
OLU=function(h,E,g){g.disableCastApi?Y2("Cannot initialize because disabled by Mdx config."):qQG()?f6X(h,g)&&(NpG(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?tQC(E):(window.__onGCastApiAvailable=function(Z,M){Z?tQC(E):(s_("Failed to load cast API: "+M),SQC(!1),NpG(!1),_.s8("yt-remote-cast-available"),_.s8("yt-remote-cast-receiver"),xBX(),E(!1))},g.loadCastApiSetupScript?_.bC(wKG):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
DBZ()>=60&&l6G():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?rWi():DBZ()>=89?mBp():(vBU(),HL0($BC.map(KTZ))))):Y2("Cannot initialize because not running Chrome")};
xBX=function(){Y2("dispose");var h=VA();h&&h.dispose();_.Wu("yt.mdx.remote.cloudview.instance_",null);nBG(!1);_.WmZ(XKU);XKU.length=0};
YQG=function(){return!!_.YY("yt-remote-cast-installed")};
suG=function(){var h=_.YY("yt-remote-cast-receiver");return h?h.friendlyName:null};
VQc=function(){Y2("clearCurrentReceiver");_.s8("yt-remote-cast-receiver")};
klp=function(){return YQG()?VA()?VA().getCastSession():(s_("getCastSelector: Cast is not initialized."),null):(s_("getCastSelector: Cast API is not installed!"),null)};
FTU=function(h,E){yWC()?VA().setConnectedScreenStatus(h,E):s_("setConnectedScreenStatus called before ready.")};
qQG=function(){var h=_.jq().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.LW||h};
f6X=function(h,E){var g=!1;VA()||(h=new k2(h,E),h.subscribe("yt-remote-cast2-availability-change",function(Z){_.Xt("yt-remote-cast-available",Z);hG("yt-remote-cast2-availability-change",Z)}),h.subscribe("yt-remote-cast2-receiver-selected",function(Z){Y2("onReceiverSelected: "+Z.friendlyName);
_.Xt("yt-remote-cast-receiver",Z);hG("yt-remote-cast2-receiver-selected",Z)}),h.subscribe("yt-remote-cast2-receiver-resumed",function(Z){Y2("onReceiverResumed: "+Z.friendlyName);
_.Xt("yt-remote-cast-receiver",Z);hG("yt-remote-cast2-receiver-resumed",Z)}),h.subscribe("yt-remote-cast2-session-change",function(Z){Y2("onSessionChange: "+AWX(Z));
Z||_.s8("yt-remote-cast-receiver");hG("yt-remote-cast2-session-change",Z)}),_.Wu("yt.mdx.remote.cloudview.instance_",h),g=!0);
Y2("cloudview.createSingleton_: "+g);return g};
VA=function(){return _.yy("yt.mdx.remote.cloudview.instance_")};
tQC=function(h){SQC(!0);NpG(!1);VA().init(!1,function(E){E?(nBG(!0),_.p$q("yt-remote-cast2-api-ready")):(s_("Failed to initialize cast API."),SQC(!1),_.s8("yt-remote-cast-available"),_.s8("yt-remote-cast-receiver"),xBX());h(E)})};
Y2=function(h){mQ("cloudview",h)};
s_=function(h){mQ("cloudview",h)};
SQC=function(h){Y2("setCastInstalled_ "+h);_.Xt("yt-remote-cast-installed",h)};
yWC=function(){return!!_.yy("yt.mdx.remote.cloudview.apiReady_")};
nBG=function(h){Y2("setApiReady_ "+h);_.Wu("yt.mdx.remote.cloudview.apiReady_",h)};
NpG=function(h){_.Wu("yt.mdx.remote.cloudview.initializing_",h)};
yA=function(h){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(h)};
gPJ=function(h){GlU();if(!Dc||!Dc.get("yt-remote-disable-remote-module-for-dev")){h=_.nF("MDX_CONFIG")||h;zO0();hqX();Fq||(Fq=new Nn(h?h.loungeApiHost:void 0),zq0()&&(Fq.basePath="/api/loungedev"));AG||(AG=_.yy("yt.mdx.remote.deferredProxies_")||[],_.Wu("yt.mdx.remote.deferredProxies_",AG));Tpp();var E=Tm();if(!E){var g=new nq(Fq,h?h.disableAutomaticScreenCache||!1:!1);_.Wu("yt.mdx.remote.screenService_",g);E=Tm();var Z={};h&&(Z={appId:h.appId,disableDial:h.disableDial,theme:h.theme,loadCastApiSetupScript:h.loadCastApiSetupScript,
disableCastApi:h.disableCastApi,enableDialLoungeToken:h.enableDialLoungeToken,enableCastLoungeToken:h.enableCastLoungeToken,forceMirroring:h.forceMirroring});_.Wu("yt.mdx.remote.enableConnectWithInitialState_",h?h.enableConnectWithInitialState||!1:!1);OLU(g,function(W){W?bd()&&FTU(bd(),"YouTube TV"):g.subscribe("onlineScreenChange",function(){hG("yt-remote-receiver-availability-change")})},Z)}if(h&&!_.yy("yt.mdx.remote.initialized_")){_.Wu("yt.mdx.remote.initialized_",!0);
ud("Initializing: "+(0,_.XY)(h));QA.push(_.I8("yt-remote-cast2-api-ready",function(){hG("yt-remote-api-ready")}));
QA.push(_.I8("yt-remote-cast2-availability-change",function(){hG("yt-remote-receiver-availability-change")}));
QA.push(_.I8("yt-remote-cast2-receiver-selected",function(){bLi();hG("yt-remote-auto-connect","cast-selector-receiver")}));
QA.push(_.I8("yt-remote-cast2-receiver-resumed",function(){hG("yt-remote-receiver-resumed","cast-selector-receiver")}));
QA.push(_.I8("yt-remote-cast2-session-change",u8p));QA.push(_.I8("yt-remote-connection-change",function(W){W?FTU(bd(),"YouTube TV"):QuG()||(FTU(null,null),VQc())}));
QA.push(_.I8("yt-remote-cast2-session-failed",function(){hG("yt-remote-connection-failed")}));
Z=hzG();h.isAuto&&(Z.id+="#dial");var M=h.capabilities||[];M.length>0&&(Z.capabilities=M);Z.name=h.device;Z.app=h.app;(h=h.theme)&&(Z.theme=h);ud(" -- with channel params: "+(0,_.XY)(Z));Z?(_.Xt("yt-remote-session-app",Z.app),_.Xt("yt-remote-session-name",Z.name)):(_.s8("yt-remote-session-app"),_.s8("yt-remote-session-name"));_.Wu("yt.mdx.remote.channelParams_",Z);E.start();bd()||EPG()}}};
MdG=function(){var h=Tm().instance_.$_gos();var E=ZOR();E&&hE()&&(AaU(h,E)||h.push(E));return FhZ(h)};
Wmi=function(){var h=MdG(),E=ZOR();E||(E=QuG());return _.mZ(h,function(g){return E&&Se(E,g.key)?!0:!1})};
ZOR=function(){var h=bd();if(!h)return null;var E=Tm().getScreens();return x2(E,h)};
u8p=function(h){ud("remote.onCastSessionChange_: "+AWX(h));if(h){var E=ZOR();if(E&&E.id==h.id){if(FTU(E.id,"YouTube TV"),h.idType=="shortLived"&&(h=h.token))p$x&&(p$x.token=h),(E=hE())&&E.setLoungeToken(h)}else E&&GTi(),zzC(h,1)}else hE()&&GTi()};
GTi=function(){yWC()?VA().stopSession():s_("stopSession called before API ready.");var h=hE();h&&(h.disconnect(1),aCG(null))};
c7I=function(){var h=hE();return h&&h.getProxyState()!=3?new El(hE(),void 0):null};
ud=function(h){mQ("remote",h)};
Tm=function(){if(!iOR){var h=_.yy("yt.mdx.remote.screenService_");iOR=h?new oPG(h):null}return iOR};
bd=function(){return _.yy("yt.mdx.remote.currentScreenId_")};
ICX=function(h){_.Wu("yt.mdx.remote.currentScreenId_",h)};
bLi=function(){_.Wu("yt.mdx.remote.connectData_",null)};
hE=function(){return _.yy("yt.mdx.remote.connection_")};
aCG=function(h){var E=hE();bLi();h||ICX("");_.Wu("yt.mdx.remote.connection_",h);AG&&(_.Tt(AG,function(g){g(h)}),AG.length=0);
E&&!h?hG("yt-remote-connection-change",!1):!E&&h&&hG("yt-remote-connection-change",!0)};
QuG=function(){var h=uTC();if(!h)return null;var E=Tm();if(!E)return null;E=E.getScreens();return x2(E,h)};
zzC=function(h,E){Rz0?p$x=h:(ICX(h.id),h=new gd(Fq,h,hzG(),_.yy("yt.mdx.remote.enableConnectWithInitialState_")||!1),h.connect(E,_.yy("yt.mdx.remote.connectData_")),h.subscribe("beforeDisconnect",function(g){hG("yt-remote-before-disconnect",g)}),h.subscribe("beforeDispose",function(){hE()&&aCG(null)}),h.subscribe("browserChannelAuthError",function(){var g=ZOR();
g&&g.idType=="shortLived"&&(yWC()?VA().handleBrowserChannelAuthError():s_("refreshLoungeToken called before API ready."))}),aCG(h))};
EPG=function(){var h=QuG();h?(ud("Resume connection to: "+AWX(h)),zzC(h,0)):(wl(),VQc(),ud("Skipping connecting because no session screen found."))};
Tpp=function(){var h=hzG();if(_.Kt.isEmpty(h)){h=b3C();var E=_.YY("yt-remote-session-name")||"",g=_.YY("yt-remote-session-app")||"";h={device:"REMOTE_CONTROL",id:h,name:E,app:g,mdxVersion:3};h.authuser=String(_.nF("SESSION_INDEX","0"));(E=_.nF("DELEGATED_SESSION_ID"))&&(h.pageId=String(E));_.Wu("yt.mdx.remote.channelParams_",h)}};
hzG=function(){return _.yy("yt.mdx.remote.channelParams_")||{}};
PFX=function(){var h,E;return _.a(function(g){if(g.nextAddress==1)return(_.YQx()||_.J("use_new_nwl"))&&_.KTN().isNetworkAvailable()?g.yield(_.pP(),2):g.return();if(g.nextAddress!=3)return(h=g.yieldResult)?g.yield(DHU(h),3):g.return();E=g.yieldResult;if(!E.length)return g.return();E.forEach(function(Z){var M={timestamp:Z.timestamp};Z=Z.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:Z.appShellAssetLoadReport,options:M}:Z.clientError?{payloadName:"clientError",payload:Z.clientError,
options:M}:void 0;Z&&_.vT(Z.payloadName,Z.payload,Z.options)});
E.length===100&&_.KP.addLowPriorityJob(PFX);_.SK(g)})};
BuG=function(h){if(h.playerResponse){if(h=h.playerResponse,h.messages&&h.messages.length>0&&(h=h.messages.find(function(E){return!(!E||!E.mealbarPromoRenderer)}))&&h.mealbarPromoRenderer)return h.mealbarPromoRenderer}else if(h.response&&(h=h.response)&&h.overlay&&h.overlay.mealbarPromoRenderer)return h.overlay.mealbarPromoRenderer};
Ui0=function(h){if(h.response){var E=h.response;if(E&&E.overlay&&E.overlay.tooltipRenderer)return E.overlay.tooltipRenderer}if(h.playerResponse&&(h=h.playerResponse,h.messages&&h.messages.length>0&&(h=h.messages.find(function(g){return!(!g||!g.tooltipRenderer)}))&&h.tooltipRenderer))return h.tooltipRenderer};
j9G=function(h){if(!LmC&&(h=h||_.nF("ZWIEBACK_PING_URLS"))&&h.length){LmC=!0;for(var E=0;E<h.length;E++)_.At(h[E])}};
CFc=function(h){if(_.Kt.get(_.nF("PLAYER_VARS",{}),"privembed",!1)!="1"){h&&JTJ();try{dix().then(function(){},function(){}),_.Bx(CFc,18E5)}catch(E){_.Vy(E)}}};
J7Z=function(){var h=_.xe(),E=h.getFlag(119),g=window.devicePixelRatio>1;document.body&&_.Ef(document.body,"exp-invert-logo")&&(g&&!_.Ef(document.body,"inverted-hdpi")?_.GT(document.body,"inverted-hdpi"):!g&&_.Ef(document.body,"inverted-hdpi")&&_.W$(document.body,"inverted-hdpi"));E!=g&&(_.wC(0,119,g),h.save())};
ez0=function(h){return h.filter(function(E){return"ypcGetCartEndpoint"in E||"ypcFixInstrumentEndpoint"in E})};
qL0=function(h){return h.filter(function(E){return!_.e(E,_.$yf)})};
NuG=function(h,E){var g,Z,M,W,z,c,I;_.a(function(B){switch(B.nextAddress){case 1:g=_.O8.getInstance();Z=_.eQ.instance;M=_.bF.instance;if(!M)return fC0(h,Z,E),B.return();_.CX(B,2);h.onLoadingCommand&&Z.resolveCommand(h.onLoadingCommand);return B.yield(g.getCurrentPositionFromGeolocation(),4);case 4:W=B.yieldResult;if(!h.resolveLocationCommand){B.jumpTo(5);break}z=g.createLocationInfo(W);return B.yield(_.QQ(M,h.resolveLocationCommand,{locationInfo:z}),6);case 6:c=B.yieldResult;if(!c||"error"in c&&c.error||
c.errorMetadata)return fC0(h,Z,E),B.return();var U;if(c==null?0:(U=c.onResponseReceivedActions)==null?0:U.length){U=_.G(c.onResponseReceivedActions);for(var L=U.next();!L.done;L=U.next())Z.resolveCommand(L.value)}(_.e(h.onSuccessCommand,_.MH)||_.e(h.onSuccessCommand,_.tk))&&_.Ra(E.hostElement,"yt-navigate",{endpoint:h.onSuccessCommand,reload:!0});case 5:_.bN(B,0);break;case 2:I=_.th(B);if(I instanceof GeolocationPositionError&&I.code===GeolocationPositionError.PERMISSION_DENIED)return h.onDeniedCommand&&
Z.resolveCommand(h.onDeniedCommand),B.return();fC0(h,Z,E);_.SK(B)}})};
fC0=function(h,E,g){h.onFailureCommand&&(E.resolveCommand(h.onFailureCommand),_.BX(g.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
SLG=function(h,E){var g=_.e(h,_.BGH);if(g&&E){h=g.videoIds||[g.videoId];var Z;E=(Z=_.Ra(E,"yt-lockup-requested",{videoIds:h}).detail)==null?void 0:Z.returnValue;var M;g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?M=E?E:h.map(function(W){return{videoId:W,navigationEndpoint:g.videoCommand}}):E&&(M=E);
M&&(Z=M.map(function(W){var z=Object,c=z.assign;var I=W.navigationEndpoint;if(!_.e(I,_.D9)){var B=_.e(I,_.MH);if(B){if(delete B.index,delete B.playlistId,B=_.e(I==null?void 0:I.commandMetadata,_.qH),B==null?0:B.url){var U=B.url;U=_.aa(U,"list");U=_.aa(U,"index");B.url=U}}else I=void 0}return c.call(z,{},W,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:I})}),tdG(Z,g))}};
xiC=function(h){var E=_.Uk();if(h=_.e(h,_.U$F))h.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&E.clearQueue(),h.closeMiniplayer&&_.GF().resolve(_.Yu).close(!0)};
DiJ=function(h){w$p(_.Uk(),h)};
lCx=function(h){var E;(h=(E=_.e(h,_.RpF))==null?void 0:E.setVideoIds)&&h.forEach(function(g){_.b7A(_.Uk(),g)})};
miR=function(h){r7X(_.Uk(),h)};
vPG=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(h){return!1}};
HOI=function(h){var E=["h","m","s"],g=_.Y$(E);g.reverse();var Z={};h=(h.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(z){var c=(z.match(/[hms]/)||[""])[0];return c?(Z[c]=parseInt(z.match(/\d+/)[0],10),!1):!0});
for(h.reverse();h.length&&g.length;){var M=g.shift();M in Z||(Z[M]=parseInt(h.shift(),10))}if(h.length||Z.s>59||Z.m>59||Z.h>9)return null;var W="";E.forEach(function(z){Z[z]&&(W+=""+Z[z]+z)});
return W||null};
$iJ=function(h,E){var g=_.Ozn(E,{},h,!0);return new Promise(function(Z,M){g.listenOnce("n",function(){M(Error("yl`"+g.JSC$29478_getErrorDescription()))});
g.listenOnce("l",function(){var W=g.getResponseCode();if(W!==200)M(Error("zl`"+E+"`"+h.type+"`"+h.size+"`"+W));else try{Z(JSON.parse(g.getResponseText()).encryptedBlobId)}catch(z){M(z)}});
g.run()})};
KmR=function(h){return h.substring(h.indexOf(":")+1,h.indexOf(";"))};
OOU=function(h){return new Promise(function(E,g){var Z=new FileReader;Z.onloadend=function(){try{var M=new Uint8Array(Z.result);M.length<8&&g(void 0);var W=M.subarray(0,8);M="";for(var z=0;z<W.length;z++)M+=("0"+W[z].toString(16)).substr(-2);M.startsWith("ffd8ff")?E("image/jpeg"):M.startsWith("47494638")?E("image/gif"):M.startsWith("89504e470d0a1a0a")?E("image/png"):M.startsWith("424d")?E("image/bmp"):E(void 0)}catch(c){g(c)}};
Z.onerror=g;Z.readAsArrayBuffer(h)})};
nPx=function(h){return new Promise(function(E,g){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var M=document.createElement("canvas");M.width=Z.naturalWidth;M.height=Z.naturalHeight;var W=M.getContext("2d");if(!W)throw Error("Al");W.drawImage(Z,0,0);W=KmR(h);M.toBlob(function(z){z?E(z):g()},W)};
Z.src=h})};
YLG=function(h,E){var g;if(((g=_.e(h,_.D9))==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var Z;_.Ra((Z=E.hostElement)!=null?Z:E,"yt-shorts-reset");_.QyF(_.GF().resolve(_.km),h).then(function(W){X$U(W,E,h)})}else{var M;
_.LZ((M=E.hostElement)!=null?M:E,[h]).then(function(W){W&&X$U(W.data,E,h)})}};
X$U=function(h,E,g){if(h){var Z=_.e(h.replacementEndpoint,_.D9);if(Z){h.sequenceContinuation&&(Z.sequenceParams=h.sequenceContinuation);var M;_.Ra((M=E.hostElement)!=null?M:E,"yt-navigate",{endpoint:h.replacementEndpoint})}else if((h==null?void 0:h.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(h==null?0:h.watchStatus)&&_.e(h.watchStatus,_.Q2n)){var W;_.Ra((W=E.hostElement)!=null?W:E,"yt-navigate",{endpoint:g})}}};
s9G=function(h){var E=_.GF().resolve(_.c4),g=_.AU.currentPageTypeSelector(E.getState())||"";E=_.AU.currentPageSubTypeSelector(E.getState())||"";g=g==="ytd-browse"&&E==="home";return _.J("web_guide_entry_enable_cache_for_non_home_pages")?(h=(h==null?void 0:h.navigationEndpoint)&&_.fm(h.navigationEndpoint)==="home",{disableCache:g&&h}):{disableCache:g}};
VdU=function(h){if(!h)return!1;try{if(h.host&&h.host.tagName==="YT-FORMATTED-STRING"&&h.host.id==="contenteditable-textarea"||h.nodeType===Node.ELEMENT_NODE&&h.tagName==="YTD-COMMENT-INPUT")return!0}catch(E){return!1}return VdU(h.parentNode)};
Z2=function(h){return h?h.tagName==="A"&&h.href&&h.classList.contains("yt-simple-endpoint"):!1};
kTp=function(h){return h?h.tagName==="IMG"&&h.classList.contains("emoji"):!1};
y7C=function(h,E,g){if(!h)return null;var Z=Z2(h);if(Z&&g)return E=h.pathname.substring(h.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(Z&&!g)return document.createTextNode("");if(kTp(h))return g=h.alt,h=h.dataset.emojiId,!h&&E&&(E=_.Id(E,g))&&E.isCustomEmoji&&(h=E.emojiId),h?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+h+">"):document.createTextNode(g);Z=h.cloneNode(!1);for(var M=0;M<h.childNodes.length;++M){var W=y7C(h.childNodes[M],E,g);W&&Z.appendChild(W)}return Z};
M0=function(h){return h?Z2(h)?h:M0(h.lastChild):null};
Fmi=function(h){return h?Z2(h)?h:Fmi(h.firstChild):null};
A7J=function(h){if(!h)return null;for(var E=h.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=M0(E))?h=E:h=(h=h.parentNode)?M0(h.previousElementSibling):null;return h};
TuR=function(h){if(!h)return null;for(var E=h.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=Fmi(E))?E:TuR(h.parentNode)};
bOG=function(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();if(!VdU(g.parentNode))return null;E=E.JSC$11350_getStartOffset();if(g.nodeType===Node.TEXT_NODE){var Z=_.Vw(g,Z2);if(Z){if(h&&E===0||!h&&E===g.length)return Z}else{if(h&&E===g.length)return!g||g.nodeName==="BR"||g.nextElementSibling&&_.Bg(g.nextElementSibling,"display")==="block"?null:Fmi(g.nextElementSibling);if(!h&&E===0)return g?M0(g.previousElementSibling):null}}if(g.nodeType===Node.ELEMENT_NODE)if(h){if(0<=E&&E<g.childNodes.length)return Fmi(g.childNodes[E])}else if(0<
E&&E<=g.childNodes.length)return M0(g.childNodes[E-1]);return null};
uNp=function(h,E,g){if(!h)return null;if(h.nodeType===Node.TEXT_NODE)if(g){var Z=A7J(h);if(Z&&!/^\s+\S/.test(h.wholeText.substr(0,E)))return Z}else if((Z=TuR(h))&&!/\S\s+/.test(h.wholeText.substr(E,h.wholeText.length)))return Z;return h.nodeType===Node.ELEMENT_NODE?g?A7J(h.childNodes[E]):TuR(h.childNodes[E]):uNp(h.parentNode,E,g)};
Q9p=function(h){if(h.hasChildNodes())switch(h.tagName){case "DIV":case "A":case "SPAN":var E="";for(h=h.firstChild;h;h=h.nextSibling)E+=Q9p(h);return E;default:return""}else switch(h.nodeType){case 3:return h.textContent;default:return""}};
hnx=function(h){switch(h){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"}};
ExC=function(h){return h.map(function(E){return{settingsRadioOptionRenderer:{title:_.IY(E.name),asideText:_.IY(E.approximateSize),id:hnx(E.format)}}})};
Z4J=function(h){if(h&&h.length!==0)return h.filter(gxU()).map(function(E){return{settingsRadioOptionRenderer:{title:E.name,asideText:E.approximateSize,id:hnx(E.formatType)}}})};
Wo=function(h){if(h)return h.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Mvi=function(h,E){h=new Set(h!=null?h:[]);if(h.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(h.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(h.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(h.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(h.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(E)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Wzp=function(h){var E=h.indexOf("(");return E!==-1?h.substring(E+1,h.length-1):h};
_.GDp=function(h,E,g,Z,M){g||(g=p3C);var W;(W=_.e(g.commandMetadata,_.qH))!=null&&W.url||(g=Error("Fl`"+JSON.stringify(g)),_.$W(g),g=p3C);g=_.Kt.unsafeClone(g);W=_.YW(_.e(g.commandMetadata,_.qH).url,"search_query",h);_.FR(location.href,"sv")==="1"&&(_.e(g,_.Sl).params="EgOAAgE%3D",W=_.YW(W,"sv","1"));_.e(g,_.Sl)&&(_.e(g,_.Sl).query=h);W=W.replace(/%20/g,"+");_.e(g.commandMetadata,_.qH).url=W;M=_.J("desktop_enable_entity_suggest")?{entityMid:M}:{};_.GF().resolve(_.zF).resolveCommand(g,{form:{tempData:Object.assign({},
{gs_l:E,oq:Z!=null?Z:h},M)}})};
znU=function(h){switch(h){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
cUp=function(h,E,g,Z,M,W){var z=_.Kt.clone(adR);z.locale=_.nF("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;z.report={description:M||"<empty>"};M=_.nF("SBOX_SETTINGS",{});E=E.join(",");var c=Date.now();h={choice_cc:Z,choice_id_cc:g,choices_sc:E,gl:M.REQUEST_DOMAIN,hl:M.REQUEST_LANGUAGE,query:h,time:c};W&&(h.choice_additional_comment_cc=W);_.kbD(z,h)};
i4x=function(h){var E=new Map;E.set("authuser",_.nF("SESSION_INDEX","0"));return _.U6(h,E)};
IdU=function(h){var E;return _.a(function(g){switch(g.nextAddress){case 1:if(!h||!oxX(h))return g.return(null);E=null;switch(_.nF("INNERTUBE_CLIENT_NAME")){case "WEB":return g.jumpTo(2);case "WEB_REMIX":E=h.getPlayer()}g.jumpTo(3);break;case 2:return g.yield(h.getPlayerPromise(),4);case 4:E=g.yieldResult;g.jumpTo(3);break;case 3:return g.return(E)}})};
oxX=function(h){return["ytd-player","ytmusic-player"].includes(String(h.tagName||"").toLowerCase())};
RnC=function(h){h=Math.round(h);return h%2?h-1:h};
PvC=function(h){h=Math.round(h);return h%2===0?h-1:h};
B5i=function(h){var E,g,Z;if(h=(E=h.createPlaylistDialogFormSchema)==null?void 0:(g=E.fieldSchemas)==null?void 0:(Z=g.title)==null?void 0:Z.validationSchema)for(E=[h.syncStep,h.asyncStep].filter(function(M){return M!==void 0}),E=_.G(E),g=E.next();!g.done;g=E.next()){g=g.value.rules;
if(!g)break;g=_.G(g);for(g=g.next();!g.done;g=g.next())return _.e(g.value,_.sCX)}};
LzZ=function(h){var E,g,Z;if(h=(E=h.createPlaylistDialogFormSchema)==null?void 0:(g=E.fieldSchemas)==null?void 0:(Z=g.visibility)==null?void 0:Z.validationSchema)for(E=[h.syncStep,h.asyncStep].filter(function(M){return M!==void 0}),E=_.G(E),g=E.next();!g.done;g=E.next()){g=g.value.rules;
if(!g)break;g=_.G(g);for(Z=g.next();!Z.done;Z=g.next())if(Z=_.e(Z.value,UIc))return E=void 0,(E=Z.translations)==null?void 0:E.visibilityNotValidErrorMessage}};
jJc=function(){var h,E;return(E=(h=_.GF().resolve(_.pl(_.gu)))==null?void 0:h())!=null?E:!1};
dIJ=function(h){var E=21;if(!h)return E;E+=h.headerTitle?27:0;E+=h.headerTitle&&h.hasHeaderActionHeader?4:0;return E+=h.headerTitle&&h.headerSubtitle?16:0};
CvJ=function(h){var E=0;if(!h)return E;E+=h.hasFooterPrimaryButton||h.hasFooterSecondaryButton?48:0;E+=h.footerTrailingLabel||h.footerLeadingLabel?30:0;return E+=h.hasFooterPrimaryButton||h.hasFooterSecondaryButton||!h.footerTrailingLabel&&!h.footerLeadingLabel?0:12};
JUC=function(h){var E=new _.Jl,g=h;return{subscribe:function(Z){E.subscribe("changed",Z)},
dispatch:function(Z,M){var W=g;Z==="Touch Start"?g=Object.assign({},W,{isAnimating:!1,initialY:M.event.touches[0].clientY}):Z==="Touch Move"?(Z=Math.min(M.fullContentWrapperHeight,M.contentHeightMap[M.contentWrapperId]+dIJ(M.header)-CvJ(M.footer)),g=Object.assign({},W,{currentY:Math.max(M.contentScrollable?-1*(W.initialY-24):0,M.event.touches[0].clientY-W.initialY),maxHeightForContentWrapper:Math.min(Z,Math.max(0,(W.isFullScreen?Z:M.contentWrapperHeight)-W.currentY))})):g=Z==="Snap To Full Screen"?
Object.assign({},W,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:M.maxHeight}):Z==="Snap To Neutral Position"?Object.assign({},W,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):Z==="Close Sheet"?Object.assign({},W,{isAnimating:!0,currentY:M.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:M.maxHeight}):W;E.publish("changed",g)}}};
enC=function(h){return _.J7(function(E){h(E);return!1})};
qzX=function(){_.GF().resolve(_.hz).closeSheet()};
fdp=function(h){var E,g,Z,M,W,z,c,I,B,U,L;return{headerTitle:(E=h.headerTitle)==null?void 0:E.call(h),headerSubtitle:(g=h.headerSubtitle)==null?void 0:g.call(h),headerActionHeader:h.headerActionHeader,footerPrimaryButton:h.footerPrimaryButton,footerSecondaryButton:h.footerSecondaryButton,footerButtonType:(Z=h.footerButtonType)==null?void 0:Z.call(h),footerLeadingLabel:(M=h.footerLeadingLabel)==null?void 0:M.call(h),footerTrailingLabel:(W=h.footerTrailingLabel)==null?void 0:W.call(h),shouldShowIcons:(z=
h.shouldShowIcons)==null?void 0:z.call(h),skipContentClick:(c=h.skipContentClick)==null?void 0:c.call(h),additionalClassName:(I=h.additionalClassName)==null?void 0:I.call(h),onClosedCallback:h.onClosedCallback,focusOnClose:(B=h.focusOnClose)==null?void 0:B.call(h),isDisabled:(U=h.isDisabled)==null?void 0:U.call(h),disabledCommand:(L=h.disabledCommand)==null?void 0:L.call(h),headerFn:h.headerFn,contentFn:h.contentFn,footerFn:h.footerFn,hasHeaderFn:h.hasHeaderFn(),hasContentFn:h.hasContentFn(),hasFooterFn:h.hasFooterFn(),
hasFooterPrimaryButton:h.hasFooterPrimaryButton(),hasFooterSecondaryButton:h.hasFooterSecondaryButton(),hasHeaderActionHeader:h.hasHeaderActionHeader()}};
N5G=function(h){switch(h){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""}};
tvC=function(h){switch(h){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""}};
SzC=function(h){switch(h){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""}};
xIc=function(h,E,g){E.forEach(function(Z){_.KC(_.GF().resolve(_.gP),Z)});
_.BX(h,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",g])};
rUJ=function(h,E,g,Z){var M=_.e(g,_.Rx).commandLifeCycleConfig;M&&M.onStartCommand&&_.jj(h,[M.onStartCommand],E);_.sa(E);var W=_.bF.instance;W&&_.uF(W,g)?_.QQ(W,g,Z).then(function(z){if(!z||(z==null?0:z.error))return z=_.e(g,_.Rx).serializedTransactionFlowLoggingParams,_.VK(E),_.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",z));_.VK(E);return{data:z}}).then(function(z){_.VK(E);
w3Z(z.data);var c=z.data.command;c&&_.jj(h,[c],E);c=DIR(g,z.data);if(!c){var I=z.data;z=!1;if(I&&I.command&&_.e(I.command,_.CZ)){var B;I=((B=_.e(I.command,_.CZ))==null?void 0:B.commands)||[];for(B=0;B<I.length;B++)if(_.e(I[B],_.dyA)){z=!0;break}}z||_.gK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!c&&M&&M.onSuccessCommand?_.jj(h,[M.onSuccessCommand],E):c&&M&&M.onFailureCommand&&_.jj(h,[M.onFailureCommand],E)},function(){_.VK(E);
M&&M.onFailureCommand&&_.jj(h,[M.onFailureCommand],E);ldp(g)}):_.$W(Error("Rl"),"ERROR")};
mIp=function(h,E,g){var Z=[E];g&&Z.push(g);return _.LZ(h,Z).then(function(M){var W=_.e(E,_.Rx).serializedTransactionFlowLoggingParams,z=M.data,c=DIR(E,z);c?M=_.$B(new pa(c,W)):w3Z(z);return M},function(){var M=_.e(E,_.Rx).serializedTransactionFlowLoggingParams;
ldp(E);return _.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M))})};
DIR=function(h,E){h=_.e(h,_.Rx).serializedTransactionFlowLoggingParams;var g=null;switch(E.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":g="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":g="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":g="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}g?_.Wb(g,h):kyx(h);return g};
ldp=function(h){_.Wb("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.e(h,_.Rx).serializedTransactionFlowLoggingParams)};
w3Z=function(h){if(h.trackingParams){var E=_.sH(),g=_.YN();E&&g&&_.uw(E,g,_.rp(h.trackingParams))}};
vxJ=function(h,E,g){var Z=_.bF.instance,M=_.bBO(_.nF("YPC_MB_URL")),W=(new _.Aqz).init(),z=_.T0q(),c=_.e(g,_.BPf).languageCode;c===void 0?_.$W(Error("Oi"),"ERROR"):_.$D([W,M]).then(function(){var I={ctk:_.gE.payments.business.integration.ClientTokenFactory.createClientToken(c,z)};Z&&_.uF(Z,g)?_.QQ(Z,g,I).then(function(B){return{data:B}}).then(function(B){_.Ra(E,"yt-service-request-completed",B);
B.code!=="ERROR"&&(B=B.data.command)&&_.jj(h,[B],E)}):_.$W(Error("Rl"),"ERROR")})};
KzG=function(h,E,g,Z){var M=_.bF.instance;M&&_.uF(M,g)?_.QQ(M,g,Z).then(function(W){return{data:W}}).then(function(W){H4U(h,E,g,W)},function(){$IC(g)}):(M=_.GF().resolve(_.pl(_.kY)))&&M.requestDataForServiceEndpoint(g,Z).then(function(W){H4U(h,E,g,W)},function(){$IC(g)})};
H4U=function(h,E,g,Z){_.Ra(E,"yt-service-request-completed",Z);if(Z.code&&Z.code=="ERROR")$IC(g);else{(Z=Z.data.commands)&&_.jj(h,Z,E);var M;(h=(M=_.e(g,_.JgD))==null?void 0:M.serializedYpcPauseFlowLoggingParams)&&h&&_.j0("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",h)}};
$IC=function(h){var E;(h=(E=_.e(h,_.JgD))==null?void 0:E.serializedYpcPauseFlowLoggingParams)&&h&&_.j0("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",h,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
X3i=function(h,E,g){var Z=_.bF.instance;Z&&_.uF(Z,g)?_.QQ(Z,g).then(function(M){return{data:M}}).then(function(M){O4G(h,E,g,M)},function(){nxZ(g)}):(Z=_.GF().resolve(_.pl(_.kY)))&&Z.requestDataForServiceEndpoint(g).then(function(M){O4G(h,E,g,M)},function(){nxZ(g)})};
O4G=function(h,E,g,Z){_.Ra(E,"yt-service-request-completed",Z);Z.code&&Z.code=="ERROR"?nxZ(g):((Z=Z.data.commands)&&_.jj(h,Z,E),(h=_.e(g,_.e_D).serializedYpcResumeFlowLoggingParams)&&h&&_.j0("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",h))};
nxZ=function(h){(h=_.e(h,_.e_D).serializedYpcResumeFlowLoggingParams)&&h&&_.j0("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",h,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
YzZ=function(h){h=h===void 0?{}:h;_.GF().resolve(_.zVZ).showFeedbackDialog(h.customProductData,h.feedbackContent,h.onFeedbackSubmitted,h.bucket)};
sJX=function(h){h=h===void 0?{}:h;_.GF().resolve(_.zVZ).showHelpDialog(h.helpContext,h.articleId,h.productData)};
VvU=function(){sJX()};
kDZ=function(){YzZ()};
FzI=function(h,E,g){var Z,M,W,z,c,I,B;return _.a(function(U){switch(U.nextAddress){case 1:Z=_.e(h,yUp);if((M=Z)==null?0:M.productId){I={productId:Z.productId,bucket:Z.bucket,enableAnonymousFeedback:(c=Z.enableAnonymousFeedback)!=null?c:!0,allowNonLoggedInFeedback:!0};B={feedbackChoice:g.feedbackChoice};if(!_.J("web_collect_offline_state")){U.jumpTo(8);break}_.CX(U,9);return U.yield(EYR(B),11)}z={bucket:(W=Z)==null?void 0:W.bucket};if(!_.J("web_collect_offline_state")){U.jumpTo(4);break}z.customProductData=
{};_.CX(U,5);return U.yield(EYR(z.customProductData),7);case 7:_.bN(U,4);break;case 5:_.th(U);case 4:YzZ(z);U.jumpTo(0);break;case 11:_.bN(U,8);break;case 9:_.th(U);case 8:_.Hyq(B),_.vhu("GFEEDBACK",B),Z.productId==="5295751"&&(B.client_attestation=Number(_.nF("CATSTAT",0))),Z.productId==="5295751"&&(B.client_time=Date.now()/1E3/3600),Z.productId==="5295751"&&(B.original_playback_id=_.zEf||""),_.kbD(I,B),_.SK(U)}})};
AUU=function(h){if(h=_.e(h,_.A_$)){var E={bucket:h.bucketIdentifier};h.additionalDatas&&(E.customProductData={},h.additionalDatas.forEach(function(g){if(g=g.userFeedbackEndpointProductSpecificValueData)E.customProductData[g.key]=g.value}));
YzZ(E)}};
T5G=function(h){var E=_.Tq.getInstance();var g=_.NH("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var Z=_.NH("DELETE",void 0,"Delete"),M=_.NH("CANCEL",void 0,"Cancel");g=oeU(g,void 0,Z,M,{signal:"DELETE_ALL_DOWNLOADS"});_.bQ(E,[{openPopupAction:g}],h)};
u5U=function(){return _.a(function(h){return h.nextAddress==1?h.yield(_.GF().resolve(_.YO),2):h.yield(b4U(),0)})};
QJ0=function(h){var E,g;return _.a(function(Z){return Z.nextAddress==1?(g=(E=_.e(h,_.VX))==null?void 0:E.targetId)?Z.yield(_.GF().resolve(_.YO),3):Z.jumpTo(0):Z.yield(_.GF().resolve(_.XB).deleteVideo(g),0)})};
E7G=function(h){var E,g;return _.a(function(Z){return Z.nextAddress==1?(g=(E=_.e(h,_.VX))==null?void 0:E.targetId)?Z.yield(_.GF().resolve(_.YO),3):Z.jumpTo(0):Z.yield(hAZ(_.GF().resolve(_.XB),g),0)})};
ZuU=function(h){var E,g;return _.a(function(Z){return(g=(E=_.e(h,_.VX))==null?void 0:E.targetId)?Z.yield(g7J(g),0):Z.jumpTo(0)})};
WqJ=function(){_.J("kevlar_woffle_refresh_dl_load_killswitch")||MpG()};
GKU=function(){_.J("kevlar_woffle")&&_.Km.instance&&pgG()};
aqU=function(h){var E;if((E=_.e(h,_.JU))==null||!E.videoId)return!1;zAU(_.GF().resolve(_.XB),_.e(h,_.JU),h.clickTrackingParams);return!0};
iup=function(h){var E;if((E=_.e(h,_.ev))==null||!E.playlistId)return!1;cep(_.GF().resolve(_.XB),_.e(h,_.ev),h.clickTrackingParams);return!0};
IqG=function(h){var E=_.e(h,_.pZD);(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||o7X(_.GF().resolve(_.XB),_.e(h,_.pZD))};
P1J=function(h){h=_.e(h,_.H1m);var E;(h==null?0:(E=h.actions)==null?0:E.length)&&RAi(h)};
LqG=function(h){var E,g;return _.a(function(Z){E=_.e(h,BHX);return(g=E)!=null&&g.localWatchHistoryCommandType?Z.yield(UT0(E),0):Z.return()})};
jdJ=function(h){setTimeout(function(){requestAnimationFrame(h)},80)};
dTJ=function(h){return Object.entries(h).map(function(E){return E.join(":")}).join(";")};
JeR=function(h){var E,g,Z;_.a(function(M){if(M.nextAddress==1)return M.yield(C1c(),2);E=M.yieldResult;g=_.eQ.instance;switch(E){case "granted":Z=h.getLocationCommand;break;case "denied":Z=h.openDeniedDialogAction;break;case "prompt":Z=h.openCollectionDialogAction;break;default:Z=h.openCollectionDialogAction}Z&&g.resolveCommand(Z);_.SK(M)})};
C1c=function(){var h,E;return _.a(function(g){if(g.nextAddress==1)return h="prompt",navigator.permissions?g.yield(navigator.permissions.query({name:"geolocation"}),3):g.jumpTo(2);g.nextAddress!=2&&(E=g.yieldResult,h=E.state);return g.return(h)})};
qax=function(){_.a(function(h){return h.yield(_.eAc(),0)})};
fq0=function(){var h,E,g;return _.a(function(Z){if(Z.nextAddress==1)return h=_.GF().resolve(_.yV),h?Z.yield(_.QQ(h,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.O$(Error("Ul")),Z.return(void 0));if(E=Z.yieldResult){if(E.errorMetadata)return _.O$(Error("Vl`"+E.errorMetadata.status+"`"+E.error)),Z.return(void 0);g=E.datasyncIds;_.iDi=g.length;return Z.return(g)}_.O$(Error("Wl"));return Z.return(void 0)})};
NHG=function(){fq0().then(function(h){h&&(xHC(h),FM0(h),dwU(h),MlX(h))})};
tpp=function(h){_.KP.addLowPriorityJob(function(){var E,g,Z,M,W;return _.a(function(z){switch(z.nextAddress){case 1:if(_.J("ytidb_clear_optimizations_killswitch")){z.jumpTo(2);break}E=_.tl("clear");if(E.startsWith("V")&&E.endsWith("||")){var c=[E];xHC(c);FM0(c);dwU(c);MlX(c);return z.return()}g=CVc();Z=WbC();return z.yield(AjC(),3);case 3:return M=z.yieldResult,z.yield(wXC(),4);case 4:if(W=z.yieldResult,!(g||Z||M||W))return z.return();case 2:h.isNetworkAvailable()?NHG():h.listenOnce("publicytnetworkstatus-online",
NHG),_.SK(z)}})})};
GE=function(h){h={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.MR(h)}}}};_.eQ.instance&&_.eQ.instance.resolveCommand(h)};
SaC=function(h){if(h){var E=_.SQ();_.mw(E,3854,void 0,{layer:0,parentLayer:4});switch(h){case 1:var g=238708;break;case 2:g=238715;break;case 3:g=238710;break;case 6:g=238709}g&&(h=_.tW(E,{veType:g}))&&_.$T(E,h)}};
xTI=function(h){if(h){var E=_.SQ();_.mw(E,3854,void 0,{layer:0,parentLayer:4});switch(h){case 1:var g=238714;break;case 2:g=238711;break;case 8:g=238709;break;case 7:g=238713;break;case 3:case 4:case 5:g=238712}g&&(h=_.tW(E,{veType:g}))&&_.$T(E,h)}};
wgC=function(h){switch(h.latencyType){case 0:_.Ye("consent_primitive_flow");_.s7("cpit",h.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.s7("cpist",h.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.s7("cprtif",h.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.s7("cprtli",h.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.s7("cprt",h.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.s7("cpdt",h.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.s7("cpjct",h.timestampEpochMillis,"consent_primitive_flow")}};
n7i=function(h,E){var g,Z,M,W,z,c,I,B,U,L,d,C,q,w,r,v,H,u,k,y;return _.a(function(A){switch(A.nextAddress){case 1:_.CX(A,2);(Z=(g=_.e(h,DTU))==null?void 0:g.serializedConsentRequest)||(Z=(M=_.e(h,lqU))==null?void 0:M.serializedConsentRequest);Z&&(W=rei(_.Qx(Z)));if(W===void 0)return A.return();z=mTG(W);z.latencyCallback=wgC;E&&v7x(z,function(){E.then(function(E4){E4.pauseVideo();(new Hup).increment()})});
return((c=_.e(h,DTU))==null?void 0:c.consentAction)==="CONSENT_ACTION_PREWARM"||((I=_.e(h,lqU))==null?void 0:I.consentAction)==="CONSENT_ACTION_PREWARM"?A.yield($Tp(z),5):A.yield(KqI(z),6);case 6:B=A.yieldResult;U=_.ts(B,zE);if(U===1){if(((L=_.KW(B,aB,1,zE))==null?void 0:_.vW(L,1))===1||((d=_.KW(B,aB,1,zE))==null?void 0:_.vW(d,1))===2||((C=_.KW(B,aB,1,zE))==null?void 0:_.vW(C,1))===3)_.e(h,lqU)?GE(_.NH("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
GE(_.NH("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));SaC((q=_.KW(B,aB,1,zE))==null?void 0:_.vW(q,1),_.aD(B,OuI,3,_.ch()))}else U===2?(((w=co(B))==null?void 0:_.vW(w,1))===5?_.e(h,lqU)?GE(_.NH("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):GE(_.NH("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((r=co(B))==null?void 0:_.vW(r,1))===1||((v=co(B))==null?void 0:_.vW(v,1))===4?GE(_.NH("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((H=co(B))==null?void 0:_.vW(H,1))===7&&((u=W)==null?void 0:(k=_.iK(u,i9,4))==null?void 0:_.vW(k,4))!==1&&GE(_.NH("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),xTI((y=co(B))==null?void 0:_.vW(y,1))):GE(_.NH("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));A.jumpTo(5);break;case 5:_.bN(A,0);break;case 2:_.th(A),GE(_.NH("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.SK(A)}})};
Yax=function(){if(!XgX.has("Worker")){XgX.set("Worker",!0);var h={api:"BROWSER_API_WEB_WORKER"};h.available="Worker"in window?!0:!1;_.vT("apiTest",h)}};
sdC=function(h){return typeof h==="undefined"?"-1":String(Math.ceil(h/1048576))};
FqC=function(h,E){VpG(new kKJ(_.e(E,yeC).addToken,_.e(E,yeC).commonToken)).then(function(){_.Ra(h,"yt-invoke-instrument-manager-action-completed")},function(g){_.Ra(h,"yt-invoke-instrument-manager-action-error",g)})};
AeU=function(){var h,E;return(E=(h=window).matchMedia)==null?void 0:E.call(h,"(prefers-reduced-motion: reduce)").matches};
THR=function(h){var E=_.GF().resolve(_.pl(_.Vr));if(E&&E.isAnyTransitionEnabled){var g={};E.viewTransitionCoordinator.registerElement(h,(g.slide="miniplayer-page-transition",g["lockup-to-watch"]="miniplayer-page-transition",g["learning-journey"]="miniplayer-page-transition",g))}};
buG=function(h,E,g){return{horizontalAlignment:h.x+g.width/2<E.width/2?"west":"east",verticalAlignment:h.y+g.height/2<E.height/2?"north":"south"}};
Qdi=function(h,E,g,Z,M){M=M===void 0?new _.nt(0,0):M;h=uDJ(h,E,g,Z);return new _.nt(h.x+M.x,h.y+M.y)};
uDJ=function(h,E,g,Z){return new _.nt(h==="west"?16:g.width-Z.width-16,E==="north"?16:g.height-Z.height-16)};
h1J=function(h,E){var g=0;h&&(g+=76);E&&(g+=285);return g};
EuU=function(h){return _.sK(h)};
guG=function(h){var E=1;h=h.split(":");for(var g=[];E>0&&h.length;)g.push(h.shift()),E--;h.length&&g.push(h.join(":"));return g};
Z$C=function(h){var E=new _.JO;return _.OK(E,11,h)};
M6x=function(h){var E={};h=h.getAllResponseHeaders().split("\r\n");for(var g=0;g<h.length;g++)if(!_.ca(h[g])){var Z=guG(h[g]),M=Z[0];Z=Z[1];if(typeof Z==="string"){Z=Z.trim();var W=E[M]||[];E[M]=W;W.push(Z)}}return _.Kt.map(E,function(z){return z.join(", ")})};
id=function(h,E){return h.JSC$9797_xhr_?h.JSC$9797_xhr_.getResponseHeader(E):null};
WyG=function(h,E){if(h.isDisposed())throw Error("Ea");h.jy.dV("n");var g=_.kD(h.jy,function(){return h.h8G([E.bS,E.sPC,E.nwe,E.t6S])},"n");
h.jy.hUz(g.length);h.jy.gH();return g};
oB=function(h,E,g){Array.isArray(g)||(g=[String(g)]);_.BXD(h.JSC$10033_queryData_,E,g);return h};
pgG=function(){var h=_.Km.instance;_.a(function(E){return h.deferredInstallPrompt?E.yield(h.deferredInstallPrompt.prompt(),0):E.jumpTo(0)})};
pwG=function(h,E,g){if(_.s4(h))_.Tt(h,E,g);else for(h=_.f_l(h);;){var Z=h.next();if(Z.done)break;E.call(g,Z.value,void 0,h)}};
G5X=function(h,E){var g=[];pwG(E,function(Z){try{var M=_.UH.prototype.getWrapper.call(this,Z,!0)}catch(W){if(W=="Storage: Invalid value was encountered")return;throw W;}M===void 0?g.push(Z):_.qvm(M)&&g.push(Z)},h);
return g};
GyU=function(h,E){G5X(h,E).forEach(function(g){_.UH.prototype.remove.call(this,g)},h)};
z1U=function(h){var E=_.Gg;E._minimumZ=Math.max(E._minimumZ,h)};
atU=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];cNp=function(h,E){_.p8(h.vm);h.vm=E};
i$i=function(h,E,g,Z){h.setState(5);var M=!!h.eWH&&atU.includes(_.gf(h.eWH)||"");try{var W=new _.yP({program:E,globalName:g,vCS:{disable:!_.J("att_web_record_metrics")||!_.J("att_skip_metrics_for_cookieless_domains_ks")&&M,n3:"aGIf"}});W.cuq.then(function(){h.setState(6);Z&&Z(E)});
cNp(h,W)}catch(z){h.setState(7),z instanceof Error&&_.O$(z)}};
ouU=function(h,E,g,Z,M,W){var z=z===void 0?"trayride":z;g?(h.setState(2),_.bC(_.rO(g),function(){if(window[z])i$i(h,Z,z,M);else{h.setState(3);var c=_.Poz(g),I=document.getElementById(c);I&&(_.zzM(c),I.parentNode.removeChild(I));_.O$(new _.xX("BL:ULB",g))}},W)):E?(W=_.q3("SCRIPT"),E instanceof _.ZT?_.WA(W,E):W.textContent=E,W.nonce=_.gx(document),document.head.appendChild(W),document.head.removeChild(W),window[z]?i$i(h,Z,z,M):(h.setState(4),_.O$(new _.xX("BL:ULBJ")))):_.O$(new _.xX("BL:ULV"))};
ItZ=function(){this.state=1;this.vm=null;this.eWH=void 0};
_.p=ItZ.prototype;_.p.initialize=function(h,E,g,Z){this.eWH=Z;if(h.program){var M;Z=(M=h.interpreterUrl)!=null?M:null;if(h.interpreterSafeScript)M=_.wbZ(h.interpreterSafeScript);else{var W;M=(W=h.interpreterScript)!=null?W:null}h.interpreterSafeUrl&&(Z=_.OY(h.interpreterSafeUrl).toString());ouU(this,M,Z,h.program,E,g)}else _.O$(Error("rf"))};
_.p.isInitialized=function(){return!!this.vm};
_.p.getState=function(){return this.state};
_.p.isLoading=function(){return this.state===2};
_.p.invoke=function(h){h=h===void 0?{}:h;var E;this.vm?E=WyG(this.vm,{bS:h}):E=null;return E};
_.p.dispose=function(){cNp(this,null);this.setState(8)};
_.p.setState=function(h){this.state=h};
var R1c=function(h,E){return h.vm.snapshot(E)},Pzi=function(h,E){var g=_.cx("botguard_async_snapshot_timeout_ms",3E3);
E=E===void 0?{}:E;g=g===void 0?3E3:g;return h.vm?new Promise(function(Z,M){var W=!1,z=_.KP.addJob(function(){W=!0;M(Error("sf"))},1,g);
h.vm?R1c(h,{bS:E}).then(function(c){_.KP.cancelJob(z);W||Z(c)}).catch(function(c){_.KP.cancelJob(z);
W||M(c)}):(_.KP.cancelJob(z),Z(null))}):Promise.resolve(null)},BEp=["att/log"],p3C;
p3C={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var UhG={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},LyC=function(h,E){return _.SD(h,{mode:"readwrite",enableRetries:!0},function(g){return _.kgu(g,E,"settingEntity")})},jeJ=function(h,E,g){return _.SD(h,{mode:"readonly",
enableRetries:!0},function(Z){return _.kiD(Z,E,g)})},dhc=function(h){if(!h.storage)return!1;
a:{if(h.storage){try{var E=h.storage.get("TLPQtimestamp")}catch(g){}h=Number(E);if(!isNaN(h))break a}h=void 0}return h?Date.now()-h<864E5:!1},Czc=function(h){if(h.storage){try{var E=h.storage.get("TLPQindex")}catch(g){}h=Number(E);
if(!isNaN(h))return h}},JNJ=function(h,E){h.queueProxy&&E.forEach(function(g){if(g.videoId&&g.trackingParams&&h.queueProxy instanceof _.aS){var Z=_.sH();
h.queueProxy.attributionData.set(g.videoId,{enqueueingVe:_.rp(g.trackingParams).getAsJson(),enqueueingCsn:Z?Z:void 0,clientEnqueueingTimeMs:Math.floor((0,_.zn)()).toString()})}})},e1G=function(h){var E=_.Nwk(h);
E!=h.currentSnapState_&&(h.currentSnapState_=E,h.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},IB=function(h){this.JSC$13169_networkManager_=h;
this.partCallbacks_=[]};
IB.prototype.getCacheKeyForEndpoint=function(h){return _.$9x(h,!1)};
IB.prototype.onPartsCallback_=function(h){this.partCallbacks_.forEach(function(E){h&&E(h)})};
var RB=function(h,E,g){IB.call(this,h);this.player_=E;this.autoplayData_=g};
_.f(RB,IB);RB.prototype.getCacheKeyForEndpoint=function(h){return _.$9x(h,!!this.autoplayData_)};
RB.prototype.getTempData=function(h,E){E=E.timeBeforeNextVideo;h={itct:h.clickTrackingParams,lact:_.zq(),pbis:E,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(h.autonav=1);return h};
RB.prototype.getXhrParams=function(h){return Object.assign({pbj:"prefetch"},h)};
RB.prototype.getParams=function(h){h={frags:h.fragmentsRequested.join(",")};_.J("kevlar_droppable_prefetchable_requests")&&(h.prefetch=1);return h};
var qcx=function(h){h.playerEvents_.forEach(function(E){h.player.removeEventListener(E.eventName,E.callback)});
h.playerEvents_.length=0},Po=function(h,E,g){this.player=h;
this.JSC$13179_taskManager=E;this.prefetchDelay=g;this.completionResolver_=null;this.playerEvents_=[]};
Po.prototype.start=function(){var h=this;this.completionResolver_=_.hU();_.KA(this.completionResolver_.promise,function(){qcx(h);h.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ftc=function(h,E,g){h.player.addEventListener(E,g);h.playerEvents_.push({eventName:E,callback:g})},NEI={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},t6G={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},ScU=function(h,E,g){Po.call(this,h,E,g);this.cueId_="playbackTrigger-"+Math.random()};
_.f(ScU,Po);
ScU.prototype.prepareTrigger=function(h){var E=this,g=this.player.getDuration(),Z=this.player.getVideoData(),M=Z.isLive&&Z.hasProgressBarBoundaries;if(M&&Z.progressBarEndPositionUtcTimeMillis){var W=Z.progressBarEndPositionUtcTimeMillis/1E3;isNaN(W)||(g=W)}var z=0;this.prefetchDelay>=0?M?Z.progressBarStartPositionUtcTimeMillis&&(Z=Z.progressBarStartPositionUtcTimeMillis/1E3,isNaN(Z)||(z=Z+this.prefetchDelay)):z=this.prefetchDelay:z=g+this.prefetchDelay;M?this.player.addUtcCueRange(this.cueId_,z,g):
this.player.addCueRange(this.cueId_,z,g);_.KA(h.promise,function(){E.player.removeCueRange(E.cueId_)});
ftc(this,"onCueRangeEnter",function(c){c==E.cueId_&&h.resolve(g-z)})};
var xhp=function(h,E){h.fragmentConfiguration_[E].requiredKeys.every(function(g){return!!h.prefetchedData_[g]})&&(h.validatedFragments_.push(E),E=h.missingFragments_.indexOf(E),E!==-1&&h.missingFragments_.splice(E,1))},wwi=function(h){h.prefetchedFragments_.forEach(function(E){xhp(h,E)})},DhJ=function(h,E,g){this.pageFragments_=h;
this.prefetchedFragments_=E;this.fragmentConfiguration_=t6G;this.prefetchedData_=g;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;wwi(this)},ltp=function(){},rNJ=function(h){this.JSC$13193_playlistManager_=h};
_.f(rNJ,ltp);rNJ.prototype.getPrefetchEndpoint=function(){return this.JSC$13193_playlistManager_.getAutoplayEndpoint()};
var mh0=function(h){this.autonavEndpoints_=h};
_.f(mh0,ltp);mh0.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var vuC=function(h,E,g,Z,M){this.autonavEndpoints=h;this.foregroundTrigger=E;this.backgroundTrigger=g;this.pageType=Z;this.isInPlaylist=M},H$X=function(h,E){if(h.webPrefetchData&&h.webPrefetchData.navigationEndpoints&&h.webPrefetchData.navigationEndpoints.length){h=h.webPrefetchData.navigationEndpoints;
var g=_.e(h[0],_.MH);if(g.watchEndpointSupportedPrefetchConfig&&g.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var Z=g.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;g=Z.playbackRelativeSecondsPrefetchCondition;g=typeof g==="number"&&Math.abs(g)<E.videoDuration?g:void 0;Z=Z.countdownUiRelativeSecondsPrefetchCondition;Z=typeof Z!=="number"||_.J("prefetch_job_config_cleanup_ks")&&E.inPlaylist?void 0:Z;if(typeof Z==="number")return new vuC(h,E.makeUpNextTrigger(Z),E.makePlaybackTrigger(Z),
"watch",E.inPlaylist);if(typeof g==="number")return new vuC(h,E.makePlaybackTrigger(g),null,"watch",E.inPlaylist)}}},$hX=function(h){return h.prefetchJobConfig_.backgroundTrigger?_.k3(_.oJq)()==0?h.prefetchJobConfig_.backgroundTrigger:h.prefetchJobConfig_.foregroundTrigger:h.prefetchJobConfig_.foregroundTrigger},KyI=function(h){_.r6(document,"visibilitychange",h.onVisibilityChange_,!1,h)},Bo=function(h){IB.call(this,h)};
_.f(Bo,IB);Bo.prototype.getCacheKeyForEndpoint=function(h){return IB.prototype.getCacheKeyForEndpoint.call(this,h)};
Bo.prototype.getTempData=function(){return{}};
Bo.prototype.getXhrParams=function(h){return h};
Bo.prototype.getParams=function(){return{}};
var O$Z=function(h,E,g){var Z=h.prefetchDelay*1E3;if(Math.abs(Z)>E)g.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var M=Z,W=E-Z;Z<0&&(M=E+Z,W=Math.abs(Z));var z=h.JSC$13179_taskManager.addJob(function(){g.resolve(W/1E3)},10,M);
g.promise.thenCatch(function(){h.JSC$13179_taskManager.cancelJob(z)})}},nuR=function(h,E,g){Po.call(this,h,E,g)};
_.f(nuR,Po);nuR.prototype.prepareTrigger=function(h){var E=this;ftc(this,"onAutonavCoundownStarted",function(g){O$Z(E,g,h)})};
var Xwx=function(h){h.pendingPrefetchJob_&&(h.pendingPrefetchJob_.cancel(),h.pendingPrefetchJob_=null)},YcR=function(h,E,g){if(!h.triggeredTargets.has(E)){var Z=_.LWM(h,E);
Z.action=g;_.B8A(h,E,Z)}},seR=function(h){_.MTl();
_.fUu("cpt")&&_.O$(Error("rh"));_.MN.requestAnimationFrame(function(){_.MN.setTimeout(function(){_.s7("cpt");var E=_.yp("vpl"),g=_.yp("cpt");E&&g&&_.s7("ol",Math.max(E,g))})});
try{_.s7("fr_s"),h()}catch(E){_.$W(E)}_.MN.requestAnimationFrame(function(){_.s7("bcp")})},V6I=function(h,E){h.serviceEndpointHandlers.push(E)},k5c=function(h,E){E=h.pendingPages_.indexOf(E);
E>-1&&h.pendingPages_.splice(E,1)},yNx=function(h,E){var g=_.tkl.indexOf(E);
g>-1&&_.tkl.splice(g,1);h.targetPage_==E?(h.abort(),_.xff(h)):k5c(h,E)},FyX=function(h,E,g,Z){E={challenge:E};
g&&(E.webResponse=g);return _.ic(h.innertubeTransportService,E,_.zv(BEp),Z)},ANG=function(h,E,g){if(!E.challenge)throw Error("wi");
if(E.botguardData&&E.botguardData.program){var Z=new ItZ;Z.initialize(E.botguardData,function(){Pzi(Z,{atr_challenge:E.challenge}).then(function(M){if(!M)throw Error("xi");return FyX(h,E.challenge,M,g)}).catch(function(M){_.O$(M);
return FyX(h,E.challenge,void 0,g)})},void 0)}else FyX(h,E.challenge,void 0,g)},TEU=function(h,E,g){var Z={};
E.ids&&(Z.ids=[].concat(_.$E(E.ids)));E.engagementType&&(Z.engagementType=E.engagementType);return _.ic(h.innertubeTransportService,Z,_.zv(_.zsl),g).then(function(M){if(!M)throw new _.xX("GetAttestationChallenge returned falsy");ANG(h,M,g)}).thenCatch(function(M){_.$W(M)})},b$G=function(h,E,g){return new _.jM(function(Z,M){var W;
return _.a(function(z){if(z.nextAddress==1){var c=z.yield,I=E.engagementType,B=E.ids,U={};B=_.G(B!=null?B:[]);for(var L=B.next();!L.done;L=B.next())L=L.value,L.encryptedVideoId?U.encryptedVideoId=L.encryptedVideoId:L.externalChannelId?U.externalChannelId=L.externalChannelId:L.commentId?U.commentId=L.commentId:L.externalOwnerId?U.externalOwnerId=L.externalOwnerId:L.artistId?U.artistId=L.artistId:L.playlistId?U.playlistId=L.playlistId:L.externalPostId?U.externalPostId=L.externalPostId:L.shareId&&(U.shareId=
L.shareId);return c.call(z,iZJ(I,U),2)}W=z.yieldResult;if(!W.challenge)return _.O$(Error("yi")),TEU(h,E,g).then(Z,M),z.return();c=W;I={challenge:c.challenge};I.webResponse=c.webResponse;I.engagementType=E.engagementType;I.ids=E.ids;_.ic(h.innertubeTransportService,I,_.zv(BEp),g).then(Z,M);_.SK(z)})})},r7X=function(h,E){var g,Z,M,W;
_.a(function(z){if(z.nextAddress==1){g=_.e(E,_.jbM);if(!(g&&g.listId&&h.response&&h.response.playingVideoId)||h.listId!==g.listId)return z.return();h.index===void 0&&(h.index=0);return z.yield(_.Sbl(h.JSC$12926_playlistNetworkManager,g.listId,h.index,h.response.playingVideoId),2)}Z=z.yieldResult;if(!Z)return z.return();M=Z.playlistId;W=Z.playlistPanelRenderer;h.setPlaylistData(M,W,Z.autoplayRenderer);_.SK(z)})},umU=function(h,E,g){var Z=h.getParams(g),M=_.O4W(E,Z),W=h.getTempData(E,g);
W.endpoint=JSON.stringify(E);_.J("enable_unknown_lact_fix_on_html5")&&(_.GF().resolve(_.DC),W.lact=_.zq());var z={headers:{"X-YouTube-STS":_.nF("STS"),"x-youtube-csoc":1}};_.zG(M,W);return new _.jM(function(c,I){var B=h.getXhrParams(Z),U;_.J("kevlar_cache_on_ttl_player")&&(U=_.Fp.instance);U&&_.Auf(U,E)?_.ZjC(U,E,W,window.location.href).then(function(L){L?c(L):I()},I):_.eDf(h.JSC$13169_networkManager_,E,B,h.onPartsCallback_.bind(h),z).then(function(L){L?c(L):I()},I)})},QeZ=function(h,E){h.triggerPromise_=
E.start();
h.triggerPromise_.then(function(g){var Z=h.prefetchEndpointProvider_.getPrefetchEndpoint();if(Z){var M=NEI[h.prefetchJobConfig_.pageType].prefetchedFragments;h.prefetchRequestPromise_=umU(h.JSC$13205_networkPrefetchRequest_,Z,{fragmentsRequested:M,timeBeforeNextVideo:g});h.prefetchResponseCacheKey_=h.JSC$13205_networkPrefetchRequest_.getCacheKeyForEndpoint(Z);KyI(h);h.prefetchRequestPromise_.then(function(W){h.storePrefetchedDataCallback_(h.prefetchResponseCacheKey_,W);if(_.J("web_prefetch_preload_video")&&
M.length===1&&M[0]==="pl"&&W&&!W.playerAds&&!W.adPlacements){var z=_.e(Z,_.D9),c=z!=null,I={raw_player_response:W,watch_endpoint:z};(W=_.GF().resolve(c?_.i7m:_.IJ))&&Z&&W.then(function(B){c&&_.J("web_queue_preload_video")?(I.prefer_gapless=!0,B.queueNextVideo(I)):B.preloadVideoByPlayerVars(I)})}})}})},Ul=function(h,E,g,Z){this.prefetchEndpointProvider_=h;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=E;this.prefetchJobConfig_=g;this.JSC$13205_networkPrefetchRequest_=Z;this.prefetchResponseCacheKey_=null};
Ul.prototype.enqueue=function(){this.triggerPromise_||(QeZ(this,$hX(this)),_.vK(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
Ul.prototype.resolve=function(){this.cancel()};
Ul.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.");KyI(this)};
Ul.prototype.onVisibilityChange_=function(){var h=this;_.k3(_.oJq)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){h.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||QeZ(this,$hX(this))};
var h3G=function(h,E,g,Z,M){E&&(E==null?0:E.videoId)&&g&&g.entries&&_.J("kevlar_enable_shorts_prefetch_in_sequence")&&(Xwx(h),E=g.entries.map(function(W){var z;return(z=_.e(W.command,_.D9))==null?void 0:z.videoId}).indexOf(E.videoId),g=g.entries[E+1],g!=null&&g.command&&!_.e(g==null?void 0:g.command,_.Wt)&&(Z=new vuC([g.command],new ScU(Z,_.KP,1),null,"shorts",!1),h.pendingPrefetchJob_=new Ul(new mh0(Z.autonavEndpoints),function(){return!1},Z,new Bo(M)),h.pendingPrefetchJob_.enqueue()))},Egp=function(h,
E,g,Z,M,W){var z=_.q8.getInstance();
if(!_.J("block_all_player_prefetch_requests")){Xwx(h);var c=!!g.getPlaylistId(),I=g.getVideoData().isLive&&g.getVideoData().hasProgressBarBoundaries;if((z.getState()==2||c||I)&&(!g.getVideoData().isLive||I)){z={inPlaylist:c,videoDuration:g.getDuration(),makeUpNextTrigger:function(U){return new nuR(g,_.KP,U)},
makePlaybackTrigger:function(U){return new ScU(g,_.KP,U)}};
var B=H$X(E,z);B&&(h.pendingPrefetchJob_=new Ul(B.isInPlaylist?new rNJ(M):new mh0(B.autonavEndpoints),function(U,L){L=new DhJ(NEI[B.pageType].pageFragments,NEI[B.pageType].prefetchedFragments,L);return _.GSD(L)?(h.prefetchCache_.set(U,L),!0):!1},B,new RB(Z,g,W,M)),h.pendingPrefetchJob_.enqueue())}}},ggR=function(){var h=_.Uk();
h.signals.parkOrScheduleJob(function(){var E=h.storage;if(E.storage)if(dhc(E)){var g=E.getPlaylistId();E=Czc(E);g=!!g&&E!==void 0}else E.clear(),g=!1;else g=!1;if(g){g=h.pageManager.isOnWatch();a:{var Z=h.storage;if(Z.storage&&dhc(Z)&&(E=Z.getPlaylistId(),Z=Czc(Z),E&&Z!==void 0)){g={recoverPlaylistCommand:{listId:E,index:Z,openMiniplayer:!g,openListPanel:g,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}g=void 0}g&&_.bQ(h.JSC$12926_actionRouter,[g],null)}},0,"ma")},ZWi=function(h,E,g,Z,M,W){var z=
_.Uz(7111);
_.vt(h.JSC$18320_screenManager,z,W?_.rp(W):void 0);_.$T(h.JSC$18320_screenManager,z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:Z,offlineId:E,offlineabilityFormatType:g,isDefaultFormatType:M==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:M}})},MP0=function(h,E,g,Z,M){var W,z,c,I,B;
return _.a(function(U){if(U.nextAddress==1)return U.yield(h.JSC$18320_playerApiPromise,2);W=U.yieldResult;ZWi(h,E,g,"OFFLINE_OBJECT_TYPE_PLAYLIST",Z,M);if(c=_.Q_l[h.entityTypeMap.listEntityType])B={},z=(B[c]={maximumDownloadQuality:(I=g)!=null?I:void 0},B);return U.yield(W.queueOfflineAction(E,h.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",z),0)})},Wjc=function(h,E){var g,Z,M,W;
return _.a(function(z){if(z.nextAddress==1)return z.yield(h.JSC$18320_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){g=z.yieldResult;if(!g)return _.O$(new _.xX("PES is undefined")),z.return();Z=_.jD(E,"downloadStatusEntity");return z.yield(jeJ(g,Z,"downloadStatusEntity"),3)}M=z.yieldResult;return z.return((W=M)==null?void 0:W.downloadState)})},pWC=function(h,E,g,Z,M){var W,z,c,I,B,U;
return _.a(function(L){switch(L.nextAddress){case 1:return L.yield(h.JSC$18320_playerApiPromise,2);case 2:W=L.yieldResult;ZWi(h,E,g,"OFFLINE_OBJECT_TYPE_VIDEO",Z,M);if(c=_.Q_l[h.entityTypeMap.singleEntityType])B={},z=(B[c]={maximumDownloadQuality:(I=g)!=null?I:void 0},B);return L.yield(Wjc(h,E),3);case 3:U=L.yieldResult;if(U!=="DOWNLOAD_STATE_USER_DELETED"){L.jumpTo(4);break}return L.yield(h.deleteVideo(E),4);case 4:return L.yield(W.queueOfflineAction(E,h.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
z),0)}})},GZJ=function(h,E,g,Z,M){return _.a(function(W){return W.nextAddress==1?W.yield(h.deleteVideo(E,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):W.yield(pWC(h,E,g,Z,M),0)})},z3U=function(h,E,g){var Z,M;
return _.a(function(W){if(W.nextAddress==1)return W.yield(h.JSC$18320_playerApiPromise,2);Z=W.yieldResult;M=_.jD(E,"mainVideoDownloadStateEntity");return W.yield(Z.updateDownloadState(M,g),0)})},g7J=function(h){var E=_.GF().resolve(_.XB);
return _.a(function(g){if(g.nextAddress==1)return E.previousDownloadStateForVideo[h]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&E.previousDownloadStateForVideo[h]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?g.jumpTo(2):g.yield(E.resumeVideoDownload(h),2);if(g.nextAddress!=4)return g.yield(z3U(E,h,E.previousDownloadStateForVideo[h]),4);delete E.previousDownloadStateForVideo[h];_.SK(g)})},hAZ=function(h,E){var g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$18320_playerApiPromise,2);g=Z.yieldResult;return Z.yield(g.queueOfflineAction(E,h.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},b4U=function(){var h=_.GF().resolve(_.XB),E,g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$18320_playerApiPromise,2);if(Z.nextAddress!=3)return E=Z.yieldResult,g={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},Z.yield(E.queueOfflineAction("!*$_ALL_ENTITIES_!*$",h.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),3);var M=h.JSC$18320_commandHandler,W=M.resolveCommand,z=_.NH("DELETING_ALL",void 0,"Downloads are being deleted");W.call(M,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iV(z)}},
popupType:"TOAST"}});_.SK(Z)})},aWI=function(h,E){var g,Z,M,W,z,c;
return _.a(function(I){if(I.nextAddress==1)return I.yield(h.JSC$18320_persistentStorePromiseAccessor(),2);if(I.nextAddress!=3)return g=I.yieldResult,g?I.yield(jeJ(g,_.$8,"downloadsPageViewConfigurationEntity"),3):(_.O$(new _.xX("PES is undefined")),I.return());M=(Z=I.yieldResult)!=null?Z:{};c=(z=(W=M)==null?void 0:W.downloadsUpsellBannerVisibility)!=null?z:{};return c.visibleWithConnection?I.yield(E.refreshAllStaleEntities(0),0):I.jumpTo(0)})},csI=function(h){var E,g;
return _.a(function(Z){if(Z.nextAddress==1)return Z.yield(h.JSC$18320_prefStorage,2);E=Z.yieldResult;return Z.return((g=E)==null?void 0:g.get("sdois"))})},iWi=function(h){var E,g,Z,M,W,z;
return _.a(function(c){if(c.nextAddress==1)return c.yield(h.JSC$18320_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){E=c.yieldResult;if(!E)return _.O$(new _.xX("PES is undefined")),c.return();g=_.jD("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return c.yield(jeJ(E,g,"settingEntity"),3)}Z=c.yieldResult;return c.return((z=(M=Z)==null?void 0:(W=M.settingOptionValue)==null?void 0:W.boolValue)!=null?z:!1)})},ogU=function(h,E){var g,Z,M,W;
return _.a(function(z){switch(z.nextAddress){case 1:return((g=E)==null?void 0:g.formatType)===void 0?z.return():z.yield(h.JSC$18320_prefStorage,2);case 2:Z=z.yieldResult;if(Z===void 0)return z.return();if(((M=E)==null?void 0:M.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return z.yield(Z.set("lmqf",E.formatType),8);if(((W=E)==null?void 0:W.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){z.jumpTo(0);break}return z.yield(Z.set("lmqf",E.formatType),6);case 6:return z.yield(Z.set("lmqflst",
Math.floor((0,_.zn)())),0);case 8:return z.yield(Z.remove("lmqflst"),0)}})},IWR=function(h){var E,g;
return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(h.JSC$18320_prefStorage,2);case 2:E=Z.yieldResult;if(!E){Z.jumpTo(3);break}return Z.yield(E.get("lmqflst"),4);case 4:if(g=Z.yieldResult,g!==void 0)return Z.return(g);case 3:return Z.return(0)}})},R3p=function(h){var E,g;
return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(h.JSC$18320_prefStorage,2);case 2:E=Z.yieldResult;if(E===void 0){Z.jumpTo(3);break}return Z.yield(E.get("lmqf"),4);case 4:if(g=Z.yieldResult,g!==void 0)return Z.return(g);case 3:return Z.return("SD")}})},cep=function(h,E,g){var Z,M,W,z,c,I,B,U;
_.a(function(L){switch(L.nextAddress){case 1:return L.yield(ogU(h,(Z=E)==null?void 0:Z.actionParams),2);case 2:M=E.playlistId;if(!M)return L.return();if(E.action==="ACTION_ADD")return((z=E.actionParams)==null?0:z.formatType)?L.yield(MP0(h,M,E.actionParams.formatType,(U=E.actionParams)==null?void 0:U.settingsAction,g),0):L.yield(h.offlineWebClientEligibility,14);if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var d=h.JSC$18320_commandHandler,C=d.resolveCommand,q=_.nF("INNERTUBE_CLIENT_NAME");var w=q===
"WEB_REMIX"?_.NH("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.NH("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var r=q==="WEB_REMIX"?[_.NH("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];q=q==="WEB_REMIX"?_.NH("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.NH("DELETE",void 0,"Delete");var v=_.NH("CANCEL",void 0,"Cancel");w=oeU(w,r,q,v,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:M});C.call(d,{openPopupAction:w});return L.return()}if(E.action===
"ACTION_REMOVE")return L.yield(hAZ(h,M),0);if(E.action!=="ACTION_SYNC"){L.jumpTo(0);break}return L.yield(h.JSC$18320_playerApiPromise,9);case 9:return W=L.yieldResult,L.yield(W.queueOfflineAction(M,h.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return c=L.yieldResult,L.yield(R3p(h),15);case 15:return I=L.yieldResult,L.yield(IWR(h),16);case 16:B=L.yieldResult,E.onAddCommand&&h.JSC$18320_commandHandler.resolveCommand(E.onAddCommand,{form:{preferredFormatType:I,
offlineWebClientEligibility:c,lastOfflineQualitySettingsSavedMs:B.toString()}}),L.jumpTo(0)}})},zAU=function(h,E,g){var Z,M,W,z,c,I,B,U,L,d,C,q,w,r;
_.a(function(v){switch(v.nextAddress){case 1:return v.yield(ogU(h,(Z=E)==null?void 0:Z.actionParams),2);case 2:M=E.videoId;if(!M)return v.return();if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var H=h.JSC$18320_commandHandler,u=H.resolveCommand,k=_.nF("INNERTUBE_CLIENT_NAME");var y=k==="WEB_REMIX"?_.NH("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.NH("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var A=k==="WEB_REMIX"?[_.NH("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];k=k==="WEB_REMIX"?_.NH("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.NH("DELETE",void 0,"Delete");var E4=_.NH("CANCEL",void 0,"Cancel");y=oeU(y,A,k,E4,{signal:"DELETE_DOWNLOAD",targetId:M});u.call(H,{openPopupAction:y});return v.return()}if(E.action==="ACTION_ADD")return((d=E.actionParams)==null?0:d.formatType)?v.yield(pWC(h,M,E.actionParams.formatType,(r=E.actionParams)==null?void 0:r.settingsAction,g),0):v.yield(h.offlineWebClientEligibility,23);if(E.action==="ACTION_RETRY")return v.yield(R3p(h),
19);if(E.action==="ACTION_PAUSE")return v.yield(h.pauseVideoDownload(M),0);if(E.action==="ACTION_RESUME")return v.yield(h.resumeVideoDownload(M),0);if(E.action!=="ACTION_REMOVE"){v.jumpTo(0);break}return v.yield(Wjc(h,M),13);case 13:return W=v.yieldResult,h.previousDownloadStateForVideo[M]=(z=W)!=null?z:"DOWNLOAD_STATE_UNKNOWN",v.yield(z3U(h,M,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(h.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&h.previousDownloadStateForVideo[M]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){v.jumpTo(15);break}return v.yield(h.pauseVideoDownload(M),15);case 15:H=_.NH("DELETED_VIDEO",void 0,"Video deleted from downloads.");u=_.NH("UNDO_ACTION",void 0,"Undo");y=_.NH("CLOSE",void 0,"Close");c={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iV(H),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iV(u),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:H+" "+u}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:M}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:y}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};h.JSC$18320_commandHandler.resolveCommand(c);
v.jumpTo(0);break;case 19:I=v.yieldResult;I==="UNKNOWN_FORMAT_TYPE"&&(I="SD");B="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((U=E.actionParams)==null?0:U.formatType)I=E.actionParams.formatType,B=(L=E.actionParams)==null?void 0:L.settingsAction;return v.yield(GZJ(h,M,I,B,g),20);case 20:return v.return();case 23:return C=v.yieldResult,v.yield(R3p(h),24);case 24:return q=v.yieldResult,v.yield(IWR(h),25);case 25:w=v.yieldResult,E.onAddCommand&&h.JSC$18320_commandHandler.resolveCommand(E.onAddCommand,
{form:{preferredFormatType:q,offlineWebClientEligibility:C,lastOfflineQualitySettingsSavedMs:w.toString()}}),v.jumpTo(0)}})},P3R=function(h,E){var g,Z,M,W,z,c,I;
return _.a(function(B){if(B.nextAddress==1)return B.yield(h.JSC$18320_persistentStorePromiseAccessor(),2);g=B.yieldResult;if(!g)return _.O$(new _.xX("PES is undefined")),B.return();if((Z=E)==null||!Z.settingItemId)return B.return();M=E;W=M.settingItemId;z=M.boolValue;c=_.jD(W,"settingEntity");I={key:c,settingOptionValue:{boolValue:z}};return B.yield(LyC(g,I),0)})},BrX=function(h,E){var g,Z,M,W,z,c,I;
return _.a(function(B){switch(B.nextAddress){case 1:return B.yield(h.JSC$18320_prefStorage,2);case 2:return g=B.yieldResult,Z=_.xe(),B.yield(h.JSC$18320_persistentStorePromiseAccessor(),3);case 3:return M=B.yieldResult,g?M?B.yield(g.get("sdois"),4):(_.O$(new _.xX("PES is undefined")),B.return()):(_.O$(new _.xX("prefStorage is undefined")),B.return());case 4:W=B.yieldResult;c=(z=E)==null?void 0:z.boolValue;c===void 0||_.J("kevlar_set_sd_enabled_flag_killswitch")||_.wC(0,197,!0);W===void 0&&c===void 0&&
(c=!1);if(c===void 0){B.jumpTo(0);break}return B.yield(g.set("sdois",c),6);case 6:return _.J("kevlar_set_sd_enabled_flag_killswitch")||(_.wC(0,196,c),Z.save()),I={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:c},B.yield(P3R(h,I),0)}})},UvU=function(h,E,g){var Z,M,W,z,c;
return _.a(function(I){switch(I.nextAddress){case 1:return I.yield(csI(h),2);case 2:return Z=I.yieldResult,I.yield(BrX(h,g),3);case 3:return I.yield(csI(h),4);case 4:return M=I.yieldResult,W=M!==Z,I.yield(iWi(h),5);case 5:z=I.yieldResult&&!_.J("kevlar_modern_downloads_page");if((c=!M&&!z)||W)return I.yield(E.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);I.jumpTo(0)}})},MpG=function(){var h=_.GF().resolve(_.XB),
E;
_.a(function(g){switch(g.nextAddress){case 1:return g.yield(h.JSC$18320_playerApiPromise,2);case 2:E=g.yieldResult;if(!_.J("kevlar_force_refresh_smart_downloads")){g.jumpTo(3);break}return g.yield(E.refreshAllStaleEntities(0),4);case 4:return g.return();case 3:return g.yield(E.refreshAllStaleEntities(),5);case 5:return g.yield(UvU(h,E),6);case 6:if(_.J("enable_download_pep_for_premium_countries_web"))return g.yield(aWI(h,E),0);g.jumpTo(0)}})},o7X=function(h,E){var g,Z;
_.a(function(M){switch(M.nextAddress){case 1:return M.yield(h.JSC$18320_playerApiPromise,2);case 2:g=M.yieldResult;switch((Z=E)==null?void 0:Z.settingItemId){case "SMART_DOWNLOADS_ENABLED":return M.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return M.jumpTo(4)}M.jumpTo(0);break;case 3:return M.yield(UvU(h,g,E),6);case 6:M.jumpTo(0);break;case 4:return M.yield(P3R(h,E),7);case 7:M.jumpTo(0)}})},Ljx=function(h,E){var g,Z,M;
return _.a(function(W){if(W.nextAddress==1)return W.yield(h.JSC$18320_persistentStorePromiseAccessor(),2);if(W.nextAddress!=3){g=W.yieldResult;if(!g)return _.O$(new _.xX("PES is undefined")),W.return(!1);if(!E)return W.return(!1);Z=_.jD(E,"mainVideoEntity");return W.yield(jeJ(g,Z,"mainVideoEntity"),3)}M=W.yieldResult;return W.return(M!==void 0)})},RAi=function(h){var E=_.GF().resolve(_.XB),g,Z,M,W,z,c,I,B,U,L,d;
_.a(function(C){switch(C.nextAddress){case 1:return C.yield(E.JSC$18320_playerApiPromise,2);case 2:g=C.yieldResult;M=(Z=h)==null?void 0:Z.actions;if(!M)return C.return();W=_.G(M);z=W.next();case 3:if(z.done){C.jumpTo(0);break}c=z.value;B=I=void 0;if(!(((I=c)==null?0:I.entityKey)&&((B=c)==null?0:B.actionType))){C.jumpTo(4);break}U=_.Bn(c.entityKey);L=U.entityId;d=U.entityType;return C.yield(g.queueOfflineAction(L,d,c.actionType),4);case 4:z=W.next(),C.jumpTo(3)}})},jVR=function(h,E){var g,Z,M,W,z;
return _.a(function(c){if(c.nextAddress==1)return c.yield(h.JSC$18320_prefStorage,2);if(c.nextAddress!=3)return(g=c.yieldResult)?c.yield(g.get("psi"),3):c.return();Z=c.yieldResult;z={isPaused:E,lastSyncTimestamp:(W=(M=Z)==null?void 0:M.lastSyncTimestamp)!=null?W:"0"};return c.yield(g.set("psi",z),0)})},UT0=function(h){var E=_.GF().resolve(_.XB),g,Z,M,W,z,c,I,B;
return _.a(function(U){switch(U.nextAddress){case 1:return U.yield(E.JSC$18320_playerApiPromise,2);case 2:g=U.yieldResult;M=((Z=h)==null?void 0:Z.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((c=h)==null?void 0:c.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":W="!*$_ALL_ENTITIES_!*$";z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return U.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return U.jumpTo(4)}U.jumpTo(5);break;case 3:return U.yield(jVR(E,M),6);case 6:U.jumpTo(5);break;case 4:return U.yield(Ljx(E,(I=h)==null?void 0:I.videoId),7);case 7:U.yieldResult&&(W=(B=h)==null?void 0:B.videoId,z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");U.jumpTo(5);break;case 5:if(W&&z)return U.yield(g.queueOfflineAction(W,"videoPlaybackPositionEntity",z),0);U.jumpTo(0)}})},dvZ=function(h,E){var g;
E!==1||((g=h.currentPersistentToast)==null?0:g.isOpened())?h.openToast():h.currentPersistentToast=void 0},C3I=function(h,E){var g;
return(g=h.transitionTasksMap.get(E))!=null?g:[]},JsG=function(h,E){var g=[];
h.elementTasksMap.forEach(function(Z){(Z=Z.get(E))&&g.push(Z)});
return g},e3I=function(h,E,g,Z,M){M=M===void 0?{}:M;
var W=E.defaultViewTransitionOptions;return Object.assign({},W,M,{beforeTransition:function(){Z.forEach(function(B){B.beforeTransition()});
var z;(z=W.beforeTransition)==null||z.call(W);var c,I;(I=(c=M).beforeTransition)==null||I.call(c);g.forEach(function(B){B.beforeTransition()})},
afterTransition:function(){Z.forEach(function(B){B.afterTransition()});
var z;(z=W.afterTransition)==null||z.call(W);var c,I;(I=(c=M).afterTransition)==null||I.call(c);g.forEach(function(B){B.afterTransition()})},
ignoredErrors:h.config.ignoredErrors})},qK0=function(h,E,g){h.transitionTasksMap.has(E)?h.transitionTasksMap.get(E).push(g):(h=new _.xX("Transition task registered for unknown transition type",E),_.$W(h))},fWC=function(h,E,g){if(h.transitionTasksMap.has(E)){var Z=h.transitionTasksMap.get(E).filter(function(M){return M!==g});
h.transitionTasksMap.set(E,Z)}},NrX=function(h,E){var g=C3I(h,E);
g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next())Z=Z.value,Z.runOnce&&fWC(h,E,Z);h.elementTasksMap.forEach(function(M,W){M.forEach(function(z,c){z.runOnce&&E===c&&(M.delete(c),M.size===0&&h.elementTasksMap.delete(W))})})},tPx=function(h,E,g){var Z,M,W,z,c,I,B,U,L;
_.a(function(d){if(d.nextAddress==1){if(h.config.disableAllTransitions)return d.return(E());if((Z=g)==null||!Z.transitionType)return d.return(_.AVp(E,Object.assign({},(M=g)==null?void 0:M.viewTransitionOptions,{ignoredErrors:h.config.ignoredErrors})));W=g;z=W.transitionType;c=W.viewTransitionOptions;I=h.config.transitionConfigs.get(z);if(!I)return d.return(E());B=C3I(h,z);U=JsG(h,z);L=_.AVp(E,e3I(h,I,B,U,c));return d.yield(L,2)}NrX(h,z);_.SK(d)})},SKG=function(){var h,E,g,Z;
return _.a(function(M){if(M.nextAddress==1)return h=navigator,(E=h.storage)!=null&&E.persisted?M.yield((g=h.storage)==null?void 0:g.persisted(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");Z=M.yieldResult;return M.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},xvx=function(){var h,E,g,Z;
return _.a(function(M){if(M.nextAddress==1)return h=navigator,(E=h.storage)!=null&&E.persist?M.yield((g=h.storage)==null?void 0:g.persist(),2):M.return("PERSISTED_STATE_NOT_SUPPORTED");Z=M.yieldResult;return M.return(Z?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},wWG=function(){var h,E;
return _.a(function(g){switch(g.nextAddress){case 1:return h="PERSISTED_STATE_NOT_SUPPORTED",_.CX(g,2),g.yield(SKG(),4);case 4:h=g.yieldResult;if(h!=="PERSISTED_STATE_NOT_GRANTED"){g.jumpTo(5);break}return g.yield(xvx(),6);case 6:h=g.yieldResult;case 5:_.bN(g,3);break;case 2:E=_.th(g),E instanceof Error&&_.$W(E);case 3:return _.vT("persistentStorageStateChecked",{persistedState:h}),g.return(h)}})},DvC=function(h,E){var g=[],Z=!1;
E=_.G(E);for(var M=E.next();!M.done;M=E.next()){M=h.moduleRegistry[M.value];var W=void 0,z=void 0;((W=M)==null?0:W.isFetching)&&((z=M)==null?0:z.resolver)?(g.push(M.resolver.promise),Z=!0):(M=new _.dN,M.resolve(void 0),g.push(M.promise))}return Z?Promise.all(g):void 0},lWU=function(h,E,g){if(h.isAnyTransitionEnabled){var Z={beforeTransition:function(){g(!0);
E.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){E.style.viewTransitionName&&(E.style.viewTransitionName="",g(!1))}};
qK0(h.viewTransitionCoordinator,"slide",Z);qK0(h.viewTransitionCoordinator,"lockup-to-watch",Z);qK0(h.viewTransitionCoordinator,"watch-next-appears",Z);qK0(h.viewTransitionCoordinator,"learning-journey",Z)}},rs0=function(h,E){h.isBrowseTransitionEnabled?tPx(h.viewTransitionCoordinator,E,{transitionType:"slide"}):(E(),Promise.resolve())},mvG=function(h,E){h.isLockupToWatchTransitionEnabled?tPx(h.viewTransitionCoordinator,E,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){h.registeredLockupThumbnail=void 0;h.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(E(),Promise.resolve())},vg0=function(h,E){h.isLockupToWatchTransitionEnabled?tPx(h.viewTransitionCoordinator,E,{transitionType:"watch-next-appears"}):(E(),Promise.resolve())},HWU=function(h,E){h.isLearningJourneyTransitionEnabled?tPx(h.viewTransitionCoordinator,E,{transitionType:"learning-journey"}):(E(),Promise.resolve())},$vR=function(h,E,g){if(h.isInitialized()){var Z=
Q4(g),M=Z==="watch";
Z=Z==="shorts";var W=Q4(E)==="watch";if(M)W||(h.backgroundPageData=E),h.watchPipMode&&W||h.deactivate(g.endpoint);else if(Z){if(Q4(E)!=="shorts"){var z;(z=h.getPlayerElement())==null||z.pause()}}else W&&!h.watchPipMode&&(RhC(E,g)?(h.watchWhileMode&&_.pmX(h,!1),_.hop(h,E)):h.isMiniplayerActive()&&h.watchWhileMode&&h.deactivate());W&&_.zox(h);h.shortsPipMode&&!Z&&(window.focus(),h.deactivate());if(h.pictureInPictureEnabled())if(Z&&h.shortsPipEnabled||M&&h.watchPipEnabled)_.w7$(h.handleMediaSessionPipActivation);
else if(!h.isMiniplayerActive()&&(h.shortsPipEnabled||h.watchPipEnabled)&&window.documentPictureInPicture&&_.x$()&&_.RVZ("Chromium")>=120){h=_.xkd().mediaSession;try{h.setActionHandler("enterpictureinpicture",null)}catch(c){}}}},KjZ=function(h,E){var g,Z;
_.a(function(M){if(M.nextAddress==1){if(!h||!h.navigationEndpoint)return M.return();_.sU().lockupActivation=!0;var W;E?W=_.MR(_.NH("QUEUE",void 0,"Queue")):W=h.longBylineText;Z=(g=W)&&h.title?{miniplayerTitle:h.title,miniplayerSubtitle:g,playlistData:null}:void 0;return M.yield(_.LLM(_.GF().resolve(_.Yu),h.navigationEndpoint,!0,Z),2)}_.sU().userActivation=!0;_.SK(M)})},w$p=function(h,E){var g,Z,M,W,z,c;
_.a(function(I){if(I.nextAddress==1){g=_.e(E,_.L9l);if(!g||!g.listId)return I.return();h.index=g.index||h.index||0;Z=h.response&&h.response.playingVideoId||void 0;return I.yield(_.Sbl(h.JSC$12926_playlistNetworkManager,g.listId,h.index,Z),2)}M=I.yieldResult;if(!M)return I.return();W=M.playlistId;z=M.playlistPanelRenderer;!h.queueProxy&&W&&z&&W.startsWith("TLPQ")&&(h.queueProxy=new _.aS(h.JSC$12926_playlistNetworkManager,W,h.setPlaylistData.bind(h),h.clearQueue.bind(h),_.tRu(z),h.storage));if(g.openMiniplayer&&
(c=_.SE4(z))&&!h.pageManager.isOnWatch()){var B=c,U=g.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";h.isMiniplayerActive()?h.openToast(B):KjZ(B,U)}h.setPlaylistData(W,z,M.autoplayRenderer);_.SK(I)})},tdG=function(h,E){var g=_.Uk();
g.index===void 0&&(g.index=0);g.temporaryItems.push.apply(g.temporaryItems,_.$E(h));if((E.videoId||E.videoIds)&&g.index!==void 0&&E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!g.queueProxy){var Z=[];if(g.response){var M=_.GF().resolve(_.Yu).isMiniplayerActive();if(g.response.playlistPanelRenderer&&g.response.playlistId&&!g.response.playlistId.startsWith("TLPQ")){if(g.pageManager.isOnWatch()||M)Z=_.tRu(g.response.playlistPanelRenderer)}else g.response.playingVideoId&&!E.openMiniplayer?Z.push(g.response.playingVideoId):
M&&g.response.playingVideoId&&E.openMiniplayer&&Z.push(g.response.playingVideoId)}g.queueProxy=new _.aS(g.JSC$12926_playlistNetworkManager,"",g.setPlaylistData.bind(g),g.clearQueue.bind(g),Z,g.storage);g.queueProxy.JSC$12872_setCurrentIndex(g.index)}g.queueProxy.addVideos(E.videoIds||[E.videoId],E)}JNJ(g,h);g.response&&_.LS(g,_.jn(g,g.response.autoplayRenderer));g.pageManager.isOnWatch()?g.isMiniplayerActive()&&g.openToast(h[0]):(h=h[0],E=E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",g.isMiniplayerActive()?
g.openToast(h):KjZ(h,E))},OWU=function(h){var E=_.Tf(h);
if(E=="object"||E=="array"){if(typeof h.clone==="function")return h.clone();if(typeof Map!=="undefined"&&h instanceof Map)return new Map(h);if(typeof Set!=="undefined"&&h instanceof Set)return new Set(h);E=E=="array"?[]:{};for(var g in h)E[g]=OWU(h[g]);return E}return h},La=function(h,E){return _.iDZ(_.Js(h,E,void 0,_.CW))},ja=function(h,E){return _.Wc(_.Js(h,E,void 0,_.CW))},dd=function(h,E){return _.xAM(_.Js(h,E,void 0,_.CW))},Ca=function(h,E){return _.Js(h,E,void 0,_.CW,_.yk)},ngX=_.ix(function(h,
E,g){if(h.nextWireType_!==0)return!1;
_.oK(E,g,_.Yg(h.decoder_,_.alO));return!0},_.Bi,_.FW),XWG=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;
_.Nv(E,g,Z,_.Yg(h.decoder_,_.alO));return!0},_.Bi,_.FW),YKG=_.ix(function(h,E,g){if(h.nextWireType_!==1)return!1;
var Z=h.decoder_;h=_.Vj(Z);Z=_.Vj(Z);h=_.OD(h,Z);_.oK(E,g,h);return!0},_.tLO,_.hv$),sVc=_.ix(function(h,E,g){if(h.nextWireType_!==5)return!1;
_.oK(E,g,_.Vj(h.decoder_));return!0},function(h,E,g){E=_.RHM(E);
E!=null&&(_.IK(h,g,5),_.RK(h.encoder_,E))},_.b9$),VPx=_.ix(function(h,E,g){if(h.nextWireType_!==2)return!1;
h=_.H9W(h);_.oK(E,g,h===_.SF()?void 0:h);return!0},_.l0z,_.ZKa),kZG=_.dou(function(h,E,g){if(h.nextWireType_!==0&&h.nextWireType_!==2)return!1;
E=_.EG(E,E[_.pD]|0,g);h.nextWireType_==2?_.$F$(h,EuU,E):E.push(_.sK(h.decoder_));return!0},function(h,E,g){E=_.jKz(_.Wc,E,!0);
if(E!=null&&E.length){g=_.VUZ(h,g);for(var Z=0;Z<E.length;Z++)_.qGq(h.encoder_,E[Z]);_.kJN(h,g)}},_.M5N),ysJ=_.ix(function(h,E,g,Z){if(h.nextWireType_!==0)return!1;
_.Nv(E,g,Z,_.sK(h.decoder_));return!0},_.moW,_.M5N),FjG=function(h){return h.previousElementSibling!==void 0?h.previousElementSibling:_.LiF(h.previousSibling,!1)},Asx=function(h,E){var g=[];
for(E=E||0;E<h.length;E+=2)_.GNC(h[E],h[E+1],g);return g.join("&")},Tr0=function(h,E){var g=arguments.length==2?Asx(arguments[1],0):Asx(arguments,1);
return _.piM(h,g)},bmX=_.CM(_.Hg),bWc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(bWc,_.GN);bWc.prototype.getTypeName=function(){return _.mj(this,1).split("/").pop()};
bWc.prototype.getValue=function(){var h=_.Js(this,2);if(Array.isArray(h)||h instanceof _.GN)throw Error("W");return _.fW(this,2)};
var O3C=function(){var h=_.Bp();this.JSC$9918_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.RD("channel_type"))};
O3C.prototype.increment=function(h){this.JSC$9918_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",h)};
var nAJ=function(){var h=_.Bp();this.JSC$9921_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.RD("channel_type"))};
nAJ.prototype.increment=function(h){this.JSC$9921_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",h)};
var YBZ=function(){var h=_.Bp();this.JSC$9924_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.RD("channel_type"))};
YBZ.prototype.increment=function(h){this.JSC$9924_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",h)};
var XbX=function(){var h=_.Bp();this.JSC$9927_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
XbX.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var sNc=function(){var h=_.Bp();this.JSC$9930_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.RD("channel_type"),_.RD("error_type"))};
sNc.prototype.increment=function(h,E){this.JSC$9930_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",h,E)};
var VgZ=function(){var h=_.Bp();this.JSC$9933_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
VgZ.prototype.increment=function(){this.JSC$9933_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var kw0=function(){var h=_.Bp();this.JSC$9936_streamzService=h;h.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
kw0.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Hup=function(){var h=_.Bp();this.JSC$9942_streamzService=h;h.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Hup.prototype.increment=function(){this.JSC$9942_streamzService.JSC$9788_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var uWI=function(h){return h.getCount&&typeof h.getCount=="function"?h.getCount():_.s4(h)||typeof h==="string"?h.length:_.Kt.getCount(h)},QVX=function(h,E){if(typeof h.every=="function")return h.every(E,void 0);
if(_.s4(h)||typeof h==="string")return Array.prototype.every.call(h,E,void 0);for(var g=_.GtA(h),Z=_.iG(h),M=Z.length,W=0;W<M;W++)if(!E.call(void 0,Z[W],g&&g[W],h))return!1;return!0},h7U=function(h,E,g,Z){var M=new _.WX(null);
h&&_.ob(M,h);E&&_.Ib(M,E);g&&_.Rb(M,g);Z&&_.P5(M,Z);return M},ESG=function(){var h=_.sq&&_.U4(_.CKF,10)>=0,E;
if(E=_.sv$)E=_.U4(_.d2C,10)>=0;var g=_.LW&&_.U4(_.CKF,85)>=0;return _.RV||h||E||g},gS0=function(h){var E=_.nUD(h);
return E&&ESG()?-h.scrollLeft:E&&_.kd(h,"overflowX")!="visible"?h.scrollWidth-h.clientWidth-h.scrollLeft:h.scrollLeft},ZzZ=function(h,E){E=Math.max(E,0);
_.nUD(h)?ESG()?h.scrollLeft=-E:h.scrollLeft=h.scrollWidth-E-h.clientWidth:h.scrollLeft=E},S7G=0,rTG=!1;
E_.prototype.set=function(h){this.relativeTimeStart_=h};
E_.prototype.reset=function(){this.set(_.zZ())};
E_.prototype.get=function(){return this.relativeTimeStart_};
var MIJ=null,WIC=function(){MIJ||(MIJ=new E_)},pFC=function(){MIJ||(MIJ=new E_)};
_.aV(pFC,WIC);_.p=veZ.prototype;_.p.JSC$11359_buffer_="";_.p.set=function(h){this.JSC$11359_buffer_=""+h};
_.p.append=function(h,E,g){this.JSC$11359_buffer_+=String(h);if(E!=null)for(var Z=1;Z<arguments.length;Z++)this.JSC$11359_buffer_+=arguments[Z];return this};
_.p.clear=function(){this.JSC$11359_buffer_=""};
_.p.getLength=function(){return this.JSC$11359_buffer_.length};
_.p.toString=function(){return this.JSC$11359_buffer_};
var GbC=!1,Y7Z=function(h){_.g$.call(this,h.message||h.description||h.name);this.isMissing=h instanceof gl;this.isTimeout=h instanceof _.Kk&&h.errorCode=="net.timeout";this.isCanceled=h instanceof _.Y7};
_.f(Y7Z,_.g$);Y7Z.prototype.name="BiscottiError";var gl=function(){_.g$.call(this,"Biscotti ID is missing from server")};
_.f(gl,_.g$);gl.prototype.name="BiscottiMissingError";var Zc=null,dix=function(){try{var h=_.yy("yt.ads.biscotti.getId_");return h?h():Cwx()}catch(E){return _.$B(E)}},z7x=function(h,E){return _.RY({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:h,command:E}})},aE0=function(h){return _.RY({type:"SET_GUIDE_IS_EXPANDED",
payload:h})},coc=function(h){return _.RY({type:"SET_ONLINE_STATUS",
payload:h})},izi=function(h,E){return _.RY({type:"SET_TRANSCRIPTION_STATE",
payload:{high:h,low:E}})},oSX=function(h){return _.RY({type:"SET_OVERLAY_STATE",
payload:h})},IEC=0,R7x=function(h,E,g){var Z=this;
this.priority=E;this.delay=g;this.jobId=0;this.completionCallback=_.wk;this.wrappedJob=function(){h();Z.completionCallback()};
this.id=++IEC};
R7x.prototype.enqueue=function(h){this.completionCallback=h;this.jobId=_.KP.addJob(this.wrappedJob,this.priority,this.delay)};
var JE=function(){_.Lb.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.f(JE,_.Lb);JE.prototype.addJob=function(h,E,g){h=new R7x(h,E,g);this.taskIdToTask.set(h.id,h);this.isActive?PYx(this,h):this.suspendedTasks.add(h);return h.id};
var PYx=function(h,E){h.scheduledTasks.add(E);E.enqueue(function(){h.scheduledTasks.delete(E)})};
JE.prototype.cancelJob=function(h){(h=this.taskIdToTask.get(h))&&(this.scheduledTasks.delete(h)?_.KP.cancelJob(h.jobId):this.suspendedTasks.delete(h))};
JE.prototype.pause=function(){var h=this;this.isActive=!1;this.scheduledTasks.forEach(function(E){_.KP.cancelJob(E.jobId);h.suspendedTasks.add(E)});
this.scheduledTasks.clear()};
JE.prototype.start=function(){var h=this;this.isActive=!0;this.suspendedTasks.forEach(function(E){PYx(h,E)});
this.suspendedTasks.clear()};
JE.prototype.reset=function(){this.scheduledTasks.forEach(function(h){_.KP.cancelJob(h.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var ea=function(h,E){this.JSC$13052_networkService_=h;this.pageRequestPromise=E};
ea.prototype.fetchData=function(h){Bk0(this,this.JSC$13052_networkService_.fetchData(h))};
ea.prototype.postData=function(h,E){Bk0(this,this.JSC$13052_networkService_.postData(h,E))};
ea.prototype.requestDataForServiceEndpoint=function(h,E){Bk0(this,this.JSC$13052_networkService_.requestDataForServiceEndpoint(h,E))};
var Bk0=function(h,E){E.then(h.pageRequestPromise.onSuccess,h.pageRequestPromise.onFailure,h.pageRequestPromise)};
ea.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var q0=function(h){this.buildNetworkRequest_=h;this.pendingRequests_=new Set};
q0.prototype.reset=function(){this.pendingRequests_.forEach(function(h){h.cancel()});
this.pendingRequests_.clear()};
q0.prototype.fetchData=function(h){var E=UGG(this);E.fetchData(h);return E.pageRequestPromise};
q0.prototype.postData=function(h,E){var g=UGG(this);g.postData(h,E);return g.pageRequestPromise};
q0.prototype.requestDataForServiceEndpoint=function(h,E){var g=UGG(this);g.requestDataForServiceEndpoint(h,E);return g.pageRequestPromise};
var UGG=function(h){var E=h.buildNetworkRequest_();h.pendingRequests_.add(E);var g=function(){h.pendingRequests_.delete(E)};
E.pageRequestPromise.then(g,g);return E},LIG=function(h){var E=new JE;
this.JSC$13059_networkService_=h;this.JSC$13059_taskManager_=E;this.JSC$13059_networkManager_=new q0(this.networkRequestFactory_.bind(this))};
_.p=LIG.prototype;_.p.networkRequestFactory_=function(){return new ea(this.JSC$13059_networkService_,new _.rW(this.JSC$13059_taskManager_))};
_.p.reset=function(){this.JSC$13059_taskManager_.reset();this.JSC$13059_networkManager_.reset()};
_.p.start=function(){this.JSC$13059_taskManager_.start()};
_.p.pause=function(){this.JSC$13059_taskManager_.pause()};
_.p.getTaskManager=function(){return this.JSC$13059_taskManager_};
_.p.getNetworkManager=function(){return this.JSC$13059_networkManager_};
var hOU=null,Ze0=[],Mn=0,pq=0,WS=null,jOC=!1,Gm=null,WMc=void 0,ag=function(h){this.token=h};
ag.getInstance=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.pP(),2);h=E.yieldResult;if(!h)return E.return();ag.instance||(ag.instance=new ag(h));return E.return(ag.instance)})};
var I$0=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(cjJ(h.token),2);E=g.yieldResult;return g.return(E.clear("resource-manifest-assets"))})},zm=function(h){this.token=h};
zm.getInstance=function(){var h;return _.a(function(E){if(E.nextAddress==1)return E.yield(_.pP(),2);h=E.yieldResult;if(!h)return E.return();zm.instance||(zm.instance=new zm(h));return E.return(zm.instance)})};
var ieZ=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(cjJ(h.token),2);E=g.yieldResult;return g.yield(E.clear("auth"),0)})},rjG=!1,dGU=function(h){_.g$.call(this,h)};
_.f(dGU,_.LvH);var CYC="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(" ");Gvx()&&CYC.push("details:not(:has(summary))");var a9I=CYC.join(",");var DBZ=function(){var h=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return h?parseInt(h[1],10):0},JoR=function(h){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+h)!=-1||document.currentScript.src.indexOf("&"+h)!=-1)},e7p=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},HL0=function(h){h.length?qpG(h.shift(),function(){HL0(h)}):rWi()},KTZ=function(h){return"chrome-extension://"+h+"/cast_sender.js"},qpG=function(h,
E,g){var Z=document.createElement("script");
Z.onerror=E;g&&(Z.onload=g);_.pX(Z,_.rO(h));(document.head||document.documentElement).appendChild(Z)},fEi=function(){var h=DBZ(),E=[];
if(h>1){var g=h-1;E.push("//www.gstatic.com/eureka/clank/"+h+"/cast_sender.js");E.push("//www.gstatic.com/eureka/clank/"+g+"/cast_sender.js")}return E},rWi=function(){var h=e7p();
h&&h(!1,"No cast extension found")},vBU=function(){if(Nki){var h=2,E=e7p(),g=function(){h--;
h==0&&E&&E(!0)};
window.__onGCastApiAvailable=g;qpG("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",rWi,g)}},l6G=function(){vBU();
var h=fEi();h.push("//www.gstatic.com/eureka/clank/cast_sender.js");HL0(h)},mBp=function(){vBU();
var h=fEi();h.push.apply(h,_.$E($BC.map(KTZ)));h.push("//www.gstatic.com/eureka/clank/cast_sender.js");HL0(h)},Nki=JoR("loadCastFramework")||JoR("loadCastApplicationFramework"),$BC=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var tIU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(tIU,_.GN);var SpG=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(SpG,_.GN);var xGG=function(){var h=new SpG;return _.nW(h,1,3)};var fa=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(fa,_.GN);var DRc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(DRc,_.GN);var wFc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(wFc,_.GN);wFc.prototype.getToken=function(){return _.mj(this,1)};
wFc.prototype.setToken=function(h){return _.FD(this,1,h)};
var xRi=function(h){return _.Tp(h,3,_.JC,_.ch())},wpR=function(h){return _.Tp(h,6,_.JC,_.ch())};var N0=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(N0,_.GN);N0.prototype.getToken=function(){return _.iK(this,wFc,2)};
N0.prototype.setToken=function(h){return _.fM(this,2,h)};
N0.prototype.getName=function(){return _.mj(this,6)};
var DGi=_.CM(N0);var lEp=function(h,E,g){this.requestMessage=h;this.methodDescriptor=E;this.metadata=g};
lEp.prototype.getMetadata=function(){return this.metadata};var roI=function(h,E){E=E===void 0?{}:E;this.responseMessage=h;this.metadata=E;this.status=null};
roI.prototype.getMetadata=function(){return this.metadata};
roI.prototype.getStatus=function(){return this.status};var tE=function(h,E,g,Z,M){this.name=h;this.methodType="unary";this.requestType=E;this.responseType=g;this.requestSerializeFn=Z;this.responseDeserializeFn=M},mGc=function(h,E,g){g=g===void 0?{}:g;
return new lEp(E,h,g)};
tE.prototype.getName=function(){return this.name};var Sa=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Sa,_.GN);Sa.prototype.getHeader=function(){return _.iK(this,fa,1)};
Sa.prototype.setHeader=function(h){return _.fM(this,1,h)};
Sa.prototype.hasHeader=function(){return _.eP(this,fa,1)};var vSU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(vSU,_.GN);var HzC=new tE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Sa,vSU,function(h){return h.serialize()},_.CM(vSU));var xk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(xk,_.GN);xk.prototype.getHeader=function(){return _.iK(this,fa,1)};
xk.prototype.setHeader=function(h){return _.fM(this,1,h)};
xk.prototype.hasHeader=function(){return _.eP(this,fa,1)};var $GR=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f($GR,_.GN);var KIR=new tE("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",xk,$GR,function(h){return h.serialize()},_.CM($GR));var wd=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(wd,_.GN);wd.prototype.getHeader=function(){return _.iK(this,fa,1)};
wd.prototype.setHeader=function(h){return _.fM(this,1,h)};
wd.prototype.hasHeader=function(){return _.eP(this,fa,1)};var OzC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(OzC,_.GN);OzC.prototype.getLink=function(){return _.iK(this,N0,1)};var nSI=new tE("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",wd,OzC,function(h){return h.serialize()},_.CM(OzC));var D2=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(D2,_.GN);D2.prototype.getHeader=function(){return _.iK(this,fa,1)};
D2.prototype.setHeader=function(h){return _.fM(this,1,h)};
D2.prototype.hasHeader=function(){return _.eP(this,fa,1)};var XFU=new tE("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D2,N0,function(h){return h.serialize()},DGi);var Yp0=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Yp0,_.GN);var sOC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(sOC,_.GN);sOC.prototype.getUrl=function(){return _.mj(this,2)};
sOC.prototype.setUrl=function(h){return _.FD(this,2,h)};var VIG=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(VIG,_.GN);var kbU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(kbU,_.GN);var yoU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(yoU,_.GN);var Y8U=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Y8U,_.GN);var XpX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(XpX,_.GN);var FIR=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(FIR,_.GN);var TNG=_.CM(FIR);var AoU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(AoU,_.GN);var Tk0=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Tk0,_.GN);_.p=Tk0.prototype;_.p.getHeader=function(){return _.iK(this,fa,1)};
_.p.setHeader=function(h){return _.fM(this,1,h)};
_.p.hasHeader=function(){return _.eP(this,fa,1)};
_.p.getCompletionUrl=function(){return _.mj(this,6)};
_.p.getDeviceId=function(){return _.mj(this,11)};var bzU=new tE("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",Tk0,FIR,function(h){return h.serialize()},TNG);var uVI=new Set(["SAPISIDHASH","APISIDHASH"]);var QOJ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(QOJ,_.GN);QOJ.prototype.getMessage=function(){return _.mj(this,2)};
var hPG=_.CM(QOJ);var l9=function(h,E){this.xhrNodeReadableStream_=h.nodeReadableStream;this.grpcResponseDeserializeFn_=E;this.JSC$19313_xhr_=h.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19313_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&EDG(this)},GcG=function(h,E){var g=new gDJ;
_.vK(h.JSC$19313_xhr_,"complete",function(){if(h.JSC$19313_xhr_.isSuccess()){var Z=h.JSC$19313_xhr_.getResponseText();var M;if(M=E)M=h.JSC$19313_xhr_,M.JSC$9797_xhr_&&M.isComplete()?(M=M.JSC$9797_xhr_.getResponseHeader("Content-Type"),M=M===null?void 0:M):M=void 0,M=M==="text/plain";if(M){if(!atob)throw Error("dk");Z=atob(Z)}try{var W=h.grpcResponseDeserializeFn_(Z)}catch(c){rd(h,BNp(new _.nA(13,"Error when deserializing response data; error: "+c+(", response: "+Z)),g));return}Z=_.TXV(h.JSC$19313_xhr_.getStatus());
ZAX(h,MJZ(h));Z==0?Wsi(h,W):rd(h,BNp(new _.nA(Z,"Xhr succeeded but the status code is not 200"),g))}else{Z=h.JSC$19313_xhr_.getResponseText();W=MJZ(h);if(Z){var z=pQG(h,Z);Z=z.code;M=z.details;z=z.metadata}else Z=2,M="Rpc failed due to xhr error. uri: "+String(h.JSC$19313_xhr_.JSC$9797_lastUri_)+", error code: "+h.JSC$19313_xhr_.JSC$9797_lastErrorCode_+", error: "+h.JSC$19313_xhr_.getLastError(),z=W;ZAX(h,W);rd(h,BNp(new _.nA(Z,M,z),g))}})},EDG=function(h){h.xhrNodeReadableStream_.on("data",function(E){if("1"in
E){var g=E["1"];
try{var Z=h.grpcResponseDeserializeFn_(g)}catch(M){rd(h,new _.nA(13,"Error when deserializing response data; error: "+M+(", response: "+g)))}Z&&Wsi(h,Z)}if("2"in E)for(E=pQG(h,E["2"]),g=0;g<h.onStatusCallbacks_.length;g++)h.onStatusCallbacks_[g](E)});
h.xhrNodeReadableStream_.on("end",function(){ZAX(h,MJZ(h));for(var E=0;E<h.onEndCallbacks_.length;E++)h.onEndCallbacks_[E]()});
h.xhrNodeReadableStream_.on("error",function(){if(h.JSC$19313_onErrorCallbacks_.length!=0){var E=h.JSC$19313_xhr_.JSC$9797_lastErrorCode_;E!==0||h.JSC$19313_xhr_.isSuccess()||(E=6);var g=-1;switch(E){case 0:var Z=2;break;case 7:Z=10;break;case 8:Z=4;break;case 6:g=h.JSC$19313_xhr_.getStatus();Z=_.TXV(g);break;default:Z=14}ZAX(h,MJZ(h));E=_.K8D(E)+", error: "+h.JSC$19313_xhr_.getLastError();g!=-1&&(E+=", http status code: "+g);rd(h,new _.nA(Z,E))}})},MJZ=function(h){var E={},g=M6x(h.JSC$19313_xhr_);
Object.keys(g).forEach(function(Z){E[Z]=g[Z]});
return E},pQG=function(h,E){var g=2,Z={};
try{var M=hPG(E);g=_.i4(M,1);var W=M.getMessage();_.aD(M,bWc,3,_.ch()).length&&(Z["grpc-web-status-details-bin"]=E)}catch(z){h.JSC$19313_xhr_&&h.JSC$19313_xhr_.getStatus()===404?(g=5,W="Not Found: "+String(h.JSC$19313_xhr_.JSC$9797_lastUri_)):(g=14,W="Unable to parse RpcStatus: "+z)}return{code:g,details:W,metadata:Z}};
l9.prototype.on=function(h,E){h=="data"?this.onDataCallbacks_.push(E):h=="metadata"?this.onMetadataCallbacks_.push(E):h=="status"?this.onStatusCallbacks_.push(E):h=="end"?this.onEndCallbacks_.push(E):h=="error"&&this.JSC$19313_onErrorCallbacks_.push(E);return this};
var mK=function(h,E){E=h.indexOf(E);E>-1&&h.splice(E,1)};
l9.prototype.removeListener=function(h,E){h=="data"?mK(this.onDataCallbacks_,E):h=="metadata"?mK(this.onMetadataCallbacks_,E):h=="status"?mK(this.onStatusCallbacks_,E):h=="end"?mK(this.onEndCallbacks_,E):h=="error"&&mK(this.JSC$19313_onErrorCallbacks_,E);return this};
l9.prototype.cancel=function(){this.JSC$19313_xhr_.abort()};
var Wsi=function(h,E){for(var g=0;g<h.onDataCallbacks_.length;g++)h.onDataCallbacks_[g](E)},ZAX=function(h,E){for(var g=0;g<h.onMetadataCallbacks_.length;g++)h.onMetadataCallbacks_[g](E)},rd=function(h,E){for(var g=0;g<h.JSC$19313_onErrorCallbacks_.length;g++)h.JSC$19313_onErrorCallbacks_[g](E)};
l9.prototype.cancel=l9.prototype.cancel;l9.prototype.removeListener=l9.prototype.removeListener;l9.prototype.on=l9.prototype.on;var gDJ=function(){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.f(gDJ,Error);var vo=function(h){this.JSC$19322_worker_=h.worker||null;this.JSC$19322_streamBinaryChunks_=h.streamBinaryChunks||!1;this.JSC$19322_credentialsMode_=void 0};
_.aV(vo,_.unq);vo.prototype.createInstance=function(){var h=new Ho(this.JSC$19322_worker_,this.JSC$19322_streamBinaryChunks_);this.JSC$19322_credentialsMode_&&h.setCredentialsMode(this.JSC$19322_credentialsMode_);return h};
vo.prototype.setCredentialsMode=function(h){this.JSC$19322_credentialsMode_=h};
var Ho=function(h,E){_.ms.call(this);this.JSC$19326_worker_=h;this.JSC$19326_streamBinaryChunks_=E;this.JSC$19326_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$19326_responseHeaders_=null;this.JSC$19326_method_="GET";this.JSC$19326_url_="";this.inProgress_=!1;this.JSC$19326_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.aV(Ho,_.ms);Ho.prototype.open=function(h,E){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19326_method_=h;this.JSC$19326_url_=E;this.readyState=1;$k(this)};
Ho.prototype.send=function(h){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var E={headers:this.requestHeaders_,method:this.JSC$19326_method_,credentials:this.JSC$19326_credentialsMode_,cache:void 0,signal:this.abortController_.signal};h&&(E.body=h);(this.JSC$19326_worker_||_.MN).fetch(new Request(this.JSC$19326_url_,E)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Ho.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,Ka(this));this.readyState=0};
Ho.prototype.handleResponse_=function(h){if(this.inProgress_&&(this.fetchResponse_=h,this.JSC$19326_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19326_responseHeaders_=h.headers,this.readyState=2,$k(this)),this.inProgress_&&(this.readyState=3,$k(this),this.inProgress_)))if(this.responseType==="arraybuffer")h.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.MN.ReadableStream!==
"undefined"&&"body"in h){this.currentReader_=h.body.getReader();if(this.JSC$19326_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19326_textDecoder_=new TextDecoder;zPx(this)}else h.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var zPx=function(h){h.currentReader_.read().then(h.handleDataFromStream_.bind(h)).catch(h.handleSendFailure_.bind(h))};
Ho.prototype.handleDataFromStream_=function(h){if(this.inProgress_){if(this.JSC$19326_streamBinaryChunks_&&h.value)this.response.push(h.value);else if(!this.JSC$19326_streamBinaryChunks_){var E=h.value?h.value:new Uint8Array(0);if(E=this.JSC$19326_textDecoder_.decode(E,{stream:!h.done}))this.response=this.responseText+=E}h.done?Ka(this):$k(this);this.readyState==3&&zPx(this)}};
Ho.prototype.handleResponseText_=function(h){this.inProgress_&&(this.response=this.responseText=h,Ka(this))};
Ho.prototype.handleResponseArrayBuffer_=function(h){this.inProgress_&&(this.response=h,Ka(this))};
Ho.prototype.handleSendFailure_=function(){this.inProgress_&&Ka(this)};
var Ka=function(h){h.readyState=4;h.fetchResponse_=null;h.currentReader_=null;h.JSC$19326_textDecoder_=null;$k(h)};
Ho.prototype.setRequestHeader=function(h,E){this.requestHeaders_.append(h,E)};
Ho.prototype.getResponseHeader=function(h){return this.JSC$19326_responseHeaders_?this.JSC$19326_responseHeaders_.get(h.toLowerCase())||"":""};
Ho.prototype.getAllResponseHeaders=function(){if(!this.JSC$19326_responseHeaders_)return"";for(var h=[],E=this.JSC$19326_responseHeaders_.entries(),g=E.next();!g.done;)g=g.value,h.push(g[0]+": "+g[1]),g=E.next();return h.join("\r\n")};
Ho.prototype.setCredentialsMode=function(h){this.JSC$19326_credentialsMode_=h};
var $k=function(h){h.onreadystatechange&&h.onreadystatechange.call(h)};
Object.defineProperty(Ho.prototype,"withCredentials",{get:function(){return this.JSC$19326_credentialsMode_==="include"},
set:function(h){this.setCredentialsMode(h?"include":"same-origin")}});var aDx=function(h){var E="";_.Kt.forEach(h,function(g,Z){E+=Z;E+=":";E+=g;E+="\r\n"});
return E},cO0=function(h,E,g){if(_.Kt.isEmpty(g))return h;
g=aDx(g);if(typeof h==="string")return _.hO(h,_.Ax(E),g);_.u4(h,E,g);return h};var iA0=function(){this.isInputValid_=!0;this.JSC$19332_streamPos_=0;this.leftoverInput_=""};
iA0.prototype.isInputValid=function(){return this.isInputValid_};
iA0.prototype.decode=function(h){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19332_streamPos_+"`stream already broken`"+h);this.leftoverInput_+=h;h=Math.floor(this.leftoverInput_.length/4);if(h==0)return null;try{var E=_.uoa(this.leftoverInput_.slice(0,h*4))}catch(g){throw E=this.leftoverInput_,h=g.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19332_streamPos_+"`"+h+"`"+E);}this.JSC$19332_streamPos_+=h*4;this.leftoverInput_=this.leftoverInput_.slice(h*4);return E};var og=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19335_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
og.prototype.isInputValid=function(){return this.state_!=3};
var Ol=function(h,E,g,Z){h.state_=3;h.errorMessage_="The stream is broken @"+h.JSC$19335_streamPos_+"/"+g+". Error: "+Z+". With input:\n"+E;throw Error(h.errorMessage_);};
og.prototype.acceptsBinaryInput=function(){return!0};
og.prototype.parse=function(h){function E(I){I&128&&Ol(W,z,c,"invalid tag");(I&7)!=2&&Ol(W,z,c,"invalid wire type");W.tag_=I>>>3;W.tag_!=1&&W.tag_!=2&&W.tag_!=15&&Ol(W,z,c,"unexpected tag");W.state_=1;W.length_=0;W.countLengthBytes_=0}
function g(I){W.countLengthBytes_++;W.countLengthBytes_==5&&I&240&&Ol(W,z,c,"message length too long");W.length_|=(I&127)<<(W.countLengthBytes_-1)*7;I&128||(W.state_=2,W.countMessageBytes_=0,typeof Uint8Array!=="undefined"?W.messageBuffer_=new Uint8Array(W.length_):W.messageBuffer_=Array(W.length_),W.length_==0&&M())}
function Z(I){W.messageBuffer_[W.countMessageBytes_++]=I;W.countMessageBytes_==W.length_&&M()}
function M(){if(W.tag_<15){var I={};I[W.tag_]=W.messageBuffer_;W.result_.push(I)}W.state_=0}
for(var W=this,z=h instanceof Array?h:new Uint8Array(h),c=0;c<z.length;){switch(W.state_){case 3:Ol(W,z,c,"stream already broken");break;case 0:E(z[c]);break;case 1:g(z[c]);break;case 2:Z(z[c]);break;default:throw Error("jk`"+W.state_);}W.JSC$19335_streamPos_++;c++}h=W.result_;W.result_=[];return h.length>0?h:null};var Lb0=function(){this.errorMessage_=null;this.JSC$19338_streamPos_=0;this.base64Decoder_=new iA0;this.pbParser_=new og};
Lb0.prototype.isInputValid=function(){return this.errorMessage_===null};
var oDp=function(h,E,g){h.errorMessage_="The stream is broken @"+h.JSC$19338_streamPos_+". Error: "+g+". With input:\n"+E;throw Error(h.errorMessage_);};
Lb0.prototype.acceptsBinaryInput=function(){return!1};
Lb0.prototype.parse=function(h){this.errorMessage_!==null&&oDp(this,h,"stream already broken");var E=null;try{var g=this.base64Decoder_.decode(h);E=g===null?null:this.pbParser_.parse(g)}catch(Z){oDp(this,h,Z.message)}this.JSC$19338_streamPos_+=h.length;return E};var URc=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19341_streamPos_=0;this.result_=[];this.statusParsed_=!1};
URc.prototype.isInputValid=function(){return this.errorMessage_===null};
URc.prototype.acceptsBinaryInput=function(){return!1};
URc.prototype.parse=function(h){function E(I){W.state_=6;W.errorMessage_="The stream is broken @"+W.JSC$19341_streamPos_+"/"+z+". Error: "+I+". With input:\n";throw Error(W.errorMessage_);}
function g(){W.jsonStreamParser_=new _.ez({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function Z(I){if(I)for(var B=0;B<I.length;B++){var U={};U[1]=I[B];W.result_.push(U)}}
function M(I){if(I){(W.statusParsed_||I.length>1)&&E("extra status: "+I);W.statusParsed_=!0;var B={};B[2]=I[0];W.result_.push(B)}}
for(var W=this,z=0;z<h.length;){var c;if(c=W.state_!==2){a:{for(;z<h.length;){if(!_.JX(h[z])){c=!0;break a}z++;W.JSC$19341_streamPos_++}c=!1}c=!c}if(c)return null;switch(W.state_){case 6:E("stream already broken");break;case 0:h[z]==="["?(W.state_=1,z++,W.JSC$19341_streamPos_++):E("unexpected input token");break;case 1:h[z]==="["?(W.state_=2,g()):h[z]===","||h.slice(z,z+5)=="null,"?W.state_=3:h[z]==="]"?(W.state_=5,z++,W.JSC$19341_streamPos_++):E("unexpected input token");break;case 2:c=W.jsonStreamParser_.parse(h.substring(z));
Z(c);W.jsonStreamParser_.done()?(W.state_=3,c=W.jsonStreamParser_.JSC$11486_buffer_,W.JSC$19341_streamPos_+=h.length-z-c.length,h=c,z=0):(W.JSC$19341_streamPos_+=h.length-z,z=h.length);break;case 3:h[z]===","||h.slice(z,z+5)=="null,"?(W.state_=4,g(),W.jsonStreamParser_.parse("["),z+=h[z]===","?1:5,W.JSC$19341_streamPos_++):h[z]==="]"&&(W.state_=5,z++,W.JSC$19341_streamPos_++);break;case 4:c=W.jsonStreamParser_.parse(h.substring(z));M(c);W.jsonStreamParser_.done()?(W.state_=5,c=W.jsonStreamParser_.JSC$11486_buffer_,
W.JSC$19341_streamPos_+=h.length-z-c.length,h=c,z=0):(W.JSC$19341_streamPos_+=h.length-z,z=h.length);break;case 5:E("extra input after stream end")}}return W.result_.length>0?(h=W.result_,W.result_=[],h):null};var IDX=function(h){this.JSC$19344_xhr_=h;this.JSC$19344_parser_=null;this.status_=this.JSC$19344_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19344_textDecoder_=null;this.JSC$19344_eventHandler_=new _.Pl(this);this.JSC$19344_eventHandler_.listen(this.JSC$19344_xhr_,"readystatechange",this.JSC$19346_readyStateChangeHandler_)},na=function(h,E){h.status_!=E&&(h.status_=E,h.statusHandler_&&h.statusHandler_())},Xk=function(h){h.JSC$19344_eventHandler_.removeAll();
if(h.JSC$19344_xhr_){var E=h.JSC$19344_xhr_;h.JSC$19344_xhr_=null;E.abort();E.dispose()}};
IDX.prototype.getStatus=function(){return this.status_};
IDX.prototype.JSC$19346_readyStateChangeHandler_=function(h){h=h.target;try{if(h==this.JSC$19344_xhr_)a:{var E=_.sj(this.JSC$19344_xhr_),g=this.JSC$19344_xhr_.JSC$9797_lastErrorCode_,Z=this.JSC$19344_xhr_.getStatus(),M=this.JSC$19344_xhr_.getResponseText();h=[];if(this.JSC$19344_xhr_.getResponse()instanceof Array){var W=this.JSC$19344_xhr_.getResponse();W.length>0&&W[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,h=W)}if(!(E<3||E==3&&!M&&h.length==0))if(Z=Z==200||Z==206,E==4&&(g==8?na(this,
7):g==7?na(this,8):Z||na(this,3)),this.JSC$19344_parser_||(this.JSC$19344_parser_=jtZ(this.JSC$19344_xhr_),this.JSC$19344_parser_==null&&na(this,5)),this.status_>2)Xk(this);else{if(h.length>this.JSC$19344_pos_){var z=h.length;g=[];try{if(this.JSC$19344_parser_.acceptsBinaryInput())for(var c=0;c<z;c++){var I=this.JSC$19344_parser_.parse(Array.from(h[c]));I&&(g=g.concat(I))}else{I="";if(!this.JSC$19344_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19344_textDecoder_=new TextDecoder}for(c=
0;c<z;c++)I+=this.JSC$19344_textDecoder_.decode(h[c],{stream:E==4&&c==z-1});g=this.JSC$19344_parser_.parse(I)}h.splice(0,z);g&&this.dataHandler_(g)}catch(U){na(this,5);Xk(this);break a}}else if(M.length>this.JSC$19344_pos_){c=M.slice(this.JSC$19344_pos_);this.JSC$19344_pos_=M.length;try{var B=this.JSC$19344_parser_.parse(c);B!=null&&this.dataHandler_&&this.dataHandler_(B)}catch(U){na(this,5);Xk(this);break a}}E==4?(M.length!=0||this.hasStreamingResponseData_?na(this,2):na(this,4),Xk(this)):na(this,
1)}}}catch(U){na(this,6),Xk(this)}};var RPC=function(h){h=this.xhrReader_=h;var E=(0,_.DJ)(this.onData_,this);h.dataHandler_=E;h=this.xhrReader_;E=(0,_.DJ)(this.onStatusChange_,this);h.statusHandler_=E;this.JSC$19348_callbackMap_={};this.callbackOnceMap_={}};
_.p=RPC.prototype;_.p.on=function(h,E){var g=this.JSC$19348_callbackMap_[h];g||(g=[],this.JSC$19348_callbackMap_[h]=g);g.push(E);return this};
_.p.addListener=function(h,E){this.on(h,E);return this};
_.p.removeListener=function(h,E){var g=this.JSC$19348_callbackMap_[h];g&&_.Xz(g,E);(h=this.callbackOnceMap_[h])&&_.Xz(h,E);return this};
_.p.once=function(h,E){var g=this.callbackOnceMap_[h];g||(g=[],this.callbackOnceMap_[h]=g);g.push(E);return this};
_.p.onData_=function(h){var E=this.JSC$19348_callbackMap_.data;E&&P0U(h,E);(E=this.callbackOnceMap_.data)&&P0U(h,E);this.callbackOnceMap_.data=[]};
var P0U=function(h,E){for(var g={},Z=0;Z<h.length;g={message$jscomp$1005:void 0},Z++)g.message$jscomp$1005=h[Z],E.forEach(function(M){return function(W){try{W(M.message$jscomp$1005)}catch(z){}}}(g))};
RPC.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:B6X(this,"readable");break;case 5:case 6:case 4:case 7:case 3:B6X(this,"error");break;case 8:B6X(this,"close");break;case 2:B6X(this,"end")}};
var B6X=function(h,E){var g=h.JSC$19348_callbackMap_[E];g&&g.forEach(function(Z){try{Z()}catch(M){}});
(g=h.callbackOnceMap_[E])&&g.forEach(function(Z){Z()});
h.callbackOnceMap_[E]=[]};var UgU=function(){var h={format:"jspb"};h=h===void 0?{}:h;this.suppressCorsPreflight=h.suppressCorsPreflight||_.yy("suppressCorsPreflight",h)||!1;this.withCredentials=h.withCredentials||_.yy("withCredentials",h)||!1;this.streamInterceptors=h.streamInterceptors||[];this.unaryInterceptors=h.unaryInterceptors||[];this.workerScope=h.workerScope;this.chunkedServerStreaming=h.useFetchDownloadStreams||!1},dg0=function(h,E,g,Z,M,W){W=W===void 0?{}:W;
var z=E.substring(0,E.length-M.name.length),c,I=(c=W)==null?void 0:c.signal;return LsX(function(B){return new Promise(function(U,L){if(I==null?0:I.aborted){var d=new _.nA(1,"Aborted");d.cause=I.reason;L(d)}else{var C={},q=jjJ(h,B,z);q.on("error",function(w){return void L(w)});
q.on("metadata",function(w){C=w});
q.on("data",function(w){var r=C;r=r===void 0?{}:r;U(new roI(w,r))});
I&&I.addEventListener("abort",function(){q.cancel();var w=new _.nA(1,"Aborted");w.cause=I.reason;L(w)})}})},h.unaryInterceptors).call(h,mGc(M,g,Z)).then(function(B){return B.responseMessage})},Yk=function(h,E,g,Z,M,W){W=W===void 0?{}:W;
return dg0(h,E,g,Z,M,W)};
UgU.prototype.serverStreaming=function(h,E,g,Z){var M=this,W=h.substring(0,h.length-Z.name.length);return C0J(function(z){var c=z.methodDescriptor,I=z.getMetadata(),B=JO0(M,!1);I=ePZ(M,I,B,W+c.getName());var U=qjX(B,c.responseDeserializeFn,!0);z=c.requestSerializeFn(z.requestMessage);B.send(I,"POST",z);return U},this.streamInterceptors).call(this,mGc(Z,E,g))};
var jjJ=function(h,E,g){var Z=E.methodDescriptor,M=E.getMetadata(),W=JO0(h,!0);h=ePZ(h,M,W,g+Z.getName());g=qjX(W,Z.responseDeserializeFn,!1);GcG(g,M["X-Goog-Encode-Response-If-Executable"]==="base64");E=Z.requestSerializeFn(E.requestMessage);W.send(h,"POST",E);return g},JO0=function(h,E){E=h.chunkedServerStreaming&&!E;
return h.workerScope||E?new _.YD(new vo({worker:h.workerScope,streamBinaryChunks:E})):new _.YD},ePZ=function(h,E,g,Z){E["Content-Type"]="application/json+protobuf";
E["X-User-Agent"]="grpc-web-javascript/0.1";var M=E.Authorization;if(M&&uVI.has(M.split(" ")[0])||h.withCredentials)g.JSC$9797_withCredentials_=!0;if(h.suppressCorsPreflight)Z=cO0(Z,"$httpHeaders",E);else for(h=_.G(Object.keys(E)),M=h.next();!M.done;M=h.next())M=M.value,g.headers.set(M,E[M]);return Z},qjX=function(h,E,g){if(g){g=new IDX(h);
var Z=new RPC(g)}return new l9({xhr:h,nodeReadableStream:Z},E)},C0J=function(h,E){return E.reduce(function(g,Z){return function(M){return Z.intercept(M,g)}},h)},LsX=function(h,E){return E.reduce(function(g,Z){return function(M){return Z.intercept(M,g)}},h)};var fD0=function(h){this.client_=new UgU;this.hostname_=h==void 0?h:h.replace(/\/+$/,"")};
_.p=fD0.prototype;_.p.JSC$19366_depositGoogleCredential=function(h,E,g){return Yk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",h,E||{},KIR,g)};
_.p.deleteLink=function(h,E,g){return Yk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",h,E||{},HzC,g)};
_.p.JSC$19366_finishOAuth=function(h,E,g){return Yk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",h,E||{},nSI,g)};
_.p.getLink=function(h,E,g){return Yk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",h,E||{},XFU,g)};
_.p.startLinkingSession=function(h,E,g){return Yk(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",h,E||{},bzU,g)};var N60=[0,_.Ep,1,kZG,[0,_.WF,[0,_.ZE,-1]],[0,VPx],[0,_.zb,-1]];var tJi=function(){this.storage=new Map},xgc=function(h,E,g,Z,M){if(!h.storage.has(E))return null;
h=_.G(h.storage.get(E));for(E=h.next();!E.done;E=h.next())if(E=E.value,!M||E.linkName===M)if(g&&E.scopes&&Sjx(E.scopes,g)||Z&&E.capabilities&&Sjx(E.capabilities,Z))return E;return null},wQI=function(h,E,g){if(!g)h.storage.delete(E);
else if(h.storage.has(E)){var Z=h.storage.get(E).filter(function(M){return M.linkName!==g});
Z.length>0?h.storage.set(E,Z):h.storage.delete(E)}},Sjx=function(h,E){E=_.G(E);
for(var g=E.next();!g.done;g=E.next())if(!h.has(g.value))return!1;return!0};var DgG=function(){var h=_.nF("LINK_GAL_DOMAIN");this.alsDomain1p=_.nF("LINK_GAL_DOMAIN");this.alsDomain3p=h;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},lDJ=function(h,E){h.apiKey=E;
return h};
DgG.prototype.build=function(){var h={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");h.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");h.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(h.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)h.apiKey=
this.apiKey,h.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");h.oauthToken=this.oauthToken;h.alsDomain=this.alsDomain3p}h.clientXd3=this.clientXd3;h.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(h.authUser=this.authUser);this.bucket!==void 0&&(h.bucket=this.bucket);this.completionUrl!==void 0&&(h.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(h.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(h.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(h.locale=this.locale);h.loggerType=this.loggerType;h.clientEnvironment=this.clientEnvironment;h.colorScheme=this.colorScheme;h.showCloseOption=this.showCloseOption;return h};var Ig=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Ig,_.GN);var rOX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(rOX,_.GN);var mgX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(mgX,_.GN);var PS=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(PS,_.GN);var vDR=function(h){return _.vW(h,1)};var HAU=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(HAU,_.GN);var NN0=_.CM(HAU),Rg=[1,2,3,4,5];var JkG=function(h){try{return NN0(h)}catch(E){return null}},$gG=function(){},e9U=function(h,E){switch(_.ts(E,Rg)){case 4:return(E=_.KW(E,mgX,4,Rg))&&h.logStateTransition(_.vW(E,1)),!0;
case 5:return(E=_.KW(E,rOX,5,Rg))&&h.logInternalEvent(_.vW(E,1)),!0}return!1},tlR=function(h){switch(h){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Vk(h)}};var dRG=function(h,E){var g=this;this.validator=h;this.messageListener=E;this.dismissCallback=function(){Ksp(g,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19395_receiveMessage=function(Z){Z.type==="message"&&(Z=Z.event_,Z!==null&&(new URL(g.iframe.src)).origin===Z.origin&&g.validator(Z.data,Z.origin)&&!g.messageListener(Z.data)&&(g.JSC$19395_resolveCb!==void 0&&g.JSC$19395_resolveCb(Z.data),OAG(g)))}},f9C=function(h,E,g){h.uiHandler!==void 0&&Ksp(h,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(Z,M){h.JSC$19395_resolveCb=Z;h.JSC$19395_rejectCb=M;h.iframe=document.createElement("iframe");_.hh(h.iframe,E);h.uiHandler=g.displayContent(h.iframe,h.dismissCallback);_.vK(window,"message",h.JSC$19395_receiveMessage,!1,h)})},Ksp=function(h,E){h.JSC$19395_rejectCb!==void 0&&h.JSC$19395_rejectCb(E);
OAG(h)},OAG=function(h){h.uiHandler!==void 0&&h.uiHandler.hideContent();
_.r6(window,"message",h.JSC$19395_receiveMessage,!1,h);h.JSC$19395_resolveCb=void 0;h.JSC$19395_rejectCb=void 0;h.uiHandler=void 0;h.iframe=void 0};var nDG=function(h){if(h===2){var E;h=((E=window)==null?0:E.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return h},q8G=function(h){h=nDG(h);
switch(h){case 0:return"light";case 1:return"dark";default:_.Vk(h)}};var CUU=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),XQJ=function(h,E){this.JSC$19407_linkingSession=h;this.noticeConfig=E;this.displayInfoMap=new Map;var g=new Map;if(_.eP(this.JSC$19407_linkingSession,VIG,7))for(h=_.iK(this.JSC$19407_linkingSession,VIG,7),h=_.aD(h,sOC,1,_.ch()),h=_.G(h),E=h.next();!E.done;E=h.next())E=E.value,g.set(_.vW(E,1),_.oXz(_.iK(E,_.ZBx,3)));if(g.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){E=this.noticeConfig.enabledDataUsageNoticeUis;h=E.has(0)?g.get(1):void 0;E=E.has(1)?g.get(2):void 0;g=h!==void 0&&E!==void 0?g.get(3):void 0;var Z=this.noticeConfig.nestedOrigins;var M=new HAU;var W=new Ig;M=_.No(M,2,Rg,W);W=new HAU;var z=new Ig;W=_.No(W,3,Rg,z);z=[];h!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:h,lastEvent:M,nestedOrigins:Z}]),z.push({trustedUrl:h,lastEvent:M,nestedOrigins:Z}));E!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:E,lastEvent:W,nestedOrigins:Z}]),z.push({trustedUrl:E,lastEvent:W,nestedOrigins:Z}));g!==void 0?this.displayInfoMap.set(3,[{trustedUrl:g,lastEvent:W,nestedOrigins:Z}]):this.displayInfoMap.set(3,z)}};var Yjc=function(h){var E=new tJi;this.galService=h;this.galCache=E};
Yjc.prototype.getLink=function(h){var E=h.serviceId;var g=h.scopes;var Z=h.capabilities;var M=h.linkName;var W=this,z;return _.a(function(c){if(Z!==void 0&&g!==void 0)throw Error("pk");z=xgc(W.galCache,E,g,Z,M);return z!==null?c.return(z):c.return(W.galService.getLink({serviceId:E,sessionId:Math.floor(Math.random()*2147483648),scopes:g,capabilities:Z,linkName:M}).then(function(I){I=l9Z(I);var B=W.galCache;B.storage.has(E)?B.storage.get(E).push(I):B.storage.set(E,[I]);return I}))})};
Yjc.prototype.deleteLink=function(h,E,g){var Z=this;return _.a(function(M){wQI(Z.galCache,h,g);return M.return(Z.galService.deleteLink({serviceId:h,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:E,linkName:g}).then(function(){return!0}))})};var VJZ=function(h,E){var g=this;this.validator=h;this.msgHandler=E;this.closedPopupTimeout=this.JSC$19429_rejectCb=this.JSC$19429_resolveCb=this.popup=null;this.JSC$19429_receiveMessage=function(Z){if(Z!==null&&(Z=Z.event_,Z.source===g.popup)){var M=Z.data;if(g.validator(M,Z.origin)){var W;(W=g.msgHandler)!=null&&W.call(g,M)||(g.JSC$19429_resolveCb!==null&&g.JSC$19429_resolveCb(M),sji(g))}}}};
VJZ.prototype.open=function(h,E){var g=this;this.popup!==null&&kcX(this);return new Promise(function(Z,M){g.JSC$19429_resolveCb=Z;g.JSC$19429_rejectCb=M;g.popup=_.EZ(window,h,"",E);_.vK(window,"message",g.JSC$19429_receiveMessage,!1,g);yOc(g)})};
var kcX=function(h,E){h.JSC$19429_rejectCb!==null&&h.JSC$19429_rejectCb(E);sji(h)},sji=function(h){h.closedPopupTimeout&&(h.closedPopupTimeout.cancel(),h.closedPopupTimeout=null);
h.popup&&h.popup.close();_.r6(window,"message",h.JSC$19429_receiveMessage,!1,h);h.popup=null;h.JSC$19429_resolveCb=null;h.JSC$19429_rejectCb=null},yOc=function(h){h.closedPopupTimeout=_.rbA(100).then(function(){h.popup?h.popup.closed?FsX(h):yOc(h):kcX(h,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},FsX=function(h){h.closedPopupTimeout=_.rbA(100).then(function(){kcX(h,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var AOC=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),T6R=function(h,E,g,Z,M,W,z,c,I,B){var U=this;this.serviceId=h;this.sessionId=E;this.galService=g;this.oauthDetails=Z;this.galLogger=M;this.interactionMode=W;this.redirectServiceUrl=z;this.consentLanguageKeys=c;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=B;this.started=!1;this.JSC$19435_dataValidator=function(L,
d){var C=AOC.has(d);C||U.redirectServiceUrl===void 0||(C=U.redirectServiceUrl===d);return C?L.sentinel==="gdi":!1}};
T6R.prototype.complete=function(){var h=this,E;return _.a(function(g){if(h.interactionMode!==1)return g.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=U_.getRedirectStateFromUri();return E===null?g.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):g.return(bAG(h,E))})};
T6R.prototype.start=function(){var h=this,E;return _.a(function(g){if(h.started)return g.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.mj(h.oauthDetails,1))return g.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(h.interactionMode===1)return U_.setLocation(_.mj(h.oauthDetails,1)),g.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));h.started=!0;h.galLogger.logStateTransition(5);
E=U_.getPostMessagePopup(h.JSC$19435_dataValidator);return g.return(E.open(_.mj(h.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(Z){h.started=!1;var M=h.galLogger;if((Z==null?void 0:Z.error)!==void 0)throw M.logInternalEvent(59),Error("qk");if((Z==null?void 0:Z.redirect_state)===void 0)throw M.logInternalEvent(131),Error("rk");return bAG(h,Z.redirect_state)}).catch(function(Z){h.started=
!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var bAG=function(h,E){return _.a(function(g){return g.return(uYJ(h.galService,{serviceId:h.serviceId,sessionId:h.sessionId,dynamicUrlParameters:h.dynamicUrlParameters,redirectState:E,consentLanguageKeys:h.consentLanguageKeys,partnerConfigMinReadTimestamp:h.partnerConfigMinReadTimestamp}).then(function(Z){var M={statusCode:1,link:l9Z(Z.getLink())};jaR(_.fW(Z,3))!==void 0&&(M.callerState=jaR(_.fW(Z,3)));h.galLogger.logInternalEvent(134);return M}))})},U_={getPostMessagePopup:function(h){return new VJZ(h)},
getRedirectStateFromUri:function(){var h=_.T8(U_.getLocation()).fragment_;return(new _.j_(h)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(h){_.chM(window.location,_.Yr(h))},
createOAuthFlow:function(h,E){return new T6R(h.serviceId,h.sessionId,h.galService,E,h.galLogger,h.interactionMode,h.redirectServiceUrl,h.consentLanguageKeys,h.dynamicUrlParameters,h.partnerConfigMinReadTimestamp)}};var Qjc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Qjc,_.GN);var hpi=_.CM(Qjc);var Esc=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),gsi=function(h,E,g,Z,M,W,z,c,I){var B=this;this.serviceId=h;this.sessionId=E;this.galService=g;this.gsiWebFlowDetails=Z;this.colorScheme=M;this.showCloseOption=W;this.galLogger=z;this.interactionMode=c;this.redirectServiceUrl=I;this.started=!1;this.JSC$19447_dataValidator=function(U,L){var d=Esc.has(L);d||B.redirectServiceUrl===
void 0||(d=B.redirectServiceUrl===L);return d?U.sentinel==="gal":!1};
this.logEventProcessor=function(U){return U.result?(U=JkG(U.result))?e9U(B.galLogger,U):!1:!1}};
gsi.prototype.complete=function(){var h=this,E,g;return _.a(function(Z){if(h.interactionMode!==1)return Z.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=Lq.getRedirectStateFromUri();if(E===void 0)return h.galLogger.JSC$19387_logErrorEvent(131),Z.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return g=Zri(h,E),Z.return(M_0(h,g))}catch(M){return Z.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
gsi.prototype.start=function(){var h=this,E;return _.a(function(g){if(h.started)return g.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.mj(h.gsiWebFlowDetails,1))return g.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(h.interactionMode===1)return Lq.setLocation(W9c(h,_.mj(h.gsiWebFlowDetails,1))),g.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
h.started=!0;E=Lq.getPostMessagePopup(h.JSC$19447_dataValidator,h.logEventProcessor);return g.return(E.open(W9c(h,_.mj(h.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(Z){h.started=!1;if((Z==null?void 0:Z.result)===void 0)throw h.galLogger.JSC$19387_logErrorEvent(131),Error("rk");Z=Zri(h,Z.result);return M_0(h,Z)}).catch(function(Z){h.started=!1;
return Z.errorCode!==void 0?{statusCode:Z.errorCode,statusMessage:Z.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var W9c=function(h,E){h=["result_channel",h.interactionMode===1?"2":"1","color_scheme",q8G(h.colorScheme),"show_close_option",h.showCloseOption];return Tr0(E,h)},M_0=function(h,E){if(E!==null&&_.eP(E,PS,2)){var g,Z=E==null?void 0:(g=_.iK(E,PS,2))==null?void 0:_.vW(g,2);
Z&&h.galLogger.JSC$19387_logErrorEvent(tlR(Z));return vDR(_.iK(E,PS,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 h.galService.getLink({serviceId:h.serviceId,sessionId:h.sessionId,consistencyKey:_.mj(E,1)}).then(function(M){M=l9Z(M);h.galLogger.logInternalEvent(134);return{statusCode:1,link:M}})},Zri=function(h,E){E=hpi(E);
if(!_.eP(E,PS,2)&&_.mj(E,1)==="")throw h.galLogger.JSC$19387_logErrorEvent(5),Error("sk");return E},Lq={getPostMessagePopup:function(h,E){return new VJZ(h,E)},
getRedirectStateFromUri:function(){return _.b4(_.T8(Lq.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(h){_.chM(window.location,_.Yr(h))},
createStreamlinedFlow:function(h,E){return new gsi(h.serviceId,h.sessionId,h.galService,E,h.colorScheme,h.showCloseOption,h.galLogger,h.interactionMode,h.redirectServiceUrl)}};var Fbp=function(){var h=_.SoZ("GAL");this.storage=h?new _.wf(h):null};
Fbp.prototype.getSession=function(h){if(this.storage!==null)try{var E=this.storage.get("SAVED_SESSION");if(E===void 0)return null;if(E.serviceId===h)return E}catch(g){}return null};var sl=function(){};
_.f(sl,$gG);sl.prototype.logStateTransition=function(){};
sl.prototype.logInternalEvent=function(){};
sl.prototype.JSC$19387_logErrorEvent=function(){};var p50=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(p50,_.GN);p50.prototype.getCompletionUrl=function(){return _.mj(this,15)};var Ve=function(h,E,g,Z,M,W){this.serviceId=h;this.environment=E;this.sessionId=g;this.colorSchemeSelected=Z;this.colorThemeDisplayed=M;this.JSC$19460_transport=W;this.currentState=1};
_.f(Ve,$gG);Ve.prototype.logStateTransition=function(h){var E=G7x(this);E=_.oI(E,3,this.currentState);E=_.oI(E,1,h);this.currentState=h;h=Z$C(1);this.dispatch(E,h)};
Ve.prototype.logInternalEvent=function(h){h=Z$C(h);this.dispatch(G7x(this),h)};
Ve.prototype.JSC$19387_logErrorEvent=function(h){var E=G7x(this);E=_.oI(E,1,10);h=Z$C(h);this.dispatch(E,h)};
var G7x=function(h){var E=new p50;E=_.oI(E,1,h.currentState);E=_.ln(E,7,h.serviceId);var g,Z;var M=((g=window)==null?0:(Z=g.location)==null?0:Z.href)?_.T8(window.location.href).JSC$10033_domain_:"NO_PACKAGE_NAME";g=_.ln(E,8,M);g=_.oI(g,6,h.environment);g=_.ln(g,5,"100");g=_.oI(g,11,h.colorSchemeSelected);return _.oI(g,12,h.colorThemeDisplayed)};
Ve.prototype.dispatch=function(h,E){E===void 0&&(E=new _.JO);var g=E;h=h.serialize();g=_.ln(g,8,h);_.t1(g,12,this.sessionId);this.JSC$19460_transport.dispatch(E)};var zpC=function(h,E){this.loggerType=h;this.sessionIndex=E!=null?E:0},aYJ;
zpC.prototype.create=function(h,E,g,Z,M){switch(this.loggerType){case 0:return new sl;case 1:return aYJ||(aYJ=(new _.L8(555,this.sessionIndex.toString())).build()),new Ve(h,E,g,Z,M,aYJ);default:_.Vk(this.loggerType,"unknown logger type")}};var je=[6,2,3,1],hbG=new Map([[4,1],[1,6],[2,2],[3,3]]),Hmi={statusCode:7,statusMessage:"Failed to create flow object"},kvC=function(h,E,g,Z,M,W,z,c,I,B){this.serviceId=h;this.sessionId=E;this.config=g;this.galService=Z;this.JSC$19467_linkingSession=M;this.googleScopes=W;this.callerState=z;this.consentLanguageKeys=c;this.dynamicUrlParameters=I;this.partnerConfigMinReadTimestamp=B;this.currentFlow=0;Z=this.JSC$19467_linkingSession;M=new Set;_.eP(Z,XpX,1)&&M.add(1);_.eP(Z,yoU,2)&&_.eP(Z,Y8U,6)&&M.add(2);
_.eP(Z,kbU,3)&&_.eP(Z,Y8U,6)&&M.add(3);_.eP(Z,Yp0,4)&&M.add(6);this.supportedFlows=M;Z=g.loggerType;M=g.clientEnvironment;a:{W=g.colorScheme;switch(W){case 0:W=1;break a;case 1:W=2;break a;case 2:W=3;break a;default:_.Vk(W)}W=void 0}a:{z=g.colorScheme;z=nDG(z);switch(z){case 0:z=1;break a;case 1:z=2;break a;default:_.Vk(z)}z=void 0}this.galLogger=(new zpC(Z,g.authUser)).create(h,M,E,W,z)},irx=function(h){return new Promise(function(E){var g,Z,M,W,z,c,I,B,U,L;
return _.a(function(d){switch(d.nextAddress){case 1:g=stJ(h.currentFlow,h.supportedFlows),Z=!1,M=new XQJ(h.JSC$19467_linkingSession,h.config.dataUsageNoticeConfig);case 2:if(g===void 0){d.jumpTo(4);break}_.CX(d,5);var C=M,q=g,w=void 0;Z?q===1&&(w=C.displayInfoMap.get(2)):q===2||q===3?w=C.displayInfoMap.get(1):q===1&&(w=C.displayInfoMap.get(3));W=w?w:[];z=h.consentLanguageKeys;c=_.G(W);I=c.next();case 7:if(I.done)return h.currentFlow=g,d.yield(Kb0(c2x(h,z)),11);B=I.value;return d.yield(S8Z(B,h.config.dataUsageNoticeConfig.uiAdapter,
h.config.colorScheme,h.galLogger),10);case 10:U=d.yieldResult;if(U.statusCode!==1)return AkC(h.serviceId),h.currentFlow=0,E(BS({statusCode:U.statusCode,statusMessage:U.statusMessage},h.callerState)),d.return();U.consentLanguageKeys!==void 0&&(z=U.consentLanguageKeys);I=c.next();d.jumpTo(7);break;case 11:L=d.yieldResult;if(L.statusCode!==10)return L.statusCode!==6&&(AkC(h.serviceId),h.currentFlow=0),L.statusCode!==1&&h.callerState!==void 0&&(L.callerState=h.callerState),E(L),d.return();_.bN(d,6);break;
case 5:_.th(d);case 6:g=stJ(h.currentFlow,h.supportedFlows);Z=!0;d.jumpTo(2);break;case 4:AkC(h.serviceId),h.currentFlow=0,E(BS({statusCode:12,statusMessage:"Linking failed"},h.callerState)),_.SK(d)}})})},utU=function(h,E,g){h.currentFlow=E;
return OmU(c2x(h,g)).then(function(Z){return Z.statusCode===10&&h.config.interactionMode===1&&stJ(h.currentFlow,h.supportedFlows)!==void 0?irx(h):Z})},c2x=function(h,E){return{flowParams:{serviceId:h.serviceId,
sessionId:h.sessionId,galService:h.galService,galLogger:h.galLogger,interactionMode:h.config.interactionMode,redirectServiceUrl:h.config.redirectServiceUrl,colorScheme:h.config.colorScheme,consentLanguageKeys:E,dynamicUrlParameters:h.dynamicUrlParameters,showCloseOption:h.config.showCloseOption,partnerConfigMinReadTimestamp:h.partnerConfigMinReadTimestamp},currentFlow:h.currentFlow,config:h.config,session:h.JSC$19467_linkingSession,googleScopes:h.googleScopes,callerState:h.callerState}};var gAZ=function(h,E){this.config=h;this.galService=E.getService();this.JSC$19480_galRepository=E.JSC$19498_galRepository};
gAZ.prototype.getLink=function(h,E){return osC(this,h,E)};
var osC=function(h,E,g){return h.JSC$19480_galRepository.getLink({serviceId:E,scopes:void 0,capabilities:void 0,linkName:g}).then(function(Z){return{statusCode:1,link:Z}}).catch(function(Z){return{statusCode:EAG(Z.code),
statusMessage:Z.message}})};
gAZ.prototype.deleteLink=function(h,E){return this.JSC$19480_galRepository.deleteLink(h,this.config.accountLinkingEntryPoint,E).then(function(){return{statusCode:1}}).catch(function(g){return{statusCode:EAG(g.code),
statusMessage:g.message}})};
gAZ.prototype.startLinkingSession=function(h){var E=h.serviceId;var g=h.sessionId;return ykI({serviceId:E,sessionId:g!==void 0?g:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:h.loginHint,callerState:h.callerState,consentLanguageKeys:h.consentLanguageKeys,linkName:h.linkName,dynamicUrlParameters:h.dynamicUrlParameters,partnerConfigMinReadTimestamp:h.partnerConfigMinReadTimestamp})};var kk=function(h,E,g,Z,M,W,z){this.apiKey=E;this.authUser=g;this.oauthToken=Z;this.bucket=M;this.locale=W;this.galSdkEventHandler=z;if(Z===void 0){if(E===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new fD0(h)};
kk.prototype.deleteLink=function(h){var E=h.serviceId;var g=h.sessionId;var Z=h.accountLinkingEntryPoint;var M=h.linkName;var W=this,z;return _.a(function(c){var I=(new Sa).setHeader(W.getHeader(g));var B=IYC({serviceId:E,linkName:M});I=_.fM(I,2,B);z=_.nW(I,3,Z);return c.return(W.makeRequest(W.galServiceClient.deleteLink,z,[1,3],[2,4]))})};
var uYJ=function(h,E){var g=E.serviceId;var Z=E.sessionId;var M=E.dynamicUrlParameters;var W=E.redirectState;var z=E.consentLanguageKeys;var c=E.partnerConfigMinReadTimestamp;var I;return _.a(function(B){var U=(new wd).setHeader(h.getHeader(Z,M));U=_.FD(U,2,g);I=_.FD(U,4,W);z!==void 0&&_.FD(I,5,z);c!==void 0&&_.fM(I,6,c);return B.return(h.makeRequest(h.galServiceClient.JSC$19366_finishOAuth,I,[1,3],[2,4]))})};
kk.prototype.getLink=function(h){var E=h.serviceId;var g=h.sessionId;var Z=h.scopes;var M=h.capabilities;var W=h.consistencyKey;var z=h.linkName;var c=this,I;return _.a(function(B){var U=(new D2).setHeader(c.getHeader(g)),L=IYC({serviceId:E,scopes:Z,capabilities:M,linkName:z});I=_.fM(U,2,L);W!==void 0&&(U=xGG(),U=_.FD(U,2,W),_.fM(I,3,U));return B.return(c.makeRequest(c.galServiceClient.getLink,I,[1,3],[2,4]))})};
var nYG=function(h,E){var g=E.serviceId;var Z=E.sessionId;var M=E.googleScopes;var W=E.consistencyKey;var z;return _.a(function(c){var I=(new xk).setHeader(h.getHeader(Z));I=_.FD(I,2,g);var B=Array.from(M.values());I=_.QG(I,3,B,_.LU);B=xGG();B=_.FD(B,2,W);z=_.fM(I,4,B);return c.return(h.makeRequest(h.galServiceClient.JSC$19366_depositGoogleCredential,z,[1,3],[2,4]))})};
kk.prototype.startLinkingSession=function(h){var E=h.serviceId;var g=h.sessionId;var Z=h.scopes;var M=h.capabilities;var W=h.loginHint;var z=h.supportedFlows;var c=h.completionUrl;var I=h.usePingPong;var B=h.twoWayLinking;var U=h.accountLinkingEntryPoint;var L=h.callerState;var d=h.consentLanguageKeys;var C=h.googleScopes;var q=h.dataUsageNoticeConfig;var w=h.linkName;var r=h.dynamicUrlParameters;var v=h.partnerConfigMinReadTimestamp;var H=this,u,k;return _.a(function(y){if(M!==void 0&&Z!==void 0)throw Error("pk");
var A=(new Tk0).setHeader(H.getHeader(g,r));u=_.FD(A,2,E);w!==void 0&&_.FD(u,14,w);if(M!==void 0){A=u;var E4=Array.from(M.values());_.QG(A,5,E4,_.LU)}else Z!==void 0&&(A=u,E4=Array.from(Z.values()),_.QG(A,3,E4,_.LU));c!==void 0&&_.FD(u,6,c);I!==void 0&&_.OH(u,15,I);z!==void 0&&(A=u,E4=Array.from(z.values()),_.QG(A,4,E4,_.gI));if(B!==void 0){if(B&&(!C||C.size===0))throw Error("uk");_.OH(u,8,B)}U!==void 0&&_.nW(u,9,U);W!==void 0&&_.FD(u,13,W);L!==void 0&&(A=u,E4=(new TextEncoder).encode(L),_.hL(A,12,
_.xM(E4,!1),_.SF()));d!==void 0&&_.FD(u,16,d);v!==void 0&&_.fM(u,18,v);if(q!==void 0&&q.size>0||C!==void 0&&C.size>0)k=new AoU,C!==void 0&&C.size>0&&(A=k,E4=Array.from(C.values()),_.QG(A,1,E4,_.LU)),q!==void 0&&(q.has(0)&&_.rCZ(k,2,_.gI,1,_.ZR),q.has(1)&&_.rCZ(k,2,_.gI,2,_.ZR)),_.fM(u,17,k);return y.return(H.makeRequest(H.galServiceClient.startLinkingSession,u,[1],[2]))})};
kk.prototype.getMetadata=function(){var h=this,E,g;return _.a(function(Z){E={};h.useFpa?(E["X-Goog-Api-Key"]=h.apiKey,E["X-Goog-AuthUser"]=h.authUser!==void 0?h.authUser.toString():"0",(g=_.hqz([]))&&(E.Authorization=g)):E.Authorization="Bearer "+h.oauthToken;h.locale&&(E["accept-language"]=h.locale);return Z.return(E)})};
kk.prototype.makeRequest=function(h,E,g,Z){var M=this,W;return _.a(function(z){if(z.nextAddress==1)return z.yield(M.getMetadata(),2);W=z.yieldResult;Rpx(M,g);return z.return(h.bind(M.galServiceClient)(E,W).finally(function(){Rpx(M,Z)}))})};
var Rpx=function(h,E){h.galSdkEventHandler!==void 0&&E.forEach(function(g){h.galSdkEventHandler.onEvent(g)})};
kk.prototype.getHeader=function(h,E){var g=new fa;h=_.hL(g,2,_.MZ(h),0);h=_.nW(h,5,3);E=_.QG(h,8,E,_.LU);this.bucket!==void 0&&_.FD(E,1,this.bucket);return E};
var IYC=function(h){var E=h.serviceId;var g=h.scopes;var Z=h.capabilities;h=h.linkName;if(Z!==void 0&&g!==void 0)throw Error("pk");var M=new tIU;E=_.FD(M,1,E);Z!==void 0?(g=Array.from(Z.values()),_.QG(E,5,g,_.LU)):g!==void 0&&(g=Array.from(g.values()),_.QG(E,3,g,_.LU));h!==void 0&&_.FD(E,6,h);return E};var Z3C=function(h){this.galService=new kk(h.alsDomain,h.apiKey,h.authUser,h.oauthToken,h.bucket,h.locale,h.galSdkEventHandler);this.JSC$19498_galRepository=new Yjc(this.galService)};
Z3C.prototype.getService=function(){return this.galService};var PGJ=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(PGJ,_.GN);var BGC=function(h){var E=new PGJ;return _.oI(E,1,h)};
PGJ.prototype.setErrorMessage=function(h){return _.ln(this,2,h)};var U$x=[0,_.Gb,_.gk,_.Gb];var ye=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ye,_.GN);var L9J=[0,[1,2,3],_.pz,[0,ngX,sVc,-1],_.pz,[0,YKG,-1],_.MG];var jbU=[0,_.Qj,1,_.Gb,_.gk,-1,1,_.L4a,_.TZ,_.Gb,-1,L9J];var d$i=[0,_.Gb,[0,_.L4a,_.TZ,[0,_.gk]],_.ho,[0,_.Gb,-1]];var i9=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(i9,_.GN);var CGp=[0,_.gk,_.Gb,-2,_.Qj,_.Gb,_.Qj,_.Gb,-2,1,_.ho];var J20=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(J20,_.GN);var epc=[0,_.Qj];var qfi=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(qfi,_.GN);var fYX=[0,_.Gb,d$i,epc,CGp,jbU];var rei=_.LM(qfi,fYX);var NG0=[0,N60];var OuI=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(OuI,_.GN);var t_X=[0,[1,3],ysJ,_.Gb,ysJ];var aB=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(aB,_.GN);var SfG=[0,_.Gb];var x$c=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(x$c,_.GN);var co=function(h){return _.KW(h,PGJ,2,zE)},w5i=function(h){var E=new x$c;
return _.No(E,2,zE,h)},zE=[1,
2];var D$I=[0,zE,_.pz,SfG,_.pz,U$x,_.WF,t_X,1,_.Gb,NG0];var lYX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(lYX,_.GN);var m$i=function(h){var E=new lYX;return _.No(E,3,r2J,h)},r2J=[2,
3];var Fk=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(Fk,_.GN);var vsG=function(h,E){return _.fM(h,2,E)},HrG=function(h,E){return _.fM(h,8,E)},$$U=function(h,E){return _.fM(h,3,E)};var K9I=[0,_.Gb,D$I,fYX,_.oj,[0,[5,6,7],[0,_.Gb,-2],[0,_.Qj,_.Gb,_.gk],[0,L9J],[0,_.gk,_.Gb,-1,_.i0,_.Gb],_.pz,[0,[0,_.Qj],_.Gb,-1],_.pz,[0,[3,4],_.Gb,-1,_.pz,[0,[0,_.Gb,_.ho]],_.pz,[0,[0,[0,[1,2],_.pz,[0],_.pz,[0]]]]],_.pz,[0,_.Gb]],_.oj,-1,[0,r2J,_.Gb,_.pz,SfG,_.pz,U$x,_.WF,t_X,[0,N60]]];var OrJ=_.LM(Fk,K9I),nsp=_.jL(K9I);var X5X=function(){_.wO.call(this)};
_.f(X5X,_.wO);X5X.prototype.init=function(){};
new X5X;var YfC=_.uz(["data-"]),sbI=_.uz(["aria-"]),V_U=_.uz(["aria-"]),AE=function(h,E){this.isLatencyMeasurementExperiment=h===void 0?!1:h;this.enableDialogA11yFix=E===void 0?!1:E;this.JSC$19527_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.grm(_.MN.location.href)},v7x=function(h,E){h.onConsentPrimitiveShownCallback=E},k7I=function(h,E){return h.overriddenIframeLoadTimeout?h.overriddenIframeLoadTimeout:E!==void 0?E:5E3},$Tp=function(h){if(h.prewarmPromise!==void 0)return h.prewarmPromise;
h.prewarmPromise=new Promise(function(E,g){TE(h,1);y2p(h,F9x(h,!0),A2I(h));h.iframe?h.prewarmChannel||TGX(h,h.iframe,E):g(Error("vk"))});
h.prewarmPromise.finally(function(){h.prewarmPromise=void 0});
return h.prewarmPromise};
AE.prototype.showPrimitive=function(){var h=this;if(this.consentPromise!==void 0)return this.consentPromise;var E=Date.now();brC(this,E);this.consentPromise=new Promise(function(g,Z){TE(h,0,E);var M=h.isDarkTheme();h.isLatencyMeasurementExperiment||h.initialLoadingStrategy===1||h.initialLoadingStrategy===2||(h.loadingBar||(h.loadingBar=Gwx(getComputedStyle(document.body).direction==="rtl",M),h.loadingBar.style.position="fixed",h.loadingBar.style.zIndex="15000"),document.body.appendChild(h.loadingBar));
y2p(h,F9x(h),A2I(h));h.iframe?h.channel||uE0(h,h.iframe,g,Z):(Qb0(h),Z(Error("vk")))});
this.consentPromise.finally(function(){h.consentPromise=void 0});
return this.consentPromise};
var uE0=function(h,E,g,Z){var M,W;_.a(function(z){switch(z.nextAddress){case 1:TE(h,3);M=!1;setTimeout(function(){if(!M){Qb0(h);heG(h);EFp(h);var c=BGC(7).setErrorMessage("Timeout connecting to iframe");g(HrG(vsG(new Fk,w5i(c)),m$i(c)))}},k7I(h,gFR(h)));
if(!h.prewarmPromise){z.jumpTo(2);break}_.CX(z,3);return z.yield(h.prewarmPromise,5);case 5:_.bN(z,2);break;case 3:_.th(z),W=BGC(4).setErrorMessage("Error while prewarming."),g(HrG(vsG(new Fk,w5i(W)),m$i(W)));case 2:h.prewarmChannel&&h.prewarmChannel.send(nsp($$U(new Fk,h.consentPrimitiveRequest))),h.channel=_.iY({destination:h.JSC$19527_win,iframe:E,origin:ZbX(h),channelName:"cpw",onEstablished:function(){M=!0;Qb0(h);h.isLatencyMeasurementExperiment||(h.JSC$19527_previousBodyOverflow=document.body.style.overflow,
h.JSC$19527_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,h.JSC$19527_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",h.enableDialogA11yFix&&window.addEventListener("blur",h.focusChangeListener));var c=h.iframe;c.style.bottom="0";c.style.position="fixed";c.style.right="0";c.style.border="none";c.style.left="0";c.style.top=
"0";c.style.zIndex="5000";c.style.pointerEvents="";c.style.visibility="";h.initialLoadingStrategy===2||h.initialLoadingStrategy===3?TE(h,4):TE(h,6);var I;(I=h.onConsentPrimitiveShownCallback)==null||I.call(h)},
onMessage:function(c){c=OrJ(c.data);switch(_.vW(c,1)){case 1:heG(h);var I=zbI(_.iK(c,_.Hg,7));I&&(h.initialLoadingStrategy!==2&&h.initialLoadingStrategy!==3||TE(h,6,I),TE(h,5,I));if(I=zbI(_.iK(c,_.Hg,6)))TE(h,7,I),TE(h,8);var B,U;((B=_.iK(c,x$c,2))==null?void 0:_.ts(B,zE))!==0&&((U=_.iK(c,lYX,8))==null?void 0:_.ts(U,r2J))!==0||Z(Error("wk"));g(c);break;case 2:EFp(h)}}}),_.SK(z)}})},TGX=function(h,E,g){h.prewarmChannel=_.iY({destination:h.JSC$19527_win,
iframe:E,origin:ZbX(h),channelName:"pwcp",onEstablished:function(){TE(h,2);g()}})},ZbX=function(h){var E=_.lx(h.src).toString();
return E&&E.indexOf("://")<0&&E.indexOf("//")!==0?h.origin:_.grm(E)},F9x=function(h,E){E=E===void 0?!1:E;
var g,Z=new Map([["origin",h.origin],["hl",(g=Mbx(h))!=null?g:null]]);E&&Z.set("pw","1");E=_.G([["cpr",h.consentPrimitiveRequest.serialize()]]);for(g=E.next();!g.done;g=E.next()){var M=_.G(g.value);g=M.next().value;M=M.next().value;Z.set(g,M)}h.isDarkTheme()&&Z.set("color_scheme","dark");return _.U6(h.src,Z)},Qb0=function(h){h.isLatencyMeasurementExperiment||h.loadingBar&&document.body.removeChild(h.loadingBar)};
AE.prototype.getSrc=function(){var h=_.gf(this.origin),E;var g=(E=_.iK(this.consentPrimitiveRequest,J20,3))==null?void 0:_.i4(E,1);E="consent.google.com";g=g?"/u/"+encodeURIComponent(g.toString()):"";(h==null?0:h.endsWith("youtube.com"))?E="consent.youtube.com":(h=h==null?void 0:h.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(E="consent.google."+((h[1]?"co.":"")+encodeURIComponent(h[2])));return _.wU("https://"+E+"/signedin"+g+"/landing")};
var y2p=function(h,E,g){h.iframe||(h.iframe=document.createElement("iframe"),h.iframe.style.width="100%",h.iframe.style.height="100%",g!==112496729&&(h.iframe.style.colorScheme="auto"),h.isLatencyMeasurementExperiment&&(h.iframe.style.display="none"),_.hh(h.iframe,E),h.iframe.setAttribute("jsname","C5o1O"),WoX(h.iframe),document.body.appendChild(h.iframe))},WoX=function(h){h.style.bottom="-200vh";
h.style.position="fixed";h.style.right="-200vw";h.style.border="";h.style.left="";h.style.top="";h.style.zIndex="";h.style.pointerEvents="none";h.style.visibility="hidden"},heG=function(h){h.iframe&&(h.isLatencyMeasurementExperiment||(h.JSC$19527_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=h.JSC$19527_previousHtmlOverscroll),h.JSC$19527_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=h.JSC$19527_previousBodyOverscroll),h.JSC$19527_previousBodyOverflow!==
void 0&&(document.body.style.overflow=h.JSC$19527_previousBodyOverflow),h.enableDialogA11yFix&&psI(h,!1)),WoX(h.iframe))};
AE.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(psI(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var psI=function(h,E){var g,Z,M=(g=h.iframe)==null?void 0:(Z=g.parentElement)==null?void 0:Z.children;if(M)for(g=0;g<M.length;g++)Z=M[g],Z!==h.iframe&&(E?(Z.hasAttribute("aria-hidden")&&_.zH([_.of(YfC)],Z,"data-old-aria-hidden",Z.getAttribute("aria-hidden")),_.zH([_.of(sbI)],Z,"aria-hidden","true")):(Z.removeAttribute("aria-hidden"),Z.hasAttribute("data-old-aria-hidden")&&(_.zH([_.of(V_U)],Z,"aria-hidden",Z.getAttribute("data-old-aria-hidden")),Z.removeAttribute("data-old-aria-hidden"))))},TE=function(h,
E,g){var Z;
(Z=h.latencyCallback)==null||Z.call(h,{latencyType:E,timestampEpochMillis:g!=null?g:Date.now()})};var G1i=function(h,E,g){AE.call(this,E,g===void 0?!1:g);this.consentPrimitiveRequest=h;h=Mbx(this);_.s5x(h);this.src=this.getSrc();var Z;this.initialLoadingStrategy=(Z=_.iK(this.consentPrimitiveRequest,i9,4))==null?void 0:_.vW(Z,4)},zeJ;
_.f(G1i,AE);var mTG=function(h){var E=_.J("enable_primitive_dialog_aria_hide_siblings");h={request:h,enableDialogA11yFix:E===void 0?!1:E};zeJ||(zeJ=new G1i(h.request,h.isLatencyMeasurementExperiment||_.vW(h.request,1)===2,h.enableDialogA11yFix));return zeJ},Mbx=function(h){var E;
return(E=_.iK(h.consentPrimitiveRequest,i9,4))==null?void 0:_.mj(E,1)},brC=function(h,E){if(!_.eP(h.consentPrimitiveRequest,ye,5)){var g=h.consentPrimitiveRequest,Z=new ye;
_.fM(g,5,Z)}var M;if((M=_.iK(h.consentPrimitiveRequest,ye,5))==null||_.tFO(_.Js(M,8))==null){var W;(W=_.iK(h.consentPrimitiveRequest,ye,5))!=null&&_.t1(W,8,E)}},A2I=function(h){var E;
return(E=_.iK(h.consentPrimitiveRequest,ye,5))==null?void 0:_.i4(E,1)};
G1i.prototype.isDarkTheme=function(){var h;return((h=_.iK(this.consentPrimitiveRequest,i9,4))==null?void 0:_.vW(h,2))===2};
var gFR=function(h){var E;return((E=_.iK(h.consentPrimitiveRequest,i9,4))==null?void 0:_.i4(E,5))||void 0},EFp=function(h){h.channel=void 0;
h.prewarmChannel=void 0;h.iframe&&(document.body.contains(h.iframe)&&document.body.removeChild(h.iframe),h.iframe=void 0);zeJ=void 0},KqI=function(h){return AE.prototype.showPrimitive.call(h).then(function(E){return _.iK(E,x$c,2)})};for(var b9={},a4G=(b9[64]="ma",b9[73]="ogb",b9[89]="cr",b9[21]="test",b9[0]="unkn",b9[137]="con",b9[155]="hl",b9[78]="yt",b9[171]="lp",b9[172]="ap",b9[177]="amo",b9[178]="pqe",b9[74]="gg",b9[1]="gm",b9[140]="am",b9[193]="sc",b9),cBZ=_.G(Object.keys(a4G)),ibx=cBZ.next();!ibx.done;ibx=cBZ.next());var oFc=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(oFc,_.GN);var I4i=[0,[2,3,4],_.Gb,XWG,ysJ,_.MG];var ReX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(ReX,_.GN);var PQI=_.LM(ReX,[0,_.zb,_.gk,_.Gb,_.gk,_.Gb,I4i]);var BhX=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(BhX,_.GN);BhX.prototype.getCommand=function(){return _.vW(this,1)};
var UlG=function(){var h=new BhX;return _.nW(h,1,0)};var Loi=_.jL([0,_.zb,_.gk,[0,_.Gb,_.gk,-1]]);var j2c=new _.SJ("s"),dlc=new _.SJ("t"),CQG=new _.SJ("u"),JBU=new _.SJ("v"),eeG=function(h,E,g){_.xD.call(this,j2c);this.mediaKey=h;this.photoUrl=E;this.photoSource=g};
_.f(eeG,_.xD);var qRI=function(){_.xD.call(this,dlc)};
_.f(qRI,_.xD);var f4U=function(h){h=h===void 0?!1:h;_.xD.call(this,CQG);this.isError=h};
_.f(f4U,_.xD);var NhR=function(){_.xD.call(this,JBU)};
_.f(NhR,_.xD);var tbc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Dlx=function(h){if(typeof h=="string"){if(h.charAt(0)==".")return SRU(h.substr(1));if(h.charAt(0)=="["){var E=tbc.exec(h);h=h.indexOf("=")==-1?void 0:E[3];return xlC(E[1],h)}return wsC(h)}return h},SRU=function(h){return function(E){return E.getAttribute&&_.Ef(E,h)}},xlC=function(h,E){return function(g){return E!==void 0?g.getAttribute&&g.getAttribute(h)==E:g.hasAttribute&&g.hasAttribute(h)}},wsC=function(h){h=h.toUpperCase();
return function(E){return(E=E.tagName)&&E.toUpperCase()==h}},l4G=function(){return!0};var u9=function(h,E){this.JSC$19555_key_=h;this.JSC$19555_value_=E},Qe=function(h){throw Error("xk`"+h.JSC$19555_key_);
},rBI=function(h,E){return new TypeError("yk`"+E+"`"+h.JSC$19555_key_+"`"+h.JSC$19555_value_+"`"+typeof h.JSC$19555_value_)};
u9.prototype.string=function(h){return arguments.length==0?mlZ(this):vFC(this,h)};
var vFC=function(h,E){var g;return(g=Hbi(h))!=null?g:E},mlZ=function(h){var E=Hbi(h);
E===null&&Qe(h);return E},Hbi=function(h){var E=h.JSC$19555_value_;
if(E==null)return null;if(typeof E==="string")return E;throw rBI(h,"string");};
u9.prototype.bool=function(h){if(arguments.length==0){var E=this.optionalBool();E===null&&Qe(this)}else{var g;E=(g=this.optionalBool())!=null?g:h}return E};
u9.prototype.optionalBool=function(){var h=this.JSC$19555_value_;if(h==null)return null;if(typeof h==="boolean")return h;if(typeof h==="string"){h=h.toLowerCase();if(h==="true"||h==="1")return!0;if(h==="false"||h==="0")return!1}throw rBI(this,"boolean");};
u9.prototype.number=function(h){if(arguments.length==0){var E=$lG(this);E===null&&Qe(this)}else E=Kox(this,h);return E};
var Kox=function(h,E){var g;return(g=$lG(h))!=null?g:E},$lG=function(h){var E=h.JSC$19555_value_;
if(E==null)return null;if(typeof E==="number")return E;if(typeof E==="string"){var g=Number(E);if(!isNaN(g)&&(g!==0||E.trim().length!==0))return g}throw rBI(h,"number");};
u9.prototype.toString=function(){return mlZ(this)};
u9.prototype.enum=function(h,E){var g=!0,Z=void 0,M;for(M in h){var W=h[M];g&&(g=!1,Z=typeof W==="number"?Kox(this,E):vFC(this,E));if(W==Z)return Z}JSON.stringify(h);return Z};
u9.prototype.array=function(h){if(arguments.length==0){var E=ObR(this);E===null&&Qe(this);return E}E=ObR(this);return E==null?h:E};
var ObR=function(h){var E=h.JSC$19555_value_;if(E==null)return null;Array.isArray(E)||(typeof E!=="string"?E=[E]:(E=E.trim(),E=E==""?[]:E.split(",").map(function(g){return g.trim()})));
return nFi(h,E)},nFi=function(h,E){var g=h.JSC$19555_key_+"[";
return Array.from(E,function(Z,M){return new u9(g+M+"]",Z)})};
u9.prototype.object=function(h){var E=this.JSC$19555_value_;if(E==null)return h===void 0&&Qe(this),h;if(typeof E==="object"&&E.constructor===Object){h={};var g=this.JSC$19555_key_+".",Z;for(Z in E)h[Z]=new u9(g+Z,E[Z]);return h}throw rBI(this,"object");};var hd=function(h){this.list_=XsZ(h)},XsZ=function(h){if(h instanceof hd)h=h.list_;
else if(h[0]instanceof hd){for(var E=new Set,g=0;g<h.length;g++)for(var Z=_.G(h[g].list_),M=Z.next();!M.done;M=Z.next())E.add(M.value);h=E}return[].concat(_.$E(h))};
_.p=hd.prototype;_.p.each=function(h,E,g){((g===void 0?0:g)?PwJ:_.Tt)(this.list_,h,E);return this};
_.p.size=function(){return this.list_.length};
_.p.isEmpty=function(){return this.list_.length===0};
_.p.get=function(h){return this.list_[h]||null};
_.p.el=function(){return this.list_[0]||null};
_.p.map=function(h,E){return _.O6(this.list_,h,E)};
_.p.equals=function(h){return this===h||_.Tu(this.list_,h.list_)};
_.p.first=function(){return this.list_.length==0?null:new Ew(this.list_[0])};
_.p.last=function(){return this.list_.length==0?null:new Ew(this.list_[this.list_.length-1])};
_.p.find=function(h){var E=[];this.each(function(g){g=g.querySelectorAll(String(h));for(var Z=0;Z<g.length;Z++)E.push(g[Z])});
return new hd(E)};
_.p.parent=function(){var h=[];this.each(function(E){(E=E.parentElement||null)&&!_.nd(h,E)&&h.push(E)});
return new hd(h)};
_.p.children=function(){var h=[];this.each(function(E){E=_.Vm(E);for(var g=0;g<E.length;g++)h.push(E[g])});
return new hd(h)};
_.p.filter=function(h){h=_.i3(this.list_,Dlx(h));return new hd(h)};
_.p.closest=function(h){var E=[],g=Dlx(h),Z=function(M){return _.gQ(M)&&g(M)};
this.each(function(M){(M=_.Vw(M,Z,!0))&&!_.nd(E,M)&&E.push(M)});
return new hd(E)};
_.p.next=function(h){return YR0(this,_.jGM,h)};
_.p.prev=function(h){return YR0(this,FjG,h)};
var YR0=function(h,E,g){var Z=[];var M=g?Dlx(g):l4G;h.each(function(W){(W=E(W))&&M(W)&&Z.push(W)});
return new hd(Z)};
hd.prototype.setClass=function(h){return this.each(function(E){_.h2(E,h)})};
var s20=function(h,E){return h.each(function(g){_.GT(g,E)})},VbX=function(h,E){return h.each(function(g){_.W$(g,E)})};
hd.prototype.toggleClass=function(h,E){return E===!0?s20(this,h):E===!1?VbX(this,h):this.each(function(g){_.Ef(g,h)?_.W$(g,h):_.GT(g,h)})};
hd.prototype.setText=function(h){return this.each(function(E){_.kS(E,h)})};
var k1C=function(h){h.each(function(E){E.removeAttribute("aria-hidden")})};
hd.prototype.getStyle=function(h){if(this.list_.length>0){var E=this.list_[0],g=E.style[_.SN(h)];return typeof g!=="undefined"?g:E.style[_.lRm(E,h)]||""}};
hd.prototype.getData=function(h){if(this.list_.length===0)return new u9(h,null);var E=dHG(this.list_[0],h);return new u9(h,E)};
hd.prototype.focus=function(h){try{h?this.el().focus(h):this.el().focus()}catch(E){}return this};
hd.prototype.click=function(){var h=_.Yp(this.el());if(h.createEvent){var E=h.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,h.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(E)}else h=h.createEventObject(),h.clientX=0,h.clientY=0,h.screenX=0,h.screenY=0,h.altKey=!1,h.ctrlKey=!1,h.shiftKey=!1,h.button=0,this.el().fireEvent("onclick",h)};
var gT=function(h,E,g,Z){function M(c,I,B){var U=I;I&&I.parentNode&&(U=I.cloneNode(!0));c(U,B)}
Z=Z===void 0?!1:Z;if(h.list_.length==1){var W=h.list_[0],z=function(c){return E(c,W)};
g instanceof hd?g.each(z,void 0,Z):Array.isArray(g)?(Z?PwJ:_.Tt)(g,z):z(g);return h}return h.each(function(c){g instanceof hd?g.each(function(I){M(E,I,c)}):Array.isArray(g)?_.Tt(g,function(I){M(E,I,c)}):M(E,g,c)})};
_.p=hd.prototype;_.p.append=function(h){return gT(this,function(E,g){E&&g.appendChild(E)},h)};
_.p.appendTo=function(h){(new hd([h])).append(this);return this};
_.p.remove=function(){return gT(this,function(h,E){_.f8(E)},null)};
_.p.empty=function(){return gT(this,function(h,E){_.XV(E)},null)};
_.p.after=function(h,E){return gT(this,function(g,Z){g&&_.sp(g,Z)},h,!(E===void 0||E))};
_.p.before=function(h){return gT(this,function(E,g){E&&_.YS(E,g)},h)};
_.p.replaceWith=function(h){return gT(this,function(E,g){E&&_.BIk(E,g)},h)};
_.p.toggle=function(h){return this.each(function(E){_.Q_(E,h)})};
_.p.show=function(){return this.toggle(!0)};
_.p.hide=function(){return this.toggle(!1)};
_.p.trigger=function(h,E,g,Z){return yBG(this,h,E,g,Z)};
var yBG=function(h,E,g,Z,M){return h.each(function(W){_.d2z(_.Yp(W)).triggerWizEventInternal(W,E,g,Z,M)})},Ew=function(h,E){h instanceof hd&&(E=h.list_,h=null);
this.list_=XsZ(h!=null?[h]:E)};
_.aV(Ew,hd);_.p=Ew.prototype;_.p.children=function(){return new hd(Array.prototype.slice.call(_.Vm(this.list_[0])))};
_.p.each=function(h,E){h.call(E,this.list_[0],0);return this};
_.p.size=function(){return 1};
_.p.el=function(){return this.list_[0]};
_.p.first=function(){return this};var Zu=function(h,E){E=E===void 0?window:E;this.hostId=h;this.JSC$19566_win=E;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$19566_previousHtmlOverscroll=this.JSC$19566_previousBodyOverscroll=this.JSC$19566_previousBodyOverflow="";this.eventTarget=new _.ms;this.JSC$19566_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
ThC=function(h){var E=FoJ(FoJ(FoJ(new ABp(78),"po"),"hppp"),"hhc");
E.authUser=Number(_.nF("SESSION_INDEX","0"));E.colorScheme=h;return E};
Zu.prototype.getOrigin=function(){return this.origin?this.origin:_.Rb(_.Ib(_.ob(new _.WX,this.JSC$19566_win.location.protocol),this.JSC$19566_win.location.hostname),this.JSC$19566_win.location.port).toString()};
Zu.prototype.getTargetOrigin=function(){return _.Rb(_.Ib(_.ob(new _.WX,this.scheme),this.domain),this.port)};
Zu.prototype.preloadIframe=function(h){var E=this;if(this.iframeLoadPromise===void 0){var g=document.createElement("iframe");this.iframe=g;PqX(g,h);this.iframeLoadPromise=new Promise(function(Z,M){var W=!1,z=function(c){c.stopPropagation();g.removeEventListener("error",z);g.removeEventListener("securitypolicyviolation",z);M(Error("zk",{cause:c}))};
g.addEventListener("error",z);g.addEventListener("securitypolicyviolation",z);setTimeout(function(){W||M(Error("Ak"))},3E4);
bbc(E,g,function(){W=!0;g.removeEventListener("error",z);g.removeEventListener("securitypolicyviolation",z);Z()})});
ucG(this);h=this.getTargetOrigin().toString();g.setAttribute("allow","camera "+h+"; display-capture "+h);this.parentElement.appendChild(g)}return this.iframeLoadPromise};
var Eic=function(h,E){var g,Z;return _.a(function(M){if(M.nextAddress==1)return g=Gwx(getComputedStyle(h.parentElement).direction==="rtl"),h.parentElement.appendChild(g),document.activeElement instanceof HTMLElement&&(h.elementToFocusAfterClose=document.activeElement),_.CX(M,2),M.yield(h.preloadIframe(E),4);if(M.nextAddress!=2){h.parentElement.removeChild(g);h.JSC$19566_previousBodyOverflow=h.parentElement.style.overflow;h.JSC$19566_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
h.JSC$19566_previousBodyOverscroll=h.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";h.parentElement.style.overscrollBehavior="contain";h.parentElement.style.overflow="hidden";var W=h.iframe;W.style.bottom="0";W.style.border="none";W.style.height="100%";W.style.left="0";W.style.position=h.iframePosition;W.style.right="0";W.style.top="0";W.style.width="100%";W.style.zIndex="2202";W.setAttribute("aria-hidden","false");W.setAttribute("aria-modal","true");
h.opened=!0;Q2C(h);return _.bN(M,0)}Z=_.th(M);h.parentElement.removeChild(g);oAU(h.isDarkTheme());h$i(h,!1);throw Error("Bk",{cause:Z});})},h$i=function(h,E){E=E===void 0?!0:E;
h.iframe!==void 0&&(giU(h),document.documentElement.style.overscrollBehavior=h.JSC$19566_previousHtmlOverscroll,h.parentElement.style.overscrollBehavior=h.JSC$19566_previousBodyOverscroll,h.parentElement.style.overflow=h.JSC$19566_previousBodyOverflow,h.elementToFocusAfterClose!==void 0&&(h.elementToFocusAfterClose.focus(),h.elementToFocusAfterClose=void 0),E?ucG(h):(h.parentElement.removeChild(h.iframe),h.iframe=void 0,h.iframeLoadPromise=void 0,h.mainChannel=void 0),h.opened=!1)},giU=function(h){h.backgroundElementsAriaHiddenIsNull&&
(k1C(h.backgroundElementsAriaHiddenIsNull),h.backgroundElementsAriaHiddenIsNull=void 0);
h.backgroundElementsAriaHiddenIsFalse&&(h.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","false")}),h.backgroundElementsAriaHiddenIsFalse=void 0);
h.backgroundElementsWithoutInert&&(h.backgroundElementsWithoutInert.each(function(E){E.removeAttribute("inert")}),h.backgroundElementsWithoutInert=void 0)},Q2C=function(h){h.backgroundElementsAriaHiddenIsNull=(new Ew(h.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")===null&&E!==h.iframe});
h.backgroundElementsAriaHiddenIsNull.each(function(E){E.setAttribute("aria-hidden","true")});
h.backgroundElementsAriaHiddenIsFalse=(new Ew(h.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")==="false"&&E!==h.iframe});
h.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","true")});
h.backgroundElementsWithoutInert=(new Ew(h.iframe.parentElement)).children().filter(function(E){return!E.hasAttribute("inert")&&E!==h.iframe});
h.backgroundElementsWithoutInert.each(function(E){E.setAttribute("inert","true")})},ucG=function(h){h=h.iframe;
h.style.bottom="-1000px";h.style.position="fixed";h.style.right="-1000px";h.style.border="";h.style.height="";h.style.left="";h.style.top="";h.style.width="";h.style.zIndex="";h.setAttribute("aria-hidden","true");h.setAttribute("aria-modal","false")};
Zu.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var ABp=function(h,E){Zu.call(this,a4G[h],E);this.options=[];this.style=""};
_.f(ABp,Zu);var Z20=function(h){h.style="youtube";return h},MuG=function(h,E){h.eventTarget.listen(CQG,E);
return h},WCR=function(h,E){h.eventTarget.listen(j2c,E);
return h},FoJ=function(h,E){h.options.push(E);
return h},pCp=function(h){var E=[h.getOrigin()];
h.ancestorOrigins&&E.push.apply(E,_.$E(h.ancestorOrigins));var g=new _.WX(h.JSC$19566_win.location.href),Z=h.startUrl?h.startUrl:h.options.includes("po")?"profile-picture/art":"profile-picture";E=oB(_.P5(h.getTargetOrigin(),Z),"origin",E);h.startUrl&&_.u4(E,"startPath",h.startUrl);h.authUser>0&&_.u4(E,"authuser",h.authUser);h.pageId!==void 0&&_.u4(E,"pageId",h.pageId);_.u4(E,"hostId",h.hostId);h.jsMode!==void 0&&_.u4(E,"jsmode",h.jsMode);h.rectangleRatio!==void 0&&_.u4(E,"rectangleRatio",h.rectangleRatio);
h.options.length>0&&_.u4(E,"opts",h.options.join(","));try{for(var M=_.G(["utm_source","utm_medium","utm_campaign","utm_content"]),W=M.next();!W.done;W=M.next()){var z=W.value;_.b4(g,z)&&_.u4(E,z,_.b4(g,z))}var c,I=(c=h.hl)!=null?c:_.b4(g,"hl");I!==void 0&&_.u4(E,"hl",I)}catch(B){if(!(B instanceof URIError))throw B;}h.colorScheme&&_.u4(E,"theme",h.colorScheme);h.style&&_.u4(E,"style",h.style);return E},GCU=function(h,E){h.mainChannel=_.iY({destination:h.JSC$19566_win,
iframe:E,origin:h.getTargetOrigin().toString(),channelName:"ow",onMessage:function(g){g=PQI(g.data);if(E===h.iframe)switch(_.vW(g,1)){case 1:h.eventTarget.dispatchEvent(new f4U);h$i(h);break;case 2:h.eventTarget.dispatchEvent(new eeG(_.mj(g,4),_.mj(g,2),_.vW(g,5),_.iK(g,oFc,6)));break;case 0:var Z;h.eventTarget.dispatchEvent(new qRI(_.mj(g,2),(Z=_.vW(g,3))!=null?Z:0));break;case 3:h.eventTarget.dispatchEvent(new f4U(!0));h$i(h,!1);break;case 4:h.eventTarget.dispatchEvent(new NhR)}}})},bbc=function(h,
E,g){_.iY({destination:h.JSC$19566_win,
iframe:E,origin:_.Rb(_.Ib(_.ob(new _.WX,h.scheme),h.domain),h.port).toString(),channelName:"owi",onMessage:function(Z){E===h.iframe&&(g!==void 0&&g(),GCU(h,E),h.opened&&h.mainChannel.send(Loi(UlG())),Z.reply(),bbc(h,E))}})};
ABp.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Zu.prototype.preloadIframe.call(this,pCp(this).toString()):this.iframeLoadPromise};
ABp.prototype.openPicker=function(h){var E=this;return _.a(function(g){if(g.nextAddress==1)return E.startUrl=h?h:E.options.includes("po")?"profile-picture/art":"profile-picture",g.yield(Eic(E,pCp(E).toString()),2);if(E.mainChannel){var Z=E.mainChannel,M=Z.send;var W=UlG();W=_.ln(W,2,E.startUrl);M.call(Z,Loi(W))}_.SK(g)})};var z$i=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(z$i,_.GN);_.p=z$i.prototype;_.p.getSize=function(){return ja(this,1)};
_.p.setSize=function(h){return _.OK(this,1,h)};
_.p.getWidth=function(){return ja(this,12)};
_.p.getHeight=function(){return ja(this,13)};
_.p.setCenterCrop=function(h){return _.Ph(this,20,h)};
_.p.getHtml=function(){return _.DW(this,4)};
_.p.getToken=function(){return _.ef(this,24)};
_.p.setToken=function(h){return _.ln(this,24,h)};
_.p.getBackgroundColor=function(){return ja(this,87)};
_.p.hasBackgroundColor=function(){return _.Wc(_.Js(this,87))!=null};
_.p.getStoryboardLevel=function(){return ja(this,109)};var ME=function(h){this.JSC$19574_value_=void 0;this.childNodes_={};if(h){var E=_.GtA(h);h=_.iG(h);for(var g=0;g<E.length;g++)this.set(E[g],h[g])}};
ME.prototype.set=function(h,E){avc(this,h,E,!1)};
ME.prototype.add=function(h,E){avc(this,h,E,!0)};
var avc=function(h,E,g,Z){for(var M=0;M<E.length;M++){var W=E.charAt(M);h.childNodes_[W]||(h.childNodes_[W]=new ME);h=h.childNodes_[W]}if(Z&&h.JSC$19574_value_!==void 0)throw Error("Ck`"+E);h.JSC$19574_value_=g},c9C=function(h,E){for(var g=0;g<E.length;g++)if(h=h.childNodes_[E.charAt(g)],!h)return;
return h};
ME.prototype.get=function(h){return(h=c9C(this,h))?h.JSC$19574_value_:void 0};
ME.prototype.getValues=function(){var h=[];i2X(this,h);return h};
var i2X=function(h,E){h.JSC$19574_value_!==void 0&&E.push(h.JSC$19574_value_);for(var g in h.childNodes_)i2X(h.childNodes_[g],E)};
ME.prototype.getKeys=function(h){var E=[];if(h){for(var g=this,Z=0;Z<h.length;Z++){var M=h.charAt(Z);if(!g.childNodes_[M])return[];g=g.childNodes_[M]}oiJ(g,h,E)}else oiJ(this,"",E);return E};
var oiJ=function(h,E,g){h.JSC$19574_value_!==void 0&&g.push(E);for(var Z in h.childNodes_)oiJ(h.childNodes_[Z],E+Z,g)};
_.p=ME.prototype;_.p.containsKey=function(h){return this.get(h)!==void 0};
_.p.containsValue=function(h){if(this.JSC$19574_value_===h)return!0;for(var E in this.childNodes_)if(this.childNodes_[E].containsValue(h))return!0;return!1};
_.p.clear=function(){this.childNodes_={};this.JSC$19574_value_=void 0};
_.p.remove=function(h){for(var E=this,g=[],Z=0;Z<h.length;Z++){var M=h.charAt(Z);if(!E.childNodes_[M])throw Error("Dk`"+h);g.push([E,M]);E=E.childNodes_[M]}h=E.JSC$19574_value_;for(delete E.JSC$19574_value_;g.length>0;)if(Z=g.pop(),E=Z[0],Z=Z[1],E.childNodes_[Z].isEmpty())delete E.childNodes_[Z];else break;return h};
_.p.clone=function(){return new ME(this)};
_.p.getCount=function(){return uWI(this.getValues())};
_.p.isEmpty=function(){return this.JSC$19574_value_===void 0&&_.Kt.isEmpty(this.childNodes_)};var dmX=function(){if(!IvX){var h=IvX=new ME,E;for(E in R$G)h.add(E,R$G[E])}},IvX,W8=function(h,E){this.types=h;
this.setters=E},R$G={a:new W8([3,
0],[function(h,E){_.Ph(h,21,E)},
function(h,E){_.OK(h,56,E)}]),
al:new W8([3],[function(h,E){_.Ph(h,74,E)}]),
b:new W8([3,0],[function(h,E){_.Ph(h,23,E)},
function(h,E){_.OK(h,38,E)}]),
ba:new W8([0],[function(h,E){_.OK(h,85,E)}]),
bc:new W8([0],[function(h,E){_.OK(h,87,E)}]),
br:new W8([0],[function(h,E){_.OK(h,86,E)}]),
c:new W8([3,0],[function(h,E){_.Ph(h,2,E)},
function(h,E){_.OK(h,39,E)}]),
cc:new W8([3],[function(h,E){_.Ph(h,51,E)}]),
ci:new W8([3],[function(h,E){_.Ph(h,32,E)}]),
ckm:new W8([3],[function(h,E){_.Ph(h,104,E)}]),
cp:new W8([0],[function(h,E){_.OK(h,92,E)}]),
cr:new W8([3],[function(h,E){_.Ph(h,108,E)}]),
cv:new W8([0],[function(h,E){_.OK(h,94,E)}]),
d:new W8([3],[function(h,E){_.Ph(h,3,E)}]),
dc:new W8([5],[function(h,E){_.ln(h,99,E)}]),
df:new W8([3],[function(h,E){_.Ph(h,80,E)}]),
dv:new W8([3],[function(h,E){_.Ph(h,90,E)}]),
e:new W8([0],[function(h,E){_.OK(h,15,E)}]),
em:new W8([0],[function(h,E){_.OK(h,107,E)}]),
f:new W8([4],[function(h,E){_.ln(h,16,E)}]),
fg:new W8([3],[function(h,E){_.Ph(h,34,E)}]),
fh:new W8([3],[function(h,E){_.Ph(h,30,E)}]),
fm:new W8([3],[function(h,E){_.Ph(h,84,E)}]),
fo:new W8([2],[function(h,E){_.II(h,79,_.kM(E))}]),
ft:new W8([3],[function(h,E){_.Ph(h,50,E)}]),
fv:new W8([3],[function(h,E){_.Ph(h,31,E)}]),
g:new W8([3],[function(h,E){_.Ph(h,14,E)}]),
gce:new W8([4],[function(h,E){_.ln(h,112,E)}]),
gd:new W8([3],[function(h,E){_.Ph(h,83,E)}]),
gm:new W8([3],[function(h,E){_.Ph(h,105,E)}]),
h:new W8([3,0],[function(h,E){_.Ph(h,4,E)},
function(h,E){_.OK(h,13,E)}]),
i:new W8([3],[function(h,E){_.Ph(h,22,E)}]),
ic:new W8([0],[function(h,E){_.OK(h,71,E)}]),
id:new W8([3],[function(h,E){_.Ph(h,70,E)}]),
il:new W8([3],[function(h,E){_.Ph(h,96,E)}]),
ip:new W8([3],[function(h,E){_.Ph(h,54,E)}]),
iv:new W8([0],[function(h,E){_.t1(h,75,E)}]),
j:new W8([1],[function(h,E){E=E==null?E:LcU(E);_.II(h,29,E)}]),
k:new W8([3,0],[function(h,E){_.Ph(h,17,E)},
function(h,E){_.OK(h,42,E)}]),
l:new W8([0],[function(h,E){_.OK(h,44,E)}]),
lf:new W8([3],[function(h,E){_.Ph(h,65,E)}]),
lo:new W8([3],[function(h,E){_.Ph(h,97,E)}]),
m:new W8([0],[function(h,E){_.OK(h,63,E)}]),
md:new W8([3],[function(h,E){_.Ph(h,91,E)}]),
mm:new W8([4],[function(h,E){_.ln(h,81,E)}]),
mo:new W8([3],[function(h,E){_.Ph(h,73,E)}]),
mp:new W8([0],[function(h,E){_.OK(h,115,E)}]),
mv:new W8([3],[function(h,E){_.Ph(h,66,E)}]),
n:new W8([3],[function(h,E){h.setCenterCrop(E)}]),
nc:new W8([3],[function(h,E){_.Ph(h,55,E)}]),
nd:new W8([3],[function(h,E){_.Ph(h,53,E)}]),
ng:new W8([3],[function(h,E){_.Ph(h,95,E)}]),
ngm:new W8([3],[function(h,E){_.Ph(h,106,E)}]),
no:new W8([3],[function(h,E){_.Ph(h,37,E)}]),
ns:new W8([3],[function(h,E){_.Ph(h,40,E)}]),
nt0:new W8([4],[function(h,E){_.ln(h,36,E)}]),
ntm:new W8([3],[function(h,E){_.Ph(h,114,E)}]),
nu:new W8([3],[function(h,E){_.Ph(h,46,E)}]),
nw:new W8([3],[function(h,E){_.Ph(h,48,E)}]),
o:new W8([1,3],[function(h,E){E=E==null?E:LcU(E);_.II(h,7,E)},
function(h,E){_.Ph(h,27,E)}]),
p:new W8([3,0],[function(h,E){_.Ph(h,19,E)},
function(h,E){_.OK(h,43,E)}]),
pa:new W8([3],[function(h,E){_.Ph(h,61,E)}]),
pc:new W8([0],[function(h,E){_.OK(h,88,E)}]),
pd:new W8([3],[function(h,E){_.Ph(h,60,E)}]),
pf:new W8([3],[function(h,E){_.Ph(h,67,E)}]),
pg:new W8([3],[function(h,E){_.Ph(h,72,E)}]),
pi:new W8([2],[function(h,E){_.II(h,76,_.kM(E))}]),
pp:new W8([3],[function(h,E){_.Ph(h,52,E)}]),
pt:new W8([4],[function(h,E){_.ln(h,111,E)}]),
q:new W8([4],[function(h,E){_.ln(h,28,E)}]),
r:new W8([3,0],[function(h,E){_.Ph(h,6,E)},
function(h,E){_.OK(h,26,E)}]),
ra:new W8([3],[function(h,E){_.Ph(h,103,E)}]),
rf:new W8([3],[function(h,E){_.Ph(h,100,E)}]),
rg:new W8([3],[function(h,E){_.Ph(h,59,E)}]),
rh:new W8([3],[function(h,E){_.Ph(h,49,E)}]),
rj:new W8([3],[function(h,E){_.Ph(h,57,E)}]),
ro:new W8([2],[function(h,E){_.II(h,78,_.kM(E))}]),
rp:new W8([3],[function(h,E){_.Ph(h,58,E)}]),
rw:new W8([3],[function(h,E){_.Ph(h,35,E)}]),
rwa:new W8([3],[function(h,E){_.Ph(h,64,E)}]),
rwu:new W8([3],[function(h,E){_.Ph(h,41,E)}]),
s:new W8([3,0],[function(h,E){_.Ph(h,33,E)},
function(h,E){h.setSize(E)}]),
sb:new W8([0],[function(h,E){_.OK(h,110,E)}]),
sc:new W8([0],[function(h,E){_.OK(h,89,E)}]),
sg:new W8([3],[function(h,E){_.Ph(h,82,E)}]),
sl:new W8([0],[function(h,E){_.OK(h,109,E)}]),
sm:new W8([3],[function(h,E){_.Ph(h,93,E)}]),
t:new W8([4],[function(h,E){h.setToken(E)}]),
tm:new W8([3],[function(h,E){_.Ph(h,113,E)}]),
u:new W8([3],[function(h,E){_.Ph(h,18,E)}]),
ut:new W8([3],[function(h,E){_.Ph(h,45,E)}]),
v:new W8([0],[function(h,E){_.OK(h,62,E)}]),
vb:new W8([0],[function(h,E){_.t1(h,68,E)}]),
vf:new W8([4],[function(h,E){_.ln(h,102,E)}]),
vl:new W8([0],[function(h,E){_.t1(h,69,E)}]),
vm:new W8([3],[function(h,E){_.Ph(h,98,E)}]),
w:new W8([0],[function(h,E){_.OK(h,12,E)}]),
x:new W8([0],[function(h,E){_.OK(h,9,E)}]),
y:new W8([0],[function(h,E){_.OK(h,10,E)}]),
ya:new W8([2],[function(h,E){_.II(h,77,_.kM(E))}]),
z:new W8([0],[function(h,E){_.OK(h,11,E)}])};
dmX.prototype.parse=function(h){var E=new z$i,g=new z$i;if(h=="")h=!0;else{h=h.split("-");for(var Z=!0,M=0;M<h.length;M++){var W=h[M];if(W.length==0)Z=!1;else{var z=W,c=!1;var I=z;var B=z.charAt(0);B!=B.toLowerCase()&&(c=!0,I=z.charAt(0).toLowerCase()+z.substring(1));var U=IvX;for(B=1;B<=I.length;++B){var L=U,d=I.substring(0,B);if(d.length==0?L.isEmpty():!c9C(L,d))break}I=B==1?null:(I=U.get(I.substring(0,B-1)))?{option:z.substring(0,B-1),value:z.substring(B-1),signed:c,attributes:I}:null;if(I){z=
[];c=[];B=!1;for(U=0;U<I.attributes.types.length;U++){L=I.attributes.types[U];var C=I.value;d=M;if(I.signed&&L==1)for(var q=C.length;q<12&&d<h.length-1;)C+="-"+h[d+1],q=C.length,++d;else if(L==2)for(;d<h.length-1&&h[d+1].match(/^[\d\.]/);)C+="-"+h[d+1],++d;q=I.attributes.setters[U];C=PoX(this,L)(I.option,C,E,g,q);if(C===null){B=!0;M=d;break}else z.push(L),c.push(C)}if(!B)for(I=0;I<c.length;I++)U=z[I],C=c[I],BgI(this,U)(W,C);Z=Z&&B}else Z=!1}}h=Z}return new UuX(E,g,h)};
var pE=function(h,E,g,Z,M,W){M(g,E);h=h.charAt(0);W=W(h==h.toUpperCase());M(Z,W)};
_.p=dmX.prototype;_.p.parseAndSetIntOption_=function(h,E,g,Z,M){if(E=="")return 0;isFinite(E)&&(E=String(E));E=typeof E==="string"?/^\s*-?0x/i.test(E)?parseInt(E,16):parseInt(E,10):NaN;if(isNaN(E))return 1;pE(h,E,g,Z,M,Number);return null};
_.p.logIntParseError_=function(){};
_.p.parseAndSetFloatOption_=function(h,E,g,Z,M){if(E=="")return 0;var W=Number(E);E=W==0&&_.ca(E)?NaN:W;if(isNaN(E))return 1;pE(h,E,g,Z,M,Number);return null};
_.p.logFloatParseError_=function(){};
_.p.parseAndSetBoolOption_=function(h,E,g,Z,M){if(E!="")return 2;pE(h,!0,g,Z,M,Boolean);return null};
_.p.logBoolParseError_=function(){};
_.p.parseAndSetStringOption_=function(h,E,g,Z,M){if(E=="")return 0;pE(h,E,g,Z,M,function(W){return W?"1":""});
return null};
_.p.logStringParseError_=function(){};
_.p.parseAndSetUint64Base64Option_=function(h,E,g,Z,M){if(E=="")return 0;pE(h,E,g,Z,M,function(W){return W?1:0});
return null};
var PoX=function(h,E){switch(E){case 0:return(0,_.DJ)(h.parseAndSetIntOption_,h);case 2:return(0,_.DJ)(h.parseAndSetFloatOption_,h);case 3:return(0,_.DJ)(h.parseAndSetBoolOption_,h);case 4:return(0,_.DJ)(h.parseAndSetStringOption_,h);case 1:return(0,_.DJ)(h.parseAndSetUint64Base64Option_,h);default:return function(){}}},BgI=function(h,E){switch(E){case 0:return(0,_.DJ)(h.logIntParseError_,h);
case 2:return(0,_.DJ)(h.logFloatParseError_,h);case 3:return(0,_.DJ)(h.logBoolParseError_,h);case 4:case 1:return(0,_.DJ)(h.logStringParseError_,h);default:return function(){}}},UuX=function(h,E,g){this.valueProto_=h;
this.signatureFlagProto_=E;this.JSC$19586_valid_=g};
UuX.prototype.isValid=function(){return this.JSC$19586_valid_};var BDG=function(h){this.JSC$19587_parser_=null;this.JSC$19587_components_=[];this.JSC$19587_parsedOptions_=null;LC0(this,h)},j1C=function(h){h.JSC$19587_parser_==null&&(h.JSC$19587_parser_=new dmX);
return h.JSC$19587_parser_},LC0=function(h,E){h.JSC$19587_parsedOptions_=E?typeof E==="string"?j1C(h).parse(E):E:j1C(h).parse("")},GM=function(h,E){return h==E?!1:!0};
_.p=BDG.prototype;_.p.JSC$19589_setCrop=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,_.DW(g,2),_.DW(E.signatureFlagProto_,2))&&_.Ph(g,2,h);return this};
_.p.JSC$19589_setCircleCrop=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,La(g,51),La(E.signatureFlagProto_,51))&&_.Ph(g,51,h);return this};
_.p.JSC$19589_setImageCrop=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,La(g,32),La(E.signatureFlagProto_,32))&&_.Ph(g,32,h);return this};
_.p.JSC$19589_setHeight=function(h){var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,g.getHeight(),E.signatureFlagProto_.getHeight())&&_.OK(g,13,h);return this};
_.p.setCenterCrop=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,_.DW(g,20),_.DW(E.signatureFlagProto_,20))&&g.setCenterCrop(h);return this};
_.p.JSC$19589_setSmartCrop=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,_.DW(g,19),_.DW(E.signatureFlagProto_,19))&&_.Ph(g,19,h);return this};
_.p.JSC$19589_setPad=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,La(g,60),La(E.signatureFlagProto_,60))&&_.Ph(g,60,h);return this};
_.p.JSC$19589_setSmartCropUseFace=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,_.DW(g,67),_.DW(E.signatureFlagProto_,67))&&_.Ph(g,67,h);return this};
_.p.JSC$19589_setSmartCropNoClip=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,_.DW(g,52),_.DW(E.signatureFlagProto_,52))&&_.Ph(g,52,h);return this};
_.p.setSize=function(h){var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,g.getSize(),E.signatureFlagProto_.getSize())&&g.setSize(h);return this};
_.p.setToken=function(h){h=h||void 0;var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,g.getToken(),E.signatureFlagProto_.getToken())&&g.setToken(h);return this};
_.p.JSC$19589_setWidth=function(h){var E=this.JSC$19587_parsedOptions_,g=E.valueProto_;GM(h,g.getWidth(),E.signatureFlagProto_.getWidth())&&_.OK(g,12,h);return this};
_.p.clearOptions=function(){LC0(this,"");return this};
_.p.build=function(){this.JSC$19587_components_.length=0;var h=this.JSC$19587_parsedOptions_,E=h.valueProto_;h=h.signatureFlagProto_;zM(this,"s",E.getSize(),h.getSize());zM(this,"w",E.getWidth(),h.getWidth());aQ(this,"c",_.DW(E,2),_.DW(h,2));aQ(this,"d",_.DW(E,3),_.DW(h,3));zM(this,"h",E.getHeight(),h.getHeight());aQ(this,"s",La(E,33),La(h,33));aQ(this,"h",E.getHtml(),h.getHtml());aQ(this,"p",_.DW(E,19),_.DW(h,19));aQ(this,"pp",_.DW(E,52),_.DW(h,52));aQ(this,"pf",_.DW(E,67),_.DW(h,67));aQ(this,"n",
_.DW(E,20),_.DW(h,20));zM(this,"r",ja(E,26),ja(h,26));aQ(this,"r",_.DW(E,6),_.DW(h,6));aQ(this,"o",La(E,27),La(h,27));var g=_.wr(E,7,_.CW);c8(this,"o",g,_.wr(h,7,_.CW));g=_.wr(E,29,_.CW);c8(this,"j",g,_.wr(h,29,_.CW));zM(this,"x",ja(E,9),ja(h,9));zM(this,"y",ja(E,10),ja(h,10));zM(this,"z",ja(E,11),ja(h,11));aQ(this,"g",_.DW(E,14),_.DW(h,14));zM(this,"e",ja(E,15),ja(h,15));c8(this,"f",_.ef(E,16),_.ef(h,16));aQ(this,"k",La(E,17),La(h,17));aQ(this,"u",La(E,18),!0);aQ(this,"ut",La(E,45),!0);aQ(this,"i",
La(E,22),!0);aQ(this,"a",La(E,21),La(h,21));aQ(this,"b",_.DW(E,23),_.DW(h,23));zM(this,"b",ja(E,38),ja(h,38));zM(this,"c",ja(E,39),ja(h,39),16,8);c8(this,"q",_.ef(E,28),_.ef(h,28));aQ(this,"fh",La(E,30),La(h,30));aQ(this,"fv",La(E,31),La(h,31));aQ(this,"fg",_.DW(E,34),_.DW(h,34));aQ(this,"ci",La(E,32),La(h,32));c8(this,"t",E.getToken(),h.getToken());c8(this,"nt0",_.ef(E,36),_.ef(h,36));aQ(this,"rw",_.DW(E,35),_.DW(h,35));aQ(this,"rwu",_.DW(E,41),_.DW(h,41));aQ(this,"rwa",_.DW(E,64),_.DW(h,64));aQ(this,
"nw",_.DW(E,48),_.DW(h,48));aQ(this,"rh",_.DW(E,49),_.DW(h,49));aQ(this,"no",_.DW(E,37),_.DW(h,37));aQ(this,"ns",La(E,40),La(h,40));zM(this,"k",ja(E,42),ja(h,42));zM(this,"p",ja(E,43),ja(h,43));zM(this,"l",ja(E,44),ja(h,44));zM(this,"v",ja(E,62),ja(h,62));aQ(this,"nu",La(E,46),La(h,46));aQ(this,"ft",La(E,50),La(h,50));aQ(this,"cc",La(E,51),La(h,51));aQ(this,"nd",La(E,53),La(h,53));aQ(this,"ip",La(E,54),La(h,54));aQ(this,"nc",La(E,55),La(h,55));zM(this,"a",ja(E,56),ja(h,56));aQ(this,"rj",La(E,57),
La(h,57));aQ(this,"rp",La(E,58),La(h,58));aQ(this,"rg",La(E,59),La(h,59));aQ(this,"pd",La(E,60),La(h,60));aQ(this,"pa",La(E,61),La(h,61));zM(this,"m",ja(E,63),ja(h,63));zM(this,"vb",dd(E,68),dd(h,68));zM(this,"vl",dd(E,69),dd(h,69));aQ(this,"lf",La(E,65),La(h,65));aQ(this,"mv",La(E,66),La(h,66));aQ(this,"id",La(E,70),La(h,70));zM(this,"ic",ja(E,71),!0);aQ(this,"pg",_.DW(E,72),_.DW(h,72));aQ(this,"mo",La(E,73),La(h,73));aQ(this,"al",La(E,74),La(h,74));zM(this,"iv",dd(E,75),dd(h,75));zM(this,"pi",Ca(E,
76),Ca(h,76));zM(this,"ya",Ca(E,77),Ca(h,77));zM(this,"ro",Ca(E,78),Ca(h,78));zM(this,"fo",Ca(E,79),Ca(h,79));aQ(this,"df",La(E,80),La(h,80));c8(this,"mm",_.ef(E,81),_.ef(h,81));aQ(this,"sg",La(E,82),La(h,82));aQ(this,"gd",La(E,83),La(h,83));aQ(this,"fm",La(E,84),La(h,84));zM(this,"ba",ja(E,85),ja(h,85));zM(this,"br",ja(E,86),ja(h,86));zM(this,"bc",E.getBackgroundColor(),h.getBackgroundColor(),16,8);zM(this,"pc",ja(E,88),ja(h,88),16,8);zM(this,"sc",ja(E,89),ja(h,89),16,8);aQ(this,"dv",La(E,90),La(h,
90));aQ(this,"md",La(E,91),La(h,91));zM(this,"cp",ja(E,92),ja(h,92));aQ(this,"sm",La(E,93),La(h,93));zM(this,"cv",ja(E,94),ja(h,94));aQ(this,"ng",La(E,95),La(h,95));aQ(this,"il",La(E,96),La(h,96));aQ(this,"lo",La(E,97),La(h,97));aQ(this,"vm",La(E,98),La(h,98));c8(this,"dc",_.ef(E,99),_.ef(h,99));aQ(this,"rf",La(E,100),La(h,100));c8(this,"vf",_.ef(E,102),_.ef(h,102));aQ(this,"ra",_.DW(E,103),_.DW(h,103));aQ(this,"ckm",La(E,104),La(h,104));aQ(this,"gm",La(E,105),La(h,105));aQ(this,"ngm",La(E,106),La(h,
106));zM(this,"em",ja(E,107),ja(h,107));aQ(this,"cr",La(E,108),La(h,108));zM(this,"sl",E.getStoryboardLevel(),h.getStoryboardLevel());zM(this,"sb",ja(E,110),ja(h,110));c8(this,"pt",_.ef(E,111),_.ef(h,111));c8(this,"gce",_.ef(E,112),_.ef(h,112));aQ(this,"tm",La(E,113),La(h,113));aQ(this,"ntm",La(E,114),La(h,114));zM(this,"mp",ja(E,115),ja(h,115));return this.JSC$19587_components_.join("-")};
var zM=function(h,E,g,Z,M,W){if(g!=null){var z=M==void 0||M!=10&&M!=16?10:M;g=Number(g).toString(z);M=new veZ;M.append(z==16?"0x":"");z=M.append;W==void 0?W="":(W-=g.length,W=W<=0?"":(0,_.EMH)("0",W));z.call(M,W);M.append(g);duJ(h,E,M.toString(),!!Number(Z))}},aQ=function(h,E,g,Z){g&&duJ(h,E,"",!!Z)},c8=function(h,E,g,Z){g&&duJ(h,E,String(g),!!Number(Z))},duJ=function(h,E,g,Z){Z&&(E=E.charAt(0).toUpperCase()+E.substring(1));
h.JSC$19587_components_.push(E+g)};_.aV(dl,BDG);_.p=dl.prototype;_.p.JSC$19589_setCrop=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setCrop.call(this,h)};
_.p.JSC$19589_setHeight=function(h){h=h==null||h<0?void 0:h;h!=null&&this.setSize();return dl.superClass_.JSC$19589_setHeight.call(this,h)};
_.p.JSC$19589_setImageCrop=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setImageCrop.call(this,h)};
_.p.JSC$19589_setCircleCrop=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setCircleCrop.call(this,h)};
_.p.setSize=function(h){_.yx(h)&&(h=Math.max(h.width,h.height));h=h==null||h<0?void 0:h;h!=null&&(this.JSC$19589_setWidth(),this.JSC$19589_setHeight());return dl.superClass_.setSize.call(this,h)};
_.p.JSC$19589_setSmartCrop=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setSmartCrop.call(this,h)};
_.p.JSC$19589_setSmartCropNoClip=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setSmartCropNoClip.call(this,h)};
_.p.JSC$19589_setSmartCropUseFace=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setSmartCropUseFace.call(this,h)};
_.p.setCenterCrop=function(h){h&&i2(this);return dl.superClass_.setCenterCrop.call(this,h)};
_.p.JSC$19589_setPad=function(h){h&&i2(this);return dl.superClass_.JSC$19589_setPad.call(this,h)};
_.p.JSC$19589_setWidth=function(h){h=h==null||h<0?void 0:h;h!=null&&this.setSize();return dl.superClass_.JSC$19589_setWidth.call(this,h)};
var CoC=function(h){h.clearOptions();var E=h.JSC$19587_parsedOptions_,g=E.valueProto_;GM(!0,_.DW(g,3),_.DW(E.signatureFlagProto_,3))&&_.Ph(g,3,!0);return h},i2=function(h){h.setCenterCrop();
h.JSC$19589_setCircleCrop();h.JSC$19589_setCrop();h.JSC$19589_setImageCrop();h.JSC$19589_setPad();h.JSC$19589_setSmartCrop();h.JSC$19589_setSmartCropNoClip();h.JSC$19589_setSmartCropUseFace()};
dl.prototype.build=function(){var h=this.JSC$19587_parsedOptions_.valueProto_;La(h,18)||La(h,45)?h.getSize()||this.setSize(0):(h=this.JSC$19587_parsedOptions_.valueProto_,h.getSize()||h.getWidth()||h.getHeight()||(this.setSize(),this.JSC$19589_setHeight(),this.JSC$19589_setWidth(),i2(this)));return dl.superClass_.build.call(this)};var J9p=/^[^\/]*\/\//,oQ=function(h,E){E=E===void 0?!1:E;this.original_=h;this.originalPrefix_="";(h=this.original_.match(J9p))&&h[0]?(this.originalPrefix_=h[0],h=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):h="http://"+this.original_;this.uri_=_.T8(h,!0);this.isFreeformUrl_=E;this.JSC$19593_valid_=!0;this.obfuscated_=!1},e$J=function(h,E){h.JSC$19595_pathPrefix_=h.JSC$19595_pathPrefix_?h.JSC$19595_pathPrefix_+("/"+E):E},IQ=function(h){if(h.JSC$19595_components_==
void 0){var E=h.uri_.getPath().substring(1);
h.JSC$19595_pathPrefix_=null;if(h.isFreeformUrl_){h.JSC$19595_components_=[];if((E.match(/=/g)||[]).length>1)return h.JSC$19593_valid_=!1,h.JSC$19595_components_;var g=E.indexOf("=");g!=-1?(h.JSC$19595_components_.push(E.substr(0,g)),h.JSC$19595_components_.push(E.substr(g+1))):h.JSC$19595_components_.push(E);return h.JSC$19595_components_}h.JSC$19595_components_=E.split("/");E=h.JSC$19595_components_.length;E>2&&h.JSC$19595_components_[0]=="u"&&(e$J(h,h.JSC$19595_components_[0]+"/"+h.JSC$19595_components_[1]),
h.JSC$19595_components_.shift(),h.JSC$19595_components_.shift(),E-=2);if(E==0||E==4||E>7)return h.JSC$19593_valid_=!1,h.JSC$19595_components_;if(E==2)e$J(h,h.JSC$19595_components_[0]);else if(h.JSC$19595_components_[0]=="image")e$J(h,h.JSC$19595_components_[0]);else if(E==7||E==3)return h.JSC$19593_valid_=!1,h.JSC$19595_components_;if(E<=3){h.obfuscated_=!0;E==3&&(e$J(h,h.JSC$19595_components_[1]),h.JSC$19595_components_.shift(),--E);--E;g=h.JSC$19595_components_[E];var Z=g.indexOf("=");Z!=-1&&(h.JSC$19595_components_[E]=
g.substr(0,Z),h.JSC$19595_components_.push(g.substr(Z+1)))}}return h.JSC$19595_components_};
oQ.prototype.isValid=function(){IQ(this);return this.JSC$19593_valid_};
oQ.prototype.isObfuscated=function(){IQ(this);return this.obfuscated_};
var q1x=function(h){IQ(h);return h.isFreeformUrl_},RQ=function(h){IQ(h);
h.JSC$19595_pathPrefix_==void 0&&(h.JSC$19595_pathPrefix_=null);return h.JSC$19595_pathPrefix_},fvC=function(h){switch(IQ(h).length){case 7:return!0;
case 6:return RQ(h)==null;case 5:return!1;case 3:return!0;case 2:return RQ(h)==null;case 1:return!1;default:return!1}},P8=function(h,E){if(q1x(h))a:{switch(E){case 7:E=0;
break;case 4:if(!fvC(h)){h=null;break a}E=1;break;default:h=null;break a}h=IQ(h)[E]}else if(h.isObfuscated())a:{var g=RQ(h)!=null?1:0;switch(E){case 6:E=g;break;case 4:if(!fvC(h)){h=null;break a}E=1+g;break;default:h=null;break a}h=IQ(h)[E]}else a:{g=RQ(h)!=null?1:0;switch(E){case 0:E=g;break;case 1:E=1+g;break;case 2:E=2+g;break;case 3:E=3+g;break;case 4:if(!fvC(h)){h=null;break a}E=4+g;break;case 5:E=fvC(h)?1:0;E=4+g+E;break;default:h=null;break a}h=IQ(h)[E]}return h};
oQ.prototype.getOptions=function(){this.options_==void 0&&(this.options_=P8(this,4));return this.options_};var jNG=function(){};
jNG.prototype.parse=function(h,E){return new UmJ(h,E===void 0?!1:E)};
var UmJ=function(h,E){oQ.call(this,h,E===void 0?!1:E)};
_.f(UmJ,oQ);_.aV(Cq,dl);var LhU;Cq.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Cq.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var h=Cq.superClass_.build.call(this),E=[];RQ(this.parsedImageUrl_)!=null&&E.push(RQ(this.parsedImageUrl_));var g=q1x(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var Z=this.parsedImageUrl_;Z.obfuscatedData_==void 0&&(Z.obfuscatedData_=P8(Z,6));E.push(Z.obfuscatedData_+(h?"="+h:""))}else if(g){Z=E.push;var M=this.parsedImageUrl_;M.freeformUrlPath_===void 0&&(M.freeformUrlPath_=P8(M,
7));Z.call(E,M.freeformUrlPath_);h&&E.push(h)}else Z=E.push,M=this.parsedImageUrl_,M.obfuscatedGaiaId_==void 0&&(M.obfuscatedGaiaId_=P8(M,0)),Z.call(E,M.obfuscatedGaiaId_),Z=E.push,M=this.parsedImageUrl_,M.photoId_==void 0&&(M.photoId_=P8(M,1)),Z.call(E,M.photoId_),Z=E.push,M=this.parsedImageUrl_,M.imageVersion_==void 0&&(M.imageVersion_=P8(M,2)),Z.call(E,M.imageVersion_),Z=E.push,M=this.parsedImageUrl_,M.signature_==void 0&&(M.signature_=P8(M,3)),Z.call(E,M.signature_),h&&E.push(h),h=E.push,Z=this.parsedImageUrl_,
Z.filename_==void 0&&(Z.filename_=P8(Z,5)),h.call(E,Z.filename_);E=g?E.join("="):E.join("/");E=_.T8(this.protocolPrefix_+this.JSC$19601_domain_+"/"+E+(this.JSC$19601_query_?"?"+this.JSC$19601_query_:"")).toString();E.startsWith("%3a//")&&(E=E.replace("%3a//","://"));return E};var Ng0=_.uz(["viewBox"]),tuR=_.uz(["width"]),S1C=_.uz(["height"]),xuZ=_.uz(["fill"]),wCC=_.uz(["id"]),DuX=_.uz(["x"]),lv0=_.uz(["y"]);CqX.prototype.getLength=function(){return this.parsedData.length};
CqX.prototype.write=function(h){for(var E=0,g=this.parsedData.length;E<g;E++)h.put(this.parsedData[E],8)};
var SBU=function(h,E){var g=new CqX(E);h.dataList.push(g);g=h.errorCorrectLevel;var Z=1,M=encodeURI(E).toString().replace(/%[0-9a-fA-F]{2}/g,"a");E=M.length+(M.length!=E?3:0);M=0;for(var W=B8.length;M<=W;M++){var z=0;switch(g){case 1:z=B8[M][0];break;case 0:z=B8[M][1];break;case 3:z=B8[M][2];break;case 2:z=B8[M][3]}if(E<=z)break;else Z++}if(Z>B8.length)throw Error("Mk");h.typeNumber=Z;h.dataCache=null};
JaC.prototype.isDark=function(h,E){if(h<0||this.moduleCount<=h||E<0||this.moduleCount<=E)throw Error("Ek`"+h+"`"+E);return this.modules[h][E]};
for(var xmU=function(h,E,g){h.moduleCount=h.typeNumber*4+17;h.modules=Array(h.moduleCount);for(var Z=0;Z<h.moduleCount;Z++){h.modules[Z]=Array(h.moduleCount);for(var M=0;M<h.moduleCount;M++)h.modules[Z][M]=null}r9i(h,0,0);r9i(h,h.moduleCount-7,0);r9i(h,0,h.moduleCount-7);Z=muG[h.typeNumber-1];for(M=0;M<Z.length;M++)for(var W=0;W<Z.length;W++){var z=Z[M],c=Z[W];if(h.modules[z][c]==null)for(var I=-2;I<=2;I++)for(var B=-2;B<=2;B++)h.modules[z+I][c+B]=I==-2||I==2||B==-2||B==2||I==0&&B==0?!0:!1}for(Z=
8;Z<h.moduleCount-8;Z++)h.modules[Z][6]==null&&(h.modules[Z][6]=Z%2==0);for(Z=8;Z<h.moduleCount-8;Z++)h.modules[6][Z]==null&&(h.modules[6][Z]=Z%2==0);Z=h.errorCorrectLevel<<3|g;for(M=Z<<10;Uw(M)-Uw(1335)>=0;)M^=1335<<Uw(M)-Uw(1335);Z=(Z<<10|M)^21522;for(M=0;M<15;M++)W=!E&&(Z>>M&1)==1,M<6?h.modules[M][8]=W:M<8?h.modules[M+1][8]=W:h.modules[h.moduleCount-15+M][8]=W;for(M=0;M<15;M++)W=!E&&(Z>>M&1)==1,M<8?h.modules[8][h.moduleCount-M-1]=W:M<9?h.modules[8][15-M-1+1]=W:h.modules[8][15-M-1]=W;h.modules[h.moduleCount-
8][8]=!E;if(h.typeNumber>=7){Z=h.typeNumber;for(M=Z<<12;Uw(M)-Uw(7973)>=0;)M^=7973<<Uw(M)-Uw(7973);Z=Z<<12|M;for(M=0;M<18;M++)W=!E&&(Z>>M&1)==1,h.modules[Math.floor(M/3)][M%3+h.moduleCount-8-3]=W;for(M=0;M<18;M++)W=!E&&(Z>>M&1)==1,h.modules[M%3+h.moduleCount-8-3][Math.floor(M/3)]=W}if(h.dataCache==null){M=h.typeNumber;W=h.dataList;E=h.errorCorrectLevel;Z=viI(M,E);if(Z==void 0)throw Error("Lk`"+M+"`"+E);z=Z.length/3;E=[];for(c=0;c<z;c++){I=Z[c*3];B=Z[c*3+1];for(var U=Z[c*3+2],L=0;L<I;L++)E.push(new ebI(B,
U))}Z=new qBC;for(z=0;z<W.length;z++)c=W[z],Z.put(c.mode,4),Z.put(c.getLength(),H2I(c.mode,M)),c.write(Z);for(z=M=0;z<E.length;z++)M+=E[z].dataCount;if(Z.length>M*8)throw Error("Fk`"+Z.length+"`"+M*8);for(Z.length+4<=M*8&&Z.put(0,4);Z.length%8!=0;)$uX(Z,!1);for(;!(Z.length>=M*8);){Z.put(236,8);if(Z.length>=M*8)break;Z.put(17,8)}W=M=B=0;z=Array(E.length);c=Array(E.length);for(I=0;I<E.length;I++){L=E[I].dataCount;var d=E[I].totalCount-L;M=Math.max(M,L);W=Math.max(W,d);z[I]=Array(L);for(U=0;U<z[I].length;U++)z[I][U]=
255&Z.buffer[U+B];B+=L;U=d;L=new JG([1],0);for(d=0;d<U;d++)L=L.multiply(new JG([1,KCR(d)],0));U=L;L=(new JG(z[I],U.getLength()-1)).mod(U);c[I]=Array(U.getLength()-1);for(U=0;U<c[I].length;U++)d=U+L.getLength()-c[I].length,c[I][U]=d>=0?L.get(d):0}for(U=Z=0;U<E.length;U++)Z+=E[U].totalCount;Z=Array(Z);for(U=B=0;U<M;U++)for(I=0;I<E.length;I++)U<z[I].length&&(Z[B++]=z[I][U]);for(U=0;U<W;U++)for(I=0;I<E.length;I++)U<c[I].length&&(Z[B++]=c[I][U]);h.dataCache=Z}E=h.dataCache;Z=-1;M=h.moduleCount-1;W=7;z=
0;for(c=h.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(I=0;I<2;I++)h.modules[M][c-I]==null&&(B=!1,z<E.length&&(B=(E[z]>>>W&1)==1),O2U(g,M,c-I)&&(B=!B),h.modules[M][c-I]=B,W--,W==-1&&(z++,W=7));M+=Z;if(M<0||h.moduleCount<=M){M-=Z;Z=-Z;break}}},r9i=function(h,E,g){for(var Z=-1;Z<=7;Z++)if(!(E+Z<=-1||h.moduleCount<=E+Z))for(var M=-1;M<=7;M++)g+M<=-1||h.moduleCount<=g+M||(h.modules[E+Z][g+M]=0<=Z&&Z<=6&&(M==0||M==6)||0<=M&&M<=6&&(Z==0||Z==6)||2<=Z&&Z<=4&&2<=M&&M<=4?!0:!1)},wbi=function(h){for(var E=0,
g=0,Z=0;Z<8;Z++){xmU(h,!0,Z);
var M=h;for(var W=M.moduleCount,z=0,c=0;c<W;c++)for(var I=0;I<W;I++){for(var B=0,U=M.isDark(c,I),L=-1;L<=1;L++)if(!(c+L<0||W<=c+L))for(var d=-1;d<=1;d++)I+d<0||W<=I+d||(L!=0||d!=0)&&U==M.isDark(c+L,I+d)&&B++;B>5&&(z+=3+B-5)}for(c=0;c<W-1;c++)for(I=0;I<W-1;I++)if(B=0,M.isDark(c,I)&&B++,M.isDark(c+1,I)&&B++,M.isDark(c,I+1)&&B++,M.isDark(c+1,I+1)&&B++,B==0||B==4)z+=3;for(c=0;c<W;c++)for(I=0;I<W-6;I++)M.isDark(c,I)&&!M.isDark(c,I+1)&&M.isDark(c,I+2)&&M.isDark(c,I+3)&&M.isDark(c,I+4)&&!M.isDark(c,I+5)&&
M.isDark(c,I+6)&&(z+=40);for(I=0;I<W;I++)for(c=0;c<W-6;c++)M.isDark(c,I)&&!M.isDark(c+1,I)&&M.isDark(c+2,I)&&M.isDark(c+3,I)&&M.isDark(c+4,I)&&!M.isDark(c+5,I)&&M.isDark(c+6,I)&&(z+=40);for(I=B=0;I<W;I++)for(c=0;c<W;c++)M.isDark(c,I)&&B++;M=z+=Math.abs(100*B/W/W-50)/5*10;if(Z==0||E>M)E=M,g=Z}return g},muG=[[],
[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]],Uw=function(h){for(var E=0;h!=0;)E++,h>>>=1;return E},O2U=function(h,E,g){switch(h){case 0:return(E+g)%2==0;
case 1:return E%2==0;case 2:return g%3==0;case 3:return(E+g)%3==0;case 4:return(Math.floor(E/2)+Math.floor(g/3))%2==0;case 5:return E*g%2+E*g%3==0;case 6:return(E*g%2+E*g%3)%2==0;case 7:return(E*g%3+(E+g)%2)%2==0;default:throw Error("Gk`"+h);}},H2I=function(h,E){if(1<=E&&E<10)switch(h){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Hk`"+h);}else if(E<27)switch(h){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Hk`"+h);}else if(E<41)switch(h){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Hk`"+h);}else throw Error("Ik`"+E);},LE=function(h){if(h<1)throw Error("Jk`"+h);
return niU[h]},KCR=function(h){for(;h<0;)h+=255;
for(;h>=256;)h-=255;return jO[h]},jO=Array(256),niU=Array(256),XCi=0;XCi<8;XCi++)jO[XCi]=1<<XCi;
for(var dT=8;dT<256;dT++)jO[dT]=jO[dT-4]^jO[dT-5]^jO[dT-6]^jO[dT-8];for(var Y1x=0;Y1x<255;Y1x++)niU[jO[Y1x]]=Y1x;JG.prototype.get=function(h){return this.num[h]};
JG.prototype.getLength=function(){return this.num.length};
JG.prototype.multiply=function(h){for(var E=Array(this.getLength()+h.getLength()-1),g=0;g<this.getLength();g++)for(var Z=0;Z<h.getLength();Z++)E[g+Z]^=KCR(LE(this.get(g))+LE(h.get(Z)));return new JG(E,0)};
JG.prototype.mod=function(h){if(this.getLength()-h.getLength()<0)return this;for(var E=LE(this.get(0))-LE(h.get(0)),g=Array(this.getLength()),Z=0;Z<this.getLength();Z++)g[Z]=this.get(Z);for(Z=0;Z<h.getLength();Z++)g[Z]^=KCR(LE(h.get(Z))+E);return(new JG(g,0)).mod(h)};
var s1I=[[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]],viI=function(h,E){switch(E){case 1:return s1I[(h-1)*4];case 0:return s1I[(h-1)*4+1];case 3:return s1I[(h-1)*4+2];case 2:return s1I[(h-1)*4+3]}};
qBC.prototype.get=function(h){return(this.buffer[Math.floor(h/8)]>>>7-h%8&1)==1};
qBC.prototype.put=function(h,E){for(var g=0;g<E;g++)$uX(this,(h>>>E-g-1&1)==1)};
var $uX=function(h,E){var g=Math.floor(h.length/8);h.buffer.length<=g&&h.buffer.push(0);E&&(h.buffer[g]|=128>>>h.length%8);h.length++},B8=[[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]],tgX=function(){var h=function(E,g){this.JSC$19621__el=E;this.JSC$19621__htOption=g};
h.prototype.draw=function(E){function g(U,L){U=document.createElementNS("http://www.w3.org/2000/svg",U);for(var d in L)L.hasOwnProperty(d)&&(d==="href"?_.TXC(U,L[d]):_.zH([_.of(Ng0),_.of(tuR),_.of(S1C),_.of(xuZ),_.of(wCC),_.of(DuX),_.of(lv0)],U,d,L[d]));return U}
var Z=this.JSC$19621__htOption,M=this.JSC$19621__el,W=E.moduleCount;this.clear();var z=g("svg",{viewBox:"0 0 "+String(W)+" "+String(W),width:"100%",height:"100%",fill:Z.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});M.appendChild(z);z.appendChild(g("rect",{fill:Z.colorLight,width:"100%",height:"100%"}));z.appendChild(g("rect",{fill:Z.colorDark,width:"1",height:"1",id:"template"}));for(var c=0;c<W;c++)for(var I=0;I<W;I++)if(E.isDark(c,I)){var B=g("use",{x:String(c),y:String(I),href:"#template"});
z.appendChild(B)}};
h.prototype.clear=function(){for(;this.JSC$19621__el.hasChildNodes();)this.JSC$19621__el.removeChild(this.JSC$19621__el.lastChild)};
return h}(),NDi=document.documentElement.tagName.toLowerCase()==="svg"?tgX:typeof CanvasRenderingContext2D!="undefined"?function(){var h=function(E,g){this._bIsPainted=!1;
fMR();this.JSC$19621__htOption=g;this._elCanvas=document.createElement("canvas");this._elCanvas.width=g.width;this._elCanvas.height=g.height;E.appendChild(this._elCanvas);this.JSC$19621__el=E;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$19621__el.appendChild(this._elImage);this._bSupportDataURI=null};
h.prototype._onMakeImage=function(){var E=this._elCanvas.toDataURL("image/png");this._elImage.src=E;this._elImage.style.display="block";this._elCanvas.style.display="none"};
h.prototype._safeSetDataURI=function(E,g){var Z=this;Z._fFail=g;Z._fSuccess=E;Z._bSupportDataURI===null?(E=_.q3("IMG"),g=function(){Z._bSupportDataURI=!1;Z._fFail&&Z._fFail.call(Z)},E.onabort=g,E.onerror=g,E.onload=function(){Z._bSupportDataURI=!0;
Z._fSuccess&&Z._fSuccess.call(Z)},E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):Z._bSupportDataURI===!0&&Z._fSuccess?Z._fSuccess.call(Z):Z._bSupportDataURI===!1&&Z._fFail&&Z._fFail.call(Z)};
h.prototype.draw=function(E){var g=this._oContext,Z=this.JSC$19621__htOption,M=E.moduleCount,W=Z.width/M,z=Z.height/M,c=Math.round(W),I=Math.round(z);this._elImage.style.display="none";this.clear();for(var B=0;B<M;B++)for(var U=0;U<M;U++){var L=E.isDark(B,U),d=U*W,C=B*z;g.strokeStyle=L?Z.colorDark:Z.colorLight;g.lineWidth=1;g.fillStyle=L?Z.colorDark:Z.colorLight;g.fillRect(d,C,W,z);g.strokeRect(Math.floor(d)+.5,Math.floor(C)+.5,c,I);g.strokeRect(Math.ceil(d)-.5,Math.ceil(C)-.5,c,I)}this._bIsPainted=
!0};
h.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
h.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
h.prototype.round=function(E){return E?Math.floor(E*1E3)/1E3:E};
return h}():function(){var h=function(E,g){this.JSC$19621__el=E;
this.JSC$19621__htOption=g};
h.prototype.draw=function(E){for(var g=this.JSC$19621__htOption,Z=this.JSC$19621__el,M=E.moduleCount,W=Math.floor(g.width/M),z=Math.floor(g.height/M),c=['<table style="border:0;border-collapse:collapse;">'],I=0;I<M;I++){c.push("<tr>");for(var B=0;B<M;B++)c.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+W+"px;height:"+z+"px;background-color:"+(E.isDark(I,B)?g.colorDark:g.colorLight)+';"></td>');c.push("</tr>")}c.push("</table>");E=c.join("");E=_.kfD(_.Ffm,E);_.GH(Z,E);
E=Z.childNodes[0];M=(g.width-E.offsetWidth)/2;W=(g.height-E.offsetHeight)/2;M>0&&W>0&&(E.style.margin=W+"px "+M+"px")};
h.prototype.clear=function(){this.JSC$19621__el.textContent=""};
return h}();
DmG.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19624__android||this.JSC$19624__android>=3)&&this._oDrawing.makeImage()};
DmG.prototype.clear=function(){this._oDrawing.clear()};
_.MN.QRCode=DmG;var Vup={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var CE=function(){};
CE.prototype.stringify=function(h){return _.MN.JSON.stringify(h,void 0)};
CE.prototype.parse=function(h){return _.MN.JSON.parse(h,void 0)};var kCJ=function(){_.xD.call(this,"z")};
_.aV(kCJ,_.xD);var y9U=function(){_.xD.call(this,"y")};
_.aV(y9U,_.xD);var FCZ=null,A9i=function(){return FCZ=FCZ||new _.ms},TgC=function(h){_.xD.call(this,"serverreachability",h)};
_.aV(TgC,_.xD);var Jd=function(h){var E=A9i();E.dispatchEvent(new TgC(E,h))},b2C=function(h,E){_.xD.call(this,"statevent",h);
this.stat=E};
_.aV(b2C,_.xD);var eO=function(h){var E=A9i();E.dispatchEvent(new b2C(E,h))},ufC=function(h,E,g,Z){_.xD.call(this,"timingevent",h);
this.size=E;this.rtt=g;this.retries=Z};
_.aV(ufC,_.xD);var Q10=function(h,E,g){var Z=A9i();Z.dispatchEvent(new ufC(Z,h,E,g))},qE=function(h,E){if(typeof h!=="function")throw Error("Nk");
return _.MN.setTimeout(function(){h()},E)};var fE=function(){this.redactEnabled_=!0};
fE.prototype.disableRedact=function(){this.redactEnabled_=!1};
var hrU=function(h,E,g,Z,M,W){h.info(function(){if(h.redactEnabled_)if(W){var z="";for(var c=W.split("&"),I=0;I<c.length;I++){var B=c[I].split("=");if(B.length>1){var U=B[0];B=B[1];var L=U.split("_");z=L.length>=2&&L[1]=="type"?z+(U+"="+B+"&"):z+(U+"=redacted&")}}}else z=null;else z=W;return"XMLHTTP REQ ("+Z+") [attempt "+M+"]: "+E+"\n"+g+"\n"+z})},EJC=function(h,E,g,Z,M,W,z){h.info(function(){return"XMLHTTP RESP ("+Z+") [ attempt "+M+"]: "+E+"\n"+g+"\n"+W+" "+z})},NE=function(h,E,g,Z){h.info(function(){return"XMLHTTP TEXT ("+
E+"): "+gJR(h,g)+(Z?" "+Z:"")})},Zf0=function(h,E){h.info(function(){return"TIMEOUT: "+E})};
fE.prototype.debug=function(){};
fE.prototype.info=function(){};
fE.prototype.warning=function(){};
var gJR=function(h,E){if(!h.redactEnabled_)return E;if(!E)return null;try{var g=JSON.parse(E);if(g)for(var Z=0;Z<g.length;Z++)if(Array.isArray(g[Z])){var M=g[Z];if(!(M.length<2)){var W=M[1];if(Array.isArray(W)&&!(W.length<1)){var z=W[0];if(z!="noop"&&z!="stop"&&z!="close")for(var c=1;c<W.length;c++)W[c]=""}}}return(0,_.XY)(g)}catch(I){return h.debug("Exception parsing expected JS array - probably was not JS"),E}};var td=function(h,E,g,Z,M){this.JSC$19646_channel_=h;this.JSC$19646_channelDebug_=E;this.sid_=g;this.JSC$19646_rid_=Z;this.JSC$19646_retryId_=M||1;this.JSC$19646_eventHandler_=new _.Pl(this);this.timeout_=45E3;this.JSC$19646_extraHeaders_=null;this.JSC$19646_successful_=!1;this.JSC$19646_postData_=this.JSC$19646_requestUri_=this.JSC$19646_baseUri_=this.JSC$19646_type_=this.JSC$19646_requestStartTime_=this.JSC$19646_watchDogTimeoutTime_=this.JSC$19646_watchDogTimerId_=null;this.JSC$19646_pendingMessages_=
[];this.JSC$19646_xmlHttp_=null;this.JSC$19646_xmlHttpChunkStart_=0;this.JSC$19646_lastError_=this.JSC$19646_verb_=null;this.JSC$19646_lastStatusCode_=-1;this.JSC$19646_cancelled_=!1;this.JSC$19646_readyStateChangeThrottleMs_=0;this.JSC$19646_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new MzC},MzC=function(){this.JSC$19648_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},WdC=function(h,E){switch(h){case 0:return"Non-200 return code ("+E+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},pUG={},Gdc={};
td.prototype.setTimeout=function(h){this.timeout_=h};
var aUC=function(h,E,g){h.JSC$19646_type_=1;h.JSC$19646_baseUri_=_.Cr(E.clone());h.JSC$19646_postData_=g;h.decodeChunks_=!0;zrX(h,null)},zrX=function(h,E){h.JSC$19646_requestStartTime_=Date.now();
cXG(h);h.JSC$19646_requestUri_=h.JSC$19646_baseUri_.clone();oB(h.JSC$19646_requestUri_,"t",h.JSC$19646_retryId_);h.JSC$19646_xmlHttpChunkStart_=0;var g=h.JSC$19646_channel_.JSC$19665_supportsCrossDomainXhrs_;h.fetchResponseState_=new MzC;h.JSC$19646_xmlHttp_=ifG(h.JSC$19646_channel_,g?E:null,!h.JSC$19646_postData_);h.JSC$19646_readyStateChangeThrottleMs_>0&&(h.JSC$19646_readyStateChangeThrottle_=new _.TD((0,_.DJ)(h.JSC$19650_xmlHttpHandler_,h,h.JSC$19646_xmlHttp_),h.JSC$19646_readyStateChangeThrottleMs_));
h.JSC$19646_eventHandler_.listen(h.JSC$19646_xmlHttp_,"readystatechange",h.JSC$19650_readyStateChangeHandler_);E=h.JSC$19646_extraHeaders_?_.Kt.clone(h.JSC$19646_extraHeaders_):{};h.JSC$19646_postData_?(h.JSC$19646_verb_||(h.JSC$19646_verb_="POST"),E["Content-Type"]="application/x-www-form-urlencoded",h.JSC$19646_xmlHttp_.send(h.JSC$19646_requestUri_,h.JSC$19646_verb_,h.JSC$19646_postData_,E)):(h.JSC$19646_verb_="GET",h.JSC$19646_xmlHttp_.send(h.JSC$19646_requestUri_,h.JSC$19646_verb_,null,E));Jd(1);
hrU(h.JSC$19646_channelDebug_,h.JSC$19646_verb_,h.JSC$19646_requestUri_,h.JSC$19646_rid_,h.JSC$19646_retryId_,h.JSC$19646_postData_)};
td.prototype.JSC$19650_readyStateChangeHandler_=function(h){h=h.target;var E=this.JSC$19646_readyStateChangeThrottle_;E&&_.sj(h)==3?(this.JSC$19646_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19650_xmlHttpHandler_(h)};
td.prototype.JSC$19650_xmlHttpHandler_=function(h){try{h==this.JSC$19646_xmlHttp_?oJx(this):this.JSC$19646_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(E){this.JSC$19646_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),IU0(this)}finally{}};
var oJx=function(h){var E=_.sj(h.JSC$19646_xmlHttp_),g=h.JSC$19646_xmlHttp_.JSC$9797_lastErrorCode_,Z=h.JSC$19646_xmlHttp_.getStatus();if(!(E<3||E==3&&!IU0(h))){h.JSC$19646_cancelled_||E!=4||g==7||(g==8||Z<=0?Jd(3):Jd(2));RrC(h);var M=h.JSC$19646_xmlHttp_.getStatus();h.JSC$19646_lastStatusCode_=M;g=PPR(h);IU0(h)||h.JSC$19646_channelDebug_.debug(function(){return"No response text for uri "+h.JSC$19646_requestUri_+" status "+M});
h.JSC$19646_successful_=M==200;EJC(h.JSC$19646_channelDebug_,h.JSC$19646_verb_,h.JSC$19646_requestUri_,h.JSC$19646_rid_,h.JSC$19646_retryId_,E,M);if(h.JSC$19646_successful_){if(h.decodeInitialResponse_&&!h.initialResponseDecoded_)if(Z=BtZ(h))NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,Z,"Initial handshake response via X-HTTP-Initial-Response"),h.initialResponseDecoded_=!0,UOC(h,Z);else{h.JSC$19646_successful_=!1;h.JSC$19646_lastError_=3;eO(12);h.JSC$19646_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
h.JSC$19646_rid_+")");SO(h);xo(h);return}h.decodeChunks_?LdJ(h,E,g):(NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,g,null),UOC(h,g));E==4&&SO(h);h.JSC$19646_successful_&&!h.JSC$19646_cancelled_&&(E==4?jMX(h.JSC$19646_channel_,h):(h.JSC$19646_successful_=!1,cXG(h)))}else M6x(h.JSC$19646_xmlHttp_),M==400&&g.indexOf("Unknown SID")>0?(h.JSC$19646_lastError_=3,eO(12),h.JSC$19646_channelDebug_.warning("XMLHTTP Unknown SID ("+h.JSC$19646_rid_+")")):(h.JSC$19646_lastError_=0,eO(13),h.JSC$19646_channelDebug_.warning("XMLHTTP Bad status "+
M+" ("+h.JSC$19646_rid_+")")),SO(h),xo(h)}},BtZ=function(h){return h.JSC$19646_xmlHttp_&&(h=id(h.JSC$19646_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.ca(h)?h:null},PPR=function(h){if(!dOG(h))return h.JSC$19646_xmlHttp_.getResponseText();
var E=h.JSC$19646_xmlHttp_.getResponse();if(E==="")return"";var g="",Z=E.length,M=_.sj(h.JSC$19646_xmlHttp_)==4;if(!h.fetchResponseState_.JSC$19648_textDecoder){if(typeof TextDecoder==="undefined")return SO(h),xo(h),"";h.fetchResponseState_.JSC$19648_textDecoder=new _.MN.TextDecoder}for(var W=0;W<Z;W++)h.fetchResponseState_.responseArrivedForFetch=!0,g+=h.fetchResponseState_.JSC$19648_textDecoder.decode(E[W],{stream:!(M&&W==Z-1)});E.length=0;h.fetchResponseState_.responseBuffer+=g;h.JSC$19646_xmlHttpChunkStart_=
0;return h.fetchResponseState_.responseBuffer},IU0=function(h){return h.JSC$19646_xmlHttp_?h.fetchResponseState_.responseArrivedForFetch?!0:!(!h.JSC$19646_xmlHttp_.getResponseText()&&!h.JSC$19646_xmlHttp_.getResponse()):!1},dOG=function(h){return h.JSC$19646_xmlHttp_?h.JSC$19646_verb_=="GET"&&h.JSC$19646_type_!=2&&h.JSC$19646_channel_.usesFetchStreams_:!1},LdJ=function(h,E,g){for(var Z=!0,M;!h.JSC$19646_cancelled_&&h.JSC$19646_xmlHttpChunkStart_<g.length;)if(M=CP0(h,g),M==Gdc){E==4&&(h.JSC$19646_lastError_=
4,eO(14),Z=!1);
NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,null,"[Incomplete Response]");break}else if(M==pUG){h.JSC$19646_lastError_=4;eO(15);NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,g,"[Invalid Chunk]");Z=!1;break}else NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,M,null),UOC(h,M);dOG(h)&&h.JSC$19646_xmlHttpChunkStart_!=0&&(h.fetchResponseState_.responseBuffer=h.fetchResponseState_.responseBuffer.slice(h.JSC$19646_xmlHttpChunkStart_),h.JSC$19646_xmlHttpChunkStart_=0);E!=4||g.length!=0||h.fetchResponseState_.responseArrivedForFetch||
(h.JSC$19646_lastError_=1,eO(16),Z=!1);h.JSC$19646_successful_=h.JSC$19646_successful_&&Z;Z?g.length>0&&!h.firstByteReceived_&&(h.firstByteReceived_=!0,E=h.JSC$19646_channel_,E.JSC$19665_backChannelRequest_==h&&E.detectBufferingProxy_&&!E.bpDetectionDone_&&(E.JSC$19665_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+g.length),JXi(E),E.bpDetectionDone_=!0,eO(11))):(NE(h.JSC$19646_channelDebug_,h.JSC$19646_rid_,g,"[Invalid Chunked Response]"),SO(h),xo(h))},CP0=function(h,E){var g=
h.JSC$19646_xmlHttpChunkStart_,Z=E.indexOf("\n",g);
if(Z==-1)return Gdc;g=Number(E.substring(g,Z));if(isNaN(g))return pUG;Z+=1;if(Z+g>E.length)return Gdc;E=E.slice(Z,Z+g);h.JSC$19646_xmlHttpChunkStart_=Z+g;return E};
td.prototype.cancel=function(){this.JSC$19646_cancelled_=!0;SO(this)};
var cXG=function(h){h.JSC$19646_watchDogTimeoutTime_=Date.now()+h.timeout_;erR(h,h.timeout_)},erR=function(h,E){if(h.JSC$19646_watchDogTimerId_!=null)throw Error("Ok");
h.JSC$19646_watchDogTimerId_=qE((0,_.DJ)(h.JSC$19650_onWatchDogTimeout_,h),E)},RrC=function(h){h.JSC$19646_watchDogTimerId_&&(_.MN.clearTimeout(h.JSC$19646_watchDogTimerId_),h.JSC$19646_watchDogTimerId_=null)};
td.prototype.JSC$19650_onWatchDogTimeout_=function(){this.JSC$19646_watchDogTimerId_=null;var h=Date.now();h-this.JSC$19646_watchDogTimeoutTime_>=0?(Zf0(this.JSC$19646_channelDebug_,this.JSC$19646_requestUri_),this.JSC$19646_type_!=2&&(Jd(3),eO(17)),SO(this),this.JSC$19646_lastError_=2,xo(this)):(this.JSC$19646_channelDebug_.warning("WatchDog timer called too early"),erR(this,this.JSC$19646_watchDogTimeoutTime_-h))};
var xo=function(h){h.JSC$19646_channel_.state_==0||h.JSC$19646_cancelled_||jMX(h.JSC$19646_channel_,h)},SO=function(h){RrC(h);
_.p8(h.JSC$19646_readyStateChangeThrottle_);h.JSC$19646_readyStateChangeThrottle_=null;h.JSC$19646_eventHandler_.removeAll();if(h.JSC$19646_xmlHttp_){var E=h.JSC$19646_xmlHttp_;h.JSC$19646_xmlHttp_=null;E.abort();E.dispose()}};
td.prototype.getLastError=function(){return this.JSC$19646_lastError_};
var UOC=function(h,E){try{var g=h.JSC$19646_channel_;if(g.state_!=0&&(g.JSC$19665_backChannelRequest_==h||qJU(g.forwardChannelRequestPool_,h)))if(!h.initialResponseDecoded_&&qJU(g.forwardChannelRequestPool_,h)&&g.state_==3){try{var Z=g.wireCodec_.JSC$19660_parser_.parse(E)}catch(c){Z=null}if(Array.isArray(Z)&&Z.length==3){E=Z;if(E[0]==0)a:if(g.JSC$19665_channelDebug_.debug("Server claims our backchannel is missing."),g.JSC$19665_backChannelTimerId_)g.JSC$19665_channelDebug_.debug("But we are currently starting the request.");
else{if(g.JSC$19665_backChannelRequest_)if(g.JSC$19665_backChannelRequest_.JSC$19646_requestStartTime_+3E3<h.JSC$19646_requestStartTime_)fUp(g),NtC(g);else break a;else g.JSC$19665_channelDebug_.warning("We do not have a BackChannel established");tzU(g);eO(18)}else{g.JSC$19665_lastPostResponseArrayId_=E[1];var M=g.JSC$19665_lastPostResponseArrayId_-g.JSC$19665_lastArrayId_;if(0<M){var W=E[2];g.JSC$19665_channelDebug_.debug(W+" bytes (in "+M+" arrays) are outstanding on the BackChannel");W<37500&&
g.enableStreaming_&&g.JSC$19665_backChannelRetryCount_==0&&!g.JSC$19665_deadBackChannelTimerId_&&(g.JSC$19665_deadBackChannelTimerId_=qE((0,_.DJ)(g.JSC$19667_onBackChannelDead_,g),6E3))}}if(SJc(g.forwardChannelRequestPool_)<=1&&g.forwardChannelFlushedCallback_){try{g.forwardChannelFlushedCallback_()}catch(c){}g.forwardChannelFlushedCallback_=void 0}}else g.JSC$19665_channelDebug_.debug("Bad POST response data returned"),wT(g,11)}else if((h.initialResponseDecoded_||g.JSC$19665_backChannelRequest_==
h)&&fUp(g),!_.ca(E)){var z=g.wireCodec_.JSC$19660_parser_.parse(E);g.onInput_(z,h)}Jd(4)}catch(c){}};var xOC=function(h,E){this.JSC$19653_mapId=h;this.map=E;this.context=null};var wUC=function(h){this.maxPoolSizeConfigured_=h||10;_.MN.PerformanceNavigationTiming?(h=_.MN.performance.getEntriesByType("navigation"),h=h.length>0&&(h[0].nextHopProtocol=="hq"||h[0].nextHopProtocol=="h2")):h=!!(_.MN.chrome&&_.MN.chrome.loadTimes&&_.MN.chrome.loadTimes()&&_.MN.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19656_maxSize_=h?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19656_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19656_request_=null;this.JSC$19656_pendingMessages_=
[]},DOZ=function(h){return h.JSC$19656_request_?!0:h.requestPool_?h.requestPool_.size>=h.JSC$19656_maxSize_:!1},SJc=function(h){return h.JSC$19656_request_?1:h.requestPool_?h.requestPool_.size:0},qJU=function(h,E){return h.JSC$19656_request_?h.JSC$19656_request_==E:h.requestPool_?h.requestPool_.has(E):!1},lUI=function(h,E){h.requestPool_?h.requestPool_.add(E):h.JSC$19656_request_=E},rXG=function(h,E){h.JSC$19656_request_&&h.JSC$19656_request_==E?h.JSC$19656_request_=null:h.requestPool_&&h.requestPool_.has(E)&&
h.requestPool_.delete(E)};
wUC.prototype.cancel=function(){this.JSC$19656_pendingMessages_=mOU(this);if(this.JSC$19656_request_)this.JSC$19656_request_.cancel(),this.JSC$19656_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var h=_.G(this.requestPool_.values()),E=h.next();!E.done;E=h.next())E.value.cancel();this.requestPool_.clear()}};
var mOU=function(h){if(h.JSC$19656_request_!=null)return h.JSC$19656_pendingMessages_.concat(h.JSC$19656_request_.JSC$19646_pendingMessages_);if(h.requestPool_!=null&&h.requestPool_.size!==0){var E=h.JSC$19656_pendingMessages_;h=_.G(h.requestPool_.values());for(var g=h.next();!g.done;g=h.next())E=E.concat(g.value.JSC$19646_pendingMessages_);return E}return _.Y$(h.JSC$19656_pendingMessages_)},vJG=function(h,E){h.JSC$19656_pendingMessages_=h.JSC$19656_pendingMessages_.concat(E)};var HfJ=function(h,E){var g=new fE;g.debug("TestLoadImage: loading "+h);if(_.MN.Image){var Z=new Image;Z.onload=_.Sj(Du,g,"TestLoadImage: loaded",!0,E,Z);Z.onerror=_.Sj(Du,g,"TestLoadImage: error",!1,E,Z);Z.onabort=_.Sj(Du,g,"TestLoadImage: abort",!1,E,Z);Z.ontimeout=_.Sj(Du,g,"TestLoadImage: timeout",!1,E,Z);_.MN.setTimeout(function(){if(Z.ontimeout)Z.ontimeout()},1E4);
Z.src=h}else E(!1)},$Oc=function(h,E){var g=new fE,Z=new AbortController,M=setTimeout(function(){Z.abort();
Du(g,"TestPingServer: timeout",!1,E)},1E4);
fetch(h,{signal:Z.signal}).then(function(W){clearTimeout(M);W.ok?Du(g,"TestPingServer: ok",!0,E):Du(g,"TestPingServer: server error",!1,E)}).catch(function(){clearTimeout(M);
Du(g,"TestPingServer: error",!1,E)})},Du=function(h,E,g,Z,M){try{h.debug(E),M&&(M.onload=null,M.onerror=null,M.onabort=null,M.ontimeout=null),Z(g)}catch(W){}};var KdU=function(){this.JSC$19660_parser_=new CE};var l2=function(h,E,g){return g&&g.internalChannelParams?g.internalChannelParams[h]||E:E},rT=function(h){this.serverVersion_=0;
this.JSC$19665_outgoingMaps_=[];this.JSC$19665_channelDebug_=new fE;this.JSC$19665_hostPrefix_=this.JSC$19665_backChannelUri_=this.JSC$19665_forwardChannelUri_=this.JSC$19665_path_=this.JSC$19665_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19665_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19665_extraHeaders_=null;this.JSC$19665_nextMapId_=this.JSC$19665_nextRid_=0;this.JSC$19665_failFast_=l2("failFast",!1,h);this.enableStreaming_=this.JSC$19665_deadBackChannelTimerId_=
this.JSC$19665_backChannelTimerId_=this.JSC$19665_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19665_lastPostResponseArrayId_=this.JSC$19665_lastArrayId_=-1;this.JSC$19665_backChannelAttemptId_=this.JSC$19665_backChannelRetryCount_=this.JSC$19665_forwardChannelRetryCount_=0;this.JSC$19665_baseRetryDelayMs_=l2("baseRetryDelayMs",5E3,h);this.JSC$19665_retryDelaySeedMs_=l2("retryDelaySeedMs",1E4,h);this.JSC$19665_forwardChannelMaxRetries_=
l2("forwardChannelMaxRetries",2,h);this.JSC$19665_forwardChannelRequestTimeoutMs_=l2("forwardChannelRequestTimeoutMs",2E4,h);this.JSC$19665_xmlHttpFactory_=h&&h.xmlHttpFactory||void 0;this.networkTestUrl_=h&&h.networkTestUrl||void 0;this.usesFetchStreams_=h&&h.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19665_supportsCrossDomainXhrs_=h&&h.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new wUC(h&&h.concurrentRequestLimit);this.wireCodec_=new KdU;this.fastHandshake_=
h&&h.fastHandshake||!1;this.encodeInitMessageHeaders_=h&&h.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19665_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=h&&h.blockingHandshake||!1;h&&h.disableRedact&&this.JSC$19665_channelDebug_.disableRedact();h&&h.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
h&&h.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;h&&h.longPollingTimeout&&h.longPollingTimeout>0&&(this.longPollingTimeout_=h.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
rT.prototype.JSC$19667_channelVersion_=8;rT.prototype.state_=1;
rT.prototype.connect=function(h,E,g,Z){this.JSC$19665_channelDebug_.debug("connect()");eO(0);this.JSC$19665_path_=h;this.JSC$19665_extraParams_=E||{};g&&Z!==void 0&&(this.JSC$19665_extraParams_.OSID=g,this.JSC$19665_extraParams_.OAID=Z);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19665_channelDebug_.debug("connectChannel_()");h=OfU(this,null,this.JSC$19665_path_);this.JSC$19665_channelDebug_.debug("GetForwardChannelUri: "+h);this.JSC$19665_forwardChannelUri_=h;nJC(this)};
rT.prototype.disconnect=function(){this.JSC$19665_channelDebug_.debug("disconnect()");XUi(this);if(this.state_==3){var h=this.JSC$19665_nextRid_++,E=this.JSC$19665_forwardChannelUri_.clone();_.u4(E,"SID",this.sid_);_.u4(E,"RID",h);_.u4(E,"TYPE","terminate");mU(this,E);h=new td(this,this.JSC$19665_channelDebug_,this.sid_,h);h.JSC$19646_type_=2;h.JSC$19646_baseUri_=_.Cr(E.clone());E=!1;if(_.MN.navigator&&_.MN.navigator.sendBeacon)try{E=_.MN.navigator.sendBeacon(h.JSC$19646_baseUri_.toString(),"")}catch(g){}!E&&
_.MN.Image&&((new Image).src=h.JSC$19646_baseUri_,E=!0);E||(h.JSC$19646_xmlHttp_=ifG(h.JSC$19646_channel_,null),h.JSC$19646_xmlHttp_.send(h.JSC$19646_baseUri_));h.JSC$19646_requestStartTime_=Date.now();cXG(h)}YJp(this)};
var NtC=function(h){h.JSC$19665_backChannelRequest_&&(JXi(h),h.JSC$19665_backChannelRequest_.cancel(),h.JSC$19665_backChannelRequest_=null)},XUi=function(h){NtC(h);
h.JSC$19665_backChannelTimerId_&&(_.MN.clearTimeout(h.JSC$19665_backChannelTimerId_),h.JSC$19665_backChannelTimerId_=null);fUp(h);h.forwardChannelRequestPool_.cancel();h.JSC$19665_forwardChannelTimerId_&&(typeof h.JSC$19665_forwardChannelTimerId_==="number"&&_.MN.clearTimeout(h.JSC$19665_forwardChannelTimerId_),h.JSC$19665_forwardChannelTimerId_=null)};
rT.prototype.getState=function(){return this.state_};
var nJC=function(h){DOZ(h.forwardChannelRequestPool_)||h.JSC$19665_forwardChannelTimerId_||(h.JSC$19665_forwardChannelTimerId_=!0,_.HQ(h.JSC$19667_onStartForwardChannelTimer_,h),h.JSC$19665_forwardChannelRetryCount_=0)},Vzi=function(h,E){if(SJc(h.forwardChannelRequestPool_)>=h.forwardChannelRequestPool_.JSC$19656_maxSize_-(h.JSC$19665_forwardChannelTimerId_?1:0))return!1;
if(h.JSC$19665_forwardChannelTimerId_)return h.JSC$19665_channelDebug_.debug("Use the retry request that is already scheduled."),h.JSC$19665_outgoingMaps_=E.JSC$19646_pendingMessages_.concat(h.JSC$19665_outgoingMaps_),!0;if(h.state_==1||h.state_==2||h.JSC$19665_forwardChannelRetryCount_>=(h.JSC$19665_failFast_?0:h.JSC$19665_forwardChannelMaxRetries_))return!1;h.JSC$19665_channelDebug_.debug("Going to retry POST");h.JSC$19665_forwardChannelTimerId_=qE((0,_.DJ)(h.JSC$19667_onStartForwardChannelTimer_,
h,E),sMU(h,h.JSC$19665_forwardChannelRetryCount_));h.JSC$19665_forwardChannelRetryCount_++;return!0};
rT.prototype.JSC$19667_onStartForwardChannelTimer_=function(h){if(this.JSC$19665_forwardChannelTimerId_)if(this.JSC$19665_forwardChannelTimerId_=null,this.JSC$19665_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!h){this.JSC$19665_channelDebug_.debug("open_()");this.JSC$19665_nextRid_=Math.floor(Math.random()*1E5);h=this.JSC$19665_nextRid_++;var E=new td(this,this.JSC$19665_channelDebug_,"",h),g=this.JSC$19665_extraHeaders_;this.initHeaders_&&(g?(g=_.Kt.clone(g),_.Kt.extend(g,this.initHeaders_)):
g=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(E.JSC$19646_extraHeaders_=g,g=null);var Z;if(this.fastHandshake_)a:{for(var M=Z=0;M<this.JSC$19665_outgoingMaps_.length;M++){b:{var W=this.JSC$19665_outgoingMaps_[M];if("__data__"in W.map&&(W=W.map.__data__,typeof W==="string")){W=W.length;break b}W=void 0}if(W===void 0)break;Z+=W;if(Z>4096){Z=M;break a}if(Z===4096||M===this.JSC$19665_outgoingMaps_.length-1){Z=M+1;break a}}Z=1E3}else Z=1E3;Z=kdx(this,E,Z);
M=this.JSC$19665_forwardChannelUri_.clone();_.u4(M,"RID",h);_.u4(M,"CVER",22);this.httpSessionIdParam_&&_.u4(M,"X-HTTP-Session-Id",this.httpSessionIdParam_);mU(this,M);g&&(this.encodeInitMessageHeaders_?Z="headers="+_.Ax(aDx(g))+"&"+Z:this.httpHeadersOverwriteParam_&&cO0(M,this.httpHeadersOverwriteParam_,g));lUI(this.forwardChannelRequestPool_,E);this.blockingHandshake_&&_.u4(M,"TYPE","init");this.fastHandshake_?(_.u4(M,"$req",Z),_.u4(M,"SID","null"),E.decodeInitialResponse_=!0,aUC(E,M,null)):aUC(E,
M,Z);this.state_=2}}else this.state_==3&&(h?yXC(this,h):this.JSC$19665_outgoingMaps_.length==0?this.JSC$19665_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):DOZ(this.forwardChannelRequestPool_)||(yXC(this),this.JSC$19665_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var yXC=function(h,E){var g;E?g=E.JSC$19646_rid_:g=h.JSC$19665_nextRid_++;var Z=h.JSC$19665_forwardChannelUri_.clone();_.u4(Z,"SID",h.sid_);_.u4(Z,"RID",g);_.u4(Z,"AID",h.JSC$19665_lastArrayId_);mU(h,Z);h.httpHeadersOverwriteParam_&&h.JSC$19665_extraHeaders_&&cO0(Z,h.httpHeadersOverwriteParam_,h.JSC$19665_extraHeaders_);g=new td(h,h.JSC$19665_channelDebug_,h.sid_,g,h.JSC$19665_forwardChannelRetryCount_+1);h.httpHeadersOverwriteParam_===null&&(g.JSC$19646_extraHeaders_=h.JSC$19665_extraHeaders_);E&&
(h.JSC$19665_outgoingMaps_=E.JSC$19646_pendingMessages_.concat(h.JSC$19665_outgoingMaps_));E=kdx(h,g,1E3);g.setTimeout(Math.round(h.JSC$19665_forwardChannelRequestTimeoutMs_*.5)+Math.round(h.JSC$19665_forwardChannelRequestTimeoutMs_*.5*Math.random()));lUI(h.forwardChannelRequestPool_,g);aUC(g,Z,E)},mU=function(h,E){h.JSC$19665_extraParams_&&_.Kt.forEach(h.JSC$19665_extraParams_,function(g,Z){_.u4(E,Z,g)});
h.handler_&&_.Kt.forEach({},function(g,Z){_.u4(E,Z,g)})},kdx=function(h,E,g){g=Math.min(h.JSC$19665_outgoingMaps_.length,g);
var Z=h.handler_?(0,_.DJ)(h.handler_.JSC$19671_badMapError,h.handler_,h):null;a:{for(var M=h.JSC$19665_outgoingMaps_,W=-1;;){var z=["count="+g];W==-1?g>0?(W=M[0].JSC$19653_mapId,z.push("ofs="+W)):W=0:z.push("ofs="+W);for(var c=!0,I=0;I<g;I++){var B=M[I].JSC$19653_mapId,U=M[I].map;B-=W;if(B<0)W=Math.max(0,M[I].JSC$19653_mapId-100),c=!1;else try{B="req"+B+"_"||"";try{var L=U instanceof Map?U:Object.entries(U);for(var d=_.G(L),C=d.next();!C.done;C=d.next()){var q=_.G(C.value),w=q.next().value,r=q.next().value,
v=r;_.yx(r)&&(v=(0,_.XY)(r));z.push(B+w+"="+encodeURIComponent(v))}}catch(H){throw z.push(B+"type="+encodeURIComponent("_badmap")),H;}}catch(H){Z&&Z(U)}}if(c){L=z.join("&");break a}}L=void 0}h=h.JSC$19665_outgoingMaps_.splice(0,g);E.JSC$19646_pendingMessages_=h;return L},Fdc=function(h){h.JSC$19665_backChannelRequest_||h.JSC$19665_backChannelTimerId_||(h.JSC$19665_backChannelAttemptId_=1,_.HQ(h.JSC$19667_onStartBackChannelTimer_,h),h.JSC$19665_backChannelRetryCount_=0)},tzU=function(h){if(h.JSC$19665_backChannelRequest_||
h.JSC$19665_backChannelTimerId_||h.JSC$19665_backChannelRetryCount_>=3)return!1;
h.JSC$19665_channelDebug_.debug("Going to retry GET");h.JSC$19665_backChannelAttemptId_++;h.JSC$19665_backChannelTimerId_=qE((0,_.DJ)(h.JSC$19667_onStartBackChannelTimer_,h),sMU(h,h.JSC$19665_backChannelRetryCount_));h.JSC$19665_backChannelRetryCount_++;return!0};
rT.prototype.JSC$19667_onStartBackChannelTimer_=function(){this.JSC$19665_backChannelTimerId_=null;AXJ(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19665_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19665_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19665_backChannelRequest_+" "+this.handshakeRttMs_);else{var h=4*this.handshakeRttMs_;this.JSC$19665_channelDebug_.info("BP detection timer enabled: "+h);this.bpDetectionTimerId_=qE((0,_.DJ)(this.onBpDetectionTimer_,
this),h)}};
rT.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19665_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19665_backChannelRequest_.JSC$19646_xmlHttp_!=null){var h=this.JSC$19665_backChannelRequest_.JSC$19646_xmlHttp_.getResponseText();h&&this.JSC$19665_channelDebug_.warning("Timer should have been cancelled : "+h)}this.JSC$19665_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;eO(10);NtC(this);AXJ(this)}else this.JSC$19665_channelDebug_.warning("Invalid operation.")};
var JXi=function(h){h.bpDetectionTimerId_!=null&&(h.JSC$19665_channelDebug_.debug("Cancel the BP detection timer."),_.MN.clearTimeout(h.bpDetectionTimerId_),h.bpDetectionTimerId_=null)},AXJ=function(h){h.JSC$19665_channelDebug_.debug("Creating new HttpRequest");
h.JSC$19665_backChannelRequest_=new td(h,h.JSC$19665_channelDebug_,h.sid_,"rpc",h.JSC$19665_backChannelAttemptId_);h.httpHeadersOverwriteParam_===null&&(h.JSC$19665_backChannelRequest_.JSC$19646_extraHeaders_=h.JSC$19665_extraHeaders_);h.JSC$19665_backChannelRequest_.JSC$19646_readyStateChangeThrottleMs_=0;var E=h.JSC$19665_backChannelUri_.clone();_.u4(E,"RID","rpc");_.u4(E,"SID",h.sid_);_.u4(E,"AID",h.JSC$19665_lastArrayId_);_.u4(E,"CI",h.enableStreaming_?"0":"1");!h.enableStreaming_&&h.longPollingTimeout_&&
_.u4(E,"TO",h.longPollingTimeout_);_.u4(E,"TYPE","xmlhttp");mU(h,E);h.httpHeadersOverwriteParam_&&h.JSC$19665_extraHeaders_&&cO0(E,h.httpHeadersOverwriteParam_,h.JSC$19665_extraHeaders_);h.backChannelRequestTimeoutMs_&&h.JSC$19665_backChannelRequest_.setTimeout(h.backChannelRequestTimeoutMs_);var g=h.JSC$19665_backChannelRequest_,Z=h.JSC$19665_hostPrefix_;g.JSC$19646_type_=1;g.JSC$19646_baseUri_=_.Cr(E.clone());g.JSC$19646_postData_=null;g.decodeChunks_=!0;zrX(g,Z);h.JSC$19665_channelDebug_.debug("New Request created")};
rT.prototype.JSC$19667_onBackChannelDead_=function(){this.JSC$19665_deadBackChannelTimerId_!=null&&(this.JSC$19665_deadBackChannelTimerId_=null,NtC(this),tzU(this),eO(19))};
var fUp=function(h){h.JSC$19665_deadBackChannelTimerId_!=null&&(_.MN.clearTimeout(h.JSC$19665_deadBackChannelTimerId_),h.JSC$19665_deadBackChannelTimerId_=null)},jMX=function(h,E){h.JSC$19665_channelDebug_.debug("Request complete");
var g=null;if(h.JSC$19665_backChannelRequest_==E){fUp(h);JXi(h);h.JSC$19665_backChannelRequest_=null;var Z=2}else if(qJU(h.forwardChannelRequestPool_,E))g=E.JSC$19646_pendingMessages_,rXG(h.forwardChannelRequestPool_,E),Z=1;else return;if(h.state_!=0)if(E.JSC$19646_successful_)Z==1?(Q10(E.JSC$19646_postData_?E.JSC$19646_postData_.length:0,Date.now()-E.JSC$19646_requestStartTime_,h.JSC$19665_forwardChannelRetryCount_),nJC(h)):Fdc(h);else{var M=E.JSC$19646_lastStatusCode_,W=E.getLastError();if(W==3||
W==0&&M>0)h.JSC$19665_channelDebug_.debug("Not retrying due to error type"),M>200&&(h.errorResponseStatusCode_=E.JSC$19646_lastStatusCode_);else{h.JSC$19665_channelDebug_.debug(function(){return"Maybe retrying, last error: "+WdC(W,h.errorResponseStatusCode_)});
if(Z==1&&Vzi(h,E)||Z==2&&tzU(h))return;h.JSC$19665_channelDebug_.debug("Exceeded max number of retries")}g&&g.length>0&&vJG(h.forwardChannelRequestPool_,g);h.JSC$19665_channelDebug_.debug("Error: HTTP request failed");switch(W){case 1:wT(h,5);break;case 4:wT(h,10);break;case 3:wT(h,6);break;default:wT(h,2)}}},sMU=function(h,E){var g=h.JSC$19665_baseRetryDelayMs_+Math.floor(Math.random()*h.JSC$19665_retryDelaySeedMs_);
h.isActive()||(h.JSC$19665_channelDebug_.debug("Inactive channel"),g*=2);return g*E};
rT.prototype.onInput_=function(h,E){for(var g=0;g<h.length;g++){var Z=h[g];this.JSC$19665_lastArrayId_=Z[0];Z=Z[1];if(this.state_==2)if(Z[0]=="c"){this.sid_=Z[1];this.JSC$19665_hostPrefix_=Z[2];var M=Z[3];M!=null&&(this.JSC$19667_channelVersion_=M,this.JSC$19665_channelDebug_.info("VER="+this.JSC$19667_channelVersion_));M=Z[4];M!=null&&(this.serverVersion_=M,this.JSC$19665_channelDebug_.info("SVER="+this.serverVersion_));Z=Z[5];Z!=null&&typeof Z==="number"&&Z>0&&(this.backChannelRequestTimeoutMs_=
Z*=1.5,this.JSC$19665_channelDebug_.info("backChannelRequestTimeoutMs_="+Z));if(Z=E.JSC$19646_xmlHttp_){var W=id(Z,"X-Client-Wire-Protocol");W&&(M=this.forwardChannelRequestPool_,!M.requestPool_&&(_.oW(W,"spdy")||_.oW(W,"quic")||_.oW(W,"h2"))&&(M.JSC$19656_maxSize_=M.maxPoolSizeConfigured_,M.requestPool_=new Set,M.JSC$19656_request_&&(lUI(M,M.JSC$19656_request_),M.JSC$19656_request_=null)));this.httpSessionIdParam_&&((Z=id(Z,"X-HTTP-Session-Id"))?(this.httpSessionId_=Z,_.u4(this.JSC$19665_forwardChannelUri_,
this.httpSessionIdParam_,Z)):this.JSC$19665_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19671_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-E.JSC$19646_requestStartTime_,this.JSC$19665_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));Z=E;M=OfU(this,this.JSC$19665_supportsCrossDomainXhrs_?this.JSC$19665_hostPrefix_:null,this.JSC$19665_path_);this.JSC$19665_channelDebug_.debug("GetBackChannelUri: "+
M);this.JSC$19665_backChannelUri_=M;Z.initialResponseDecoded_?(this.JSC$19665_channelDebug_.debug("Upgrade the handshake request to a backchannel."),rXG(this.forwardChannelRequestPool_,Z),M=Z,(W=this.backChannelRequestTimeoutMs_)&&M.setTimeout(W),M.JSC$19646_watchDogTimerId_&&(RrC(M),cXG(M)),this.JSC$19665_backChannelRequest_=Z):Fdc(this);this.JSC$19665_outgoingMaps_.length>0&&nJC(this)}else Z[0]!="stop"&&Z[0]!="close"||wT(this,7);else this.state_==3&&(Z[0]=="stop"||Z[0]=="close"?Z[0]=="stop"?wT(this,
7):this.disconnect():Z[0]!="noop"&&this.handler_&&this.handler_.JSC$19671_channelHandleArray(Z),this.JSC$19665_backChannelRetryCount_=0)}};
var wT=function(h,E){h.JSC$19665_channelDebug_.info("Error code "+E);if(E==2){var g=(0,_.DJ)(h.testNetworkCallback_,h),Z=h.networkTestUrl_,M=!Z;Z=new _.WX(Z||"//www.google.com/images/cleardot.gif");_.MN.location&&_.MN.location.protocol=="http"||_.ob(Z,"https");_.Cr(Z);M?HfJ(Z.toString(),g):$Oc(Z.toString(),g)}else eO(2);h.onError_(E)};
rT.prototype.testNetworkCallback_=function(h){h?(this.JSC$19665_channelDebug_.info("Successfully pinged google.com"),eO(2)):(this.JSC$19665_channelDebug_.info("Failed to ping google.com"),eO(1))};
rT.prototype.onError_=function(h){this.JSC$19665_channelDebug_.debug("HttpChannel: error - "+h);this.state_=0;this.handler_&&this.handler_.JSC$19671_channelError(h);YJp(this);XUi(this)};
var YJp=function(h){h.state_=0;h.nonAckedMapsAtChannelClose_=[];if(h.handler_){var E=mOU(h.forwardChannelRequestPool_);if(E.length!=0||h.JSC$19665_outgoingMaps_.length!=0)h.JSC$19665_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+E.length+", outgoing: "+h.JSC$19665_outgoingMaps_.length}),_.Vx(h.nonAckedMapsAtChannelClose_,E),_.Vx(h.nonAckedMapsAtChannelClose_,h.JSC$19665_outgoingMaps_),h.forwardChannelRequestPool_.JSC$19656_pendingMessages_.length=0,_.Y$(h.JSC$19665_outgoingMaps_),
h.JSC$19665_outgoingMaps_.length=0;
h.handler_.JSC$19671_channelClosed()}},TtC=function(h){if(h.state_==0)return h.nonAckedMapsAtChannelClose_;
var E=[];_.Vx(E,mOU(h.forwardChannelRequestPool_));_.Vx(E,h.JSC$19665_outgoingMaps_);return E},OfU=function(h,E,g){var Z=_.T8(g);
Z.JSC$10033_domain_!=""?(E&&_.Ib(Z,E+"."+Z.JSC$10033_domain_),_.Rb(Z,Z.JSC$10033_port_)):(Z=_.MN.location,Z=h7U(Z.protocol,E?E+"."+Z.hostname:Z.hostname,+Z.port,g));E=h.httpSessionIdParam_;g=h.httpSessionId_;E&&g&&_.u4(Z,E,g);_.u4(Z,"VER",h.JSC$19667_channelVersion_);mU(h,Z);return Z},ifG=function(h,E,g){if(E&&!h.JSC$19665_supportsCrossDomainXhrs_)throw Error("Pk");
E=h.usesFetchStreams_&&!h.JSC$19665_xmlHttpFactory_?new _.YD(new vo({streamBinaryChunks:g})):new _.YD(h.JSC$19665_xmlHttpFactory_);E.JSC$9797_withCredentials_=h.JSC$19665_supportsCrossDomainXhrs_;return E};
rT.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var bfJ=function(){};
_.p=bfJ.prototype;_.p.JSC$19671_channelOpened=function(){};
_.p.JSC$19671_channelHandleArray=function(){};
_.p.JSC$19671_channelError=function(){};
_.p.JSC$19671_channelClosed=function(){};
_.p.isActive=function(){return!0};
_.p.JSC$19671_badMapError=function(){};var u3J=function(){},$o=function(h,E){_.ms.call(this);
this.JSC$19674_channel_=new rT(E);this.JSC$19674_url_=h;this.messageUrlParams_=E&&E.messageUrlParams||null;h=E&&E.messageHeaders||null;E&&E.clientProtocolHeaderRequired&&(h?_.Kt.set(h,"X-Client-Protocol","webchannel"):h=_.Kt.create("X-Client-Protocol","webchannel"));this.JSC$19674_channel_.JSC$19665_extraHeaders_=h;h=E&&E.initMessageHeaders||null;E&&E.messageContentType&&(h?_.Kt.set(h,"X-WebChannel-Content-Type",E.messageContentType):h=_.Kt.create("X-WebChannel-Content-Type",E.messageContentType));
E&&E.clientProfile&&(h?_.Kt.set(h,"X-WebChannel-Client-Profile",E.clientProfile):h=_.Kt.create("X-WebChannel-Client-Profile",E.clientProfile));this.JSC$19674_channel_.initHeaders_=h;(h=E&&E.httpHeadersOverwriteParam)&&!_.ca(h)&&(this.JSC$19674_channel_.httpHeadersOverwriteParam_=h);this.supportsCrossDomainXhr_=E&&E.supportsCrossDomainXhr||!1;this.sendRawJson_=E&&E.sendRawJson||!1;(E=E&&E.httpSessionIdParam)&&!_.ca(E)&&(this.JSC$19674_channel_.httpSessionIdParam_=E,_.Kt.containsKey(this.messageUrlParams_,
E)&&_.Kt.remove(this.messageUrlParams_,E));this.channelHandler_=new H8(this)};
_.aV($o,_.ms);$o.prototype.open=function(){this.JSC$19674_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19674_channel_.JSC$19665_supportsCrossDomainXhrs_=!0);this.JSC$19674_channel_.connect(this.JSC$19674_url_,this.messageUrlParams_||void 0)};
$o.prototype.close=function(){this.JSC$19674_channel_.disconnect()};
$o.prototype.send=function(h){var E=this.JSC$19674_channel_;if(typeof h==="string"){var g={};g.__data__=h;h=g}else this.sendRawJson_&&(g={},g.__data__=(0,_.XY)(h),h=g);E.JSC$19665_outgoingMaps_.push(new xOC(E.JSC$19665_nextMapId_++,h));E.state_==3&&nJC(E)};
$o.prototype.disposeInternal=function(){this.JSC$19674_channel_.handler_=null;delete this.channelHandler_;this.JSC$19674_channel_.disconnect();delete this.JSC$19674_channel_;$o.superClass_.disposeInternal.call(this)};
var QMx=function(h){kCJ.call(this);h.__headers__&&(this.headers=h.__headers__,this.statusCode=h.__status__,delete h.__headers__,delete h.__status__);var E=h.__sm__;E?this.data=(this.metadataKey=_.Kt.getAnyKey(E))?_.Kt.get(E,this.metadataKey):E:this.data=h};
_.aV(QMx,kCJ);var hRG=function(h){y9U.call(this);this.status=1;this.errorCode=h};
_.aV(hRG,y9U);var H8=function(h){this.JSC$19681_channel_=h};
_.aV(H8,bfJ);H8.prototype.JSC$19671_channelOpened=function(){this.JSC$19681_channel_.dispatchEvent("w")};
H8.prototype.JSC$19671_channelHandleArray=function(h){this.JSC$19681_channel_.dispatchEvent(new QMx(h))};
H8.prototype.JSC$19671_channelError=function(h){this.JSC$19681_channel_.dispatchEvent(new hRG(h))};
H8.prototype.JSC$19671_channelClosed=function(){this.JSC$19681_channel_.dispatchEvent("x")};
var EcC=function(h,E){this.transportChannel_=h;this.JSC$19684_channel_=E},gcU=function(h){return TtC(h.JSC$19684_channel_).map(function(E){var g=h.transportChannel_;
E=E.map;"__data__"in E?(E=E.__data__,g=g.sendRawJson_?(0,_.$sm)(E):E):g=E;return g})};
EcC.prototype.commit=function(h){this.JSC$19684_channel_.forwardChannelFlushedCallback_=h};var KE=function(h){Z1G.dispatchEvent(new McG(Z1G,h))},Z1G=new _.ms,McG=function(h,E){_.xD.call(this,"statevent",h);
this.stat=E};
_.f(McG,_.xD);var Ow=function(h,E,g,Z,M){this.JSC$19689_channel_=h;this.JSC$19689_channelDebug_=E;this.sid_=g;this.JSC$19689_rid_=Z;this.JSC$19689_retryId_=M||1;this.timeout_=45E3;this.JSC$19689_eventHandler_=new _.Pl(this);this.pollingTimer_=new _.R5;this.pollingTimer_.setInterval(250)};
_.p=Ow.prototype;_.p.JSC$19691_extraHeaders_=null;_.p.JSC$19691_successful_=!1;_.p.JSC$19691_watchDogTimerId_=null;_.p.JSC$19691_watchDogTimeoutTime_=null;_.p.JSC$19691_requestStartTime_=null;_.p.JSC$19691_type_=null;_.p.JSC$19691_baseUri_=null;_.p.JSC$19691_requestUri_=null;_.p.JSC$19691_postData_=null;_.p.JSC$19691_xmlHttp_=null;_.p.JSC$19691_xmlHttpChunkStart_=0;_.p.trident_=null;_.p.JSC$19691_verb_=null;_.p.JSC$19691_lastError_=null;_.p.JSC$19691_lastStatusCode_=-1;_.p.sendClose_=!0;
_.p.JSC$19691_cancelled_=!1;_.p.JSC$19691_readyStateChangeThrottleMs_=0;_.p.JSC$19691_readyStateChangeThrottle_=null;var WHi=function(h,E){switch(h){case 0:return"Non-200 return code ("+E+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},pkX={},GgC={};
Ow.prototype.setTimeout=function(h){this.timeout_=h};
var aLi=function(h,E,g){h.JSC$19691_type_=1;h.JSC$19691_baseUri_=_.Cr(E.clone());h.JSC$19691_postData_=g;h.decodeChunks_=!0;zRU(h,null)},c0p=function(h,E,g,Z,M){h.JSC$19691_type_=1;
h.JSC$19691_baseUri_=_.Cr(E.clone());h.JSC$19691_postData_=null;h.decodeChunks_=g;M&&(h.sendClose_=!1);zRU(h,Z)},zRU=function(h,E){h.JSC$19691_requestStartTime_=Date.now();
i1C(h);h.JSC$19691_requestUri_=h.JSC$19691_baseUri_.clone();oB(h.JSC$19691_requestUri_,"t",h.JSC$19689_retryId_);h.JSC$19691_xmlHttpChunkStart_=0;h.JSC$19691_xmlHttp_=h.JSC$19689_channel_.JSC$19698_createXhrIo(h.JSC$19689_channel_.JSC$19698_shouldUseSecondaryDomains()?E:null);h.JSC$19691_readyStateChangeThrottleMs_>0&&(h.JSC$19691_readyStateChangeThrottle_=new _.TD((0,_.DJ)(h.JSC$19691_xmlHttpHandler_,h,h.JSC$19691_xmlHttp_),h.JSC$19691_readyStateChangeThrottleMs_));h.JSC$19689_eventHandler_.listen(h.JSC$19691_xmlHttp_,
"readystatechange",h.JSC$19691_readyStateChangeHandler_);E=h.JSC$19691_extraHeaders_?_.Kt.clone(h.JSC$19691_extraHeaders_):{};h.JSC$19691_postData_?(h.JSC$19691_verb_="POST",E["Content-Type"]="application/x-www-form-urlencoded",h.JSC$19691_xmlHttp_.send(h.JSC$19691_requestUri_,h.JSC$19691_verb_,h.JSC$19691_postData_,E)):(h.JSC$19691_verb_="GET",h.sendClose_&&!_.PW&&(E.Connection="close"),h.JSC$19691_xmlHttp_.send(h.JSC$19691_requestUri_,h.JSC$19691_verb_,null,E));h.JSC$19689_channel_.notifyServerReachabilityEvent(1);
E=h.JSC$19689_channelDebug_;var g=h.JSC$19691_postData_;if(g){var Z="";g=g.split("&");for(var M=0;M<g.length;M++){var W=g[M].split("=");if(W.length>1){var z=W[0];W=W[1];var c=z.split("_");Z=c.length>=2&&c[1]=="type"?Z+(z+"="+W+"&"):Z+(z+"=redacted&")}}}else Z=null;E.info("XMLHTTP REQ ("+h.JSC$19689_rid_+") [attempt "+h.JSC$19689_retryId_+"]: "+h.JSC$19691_verb_+"\n"+h.JSC$19691_requestUri_+"\n"+Z)};
Ow.prototype.JSC$19691_readyStateChangeHandler_=function(h){h=h.target;var E=this.JSC$19691_readyStateChangeThrottle_;E&&_.sj(h)==3?(this.JSC$19689_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19691_xmlHttpHandler_(h)};
Ow.prototype.JSC$19691_xmlHttpHandler_=function(h){try{if(h==this.JSC$19691_xmlHttp_)a:{var E=_.sj(this.JSC$19691_xmlHttp_),g=this.JSC$19691_xmlHttp_.JSC$9797_lastErrorCode_,Z=this.JSC$19691_xmlHttp_.getStatus();if(_.PW&&!_.BW("420+")){if(E<4)break a}else if(E<3||E==3&&!this.JSC$19691_xmlHttp_.getResponseText())break a;this.JSC$19691_cancelled_||E!=4||g==7||(g==8||Z<=0?this.JSC$19689_channel_.notifyServerReachabilityEvent(3):this.JSC$19689_channel_.notifyServerReachabilityEvent(2));ocx(this);var M=
this.JSC$19691_xmlHttp_.getStatus();this.JSC$19691_lastStatusCode_=M;var W=this.JSC$19691_xmlHttp_.getResponseText();W||this.JSC$19689_channelDebug_.debug("No response text for uri "+this.JSC$19691_requestUri_+" status "+M);this.JSC$19691_successful_=M==200;this.JSC$19689_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19689_rid_+") [ attempt "+this.JSC$19689_retryId_+"]: "+this.JSC$19691_verb_+"\n"+this.JSC$19691_requestUri_+"\n"+E+" "+M);if(this.JSC$19691_successful_){E==4&&nE(this);if(this.decodeChunks_){for(h=
!0;!this.JSC$19691_cancelled_&&this.JSC$19691_xmlHttpChunkStart_<W.length;){var z=ILZ(this,W);if(z==GgC){E==4&&(this.JSC$19691_lastError_=4,KE(15),h=!1);Xe(this.JSC$19689_channelDebug_,this.JSC$19689_rid_,null,"[Incomplete Response]");break}else if(z==pkX){this.JSC$19691_lastError_=4;KE(16);Xe(this.JSC$19689_channelDebug_,this.JSC$19689_rid_,W,"[Invalid Chunk]");h=!1;break}else Xe(this.JSC$19689_channelDebug_,this.JSC$19689_rid_,z,null),RRI(this,z)}E==4&&W.length==0&&(this.JSC$19691_lastError_=1,
KE(17),h=!1);this.JSC$19691_successful_=this.JSC$19691_successful_&&h;h||(Xe(this.JSC$19689_channelDebug_,this.JSC$19689_rid_,W,"[Invalid Chunked Response]"),nE(this),PMG(this))}else Xe(this.JSC$19689_channelDebug_,this.JSC$19689_rid_,W,null),RRI(this,W);this.JSC$19691_successful_&&!this.JSC$19691_cancelled_&&(E==4?this.JSC$19689_channel_.JSC$19698_onRequestComplete(this):(this.JSC$19691_successful_=!1,i1C(this)))}else M==400&&W.indexOf("Unknown SID")>0?(this.JSC$19691_lastError_=3,KE(13),this.JSC$19689_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19689_rid_+")")):(this.JSC$19691_lastError_=0,KE(14),this.JSC$19689_channelDebug_.warning("XMLHTTP Bad status "+M+" ("+this.JSC$19689_rid_+")")),nE(this),PMG(this)}else this.JSC$19689_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$19689_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var ILZ=function(h,E){var g=h.JSC$19691_xmlHttpChunkStart_,Z=E.indexOf("\n",g);if(Z==-1)return GgC;g=Number(E.substring(g,Z));if(isNaN(g))return pkX;Z+=1;if(Z+g>E.length)return GgC;E=E.slice(Z,Z+g);h.JSC$19691_xmlHttpChunkStart_=Z+g;return E};
Ow.prototype.cancel=function(){this.JSC$19691_cancelled_=!0;nE(this)};
var i1C=function(h){h.JSC$19691_watchDogTimeoutTime_=Date.now()+h.timeout_;ByC(h,h.timeout_)},ByC=function(h,E){if(h.JSC$19691_watchDogTimerId_!=null)throw Error("Ok");
h.JSC$19691_watchDogTimerId_=ee((0,_.DJ)(h.JSC$19691_onWatchDogTimeout_,h),E)},ocx=function(h){h.JSC$19691_watchDogTimerId_&&(_.MN.clearTimeout(h.JSC$19691_watchDogTimerId_),h.JSC$19691_watchDogTimerId_=null)};
Ow.prototype.JSC$19691_onWatchDogTimeout_=function(){this.JSC$19691_watchDogTimerId_=null;var h=Date.now();h-this.JSC$19691_watchDogTimeoutTime_>=0?(this.JSC$19689_channelDebug_.info("TIMEOUT: "+this.JSC$19691_requestUri_),this.JSC$19691_type_!=2&&this.JSC$19689_channel_.notifyServerReachabilityEvent(3),nE(this),this.JSC$19691_lastError_=2,KE(18),PMG(this)):(this.JSC$19689_channelDebug_.warning("WatchDog timer called too early"),ByC(this,this.JSC$19691_watchDogTimeoutTime_-h))};
var PMG=function(h){h.JSC$19689_channel_.JSC$19698_isClosed()||h.JSC$19691_cancelled_||h.JSC$19689_channel_.JSC$19698_onRequestComplete(h)},nE=function(h){ocx(h);
_.p8(h.JSC$19691_readyStateChangeThrottle_);h.JSC$19691_readyStateChangeThrottle_=null;h.pollingTimer_.stop();h.JSC$19689_eventHandler_.removeAll();if(h.JSC$19691_xmlHttp_){var E=h.JSC$19691_xmlHttp_;h.JSC$19691_xmlHttp_=null;E.abort();E.dispose()}h.trident_&&(h.trident_=null)};
Ow.prototype.getLastError=function(){return this.JSC$19691_lastError_};
var RRI=function(h,E){try{h.JSC$19689_channel_.JSC$19698_onRequestData(h,E),h.JSC$19689_channel_.notifyServerReachabilityEvent(4)}catch(g){}};var Xe=function(h,E,g,Z){var M=h.info;a:if(g&&g!="y2f%"){try{var W=JSON.parse(g);if(W)for(var z=0;z<W.length;z++)if(Array.isArray(W[z])){var c=W[z];if(!(c.length<2)){var I=c[1];if(Array.isArray(I)&&!(I.length<1)){var B=I[0];if(B!="noop"&&B!="stop")for(var U=1;U<I.length;U++)I[U]=""}}}var L=(0,_.XY)(W);break a}catch(d){h.debug("Exception parsing expected JS array - probably was not JS");L=g;break a}L=void 0}else L=g;M.call(h,"XMLHTTP TEXT ("+E+"): "+L+(Z?" "+Z:""))};
qn.prototype.debug=function(h){this.info(h)};
qn.prototype.info=function(){};
qn.prototype.warning=function(){};var UM0=function(h,E){this.JSC$19696_channel_=h;this.JSC$19696_channelDebug_=E;this.JSC$19696_parser_=new CE};
_.p=UM0.prototype;_.p.JSC$19698_extraHeaders_=null;_.p.JSC$19698_request_=null;_.p.receivedIntermediateResult_=!1;_.p.JSC$19698_path_=null;_.p.state_=null;_.p.JSC$19698_lastStatusCode_=-1;_.p.JSC$19698_hostPrefix_=null;_.p.blockedPrefix_=null;
_.p.connect=function(h){this.JSC$19698_path_=h;h=LHI(this.JSC$19696_channel_,this.JSC$19698_path_);KE(3);Date.now();var E=this.JSC$19696_channel_.firstTestResults_;E!=null?(this.JSC$19698_hostPrefix_=E[0],(this.blockedPrefix_=E[1])?(this.state_=1,jRc(this)):(this.state_=2,dMU(this))):(oB(h,"MODE","init"),this.JSC$19698_request_=new Ow(this,this.JSC$19696_channelDebug_),this.JSC$19698_request_.JSC$19691_extraHeaders_=this.JSC$19698_extraHeaders_,c0p(this.JSC$19698_request_,h,!1,null,!0),this.state_=
0)};
var jRc=function(h){var E=CMJ(h.JSC$19696_channel_,h.blockedPrefix_,"/mail/images/cleardot.gif");_.Cr(E);mmx(E.toString(),5E3,(0,_.DJ)(h.checkBlockedCallback_,h),3,2E3);h.notifyServerReachabilityEvent(1)};
UM0.prototype.checkBlockedCallback_=function(h){if(h)this.state_=2,dMU(this);else{KE(4);var E=this.JSC$19696_channel_;E.JSC$19699_channelDebug_.debug("Test Connection Blocked");E.JSC$19703_lastStatusCode_=E.connectionTest_.JSC$19698_lastStatusCode_;Yo(E,9)}h&&this.notifyServerReachabilityEvent(2)};
var dMU=function(h){h.JSC$19696_channelDebug_.debug("TestConnection: starting stage 2");var E=h.JSC$19696_channel_.secondTestResults_;E!=null?(h.JSC$19696_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+E?"Buffered":"Unbuffered"),KE(5),E?(KE(11),sw(h.JSC$19696_channel_,h,!1)):(KE(12),sw(h.JSC$19696_channel_,h,!0))):(h.JSC$19698_request_=new Ow(h,h.JSC$19696_channelDebug_),h.JSC$19698_request_.JSC$19691_extraHeaders_=h.JSC$19698_extraHeaders_,E=J0G(h.JSC$19696_channel_,
h.JSC$19698_hostPrefix_,h.JSC$19698_path_),KE(5),oB(E,"TYPE","xmlhttp"),c0p(h.JSC$19698_request_,E,!1,h.JSC$19698_hostPrefix_,!1))};
_.p=UM0.prototype;_.p.JSC$19698_createXhrIo=function(h){return this.JSC$19696_channel_.JSC$19698_createXhrIo(h)};
_.p.abort=function(){this.JSC$19698_request_&&(this.JSC$19698_request_.cancel(),this.JSC$19698_request_=null);this.JSC$19698_lastStatusCode_=-1};
_.p.JSC$19698_isClosed=function(){return!1};
_.p.JSC$19698_onRequestData=function(h,E){this.JSC$19698_lastStatusCode_=h.JSC$19691_lastStatusCode_;if(this.state_==0)if(this.JSC$19696_channelDebug_.debug("TestConnection: Got data for stage 1"),E){try{var g=this.JSC$19696_parser_.parse(E)}catch(Z){eRc(this.JSC$19696_channel_,this);return}this.JSC$19698_hostPrefix_=g[0];this.blockedPrefix_=g[1]}else this.JSC$19696_channelDebug_.debug("TestConnection: Null responseText"),eRc(this.JSC$19696_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(KE(7),Date.now()):E=="11111"?(KE(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19698_lastStatusCode_=200,this.JSC$19698_request_.cancel(),this.JSC$19696_channelDebug_.debug("Test connection succeeded; using streaming connection"),KE(12),sw(this.JSC$19696_channel_,this,!0)):(KE(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.p.JSC$19698_onRequestComplete=function(){this.JSC$19698_lastStatusCode_=this.JSC$19698_request_.JSC$19691_lastStatusCode_;this.JSC$19698_request_.JSC$19691_successful_?this.state_==0?(this.JSC$19696_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,jRc(this)):(this.state_=2,dMU(this))):this.state_==2&&(this.JSC$19696_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19696_channelDebug_.debug("Test connection succeeded; using streaming connection"),
KE(12),sw(this.JSC$19696_channel_,this,!0)):(this.JSC$19696_channelDebug_.debug("Test connection failed; not using streaming"),KE(11),sw(this.JSC$19696_channel_,this,!1))):(this.JSC$19696_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?KE(9):this.state_==2&&KE(10),eRc(this.JSC$19696_channel_,this,this.JSC$19698_request_.getLastError()))};
_.p.JSC$19698_shouldUseSecondaryDomains=function(){return this.JSC$19696_channel_.JSC$19698_shouldUseSecondaryDomains()};
_.p.isActive=function(){return this.JSC$19696_channel_.isActive()};
_.p.notifyServerReachabilityEvent=function(h){this.JSC$19696_channel_.notifyServerReachabilityEvent(h)};var Vz=function(h,E,g){this.state_=1;this.JSC$19699_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19699_channelDebug_=new qn;this.JSC$19699_parser_=new CE;this.firstTestResults_=h||null;this.secondTestResults_=E!=null?E:null;this.asyncTest_=g||!1},qr0=function(h,E){this.JSC$19701_mapId=h;
this.map=E;this.context=null};
_.p=Vz.prototype;_.p.JSC$19703_extraHeaders_=null;_.p.JSC$19703_extraParams_=null;_.p.forwardChannelRequest_=null;_.p.JSC$19703_backChannelRequest_=null;_.p.JSC$19703_path_=null;_.p.JSC$19703_forwardChannelUri_=null;_.p.JSC$19703_backChannelUri_=null;_.p.JSC$19703_hostPrefix_=null;_.p.JSC$19703_nextRid_=0;_.p.JSC$19703_nextMapId_=0;_.p.handler_=null;_.p.JSC$19703_forwardChannelTimerId_=null;_.p.JSC$19703_backChannelTimerId_=null;_.p.JSC$19703_deadBackChannelTimerId_=null;_.p.connectionTest_=null;
_.p.useChunked_=null;_.p.JSC$19703_lastArrayId_=-1;_.p.JSC$19703_lastPostResponseArrayId_=-1;_.p.JSC$19703_lastStatusCode_=-1;_.p.JSC$19703_forwardChannelRetryCount_=0;_.p.JSC$19703_backChannelRetryCount_=0;_.p.JSC$19703_channelVersion_=8;var fLC={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},NyR=function(h,E,g,Z){_.xD.call(this,"timingevent",h);this.size=E;this.rtt=g;this.retries=Z};
_.aV(NyR,_.xD);var tcC=function(h){_.xD.call(this,"serverreachability",h)};
_.aV(tcC,_.xD);Vz.prototype.connect=function(h,E,g,Z,M){this.JSC$19699_channelDebug_.debug("connect()");KE(0);this.JSC$19703_path_=E;this.JSC$19703_extraParams_=g||{};Z&&M!==void 0&&(this.JSC$19703_extraParams_.OSID=Z,this.JSC$19703_extraParams_.OAID=M);this.asyncTest_?(ee((0,_.DJ)(this.connectTest_,this,h),100),Sri(this)):this.connectTest_(h)};
Vz.prototype.disconnect=function(){this.JSC$19699_channelDebug_.debug("disconnect()");xMx(this);if(this.state_==3){var h=this.JSC$19703_nextRid_++,E=this.JSC$19703_forwardChannelUri_.clone();_.u4(E,"SID",this.sid_);_.u4(E,"RID",h);_.u4(E,"TYPE","terminate");ko(this,E);h=new Ow(this,this.JSC$19699_channelDebug_,this.sid_,h);h.JSC$19691_type_=2;h.JSC$19691_baseUri_=_.Cr(E.clone());(new Image).src=h.JSC$19691_baseUri_.toString();h.JSC$19691_requestStartTime_=Date.now();i1C(h)}wkU(this)};
Vz.prototype.connectTest_=function(h){this.JSC$19699_channelDebug_.debug("connectTest_()");this.connectionTest_=new UM0(this,this.JSC$19699_channelDebug_);this.connectionTest_.JSC$19698_extraHeaders_=this.JSC$19703_extraHeaders_;this.connectionTest_.JSC$19696_parser_=this.JSC$19699_parser_;this.connectionTest_.connect(h)};
var Sri=function(h){h.JSC$19699_channelDebug_.debug("connectChannel_()");h.JSC$19703_ensureInState_(1,0);h.JSC$19703_forwardChannelUri_=LHI(h,h.JSC$19703_path_);DMI(h)},xMx=function(h){h.connectionTest_&&(h.connectionTest_.abort(),h.connectionTest_=null);
h.JSC$19703_backChannelRequest_&&(h.JSC$19703_backChannelRequest_.cancel(),h.JSC$19703_backChannelRequest_=null);h.JSC$19703_backChannelTimerId_&&(_.MN.clearTimeout(h.JSC$19703_backChannelTimerId_),h.JSC$19703_backChannelTimerId_=null);lLX(h);h.forwardChannelRequest_&&(h.forwardChannelRequest_.cancel(),h.forwardChannelRequest_=null);h.JSC$19703_forwardChannelTimerId_&&(_.MN.clearTimeout(h.JSC$19703_forwardChannelTimerId_),h.JSC$19703_forwardChannelTimerId_=null)},r0U=function(h,E){if(h.state_==0)throw Error("Rk");
h.JSC$19699_outgoingMaps_.length==1E3&&h.JSC$19699_parser_.stringify(E);h.JSC$19699_outgoingMaps_.push(new qr0(h.JSC$19703_nextMapId_++,E));h.state_!=2&&h.state_!=3||DMI(h)};
Vz.prototype.JSC$19698_isClosed=function(){return this.state_==0};
Vz.prototype.getState=function(){return this.state_};
var DMI=function(h){h.forwardChannelRequest_||h.JSC$19703_forwardChannelTimerId_||(h.JSC$19703_forwardChannelTimerId_=ee((0,_.DJ)(h.JSC$19703_onStartForwardChannelTimer_,h),0),h.JSC$19703_forwardChannelRetryCount_=0)};
Vz.prototype.JSC$19703_onStartForwardChannelTimer_=function(h){this.JSC$19703_forwardChannelTimerId_=null;mMC(this,h)};
var mMC=function(h,E){h.JSC$19699_channelDebug_.debug("startForwardChannel_");if(h.state_==1){if(!E){h.JSC$19699_channelDebug_.debug("open_()");h.JSC$19703_nextRid_=Math.floor(Math.random()*1E5);E=h.JSC$19703_nextRid_++;var g=new Ow(h,h.JSC$19699_channelDebug_,"",E);g.JSC$19691_extraHeaders_=h.JSC$19703_extraHeaders_;var Z=vci(h),M=h.JSC$19703_forwardChannelUri_.clone();_.u4(M,"RID",E);_.u4(M,"CVER","1");ko(h,M);aLi(g,M,Z);h.forwardChannelRequest_=g;h.state_=2}}else h.state_==3&&(E?NKJ(h,E):h.JSC$19699_outgoingMaps_.length==
0?h.JSC$19699_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):h.forwardChannelRequest_||(NKJ(h),h.JSC$19699_channelDebug_.debug("startForwardChannel_ finished, sent request")))},NKJ=function(h,E){if(E)if(h.JSC$19703_channelVersion_>6){h.JSC$19699_outgoingMaps_=h.pendingMaps_.concat(h.JSC$19699_outgoingMaps_);
h.pendingMaps_.length=0;var g=h.JSC$19703_nextRid_-1;E=vci(h)}else g=E.JSC$19689_rid_,E=E.JSC$19691_postData_;else g=h.JSC$19703_nextRid_++,E=vci(h);var Z=h.JSC$19703_forwardChannelUri_.clone();_.u4(Z,"SID",h.sid_);_.u4(Z,"RID",g);_.u4(Z,"AID",h.JSC$19703_lastArrayId_);ko(h,Z);g=new Ow(h,h.JSC$19699_channelDebug_,h.sid_,g,h.JSC$19703_forwardChannelRetryCount_+1);g.JSC$19691_extraHeaders_=h.JSC$19703_extraHeaders_;g.setTimeout(1E4+Math.round(1E4*Math.random()));h.forwardChannelRequest_=g;aLi(g,Z,E)},
ko=function(h,E){h.handler_&&(h=h.handler_.JSC$19710_getAdditionalParams())&&_.Kt.forEach(h,function(g,Z){_.u4(E,Z,g)})},vci=function(h){var E=Math.min(h.JSC$19699_outgoingMaps_.length,1E3),g=["count="+E];
if(h.JSC$19703_channelVersion_>6&&E>0){var Z=h.JSC$19699_outgoingMaps_[0].JSC$19701_mapId;g.push("ofs="+Z)}else Z=0;for(var M={},W=0;W<E;M={mapId$jscomp$3:void 0},W++){M.mapId$jscomp$3=h.JSC$19699_outgoingMaps_[W].JSC$19701_mapId;var z=h.JSC$19699_outgoingMaps_[W].map;M.mapId$jscomp$3=h.JSC$19703_channelVersion_<=6?W:M.mapId$jscomp$3-Z;try{_.Kt.forEach(z,function(c){return function(I,B){g.push("req"+c.mapId$jscomp$3+"_"+B+"="+encodeURIComponent(I))}}(M))}catch(c){g.push("req"+M.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}h.pendingMaps_=h.pendingMaps_.concat(h.JSC$19699_outgoingMaps_.splice(0,E));
return g.join("&")},t1x=function(h){h.JSC$19703_backChannelRequest_||h.JSC$19703_backChannelTimerId_||(h.JSC$19703_backChannelAttemptId_=1,h.JSC$19703_backChannelTimerId_=ee((0,_.DJ)(h.JSC$19703_onStartBackChannelTimer_,h),0),h.JSC$19703_backChannelRetryCount_=0)},xJp=function(h){if(h.JSC$19703_backChannelRequest_||h.JSC$19703_backChannelTimerId_||h.JSC$19703_backChannelRetryCount_>=3)return!1;
h.JSC$19699_channelDebug_.debug("Going to retry GET");h.JSC$19703_backChannelAttemptId_++;h.JSC$19703_backChannelTimerId_=ee((0,_.DJ)(h.JSC$19703_onStartBackChannelTimer_,h),Shx(h,h.JSC$19703_backChannelRetryCount_));h.JSC$19703_backChannelRetryCount_++;return!0};
Vz.prototype.JSC$19703_onStartBackChannelTimer_=function(){this.JSC$19703_backChannelTimerId_=null;this.JSC$19699_channelDebug_.debug("Creating new HttpRequest");this.JSC$19703_backChannelRequest_=new Ow(this,this.JSC$19699_channelDebug_,this.sid_,"rpc",this.JSC$19703_backChannelAttemptId_);this.JSC$19703_backChannelRequest_.JSC$19691_extraHeaders_=this.JSC$19703_extraHeaders_;this.JSC$19703_backChannelRequest_.JSC$19691_readyStateChangeThrottleMs_=0;var h=this.JSC$19703_backChannelUri_.clone();_.u4(h,
"RID","rpc");_.u4(h,"SID",this.sid_);_.u4(h,"CI",this.useChunked_?"0":"1");_.u4(h,"AID",this.JSC$19703_lastArrayId_);ko(this,h);_.u4(h,"TYPE","xmlhttp");c0p(this.JSC$19703_backChannelRequest_,h,!0,this.JSC$19703_hostPrefix_,!1);this.JSC$19699_channelDebug_.debug("New Request created")};
var sw=function(h,E,g){h.JSC$19699_channelDebug_.debug("Test Connection Finished");h.useChunked_=h.secondTestResults_==null?g:!h.secondTestResults_;h.JSC$19703_lastStatusCode_=E.JSC$19698_lastStatusCode_;h.asyncTest_||Sri(h)},eRc=function(h,E){h.JSC$19699_channelDebug_.debug("Test Connection Failed");
h.JSC$19703_lastStatusCode_=E.JSC$19698_lastStatusCode_;Yo(h,2)};
Vz.prototype.JSC$19698_onRequestData=function(h,E){if(this.state_!=0&&(this.JSC$19703_backChannelRequest_==h||this.forwardChannelRequest_==h))if(this.JSC$19703_lastStatusCode_=h.JSC$19691_lastStatusCode_,this.forwardChannelRequest_==h&&this.state_==3)if(this.JSC$19703_channelVersion_>7){try{var g=this.JSC$19699_parser_.parse(E)}catch(Z){g=null}if(Array.isArray(g)&&g.length==3)if(E=g,E[0]==0)a:if(this.JSC$19699_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19703_backChannelTimerId_)this.JSC$19699_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19703_backChannelRequest_)if(this.JSC$19703_backChannelRequest_.JSC$19691_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19691_requestStartTime_)lLX(this),this.JSC$19703_backChannelRequest_.cancel(),this.JSC$19703_backChannelRequest_=null;else break a;else this.JSC$19699_channelDebug_.warning("We do not have a BackChannel established");xJp(this);KE(19)}else this.JSC$19703_lastPostResponseArrayId_=E[1],h=this.JSC$19703_lastPostResponseArrayId_-this.JSC$19703_lastArrayId_,0<
h&&(E=E[2],this.JSC$19699_channelDebug_.debug(E+" bytes (in "+h+" arrays) are outstanding on the BackChannel"),E<37500&&this.useChunked_&&this.JSC$19703_backChannelRetryCount_==0&&!this.JSC$19703_deadBackChannelTimerId_&&(this.JSC$19703_deadBackChannelTimerId_=ee((0,_.DJ)(this.JSC$19703_onBackChannelDead_,this),6E3)));else this.JSC$19699_channelDebug_.debug("Bad POST response data returned"),Yo(this,11)}else E!="y2f%"&&(this.JSC$19699_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Yo(this,11));else this.JSC$19703_backChannelRequest_==h&&lLX(this),_.ca(E)||(h=this.JSC$19699_parser_.parse(E),this.onInput_(h))};
Vz.prototype.JSC$19703_onBackChannelDead_=function(){this.JSC$19703_deadBackChannelTimerId_!=null&&(this.JSC$19703_deadBackChannelTimerId_=null,this.JSC$19703_backChannelRequest_.cancel(),this.JSC$19703_backChannelRequest_=null,xJp(this),KE(20))};
var lLX=function(h){h.JSC$19703_deadBackChannelTimerId_!=null&&(_.MN.clearTimeout(h.JSC$19703_deadBackChannelTimerId_),h.JSC$19703_deadBackChannelTimerId_=null)};
Vz.prototype.JSC$19698_onRequestComplete=function(h){this.JSC$19699_channelDebug_.debug("Request complete");if(this.JSC$19703_backChannelRequest_==h){lLX(this);this.JSC$19703_backChannelRequest_=null;var E=2}else if(this.forwardChannelRequest_==h)this.forwardChannelRequest_=null,E=1;else return;this.JSC$19703_lastStatusCode_=h.JSC$19691_lastStatusCode_;if(this.state_!=0)if(h.JSC$19691_successful_)if(E==1){E=h.JSC$19691_postData_?h.JSC$19691_postData_.length:0;h=Date.now()-h.JSC$19691_requestStartTime_;
var g=Z1G;g.dispatchEvent(new NyR(g,E,h,this.JSC$19703_forwardChannelRetryCount_));DMI(this);this.handler_&&this.handler_.JSC$19710_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else t1x(this);else{g=h.getLastError();if(g==3||g==7||g==0&&this.JSC$19703_lastStatusCode_>0)this.JSC$19699_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19699_channelDebug_.debug("Maybe retrying, last error: "+WHi(g,this.JSC$19703_lastStatusCode_));var Z;if(Z=E==1)this.forwardChannelRequest_||
this.JSC$19703_forwardChannelTimerId_||this.state_==1||this.JSC$19703_forwardChannelRetryCount_>=2?Z=!1:(this.JSC$19699_channelDebug_.debug("Going to retry POST"),this.JSC$19703_forwardChannelTimerId_=ee((0,_.DJ)(this.JSC$19703_onStartForwardChannelTimer_,this,h),Shx(this,this.JSC$19703_forwardChannelRetryCount_)),this.JSC$19703_forwardChannelRetryCount_++,Z=!0);if(Z||E==2&&xJp(this))return;this.JSC$19699_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19699_channelDebug_.debug("Error: HTTP request failed");
switch(g){case 1:Yo(this,5);break;case 4:Yo(this,10);break;case 3:Yo(this,6);break;case 7:Yo(this,12);break;default:Yo(this,2)}}};
var Shx=function(h,E){var g=5E3+Math.floor(Math.random()*1E4);h.isActive()||(h.JSC$19699_channelDebug_.debug("Inactive channel"),g*=2);return g*E};
Vz.prototype.onInput_=function(h){for(var E=0;E<h.length;E++){var g=h[E];this.JSC$19703_lastArrayId_=g[0];g=g[1];this.state_==2?g[0]=="c"?(this.sid_=g[1],this.JSC$19703_hostPrefix_=g[2],g=g[3],g!=null?this.JSC$19703_channelVersion_=g:this.JSC$19703_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19710_channelOpened(),this.JSC$19703_backChannelUri_=J0G(this,this.JSC$19703_hostPrefix_,this.JSC$19703_path_),t1x(this)):g[0]=="stop"&&Yo(this,7):this.state_==3&&(g[0]=="stop"?Yo(this,7):
g[0]!="noop"&&this.handler_&&this.handler_.JSC$19710_channelHandleArray(g),this.JSC$19703_backChannelRetryCount_=0)}};
Vz.prototype.JSC$19703_ensureInState_=function(h){if(!_.nd(arguments,this.state_))throw Error("Sk`"+this.state_);};
var Yo=function(h,E){h.JSC$19699_channelDebug_.info("Error code "+E);if(E==2||E==9){var g=null;h.handler_&&(g=null);var Z=(0,_.DJ)(h.testGoogleComCallback_,h);g||(g=new _.WX("//www.google.com/images/cleardot.gif"),_.Cr(g));rax(g.toString(),1E4,Z)}else KE(2);h.onError_(E)};
Vz.prototype.testGoogleComCallback_=function(h){h?(this.JSC$19699_channelDebug_.info("Successfully pinged google.com"),KE(2)):(this.JSC$19699_channelDebug_.info("Failed to ping google.com"),KE(1),this.onError_(8))};
Vz.prototype.onError_=function(h){this.JSC$19699_channelDebug_.debug("HttpChannel: error - "+h);this.state_=0;this.handler_&&this.handler_.JSC$19710_channelError(h);wkU(this);xMx(this)};
var wkU=function(h){h.state_=0;h.JSC$19703_lastStatusCode_=-1;if(h.handler_)if(h.pendingMaps_.length==0&&h.JSC$19699_outgoingMaps_.length==0)h.handler_.JSC$19710_channelClosed();else{h.JSC$19699_channelDebug_.debug("Number of undelivered maps, pending: "+h.pendingMaps_.length+", outgoing: "+h.JSC$19699_outgoingMaps_.length);var E=_.Y$(h.pendingMaps_),g=_.Y$(h.JSC$19699_outgoingMaps_);h.pendingMaps_.length=0;h.JSC$19699_outgoingMaps_.length=0;h.handler_.JSC$19710_channelClosed(E,g)}},LHI=function(h,
E){E=CMJ(h,null,E);
h.JSC$19699_channelDebug_.debug("GetForwardChannelUri: "+E);return E},J0G=function(h,E,g){E=CMJ(h,h.JSC$19698_shouldUseSecondaryDomains()?E:null,g);
h.JSC$19699_channelDebug_.debug("GetBackChannelUri: "+E);return E},CMJ=function(h,E,g){var Z=_.T8(g);
if(Z.JSC$10033_domain_!="")E&&_.Ib(Z,E+"."+Z.JSC$10033_domain_),_.Rb(Z,Z.JSC$10033_port_);else{var M=window.location;Z=h7U(M.protocol,E?E+"."+M.hostname:M.hostname,+M.port,g)}h.JSC$19703_extraParams_&&_.Kt.forEach(h.JSC$19703_extraParams_,function(W,z){_.u4(Z,z,W)});
_.u4(Z,"VER",h.JSC$19703_channelVersion_);ko(h,Z);return Z};
Vz.prototype.JSC$19698_createXhrIo=function(h){if(h)throw Error("Pk");h=new _.YD;h.JSC$9797_withCredentials_=!1;return h};
Vz.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Vz.prototype.notifyServerReachabilityEvent=function(h){var E=Z1G;E.dispatchEvent(new tcC(E,h))};
Vz.prototype.JSC$19698_shouldUseSecondaryDomains=function(){return!1};
new pFC;var w4I=function(){};
_.p=w4I.prototype;_.p.JSC$19710_channelOpened=function(){};
_.p.JSC$19710_channelHandleArray=function(){};
_.p.JSC$19710_channelSuccess=function(){};
_.p.JSC$19710_channelError=function(){};
_.p.JSC$19710_channelClosed=function(){};
_.p.JSC$19710_getAdditionalParams=function(){return{}};
_.p.isActive=function(){return!0};var DJ0=function(h){h.front_.length===0&&(h.front_=h.back_,h.front_.reverse(),h.back_=[])};
_.p=H3G.prototype;_.p.enqueue=function(h){this.back_.push(h)};
_.p.peek=function(){DJ0(this);return _.r$(this.front_)};
_.p.getCount=function(){return this.front_.length+this.back_.length};
_.p.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.p.clear=function(){this.front_=[];this.back_=[]};
_.p.contains=function(h){return _.nd(this.front_,h)||_.nd(this.back_,h)};
_.p.remove=function(h){var E=this.front_;var g=Array.prototype.lastIndexOf.call(E,h,E.length-1);g>=0?(_.eVq(E,g),E=!0):E=!1;return E||_.Xz(this.back_,h)};
_.p.getValues=function(){for(var h=[],E=this.front_.length-1;E>=0;--E)h.push(this.front_[E]);E=this.back_.length;for(var g=0;g<E;++g)h.push(this.back_[g]);return h};var yz=function(h){this.JSC$19714_map_=new _.NO;this.size=0;h&&this.addAll(h)},lXI=function(h){var E=typeof h;
return E=="object"&&h||E=="function"?"o"+_.AM(h):E.charAt(0)+h};
_.p=yz.prototype;_.p.getCount=function(){return this.JSC$19714_map_.size};
_.p.add=function(h){this.JSC$19714_map_.set(lXI(h),h);this.size=this.JSC$19714_map_.size};
_.p.addAll=function(h){h=_.iG(h);for(var E=h.length,g=0;g<E;g++)this.add(h[g]);this.size=this.JSC$19714_map_.size};
_.p.removeAll=function(h){h=_.iG(h);for(var E=h.length,g=0;g<E;g++)this.remove(h[g]);this.size=this.JSC$19714_map_.size};
_.p.delete=function(h){h=this.JSC$19714_map_.remove(lXI(h));this.size=this.JSC$19714_map_.size;return h};
_.p.remove=function(h){return this.delete(h)};
_.p.clear=function(){this.JSC$19714_map_.clear();this.size=0};
_.p.isEmpty=function(){return this.JSC$19714_map_.size===0};
_.p.has=function(h){return this.JSC$19714_map_.containsKey(lXI(h))};
_.p.contains=function(h){return this.JSC$19714_map_.containsKey(lXI(h))};
_.p.getValues=function(){return this.JSC$19714_map_.getValues()};
_.p.values=function(){return this.JSC$19714_map_.values()};
_.p.clone=function(){return new yz(this)};
_.p.equals=function(h){return this.getCount()==uWI(h)&&r60(this,h)};
var r60=function(h,E){var g=uWI(E);if(h.getCount()>g)return!1;!(E instanceof yz)&&g>5&&(E=new yz(E));return QVX(h,function(Z){var M=E;return M.contains&&typeof M.contains=="function"?M.contains(Z):M.containsValue&&typeof M.containsValue=="function"?M.containsValue(Z):_.s4(M)||typeof M==="string"?_.nd(M,Z):_.Kt.containsValue(M,Z)})};
yz.prototype.__iterator__=function(){return this.JSC$19714_map_.__iterator__(!1)};
yz.prototype[Symbol.iterator]=function(){return this.values()};var mJp={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(h){return(this._clampValue(h)-this.min)/(this.max-this.min)},
_clampValue:function(h){return Math.min(this.max,Math.max(this.min,this._calcStep(h)))},
_calcStep:function(h){h=parseFloat(h);if(!this.step)return h;h=Math.round((h-this.min)/this.step);return this.step<1?h/(1/this.step)+this.min:h*this.step+this.min},
_validateValue:function(){var h=this._clampValue(this.value);this.value=this.oldValue=isNaN(h)?this.oldValue:h;return this.value!==h},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var vlI;var H6U;_.OB({_template:function(){if(H6U!==void 0)return H6U;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;vlI===void 0&&(vlI=document.createElement("template"));var Z=vlI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return H6U=h},
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(){_.pQ(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(h){h.keyCode===27&&(h.preventDefault(),this.close())},
_track:function(h){if(!this.persistent&&!this.disableSwipe)switch(h.preventDefault(),h.detail.state){case "start":this._trackStart(h);break;case "track":this._trackMove(h);break;case "end":this._trackEnd(h)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var h=this.$.contentContainer.getBoundingClientRect();this._savedWidth=h.width;this._translateOffset=this.position==="left"?h.left:h.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(h){this._trackDetails&&(this._translateDrawer(h.detail.dx+this._translateOffset),this._trackDetails.push({dx:h.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(h){if(this._trackDetails){var E=h.detail.dx+this._translateOffset,g=this.getWidth();E=this.position==="left"?E>=0||E<=-g:E<=0||E>=g;if(!E){var Z=this._trackDetails;this._trackDetails=null;this._flingDrawer(h,Z);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}g/=2;h.detail.dx<-g?this.opened=this.position==="right":h.detail.dx>g&&(this.opened=this.position==="left");E?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(h,E){for(var g=Date.now(),Z=g-100,M,W=0,z=E.length-1;W<=z;){var c=W+z>>1,I=E[c];I.timeStamp>=Z?(M=I,z=c-1):W=c+1}return M?(h.detail.dx-M.dx)/(g-M.timeStamp||1):0},
_flingDrawer:function(h,E){E=this._calculateVelocity(h,E);if(!(Math.abs(E)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;h=h.detail.dx+this._translateOffset;var g=this.getWidth(),Z=this.position==="left",M=E>0;M?(E=Math.max(E,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(E=Math.min(E,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");E=this._FLING_INITIAL_SLOPE*(!M&&Z?-(h+g):M&&!Z?g-h:-h)/E;this._styleTransitionDuration(E);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,E)}},
_styleTransitionDuration:function(h){this.style.transitionDuration=h+"ms";this.$.contentContainer.style.transitionDuration=h+"ms";this.$.scrim.style.transitionDuration=h+"ms"},
_styleTransitionTimingFunction:function(h){this.$.contentContainer.style.transitionTimingFunction=h;this.$.scrim.style.transitionTimingFunction=h},
_translateDrawer:function(h){var E=this.getWidth();this.position==="left"?(h=Math.max(-E,Math.min(h,0)),this.$.scrim.style.opacity=1+h/E):(h=Math.max(0,Math.min(h,E)),this.$.scrim.style.opacity=1-h/E);this.translate3d(h+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var h=this._drawerState;h===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;h!==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=""),h!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var h=_.vl(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"])');h.length>0?(this._firstTabStop=h[0],this._lastTabStop=h[h.length-1]):
this._lastTabStop=this._firstTabStop=null;(h=this.getAttribute("tabindex"))&&parseInt(h,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(h){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||h.keyCode!==9||(h.shiftKey?this._firstTabStop&&_.vl(h).localTarget===this._firstTabStop&&(h.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.vl(h).localTarget===this._lastTabStop&&(h.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(h,E){this.toggleClass("visible",h&&!E,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 $JC;var KaU;_.OB({_template:function(){if(KaU!==void 0)return KaU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;$JC===void 0&&($JC=document.createElement("template"));var Z=$JC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return KaU=h},
is:"tp-yt-paper-progress",behaviors:[mJp],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(h){this.toggleClass("indeterminate",h,this.$.primaryProgress)},
_transformProgress:function(h,E){h.style.transform=h.style.webkitTransform="scaleX("+E/100+")"},
_mainRatioChanged:function(h){this._transformProgress(this.$.primaryProgress,h)},
_progressChanged:function(h,E,g,Z,M){h=this._clampValue(h);E=this._clampValue(E);var W=this._calcRatio(h)*100,z=this._calcRatio(E)*100;this._setSecondaryRatio(W);this._transformProgress(this.$.secondaryProgress,W);this._transformProgress(this.$.primaryProgress,z);this.secondaryProgress=h;M?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",E);this.setAttribute("aria-valuemin",g);this.setAttribute("aria-valuemax",Z)},
_disabledChanged:function(h){this.setAttribute("aria-disabled",h?"true":"false")},
_hideSecondaryProgress:function(h){return h===0}});var O6J;var nlR;var X4c=function(){};
_.p=X4c.prototype;_.p.registered=function(){};
_.p.addOwnKeyBinding=function(){};
_.p.removeOwnKeyBindings=function(){};
_.p.keyboardEventMatchesKeys=function(){};
_.p._collectKeyBindings=function(){};
_.p._prepKeyBindings=function(){};
_.p._addKeyBinding=function(){};
_.p._resetKeyEventListeners=function(){};
_.p._listenKeyEventListeners=function(){};
_.p._unlistenKeyEventListeners=function(){};
_.p._onKeyBindingEvent=function(){};
_.p._triggerKeyHandler=function(){};
_.p._tapHandler=function(){};
_.p._focusChanged=function(){};
_.p._detectKeyboardFocus=function(){};
_.p._userActivate=function(){};
_.p._upHandler=function(){};
_.p._spaceKeyDownHandler=function(){};
_.p._spaceKeyUpHandler=function(){};
_.p._asyncClick=function(){};
_.p._pressedChanged=function(){};
_.p._ariaActiveAttributeChanged=function(){};
_.p._activeChanged=function(){};
_.p._controlStateChanged=function(){};
_.p._changedButtonState=function(){};
_.p._focusBlurHandler=function(){};
_.p._disabledChanged=function(){};
_.p._changedControlState=function(){};
_.p._buttonStateChanged=function(){};
_.p._downHandler=function(){};
_.p.ensureRipple=function(){};
_.p.getRipple=function(){};
_.p.hasRipple=function(){};
_.p._noinkChanged=function(){};
_.p._calcRatio=function(){};
_.p._clampValue=function(){};
_.p._calcStep=function(){};
_.p._validateValue=function(){};
_.p._update=function(){};
_.p._setImmediateValue=function(){};
_.p._setExpand=function(){};
_.p._setDragging=function(){};
_.p._setTransiting=function(){};
_.p._setMarkers=function(){};
_.p._setPressed=function(){};
_.p._setPointerDown=function(){};
_.p._setReceivedFocusFromKeyboard=function(){};
_.p._setFocused=function(){};
_.p._setRatio=function(){};
X4c=_.OB({_template:function(){if(nlR!==void 0)return nlR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;O6J===void 0&&(O6J=document.createElement("template"));var Z=O6J;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return nlR=h},
is:"tp-yt-paper-slider",behaviors:[_.Kf,_.YJ,_.ltf,mJp],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&&_.Vu(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(h,E,g){this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",g);this.setAttribute("aria-valuenow",h);this._positionKnob(this._calcRatio(h)*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(h){this._setImmediateValue(this._calcStep(this._calcKnobPosition(h)));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(h){return(this.max-this.min)*h/100+this.min},
_onTrack:function(h){h.stopPropagation();switch(h.detail.state){case "start":this._trackStart(h);break;case "track":this._trackX(h);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(h){this.dragging||this._trackStart(h);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,h.detail.dx*(this._isRTL?-1:1)));h=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(h);h=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(h+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var h=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;h.transform=h.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(h){this._expandKnob();h.preventDefault();this.focus()},
_bartrack:function(h){this._allowBarEvent(h)&&this._onTrack(h)},
_barclick:function(h){this._w=this.$.sliderBar.offsetWidth;var E=this.$.sliderBar.getBoundingClientRect();E=(h.detail.x-E.left)/this._w*100;this._isRTL&&(E=100-E);var g=this.ratio;this._setTransiting(!0);this._positionKnob(E);g===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
h.preventDefault();this.focus()},
_bardown:function(h){this._allowBarEvent(h)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(h))},
_knobTransitionEnd:function(h){h.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(h,E,g,Z){Z||this._setMarkers([]);E=Math.round((g-E)/this.step);E>h&&(E=h);if(E<0||!isFinite(E))E=0;this._setMarkers(Array(E))},
_mergeClasses:function(h){return Object.keys(h).filter(function(E){return h[E]}).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(h){return!this.ignoreBarTouch||h.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(h){this._isRTL?this._incrementKey(h):this._decrementKey(h)},
_rightKey:function(h){this._isRTL?this._decrementKey(h):this._incrementKey(h)},
_incrementKey:function(h){this.disabled||(h.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),h.preventDefault())},
_decrementKey:function(h){this.disabled||(h.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),h.preventDefault())},
_changeValue:function(h){this.value=h.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(h){h.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Dhl._createRipple.call(this)},
_focusedChanged:function(h){h&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=h?"":"none",this._ripple.holdDown=h)}});var YhZ;var sUi;var Fe=null,V1x=function(){};
_.p=V1x.prototype;_.p.fit=function(){};
_.p._discoverInfo=function(){};
_.p.resetFit=function(){};
_.p.refit=function(){};
_.p.position=function(){};
_.p.constrain=function(){};
_.p._sizeDimension=function(){};
_.p.__sizeDimension=function(){};
_.p.center=function(){};
_.p.__getNormalizedRect=function(){};
_.p.__getOffscreenArea=function(){};
_.p.__getPosition=function(){};
_.p.notifyResize=function(){};
_.p.assignParentResizable=function(){};
_.p.stopResizeNotificationsFor=function(){};
_.p._subscribeIronResize=function(){};
_.p._unsubscribeIronResize=function(){};
_.p.resizerShouldNotify=function(){};
_.p._onDescendantIronResize=function(){};
_.p._fireResize=function(){};
_.p._onIronRequestResizeNotifications=function(){};
_.p._parentResizableChanged=function(){};
_.p._notifyDescendant=function(){};
_.p._requestResizeNotifications=function(){};
_.p._findParent=function(){};
_.p.toggle=function(){};
_.p.open=function(){};
_.p.close=function(){};
_.p.cancel=function(){};
_.p.invalidateTabbables=function(){};
_.p._ensureSetup=function(){};
_.p._canceledChanged=function(){};
_.p._withBackdropChanged=function(){};
_.p._prepareRenderOpened=function(){};
_.p._finishRenderOpened=function(){};
_.p._finishRenderClosed=function(){};
_.p._preparePositioning=function(){};
_.p._finishPositioning=function(){};
_.p._applyFocus=function(){};
_.p._onCaptureClick=function(){};
_.p._onCaptureFocus=function(){};
_.p._onCaptureEsc=function(){};
_.p._onCaptureTab=function(){};
_.p._onIronResize=function(){};
_.p._onNodesChange=function(){};
_.p.__ensureFirstLastFocusables=function(){};
_.p.__openedChanged=function(){};
_.p.__deraf=function(){};
_.p.__updateScrollObservers=function(){};
_.p.__addScrollListeners=function(){};
_.p.__removeScrollListeners=function(){};
_.p.__isValidScrollAction=function(){};
_.p.__onCaptureScroll=function(){};
_.p.__saveScrollPosition=function(){};
_.p.__restoreScrollPosition=function(){};
_.p._setCanceled=function(){};
V1x=_.OB({_template:function(){if(sUi!==void 0)return sUi;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;YhZ===void 0&&(YhZ=document.createElement("template"));var Z=YhZ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);return sUi=h},
is:"tp-yt-paper-toast",behaviors:[_.aR],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(){_.O1._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.ZL.requestAvailability()},
show:function(h){typeof h=="string"&&(h={text:h});for(var E in h)E.indexOf("_")===0?_.O1._warn('The property "'+E+'" is private and was not set.'):E in this?this[E]=h[E]:_.O1._warn('The property "'+E+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(h){h&&h.target===this&&h.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Fe&&Fe!==this&&Fe.close(),Fe=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Fe===this&&(Fe=null);_.zg._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(h){this.positionTarget=h},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var krc=new _.I2("disablePersonalizationAction");var DTU=new _.I2("showDmaConsentFlowCommand");var lqU=new _.I2("showMmgNoticeCommand");var y6c=new _.I2("saveConsentAction");var FaC=function(h){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Hc(h)};
_.f(FaC,_.GN);var A6G=_.$od(FaC);var TK0=new _.I2("updateTopbarAvatarAction");var b6c=new _.I2("channelHandleValidationResultRenderer");var udc=new _.I2("generateHandleFromNameResultRenderer");var QUc=new _.I2("channelHandleInputRenderer");var h_J=new _.I2("copyLinkRenderer");var EKG=new _.I2("timedCommand");var gKU=new _.I2("clearCookieAction");var ZJZ=new _.I2("getMultiPageMenuAction");var MRU=new _.I2("addToGuideSectionAction"),WlU=new _.I2("removeFromGuideSectionAction");var pBJ=new _.I2("updateNotificationsUnseenCountAction");var GAi=new _.I2("resetChannelUnreadCountCommand");var z_U=new _.I2("resetSubscriptionsUnreadDotCommand");var a7U=new _.I2("selectLanguageCommand");var yUp=new _.I2("sendFeedbackAction");var cgX=new _.I2("uploadImageToScottyCommand");var iJG=new _.I2("registerPromoCommand");var oKZ=new _.I2("setPushNotificationsEnabledCommand");var I7U=new _.I2("desktopTopbarRenderer");var R_C=new _.I2("surveyFollowUpRenderer");var PeC=new _.I2("handlesClaimingRadioOptionRenderer");var BPi=new _.I2("hotkeyDialogRenderer");var Uyp=new _.I2("modifyReportFormCommand");var LlU=new _.I2("accountLinkCommand");var jqc=new _.I2("accountUnlinkCommand");var dyZ=new _.I2("logAccountLinkingEventCommand");var Cex=new _.I2("guideCollapsibleEntryRenderer");var Jg0=new _.I2("guideDownloadsEntryRenderer");var Ad=new _.I2("guideEntryRenderer");var e_0=new _.I2("getLocationCommand");var qEJ=new _.I2("locationCollectionCommand");var f7J=new _.I2("storiesItemViewModel");var NPU=new _.I2("addToRemoteQueueAction");var tRp=new _.I2("insertInRemoteQueueAction");var SE0=new _.I2("removeFromRemoteQueueAction");var xyG=new _.I2("notificationRenderer");var BHX=new _.I2("localWatchHistoryCommand");var wBJ=new _.I2("pdgBuyFlowHeaderRenderer");var DyC=new _.I2("pdgColorSliderRenderer");var l7I=new _.I2("pdgCommentOptionRenderer");var rgx=new _.I2("pdgCommentPreviewRenderer");var myC=new _.I2("superVodSelectableItemButtonRenderer");var vKp=new _.I2("switchButtonRenderer");var HJc=new _.I2("upsellDialogRenderer");var $yi=new _.I2("feedbackQuestionRenderer"),KlC=new _.I2("feedbackOptionRenderer");var OJU=new _.I2("sponsorshipsTierRenderer"),nKZ=new _.I2("sponsorshipsPromotionChannelRenderer");var XB0=new _.I2("simpleSurveyMessageRenderer");var yeC=new _.I2("invokeInstrumentManagerAction");var YEG=new _.I2("logYpcFlowDismissCommand");var sqx=new _.I2("logYpcFlowStartCommand");var VRG=new _.I2("unlimitedCreateFamilyEndpoint");var kAI=new _.I2("iconBadgeRenderer");var UIc=new _.I2("collaborativePlaylistVisibilityValidationRule");var yg0=function(h){_.xD.call(this,"channelMessage");this.message=h};
_.f(yg0,_.xD);var FlJ=function(h){_.xD.call(this,"channelError");this.error=h};
_.f(FlJ,_.xD);var AgG={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",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv"},TPx={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},bJG={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},ugC={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},QqC={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var TM=function(h){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 _.NO;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;h&&(this.id=h.id||h.name,this.name=h.name,this.clientName=h.clientName?h.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=h.app,this.type=h.type||"REMOTE_CONTROL",this.username=h.user||"",this.avatar=h.userAvatarUri||"",this.obfuscatedGaiaId=h.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=h.ownerObfuscatedGaiaId||"",this.castUserId=h.castUserId||"",this.theme=h.theme||"u",hs0(this,h.capabilities||""),EaU(this,
h.compatibleSenderThemes||""),gaU(this,h.experiments||""),this.remoteControllerUrl=h.remoteControllerUrl||"",this.localChannelEncryptionKey=h.localChannelEncryptionKey||"",this.deviceContext=h.deviceContext,this.brand=h.brand||"",this.model=h.model||"",this.year=h.year||0,this.os=h.os||"",this.osVersion=h.osVersion||"",this.chipset=h.chipset||"",this.mdxDialServerType=h.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=h.pairingType||"unknown",h=h.deviceInfo)&&(h=JSON.parse(h),this.brand=
h.brand||"",this.model=h.model||"",this.year=h.year||0,this.os=h.os||"",this.osVersion=h.osVersion||"",this.chipset=h.chipset||"",this.clientName=h.clientName?h.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=h.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
TM.prototype.copy=function(){var h={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&&(h.brand=this.brand);
this.model&&(h.model=this.model);this.year&&(h.year=this.year);this.os&&(h.os=this.os);this.osVersion&&(h.osVersion=this.osVersion);this.chipset&&(h.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(h.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(h.mdxDialServerType=this.mdxDialServerType);h=new TM(h);h.connected=this.connected;h.remoteControllerUrl=this.remoteControllerUrl;h.localChannelEncryptionKey=this.localChannelEncryptionKey;h.deviceContext=
this.deviceContext;h.castUserId=this.castUserId;return h};
TM.prototype.equals=function(h){return h?this.id==h.id:!1};
var hs0=function(h,E){h.capabilities.clear();_.i3(E.split(","),_.Sj(_.Kt.contains,AgG)).forEach(function(g){h.capabilities.add(g)})},EaU=function(h,E){h.compatibleSenderThemes.clear();
_.i3(E.split(","),_.Sj(_.Kt.contains,TPx)).forEach(function(g){h.compatibleSenderThemes.add(g)})},gaU=function(h,E){h.experiments.clear();
E.split(",").forEach(function(g){h.experiments.add(g)})};_.aV(KhU,_.wO);_.p=KhU.prototype;_.p.JSC$19750_onTick_=function(){this.JSC$19748_interval_=Math.min(3E5,this.JSC$19748_interval_*2);this.JSC$19750_listener_();this.nextTickTime_&&this.start()};
_.p.start=function(){var h=this.JSC$19748_interval_+15E3*Math.random(),E=this.delay_;E.isActive()||E.start(h);this.nextTickTime_=Date.now()+h};
_.p.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.p.isActive=function(){return this.delay_.isActive()};
_.p.reset=function(){this.delay_.stop();this.JSC$19748_interval_=5E3};_.aV(fq,w4I);_.p=fq.prototype;_.p.subscribe=function(h,E,g){return this.pubsub_.subscribe(h,E,g)};
_.p.unsubscribe=function(h,E,g){return this.pubsub_.unsubscribe(h,E,g)};
_.p.unsubscribeByKey=function(h){return this.pubsub_.unsubscribeByKey(h)};
_.p.publish=function(h,E){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.p.dispose=function(){this.JSC$19751_disposed_||(this.JSC$19751_disposed_=!0,_.p8(this.pubsub_),this.disconnect(),_.p8(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19751_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.dC({})})};
_.p.isDisposed=function(){return this.JSC$19751_disposed_};
_.p.connect=function(h,E,g){var Z=this,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return _.qc(I,2),Z.useAsyncBrowserChannelHandler_?I.yield(Z.connectPromise_,2):I.jumpTo(2);_.eK(I);if(Z.JSC$19751_disposed_||Z.JSC$19751_channel_&&Z.JSC$19751_channel_.getState()==2)return I.return();Z.sCookie_="";Z.reconnectTimer_.stop();Z.connectionParams_=h||null;Z.connectUi_=E||0;M=Z.JSC$19751_pathPrefix_+"/test";W=Z.JSC$19751_pathPrefix_+"/bind";z=new Vz(g?g.firstTestResults:null,g?g.secondTestResults:null,
Z.enableAsyncTest_);if(c=Z.JSC$19751_channel_)c.handler_=null;z.handler_=Z;Z.JSC$19751_channel_=z;if(Z.useAsyncBrowserChannelHandler_)return Z.connectPromise_=ZVC(Z).then(function(){return M3J(Z,M,W,c,g)}),I.return(Z.connectPromise_.then(function(){Z.connectPromise_=_.dC()}));
M3J(Z,M,W,c,g);return _.fX(I,0)})};
var M3J=function(h,E,g,Z,M){WPG(h);if(h.JSC$19751_channel_){var W=_.nF("ID_TOKEN"),z=h.JSC$19751_channel_.JSC$19703_extraHeaders_||{};W?z["x-youtube-identity-token"]=W:delete z["x-youtube-identity-token"];h.JSC$19751_channel_.JSC$19703_extraHeaders_=z}p_I(h);Z?(Z.getState(),h.JSC$19751_channel_.connect(E,g,h.defaultQueryParams_,Z.sid_,Z.JSC$19703_lastArrayId_)):M?h.JSC$19751_channel_.connect(E,g,h.defaultQueryParams_,M.sessionId,M.arrayId):h.JSC$19751_channel_.connect(E,g,h.defaultQueryParams_)};
fq.prototype.disconnect=function(h){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.dC())}finally{this.disconnectUi_=h||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),WPG(this),this.JSC$19751_channel_&&(this.JSC$19751_channel_.getState()==3&&mMC(this.JSC$19751_channel_),this.JSC$19751_channel_.disconnect()),this.disconnectUi_=0}};
fq.prototype.sendMessage=function(h,E){var g=this,Z;return _.a(function(M){switch(M.nextAddress){case 1:_.qc(M,2);if(!g.useAsyncBrowserChannelHandler_){M.jumpTo(2);break}return M.yield(g.connectPromise_,2);case 2:_.eK(M);if(g.JSC$19751_disposed_)return M.return();Z={_sc:h};E&&_.Kt.extend(Z,E);if(g.reconnectTimer_.isActive()||(g.JSC$19751_channel_?g.JSC$19751_channel_.getState():0)==2){g.JSC$19751_pendingMessages_.push(Z);M.jumpTo(6);break}if(!g.isChannelOpened()){M.jumpTo(6);break}_.qc(M,8);if(!g.useAsyncBrowserChannelHandler_||
G3G(g,h)){M.jumpTo(8);break}return M.yield(ZVC(g),8);case 8:_.eK(M,0,0,1);g.isChannelOpened()&&(G3G(g,h)||p_I(g),WPG(g),r0U(g.JSC$19751_channel_,Z));_.fX(M,6,1);break;case 6:_.fX(M,0)}})};
var G3G=function(h,E){return h.enableMdxAuthForConnectionOnly_?!0:h.disableMdxAuthForAdMessages_?Object.values(bJG).includes(E):h.disableMdxAuthForNonPlaybackMessages_?!Object.values(ugC).includes(E):h.disableMdxAuthForShortsMessages_?Object.values(QqC).includes(E):!1};
fq.prototype.JSC$19710_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19751_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)zsR(this);else{var h=this.JSC$19751_pendingMessages_;this.JSC$19751_pendingMessages_=[];var E=h.length;p_I(this);awi(this,h,E);cSU(this)}else cSU(this)};
var zsR=function(h){var E,g;_.a(function(Z){if(Z.nextAddress==1)return _.qc(Z,2),Z.yield(ZVC(h),2);_.eK(Z);E=h.JSC$19751_pendingMessages_;h.JSC$19751_pendingMessages_=[];g=E.length;awi(h,E,g);cSU(h);return _.fX(Z,0)})},awi=function(h,E,g){for(var Z=0;Z<g;++Z)r0U(h.JSC$19751_channel_,E[Z]);
cSU(h)},cSU=function(h){h.publish("handlerOpened");
h.JSC$19751_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.p=fq.prototype;_.p.JSC$19710_channelError=function(h){var E=h==2&&this.JSC$19751_channel_.JSC$19703_lastStatusCode_==401;h==4||E||this.reconnectTimer_.start();this.publish("handlerError",h,E);E=Object.keys(fLC).find(function(g){return fLC[g]===h});
this.JSC$19751_channelErrorCounter.increment("BROWSER_CHANNEL",E!=null?E:"UNKNOWN")};
_.p.JSC$19710_channelClosed=function(h,E){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(E)for(var g=E.length,Z=0;Z<g;++Z){var M=E[Z].map;M&&this.JSC$19751_pendingMessages_.push(M)}this.JSC$19751_channelClosedCounter.increment("BROWSER_CHANNEL");h&&this.pendingMapsOnClosedCounter.JSC$9933_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",h.length);E&&this.undeliveredMapsOnClosedCounter.JSC$9936_streamzService.JSC$9788_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
E.length)};
_.p.JSC$19710_channelSuccess=function(h,E){E!=null&&h!=null&&this.channelMessageSentCounter.increment()};
_.p.JSC$19710_getAdditionalParams=function(){var h={v:2};this.sCookie_&&(h.gsessionid=this.sCookie_);this.connectUi_!=0&&(h.ui=""+this.connectUi_);this.disconnectUi_!=0&&(h.ui=""+this.disconnectUi_);this.connectionParams_&&_.Kt.extend(h,this.connectionParams_);return h};
_.p.JSC$19710_channelHandleArray=function(h){h[0]=="S"?this.sCookie_=h[1]:h[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19751_channel_.disconnect()):this.publish("handlerMessage",new $mR(h[0],h[1]));this.JSC$19751_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.p.isChannelOpened=function(){return!!this.JSC$19751_channel_&&this.JSC$19751_channel_.getState()==3};
var WPG=function(h){if(h.JSC$19751_channel_){var E=h.JSC$19751_getXsrfToken_(),g=h.JSC$19751_channel_.JSC$19703_extraHeaders_||{};E?g["x-youtube-lounge-xsrf-token"]=E:delete g["x-youtube-lounge-xsrf-token"];h.JSC$19751_channel_.JSC$19703_extraHeaders_=g}},ZVC=function(h){if(h.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.dC();
if(!h.enableCachedUpdateAuthorizationHeader_)return iVU(h);h.updateAuthorizationHeaderPromise_===null&&(h.updateAuthorizationHeaderPromise_=iVU(h));return h.updateAuthorizationHeaderPromise_},iVU=function(h){return _.KA(h.getAuthorizationHeader_().then(function(E){oaU(h,E)}).thenCatch(function(){}),function(){h.updateAuthorizationHeaderPromise_=null})},oaU=function(h,E){if(h.JSC$19751_channel_){var g=h.JSC$19751_channel_.JSC$19703_extraHeaders_||{};
E&&Object.keys(E).length>0?g=Object.assign({},g,E):delete g.Authorization;h.JSC$19751_channel_.JSC$19703_extraHeaders_=g}},p_I=function(h){h.getAuthorizationHeaderSync_&&!h.useAsyncBrowserChannelHandler_&&oaU(h,h.getAuthorizationHeaderSync_())};
_.p=fq.prototype;_.p.setLoungeToken=function(h){(this.defaultQueryParams_.loungeIdToken=h)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19751_channel_){var E=this.JSC$19751_channel_.JSC$19703_extraHeaders_||{};h?E["X-YouTube-LoungeId-Token"]=h:delete E["X-YouTube-LoungeId-Token"];this.JSC$19751_channel_.JSC$19703_extraHeaders_=E}};
_.p.getDeviceId=function(){return this.defaultQueryParams_.id};
_.p.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var h=this.reconnectTimer_;h.delay_.fire();h.start()};
_.p.safeReconnect_=function(){var h=this.JSC$19751_channel_,E=0;h.JSC$19703_backChannelRequest_&&E++;h.forwardChannelRequest_&&E++;E==0&&this.connect(this.connectionParams_,this.connectUi_)};var ld=function(h,E){var g=h.basePath;h.supportCors&&(g=h.scheme+"://"+h.domain+h.port+h.basePath);return _.hl(g+E,{})};
Nn.prototype.sendRequest=function(h,E,g,Z,M,W,z){h={format:W?"RAW":"JSON",method:h,context:this,timeout:5E3,withCredentials:!!z,onSuccess:_.Sj(this.JSC$19756_onSuccess_,Z,!W),onError:_.Sj(this.onError_,M),onTimeout:_.Sj(this.JSC$19756_onTimeout_,M)};g&&(h.postParams=g,h.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.df(E,h)};
Nn.prototype.JSC$19756_onSuccess_=function(h,E,g,Z){E?h(Z):h({text:g.responseText})};
Nn.prototype.onError_=function(h,E){h(Error("Tk`"+E.status))};
Nn.prototype.JSC$19756_onTimeout_=function(h){h(Error("Uk"))};var Se=function(h,E){return!!E&&(h.id==E||h.uuid==E)},IwJ=function(h){return{name:h.name,
screenId:h.id,loungeToken:h.token,dialId:h.uuid,screenIdType:h.idType}},RsJ=function(h){return new tG(h)},PLI=function(h){return Array.isArray(h)?_.O6(h,RsJ):[]},AWX=function(h){if(!h)return"null";
var E=h.token?".."+h.token.slice(-6):"-",g=h.uuid?".."+h.uuid.slice(-6):"-";return'{name:"'+h.name+'",id:'+h.id.substr(0,6)+"..,token:"+(E+",uuid:"+g+",idType:"+h.idType+"}")},JWZ=function(h){return Array.isArray(h)?"["+_.O6(h,AWX).join(",")+"]":"null"};var gBI="",Dc=null;var iLJ=function(h,E){_.ms.call(this);var g=this;this.handler=h();this.handler.subscribe("handlerOpened",this.JSC$19763_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(Z,M){g.onError(M)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=E};
_.f(iLJ,_.ms);_.p=iLJ.prototype;_.p.connect=function(h,E,g){this.handler.connect(h,E,g)};
_.p.disconnect=function(h){this.handler.disconnect(h)};
_.p.reconnect=function(){this.handler.reconnect()};
_.p.getDeviceId=function(){return this.handler.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.p.JSC$19763_onOpened=function(){this.dispatchEvent("channelOpened");var h=this.handler,E=this.currentScreenId;_.Xt("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!h.JSC$19751_channel_.useChunked_,sessionId:h.JSC$19751_channel_.sid_,arrayId:h.JSC$19751_channel_.JSC$19703_lastArrayId_});_.Xt("yt-remote-session-screen-id",E);h=TDR();E=b3C();_.nd(h,E)||h.push(E);EBG(h);hqX()};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(h){this.dispatchEvent(new yg0(h))};
_.p.onError=function(h){this.dispatchEvent(new FlJ(h?1:0))};
_.p.sendMessage=function(h,E){this.handler.sendMessage(h,E)};
_.p.setLoungeToken=function(h){this.handler.setLoungeToken(h)};
_.p.dispose=function(){this.handler.dispose()};var cWG=function(h,E,g){var Z=this;g=g===void 0?function(){return""}:g;
var M=M===void 0?new u3J:M;var W=W===void 0?new _.Jl:W;this.pathPrefix=h;this.defaultQueryParams=E;this.getXsrfToken=g;this.JSC$19766_pubsub=W;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new KhU(function(){var z;((z=Z.channel)==null?void 0:SJc((new EcC(z,z.JSC$19674_channel_)).JSC$19684_channel_.forwardChannelRequestPool_))===0&&Z.connect(Z.connectionParams,Z.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19766_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19766_channelOpenedCounter=new O3C;this.JSC$19766_channelClosedCounter=new nAJ;this.JSC$19766_channelMessageReceivedCounter=new YBZ;this.JSC$19766_channelErrorCounter=new sNc};
cWG.prototype.connect=function(h,E){h=h===void 0?{}:h;E=E===void 0?0:E;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=h,this.connectUi=E,BMc(this),(h=_.nF("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=h: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 $o(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,U9i(this))};
var U9i=function(h){_.vK(h.channel,"w",function(){h.channelState=3;h.reconnectTimer.reset();h.connectionParams=null;h.connectUi=0;for(var E=_.G(h.nonAckedMessagesOnChannelClosed),g=E.next();!g.done;g=E.next())g=g.value,h.channel&&h.channel.send(g);h.nonAckedMessagesOnChannelClosed=[];h.publish("webChannelOpened");h.JSC$19766_channelOpenedCounter.increment("WEB_CHANNEL")});
_.vK(h.channel,"x",function(){h.channelState=0;h.reconnectTimer.isActive()||h.publish("webChannelClosed");var E,g=(E=h.channel)==null?void 0:gcU(new EcC(E,E.JSC$19674_channel_));g&&(h.nonAckedMessagesOnChannelClosed=[].concat(_.$E(g)));h.JSC$19766_channelClosedCounter.increment("WEB_CHANNEL")});
_.vK(h.channel,"z",function(E){var g=E.data;g[0]==="gracefulReconnect"?(h.reconnectTimer.start(),h.channel&&h.channel.close()):h.publish("webChannelMessage",new $mR(g[0],g[1]));h.lastStatusCode=E.statusCode;h.JSC$19766_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.vK(h.channel,"y",function(){h.lastStatusCode===401||h.reconnectTimer.start();h.publish("webChannelError");h.JSC$19766_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.p=cWG.prototype;_.p.disconnect=function(h){this.disconnectUi=h===void 0?0:h;this.reconnectTimer.stop();BMc(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.p.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.p.reconnect=function(){var h=this.reconnectTimer;h.delay_.fire();h.start()};
_.p.sendMessage=function(h,E){this.channel&&(BMc(this),h=Object.assign({},{_sc:h},E),this.channel.send(h))};
_.p.setLoungeToken=function(h){h||this.reconnectTimer.stop();h?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=h:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var BMc=function(h){var E=h.getXsrfToken();E?h.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=E:delete h.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.p=cWG.prototype;_.p.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.p.publish=function(h){return this.JSC$19766_pubsub.publish.apply(this.JSC$19766_pubsub,[h].concat(_.$E(_.VF.apply(1,arguments))))};
_.p.subscribe=function(h,E,g){return this.JSC$19766_pubsub.subscribe(h,E,g)};
_.p.unsubscribe=function(h,E,g){return this.JSC$19766_pubsub.unsubscribe(h,E,g)};
_.p.unsubscribeByKey=function(h){return this.JSC$19766_pubsub.unsubscribeByKey(h)};
_.p.dispose=function(){this.JSC$19766_disposed||(this.JSC$19766_disposed=!0,_.p8(this.JSC$19766_pubsub),this.disconnect(),_.p8(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.p.isDisposed=function(){return this.JSC$19766_disposed};var a60=function(h){_.ms.call(this);this.webChannelService=h();this.webChannelService.subscribe("webChannelOpened",this.JSC$19774_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.f(a60,_.ms);_.p=a60.prototype;_.p.connect=function(h,E){this.webChannelService.connect(h,E)};
_.p.disconnect=function(h){this.webChannelService.disconnect(h)};
_.p.reconnect=function(){this.webChannelService.reconnect()};
_.p.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.p.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.p.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.p.JSC$19774_onOpened=function(){this.dispatchEvent("channelOpened")};
_.p.onClosed=function(){this.dispatchEvent("channelClosed")};
_.p.onMessage=function(h){this.dispatchEvent(new yg0(h))};
_.p.onError=function(){this.dispatchEvent(new FlJ(this.webChannelService.lastStatusCode===401?1:0))};
_.p.sendMessage=function(h,E){this.webChannelService.sendMessage(h,E)};
_.p.setLoungeToken=function(h){this.webChannelService.setLoungeToken(h)};
_.p.dispose=function(){this.webChannelService.dispose()};var CsG=Date.now(),rl=null,jui=Array(50),HS=-1,dBX=!1;_.aV($2,_.Yt);$2.prototype.getScreens=function(){return this.screens};
$2.prototype.contains=function(h){return!!AaU(this.screens,h)};
$2.prototype.get=function(h){return h?x2(this.screens,h):null};
var LPc=function(h,E){var g=h.get(E.uuid)||h.get(E.id);if(g)return h=g.name,g.id=E.id||g.id,g.name=E.name,g.token=E.token,g.uuid=E.uuid||g.uuid,g.name!=h;h.screens.push(E);return!0},jFC=function(h,E){var g=h.screens.length!=E.length;
h.screens=_.i3(h.screens,function(W){return!!AaU(E,W)});
for(var Z=E.length,M=0;M<Z;M++)g=LPc(h,E[M])||g;return g},d9U=function(h,E){var g=h.screens.length;
h.screens=_.i3(h.screens,function(Z){return!(Z||E?!Z!=!E?0:Z.id==E.id:1)});
return h.screens.length<g};
$2.prototype.info=function(h){mQ(this.JSC$19775_logName_,h)};var CLZ=function(h,E,g,Z,M){_.Yt.call(this);this.JSC$19778_http_=h;this.pairingCode_=E;this.deviceId_=g;this.friendlyName_=Z;this.enableShortLivedLoungeToken_=M;this.pollIndex_=0;this.JSC$19778_xhr_=null;this.JSC$19778_timer_=NaN};
_.f(CLZ,_.Yt);_.p=CLZ.prototype;_.p.start=function(){!this.JSC$19778_xhr_&&isNaN(this.JSC$19778_timer_)&&this.poll_()};
_.p.stop=function(){this.JSC$19778_xhr_&&(this.JSC$19778_xhr_.abort(),this.JSC$19778_xhr_=null);isNaN(this.JSC$19778_timer_)||(_.Ll(this.JSC$19778_timer_),this.JSC$19778_timer_=NaN)};
_.p.disposeInternal=function(){this.stop();_.Yt.prototype.disposeInternal.call(this)};
_.p.poll_=function(){this.JSC$19778_timer_=NaN;this.JSC$19778_xhr_=_.df(ld(this.JSC$19778_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.DJ)(this.JSC$19780_onSuccess_,this),onError:(0,_.DJ)(this.onError_,this),onTimeout:(0,_.DJ)(this.JSC$19780_onTimeout_,this)})};
_.p.JSC$19780_onSuccess_=function(h,E){this.JSC$19778_xhr_=null;h=E.screen||{};h.dialId=this.deviceId_;h.name=this.friendlyName_;E=-1;this.enableShortLivedLoungeToken_&&h.shortLivedLoungeToken&&h.shortLivedLoungeToken.value&&h.shortLivedLoungeToken.refreshIntervalMs&&(h.screenIdType="shortLived",h.loungeToken=h.shortLivedLoungeToken.value,E=h.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new tG(h),E)};
_.p.onError_=function(h){this.JSC$19778_xhr_=null;h.status&&h.status==404?this.pollIndex_>=JSI.length?this.publish("pairingFailed",Error("Vk")):(h=JSI[this.pollIndex_],this.JSC$19778_timer_=_.Bx((0,_.DJ)(this.poll_,this),h),this.pollIndex_++):this.publish("pairingFailed",Error("Wk`"+h.status))};
_.p.JSC$19780_onTimeout_=function(){this.JSC$19778_xhr_=null;this.publish("pairingFailed",Error("Xk"))};
var JSI=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.aV(O_,$2);_.p=O_.prototype;_.p.start=function(){Kq(this)&&this.publish("screenChange");!_.YY("yt-remote-lounge-token-expiration")&&esG(this);_.Ll(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Bx((0,_.DJ)(this.start,this),1E4)};
_.p.add=function(h,E){Kq(this);LPc(this,h);q3c(this,!1);this.publish("screenChange");E(h);h.token||esG(this)};
_.p.remove=function(h,E){var g=Kq(this);d9U(this,h)&&(q3c(this,!1),g=!0);E(h);g&&this.publish("screenChange")};
_.p.updateName=function(h,E,g,Z){var M=Kq(this),W=this.get(h.id);W?(W.name!=E&&(W.name=E,q3c(this,!1),M=!0),g(h)):Z(Error("Yk"));M&&this.publish("screenChange")};
_.p.disposeInternal=function(){_.Ll(this.loungeTokenRefreshTimer_);O_.superClass_.disposeInternal.call(this)};
var esG=function(h){if(h.screens.length){var E=_.O6(h.screens,function(Z){return Z.id}),g=ld(h.JSC$19782_http_,"/pairing/get_lounge_token_batch");
h.JSC$19782_http_.sendRequest("POST",g,{screen_ids:E.join(",")},(0,_.DJ)(h.handleLoungeTokens_,h),(0,_.DJ)(h.handleLoungeTokenError_,h))}};
O_.prototype.handleLoungeTokens_=function(h){Kq(this);var E=this.screens.length;h=h&&h.screens||[];for(var g=h.length,Z=0;Z<g;++Z){var M=h[Z],W=this.get(M.screenId);W&&(W.token=M.loungeToken,--E)}q3c(this,!E);E&&mQ(this.JSC$19775_logName_,"Missed "+E+" lounge tokens.")};
O_.prototype.handleLoungeTokenError_=function(h){mQ(this.JSC$19775_logName_,"Requesting lounge tokens failed: "+h)};
var Kq=function(h){if(_.J("deprecate_pair_servlet_enabled"))return jFC(h,[]);var E=PLI(MQ0());E=_.i3(E,function(g){return!g.uuid});
return jFC(h,E)},q3c=function(h,E){pKI(_.O6(h.screens,IwJ));
E&&WTX()};var b2=function(h,E){_.Yt.call(this);this.getScreensToCheck_=E;E=(E=_.YY("yt-remote-online-screen-ids")||"")?E.split(","):[];for(var g={},Z=this.getScreensToCheck_(),M=Z.length,W=0;W<M;++W){var z=Z[W].id;g[z]=_.nd(E,z)}this.screenIdSet_=g;this.JSC$19785_http_=h;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;fwG("Initialized with "+(0,_.XY)(this.screenIdSet_))};
_.f(b2,_.Yt);b2.prototype.isOnline=function(h){return!!this.screenIdSet_[h]};
b2.prototype.start=function(){var h=parseInt(_.YY("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.zZ()-144E5<h?0:h)?NMx(this):(this.fastCheckEndTime_=_.zZ()+3E5,_.Xt("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
b2.prototype.isEmpty=function(){return _.Kt.isEmpty(this.screenIdSet_)};
b2.prototype.update=function(){fwG("Updating availability on schedule.");var h=this.getScreensToCheck_(),E=_.Kt.filter(this.screenIdSet_,function(g,Z){return g&&!!x2(h,Z)},this);
t3G(this,E)};
var S3R=function(h,E,g){var Z=ld(h.JSC$19785_http_,"/pairing/get_screen_availability");h.JSC$19785_http_.sendRequest("POST",Z,{lounge_token:E.token},(0,_.DJ)(function(M){M=M.screens||[];for(var W=M.length,z=0;z<W;++z)if(M[z].loungeToken==E.token){g(M[z].status=="online");return}g(!1)},h),(0,_.DJ)(function(){g(!1)},h))};
b2.prototype.disposeInternal=function(){_.Ll(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Yt.prototype.disposeInternal.call(this)};
var t3G=function(h,E){a:if(_.Kt.getCount(E)!=_.Kt.getCount(h.screenIdSet_))var g=!1;else{g=_.Kt.getKeys(E);for(var Z=g.length,M=0;M<Z;++M)if(!h.screenIdSet_[g[M]]){g=!1;break a}g=!0}g||(fwG("Updated online screens: "+(0,_.XY)(h.screenIdSet_)),h.screenIdSet_=E,h.publish("screenChange"));x9G(h)},NMx=function(h){isNaN(h.refreshTimer_)||_.Ll(h.refreshTimer_);
h.refreshTimer_=_.Bx((0,_.DJ)(h.requestScreenAvailability_,h),h.fastCheckEndTime_>0&&h.fastCheckEndTime_<_.zZ()?2E4:1E4)};
b2.prototype.requestScreenAvailability_=function(){_.Ll(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var h=w_C(this);if(_.Kt.getCount(h)){var E=ld(this.JSC$19785_http_,"/pairing/get_screen_availability"),g={lounge_token:_.Kt.getKeys(h).join(",")};this.currentRequest_=this.JSC$19785_http_.sendRequest("POST",E,g,(0,_.DJ)(this.onScreenAvailability_,this,h),(0,_.DJ)(this.onScreenAvailabilityError_,this))}else t3G(this,{}),NMx(this)};
b2.prototype.onScreenAvailability_=function(h,E){this.currentRequest_=null;var g=_.Kt.getKeys(w_C(this));if(_.Tu(g,_.Kt.getKeys(h))){E=E.screens||[];g={};for(var Z=E.length,M=0;M<Z;++M)g[h[E[M].loungeToken]]=E[M].status=="online";t3G(this,g);NMx(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
b2.prototype.onScreenAvailabilityError_=function(h){this.warn_("Screen availability failed: "+h);this.currentRequest_=null;NMx(this)};
var fwG=function(h){mQ("OnlineScreenService",h)};
b2.prototype.warn_=function(h){mQ("OnlineScreenService",h)};
var w_C=function(h){var E={};_.Tt(h.getScreensToCheck_(),function(g){g.token?E[g.token]=g.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return E},x9G=function(h){h=_.Kt.getKeys(_.Kt.filter(h.screenIdSet_,function(E){return E}));
h.sort(_.tqd);h.length?_.Xt("yt-remote-online-screen-ids",h.join(","),60):_.s8("yt-remote-online-screen-ids")};_.aV(nq,$2);_.p=nq.prototype;_.p.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.p.add=function(h,E,g){this.localScreenService_.add(h,E,g)};
_.p.remove=function(h,E,g){this.localScreenService_.remove(h,E,g);this.onlineScreenService_.update()};
_.p.updateName=function(h,E,g,Z){this.localScreenService_.contains(h)?this.localScreenService_.updateName(h,E,g,Z):(h="Updating name of unknown screen: "+h.name,mQ(this.JSC$19775_logName_,h),Z(Error(h)))};
_.p.getScreens=function(h){return h?this.screens:UHC(this.screens,_.i3(this.automaticScreens_,function(E){return!this.contains(E)},this))};
_.p.JSC$19790_getOnlineScreens=function(){return _.i3(this.getScreens(!0),function(h){return this.onlineScreenService_.isOnline(h.id)},this)};
var lwc=function(h,E,g,Z,M,W){h.info("getAutomaticScreenByIds "+g+" / "+E);g||(g=h.deviceToScreenId_[E]);var z=h.getScreens(),c=g?x2(z,g):null;g&&(h.disableAutomaticScreenCache_||c)||(c=x2(z,E));if(c){c.uuid=E;var I=u2(h,c);S3R(h.onlineScreenService_,I,function(B){M(B?I:null)})}else g?D90(h,g,(0,_.DJ)(function(B){var U=u2(this,new tG({name:Z,
screenId:g,loungeToken:B,dialId:E||""}));S3R(this.onlineScreenService_,U,function(L){M(L?U:null)})},h),W):M(null)};
nq.prototype.JSC$19790_getScreenByPollingPairingCode=function(h,E,g,Z,M,W){var z=this;this.info("getDialScreenByPairingCode "+h+" / "+E);var c=new CLZ(this.JSC$19788_http_,h,E,g,Z);c.subscribe("pairingComplete",function(I,B){_.p8(c);M(u2(z,I),B)});
c.subscribe("pairingFailed",function(I){_.p8(c);W(I)});
c.start();return(0,_.DJ)(c.stop,c)};
var rSX=function(h,E){for(var g=h.screens.length,Z=0;Z<g;++Z)if(h.screens[Z].name==E)return h.screens[Z];return null};
nq.prototype.JSC$19790_getScreenByPairingCode=function(h,E,g,Z){_.df(ld(this.JSC$19788_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:h},timeout:5E3,onSuccess:(0,_.DJ)(function(M,W){M=new tG(W.screen||{});if(!M.name||rSX(this,M.name)){a:{W=M.name;for(var z=2,c=E(W,z);rSX(this,c);){z++;if(z>20)break a;c=E(W,z)}W=c}M.name=W}g(u2(this,M))},this),
onError:(0,_.DJ)(function(M){Z(Error("Zk`"+M.status))},this),
onTimeout:(0,_.DJ)(function(){Z(Error("$k"))},this)})};
var m9J=function(h,E,g){S3R(h.onlineScreenService_,E,g)};
nq.prototype.disposeInternal=function(){_.p8(this.localScreenService_);_.p8(this.onlineScreenService_);nq.superClass_.disposeInternal.call(this)};
var D90=function(h,E,g,Z){h.info("requestLoungeToken_ for "+E);var M={postParams:{screen_ids:E},method:"POST",context:h,onSuccess:function(W,z){W=z&&z.screens||[];W[0]&&W[0].screenId==E?g(W[0].loungeToken):Z(Error("al"))},
onError:function(){Z(Error("bl"))}};
_.df(ld(h.JSC$19788_http_,"/pairing/get_lounge_token_batch"),M)},vaU=function(h){h.screens=h.localScreenService_.getScreens();
for(var E=_.Kt.transpose(h.deviceToScreenId_),g=h.screens.length,Z=0;Z<g;++Z){var M=h.screens[Z];M.uuid=E[M.id]||""}h.info("Updated manual screens: "+JWZ(h.screens))};
nq.prototype.handleScreenChange_=function(){vaU(this);this.publish("screenChange");this.onlineScreenService_.update()};
var eqR=function(h){HVJ(h);h.localScreenService_=new O_(h.JSC$19788_http_);h.localScreenService_.subscribe("screenChange",(0,_.DJ)(h.handleScreenChange_,h));vaU(h);h.disableAutomaticScreenCache_||(h.automaticScreens_=PLI(_.YY("yt-remote-automatic-screen-cache")||[]));HVJ(h);h.info("Initializing automatic screens: "+JWZ(h.automaticScreens_));h.onlineScreenService_=new b2(h.JSC$19788_http_,(0,_.DJ)(h.getScreens,h,!0));h.onlineScreenService_.subscribe("screenChange",(0,_.DJ)(function(){this.publish("onlineScreenChange")},
h))},u2=function(h,E){var g=h.get(E.id);
g?(g.uuid=E.uuid,E=g):((g=x2(h.automaticScreens_,E.uuid))?(g.id=E.id,g.token=E.token,E=g):h.automaticScreens_.push(E),h.disableAutomaticScreenCache_||$9G(h));HVJ(h);h.deviceToScreenId_[E.uuid]=E.id;_.Xt("yt-remote-device-id-map",h.deviceToScreenId_,31536E3);return E},$9G=function(h){h=_.i3(h.automaticScreens_,function(E){return E.idType!="shortLived"});
_.Xt("yt-remote-automatic-screen-cache",_.O6(h,IwJ))},HVJ=function(h){h.deviceToScreenId_=_.YY("yt-remote-device-id-map")||{}};
nq.prototype.dispose=nq.prototype.dispose;_.aV(Xq,_.Yt);var Qz=function(h,E){h.screen_=E;h.publish("sessionScreen",h.screen_)},KP0=function(h,E){h.screen_&&(h.screen_.token=E,u2(h.JSC$19792_screenService_,h.screen_));
h.publish("sessionScreen",h.screen_)};
Xq.prototype.onSessionStopped=function(h){this.isDisposed()||(h&&(hK(this,""+h),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Xq.prototype.info=function(h){mQ(this.JSC$19792_logName_,h)};
var hK=function(h,E){mQ(h.JSC$19792_logName_,E)};
Xq.prototype.JSC$19794_getCastSession=function(){return null};
Xq.prototype.setDisplayStatus=function(h){var E=this.receiver_;h?(E.displayStatus=new chrome.cast.ReceiverDisplayStatus(h,[]),E.displayStatus.showStop=!0):E.displayStatus=null;chrome.cast.setReceiverDisplayStatus(E,(0,_.DJ)(function(){this.info("Updated receiver status for "+E.friendlyName+": "+h)},this),(0,_.DJ)(function(){hK(this,"Failed to update receiver status for: "+E.friendlyName)},this))};
Xq.prototype.disposeInternal=function(){this.setDisplayStatus("");Xq.superClass_.disposeInternal.call(this)};var EO=function(h,E,g){Xq.call(this,h,E,"CastSession");var Z=this;this.config_=g;this.JSC$19797_session_=null;this.JSC$19797_boundSessionUpdate_=(0,_.DJ)(this.JSC$19799_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.DJ)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Bx(function(){OVJ(Z,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19797_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19797_isInitLoungeToken_=!1;this.JSC$19797_lastLoungeTokenRefreshError_="unknown"};
_.f(EO,Xq);_.p=EO.prototype;
_.p.setCastSession=function(h){if(this.JSC$19797_session_){if(this.JSC$19797_session_==h)return;hK(this,"Overriding cast session with new session object");naG(this);this.JSC$19797_isInitLoungeToken_=!1;this.JSC$19797_lastLoungeTokenRefreshError_="unknown";this.JSC$19797_session_.removeUpdateListener(this.JSC$19797_boundSessionUpdate_);this.JSC$19797_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19797_session_=h;this.JSC$19797_session_.addUpdateListener(this.JSC$19797_boundSessionUpdate_);this.JSC$19797_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);X_i(this,"getMdxSessionStatus")};
_.p.launchWithParams=function(h){this.info("launchWithParams no-op for Cast: "+(0,_.XY)(h))};
_.p.stop=function(){if(this.JSC$19797_session_)this.JSC$19797_session_.stop((0,_.DJ)(function(){this.onSessionStopped()},this),(0,_.DJ)(function(){this.onSessionStopped(Error("cl"))},this));
else this.onSessionStopped(Error("dl"))};
_.p.setDisplayStatus=function(){};
_.p.disposeInternal=function(){this.info("disposeInternal");naG(this);this.JSC$19797_session_&&(this.JSC$19797_session_.removeUpdateListener(this.JSC$19797_boundSessionUpdate_),this.JSC$19797_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19797_session_=null;Xq.prototype.disposeInternal.call(this)};
var sFC=function(h,E){_.Ll(h.getLoungeTokenTimeoutKey_);h.getLoungeTokenTimeoutKey_=0;E==0?Y3G(h):h.getLoungeTokenTimeoutKey_=_.Bx(function(){Y3G(h)},E)},Y3G=function(h){X_i(h,"getLoungeToken");
_.Ll(h.onLoungeTokenTimeoutKey_);h.onLoungeTokenTimeoutKey_=_.Bx(function(){V3G(h,null)},3E4)},X_i=function(h,E){h.info("sendYoutubeMessage_: "+E+" "+(0,_.XY)(void 0));
var g={};g.type=E;h.JSC$19797_session_?h.JSC$19797_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",g,function(){},(0,_.DJ)(function(){hK(this,"Failed to send message: "+E+".")},h)):hK(h,"Sending yt message without session: "+(0,_.XY)(g))};
EO.prototype.onYoutubeMessage_=function(h,E){if(!this.isDisposed())if(E)if(E=(0,_.KQ)(E),_.yx(E))switch(h=""+E.type,E=E.data||{},this.info("onYoutubeMessage_: "+h+" "+(0,_.XY)(E)),h){case "mdxSessionStatus":OVJ(this,E);break;case "loungeToken":V3G(this,E);break;default:hK(this,"Unknown youtube message: "+h)}else hK(this,"Unable to parse message.");else hK(this,"No data in message.")};
var k3I=function(h,E){if(E)h.info("onConnectedScreenId_: Received screenId: "+E),h.screen_&&h.screen_.id==E||h.getScreen_(E,function(g){Qz(h,g)},function(){return h.onSessionStopped()},5);
else h.onSessionStopped(Error("el"))},FPc=function(h,E,g){h.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(E));
var Z=new tG(E);ySX(h,Z,function(M){M?(h.JSC$19797_isInitLoungeToken_=!0,u2(h.JSC$19792_screenService_,Z),Qz(h,Z),h.JSC$19797_lastLoungeTokenRefreshError_="unknown",sFC(h,g)):(_.Vy(Error("fl`"+JSON.stringify(E))),h.onSessionStopped())},5)},OVJ=function(h,E){_.Ll(h.sessionStatusTimeoutKey_);
h.sessionStatusTimeoutKey_=0;if(E)h.config_.enableCastLoungeToken&&E.loungeToken?E.deviceId?h.screen_&&h.screen_.uuid==E.deviceId||(E.loungeTokenRefreshIntervalMs?FPc(h,{name:h.receiver_.friendlyName,screenId:E.screenId,loungeToken:E.loungeToken,dialId:E.deviceId,screenIdType:"shortLived"},E.loungeTokenRefreshIntervalMs):(_.Vy(Error("hl`"+JSON.stringify(E))),k3I(h,E.screenId))):(_.Vy(Error("gl`"+JSON.stringify(E))),k3I(h,E.screenId)):k3I(h,E.screenId);else h.onSessionStopped(Error("el"))},V3G=function(h,
E){_.Ll(h.onLoungeTokenTimeoutKey_);
h.onLoungeTokenTimeoutKey_=0;var g=null;if(E)if(E.loungeToken){var Z;((Z=h.screen_)==null?void 0:Z.token)==E.loungeToken&&(g="staleLoungeToken")}else g="missingLoungeToken";else g="noLoungeTokenResponse";g?(h.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(E)+", error: "+g)),h.JSC$19797_lastLoungeTokenRefreshError_=g,sFC(h,3E4)):(KP0(h,E.loungeToken),h.JSC$19797_isInitLoungeToken_=!1,h.JSC$19797_lastLoungeTokenRefreshError_="unknown",sFC(h,E.loungeTokenRefreshIntervalMs))};
EO.prototype.getScreen_=function(h,E,g,Z){_.Ll(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;lwc(this.JSC$19792_screenService_,this.receiver_.label,h,this.receiver_.friendlyName,(0,_.DJ)(function(M){M?E(M):Z>=0?(hK(this,"Screen "+h+" appears to be offline. "+Z+" retries left."),this.getScreenTimeoutKey_=_.Bx((0,_.DJ)(this.getScreen_,this,h,E,g,Z-1),300)):g(Error("il"))},this),g)};
var ySX=function(h,E,g,Z){_.Ll(h.JSC$19797_checkScreenAvailabilityTimeoutKey_);h.JSC$19797_checkScreenAvailabilityTimeoutKey_=0;m9J(h.JSC$19792_screenService_,E,function(M){M||Z<0?g(M):h.JSC$19797_checkScreenAvailabilityTimeoutKey_=_.Bx(function(){ySX(h,E,g,Z-1)},300)})};
EO.prototype.JSC$19794_getCastSession=function(){return this.JSC$19797_session_};
EO.prototype.JSC$19799_onSessionUpdate_=function(h){this.isDisposed()||h||(hK(this,"Cast session died."),this.onSessionStopped())};
var naG=function(h){_.Ll(h.getScreenTimeoutKey_);h.getScreenTimeoutKey_=0;_.Ll(h.JSC$19797_checkScreenAvailabilityTimeoutKey_);h.JSC$19797_checkScreenAvailabilityTimeoutKey_=0;_.Ll(h.sessionStatusTimeoutKey_);h.sessionStatusTimeoutKey_=0;_.Ll(h.onLoungeTokenTimeoutKey_);h.onLoungeTokenTimeoutKey_=0;_.Ll(h.getLoungeTokenTimeoutKey_);h.getLoungeTokenTimeoutKey_=0};var gv=function(h,E,g,Z){Xq.call(this,h,E,"DialSession");this.config_=Z;this.JSC$19801_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19801_theme_=g;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19801_deferredLaunchDeadlineTimer_=NaN;this.JSC$19801_boundSessionUpdate_=(0,_.DJ)(this.JSC$19803_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19801_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19801_isInitLoungeToken_=!1;this.JSC$19801_lastLoungeTokenRefreshError_="unknown"};
_.f(gv,Xq);gv.prototype.setCastSession=function(h){this.JSC$19801_session_=h;this.JSC$19801_session_.addUpdateListener(this.JSC$19801_boundSessionUpdate_)};
gv.prototype.launchWithParams=function(h){this.connectData_=h;this.deferredLaunch_()};
gv.prototype.stop=function(){ASJ(this);if(this.JSC$19801_session_)this.JSC$19801_session_.stop((0,_.DJ)(this.onSessionStopped,this,null),(0,_.DJ)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
gv.prototype.disposeInternal=function(){ASJ(this);this.JSC$19801_session_&&this.JSC$19801_session_.removeUpdateListener(this.JSC$19801_boundSessionUpdate_);this.JSC$19801_session_=null;Xq.prototype.disposeInternal.call(this)};
var TMG=function(h){var E;return!!(h.config_.enableDialLoungeToken&&((E=h.JSC$19801_session_)==null?0:E.getDialAppInfo))},bVZ=function(h){h.cancelPolling_=h.JSC$19792_screenService_.JSC$19790_getScreenByPollingPairingCode(h.reversePairingCode_,h.receiver_.label,h.receiver_.friendlyName,TMG(h),function(E,g){h.cancelPolling_=function(){};
h.JSC$19801_isInitLoungeToken_=!0;Qz(h,E);E.idType=="shortLived"&&g>0&&Zx(h,g)},function(E){h.cancelPolling_=function(){};
h.onSessionStopped(E)})};
gv.prototype.JSC$19803_onSessionUpdate_=function(h){this.isDisposed()||h||(hK(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var uJI=function(h){var E={};E.pairingCode=h.reversePairingCode_;E.theme=h.JSC$19801_theme_;zq0()&&(E.env_useStageMdx=1);return _.Cl(E)},QF0=function(h){return new Promise(function(E){h.reversePairingCode_=yaG();
if(h.connectData_){var g=new chrome.cast.DialLaunchResponse(!0,uJI(h));E(g);bVZ(h)}else h.deferredLaunch_=function(){_.Ll(h.JSC$19801_deferredLaunchDeadlineTimer_);h.deferredLaunch_=function(){};
h.JSC$19801_deferredLaunchDeadlineTimer_=NaN;var Z=new chrome.cast.DialLaunchResponse(!0,uJI(h));E(Z);bVZ(h)},h.JSC$19801_deferredLaunchDeadlineTimer_=_.Bx(function(){h.deferredLaunch_()},100)})},E9p=function(h,E,g){h.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(E));
var Z=new tG(E);return(new Promise(function(M){hYc(h,Z,function(W){W?(h.JSC$19801_isInitLoungeToken_=!0,u2(h.JSC$19792_screenService_,Z),Qz(h,Z),Zx(h,g)):_.Vy(Error("kl`"+JSON.stringify(E)));M(W)},5)})).then(function(M){return M?new chrome.cast.DialLaunchResponse(!1):QF0(h)})},g9C=function(h,E){var g=h.launchData_.receiver.label,Z=h.receiver_.friendlyName;
return(new Promise(function(M){lwc(h.JSC$19792_screenService_,g,E,Z,function(W){W&&W.token&&Qz(h,W);M(W)},function(W){hK(h,"Failed to get DIAL screen: "+W);
M(null)})})).then(function(M){return M&&M.token?new chrome.cast.DialLaunchResponse(!1):QF0(h)})},hYc=function(h,E,g,Z){_.Ll(h.JSC$19801_checkScreenAvailabilityTimeoutKey_);
h.JSC$19801_checkScreenAvailabilityTimeoutKey_=0;m9J(h.JSC$19792_screenService_,E,function(M){M||Z<0?g(M):h.JSC$19801_checkScreenAvailabilityTimeoutKey_=_.Bx(function(){hYc(h,E,g,Z-1)},300)})},Zx=function(h,E){h.info("getDialAppInfoWithTimeout_ "+E);
TMG(h)&&(_.Ll(h.getDialAppInfoTimeoutKey_),h.getDialAppInfoTimeoutKey_=0,E==0?ZHp(h):h.getDialAppInfoTimeoutKey_=_.Bx(function(){ZHp(h)},E))},ZHp=function(h){TMG(h)&&h.JSC$19801_session_.getDialAppInfo(function(E){h.info("getDialAppInfo dialLaunchData: "+JSON.stringify(E));
E=E.extraData||{};var g=null;if(E.loungeToken){var Z;((Z=h.screen_)==null?void 0:Z.token)==E.loungeToken&&(g="staleLoungeToken")}else g="missingLoungeToken";g?(h.JSC$19801_lastLoungeTokenRefreshError_=g,Zx(h,3E4)):(h.JSC$19801_isInitLoungeToken_=!1,h.JSC$19801_lastLoungeTokenRefreshError_="unknown",KP0(h,E.loungeToken),Zx(h,E.loungeTokenRefreshIntervalMs))},function(E){h.info("getDialAppInfo error: "+E);
h.JSC$19801_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Zx(h,3E4)})},ASJ=function(h){_.Ll(h.JSC$19801_checkScreenAvailabilityTimeoutKey_);
h.JSC$19801_checkScreenAvailabilityTimeoutKey_=0;_.Ll(h.getDialAppInfoTimeoutKey_);h.getDialAppInfoTimeoutKey_=0;h.cancelPolling_();h.cancelPolling_=function(){};
_.Ll(h.JSC$19801_deferredLaunchDeadlineTimer_)};var ML=function(h,E){Xq.call(this,h,E,"ManualSession");this.JSC$19805_deferredLaunchDeadlineTimer_=_.Bx((0,_.DJ)(this.launchWithParams,this,null),150)};
_.f(ML,Xq);ML.prototype.stop=function(){this.onSessionStopped()};
ML.prototype.setCastSession=function(){};
ML.prototype.launchWithParams=function(){_.Ll(this.JSC$19805_deferredLaunchDeadlineTimer_);this.JSC$19805_deferredLaunchDeadlineTimer_=NaN;var h=x2(this.JSC$19792_screenService_.getScreens(),this.receiver_.label);if(h)Qz(this,h);else this.onSessionStopped(Error("ll"))};
ML.prototype.disposeInternal=function(){_.Ll(this.JSC$19805_deferredLaunchDeadlineTimer_);this.JSC$19805_deferredLaunchDeadlineTimer_=NaN;Xq.prototype.disposeInternal.call(this)};var k2=function(h,E){_.Yt.call(this);this.config_=E;this.JSC$19808_screenService_=h;this.JSC$19808_appId_=E.appId||"233637DE";this.JSC$19808_theme_=E.theme||"cl";this.disableDial_=E.disableCastApi||!1;this.forceMirroring_=E.forceMirroring||!1;this.JSC$19808_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.DJ)(this.onReceiverAction_,this)};
_.f(k2,_.Yt);
k2.prototype.init=function(h,E){chrome.cast.timeout.requestSession=3E4;var g=new chrome.cast.SessionRequest(this.JSC$19808_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.J("desktop_enable_cast_connect")&&(g.androidReceiverCompatible=!0);this.disableDial_||(g.dialRequest=new chrome.cast.DialRequest("YouTube"));var Z=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;h=h||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var M=(0,_.DJ)(this.onReceiverUpdated_,
this);g=new chrome.cast.ApiConfig(g,(0,_.DJ)(this.onSessionEstablished_,this),M,Z,h);g.customDialLaunchCallback=(0,_.DJ)(this.onDialLaunchRequested_,this);chrome.cast.initialize(g,(0,_.DJ)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),BpU(),this.JSC$19808_screenService_.subscribe("onlineScreenChange",(0,_.DJ)(this.JSC$19810_onScreenChange_,this)),this.customReceivers_=ME0(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.DJ)(function(W){this.warn_("Failed to set initial custom receivers: "+(0,_.XY)(W))},this)),this.publish("yt-remote-cast2-availability-change",Wz(this)),E(!0))},this),(0,_.DJ)(function(W){this.warn_("Failed to initialize API: "+(0,_.XY)(W));
E(!1)},this))};
k2.prototype.setConnectedScreenStatus=function(h,E){pp("Setting connected screen ID: "+h+" -> "+E);if(this.JSC$19808_session_){var g=this.JSC$19808_session_.screen_;if(!h||g&&g.id!=h)pp("Unsetting old screen status: "+this.JSC$19808_session_.receiver_.friendlyName),Gs(this,null)}if(h&&E){if(!this.JSC$19808_session_){h=x2(this.JSC$19808_screenService_.getScreens(),h);if(!h){pp("setConnectedScreenStatus: Unknown screen.");return}if(h.idType=="shortLived"){pp("setConnectedScreenStatus: Screen with id type to be short lived.");
return}g=WDG(this,h);g||(pp("setConnectedScreenStatus: Connected receiver not custom..."),g=new chrome.cast.Receiver(h.uuid?h.uuid:h.id,h.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(g),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.DJ)(function(Z){this.warn_("Failed to set initial custom receivers: "+(0,_.XY)(Z))},this)));
pp("setConnectedScreenStatus: new active receiver: "+g.friendlyName);Gs(this,new ML(this.JSC$19808_screenService_,g),!0)}this.JSC$19808_session_.setDisplayStatus(E)}else pp("setConnectedScreenStatus: no screen.")};
var WDG=function(h,E){return E?_.mZ(h.customReceivers_,function(g){return Se(E,g.label)},h):null};
k2.prototype.setLaunchParams=function(h){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19808_session_?this.JSC$19808_session_.launchWithParams(h):this.warn_("Setting connection data without a session")};
k2.prototype.JSC$19810_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19808_session_?(this.JSC$19808_session_.stop(),Gs(this,null)):pp("Stopping non-existing session")};
k2.prototype.requestSession=function(){chrome.cast.requestSession((0,_.DJ)(this.onSessionEstablished_,this),(0,_.DJ)(this.onSessionRequestFailed_,this))};
k2.prototype.disposeInternal=function(){this.JSC$19808_screenService_.unsubscribe("onlineScreenChange",(0,_.DJ)(this.JSC$19810_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Xz(_.yy("yt.mdx.remote.debug.handlers_")||[],I6c);_.p8(this.JSC$19808_session_);_.Yt.prototype.disposeInternal.call(this)};
var pp=function(h){mQ("Controller",h)};
k2.prototype.warn_=function(h){mQ("Controller",h)};
var I6c=function(h){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(h)},Wz=function(h){return h.hasCastReceiver_||!!h.customReceivers_.length||!!h.JSC$19808_session_},Gs=function(h,E,g){E!=h.JSC$19808_session_&&(_.p8(h.JSC$19808_session_),(h.JSC$19808_session_=E)?(g?h.publish("yt-remote-cast2-receiver-resumed",E.receiver_):h.publish("yt-remote-cast2-receiver-selected",E.receiver_),E.subscribe("sessionScreen",(0,_.DJ)(h.onSessionScreen_,h,E)),E.subscribe("sessionFailed",
function(){return pPG(h,E)}),E.screen_?h.publish("yt-remote-cast2-session-change",E.screen_):g&&h.JSC$19808_session_.launchWithParams(null)):h.publish("yt-remote-cast2-session-change",null))},pPG=function(h,E){h.JSC$19808_session_==E&&h.publish("yt-remote-cast2-session-failed")};
_.p=k2.prototype;_.p.onSessionScreen_=function(h,E){this.JSC$19808_session_==h&&(E||Gs(this,null),this.publish("yt-remote-cast2-session-change",E))};
_.p.onReceiverAction_=function(h,E){if(!this.isDisposed())if(h)switch(h.friendlyName=chrome.cast.unescape(h.friendlyName),pp("onReceiverAction_ "+h.label+" / "+h.friendlyName+"-- "+E),E){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19808_session_)if(this.JSC$19808_session_.receiver_.label!=h.label)pp("onReceiverAction_: Stopping active receiver: "+this.JSC$19808_session_.receiver_.friendlyName),this.JSC$19808_session_.stop();else{pp("onReceiverAction_: Casting to active receiver.");this.JSC$19808_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19808_session_.screen_);break}switch(h.receiverType){case chrome.cast.ReceiverType.CUSTOM:Gs(this,new ML(this.JSC$19808_screenService_,h));break;case chrome.cast.ReceiverType.DIAL:Gs(this,new gv(this.JSC$19808_screenService_,h,this.JSC$19808_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:Gs(this,new EO(this.JSC$19808_screenService_,h,this.config_));break;default:this.warn_("Unknown receiver type: "+h.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19808_session_&&
this.JSC$19808_session_.receiver_.label==h.label?this.JSC$19808_session_.stop():this.warn_("Stopping receiver w/o session: "+h.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.p.onDialLaunchRequested_=function(h){if(this.isDisposed())return Promise.reject(Error("ml"));var E=h.receiver;E.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+E.friendlyName),E.receiverType=chrome.cast.ReceiverType.DIAL);var g=this.JSC$19808_session_?this.JSC$19808_session_.receiver_:null;if(!g||g.label!=E.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+E.friendlyName),Promise.reject(Error("nl"));if(g&&g.label==E.label&&g.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19808_session_.screen_)return pp("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19808_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+g.receiverType+'" to "dial" for '+E.friendlyName);Gs(this,new gv(this.JSC$19808_screenService_,E,this.JSC$19808_theme_,this.config_))}E=this.JSC$19808_session_;E.launchData_=h;E.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(h=E.launchData_.extraData||{},g=h.screenId||null,TMG(E)&&h.loungeToken?h.loungeTokenRefreshIntervalMs?h=E9p(E,{name:E.receiver_.friendlyName,screenId:h.screenId,loungeToken:h.loungeToken,dialId:E.launchData_.receiver.label,screenIdType:"shortLived"},h.loungeTokenRefreshIntervalMs):(_.Vy(Error("jl`"+JSON.stringify(h))),h=g9C(E,g)):h=g9C(E,g)):h=QF0(E);return h};
_.p.onSessionEstablished_=function(h){var E=this;if(!this.isDisposed()&&!this.forceMirroring_){pp("New cast session ID: "+h.sessionId);var g=h.receiver;if(g.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19808_session_)if(g.receiverType==chrome.cast.ReceiverType.CAST)pp("Got resumed cast session before resumed mdx connection."),g.friendlyName=chrome.cast.unescape(g.friendlyName),Gs(this,new EO(this.JSC$19808_screenService_,g,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var Z=this.JSC$19808_session_.receiver_,M=x2(this.JSC$19808_screenService_.getScreens(),Z.label);M&&Se(M,g.label)&&Z.receiverType!=chrome.cast.ReceiverType.CAST&&g.receiverType==chrome.cast.ReceiverType.CAST&&(pp("onSessionEstablished_: manual to cast session change "+g.friendlyName),_.p8(this.JSC$19808_session_),this.JSC$19808_session_=new EO(this.JSC$19808_screenService_,g,this.config_),this.JSC$19808_session_.subscribe("sessionScreen",(0,_.DJ)(this.onSessionScreen_,this,this.JSC$19808_session_)),
this.JSC$19808_session_.subscribe("sessionFailed",function(){return pPG(E,E.JSC$19808_session_)}),this.JSC$19808_session_.launchWithParams(null));
this.JSC$19808_session_.setCastSession(h)}}};
_.p.JSC$19810_getCastSession=function(){return this.JSC$19808_session_?this.JSC$19808_session_.JSC$19794_getCastSession():null};
_.p.onSessionRequestFailed_=function(h){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.XY)(h)),h.code!=chrome.cast.ErrorCode.CANCEL&&Gs(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.p.onReceiverUpdated_=function(h){pp("Receiver availability updated: "+h);if(!this.isDisposed()){var E=Wz(this);this.hasCastReceiver_=h==chrome.cast.ReceiverAvailability.AVAILABLE;Wz(this)!=E&&this.publish("yt-remote-cast2-availability-change",Wz(this))}};
var ME0=function(h){var E=h.JSC$19808_screenService_.JSC$19790_getOnlineScreens(),g=h.JSC$19808_session_&&h.JSC$19808_session_.receiver_;h=_.O6(E,function(Z){g&&Se(Z,g.label)&&(g=null);var M=Z.uuid?Z.uuid:Z.id,W=WDG(this,Z);W?(W.label=M,W.friendlyName=Z.name):(W=new chrome.cast.Receiver(M,Z.name),W.receiverType=chrome.cast.ReceiverType.CUSTOM);return W},h);
g&&(g.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(g=new chrome.cast.Receiver(g.label,g.friendlyName),g.receiverType=chrome.cast.ReceiverType.CUSTOM),h.push(g));return h};
k2.prototype.JSC$19810_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=ME0(this),pp("Updating custom receivers: "+(0,_.XY)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.DJ)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Wz(this)))};
k2.prototype.setLaunchParams=k2.prototype.setLaunchParams;k2.prototype.setConnectedScreenStatus=k2.prototype.setConnectedScreenStatus;k2.prototype.stopSession=k2.prototype.JSC$19810_stopSession;k2.prototype.getCastSession=k2.prototype.JSC$19810_getCastSession;k2.prototype.requestSession=k2.prototype.requestSession;k2.prototype.init=k2.prototype.init;k2.prototype.dispose=k2.prototype.dispose;var GjR=_.uz(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),XKU=[],wKG=_.BR(GjR);var zYC=function(h){h.audioTrackId=null;h.trackData=null;h.playerState=-1;h.hasPrevious=!1;h.hasNext=!1;h.playerTime_=0;h.playerTimeAt_=_.zZ();h.seekableStart_=0;h.seekableEnd_=0;h.duration_=0;h.loadedTime=0;h.liveIngestionTime_=NaN;h.isLive_=!1};
_.p=yA.prototype;
_.p.reset=function(h){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;h&&(this.index=h.index,this.listId=h.listId,this.videoId=h.videoId,this.playerState=h.playerState,this.volume=h.volume,this.muted=h.muted,this.audioTrackId=h.audioTrackId,this.trackData=h.trackData,this.hasPrevious=h.hasPrevious,this.hasNext=h.hasNext,this.playerTime_=h.playerTime,this.playerTimeAt_=h.playerTimeAt,this.seekableStart_=h.seekableStart,this.seekableEnd_=h.seekableEnd,this.duration_=h.duration,this.loadedTime=
h.loadedTime,this.liveIngestionTime_=h.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.p.stopPlayer=function(){this.index=-1;this.videoId="";zYC(this)};
_.p.isPlaying=function(){return this.playerState==1};
_.p.isBuffering=function(){return this.playerState==3};
_.p.isAdPlaying=function(){return this.playerState==1081};
var zs=function(h,E){h.playerTime_=E;h.playerTimeAt_=_.zZ()},aiC=function(h){switch(h.playerState){case 1:case 1081:return(_.zZ()-h.playerTimeAt_)/1E3+h.playerTime_;
case -1E3:return 0}return h.playerTime_};
yA.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.zZ()-this.playerTimeAt_)/1E3:0):this.duration_};
var czJ=function(h,E,g){var Z=h.videoId;h.videoId=E;h.index=g;E!=Z&&zYC(h)},iHC=function(h){var E={};
E.index=h.index;E.listId=h.listId;E.videoId=h.videoId;E.playerState=h.playerState;E.volume=h.volume;E.muted=h.muted;E.audioTrackId=h.audioTrackId;E.trackData=_.Kt.unsafeClone(h.trackData);E.hasPrevious=h.hasPrevious;E.hasNext=h.hasNext;E.playerTime=h.playerTime_;E.playerTimeAt=h.playerTimeAt_;E.seekableStart=h.seekableStart_;E.seekableEnd=h.seekableEnd_;E.duration=h.duration_;E.loadedTime=h.loadedTime;E.liveIngestionTime=h.liveIngestionTime_;return E};
yA.prototype.clone=function(){return new yA(iHC(this))};var El=function(h,E){_.Yt.call(this);var g=this;this.state_=0;this.connection_=h;this.contextSubscriptions_=[];this.actionQueue_=new H3G;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.DJ)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.DJ)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.DJ)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.DJ)(this.onCloudviewAvailabilityChange_,this);var Z=0;h?(Z=h.getProxyState(),
Z!=3&&(h.subscribe("proxyStateChange",this.setState_,this),o9G(this))):Z=3;Z!=0&&(E?this.setState_(Z):_.Bx(function(){g.setState_(Z)},0));
(h=klp())&&Iip(this,h);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.f(El,_.Yt);El.prototype.getState=function(){return this.state_};
El.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
El.prototype.reconnect=function(){this.connection_.reconnect()};
var ai=function(h){return new yA(h.connection_.getPlayerContextData())};
_.p=El.prototype;_.p.play=function(){cz(this)?(this.castMedia_?this.castMedia_.play(null,_.wk,RY0(this,"play")):ig(this,"play"),Pmx(this,1,aiC(ai(this))),this.publish("remotePlayerChange")):oi(this,this.play)};
_.p.pause=function(){cz(this)?(this.castMedia_?this.castMedia_.pause(null,_.wk,RY0(this,"pause")):ig(this,"pause"),Pmx(this,2,aiC(ai(this))),this.publish("remotePlayerChange")):oi(this,this.pause)};
_.p.seekTo=function(h){if(cz(this)){if(this.castMedia_){var E=ai(this),g=new chrome.cast.media.SeekRequest;g.currentTime=h;E.isPlaying()||E.isBuffering()?g.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:g.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(g,_.wk,RY0(this,"seekTo",{newTime:h}))}else ig(this,"seekTo",{newTime:h});Pmx(this,3,h);this.publish("remotePlayerChange")}else oi(this,_.Sj(this.seekTo,h))};
_.p.stop=function(){if(cz(this)){this.castMedia_?this.castMedia_.stop(null,_.wk,RY0(this,"stopVideo")):ig(this,"stopVideo");var h=ai(this);h.stopPlayer();Ii(this,h);this.publish("remotePlayerChange")}else oi(this,this.stop)};
_.p.setVolume=function(h,E){if(cz(this)){var g=ai(this);if(this.castSession_){if(g.volume!=h){var Z=Math.round(h)/100;this.castSession_.setReceiverVolumeLevel(Z,(0,_.DJ)(function(){vS("set receiver volume: "+Z)},this),(0,_.DJ)(function(){this.warn_("failed to set receiver volume.")},this))}g.muted!=E&&this.castSession_.setReceiverMuted(E,(0,_.DJ)(function(){vS("set receiver muted: "+E)},this),(0,_.DJ)(function(){this.warn_("failed to set receiver muted.")},this))}else{var M={volume:h,
muted:E};g.volume!=-1&&(M.delta=h-g.volume);ig(this,"setVolume",M)}g.muted=E;g.volume=h;Ii(this,g)}else oi(this,_.Sj(this.setVolume,h,E))};
_.p.setAudioTrack=function(h,E){cz(this)?(E=E.getLanguageInfo().getId(),ig(this,"setAudioTrack",{videoId:h,audioTrackId:E}),h=ai(this),h.audioTrackId=E,Ii(this,h)):oi(this,_.Sj(this.setAudioTrack,h,E))};
_.p.addVideo=function(h){cz(this)?ig(this,"addVideo",{videoId:h}):oi(this,_.Sj(this.addVideo,h))};
_.p.addPlaylist=function(h){cz(this)?ig(this,"addVideos",{listId:h}):oi(this,_.Sj(this.addPlaylist,h))};
_.p.addVideos=function(h){h.length==0?this.warn_("Ignore add videos request due to empty list"):cz(this)?ig(this,"addVideos",{videoIds:h.join(",")}):oi(this,_.Sj(this.addVideos,h))};
_.p.JSC$19820_removeVideo=function(h){cz(this)?ig(this,"removeVideo",{videoId:h}):oi(this,_.Sj(this.JSC$19820_removeVideo,h))};
_.p.JSC$19820_insertVideo=function(h){cz(this)?ig(this,"insertVideo",{videoId:h}):oi(this,_.Sj(this.JSC$19820_insertVideo,h))};
_.p.playVideo=function(h,E,g,Z,M,W,z){Z=Z===void 0?null:Z;M=M===void 0?null:M;W=W===void 0?null:W;z=z===void 0?null:z;var c=ai(this),I={videoId:h};g!==void 0&&(I.currentIndex=g);czJ(c,h,g||0);E!==void 0&&(zs(c,E),I.currentTime=E);Z&&(I.listId=Z);M&&(I.playerParams=M);W&&(I.clickTrackingParams=W);z&&(I.locationInfo=(0,_.XY)(z));ig(this,"setPlaylist",I);Z||Ii(this,c)};
_.p.nextVideo=function(h,E){if(cz(this)){if(h&&E){var g=ai(this);czJ(g,h,E);Ii(this,g)}ig(this,"next")}else oi(this,_.Sj(this.nextVideo,h,E))};
_.p.clearPlaylist=function(){if(cz(this)){ig(this,"clearPlaylist");var h=ai(this);h.reset();Ii(this,h);this.publish("remotePlayerChange")}else oi(this,this.clearPlaylist)};
_.p.dispose=function(){if(this.state_!=3){var h=this.state_;this.state_=3;this.publish("proxyStateChange",h,this.state_)}_.Yt.prototype.dispose.call(this)};
_.p.disposeInternal=function(){B_G(this);this.connection_=null;this.actionQueue_.clear();Iip(this,null);_.Yt.prototype.disposeInternal.call(this)};
var o9G=function(h){_.Tt("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(E){this.contextSubscriptions_.push(this.connection_.subscribe(E,_.Sj(this.onProxyEvent_,E),this))},h)},B_G=function(h){_.Tt(h.contextSubscriptions_,function(E){this.connection_.unsubscribeByKey(E)},h);
h.contextSubscriptions_.length=0},cz=function(h){return h.getState()==1},oi=function(h,E){h.actionQueue_.getCount()<50&&h.actionQueue_.enqueue(E)},Pmx=function(h,E,g){var Z=ai(h);
zs(Z,g);Z.playerState!=-1E3&&(Z.playerState=E);Ii(h,Z)},ig=function(h,E,g){h.connection_.sendMessage(E,g)},Ii=function(h,E){B_G(h);
h.connection_.setPlayerContextData(iHC(E));o9G(h)};
El.prototype.setState_=function(h){if((h!=this.state_||h==2)&&this.state_!=3&&h!=0){var E=this.state_;this.state_=h;this.publish("proxyStateChange",E,h);if(h==1)for(;!this.actionQueue_.isEmpty();)h=this.actionQueue_,DJ0(h),h.front_.pop().apply(this);else h==3&&this.dispose()}};
El.prototype.onProxyEvent_=function(h,E){this.publish(h,E)};
var Iip=function(h,E){h.castSession_&&(h.castSession_.removeUpdateListener(h.boundCastStatusListener_),h.castSession_.removeMediaListener(h.boundCastMediaListener_),h.onCastMediaChange_(null));h.castSession_=E;if(h.castSession_&&(vS("Setting cast session: "+h.castSession_.sessionId),h.castSession_.addUpdateListener(h.boundCastStatusListener_),h.castSession_.addMediaListener(h.boundCastMediaListener_),h.castSession_.media.length))h.onCastMediaChange_(h.castSession_.media[0])};
El.prototype.onCastStatusUpdate_=function(h){if(!h)this.onCastMediaChange_(null),Iip(this,null);else if(this.castSession_.receiver.volume){h=this.castSession_.receiver.volume;var E=ai(this),g=Math.round(100*h.level||0);if(E.volume!=g||E.muted!=h.muted)vS("Cast volume update: "+h.level+(h.muted?" muted":"")),E.volume=g,E.muted=!!h.muted,Ii(this,E)}};
El.prototype.onCastMediaChange_=function(h){vS("Cast media: "+!!h);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=h)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),Ubi(this),this.publish("remotePlayerChange")};
var Ubi=function(h){var E=h.castMedia_.media,g=h.castMedia_.customData;if(E&&g){var Z=ai(h);E.contentId!=Z.videoId&&vS("Cast changing video to: "+E.contentId);Z.videoId=E.contentId;Z.playerState=g.playerState;zs(Z,h.castMedia_.getEstimatedTime());Ii(h,Z)}else vS("No cast media video. Ignoring state update.")};
El.prototype.onCastMediaUpdate_=function(h){if(h)Ubi(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
El.prototype.onCloudviewAvailabilityChange_=function(){var h=klp();h&&Iip(this,h)};
El.prototype.warn_=function(h){mQ("CP",h)};
var RY0=function(h,E,g){return(0,_.DJ)(function(Z){this.warn_("Failed to "+E+" with cast v2 channel. Error code: "+Z.code);Z.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+E+" using MDx browser channel."),ig(this,E,g))},h)};var gd=function(h,E,g,Z){Z=Z===void 0?!1:Z;_.Yt.call(this);var M=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$19825_http_=h;this.enableConnectWithInitialState_=Z;this.listeners_.push(_.WT(window,"beforeunload",function(){M.JSC$19828_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new yA;this.currentScreenId_=E.id;this.currentScreenIdType_=E.idType;this.channelService=oBI(this.JSC$19825_http_,g,this.JSC$19828_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){LDc(M)});
this.channelService.listen("channelClosed",function(){Ri("Channel closed");isNaN(M.connectTimerId_)?wl(!0):wl();M.dispose()});
this.channelService.listen("channelError",function(W){wl();isNaN(M.getReconnectTimeout_())?(W==1&&M.currentScreenIdType_=="shortLived"&&M.publish("browserChannelAuthError",W),Ri("Channel error: "+W+" without reconnection"),M.dispose()):(M.reconnecting_=!0,Ri("Channel error: "+W+" with reconnection in "+M.getReconnectTimeout_()+" ms"),jnI(M,2))});
this.channelService.listen("channelMessage",function(W){dbi(M,W)});
this.channelService.setLoungeToken(E.token);this.subscribe("remoteQueueChange",function(){var W=M.playerContext_.videoId;uTC()&&_.Xt("yt-remote-session-video-id",W)})};
_.f(gd,_.Yt);
gd.prototype.connect=function(h,E){if(E){var g=E.listId,Z=E.videoId,M=E.videoIds,W=E.playerParams,z=E.clickTrackingParams,c=E.index,I={videoId:Z},B=E.currentTime,U=E.locationInfo;E=E.loopMode;B!==void 0&&(I.currentTime=B<=5?0:B);W&&(I.playerParams=W);U&&(I.locationInfo=U);z&&(I.clickTrackingParams=z);g&&(I.listId=g);M&&M.length>0&&(I.videoIds=M.join(","));c!==void 0&&(I.currentIndex=c);this.enableConnectWithInitialState_&&(I.loopMode=E||"LOOP_MODE_OFF");g&&(this.playerContext_.listId=g);this.playerContext_.videoId=
Z;this.playerContext_.index=c||0;this.playerContext_.state=3;zs(this.playerContext_,B);this.autoplayMode_="UNSUPPORTED";g=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Ri("Connecting with "+g+" and params: "+(0,_.XY)(I));this.channelService.connect({method:g,params:(0,_.XY)(I)},h,ZLI())}else Ri("Connecting without params"),this.channelService.connect({},h,ZLI());CmZ(this)};
gd.prototype.setLoungeToken=function(h){this.channelService.setLoungeToken(h)};
gd.prototype.dispose=function(){this.isDisposed()||(_.Wu("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),jnI(this,3));_.Yt.prototype.dispose.call(this)};
gd.prototype.disposeInternal=function(){JzG(this);eYZ(this);quG(this);_.Ll(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.Ll(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.Qux(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Yt.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var fiJ=function(h){return _.mZ(h.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"})},Ri=function(h){mQ("conn",h)},jnI=function(h,E){h.publish("proxyStateChange",E)},CmZ=function(h){h.connectTimerId_=_.Bx(function(){Ri("Connecting timeout");
h.JSC$19828_disconnect_(1)},2E4)},JzG=function(h){_.Ll(h.connectTimerId_);
h.connectTimerId_=NaN},quG=function(h){_.Ll(h.reconnectedCheckScreenTimeout_);
h.reconnectedCheckScreenTimeout_=NaN},N_X=function(h){eYZ(h);
h.playingSyncTimerId_=_.Bx(function(){Pz(h,"getNowPlaying")},2E4)},eYZ=function(h){_.Ll(h.playingSyncTimerId_);
h.playingSyncTimerId_=NaN},LDc=function(h){Ri("Channel opened");
h.reconnecting_&&(h.reconnecting_=!1,quG(h),h.reconnectedCheckScreenTimeout_=_.Bx(function(){Ri("Timing out waiting for a screen.");h.JSC$19828_disconnect_(1)},15E3))},SuJ=function(h,E){var g=null;
if(E){var Z=fiJ(h);Z&&(g={clientName:Z.clientName,deviceMake:Z.brand,deviceModel:Z.model,osVersion:Z.osVersion})}_.Wu("yt.mdx.remote.remoteClient_",g);E&&(JzG(h),quG(h));g=h.channelService.isChannelOpened()&&isNaN(h.connectTimerId_);E==g?E&&(jnI(h,1),Pz(h,"getSubtitlesTrack")):E?(h.getOtherConnectedRemoteId_()&&h.playerContext_.reset(),jnI(h,1),Pz(h,"getNowPlaying"),tEJ(h)):h.JSC$19828_disconnect_(1)},xbG=function(h,E){var g=E.params.videoId;
delete E.params.videoId;g==h.playerContext_.videoId&&(_.Kt.isEmpty(E.params)?h.playerContext_.trackData=null:h.playerContext_.trackData=E.params,h.publish("remotePlayerChange"))},wPR=function(h,E,g){var Z=E.params.videoId||E.params.video_id,M=parseInt(E.params.currentIndex,10);
h.playerContext_.listId=E.params.listId||h.playerContext_.listId;czJ(h.playerContext_,Z,M);h.publish("remoteQueueChange",g)},DbG=function(h,E){E.params=E.params||{};
wPR(h,E,"NOW_PLAYING_MAY_CHANGE");h.onStateChange_(E);h.publish("autoplayDismissed")};
gd.prototype.onStateChange_=function(h){var E=parseInt(h.params.currentTime||h.params.current_time,10);zs(this.playerContext_,isNaN(E)?0:E);E=parseInt(h.params.state,10);E=isNaN(E)?-1:E;E==-1&&this.playerContext_.playerState==-1E3&&(E=-1E3);this.playerContext_.playerState=E;E=Number(h.params.loadedTime);this.playerContext_.loadedTime=isNaN(E)?0:E;E=Number(h.params.duration);this.playerContext_.duration_=isNaN(E)?0:E;E=this.playerContext_;var g=Number(h.params.liveIngestionTime);E.liveIngestionTime_=
g;E.isLive_=isNaN(g)?!1:!0;E=this.playerContext_;g=Number(h.params.seekableStartTime);h=Number(h.params.seekableEndTime);E.seekableStart_=isNaN(g)?0:g;E.seekableEnd_=isNaN(h)?0:h;this.playerContext_.playerState==1?N_X(this):eYZ(this);this.publish("remotePlayerChange")};
gd.prototype.onAdStateChange_=function(h){if(this.playerContext_.playerState!=-1E3){var E=1085;switch(parseInt(h.params.adState,10)){case 1:E=1081;break;case 2:E=1084;break;case 0:E=1083}this.playerContext_.playerState=E;h=parseInt(h.params.currentTime,10);zs(this.playerContext_,isNaN(h)?0:h);this.publish("remotePlayerChange")}};
var lic=function(h,E){var g=E.params.muted=="true";h.playerContext_.volume=parseInt(E.params.volume,10);h.playerContext_.muted=g;h.publish("remotePlayerChange")},rz0=function(h,E){h.autoplayVideoId_=E.params.videoId;
h.publish("nowAutoplaying",parseInt(E.params.timeout,10))},mbC=function(h,E){h.autoplayVideoId_=E.params.videoId||null;
h.publish("autoplayUpNext",h.autoplayVideoId_)},v9U=function(h,E){h.autoplayMode_=E.params.autoplayMode;
h.publish("autoplayModeChange",h.autoplayMode_);h.autoplayMode_=="DISABLED"&&h.publish("autoplayDismissed")},HHp=function(h,E){var g=E.params.hasNext=="true";
h.playerContext_.hasPrevious=E.params.hasPrevious=="true";h.playerContext_.hasNext=g;h.publish("previousNextChange")};
gd.prototype.isCapabilitySupportedOnConnectedDevices_=function(h){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var E=_.G(this.connectedDevices_),g=E.next();!g.done;g=E.next())if(!g.value.capabilities.has(h))return!1;return!0};
var dbi=function(h,E){E=E.message;E.params?Ri("Received: action="+E.action+", params="+(0,_.XY)(E.params)):Ri("Received: action="+E.action+" {}");switch(E.action){case "loungeStatus":E=(0,_.KQ)(E.params.devices);h.connectedDevices_=_.O6(E,function(Z){return new TM(Z)});
E=!!_.mZ(h.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
SuJ(h,E);E=h.isCapabilitySupportedOnConnectedDevices_("mlm");h.publish("multiStateLoopEnabled",E);break;case "loungeScreenDisconnected":BCR(h.connectedDevices_,function(Z){return Z.type=="LOUNGE_SCREEN"});
SuJ(h,!1);break;case "remoteConnected":var g=new TM((0,_.KQ)(E.params.device));_.mZ(h.connectedDevices_,function(Z){return Z.equals(g)})||_.JM$(h.connectedDevices_,g);
break;case "remoteDisconnected":g=new TM((0,_.KQ)(E.params.device));BCR(h.connectedDevices_,function(Z){return Z.equals(g)});
break;case "gracefulDisconnect":break;case "playlistModified":wPR(h,E,"QUEUE_MODIFIED");break;case "nowPlaying":DbG(h,E);break;case "onStateChange":h.onStateChange_(E);break;case "onAdStateChange":h.onAdStateChange_(E);break;case "onVolumeChanged":lic(h,E);break;case "onSubtitlesTrackChanged":xbG(h,E);break;case "nowAutoplaying":rz0(h,E);break;case "autoplayDismissed":h.publish("autoplayDismissed");break;case "autoplayUpNext":mbC(h,E);break;case "onAutoplayModeChanged":v9U(h,E);break;case "onHasPreviousNextChanged":HHp(h,
E);break;case "requestAssistedSignIn":h.publish("assistedSignInRequested",E.params.authCode);break;case "onLoopModeChanged":h.publish("loopModeChange",E.params.loopMode);break;default:Ri("Unrecognized action: "+E.action)}};
_.p=gd.prototype;_.p.getProxyState_=function(){var h=3;this.isDisposed()||(h=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(h=1):h=2);return h};
_.p.JSC$19828_disconnect_=function(h){Ri("Disconnecting with "+h);_.Wu("yt.mdx.remote.remoteClient_",null);JzG(this);this.publish("beforeDisconnect",h);h==1&&wl();this.channelService.disconnect(h);this.dispose()};
_.p.getPlayerContextData_=function(){var h=this.playerContext_;this.clientVideoId_&&(h=this.playerContext_.clone(),czJ(h,this.clientVideoId_,h.index));return iHC(h)};
_.p.setPlayerContextData_=function(h){var E=this,g=new yA(h);g.videoId&&g.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=g.videoId,_.Ll(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Bx(function(){if(E.clientVideoId_){var M=E.clientVideoId_;E.clientVideoId_=null;E.playerContext_.videoId!=M&&Pz(E,"getNowPlaying")}},5E3));
var Z=[];this.playerContext_.listId==g.listId&&this.playerContext_.videoId==g.videoId&&this.playerContext_.index==g.index||Z.push("remoteQueueChange");this.playerContext_.playerState==g.playerState&&this.playerContext_.volume==g.volume&&this.playerContext_.muted==g.muted&&aiC(this.playerContext_)==aiC(g)&&(0,_.XY)(this.playerContext_.trackData)==(0,_.XY)(g.trackData)||Z.push("remotePlayerChange");this.playerContext_.reset(h);_.Tt(Z,function(M){this.publish(M)},this)};
_.p.getOtherConnectedRemoteId_=function(){var h=this.channelService.getDeviceId(),E=_.mZ(this.connectedDevices_,function(g){return g.type=="REMOTE_CONTROL"&&g.id!=h});
return E?E.id:""};
_.p.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.p.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.p.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.p.JSC$19828_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var tEJ=function(h){_.Ll(h.idleDisconnectTimerId_);h.idleDisconnectTimerId_=_.Bx(function(){h.JSC$19828_disconnect_(1)},864E5)},Pz=function(h,E,g){g?Ri("Sending: action="+E+", params="+(0,_.XY)(g)):Ri("Sending: action="+E);
h.channelService.sendMessage(E,g)};
gd.prototype.sendMessageWithUserAction_=function(h,E){Pz(this,h,E);tEJ(this)};
gd.prototype.JSC$19828_getXsrfToken_=function(){var h=_.qd.get("SAPISID","")||_.qd.get("__Secure-1PAPISID",void 0)||"",E=_.qd.get("__Secure-3PAPISID","")||"";if(!h&&!E)return"";h=_.lJ(_.xd(h),2);E=_.lJ(_.xd(E),2);return _.lJ(_.xd(","+h+","+E),2)};
gd.prototype.subscribe=gd.prototype.subscribe;gd.prototype.unsubscribeByKey=gd.prototype.unsubscribeByKey;gd.prototype.getProxyState=gd.prototype.getProxyState_;gd.prototype.disconnect=gd.prototype.JSC$19828_disconnect_;gd.prototype.getPlayerContextData=gd.prototype.getPlayerContextData_;gd.prototype.setPlayerContextData=gd.prototype.setPlayerContextData_;gd.prototype.getOtherConnectedRemoteId=gd.prototype.getOtherConnectedRemoteId_;gd.prototype.getReconnectTimeout=gd.prototype.getReconnectTimeout_;
gd.prototype.getAutoplayMode=gd.prototype.getAutoplayMode_;gd.prototype.getAutoplayVideoId=gd.prototype.getAutoplayVideoId_;gd.prototype.reconnect=gd.prototype.JSC$19828_reconnect_;gd.prototype.sendMessage=gd.prototype.sendMessageWithUserAction_;gd.prototype.getXsrfToken=gd.prototype.JSC$19828_getXsrfToken_;gd.prototype.isCapabilitySupportedOnConnectedDevices=gd.prototype.isCapabilitySupportedOnConnectedDevices_;var oPG=function(h){$2.call(this,"ScreenServiceProxy");this.instance_=h;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.DJ)(this.JSC$19831_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.DJ)(this.onOnlineScreenChange_,this)))};
_.f(oPG,$2);_.p=oPG.prototype;_.p.getScreens=function(h){return this.instance_.$_gs(h)};
_.p.contains=function(h){return!!this.instance_.$_c(h)};
_.p.get=function(h){return this.instance_.$_g(h)};
_.p.start=function(){this.instance_.$_st()};
_.p.add=function(h,E,g){this.instance_.$_a(h,E,g)};
_.p.remove=function(h,E,g){this.instance_.$_r(h,E,g)};
_.p.updateName=function(h,E,g,Z){this.instance_.$_un(h,E,g,Z)};
_.p.disposeInternal=function(){for(var h=this.subscriptionKeys_.length,E=0;E<h;++E)this.instance_.$_ubk(this.subscriptionKeys_[E]);this.subscriptionKeys_.length=0;this.instance_=null;$2.prototype.disposeInternal.call(this)};
_.p.JSC$19831_onScreenChange_=function(){this.publish("screenChange")};
_.p.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
nq.prototype.$_st=nq.prototype.start;nq.prototype.$_gspc=nq.prototype.JSC$19790_getScreenByPairingCode;nq.prototype.$_gsppc=nq.prototype.JSC$19790_getScreenByPollingPairingCode;nq.prototype.$_c=nq.prototype.contains;nq.prototype.$_g=nq.prototype.get;nq.prototype.$_a=nq.prototype.add;nq.prototype.$_un=nq.prototype.updateName;nq.prototype.$_r=nq.prototype.remove;nq.prototype.$_gs=nq.prototype.getScreens;nq.prototype.$_gos=nq.prototype.JSC$19790_getOnlineScreens;nq.prototype.$_s=nq.prototype.subscribe;
nq.prototype.$_ubk=nq.prototype.unsubscribeByKey;var p$x=null,Rz0=!1,Fq=null,AG=null,iOR=null,QA=[];var $bc=new _.sY("yt-menu"),KDR=function(){},n90=function(h,E,g){h=E=="right-click"?g.rightClickMenuPopupHint:g.menuPopupHint;
if(!(OH0(E)>10))return E=E||"default",$bc.set(E+"-impression",OH0(E)+1),h},OH0=function(h){return parseInt($bc.get((h||"default")+"-impression")||0,10)};
_.GZ(KDR);var XPC=function(){this.contexts_=new WeakMap;this.JSC$19837_networkService_=this.activeContext_=null},YuX=function(h,E,g){var Z=h.contexts_.get(E);
Z||(Z=new LIG(h.JSC$19837_networkService_),h.contexts_.set(E,Z));h.activeContext_=Z;g&&h.activeContext_.reset();h.activeContext_.start();return h.activeContext_};var Bz=function(){};
Bz.prototype.enqueue=function(){var h=this,E;return _.a(function(g){if(h.isCounterfactual())return(E=h.getCounterfactualData())&&h.shouldLogCounterfactualImpression()&&h.sendImpressionEndpoints(E),g.return();h.doEnqueue();_.SK(g)})};
Bz.prototype.sendImpressionEndpoints=function(h){_.Tq.getInstance().triggerOptionalAction("yt-service-request",{},h[0])};var UO=function(h,E){this.renderer=h;this.page=E};
_.f(UO,Bz);UO.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
UO.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
UO.prototype.shouldLogCounterfactualImpression=function(){return!0};
UO.prototype.doEnqueue=function(){var h=_.GD(this.page);h&&h.pause();this.renderer.impressionCommand&&_.Tq.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.bQ(_.Tq.getInstance(),[this.renderer.promoCommand],this.page)};var snG=function(h,E){this.renderer=h;this.resolver=_.hU();this.JSC$19849_enforcementCounter=new _.WEA;E?this.JSC$19849_playerManager=_.GD(E):this.JSC$19849_playerManager=null;_.qR(1,!0)};
_.f(snG,Bz);_.p=snG.prototype;_.p.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var h=[];this.renderer.impressionEndpoints.forEach(function(E){(E=_.kB(E))&&h.push(E)});
return h}};
_.p.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.p.shouldLogCounterfactualImpression=function(){var h=_.kzM();h?(this.JSC$19849_enforcementCounter.increment("POPUP"),_.qR(3)):_.qR(2);return h};
_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.doEnqueue=function(){var h=this;_.kzM()?(this.JSC$19849_enforcementCounter.increment("POPUP"),_.qR(3),VEU(this)):this.JSC$19849_playerManager?(this.resolver.promise.then(function(){VEU(h)}),kjC(this.resolver,this.JSC$19849_playerManager)):_.qR(2)};
var kjC=function(h,E){var g=_.hU();E.getPlayerPromise().then(function(Z){g.resolve(Z)});
g.promise.then(function(Z){Z.addEventListener("onAbnormalityDetected",h.resolve);_.KA(h.promise,function(){Z.removeEventListener("onAbnormalityDetected",h.resolve)})});
h.promise.thenCatch(function(){g.promise.cancel()})},VEU=function(h){_.qR(3);
var E={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:h.renderer}};E=_.Tq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});Promise.all(E).then(function(){yzp();h.JSC$19849_playerManager&&h.JSC$19849_playerManager.pause()})},yzp=function(){bZ0(function(h,E){_.nNU(h,E);
h===0?_.qR(7):_.qR(4)})};var FDp=function(h,E){this.renderer=h;this.page=E;this.resolver=_.hU()};
_.f(FDp,Bz);_.p=FDp.prototype;_.p.cancel=function(){this.resolver.promise.cancel()};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var h=this;this.resolver.promise.then(function(){var g={popup:{mealbarPromoRenderer:h.renderer},popupType:"MEALBAR"};_.Tq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:g},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var E=_.GD(this.page);E&&Azi(this.resolver,E)}break;default:this.resolver.resolve()}};
var Azi=function(h,E){var g=_.hU();E.getPlayerPromise().then(function(Z){g.resolve(Z)});
g.promise.then(function(Z){Z.addEventListener("onAdEnd",h.resolve);_.KA(h.promise,function(){Z.removeEventListener("onAdEnd",h.resolve)})});
h.promise.thenCatch(function(){g.promise.cancel()})};var T_G=function(h,E){this.renderer=h;this.page=E};
_.f(T_G,Bz);_.p=T_G.prototype;_.p.cancel=function(){this.JSC$19857_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19857_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19857_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.p.isCounterfactual=function(){return!this.renderer.isVisible};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var h=this,E,g;((E=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(g=E.playbackUpsellDialogTriggerConditionData)==null?void 0:g.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19857_downloadedVideosCountSelectorUnsubscriber=_.kT(_.Gv(),ATc,function(Z,M){Z>M&&(bHC(h),h.cancel())}):bHC(this)};
var bHC=function(h){var E={popup:{upsellDialogRenderer:h.renderer},popupType:"MODAL"};_.Tq.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});(h=_.GD(h.page))&&h.pause()};var Lp={},uZp=(Lp.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Lp.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Lp.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Lp.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Lp.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Lp.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Lp.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Lp),QnX=function(h,E){this.renderer=h;this.targetManager=
E};
_.f(QnX,Bz);_.p=QnX.prototype;_.p.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19864_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19864_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19864_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.p.getCounterfactualData=function(){if(this.isCounterfactual()){var h;return(h=this.renderer.promoConfig)==null?void 0:h.impressionEndpoints}};
_.p.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.p.shouldLogCounterfactualImpression=function(){return!0};
_.p.doEnqueue=function(){var h=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19864_downloadedVideosCountSelectorUnsubscriber=_.kT(_.Gv(),ATc,function(E,g){h.renderer.targetId&&E>g&&(YcR(h.targetManager,h.renderer.targetId,hjU(h)),h.cancel())});
break;default:YcR(this.targetManager,this.renderer.targetId,hjU(this))}};
var hjU=function(h){var E;if((E=h.renderer.suggestedPosition)==null?0:E.type)var g=uZp[h.renderer.suggestedPosition.type];g||(g="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:h.renderer},popupType:"HINT",position:g}}};var EzC=function(){this.previousPage=null},gzC;
EzC.prototype.registerPromoCommand=function(h,E){Z00(this,void 0,void 0,_.e(h.roadblock,HJc),void 0,void 0,E)};
var Z00=function(h,E,g,Z,M,W,z){h.previousPage!==z&&h.pendingTooltipPromo&&h.pendingTooltipPromo.cancel();h.previousPage=z;M?(h.pendingEnforcementPromo&&h.pendingEnforcementPromo.cancel(),h.pendingEnforcementPromo=new snG(M,z),h.pendingEnforcementPromo.enqueue()):W?(h.pendingCommandWrapperPromo=new UO(W,z),h.pendingCommandWrapperPromo.enqueue()):Z?(h.pendingRoadblockPromo&&h.pendingRoadblockPromo.cancel(),h.pendingRoadblockPromo=new T_G(Z,z),h.pendingRoadblockPromo.enqueue()):E?(h.pendingMealbarPromo&&
h.pendingMealbarPromo.cancel(),h.pendingMealbarPromo=new FDp(E,z),h.pendingMealbarPromo.enqueue()):g&&(h.pendingTooltipPromo&&h.pendingTooltipPromo.cancel(),h.pendingTooltipPromo=new QnX(g,_.bc()),h.pendingTooltipPromo.enqueue())},MVX=function(){gzC||(gzC=new EzC);
return gzC};var LmC=!1;var kKJ=function(h,E){var g=_.nF("SESSION_INDEX");this.actionToken_=h;this.commonToken_=E;this.sessionIndex_=g},VpG=function(h){var E=_.hU(),g=_.yy("payments.business.integration.bootstrap"),Z=_.yy("payments.business.integration"),M=Z.Style.create().withMaterialDesignStyle(),W=Z.mashupMode.popup("instrument-manager");
g.asMashupMode(W).usingUserIndex(h.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(M).inStandaloneContext(Z.standaloneContextAuthId.forUserId()).instrumentManager(h.actionToken_,h.commonToken_.length>0?h.commonToken_:void 0,function(z){var c=z.instrumentId;c?E.resolve(c):(c=_.yy("payments.business.integration.scenario.InstrumentManager"),E.reject(z.errorCode&&z.errorCode===c.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(z){_.Vy(z);
E.reject("instrumentManagerLoadError")});
return E.promise};var pa=function(h,E,g){this.payloadName="transactionFlowFailed";this.payload={errorType:h,serializedTransactionFlowLoggingParams:E,isUserDismiss:g===void 0?!1:g}};
_.Wu("yt.ypc.shared.YpcTransactionFlowError",pa);var j$=function(){return _.wD.apply(this,arguments)||this};
_.f(j$,_.wD);j$.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
j$.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
j$.prototype.onErrorMessageDismiss=j$.prototype.onErrorMessageDismiss;_.Y([_.x({readOnly:!0,observer:"errorRendererChanged"}),_.V("design:type",Object)],j$.prototype,"errorRenderer",void 0);_.Y([_.f3("yt-live-chat-error-message-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],j$.prototype,"onErrorMessageDismiss",null);_.Y([_.DM()],j$);var WtI=[j$.prototype];var p0p;var GiC;var zjR=new _.sY("yt-live-chat"),afU=new Map;afU.set("timestamp_toggle","show-timestamps");afU.set("reactions_toggle","allow-reactions");var dv=function(){return _.D.apply(this,arguments)||this};
_.f(dv,_.D);_.p=dv.prototype;_.p.menuItemIdentifierChanged=function(){var h;(h=this.data)!=null&&h.menuItemIdentifier&&(h=afU.get(this.data.menuItemIdentifier))&&(_.J("enable_lwe_web_mute")?(h=zjR.get(h),this.isToggled=!(h===void 0?!this.data.isToggled:!h)):this.isToggled=zjR.get(h))};
_.p.onFocus=function(){this.toggleButton.focus()};
_.p.onTap=function(){var h=this.data.command;h&&this.componentBehavior.resolveCommand(h)};
_.p.computeText=function(h,E,g){return this.componentBehavior.getSimpleString(h?g:E)};
_.p.computeIcon=function(h,E,g){return(h=h?g:E)&&h.iconType?_.CL(h.iconType):""};
dv.prototype.onTap=dv.prototype.onTap;dv.prototype.onFocus=dv.prototype.onFocus;dv.prototype.menuItemIdentifierChanged=dv.prototype.menuItemIdentifierChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],dv.prototype,"componentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],dv.prototype,"data",void 0);
_.Y([_.x({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],dv.prototype,"icon",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],dv.prototype,"isToggled",void 0);_.Y([_.Sg("tp-yt-paper-toggle-button"),_.V("design:type",Object)],dv.prototype,"toggleButton",void 0);_.Y([_.Nm("data.menuItemIdentifier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"menuItemIdentifierChanged",null);
_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"onFocus",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dv.prototype,"onTap",null);_.Y([_.yc({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],dv);
_.X(dv,"yt-live-chat-toggle-renderer",function(){if(GiC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;p0p===void 0&&(p0p=document.createElement("template"));var Z=p0p;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);GiC=h}h=GiC;return h},{mode:_.J("live_chat_enable_sink_wrapper")?2:0});var cYZ=new _.Ps("NAVIGATION_PROGRESS_TOKEN");var i0p={},ozC={},Ifx=(ozC[qEJ.name]=!0,ozC),Cp=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;h.tabGesturesIsActive=!1;h.actionRouterIsRoot=!0;h.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"};h.pageTitle="";h.titleSuffix="YouTube";h.unseenNotificationCount=
0;h.hasNavigated=!1;h.hasSetScrollTopForNavigation=!1;h.pagePreparer=null;h.zwiebackInitJobId=0;h.dataUpdatePromise=null;h.loadDepsPromise=_.dC();h.hasPendingNavigation=!1;h.pendingPlayerOnResponseReceivedActions=[];return h};
_.f(Cp,_.wD);Cp.prototype.attached=function(){Rjx(this);document.addEventListener("yt-navigate-cache",_.qm(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var h=JK();h.init();h.dispatchElement=this.hostElement};
var Rjx=function(h,E){E=E===void 0?0:E;var g=_.GF().resolve(_.pl(_.TV));if(g)PBi(h,g);else{if(E>=5)throw Error("ol");setTimeout(function(){Rjx(h,E+1)},0)}},PBi=function(h,E){E.addEventListener("yt-navigate-start",_.qm(h,h.onYtNavigateStart));
E.addEventListener("yt-navigate-finish",_.qm(h,h.onYtNavigateFinish));E.addEventListener("yt-navigate-error",_.qm(h,h.onYtNavigateError));E.addEventListener("yt-page-data-fetched",_.qm(h,h.onYtPageDataFetched))};
_.p=Cp.prototype;_.p.detached=function(){var h=_.GF().resolve(_.TV);h.removeEventListener("yt-navigate-start",_.qm(this,this.onYtNavigateStart));h.removeEventListener("yt-navigate-finish",_.qm(this,this.onYtNavigateFinish));h.removeEventListener("yt-navigate-error",_.qm(this,this.onYtNavigateError));h.removeEventListener("yt-page-data-fetched",_.qm(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.qm(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.p.setPageOffset=function(h,E){h?_.BX(this.hostElement,"yt-set-page-offset",[h,E]):_.$W(Error("pl"))};
_.p.setPageOffsetForNavigation=function(h,E){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(h,E))};
_.p.onYtNavigateSetPageOffset=function(h,E){this.setPageOffsetForNavigation(E.page,E.offset)};
_.p.getPageOffset=function(){var h=_.UB(this.hostElement).querySelector("#page-manager").getCurrentPage(),E=0;h&&(E=_.BX(this.hostElement,"yt-get-page-offset",[h])[0]);return E};
_.p.onYtHistoryPop=function(h,E){if(_.Xn("DISABLE_WARM_LOADS"))h.preventDefault(),window.location.reload();else{var g=_.GF().resolve(_.TV);g.hasPendingNavigation()&&h.preventDefault();g.cancelPendingNavigation();_.U7(this.hostElement,"yt-pending-navigation-cancelled");E.errorMsg&&(h=E.errorMsg.split(" - "),E=Error(h[0]),h.length==2&&h[1]&&(_.nI(E,h[1]),_.O$(E)),window.location.reload())}};
_.p.onYtHistoryLoad=function(h,E){var g=this;if(_.Xn("DISABLE_WARM_LOADS"))window.location.reload();else{(h=E.endpoint)&&Object.keys(h).length||(h=null);var Z=E.historyEntry,M=_.GF().resolve(_.TV),W=_.GF().resolve(_.p4),z=null;Z&&Z.rootData&&(z=Z.rootData);var c=z&&BSR(z);!z||c||z.filler?h?(M.navigate(h,!0),UqC(this,h)):(E.legacyBorder||c||(E.JSC$30185_savedComponentState==null&&z==null?_.O$(new _.xX("Incomplete history entry",E.forward)):_.KI(new _.xX("Malformed history entry",E.JSC$30185_savedComponentState,
E.forward,z))),window.location.reload()):(_.erz({isHot:!0}),_.nZ({webInfo:{navigationReason:"h"}}),_.yRz(),_.s7("srt"),_.s7("pdc"),this.cancelPendingTasks(),Lt0(this,E.forward,z),z.player&&(z.player.loaded=!1),UqC(this,h),_.otD(M,h||{},z,2,{},!1,E).then(function(){g.setPageOffset(W.getCurrentPage(),Z.scrollTop||0)}))}};
_.p.initHistoryManager=function(h){if(!this.hasNavigated){this.hasNavigated=!0;var E=_.UB(this.hostElement).querySelector("#page-manager").getCurrentData();h=isNaN(h)?this.getPageOffset():h;var g=_.GF().resolve(_.TV).currentEndpoint;this.replaceState(g,E,h)}};
_.p.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.p.onYtNavigateStart=function(h,E){this.cancelPendingTasks();E.noProgressBar||(h=_.GF().resolve(_.pl(cYZ)))&&h.start();h=this.hasPendingNavigation?null:this.data;var g=_.GF().resolve(_.p4),Z,M,W;_.J("kevlar_use_vimio_behavior")&&!((Z=E.endpoint)==null?0:(M=Z.commandMetadata)==null?0:(W=M.webCommandMetadata)==null?0:W.ignoreNavigation)&&(Z=g.getCurrentPage())&&Z.disconnectVisibilityRoot();g.prepareForNavigation(E.pageType,E.endpoint);_.J("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.S1(1,
"pcl"),_.xl(this.pagePreparer,g.preparePage.bind(g,E.pageType,E.endpoint)));Z=this.getPageOffset();this.initHistoryManager(Z);E.reload||this.hasPendingNavigation?(_.J("web_enable_delay_shorts_sequence_call")&&E.pageType==="shorts"&&E.reload&&_.Ra(this.hostElement,"yt-shorts-reset"),this.replaceState(E.endpoint,h,Z)):(h==null?void 0:h.page)==="watch"&&E.pageType==="watch"&&_.J("kevlar_replace_watch_to_watch_history_state")?this.replaceState(E.endpoint,h,Z):(h==null?void 0:h.page)!=="shorts"||E.pageType!==
"shorts"||E.endpoint.reelWatchEndpoint.sequenceParams||_.J("short_to_short_back_nav_killswitch")?E.type!="navigate-back"&&E.type!="navigate-forward"&&(E.pageType==="shorts"&&_.Ra(this.hostElement,"yt-shorts-reset"),this.saveAndPush(E.url,E.endpoint,h,Z)):(_.J("web_enable_delay_shorts_sequence_call")&&(E.endpoint.reelWatchEndpoint.sequenceParams=h==null?void 0:h.cachedSequenceParams,E.endpoint.reelWatchEndpoint.sequenceProvider=h==null?void 0:h.cachedSequenceProvider),this.replaceState(E.endpoint,
h,0));this.hasPendingNavigation=!0};
var j_x=function(h){h.hasPendingNavigation=!1;(h=_.GF().resolve(_.pl(cYZ)))&&h.finish()};
Cp.prototype.onYtNavigateError=function(h,E){j_x(this);h=this.get("endpoint.commandMetadata.webCommandMetadata.url",E);var g=_.uI(window.location.href);h&&!g.pbjreload&&(E=E.navigationErrorReason||"10",_.J("kevlar_parent_on_pbjreload")&&(g={csn:_.sH()},this.get("data.endpoint.clickTrackingParams")&&(g.itct=this.data.endpoint.clickTrackingParams),_.zG(h,g)),_.gD(_.Qy(h,{pbjreload:E})))};
Cp.prototype.onYtNavigateCache=function(h,E){var g=this,Z=E.url,M=E.endpoint,W=E.data;h=!!E.miniplayer;E=!!E.skipHistory;if(Z&&M&&W){var z=this.getPageOffset(),c=this.data||null;E||this.saveAndPush(Z,M,c,z);Z=_.otD(_.GF().resolve(_.TV),M,W,h?4:3,{},h);h&&Z.then(function(){g.dataUpdatePromise&&g.dataUpdatePromise.then(function(){var I=_.GF().resolve(_.p4);g.setPageOffset(I.getCurrentPage(),0)})})}};
Cp.prototype.onYtNavigateFinish=function(h,E){var g=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){dqU(g,E.fromHistory)})};
var dqU=function(h,E){j_x(h);if(h.pendingPlayerOnResponseReceivedActions){for(var g=_.G(h.pendingPlayerOnResponseReceivedActions),Z=g.next();!Z.done;Z=g.next())_.qB(Z.value,h.hostElement);h.pendingPlayerOnResponseReceivedActions=[]}g=_.GF().resolve(_.p4);E||!h.hasNavigated||_.J("web_disable_scroll_on_navigate_finish")||((E=g.getCurrentPage())?E.is==="ytd-shorts"||h.tabGesturesIsActive||h.setPageOffsetForNavigation(E,0):_.O$(Error("ql")));_.hW(function(){_.hW(function(){_.s7("pda")})})};
Cp.prototype.onYtNavigate=function(h){if(!h.detail.endpoint){var E=new _.xX("Error: Missing yt-navigate endpoint from target:",h.target,h.target.nodeName);_.$W(E)}if(E=_.J("cold_missing_history"))E=JK(),E.init(!1),E=!(E.browserHistory.boundHistoryReplaceState&&E.browserHistory.boundHistoryPushState);if(E){_.OW("DISABLE_WARM_LOADS",!0);E=new _.xX("Failed to initialize history manager",this.getDebugString());var g=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
g?_.O$(E):_.$W(E)}E=h.detail.endpoint;var Z,M;_.J("debug_forward_web_query_parameters")&&((Z=E.commandMetadata)==null?0:(M=Z.webCommandMetadata)==null?0:M.url)&&(E=JSON.parse(JSON.stringify(E)),E.commandMetadata.webCommandMetadata.url=_.QaO(E.commandMetadata.webCommandMetadata.url,window.location.search));h={type:0,command:E,form:{params:h.detail.params,tempData:h.detail.tempData||{},requestType:h.detail.type,createScreenConfig:h.detail.createScreenConfig,reload:h.detail.reload?h.detail.reload:!1,
requestForm:h.detail}};_.J("kevlar_yt_navigate_command_handler")?(Z=_.GF().resolve(_.zF),h.form.skipDefaultElement=!0,Z.resolveCommand(E,{form:h.form})):this.handleNavigate(h)};
Cp.prototype.handleNavigate=function(h){this.hasSetScrollTopForNavigation=!1;var E=_.GF().resolve(_.TV),g=h.form||{};E.navigate(h.command,g.reload,g.params,g.tempData,g.requestType,g.createScreenConfig,g.ignoreConfirmation,g.requestForm)&&UqC(this,h.command,g.tempData)};
Cp.prototype.onYtPageDataFetched=function(h,E){try{_.MTl().reset();this.data=E.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.GF().resolve(_.p4).updatePageData(this.data);if(!_.J("web_service_params_response_processor")){var g=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);g&&gYc(g);var Z=this.get("response.responseContext.serviceTrackingParams",
this.data);Z&&gYc(Z)}var M=this.get("playerResponse.onResponseReceivedActions",this.data);M&&(M=CBi(this,M));M&&_.jj(this.hostElement,M,this.hostElement);var W=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),z=this.get("response.responseContext.consistencyTokenJar",this.data);if(W||z){var c=_.TMW(),I=(0,_.Kt.getValues)(c.tokenJars);W&&c.replace(I,W);z&&c.replace(I,z)}}catch(B){_.$W(B)}};
var UqC=function(h,E,g){try{h.onYtEndpointChangeHandler(E,g)}catch(Z){_.$W(Z)}};
_.p=Cp.prototype;_.p.onYtEndpointChangeHandler=function(){};
_.p.setPageTitle=function(h){h=(this.pageTitle=h)?h+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+h};
_.p.onYtUpdateTitle=function(h,E){this.setPageTitle(E)};
_.p.setUnseenNotificationCount=function(h){this.unseenNotificationCount=h;this.setPageTitle(this.pageTitle)};
_.p.handleUpdateNotificationsUnseenCountAction=function(h){_.e(h,pBJ)&&((h=_.e(h,pBJ).unseenCount)?this.setUnseenNotificationCount(h):this.setUnseenNotificationCount(0))};
_.p.handleClearCookieAction=function(h){var E;(h=(E=_.e(h,gKU))==null?void 0:E.cookieName)&&_.LM4(h)};
_.p.onYtUpdateUnseenNotificationCount=function(h,E){this.setUnseenNotificationCount(E)};
_.p.loadData=function(h){var E=this;this.loadDepsPromise.then(function(){var g=_.GF().resolve(_.pl(_.TV));g||_.$W(Error("rl"));if(h&&h.response){if(!h.endpoint){var Z=_.QE(window.document.location.href)||"/",M="";if(Z==="/"||Z.startsWith("/?"))M="WEB_PAGE_TYPE_BROWSE";h.endpoint={commandMetadata:{webCommandMetadata:{url:Z,webPageType:M,rootVe:3854}}}}_.otD(g,h.endpoint,h,5,{})}else h.endpoint?g.navigate(h.endpoint):g.navigate(_.VU);_.KP.cancelJob(E.zwiebackInitJobId);E.zwiebackInitJobId=_.KP.addLowPriorityJob(j9G)})};
var JK=function(){return _.GF().resolve(_.XJ)};
Cp.prototype.getDebugString=function(){return JK().getDebugString()};
Cp.prototype.getThirdPartyManipulationSuspected=function(){return JK().getThirdPartyManipulationSuspected()};
Cp.prototype.replaceState=function(h,E,g){JK().saveAndReplace(h,E,g)};
Cp.prototype.saveAndPush=function(h,E,g,Z){JK().saveAndPush(h,E,g,Z)};
var BSR=function(h){return _.e(h.endpoint,_.MH)||_.e(h.endpoint,_.D9)?!0:!h||isNaN(h.expirationTime)?!1:(0,_.zn)()>h.expirationTime},Lt0=function(h,E,g){var Z=h.get("response.trackingParams",g),M=_.YN(),W=_.sH();
if(Z&&M&&W&&(Z=h.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",g),!Z&&g.rootVe&&(Z=g.rootVe),M=E?"forwardButton":"backButton",E=h.get("playerResponse.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",h.data),h=h.get("response.topbar.desktopTopbarRenderer."+M+".buttonRenderer.command.clickTrackingParams",h.data),E=(h=E||h)?_.rp(h):void 0,h=_.SQ(),M=[_.dC(g)],_.mw(h,Z,E,{dataPromises:M,csnToClone:g.csn}),g.graftedVes))for(g=
_.G(g.graftedVes),Z=g.next();!Z.done;Z=g.next())_.vt(h,Z.value)};
Cp.prototype.onStoreGraftedVeAction=function(h){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(h)):_.O$(Error("sl"))};
var CBi=function(h,E){return E.filter(function(g){for(var Z in g)if(Ifx[Z])return h.pendingPlayerOnResponseReceivedActions.push(g),!0;return!1})};
_.ze.Object.defineProperties(Cp.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Cp.prototype.onStoreGraftedVeAction=Cp.prototype.onStoreGraftedVeAction;Cp.prototype.loadData=Cp.prototype.loadData;Cp.prototype.onYtUpdateUnseenNotificationCount=Cp.prototype.onYtUpdateUnseenNotificationCount;Cp.prototype.handleClearCookieAction=Cp.prototype.handleClearCookieAction;Cp.prototype.handleUpdateNotificationsUnseenCountAction=Cp.prototype.handleUpdateNotificationsUnseenCountAction;Cp.prototype.setUnseenNotificationCount=Cp.prototype.setUnseenNotificationCount;
Cp.prototype.onYtUpdateTitle=Cp.prototype.onYtUpdateTitle;Cp.prototype.setPageTitle=Cp.prototype.setPageTitle;Cp.prototype.onYtEndpointChangeHandler=Cp.prototype.onYtEndpointChangeHandler;Cp.prototype.onYtPageDataFetched=Cp.prototype.onYtPageDataFetched;Cp.prototype.handleNavigate=Cp.prototype.handleNavigate;Cp.prototype.onYtNavigate=Cp.prototype.onYtNavigate;Cp.prototype.onYtNavigateFinish=Cp.prototype.onYtNavigateFinish;Cp.prototype.onYtNavigateCache=Cp.prototype.onYtNavigateCache;
Cp.prototype.onYtNavigateError=Cp.prototype.onYtNavigateError;Cp.prototype.onYtNavigateStart=Cp.prototype.onYtNavigateStart;Cp.prototype.cancelPendingTasks=Cp.prototype.cancelPendingTasks;Cp.prototype.initHistoryManager=Cp.prototype.initHistoryManager;Cp.prototype.onYtHistoryLoad=Cp.prototype.onYtHistoryLoad;Cp.prototype.onYtHistoryPop=Cp.prototype.onYtHistoryPop;Cp.prototype.onYtNavigateSetPageOffset=Cp.prototype.onYtNavigateSetPageOffset;Cp.prototype.setPageOffset=Cp.prototype.setPageOffset;
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Cp.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cp.prototype,"data",void 0);_.Y([_.f3("yt-navigate-set-page-offset"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Cp.prototype,"onYtNavigateSetPageOffset",null);
_.Y([_.f3("yt-history-pop"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Cp.prototype,"onYtHistoryPop",null);_.Y([_.f3("yt-history-load"),_.V("design:type",Function),_.V("design:paramtypes",[Event,_.lmF]),_.V("design:returntype")],Cp.prototype,"onYtHistoryLoad",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Cp.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-update-title"),_.V("design:type",Function),_.V("design:paramtypes",[Event,String]),_.V("design:returntype")],Cp.prototype,"onYtUpdateTitle",null);_.Y([_.f3("yt-update-unseen-notification-count"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Number]),_.V("design:returntype")],Cp.prototype,"onYtUpdateUnseenNotificationCount",null);_.Y([_.DM()],Cp);i0p.YtdAppBehavior=[_.Yl.YtActionHandlerBehavior,Cp.prototype];var e$=function(){var h=_.wD.apply(this,arguments)||this;h._noAccessors=!0;return h};
_.f(e$,_.wD);e$.prototype.ready=function(){var h=this;_.UB(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){h.onChange_()})};
e$.prototype.dataChanged_=function(){_.UB(this.hostElement).querySelector("#checkbox").checked=!1};
e$.prototype.onChange_=function(){var h=_.UB(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Ra(this.hostElement,"yt-dismissal-reason-"+h,this.data.feedbackToken)};
e$.prototype.dataChanged_=e$.prototype.dataChanged_;_.Y([_.x(),_.V("design:type",Object)],e$.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],e$.prototype,"dataChanged_",null);_.Y([_.DM()],e$);var JYp=[e$.prototype];var qL=function(){var h=_.wD.apply(this,arguments)||this;h.timeoutJobId=0;h.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return h};
_.f(qL,_.wD);qL.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
qL.prototype.startTimeout=function(){var h=this,E=this.data&&this.data.displayDurationSeconds;E&&!this.timeoutJobId&&(this.timeoutJobId=_.xW(_.KP,function(){_.BX(h.hostElement,"yt-close-popup-action",[h.is]);h.timeoutJobId=0},E*1E3))};
qL.prototype.cancelTimeout=function(){_.KP.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
qL.prototype.ytdHatsSurveyBehaviorDataChanged=qL.prototype.ytdHatsSurveyBehaviorDataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],qL.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qL.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.Y([_.DM()],qL);var ej0=[_.Yl.YtActionHandlerBehavior,qL.prototype];var qVc=function(h,E){var g;return((g=h.prefixMapping)==null?0:g[E])?h.prefixMapping[E]:h.SHARED_RENDERERS_.hasOwnProperty(E)?"yt":h.prefix},fp={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}};fp.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.J("kevlar_mealbar_above_player"),modern:_.J("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"}};
fp.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};fp.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};fp.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
fp.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)"}};
fp.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};
fp.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};
fp.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};
fp.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};fp.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"}};
fp.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};fp.TOAST={component:null,properties:{}};var ffx=new function(h,E,g){this.supportedPopups=h;this.navigationEndpointPopupMap=E;this.popupTypeMap=g;this.supportedPopups=h;this.navigationEndpointPopupMap=E;this.popupTypeMap=g}({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:_.J("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"}),NSC=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19915_popupConfig=fp;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 tVC=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.pV.getInstance()},NL=function(h,E){var g=h.pageNameToElement.get(E);
if(!g){switch(E){case "watch":var Z=_.J("web_watch_force_learning_journey_for_testing")?_.t6("ytd-watch-learning-journey"):_.J("kevlar_watch_fixie")?_.t6("ytd-watch-fixie"):_.J("kevlar_watch_grid")?_.t6("ytd-watch-grid"):_.t6("ytd-watch-flexy");break;case "learning_journey_watch":Z=_.t6("ytd-watch-learning-journey");break;case "shorts":Z=_.t6("ytd-shorts");break;case "search":Z=_.t6("ytd-search");break;case "channel":Z=_.t6("ytd-browse");Z.pageSubtype="channels";break;case "trending":Z=_.t6("ytd-browse");
Z.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 "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":Z=
_.t6("ytd-browse");Z.pageSubtype=E;break;case "browse":Z=_.t6("ytd-browse");break;default:_.O$(new _.xX("Error getting page element for type",E))}g=Z;h.pageNameToElement.set(E,g)}return g};
tVC.prototype.preparePage=function(h,E,g){g&&(h=_.fm(g)||h);if(h!=="watch"&&h!=="learning_journey_watch"){var Z=this.elementPoolPopulator,M=h;M!=Z.targetPage_&&Z.pendingPages_.indexOf(M)>-1&&(Z.targetPage_&&(Z.pendingPages_.unshift(Z.targetPage_),Z.abort()),k5c(Z,M),_.SxA(Z,M))}if((Z=NL(this,h))||!_.e(g,_.yX)){Z.isAttached||Z===E||(Z.hidden=!0);if(!Z.data&&(h!=="watch"&&h!=="learning_journey_watch"||!_.J("swatcheroo_page_pool_dont_provide_filler_data"))){var W;if(h=(W=_.nF("FILLER_DATA",{})[h])==
null?void 0:W.response)Z.data=h}return Z}};var SVR=function(h){this.JSC$32093_clientRoot=h;this.playlistHandlerActionMap={"yt-add-to-playlist-command":SLG,"yt-end-playlist-command":xiC,"yt-recover-playlist-command":DiJ,"yt-refresh-playlist-command":miR,"yt-playlist-remove-videos-action":lCx};_.bp(_.Tq.getInstance(),this.playlistHandlerActionMap,this.JSC$32093_clientRoot);ggR()},xqC;var tK=function(h,E,g){this.apiKey=h;this.endpoint=E;this.confidenceThreshold=g===void 0?.5:g;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=E==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
E==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new u3J};
_.p=tK.prototype;
_.p.start=function(h){if(this.state===0)if(this.isOnline()){h.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=h.supportsHttpHeadersOverwriteParam);h.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=h.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Ye("voice_assistant");_.Vp("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=h.languageCode||"en-US";this.supportsCrossDomainXhr=h.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=h.youtubeAssistantRequest||null;this.listeningHandler=h.listeningHandler||this.listeningHandler;this.audioDetectedHandler=h.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=h.stopHandler||this.stopHandler;this.completeHandler=h.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=h.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=h.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
h.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=h.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=h.accessToken;this.additionalHeaders=h.additionalHeaders||{};var E;this.prefetchResponseTimeoutMs=(E=h.prefetchResponseTimeoutMs)!=null?E:this.prefetchResponseTimeoutMs;w0p(this);this.startAudio();DqG(this)}else this.errorHandler("OFFLINE")};
_.p.stop=function(h){var E=h===void 0?{}:h;h=E.logCancel===void 0?!0:E.logCancel;var g=E.logMicClosed===void 0?!0:E.logMicClosed;var Z=E.handleError===void 0?!0:E.handleError;E=E.handleStop===void 0?!0:E.handleStop;this.state!==0&&(h&&S$("voz_cx"),x5(this,{logMicClosed:g,handleStop:E}),Z&&this.errorHandler("ABORTED"))};
_.p.getState=function(){return this.state};
_.p.isSupported=function(){return!0};
_.p.stopAudio=function(h){(h===void 0||h)&&S$("voz_mf")};
_.p.startAudio=function(){S$("voz_vp");return _.dC(null)};
var lfU=function(h,E){h.channelOpen&&(h.state!==2&&(h.state=2,S$("voz_ss"),h.listeningHandler()),E=new Uint8Array(E),E='{ "audioIn": "'+_.lJ(E)+'" }',h.channel.send(E))},x5=function(h,E){var g=E===void 0?{}:E;
E=g.logMicClosed===void 0?!0:g.logMicClosed;g=g.handleStop===void 0?!0:g.handleStop;h.vozEndOfDataTimeout>-1&&(clearTimeout(h.vozEndOfDataTimeout),h.vozEndOfDataTimeout=-1);rYI(h);h.stopAudio(E);h.channel&&(h.channelOpen=!1,h.manuallyClosedChannel=!0,h.channel.close(),h.channel=void 0);h.transcribedSpeechResults=[];h.state=0;g&&h.stopHandler()},w0p=function(h){var E={httpHeadersOverwriteParam:h.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},h.additionalHeaders,h.accessToken&&h.isUsingVoz?{Authorization:"Bearer "+h.accessToken}:{"x-goog-api-key":h.apiKey}),supportsCrossDomainXhr:h.supportsCrossDomainXhr};h.channel=new $o(h.endpoint,E);h.channel.open();_.vK(h.channel,"w",function(){var g=h.channel,Z=g.send,M=h.isUsingVoz?"PLACEHOLDER":"example";M={config:{dialogStateIn:{languageCode:h.languageCode},deviceConfig:{deviceId:M,deviceModelId:M},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!h.isUsingVoz)M.config.requestType=4;else if(h.isUsingVoz&&h.youtubeAssistantRequest){var W=JSON.stringify(h.youtubeAssistantRequest);M.config.internalIn={youtubeAssistantS3InputJson:W}}Z.call(g,M);h.channelOpen=!0;h.manuallyClosedChannel=!1});
_.vK(h.channel,"x",function(){h.manuallyClosedChannel||(h.channelOpen=!1,h.channel=void 0,x5(h))});
_.vK(h.channel,"z",function(g){if(g.data){rYI(h);for(var Z=0;Z<g.data.length;Z++){var M=h,W=g.data[Z],z=W.speechResults;if(z)a:{var c=[];W=[];var I=!1;z=_.G(z);for(var B=z.next();!B.done;B=z.next()){B=B.value;if(B.noSpeech){x5(M);M.errorHandler("NO_SPEECH");break a}B.transcript!==void 0&&B.stability!==void 0&&(B.stability<M.confidenceThreshold&&(I=!0),I?W.push(B.transcript):c.push(B.transcript))}if(c.length!==0||W.length!==0)c=c.join(" "),W=W.join(" "),M.receivedEndOfUtterance&&!M.isUsingVoz?M.isUsingVoz||
M.completeHandler([c,W]):(I=M,z=c,B=W,S$("voz_sf"),I.transcriptionUpdateHandler(z,B),I.transcribedSpeechResults=[z,B]),M.receivedEndOfUtterance&&(S$("voz_eou"),M.transcriptionCompleteHandler([c,W]),M.isUsingVoz&&(M.prefetchResponseTimeoutMs===0?x5(M,{logMicClosed:!1,handleStop:!0}):M.prefetchResponseTimeoutMs>0&&mqU(M)))}else M.isUsingVoz&&(W==null?0:W.internalOut)?(W=JSON.parse(W.internalOut.youtubeAssistantS3OutputJson),W.userHasOptedInToVaa||W.vaaConsent?M.vaaConsentUpdateHandler(!!W.userHasOptedInToVaa,
!!W.vaaConsent):(vzJ(M),W&&(c=M.transcribedSpeechResults,S$("voz_rqf"),M.completeHandler(c,W)))):W.eventType==="END_OF_UTTERANCE"?M.receivedEndOfUtterance=!0:(S$("voz_err"),M.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.O$(Error("tl")))}}});
_.vK(h.channel,"y",function(g){x5(h);switch(g.status){case 1:g="WEBCHANNEL_NETWORK_ERROR";break;case 2:g="WEBCHANNEL_SERVER_ERROR";break;default:g="WEBCHANNEL_UNKNOWN_ERROR"}h.errorHandler(g);h.logError(Error(g))})};
tK.prototype.logError=function(h){_.$W(h)};
tK.prototype.isOnline=function(){return!0};
var mqU=function(h){vzJ(h);h.prefetchResponseSetTimeoutId=setTimeout(function(){x5(h,{logMicClosed:!1,handleStop:!0})},h.prefetchResponseTimeoutMs)},vzJ=function(h){h.prefetchResponseSetTimeoutId>-1&&(clearTimeout(h.prefetchResponseSetTimeoutId),h.prefetchResponseSetTimeoutId=-1)},DqG=function(h){rYI(h);
h.noResponseReceivedTimeout=window.setTimeout(function(){x5(h);h.errorHandler("NO_SPEECH")},11E3)},rYI=function(h){h.noResponseReceivedTimeout>-1&&(window.clearTimeout(h.noResponseReceivedTimeout),h.noResponseReceivedTimeout=-1)},S$=function(h){_.s7(h,void 0,"voice_assistant")};var wv=function(){tK.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.f(wv,tK);wv.prototype.isSupported=function(){return vPG()};
wv.prototype.startAudio=function(){var h=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.$B(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(Z){H0C(h,Z)};
this.processor.connect(this.audioContext.destination);var E=function(Z){h.stream=Z;if(!h.audioContext)return _.dC(null);Z=h.audioContext.createMediaStreamSource(Z);h.processor&&Z.connect(h.processor);return _.dC(null)},g={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?E(this.stream):(g=navigator.mediaDevices.getUserMedia(g))?g.then(E).catch(function(Z){x5(h);Z.name&&Z.name==="NotAllowedError"?h.errorHandler("NO_MICROPHONE_PERMISSION"):(h.errorHandler("AUDIO_ERROR"),h.logError(Z));return _.$B(null)}):(x5(this),this.errorHandler("AUDIO_ERROR"),_.O$(Error("ul")));
return tK.prototype.startAudio.call(this)};
wv.prototype.stopAudio=function(h){h=h===void 0?!0:h;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(E){E.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;tK.prototype.stopAudio.call(this,h)};
wv.prototype.isOnline=function(){return navigator.onLine};
var H0C=function(h,E){if(h.audioContext)if(window.OfflineAudioContext){var g=h.audioContext.sampleRate,Z=E.inputBuffer.getChannelData(0);E=new window.OfflineAudioContext(1,Z.length,16E3);for(var M=E.createBuffer(1,Z.length,g),W=M.getChannelData(0),z=0,c=0;c<Z.length;c++)W[c]=Z[c],z+=W[c]*W[c];!h.audioDetected&&Math.sqrt(z/Z.length)>.01&&(h.audioDetected=!0,h.audioDetectedHandler());Z=E.createBufferSource();Z.buffer=M;Z.connect(E.destination);Z.start(0);E.oncomplete=function(I){I=I.renderedBuffer.getChannelData(0);
for(var B=Math.floor(16384E3/g),U=new Int16Array(B),L=0;L<B;++L)U[L]=Math.max(-1,Math.min(1,I[L]))*32767;lfU(h,U.buffer)};
E.startRendering()}else $qx(h,E)},$qx=function(h,E){var g=h.audioContext.sampleRate,Z=E.inputBuffer.getChannelData(0),M=Math.floor((g+8E3)/16E3);
g=Z.length/M;E=new Float32Array(g);for(var W=0;W<g;++W)E[W]=Z[W*M];Z=new Int16Array(g);for(M=0;M<g;++M)Z[M]=Math.max(-1,Math.min(1,E[M]))*32767;lfU(h,Z.buffer)};var KtJ={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var O0C=function(){this.JSC$19980_audioEnabled=!0;this.audioFeedbackHolder={}};
O0C.prototype.isPlaying=function(h){return h.currentTime>0&&!h.paused&&!h.ended&&h.readyState>2};
var nzp=function(h){for(var E=_.G(Object.values(KtJ)),g=E.next();!g.done;g=E.next())g=g.value,h.audioFeedbackHolder[g]=new Audio,h.audioFeedbackHolder[g].src="/s/search/audio/"+g+".mp3",h.audioFeedbackHolder[g].load()},Dx=function(h,E){if(h.JSC$19980_audioEnabled!==!1&&E in h.audioFeedbackHolder){for(var g=_.G(Object.values(h.audioFeedbackHolder)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.isPlaying(Z)&&Z.pause();
h.audioFeedbackHolder[E].currentTime=0;h.audioFeedbackHolder[E].play().catch(function(){})}};var X0U=function(h,E){var g=this;this.store=h;this.service=E;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){g.setState("offline");g.stop()};
this.audioPlayer=new O0C;var Z;(Z=this.audioPlayer)==null||nzp(Z)};
_.p=X0U.prototype;_.p.getService=function(){return this.service};
_.p.isEnabled=function(){return!!this.service};
_.p.isSupported=function(){var h;return(h=this.service)==null?void 0:h.isSupported()};
_.p.start=function(){var h=this,E,g,Z,M,W,z,c,I,B,U,L,d,C;return _.a(function(q){switch(q.nextAddress){case 1:h.store.dispatch(izi("",""));if(!navigator.onLine)return h.setState("offline"),q.return();window.addEventListener("offline",h.handleOfflineEvent);h.stream=null;if(!h.permissionsSupported){q.jumpTo(2);break}_.CX(q,3);return q.yield(YVi(h),5);case 5:E=q.yieldResult;if(!E)return(g=h.audioPlayer)==null||Dx(g,"failure"),q.return();h.service.stream=h.stream;h.setState("listening");_.bN(q,2);break;
case 3:_.th(q),h.permissionsSupported=!1;case 2:Z={context:_.q8W(_.cu())},Z.youtubeAssistantParams={searchParams:{inlineSearchResponse:h.enableInlineSearchResponse}},M=function(w,r){h.store.dispatch(oSX("transcribing"));h.store.dispatch(izi(w,r))},W=function(){var w;
(w=h.audioPlayer)==null||Dx(w,"open");h.setState("listening")},z=function(){h.setState("transcribing")},c=function(w){h.setErrorState(w)},I=function(w,r){var v;
(v=h.audioPlayer)==null||Dx(v,"success");r&&(_.J("kevlar_voice_search_inline_search")&&(h.responseProcessor=_.GF().resolve(_.JJz),h.responseProcessor&&(v=r.navigationAction,w=r.prefetchedSearchResponse,v&&w&&(v=(new _.oUG).JSC$13123_getStoreKey(v),_.y8(h.responseProcessor,w,v)))),h.JSC$19998_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",r))},B=function(){window.removeEventListener("offline",h.handleOfflineEvent)},U=_.rkx(!1),L=U.Authorization!=null,d=h.enableFirstPartyAuth||
h.enableFPAForSignedInUsers&&L?U:{"X-Goog-Visitor-Id":U["X-Goog-Visitor-Id"]},C={completeHandler:I,
errorHandler:c,listeningHandler:W,audioDetectedHandler:z,stopHandler:B,transcriptionUpdateHandler:M,youtubeAssistantRequest:Z,languageCode:s_U(),additionalHeaders:d,supportsCrossDomainXhr:h.enableFirstPartyAuth||h.enableFPAForSignedInUsers&&L,supportsHttpHeadersOverwriteParam:!h.disableHttpHeadersOverwrite},h.service.start(C),_.SK(q)}})};
_.p.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.p.reset=function(){this.store.dispatch(_.RY({type:"RESET_VOICE_SEARCH_STATE"}))};
_.p.setState=function(h){this.store.dispatch(oSX(h))};
_.p.setErrorState=function(h){switch(h){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var E;(E=this.audioPlayer)==null||Dx(E,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)YVi(this);else{var g;(g=this.audioPlayer)==null||Dx(g,"failure");this.setState("permission-denied")}break;case "ABORTED":var Z;(Z=this.audioPlayer)==null||Dx(Z,"no_input");break;default:var M;(M=this.audioPlayer)==
null||Dx(M,"no_input");this.setState("timeout")}};
var YVi=function(h){var E,g;return _.a(function(Z){switch(Z.nextAddress){case 1:return Z.yield(navigator.permissions.query({name:"microphone"}),2);case 2:E=Z.yieldResult;if(E.state==="granted")return Z.return(!0);if(E.state==="denied")return h.setState("permission-denied"),Z.return(!1);h.setState("permission");g={audio:{sampleSize:16,channelCount:1},video:!1};_.CX(Z,3);return Z.yield(navigator.mediaDevices.getUserMedia(g),5);case 5:return h.stream=Z.yieldResult,Z.return(!0);case 3:return _.th(Z),
h.setState("permission-denied"),Z.return(!1)}})},s_U=function(){var h=_.nF("INNERTUBE_CONTEXT_HL"),E=_.nF("INNERTUBE_CONTEXT_GL");
return h.indexOf("-")>-1?h:h+"-"+E};var VVX=function(h,E,g){X0U.call(this,E,g);this.JSC$19998_actionRouter=h;this.enableInlineSearchResponse=_.J("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.J("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.J("kevlar_voice_search_enable_fpa_signedin_users")},ki0;
_.f(VVX,X0U);
var yYR=function(){if(!ki0){var h="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.J("kevlar_voice_search_auth_enabled")||_.J("kevlar_voice_search_use_yt_endpoint")?h="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.J("kevlar_voice_search_use_fp_endpoint")&&(h="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ki0=
new VVX(_.Tq.getInstance(),_.Gv(),new wv(_.nF("VOZ_API_KEY"),h,.5))}return ki0};var FtX=function(h){this.JSC$20002_clientRoot=h;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$20002_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)]]));h=_.G(this.eventListeners);for(var E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next()){var M=
_.G(Z.value);Z=M.next().value;M=M.next().value;E.addEventListener(Z,M)}}_.bp(_.Tq.getInstance(),this.autonavPauseActionMap,this.JSC$20002_clientRoot)},AYJ,TS0=function(h){return _.J("kevlar_autonav_popup_filtering")?(h=_.zw(h))?h.hasAttribute("prevent-autonav"):!0:!0};
_.p=FtX.prototype;_.p.onIronOverlayOpened=function(h){TS0(h)&&(this.autonavPauseReasons.overlayOpen=!0,lg(this))};
_.p.onIronOverlayClosed=function(h){TS0(h)&&(this.autonavPauseReasons.overlayOpen=!1,lg(this))};
_.p.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;lg(this)};
_.p.onYtAutonavPauseBlur=function(){var h=this;_.KP.addJob(function(){h.isInBackground()||(h.autonavPauseReasons.inputBoxFocus=!1,lg(h))},8,0)};
_.p.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;lg(this)};
_.p.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;lg(this)};
_.p.onYtAutonavPauseScroll=function(){var h=_.GF().resolve(_.p4);h.isOnWatch()&&(h=h.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=h.getBoundingClientRect().top<-200,lg(this))};
_.p.onYtAutonavPauseUserEngagement=function(h){var E=this;if(_.J("user_engagement_enable_autoplay_pause_feature")){var g=Number(h.lowEngagementThresholdMs);isNaN(g)||g<=0||h.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.GF().resolve(_.DC),_.zq()<g?_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.YHZ()?(this.userEngagementCsn=_.sH(),_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
E.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,lg(this)):_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.H4d(Error("vl`"+JSON.stringify(h)))};
_.p.onYtAutonavPausePlayer=function(h){this.autonavPauseReasons.requestedByPlayer=!!h.detail;lg(this)};
_.p.onYtAutonavVisibilityChanged=function(){var h=this,E,g,Z;return _.a(function(M){if(M.nextAddress==1)return(E=_.zD())?M.yield(E.getPlayerPromise(),2):M.return();g=M.yieldResult;Z=g.isMuted()||g.getVolume()===0;h.autonavPauseReasons.backgroundAndMute=h.isInBackground()&&Z;lg(h);_.SK(M)})};
_.p.onYtAutonavPausePlayerEnded=function(){_.GF().resolve(_.DC);var h=144E5;_.J("user_engagement_enable_autoplay_pause_feature")||_.J("is_part_of_any_user_engagement_experiment")||(h=45E5);this.autonavPauseReasons.longIdle=_.zq()>h;b0J(this);lg(this)};
_.p.onYtUserActivity=function(){var h=this;this.autonavPauseReasons.userEngagement&&(_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",h.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,lg(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",h.userEngagementCsn);_.HT()}),this.autonavPauseReasons.youthereLactExperiment=!1,lg(this));
this.autonavPauseReasons.longIdle&&!_.J("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,lg(this))};
_.p.isInBackground=function(){var h=window.document.visibilityState;return!(!h||h==="visible")};
var lg=function(h){for(var E=!1,g=_.G(Object.values(h.autonavPauseReasons)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,E=E||Z;E?_.q8.getInstance().pause(h.autonavPauseReasons):(h=_.q8.getInstance(),h.autonavState_==3?(h.setState(2,!1,!1),h.autonavPauseReason_=void 0):h.autonavState_==1&&(h.disabledAutonavPauseReason_=void 0))},b0J=function(h){var E=!1;
if(_.J("enable_autoplay_pause_by_lact")){_.GF().resolve(_.DC);E=_.cx("autoplay_pause_by_lact_sec")*1E3;var g=_.cx("autoplay_pause_by_lact_sampling_fraction");(E=_.zq()>=E&&Math.random()<g)&&!_.YHZ()&&(_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),E=!1)}E!==h.autonavPauseReasons.youthereLactExperiment&&(h.autonavPauseReasons.youthereLactExperiment=E)&&(h.userEngagementCsn=_.sH(),_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",h.userEngagementCsn)}));
h.autonavPauseReasons.userEngagement&&_.xW(_.KP,function(){_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",h.userEngagementCsn)})};
FtX.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.nk("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.HT(),this.autonavPauseReasons.youthereLactExperiment=!1,lg(this));this.autonavPauseReasons.userEngagement&&(_.nk("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,lg(this))};
FtX.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var rv=function(){var h=_.D.apply(this,arguments)||this;h.miniGuideVisible=!1;h.guideOpened=_.J("disable_initial_guide_state_fix")?!1:h.canFitPersistentGuide(h.initialBodyClientWidth);h.guideUserStateOpened=h.getInitialGuideUserStateOpened();h.isFullscreenShorts=!1;h.miniGuideWidthThreshold=_.cx("kevlar_mini_guide_width_threshold",791);h.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");h.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");h.persistentGuideBlockedPagePathRegex=new RegExp(h.persistentGuideBlockedPagesPatterns.join("|"));h.animationTransitionDuration=0;h.lateDataResolver=_.hU();h.initialGuideDataFetchFailed=!1;h.initialLoad=!0;h.guideRenderers=new Set;h.isMouseOverGuide=!1;h.sessionUserManuallyExpandedGuideState=!1;h.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return h};
_.f(rv,_.D);_.p=rv.prototype;_.p.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.p.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.p.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.p.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.p.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.p.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.p.ready=function(){_.GF().addProvider({provide:_.RF,useValue:this.hostElement})};
_.p.attached=function(){var h=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.qm(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.qm(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.qm(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.qm(this,this.onYtGuideShow));_.pQ(this,function(){h.animationTransitionDuration=200})};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.qm(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.qm(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.qm(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.qm(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.qm(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.qm(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.qm(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.p.getData=function(){return this.data};
_.p.load=function(){var h=this,E,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=h.lateDataResolver.resolve.bind(h),W.return(h.lateDataResolver.promise);if(window.ytInitialGuideData)return E=_.hU(),E.resolve(window.ytInitialGuideData),W.return(E.promise);Z=!1;_.CX(W,2);return W.yield(h.fetchGuideData(),4);case 4:g=W.yieldResult;_.bN(W,3);break;case 2:M=_.th(W),M.message==="Returned error"&&(Z=
!0);case 3:if(g)return W.return(g);h.onYtGuideClose();Z||(h.initialGuideDataFetchFailed=!0);return W.return(h.lateDataResolver.promise)}})};
_.p.fetchGuideData=function(){var h=this,E,g,Z,M,W,z,c;return _.a(function(I){if(I.nextAddress==1)return E=_.GF(),h.guidePromise||(g=E.resolve(_.yV),h.guidePromise=_.QQ(g,UhG)),I.yield(h.guidePromise,2);if(I.nextAddress!=3)return Z=I.yieldResult,M=E.resolve(_.rn),I.yield(M(),3);(W=I.yieldResult)&&((z=Z)==null?void 0:(c=z.responseContext)==null?void 0:c.maxAgeSeconds)!==0&&W.put("service:guide:fallback",new _.$a({innertubeResponse:Z}));return I.return(Z)})};
_.p.initializeGuideDataIfEmpty=function(){var h=this,E,g;return _.a(function(Z){if(Z.nextAddress==1){if(!h.initialGuideDataFetchFailed||h.data)return Z.return();_.CX(Z,2);return Z.yield(h.fetchGuideData(),4)}if(Z.nextAddress!=2)return(E=Z.yieldResult)&&h.lateDataResolver.resolve(E),_.bN(Z,0);g=_.th(Z);_.O$(g);_.SK(Z)})};
_.p.initializeGuideData=function(){var h=this,E;return _.a(function(g){switch(g.nextAddress){case 1:return _.oe(HZX(),{mainAppWeb:_.ZM()}),_.CX(g,2),g.yield(h.load(),4);case 4:h.data=g.yieldResult;_.bN(g,3);break;case 2:_.th(g),_.Ie(HZX(),"FAILURE");case 3:E=h.data&&h.data.items&&h.data.items.length>0?"SUCCESS":"FAILURE",_.Ie(HZX(),E),_.SK(g)}})};
_.p.setGuideData=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1)return E.disabled?M.return():E.data?(h.data=E.data,E.guideRenderers.add(h),M.return()):M.yield(E.initializeGuideData(),2);E.graftGuideToPage();g=_.Xn("IS_HOMEPAGE_COLD")?"eop":void 0;_.J("disable_element_pool_populator")?E.setGuideDataAfterInit(h):(Z=new _.S1(1,g),_.xl(Z,E.setGuideDataAfterInit.bind(E,h)));_.SK(M)})};
_.p.setGuideDataAfterInit=function(h){h.data=this.data;h.markDirty();this.guideRenderers.add(h);_.hW(function(){_.s7("gle")});
_.pQ(this,function(){_.s7("gpe")})};
_.p.graftGuideToPage=function(){if(this.data){var h=this.data&&this.data.trackingParams;h&&(h=_.rp(h),_.Ht(_.SQ(),h))}};
_.p.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.qm(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.p.onDrawerOpenedChanged=function(h,E){!E.value&&this.guideOpened&&(this.guideOpened=!1)};
_.p.onYtGuideToggle=function(h){var E=this.guideOpened;this.guideOpened=!E;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var g=_.xe();_.wC(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;g.save()}this.updateGuideDrawerElementState();if(this.guideElement){var Z;this.guideOpened&&((Z=h.detail)==null?0:Z.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.qm(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.qm(this,this.onAppDrawerTransitioned))}E||this.initializeGuideDataIfEmpty()};
_.p.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qm(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.E$(this.guideElement)};
_.p.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qm(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(aE0(this.guideOpened))};
_.p.guidePersistentAndVisibleChanged=function(){_.U7(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.p.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.RY({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.p.miniGuideVisibleChanged=function(){_.U7(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.p.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(aE0(this.guideOpened)),this.initialLoad=!1);_.U7(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.p.activeEndpointChanged=function(){_.U7(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.p.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.p.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.p.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var h=this.canFitPersistentGuide(this.cachedClientWidth);h?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=h}this.updateGuideDrawerElementState()};
_.p.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.p.getGuideOpened=function(){return this.guideOpened};
_.p.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.p.getActiveEndpoint=function(){return this.activeEndpoint};
_.p.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.p.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.Ra(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.p.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.J("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.p.handleGuideMouseLeave=function(){var h=this;!this.sessionUserManuallyExpandedGuideState&&_.J("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.EQ(this,"handleGuideMouseLeave",function(){h.isMouseOverGuide||!h.guideOpened||h.miniGuideVisible||(h.guideOpened=!1,h.updateGuideDrawerElementState())},100))};
_.p.computeGuidePersistentAndVisible=function(){var h=this;_.EQ(this,"computeGuidePersistentAndVisible",function(){h.guidePersistentAndVisible=h.guideOpened&&h.guidePersistent;h.guideIsVisibleButNotPersistent=!(!h.guideOpened||h.guidePersistent)})};
_.p.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.p.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.p.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.p.startLoadingWatch=function(){this.closeGuide()};
_.p.startLoadingShorts=function(){_.J("web_hide_guide_on_shorts")&&this.closeGuide()};
_.p.onYtNavigateFinish=function(h,E){if(!_.IV||E){this.activeEndpoint=E.endpoint;this.pageType=E.pageType;this.pageUrl=E.response.url;var g,Z;h=(Z=_.e((g=E.endpoint)==null?void 0:g.commandMetadata,_.qH))==null?void 0:Z.url;!this.pageUrl&&h&&(this.pageUrl=h);_.J("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.p.getVisibleGuideRenderer=function(){for(var h=_.G(this.guideRenderers),E=h.next();!E.done;E=h.next())if(E=E.value,this.miniGuideVisible&&E.is==="ytd-mini-guide-renderer"||this.guideOpened&&E.is==="ytd-guide-renderer")return E;return null};
_.p.markGuideRendererDirty=function(h){if(h){typeof h.markDirty==="function"&&h.markDirty();h=_.G([].concat(_.$E(_.UB(h).children)));for(var E=h.next();!E.done;E=h.next())this.markGuideRendererDirty(E.value)}};
_.p.persistentGuideEnabled=function(h,E){if(!E||h==="watch"||h==="settings"||h==="shorts"&&this.isFullscreenShorts||_.J("reels_web_disable_persistent_guide_shorts")&&h==="shorts")return!1;var g=_.jy(E)||"";return _.J("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(Z){return g===Z}):!this.persistentGuideBlockedPagePathRegex.test(g)};
_.p.canFitPersistentGuide=function(h){var E=_.cx("kevlar_persistent_guide_width_threshold",1312);return E===-1||_.J("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:h>E};
_.p.canFitMiniGuide=function(h){return this.miniGuideWidthThreshold===-1?!1:h>this.miniGuideWidthThreshold};
_.p.onResize=function(){var h=this;_.EQ(this,"calculateGuideState",function(){h.onResizeDebounced()})};
_.p.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.p.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.p.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.p.getInitialGuideUserStateOpened=function(){return _.J("web_force_mini_guide_default")?!1:!_.xe().getFlag(109)};
_.ze.Object.defineProperties(rv.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.nF("initialBodyClientWidth")||window.innerWidth}}});
rv.prototype.onResize=rv.prototype.onResize;rv.prototype.observeForMiniGuideVisible=rv.prototype.observeForMiniGuideVisible;rv.prototype.computeGuidePersistentAndVisible=rv.prototype.computeGuidePersistentAndVisible;rv.prototype.cachedClientWidthChanged=rv.prototype.cachedClientWidthChanged;rv.prototype.resetGuide=rv.prototype.resetGuide;rv.prototype.activeEndpointChanged=rv.prototype.activeEndpointChanged;rv.prototype.guideOpenedChanged=rv.prototype.guideOpenedChanged;
rv.prototype.miniGuideVisibleChanged=rv.prototype.miniGuideVisibleChanged;rv.prototype.guideIsVisibleButNotPersistentChanged=rv.prototype.guideIsVisibleButNotPersistentChanged;rv.prototype.guidePersistentAndVisibleChanged=rv.prototype.guidePersistentAndVisibleChanged;rv.prototype.onGuideElementChanged=rv.prototype.onGuideElementChanged;rv.prototype.onGuidePersistentChanged=rv.prototype.onGuidePersistentChanged;rv.prototype.onRenderGuideChanged=rv.prototype.onRenderGuideChanged;
rv.prototype.onActiveEndpointChanged=rv.prototype.onActiveEndpointChanged;rv.prototype.onMiniGuideVisibleChanged=rv.prototype.onMiniGuideVisibleChanged;rv.prototype.onGuideIsVisibleButNotPersistentChanged=rv.prototype.onGuideIsVisibleButNotPersistentChanged;rv.prototype.onGuidePersistendAndVisibleChanged=rv.prototype.onGuidePersistendAndVisibleChanged;_.Y([_.t(_.F3),_.V("design:type",Object)],rv.prototype,"ironResizableBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],rv.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],rv.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],rv.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"disabled",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"guidePersistentAndVisible",void 0);_.Y([_.Nm("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onGuidePersistendAndVisibleChanged",null);_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Y([_.Nm("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"miniGuideVisible",void 0);_.Y([_.Nm("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onMiniGuideVisibleChanged",null);_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"forceMiniGuideClose",void 0);
_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"activeEndpoint",void 0);_.Y([_.Nm("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onActiveEndpointChanged",null);_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"renderGuide",void 0);_.Y([_.Nm("renderGuide"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onRenderGuideChanged",null);
_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"guideOpened",void 0);_.Y([_.x(),_.V("design:type",Boolean)],rv.prototype,"guidePersistent",void 0);_.Y([_.Nm("guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onGuidePersistentChanged",null);_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"guideUserStateOpened",void 0);_.Y([_.x(),_.V("design:type",String)],rv.prototype,"pageUrl",void 0);
_.Y([_.x(),_.V("design:type",String)],rv.prototype,"pageType",void 0);_.Y([_.x(),_.V("design:type",Number)],rv.prototype,"cachedClientWidth",void 0);_.Y([_.x(),_.V("design:type",Object)],rv.prototype,"guideElement",void 0);_.Y([_.x({selector:_.cg}),_.V("design:type",Object)],rv.prototype,"isFullscreenShorts",void 0);_.Y([_.Nm("guideElement"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onGuideElementChanged",null);
_.Y([_.Nm("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"guidePersistentAndVisibleChanged",null);_.Y([_.lq("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.Y([_.Nm("miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"miniGuideVisibleChanged",null);_.Y([_.lq("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"guideOpenedChanged",null);_.Y([_.Nm("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"activeEndpointChanged",null);
_.Y([_.lq("pageUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"resetGuide",null);_.Y([_.lq("cachedClientWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"cachedClientWidthChanged",null);_.Y([_.Nm("guideOpened","guidePersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"computeGuidePersistentAndVisible",null);
_.Y([_.lq("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"observeForMiniGuideVisible",null);_.Y([_.f3("iron-resize"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],rv.prototype,"onResize",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-guide-manager"})],rv);var u_U=_.X(rv,"yt-guide-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var mv=function(){var h=_.D.apply(this,arguments)||this;h.JSC$20012_keyboardInUse=!1;h.boundHandleCapturedKeydownEvent=function(E){h.handleCapturedKeydownEvent(E)};
return h};
_.f(mv,_.D);_.p=mv.prototype;_.p.attached=function(){this.listenToDocument(document)};
_.p.listenToDocument=function(h){h.addEventListener("keydown",_.qm(this,this.onKeyDownEvent));h.addEventListener("keyup",_.qm(this,this.onKeyUpEvent));h.addEventListener("mousedown",_.qm(this,this.onMouseDownEvent));_.J("desktop_keyboard_capture_keydown_killswitch")||h.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);h.addEventListener("yt-page-data-updated",_.qm(this,this.onPageUpdate))};
_.p.detached=function(){this.unlistenFromDocument(document)};
_.p.unlistenFromDocument=function(h){h.removeEventListener("keydown",_.qm(this,this.onKeyDownEvent));h.removeEventListener("keyup",_.qm(this,this.onKeyUpEvent));h.removeEventListener("mousedown",_.qm(this,this.onMouseDownEvent));_.J("desktop_keyboard_capture_keydown_killswitch")||h.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);h.removeEventListener("yt-page-data-updated",_.qm(this,this.onPageUpdate))};
_.p.ready=function(){_.GF().addProvider({provide:_.DX,useValue:this})};
_.p.isKeyBoardInUse=function(){return this.JSC$20012_keyboardInUse};
_.p.handleCapturedKeydownEvent=function(h){if(h.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(h)};
_.p.onMouseDownEvent=function(){this.JSC$20012_keyboardInUse=!1};
_.p.onPageUpdate=function(){if(_.J("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.J("web_shorts_keyboard_shortcut_usage_log")){_.kt.clear();for(var h=_.G(_.sd),E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;g=_.Uz(g);_.kt.set(E,g);_.uw(_.sH(),_.YN(),g)}_.y4.clear();h=_.G(_.V4);for(E=h.next();!E.done;E=h.next())g=_.G(E.value),E=g.next().value,g=g.next().value,g=_.Uz(g),_.y4.set(E,g),_.uw(_.sH(),_.YN(),g);_.Qp(_.sH(),_.YN(),[].concat(_.$E(_.y4.values()),
_.$E(_.kt.values())));_.Eo(_.sH(),[].concat(_.$E(_.y4.values()),_.$E(_.kt.values())))}};
_.p.onMiniplayerActiveChange=function(){var h;(h=_.GF().resolve(_.Yu).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(h.document):this.unlistenFromDocument(h.document))};
_.p.ignoreKeyEvent=function(h){if(h.ctrlKey||h.altKey)if(_.J("kevlar_macro_markers_keyboard_shortcut")){if(h.keyCode!==37&&h.keyCode!==39)return!0}else return!0;var E=_.Gw(h)||[];return _.keJ(E)?(_.J("web_button_or_anchor_list_item")&&ppi(E,h)&&(this.JSC$20012_keyboardInUse=!0),!0):h.defaultPrevented?(cS(h.keyCode,h.shiftKey,this.isShortsPage),!0):h.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(h):!1};
_.p.isSpacebarClick=function(h){var E=h||window.event;var g;E.composedPath&&typeof E.composedPath==="function"?g=E.composedPath():g=E.path;g&&g.length?E=g[0]:(E=E||window.event,E=E.target||E.srcElement,E.nodeType==3&&(E=E.parentNode));return E&&h.keyCode===32&&(h=E.tagName==="BUTTON"||E.tagName==="A"||E.tagName==="INPUT",E=(E=E.getAttribute("role"))&&(E==="option"||E==="button"||E.indexOf("menuitem")===0),h||E)?!0:!1};
_.p.onKeyDownEvent=function(h){if(!this.ignoreKeyEvent(h)&&(h.keyCode===191&&(h.shiftKey||h.metaKey?h.repeat!=null&&h.repeat||(this.openHotkeyDialog(),cS(h.keyCode,h.shiftKey,this.isShortsPage)):(this.focusSearchBox(),h.preventDefault())),!h.metaKey)){var E=_.GF().resolve(_.Yu);switch(h.keyCode){case 9:this.JSC$20012_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(h);break;case 84:E.pipController.getWindow()&&window.focus();this.toggleTheaterMode(h.keyCode,h.shiftKey);break;case 73:E.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(h.keyCode,h.shiftKey);break;case 70:if(this.isShortsPage&&_.J("web_fullscreen_shorts")){_.yQR();break}this.isMiniplayerActive()?E.pipController.getWindow()&&(E.close(!0),window.focus()):this.passEventToPlayer(h);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(h.keyCode,h.shiftKey):this.closeMiniplayer(h.keyCode,h.shiftKey)||this.passEventToPlayer(h);break;case 13:h.shiftKey&&_.GF().resolve(_.gm).activate(h);break;default:this.passEventToPlayer(h)}}};
_.p.onKeyUpEvent=function(h){if(!this.ignoreKeyEvent(h))if(_.J("web_speedmaster_spacebar_control")&&h.keyCode===32)this.handlePlayerSpaceKey(h,!0);else{var E=this.getPlayerManager();E&&(E=E.getPlayer())&&E.handleGlobalKeyUp(h.keyCode,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code)}};
_.p.getPlayerManager=function(){var h=_.zD(),E=_.GF().resolve(_.pl(_.p4));return h&&E&&E.isOnWatch()?h:null};
_.p.passEventToPlayer=function(h,E){var g=this,Z,M,W,z;return _.a(function(c){if(c.nextAddress==1){if(!_.J("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&g.isMiniplayerActive())Z=_.GF().resolve(_.Yu).getPlayerElement();else if(g.inlinePreviewIsActive){if(M=_.U7(g.hostElement,"yt-get-inline-preview-player-action"),(W=M)==null?0:W[0])Z=M[0]}else Z=_.zD();return Z?c.yield(Z.getPlayerPromise(),3):c.jumpTo(0)}z=c.yieldResult;E?z.handleGlobalKeyUp(h.keyCode,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,
h.key,h.code):z.handleGlobalKeyDown(h.keyCode,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code,h.repeat);h.keyCode!==38&&h.keyCode!==40&&cS(h.keyCode,h.shiftKey,g.isShortsPage);_.SK(c)})};
_.p.focusSearchBox=function(){_.Ra(this.hostElement,"yt-focus-searchbox")};
_.p.openHotkeyDialog=function(){_.Ra(this.hostElement,"yt-open-hotkey-dialog")};
_.p.isMiniplayerActive=function(){return _.GF().resolve(_.Yu).isMiniplayerActive()};
_.p.closeMiniplayer=function(h,E){return this.isMiniplayerActive()?(_.GF().resolve(_.Yu).close(),cS(h,E,this.isShortsPage),!0):!1};
_.p.toggleTheaterMode=function(h,E){var g=_.XN(_.Gv().getState()),Z=this.getPlayerManager(),M=_.J("disable_theater_mode_keyboard")||_.Xn("START_IN_FULL_WINDOW_MODE");Z&&!M&&(g=!g,_.cX()&&_.J("external_fullscreen")&&(g=!0),_.BX(this.hostElement,"yt-toggle-theater-mode",[g]),cS(h,E,this.isShortsPage))};
_.p.toggleMiniplayer=function(h,E){var g=this.getPlayerManager();if(this.isMiniplayerActive()){var Z;((Z=_.GF().resolve(_.pl(_.p4)))==null?0:Z.isOnWatch())?_.GF().resolve(_.Yu).close(!0):_.ii(_.GF().resolve(_.Yu));cS(h,E,this.isShortsPage)}else g&&(_.BX(this.hostElement,"yt-activate-miniplayer-from-watch-action"),cS(h,E,this.isShortsPage))};
_.p.handlePlayerSpaceKey=function(h,E){var g=!!_.zD()||this.isMiniplayerActive();g=_.J("disable_space_scroll_fix")||g;_.J("global_spacebar_pause")&&!this.isKeyBoardInUse()&&g&&(h.preventDefault(),this.passEventToPlayer(h,E))};
_.p.isPresentingTheaterMode=function(){return _.J("web_watch_enable_tm_esc_key")?_.XN(_.Gv().getState())&&!_.cX():!1};
mv.prototype.onMiniplayerActiveChange=mv.prototype.onMiniplayerActiveChange;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],mv.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);_.Y([_.x({selector:_.pZ4}),_.V("design:type",Boolean)],mv.prototype,"inlinePreviewIsActive",void 0);_.Y([_.x({selector:_.P2d}),_.V("design:type",Boolean)],mv.prototype,"isShortsPage",void 0);
_.Y([_.x({selector:_.so}),_.V("design:type",Boolean)],mv.prototype,"miniplayerIsActive",void 0);_.Y([_.Nm("miniplayerIsActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],mv.prototype,"onMiniplayerActiveChange",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-hotkey-manager"})],mv);_.X(mv,"yt-hotkey-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var vz=function(){var h=_.D.apply(this,arguments)||this;h.loopStateEntityKey_=null;h.playlistLoopStateEntity_=null;h.isShuffleNextPlaylist=!1;h.PLAYER_EVENTS_=new Map;h.playerListenersSetup_=!1;h.videoSkipJob_=0;h.canAutoAdvance_=!1;h.playerManager_=null;h.TEST_ONLY={};return h};
_.f(vz,_.D);_.p=vz.prototype;_.p.ready=function(){_.GF().addProvider({provide:_.oS,useValue:this.hostElement})};
_.p.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.p.attached=function(){document.addEventListener("yt-navigate-start",_.qm(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.qm(this,this.onYtNavigateFinish_))};
_.p.detached=function(){document.removeEventListener("yt-navigate-start",_.qm(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.qm(this,this.onYtNavigateFinish_))};
_.p.updatePlaylistEventListeners=function(h,E){E&&!this.playerListenersSetup_?(this.playerManager_=h,this.registerPlaylistEventListeners_(h)):!E&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(h))};
_.p.setPlayer=function(h){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=h};
_.p.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.p.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.p.registerPlaylistEventListeners_=function(h){var E=this;h.getPlayerPromise().then(function(g){E.playerListenersSetup_||(E.ytPlayerListenerBehavior.listenToPlayerEvents(g,E.PLAYER_EVENTS_),E.playerListenersSetup_=!0)})};
_.p.removePlaylistEventListeners_=function(h){var E=this;h.getPlayerPromise().then(function(g){E.playerListenersSetup_&&(E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(g,E.PLAYER_EVENTS_),E.playerListenersSetup_=!1)})};
_.p.setPlaylistComponent=function(h){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.qm(this,this.onPlaylistYtNavigate_)),h&&(h.data&&this.playlistComponent.data&&h.data.playlistId==this.playlistComponent.data.playlistId?(h.loopOn=this.playlistComponent.loopOn,h.shuffleOn=this.playlistComponent.shuffleOn):(h.loopOn=!1,h.shuffleOn=!1),this.isShuffleNextPlaylist&&(h.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=h;this.playlistComponent.addEventListener("yt-navigate",
_.qm(this,this.onPlaylistYtNavigate_))};
_.p.setAutoplayRenderer=function(h){this.autoplayData=h};
_.p.setPlaylistData=function(h){this.currentPlaylistData_=h;_.Ra(this.hostElement,"yt-playlist-data-updated");_.Kt.isEmpty(h)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(h)};
_.p.setPlayerPlaybackControlData=function(h){this.playerManager_&&this.playerManager_.updatePlayerComponents(h.playlistPanelRenderer)};
_.p.getPlaylistData=function(){return this.currentPlaylistData_};
_.p.getTempData_=function(h,E){if(this.playlistComponent==null)return null;h={};this.playlistComponent.shuffleOn&&(h.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(h.loop_on=this.playlistComponent.loopOn);E&&(h.autonav="1",_.GF().resolve(_.DC),E=_.zq(),E>0&&(h.lact=E),this.playerManager_&&(E=this.playerManager_.getPlayer())&&E.shouldSendVisibilityState()&&(E=E.getVisibilityState(),E!=0&&(h.vis=E)));_.J("enable_unknown_lact_fix_on_html5")&&(_.GF().resolve(_.DC),h.lact=
_.zq());return h};
_.p.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.p.setLoopStateEntityKey_=function(h){var E;this.loopStateEntityKey_=((E=this.getPlaylistLoopData_(h))==null?void 0:E.playlistLoopStateEntityKey)||null};
_.p.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.p.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.p.skipVideo=function(){var h=this,E=_.J("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||E)E=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.lv(_.KP,function(){h.onPlaylistNext();h.videoSkipJob_=0},E)};
_.p.cancelVideoSkip=function(){this.videoSkipJob_&&(_.KP.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.p.isInBackground_=function(){var h=window.document.visibilityState;return!(!h||h=="visible")};
_.p.onPlaylistIndex_=function(h){this.playlistComponent&&(h=this.playlistComponent.data.contents[h].playlistPanelVideoRenderer.navigationEndpoint,_.Ra(this.hostElement,"yt-navigate",{endpoint:h,tempData:this.getTempData_(h)}))};
_.p.onPlayerStateChange_=function(h){if(h=h==0&&this.playlistComponent&&this.canAutoAdvance_)h=_.q8.getInstance(),h=!(h.autonavState_===3?h.autonavPauseReason_&&h.autonavPauseReason_.inputBoxFocus===!0:h.autonavState_===1&&h.disabledAutonavPauseReason_&&h.disabledAutonavPauseReason_.inputBoxFocus===!0);h&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.p.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.p.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.p.navigateToAutoplayWatchEndpoint_=function(h,E,g){var Z=this.playlistComponent.data.currentIndex,M=this.getNumPlayableVideos_();h=="NORMAL"&&E=="autoplayVideo"&&Z+1>=M&&g||!(h=this.getVideoEndpoint_(h,E))||(g=this.getTempData_(h,g),_.Ra(this.hostElement,"yt-navigate",{endpoint:h,tempData:g}))};
_.p.getNumPlayableVideos_=function(){for(var h=0,E=_.G(this.playlistComponent.data.contents||[]),g=E.next();!g.done;g=E.next())g.value.playlistPanelVideoRenderer&&(h+=1);return h};
_.p.getVideoEndpoint_=function(h,E){if(this.autoplayData&&this.autoplayData.sets)for(var g=0,Z=this.autoplayData.sets.length;g<Z;g++){var M=this.autoplayData.sets[g];if(M.mode==h){if(M[E])return M[E];break}}else h=new _.xX("AutoplayData is undefined in playlist manager","Mode: "+h+" endpoint: "+E),_.O$(h)};
_.p.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.p.onPlaylistYtNavigate_=function(h){if(h.detail.endpoint){h.stopPropagation();var E=h.detail;E.tempData=this.getTempData_(h.detail.endpoint);_.Ra(this.hostElement,"yt-navigate",E)}};
_.p.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.p.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.p.playlistLoopStateEntityChanged_=function(h){var E=this,g,Z,M;return _.a(function(W){if(W.nextAddress==1){if(!h)return W.return();g=h.state==="PLAYLIST_LOOP_STATE_ONE";return E.playerManager_?W.yield(E.playerManager_.getPlayerPromise(),3):W.jumpTo(2)}W.nextAddress!=2&&(Z=W.yieldResult,Z.setLoopVideo(g));M=h.state==="PLAYLIST_LOOP_STATE_ALL";E.playlistComponent&&(E.playlistComponent.loopOn=M);_.SK(W)})};
_.p.getPlaylistLoopData_=function(h){var E,g;if(h=h==null?void 0:(E=h.playlistButtons)==null?void 0:(g=E.menuRenderer)==null?void 0:g.topLevelButtons)for(E=_.G(h),g=E.next();!g.done;g=E.next())if(g=g.value,g.playlistLoopButtonRenderer)return g.playlistLoopButtonRenderer};
_.p.getLoopStateCommand_=function(h){var E=this.getPlaylistData(),g;E=((g=this.getPlaylistLoopData_(E))==null?void 0:g.states)||[];var Z;h=(Z=_.e(E[h?1:2],_.hem))==null?void 0:Z.button;var M;return(M=_.e(h,_.Gh))==null?void 0:M.command};
_.p.onPlayerLoopChange_=function(h){this.playlistLoopStateEntity_&&(h?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(h=this.getLoopStateCommand_(h))&&this.ytComponentBehavior.resolveCommand(h)};
_.p.onSleepTimerSettingsChanged_=function(h){this.canAutoAdvance_=h!=="End of video"};
vz.prototype.onPlaylistLoopStateEntityChanged=vz.prototype.onPlaylistLoopStateEntityChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],vz.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.dM.YtPlayerListenerBehavior),_.V("design:type",_.CV)],vz.prototype,"ytPlayerListenerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],vz.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vz.prototype,"loopStateEntityKey_",void 0);
_.Y([_.x({selectorArgs:["loopStateEntityKey_"],selector:_.isa}),_.V("design:type",Object)],vz.prototype,"playlistLoopStateEntity_",void 0);_.Y([_.Nm("playlistLoopStateEntity_"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vz.prototype,"onPlaylistLoopStateEntityChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"yt-playlist-manager"})],vz);_.X(vz,"yt-playlist-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var Q_R,hWp=function(){if(Q_R!==void 0)return Q_R;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Q_R=h};var Hz=function(){var h=_.D.apply(this,arguments)||this;h.lastCallback=null;h.getAccountLinkPromises={};h.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);h.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return h};
_.f(Hz,_.D);_.p=Hz.prototype;_.p.getLocation=function(){return window.location.href};
_.p.getCompletionUrl=function(){return _.GG(this.getLocation())};
_.p.containsRedirectState=function(h){return(h=_.S6(_.nOV(h)))?(new URLSearchParams(h)).get("redirect_state")!==null:!1};
_.p.createGalConfig=function(h,E){var g=new DgG;h=g=E?this.getPopupOrRedirectSetting(g,_.nF("LINK_API_KEY"),_.nF("LINK_API_KEY_REDIRECT"),h):lDJ(g,_.nF("LINK_API_KEY"));h.authUser=_.nF("SESSION_INDEX")||0;h.supportedFlows=new Set([4]);return h.build()};
_.p.getPopupOrRedirectSetting=function(h,E,g,Z){this.isGalInteractionPopupMode(Z)?(h.interactionMode=0,h=lDJ(h,E)):(h.interactionMode=1,E=this.getCompletionUrl(),h.completionUrl=E,h=lDJ(h,g));return h};
_.p.isGalInteractionPopupMode=function(h){if(this.redirectModeProviderAllowlist.has(h))switch(h){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.p.getStatusEntityKeyForProviderId=function(h){return _.jD(h+":all","accountLinkStatusEntity")};
_.p.findNestedPropValue=function(h,E){var g=!1,Z=null;JSON.stringify(h,function(M,W){g||M!==E||(g=!0,Z=W);return g?null:W});
return Z};
_.p.findAccountLinkButtonViewModel=function(h,E){var g=null,Z=!1;JSON.stringify(h,function(M,W){Z||W.accountLinkStatusEntityKey!==E||W.accountLinkStatusSecondaryEntityKey||(Z=!0,g=W);return Z?null:W});
return g};
_.p.executeLinkingSuccessOrFailureCommands=function(h,E,g){var Z=null,M;(E==null?0:(M=E.url)==null?0:M.includes("account_sharing"))?Z=E==null?void 0:E.response:Z=E==null?void 0:E.response;(E=this.findAccountLinkButtonViewModel(Z,h))?(h=g?this.findNestedPropValue(E,"onSuccessCommand"):this.findNestedPropValue(E,"onFailureCommand"))?_.JT([h],this.hostElement):_.Fn(Error("wl")):_.Fn(Error("xl`"+h))};
_.p.handleInitializeRequest=function(h,E){var g=this,Z=MgC(this.createGalConfig(h,!0));this.containsRedirectState(this.getLocation())?Qtp(h,Z.config,Z.galService).then(function(M){var W=g.getStatusEntityKeyForProviderId(h);if(M.statusCode===1)E&&g.executeLinkingSuccessOrFailureCommands(W,E,!0),M=g.getLocation().indexOf("#"),M!==-1&&window.history.pushState(null,"",g.getLocation().substring(0,M));else return E&&g.executeLinkingSuccessOrFailureCommands(W,E,!1),Promise.reject(Error(M.statusMessage))}).catch(function(M){_.O$(M);
_.vT("gamingAccountLinkStatusChanged",{serviceId:h,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(M)}):this.getAccountLinkPromises[h]=Z.startLinkingSession({serviceId:h})};
_.p.handleAccountLinkCommand=function(h){_.e(h,LlU)&&this.handleLinkRequest(_.e(h,LlU))};
_.p.handleLinkRequest=function(h){var E=this,g=h.thirdPartyId;if(g)if(this.isGalInteractionPopupMode(g)){var Z=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",h.onFailureCommand)},M=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",h.onSuccessCommand)};
this.lastCallback=M;this.getAccountLinkPromises[g].then(function(W){irx(W).then(function(z){z.statusCode===1?M():Z()})}).catch(function(){Z()})}else this.getAccountLinkPromises[g].then(function(W){irx(W).then(function(z){if(z.statusCode!==1)return Promise.reject(Error(z.statusMessage))})}).catch(function(W){_.O$(W);
_.vT("gamingAccountLinkStatusChanged",{serviceId:g,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(W)})};
_.p.closeAndFire=function(h,E){_.BX(this.hostElement,"yt-close-popup-action",[h]);E&&_.JT([E],this.hostElement)};
_.p.handleAccountUnlinkCommand=function(h){_.e(h,jqc)&&this.handleUnlinkRequest(_.e(h,jqc))};
_.p.handleUnlinkRequest=function(h){var E=this,g=h.thirdPartyId;if(g){var Z=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",h.onFailureCommand)},M=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",h.onSuccessCommand)};
this.lastCallback=M;var W=MgC(this.createGalConfig(g,!1));this.unlinkUserGal(W,g).then(function(z){z.statusCode===1?M():Z()}).catch(function(){Z()})}};
_.p.unlinkUserGal=function(h,E){return h.deleteLink(E)};
_.p.handleLogAccountLinkingEventCommand=function(h){_.J("enable_gel_log_commands")&&_.e(h,dyZ)&&(h=_.e(h,dyZ).event)&&_.vT("gamingAccountLinkStatusChanged",h)};
_.ze.Object.defineProperties(Hz,{template:{configurable:!0,enumerable:!0,get:function(){return hWp()}}});
_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],Hz.prototype,"ytOpenPopupBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Hz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Hz);_.X(Hz,"ytd-third-party-manager",function(){return hWp()},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var E_x,g_X=function(){if(E_x!==void 0)return E_x;var h=document.createElement("template");_.N(h,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return E_x=h};var $5=function(){var h=_.D.apply(this,arguments)||this;h.currentPage=void 0;h.renderLoadingStateJobId=0;h.updatePageDataJobId=0;h.pageDisposeJobsets=new WeakMap;h.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"};h.shouldApplyLockupToWatchTransition=_.J("web_thumbnail_to_watch_transition");h.shouldApplySlideTransition=_.iN("web_page_transition_type")==="slide"||_.J("enable_plj_landing_page");h.shouldApplyLearningJourneyTransition=_.J("enable_plj_landing_page");h.TEST_ONLY=void 0;return h};
_.f($5,_.D);_.p=$5.prototype;_.p.ready=function(){var h=_.GF();h.addProvider({provide:_.p4,useValue:this});h.addProvider({provide:_.evD,useValue:this})};
_.p.created=function(){this.pagePool=new tVC;this.contextSwitcher=new XPC};
_.p.attached=function(){_.Ra(this.hostElement,"attached");var h=_.GF().resolve(_.pl(_.kY));h&&(this.contextSwitcher.JSC$19837_networkService_=h);this.viewTransitionManager=_.GF().resolve(_.Vr)};
_.p.getPageOffset=function(h){return h.getScrollTop()};
_.p.setPageOffset=function(h,E){try{h.setScrollTop(E)}catch(g){}};
_.p.setPageOffsetForNavigation=function(h,E){_.Ra(this.hostElement,"yt-navigate-set-page-offset",{page:h,offset:E===void 0?0:E})};
_.p.pauseActiveContext=function(){var h=this.contextSwitcher;h.activeContext_&&h.activeContext_.pause()};
_.p.getModuleNameForType=function(h){return h==="watch"?_.J("kevlar_watch_fixie")?"watchFixie":_.J("kevlar_watch_grid")?"watchGrid":"watchFlexy":h==="shorts"||h==="search"?h:"browse"};
_.p.attachPage=function(h){var E,g=!_.J("pc_is_attached_ks")&&(h==null?void 0:(E=h.polymerController)==null?void 0:E.isAttached);if(!h.isAttached&&!g)try{_.UB(this.hostElement).appendChild(h)}catch(M){var Z;_.O$(new _.xX("Error attaching page element for component",{origin:(Z=this.currentPage)==null?void 0:Z.is,component:h.is}))}};
_.p.setActivePage=function(h,E){var g=this,Z=!1,M=function(){var W=g.isOnWatch(),z=g.currentPage;if(h)if(h!==g.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));g.currentPage=h;var c,I=E!=null?E:_.fm((c=g.data)==null?void 0:c.endpoint);z&&_.Ra(g.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:h.is,newPageSubtype:I});_.pL().dispatch(_.RY({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:h.is}));_.pL().dispatch(_.RY({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:I||""}));
h.hidden=!1;g.attachPage(h);h.active=!0;h.setAttribute("role","main");z&&g.setPageOffsetForNavigation(h,0);_.J("kevlar_remove_page_dom_on_switch")&&!W&&z&&_.UB(g.hostElement).removeChild(z)}else Z=!0;else g.handleMissingDestinationPage(z)};
this.shouldRunBrowseTransition(this.currentPage,h)?rs0(this.viewTransitionManager,M):this.shouldRunLearningJourneyTransition(this.currentPage,h)?HWU(this.viewTransitionManager,M):M();return Z};
_.p.handleMissingDestinationPage=function(h){if(this.isColdLoadForUnknownPage(h))_.O$(new _.xX("Cold load for unknown page"));else{var E;h=new _.xX("Unable to set active page",h?h.is:"unknown origin",(E=this.data)==null?void 0:E.endpoint);_.$W(h)}};
_.p.isColdLoadForUnknownPage=function(h){return!h&&Q4(this.data)==="unknown"};
_.p.shouldRunBrowseTransition=function(h,E){return this.shouldApplySlideTransition&&(h==null?void 0:h.is)==="ytd-browse"&&(E==null?void 0:E.is)==="ytd-browse"&&h!==E};
_.p.shouldRunLearningJourneyTransition=function(h,E){return this.shouldApplyLearningJourneyTransition&&(h==null?void 0:h.is)==="ytd-browse"&&((E==null?void 0:E.is)==="ytd-watch-learning-journey"||(E==null?void 0:E.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.p.shouldRunWatchNextLoadedTransition=function(h,E){return this.viewTransitionManager&&h.is==="ytd-watch-flexy"&&E};
_.p.updatePageData=function(h){var E=this,g=this.data;this.updatePageDataJobId&&_.KP.cancelJob(this.updatePageDataJobId);this.data=h;return new _.jM(function(Z){var M=function(){h.filler?E.performDataUpdate(h,g):seR(function(){E.performDataUpdate(h,g)});
var I=_.RS();_.PZ(I,"cr")||I.processSignal("cr");Z()},W=function(){h&&h.page==="watch"?E.updatePageDataJobId=_.lv(_.KP,M):M()};
if(_.J("kevlar_enable_mss_page_modules_client")&&h){var z=_.GF().resolve(_.V8),c=E.getModuleNameForType(h.page);(z=DvC(z,[c]))?z.then(W):W()}else W()})};
_.p.isDownloadsPage=function(h){var E,g;return(h==null?void 0:(E=h.endpoint)==null?void 0:(g=E.browseEndpoint)==null?void 0:g.browseId)==="FEdownloads"};
_.p.setPlayerSyncInterval=function(h){var E;return _.a(function(g){if(g.nextAddress==1)return g.yield(_.GF().resolve(_.IJ),2);E=g.yieldResult;E.setUpPositionSyncInterval(h);_.SK(g)})};
_.p.performDataUpdate=function(h,E){_.J("kevlar_early_popup_close")||_.BX(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var g=!h.filler;g&&(_.s7("lps"),_.J("config_age_report_killswitch")||Uwp());var Z=Q4(h),M,W=!1;if(_.J("kevlar_remove_page_dom_on_switch")){var z=E&&Q4(E);Z===z&&(M=this.getCurrentPage())}M||(M=NL(this.pagePool,Z));g&&yNx(this.pagePool.elementPoolPopulator,Z);g&&!this.renderLoadingStateJobId&&(W=this.setActivePage(M));if(M){z=Z==="watch";var c=
Z==="shorts",I=Z==="learning_journey_watch";_.J("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(M);if(z||c||I)M.playerData=h.playerResponse;if(c)if(_.J("web_enable_delay_shorts_sequence_call")){h.reelWatchSequenceResponse&&(h.reelWatchSequenceResponse.entries||h.reelWatchSequenceResponse.prevEntries)&&(M.reelWatchSequenceResponse=h.reelWatchSequenceResponse);M.currentEndpoint=h.endpoint;var B;M.isPreviousPageShorts=!!(E==null?0:(B=E.endpoint)==null?0:B.reelWatchEndpoint);
var U,L;h.cachedSequenceParams=((U=h.endpoint)==null?void 0:(L=U.reelWatchEndpoint)==null?void 0:L.sequenceParams)||h.cachedSequenceParams||(E==null?void 0:E.cachedSequenceParams);var d,C;h.cachedSequenceProvider=((d=h.endpoint)==null?void 0:(C=d.reelWatchEndpoint)==null?void 0:C.sequenceProvider)||h.cachedSequenceProvider||(E==null?void 0:E.cachedSequenceProvider);M.cachedSequenceParams=h.cachedSequenceParams;M.cachedSequenceProvider=h.cachedSequenceProvider}else{h.reelWatchSequenceResponse&&(h.reelWatchSequenceResponse.entries||
h.reelWatchSequenceResponse.prevEntries)?M.reelWatchSequenceResponse=h.reelWatchSequenceResponse:h.cachedReelWatchSequenceResponse?M.reelWatchSequenceResponse=h.cachedReelWatchSequenceResponse:_.J("web_enable_cached_reel_sequence_fix")&&M.cachedReelWatchSequenceResponse&&!M.reelWatchSequenceResponse&&(M.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse);M.currentEndpoint=h.endpoint;var q;M.isPreviousPageShorts=!!(E==null?0:(q=E.endpoint)==null?0:q.reelWatchEndpoint);h.cachedReelWatchSequenceResponse=
h.reelWatchSequenceResponse||h.cachedReelWatchSequenceResponse||(E==null?void 0:E.cachedReelWatchSequenceResponse);M.cachedReelWatchSequenceResponse=h.cachedReelWatchSequenceResponse}B=this.isDownloadsPage(h);U=this.isDownloadsPage(E);B&&!U?this.setPlayerSyncInterval(6E5):!B&&U&&this.setPlayerSyncInterval();_.J("block_all_player_prefetch_requests")||this.preparePrefetchRequest(h,M,g,z,c,I);$vR(_.GF().resolve(_.Yu),E,h);var w;(w=_.GF().resolve(_.pl(_.g_)))==null||_.UoZ(w,this.getPersistentPanelSurface(Z));
_.tS(_.GF().resolve(_.DC));_.J("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(M);g?(g=typeof M.loadPage,g==="function"?(M.pageContext=YuX(this.contextSwitcher,M,M.data!==h.response),g=function(){M.loadPage(h.response)},this.shouldApplySlideTransition&&M.is==="ytd-browse"&&W&&(Z==="learning"||this.isDifferentBrowseId(h==null?void 0:h.endpoint,E==null?void 0:E.endpoint))?rs0(this.viewTransitionManager,g):this.shouldRunWatchNextLoadedTransition(M,W)?vg0(this.viewTransitionManager,
g):g()):_.KI(new _.xX("b/38014653 ",[Z,
M.is,M.nodeName,g,M.isAttached,E&&Q4(E),this.hostElement.children.length])),_.s7("pdl")):(M.hidden=!0,h.response.filler=!0,M.data=h.response,this.attachPage(M));_.Ra(this.hostElement,"yt-page-data-updated",{pageType:Z})}_.xW(_.KP,function(){_.J("logging_avoid_blocking_during_navigation")&&_.adz().transition("none");var r=MVX(),v=M;if(h){var H=BuG(h),u=Ui0(h),k;a:{if(h.playerResponse){var y=h.playerResponse,A;if((k=y.auxiliaryUi)==null?0:(A=k.messageRenderers)==null?0:A.upsellDialogRenderer){k=y.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(h.response&&(k=h.response,(y=k.overlay)==null?0:y.upsellDialogRenderer)){k=k.overlay.upsellDialogRenderer;break a}k=void 0}var E4;var iO;A=(E4=h.playerResponse)==null?void 0:(iO=E4.auxiliaryUi)==null?void 0:iO.messageRenderers;E4=(A==null?void 0:A.enforcementMessageViewModel)||(A==null?void 0:A.bkaEnforcementMessageViewModel);E4=(E4==null?void 0:E4.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?E4:void 0;var RW;a:{if(h.response&&(iO=h.response,(RW=iO.overlay)==
null?0:RW.commandWrapperPromoRenderer)){RW=iO.overlay.commandWrapperPromoRenderer;break a}RW=void 0}Z00(r,H,u,k,E4,RW,v)}})};
_.p.preparePrefetchRequest=function(h,E,g,Z,M,W){var z,c,I,B,U,L,d,C,q,w,r,v,H,u,k;return _.a(function(y){if(y.nextAddress==1)return!g||!(Z||M||W)||_.J("kevlar_disable_background_prefetch")&&_.k3(_.oJq)()===0?y.return():(z=_.GD(E))?y.yield(z.getPlayerPromise(),2):y.return();c=y.yieldResult;I=_.GF().resolve(_.pl(_.kY));if(!I)return y.return();if(M)return B=_.Zt(_.Ac),h3G(B,(U=h.endpoint)==null?void 0:U.reelWatchEndpoint,E.reelWatchSequenceResponse,c,I),y.return();C=(L=h.response)==null?void 0:(d=L.responseContext)==
null?void 0:d.webResponseContextExtensionData;if(!C)return y.return();H=(q=h.response)==null?void 0:(w=q.contents)==null?void 0:(r=w.twoColumnWatchNextResults)==null?void 0:(v=r.autoplay)==null?void 0:v.autoplay;u=_.GF().resolve(_.oS);k=_.Zt(_.Ac);Egp(k,C,c,I,u,H);_.SK(y)})};
_.p.movePlayerToWatch=function(h){var E=this,g,Z;return _.a(function(M){g=NL(E.pagePool,"watch");Z=g.getPlayerContainer();h.appendTo(Z);_.SK(M)})};
_.p.movePlayerToShorts=function(h){var E=this,g,Z,M;return _.a(function(W){g=NL(E.pagePool,"shorts");Z=g.getPlayerContainer();(M=h)==null||M.appendTo(Z,void 0,!0);_.SK(W)})};
_.p.getPlayerFromWatch=function(){var h=NL(this.pagePool,"watch");return _.GD(h)};
_.p.getPlayerFromShorts=function(){var h=NL(this.pagePool,"shorts");return _.GD(h)};
_.p.startLoadingWatch=function(){var h=this,E=NL(this.pagePool,"watch");this.renderLoadingStateJobId?(_.KP.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.J("web_watch_transition_enable_start_loading_watch_callsite")?mvG(this.viewTransitionManager,function(){h.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(E,"watch")};
_.p.startLoadingShorts=function(){var h=NL(this.pagePool,"shorts");this.setActivePage(h,"shorts")};
_.p.startLoadingLearningJourney=function(){var h=NL(this.pagePool,"learning_journey_watch");this.setActivePage(h,"learning_journey_watch")};
_.p.getCurrentPage=function(){return this.currentPage};
_.p.getDestinationPageType=function(){return this.destinationPageType};
_.p.getCurrentData=function(){return this.data};
_.p.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.p.isOnShorts=function(){var h;return((h=this.currentPage)==null?void 0:h.is)==="ytd-shorts"};
_.p.isWatchPage=function(h){return!!h&&(h.is==="ytd-watch-flexy"||h.is==="ytd-watch-fixie"||h.is==="ytd-watch-grid")};
_.p.preparePage=function(h,E){var g=this,Z=function(){var z=g.pagePool.preparePage(h,g.currentPage,E);z&&g.attachPage(z)},M=function(z){_.nI(z,E);
_.O$(z)};
if(_.J("kevlar_enable_mss_page_modules_client")){var W=this.getModuleNameForType(h);if(W=DvC(_.GF().resolve(_.V8),[W])){W.then(Z.bind(this)).catch(M.bind(this));return}}try{Z()}catch(z){M(z)}};
_.p.lazyPrepareCriticalPages=function(h,E){h=_.fm(E)||h;_.J("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(h).then(this.maybePrepareWatchPage.bind(this,h)):this.maybePrepareWatchPage(h)};
_.p.maybePrepareWatchPage=function(h){h==="watch"||h==="learning_journey_watch"&&_.J("web_watch_learning_journey_disable_lazy_pages")||_.xW(_.KP,this.preparePage.bind(this,"watch"))};
_.p.downloadPageModules=function(h){h=this.getModuleNameForType(h);var E=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);E.delete(h);var g=_.GF().resolve(_.V8);g.JSC$18564_loadModules(h);return g.JSC$18564_loadModules.apply(g,_.$E(E))};
_.p.renderPageLoadingState=function(h,E){this.preparePage(h,E);var g=NL(this.pagePool,h);g.loadingData&&(g.loadingData.endpoint=E);g.loading=!0;this.setActivePage(g,h);h!=="watch"&&h!=="learning_journey_watch"||_.Ra(this.hostElement,"yt-guide-close")};
_.p.prepareForNavigation=function(h,E){var g=this;if(this.currentPage&&this.data){var Z=_.fm(E)||h;this.destinationPageType=Z;Q4(this.data)==Z&&_.Ra(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((h==="watch"||h==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.KP.cancelJob(this.renderLoadingStateJobId);_.GF().resolve(_.Yu).deactivate(E);_.Pw(_.KP,function(){var W=g.viewTransitionManager,z=g.currentPage;
if(W.isLockupToWatchTransitionEnabled&&W.isLockupThumbnailRegistrationEnabled&&z)if(W.registeredLockupThumbnail)W.lockupThumbnailRegisteredFromWatchEndpoint&&_.O$(new _.xX("Lockup thumbnail already registered from watch endpoint."));else{a:{var c=_.e(E,_.MH);if(c==null?0:c.videoId){var I="yt-lockup-view-model ."+_.d0u(c.videoId)+" yt-thumbnail-view-model";z=z.querySelectorAll(I);if(z.length===1){c=z[0];break a}z.length>1?_.O$(new _.xX("Multiple LockupViewModel thumbnails found for videoId: "+c.videoId+
". Selector: "+I)):_.J("web_thumbnail_to_watch_transition_debug")&&_.O$(new _.xX("No LockupViewModel thumbnail found for videoId: "+c.videoId+". Selector: "+I))}c=void 0}c&&(W.registeredLockupThumbnail=c,W.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.EdC(W,c))}});
var M=this.data;this.renderLoadingStateJobId=_.Pw(_.KP,function(){mvG(g.viewTransitionManager,function(){if(g.data!=M){var W=NL(g.pagePool,h);g.setActivePage(W)}else g.renderPageLoadingState(h,E);g.renderLoadingStateJobId=0})},150)}};
_.p.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var h=new _.S1(1);this.currentPage.pageDisposeJobs.forEach(function(E){_.xl(h,E)});
this.pageDisposeJobsets.set(this.currentPage,h)}};
_.p.flushPageDisposeJobset=function(h){var E=this.pageDisposeJobsets.get(h);E&&(E.flushJobs(),this.pageDisposeJobsets.delete(h))};
_.p.onYtStopOldPlayer=function(h,E){E=E===void 0?!1:E;var g,Z=_.oC("kevlar_new_stop_old_player_logic_pages");if(_.J("kevlar_check_current_page_on_stop_old_player")&&(Z.length===0||this.currentPage&&Z.includes(this.currentPage.is)))if(this.data&&(g=Q4(this.data)),Q4(h)===g&&this.currentPage&&Q4(this.currentPage.data)!==g)var M=_.GD(this.currentPage);else g=Q4(this.data),M=NL(this.pagePool,g),M=_.GD(M);else this.data&&(g=Q4(this.data),M=NL(this.pagePool,g),M=_.GD(M));if(M)if(h=Q4(h),Z=NL(this.pagePool,
h),Z=_.GD(Z),M==Z)E&&!_.J("kevlar_disable_preemptive_player_reset")&&M.resetForNewPlayback();else if(E=g==="watch"&&h!=="watch",!E||h==="shorts"||_.JYf()&&!IAX(this.data)&&h!=="yts-products"&&h!="mini_app"&&h!="playables")g=_.GF().resolve(_.Yu),E&&g.isMiniplayerActive()&&g.pipController.getWindow()||M.stop()};
_.p.isDifferentBrowseId=function(h,E){h=_.e(h,_.tk);E=_.e(E,_.tk);return(h==null?void 0:h.browseId)!==(E==null?void 0:E.browseId)};
_.p.getPersistentPanelSurface=function(h){switch(h){case "watch":return"WATCH";default:return"APP"}};
_.ze.Object.defineProperties($5,{template:{configurable:!0,enumerable:!0,get:function(){return g_X()}}});
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],$5.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-page-manager"})],$5);_.X($5,"ytd-page-manager",function(){return g_X()},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var Z7x;var Kp=function(){var h=_.D.apply(this,arguments)||this;h.useListItemStyles=_.J("web_list_item_style_for_menu_items");h.systemIcons=_.J("kevlar_system_icons");return h};
_.f(Kp,_.D);_.p=Kp.prototype;_.p.ready=function(){this.hostElement.addEventListener("tap",_.qm(this,this.onEndpointTapExtra))};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var h;(h=_.UB(this.hostElement).querySelector("tp-yt-paper-item"))==null||h.focus()};
_.p.onEndpointTapExtra=function(h){_.Ra(this.hostElement,"iron-activate");var E=this.data.navigationEndpoint;E&&_.e(E,_.A_$)&&(h.stopPropagation(),_.jj(this.hostElement,[E],this.hostElement))};
_.p.computeIcon=function(h){return h&&h.iconType?_.CL(h.iconType):""};
_.p.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.J("kevlar_legacy_browsers")&&_.Ja(this.hostElement)};
Kp.prototype.forceUpdateStylesOnLegacyBrowsers=Kp.prototype.forceUpdateStylesOnLegacyBrowsers;Kp.prototype.onFocus=Kp.prototype.onFocus;_.Y([_.t(_.fJ),_.V("design:type",Object)],Kp.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.bKM.YtConditionalRendererBehavior),_.V("design:type",Object)],Kp.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],Kp.prototype,"ytEndpointBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Kp.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],Kp.prototype,"icon",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Kp.prototype,"useIcons",void 0);_.Y([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],Kp.prototype,"hasSeparator",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Kp.prototype,"useListItemStyles",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Kp.prototype,"systemIcons",void 0);_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kp.prototype,"onFocus",null);_.Y([_.Nm("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Kp.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(Kp,"ytd-menu-navigation-item-renderer",function(){if(Z7x===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);Z7x=h}h=Z7x;return h},{mode:1});var MB0;var WRJ=_.MR(_.NH("DOWNLOAD",{},"Download")),pvZ=_.MR(_.NH("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),GUR=_.MR(_.NH("RETRY",{},"Retry")),zWR=_.MR(_.NH("PAUSE_DOWNLOADING",{},"Pause downloading")),akI=_.MR(_.NH("RESUME_DOWNLOAD",{},"Resume download")),OO=function(){var h=_.D.apply(this,arguments)||this;h.primaryText=WRJ;h.primaryIconType="OFFLINE_DOWNLOAD";h.hasSecondaryContent=!1;h.hasSeparator=!1;h.transferState="TRANSFER_STATE_UNKNOWN";h.isVideoDeletedByUser=!1;h.isHidden=!1;h.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return h};
_.f(OO,_.D);_.p=OO.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){this.primaryEntry.focus()};
_.p.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.p.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.p.getRemoveAction=function(){return"ACTION_REMOVE"};
_.p.sendOfflineAction=function(h){var E=this.data.serviceEndpoint;if(E){var g=_.e(E,_.JU);g&&h&&(g.action=h);this.ytComponentBehavior.resolveCommand(E)}};
_.p.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=WRJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=WRJ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=GUR;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=pvZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=akI;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=pvZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
zWR;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=pvZ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=pvZ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=WRJ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.p.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.p.isSecondaryEntryHidden=function(h,E){return h?!0:!E};
_.p.computeHasSeparator=function(){var h;return!((h=this.data)==null||!h.hasSeparator)};
OO.prototype.showHideButton=OO.prototype.showHideButton;OO.prototype.onTransferStateChange=OO.prototype.onTransferStateChange;OO.prototype.onFocus=OO.prototype.onFocus;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],OO.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],OO.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],OO.prototype,"primaryText",void 0);_.Y([_.x(),_.V("design:type",String)],OO.prototype,"primaryIconType",void 0);_.Y([_.x(),_.V("design:type",String)],OO.prototype,"primaryAction",void 0);_.Y([_.x(),_.V("design:type",Object)],OO.prototype,"secondaryText",void 0);_.Y([_.x(),_.V("design:type",String)],OO.prototype,"secondaryIconType",void 0);
_.Y([_.x(),_.V("design:type",String)],OO.prototype,"secondaryAction",void 0);_.Y([_.x(),_.V("design:type",Object)],OO.prototype,"hasSecondaryContent",void 0);_.Y([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Object)],OO.prototype,"hasSeparator",void 0);_.Y([_.x({selector:_.y7,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",String)],OO.prototype,"transferState",void 0);
_.Y([_.x({selector:_.qk$,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],OO.prototype,"isVideoDeletedByUser",void 0);_.Y([_.x(),_.V("design:type",Object)],OO.prototype,"isHidden",void 0);_.Y([_.x({selector:_.UPa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.V("design:type",Object)],OO.prototype,"offlineabilityState",void 0);_.Y([_.Sg("#primary-entry"),_.V("design:type",Object)],OO.prototype,"primaryEntry",void 0);
_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OO.prototype,"onFocus",null);_.Y([_.lq("transferState","isVideoDeletedByUser"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OO.prototype,"onTransferStateChange",null);_.Y([_.lq("offlineabilityState"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OO.prototype,"showHideButton",null);
_.X(OO,"ytd-menu-service-item-download-renderer",function(){if(MB0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);MB0=h}h=MB0;return h},{mode:1});var c$U;var np=function(){var h=_.D.apply(this,arguments)||this;h.useIcons=!1;h.systemIcons=_.J("kevlar_system_icons");h.useListItemStyles=_.J("web_list_item_style_for_menu_items");return h};
_.f(np,_.D);_.p=np.prototype;_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.p.onFocus=function(){var h;(h=_.UB(this.hostElement).querySelector("tp-yt-paper-item"))==null||h.focus()};
_.p.onTap=function(){_.U7(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var h=this.data.serviceEndpoint,E=this.data.command;if(h){var g,Z=(g=this.data)==null?void 0:g.trackingParams;g=!!_.e(h,_.DMB);Z&&g&&_.Gv().dispatch(_.RY({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:Z}}));this.ytComponentBehavior.resolveCommand(h)||_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}})}E&&(this.ytComponentBehavior.resolveCommand(E)||_.jj(this.hostElement,
[E],this.hostElement))};
_.p.computeIcon=function(h){return h&&h.iconType?_.CL(h.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.computeHasSeparator=function(){var h;return!((h=this.data)==null||!h.hasSeparator)};
_.p.forceUpdateStylesOnLegacyBrowsers=function(){_.J("kevlar_legacy_browsers")&&_.Ja(this.hostElement)};
_.p.computeIsSelected=function(){var h;return!((h=this.data)==null||!h.isSelected)};
np.prototype.forceUpdateStylesOnLegacyBrowsers=np.prototype.forceUpdateStylesOnLegacyBrowsers;np.prototype.onTap=np.prototype.onTap;np.prototype.onFocus=np.prototype.onFocus;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],np.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],np.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],np.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.bKM.YtConditionalRendererBehavior),_.V("design:type",Object)],np.prototype,"ytConditionalRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],np.prototype,"data",void 0);_.Y([_.x({computed:"computeIcon(data.icon)",value:""}),_.V("design:type",String)],np.prototype,"icon",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],np.prototype,"useIcons",void 0);
_.Y([_.x({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.V("design:type",Boolean)],np.prototype,"hasSeparator",void 0);_.Y([_.x({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.V("design:type",Boolean)],np.prototype,"isSelected",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],np.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],np.prototype,"useListItemStyles",void 0);
_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],np.prototype,"onFocus",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],np.prototype,"onTap",null);_.Y([_.Nm("useIcons","hasSeparator"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],np.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.X(np,"ytd-menu-service-item-renderer",function(){if(c$U===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);c$U=h}h=c$U;return h},{mode:2});var i7G;var XH=function(){return _.D.apply(this,arguments)||this};
_.f(XH,_.D);_.p=XH.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var h=this;_.pQ(this,function(){h.postbox.openDialog();h.focus();_.Ra(h.hostElement,"yt-refit")})};
_.p.focus=function(){this.postbox.focus()};
_.p.closePopup=function(){_.BX(this.hostElement,"yt-close-popup-action")};
_.p.onYtCommentboxDismiss=function(){this.closePopup()};
XH.prototype.onYtCommentboxDismiss=XH.prototype.onYtCommentboxDismiss;XH.prototype.onDataChanged=XH.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],XH.prototype,"data",void 0);_.Y([_.x({value:function(){return _.NH("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],XH.prototype,"closeButtonAriaLabel",void 0);_.Y([_.Sg("#postbox"),_.V("design:type",Object)],XH.prototype,"postbox",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XH.prototype,"onDataChanged",null);_.Y([_.f3("yt-commentbox-dismiss"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],XH.prototype,"onYtCommentboxDismiss",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],XH);
_.X(XH,"ytd-backstage-post-dialog-popup-renderer",function(){if(i7G!==void 0)return i7G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return i7G=h},{mode:1});var o_X;var Y5=function(){return _.D.apply(this,arguments)||this};
_.f(Y5,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Y5.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Y5);
_.X(Y5,"ytd-sender-id-section-renderer",function(){if(o_X!==void 0)return o_X;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return o_X=h},{mode:1});var IkU;var RWI;var P5J;var sO=function(){return _.D.apply(this,arguments)||this};
_.f(sO,_.D);sO.prototype.closePopup=function(){_.BX(this.hostElement,"yt-close-popup-action")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sO.prototype,"data",void 0);_.Y([_.yc({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],sO);
_.X(sO,"yt-community-post-section-renderer",function(){if(P5J===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;RWI===void 0&&(RWI=document.createElement("template"));var Z=RWI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);P5J=h}h=P5J;return h},{mode:2});var BsU;var UxG;var LRU;var j0J;var dxZ;var C5I;var VD=function(){return _.D.apply(this,arguments)||this};
_.f(VD,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],VD.prototype,"data",void 0);_.Y([_.yc({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],VD);
_.X(VD,"yt-share-start-time-with-context-renderer",function(){if(C5I===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;dxZ===void 0&&(dxZ=document.createElement("template"));var Z=dxZ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);C5I=h}h=C5I;return h},{mode:2});var k5=function(){return _.D.apply(this,arguments)||this};
_.f(k5,_.D);k5.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],k5.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],k5.prototype,"data",void 0);_.Y([_.yc({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],k5);
_.X(k5,"yt-share-panel-title-v15-renderer",function(){if(j0J===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;LRU===void 0&&(LRU=document.createElement("template"));var Z=LRU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);j0J=h}h=j0J;return h},{mode:2});var yD=function(){return _.D.apply(this,arguments)||this};
_.f(yD,_.D);yD.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],yD.prototype,"data",void 0);_.Y([_.yc({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],yD);
_.X(yD,"yt-share-panel-header-renderer",function(){if(UxG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;BsU===void 0&&(BsU=document.createElement("template"));var Z=BsU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);UxG=h}h=UxG;return h},{mode:2});var J$x;var eW0;var FH=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-open-popup-action":"onOpen"};return h};
_.f(FH,_.D);_.p=FH.prototype;_.p.attached=function(){this.onOpen()};
_.p.updateTimeSecs=function(h){this.currentTimeSecs=h};
_.p.computeTimeString=function(h){h=h.toString();var E=Math.floor(Number(h)/3600),g=Math.floor(Number(h)%3600%60);return(E>0?E+":":"")+_.RO(Math.floor(Number(h)%3600/60),E>0?2:1)+":"+_.RO(g,2)};
_.p.computeTimeStringA11y=function(h){return _.DPz({seconds:h})};
_.p.getTimeParam=function(){return HOI(this.timeString)};
_.p.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var h={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},E;_.KC(_.SQ(),(E=this.data)==null?void 0:E.trackingParams,h,7)};
_.p.onChangeStartAtTimestamp=function(){for(var h=this.startAtTimestamp.value.split(":"),E=0,g=1,Z=h.length-1;Z>=0;Z--)E+=Number(h[Z])*g,g*=60;this.updateTimeSecs(E);this.setTimestamp()};
_.p.onOpen=function(){var h=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var E=_.zD();E?E.getPlayerPromise().then(function(g){g=g.getCurrentTime();h.updateTimeSecs(g)}):TZG()&&this.updateTimeSecs(TZG())};
_.p.setTimestamp=function(){var h=Math.floor(this.currentTimeSecs);_.BX(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!h,timestamp:h||""}])};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],FH.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],FH.prototype,"data",void 0);_.Y([_.x({value:!1,notify:!0}),_.V("design:type",Boolean)],FH.prototype,"isStartAtChecked",void 0);_.Y([_.x(),_.V("design:type",Number)],FH.prototype,"currentTimeSecs",void 0);
_.Y([_.x({computed:"computeTimeString(currentTimeSecs)"}),_.V("design:type",String)],FH.prototype,"timeString",void 0);_.Y([_.x({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.V("design:type",String)],FH.prototype,"timeStringA11y",void 0);_.Y([_.Sg("#start-at-timestamp"),_.V("design:type",Object)],FH.prototype,"startAtTimestamp",void 0);_.Y([_.yc({is:"yt-start-at-renderer",disableElementRegistration:!0})],FH);
_.X(FH,"yt-start-at-renderer",function(){if(eW0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;J$x===void 0&&(J$x=document.createElement("template"));var Z=J$x;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);eW0=h}h=eW0;return h},{mode:2});var qbG;var fk0;var Nsp=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"]]),tBI=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"]]),SbR=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var xxG={};xxG.YtBindingExpressionsBehavior={identity:_.va,msg:function(h,E){E=E===void 0?{}:E;return _.NH(h,E,h)},
msgPlural:function(h,E){return _.tT(h,E)},
getMusicIconFromType:function(h){if(_.J("music_web_enable_icon_wil"))h=_.CL(h);else if(tBI.has(h))h="yt-sys-icons:"+tBI.get(h);else{var E=Nsp.get(h)||_.CL(h).split(":")[1];E=_.WFZ(E);var g;h=((g=SbR.get(h))!=null?g:"yt-sys-icons:")+E}return h}};var wvX;var Dxi;var lkU;var r$J=document.head,mxG=r$J.appendChild,v_R;if(lkU===void 0){var H7G=document.createElement("template");_.N(H7G,'\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>');lkU=H7G}v_R=lkU;mxG.call(r$J,v_R.content);var AK=function(){var h=_.D.apply(this,arguments)||this;h.screenLayer=7;return h};
_.f(AK,_.D);AK.prototype.getScreenLayer=function(){return this.screenLayer};
AK.prototype.onTap=function(h){h&&h.detail&&(h.detail.x||h.detail.y)&&_.UB(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.LZ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(h=this.getScreenLayer(),_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:h}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ze.Object.defineProperties(AK.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()}}});
AK.prototype.onTap=AK.prototype.onTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],AK.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],AK.prototype,"data",void 0);_.Y([_.S("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],AK.prototype,"title",null);
_.Y([_.S("data.serviceName"),_.V("design:type",String),_.V("design:paramtypes",[])],AK.prototype,"icon",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],AK.prototype,"onTap",null);_.Y([_.yc({is:"yt-share-target-renderer",disableElementRegistration:!0})],AK);
_.X(AK,"yt-share-target-renderer",function(){if(Dxi===void 0){var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;wvX===void 0&&(wvX=document.createElement("template"));var Z=wvX;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Dxi=h}h=Dxi;return h},{mode:2});var $xX;var KRG;var Ts=function(){var h=_.D.apply(this,arguments)||this;h.SHARE_TARGET_WIDTH=70;h.SHARE_TARGET_MARGIN_RIGHT=8;h.PAGE_SCROLL_SPEED=9;h.actionMap={"yt-share-panel-reset-action":"onReset_"};return h};
_.f(Ts,_.D);_.p=Ts.prototype;_.p.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.p.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.UB(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.UB(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.p.onReset_=function(){if(_.UB(this.hostElement).querySelector("#list")){var h=_.UB(this.hostElement).querySelector("#list");var E=_.UB(this.hostElement).querySelector("#list");var g=E.offsetLeft,Z=E.offsetParent;Z||_.mZf(E)!="fixed"||(Z=_.Yp(E).documentElement);if(Z){if(_.RV&&!_.BW(58)){var M=_.Y0F(Z);g+=M.left}else Number(_.h5x)>=8&&!(Number(_.h5x)>=9)&&(M=_.Y0F(Z),g-=M.left);E=_.nUD(Z)?Z.clientWidth-(g+E.offsetWidth):g}else E=g;ZzZ(h,E);this.updateScrollButtons_()}};
_.p.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.p.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.p.onScrollWheel_=function(h){h.stopPropagation();h.preventDefault();var E=gS0(_.UB(this.hostElement).querySelector("#list"));h=Math.abs(h.deltaX)>Math.abs(h.deltaY)?h.deltaX:h.deltaY;ZzZ(_.UB(this.hostElement).querySelector("#list"),E+h);this.updateScrollButtons_()};
_.p.smoothScrollByOnePage_=function(h){var E=_.UB(this.hostElement).querySelector("#list"),g=(Math.floor(E.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,Z=gS0(E),M=g*(h?1:-1),W=this.PAGE_SCROLL_SPEED,z=this.updateScrollButtons_.bind(this),c=0,I;(function U(){c+=W;I=c/g*2;ZzZ(E,Z+M*(I<1?I*I:-I*I+4*I-2));c<g?window.requestAnimationFrame(U):z()})()};
_.p.updateScrollButtons_=function(){var h=gS0(_.UB(this.hostElement).querySelector("#list")),E=_.UB(this.hostElement).querySelector("#list").scrollWidth-_.UB(this.hostElement).querySelector("#list").clientWidth;_.UB(this.hostElement).querySelector("#scroll-button-back").hidden=h<=0;_.UB(this.hostElement).querySelector("#scroll-button-forward").hidden=h>=E};
Ts.prototype.onScrollWheel_=Ts.prototype.onScrollWheel_;Ts.prototype.onDataChanged_=Ts.prototype.onDataChanged_;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ts.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ts.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(xxG.YtBindingExpressionsBehavior),_.V("design:type",Object)],Ts.prototype,"ytBindingExpressionsBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ts.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ts.prototype,"onDataChanged_",null);_.Y([_.f3("wheel"),_.V("design:type",Function),_.V("design:paramtypes",[WheelEvent]),_.V("design:returntype")],Ts.prototype,"onScrollWheel_",null);
_.Y([_.yc({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ts);
_.X(Ts,"yt-third-party-share-target-section-renderer",function(){if(KRG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;$xX===void 0&&($xX=document.createElement("template"));var Z=$xX;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);KRG=h}h=KRG;return h},{mode:2});var bg=function(){return _.D.apply(this,arguments)||this};
_.f(bg,_.D);bg.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"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bg.prototype,"data",void 0);_.Y([_.yc({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],bg);
_.X(bg,"yt-third-party-network-section-renderer",function(){if(fk0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;qbG===void 0&&(qbG=document.createElement("template"));var Z=qbG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);fk0=h}h=fk0;return h},{mode:2});_.I9(_.O(function(h){return _.R("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.R("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.R(_.Sv,{data:function(){return h.data().firstPartyItems}},{listItemViewModel:_.zo})))},"nh"),"first-party-network-section-view-model",{props:{data:_.C6}});var O7R=(0,_.IPU)(_.gR.share,{parentClickTrackingParamsSelector:function(h){return h.parentClickTrackingParams}});var n_G=_.uz(["data:image/svg+xml;charset=UTF-8;base64,",""]),ug=function(){var h=_.D.apply(this,arguments)||this;h.screenLayer=7;h.qrCodeEnabled=_.J("web_enable_sharing_qr_code");h.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return h};
_.f(ug,_.D);_.p=ug.prototype;_.p.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.p.attached=function(){this.JSC$20078_scroller&&(this.JSC$20078_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20078_scroller.attached&&typeof this.JSC$20078_scroller.attached==="function"&&this.JSC$20078_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.p.onDataChanged=function(){var h=this,E;(E=this.data)!=null&&E.contents&&(this.hostElement.setAttribute("links-only","true"),_.dD(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit");h.focusSharePanelHeader()}))};
_.p.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.p.handleSetTimestamp=function(h){var E=this.shortUrl();h.isSet&&(E=_.hO(E,"t",h.timestamp));this.maybeRenderQrCode(E)};
_.p.shortUrl=function(){var h,E=(h=this.data)==null?void 0:h.contents;if(E)for(h=0;h<E.length;h++){var g=void 0,Z=void 0;if((g=E[h])==null?0:(Z=g.thirdPartyNetworkSection)==null?0:Z.copyLinkContainer){var M=Z=g=void 0;return(M=_.e((g=E[h])==null?void 0:(Z=g.thirdPartyNetworkSection)==null?void 0:Z.copyLinkContainer,h_J))==null?void 0:M.shortUrl}}};
_.p.maybeRenderQrCode=function(h){var E=this,g,Z,M,W,z,c,I,B,U;return _.a(function(L){if(L.nextAddress==1){g=_.UB(E.hostElement).querySelector("#qr-code");if(!E.qrCodeEnabled||!h)return g&&(g.style.display="none"),L.return();Z=_.Upa(_.GF().resolve(_.JW),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});M=document.createElement("div");return typeof Z==="function"?(Z(M),L.jumpTo(2)):L.yield(Z,3)}L.nextAddress!=2&&(W=L.yieldResult,W(M));I=(z=M)==null?void 0:(c=z.firstChild)==null?void 0:c.firstChild;
B=document.createElement("img");U=_.ujO(n_G,btoa(I.outerHTML));B.onload=function(){var d={canvas:g,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:B},C=new JaC;SBU(C,h);xmU(C,!1,wbi(C));var q=C.modules,w=Object.assign({},Vup,d);q=structuredClone(q);d=q.length;var r,v=(r=w.canvas)!=null?r:document.createElement("canvas");r=w.cellSize;C=w.logo;var H,u=(H=w.logoSize)!=null?H:Math.floor(d/4);d%2!==u%2&&u++;var k=w.logoPadding,y=w.backgroundColor;H=d*r;var A=
w.width,E4=0;A&&(E4=w.padding,E4=Math.ceil(E4*H/(A-E4*2)),v.style.width=A+"px",v.style.height=A+"px");v.width!==H+E4*2&&(v.width=H+E4*2);v.height!==H+E4*2&&(v.height=H+E4*2);H=v.getContext("2d");w.autoClear&&H.clearRect(0,0,v.width,v.height);H.fillStyle=y;H.beginPath();H.roundRect(0,0,v.width,v.height,w.borderRadius);H.fill();H.save();H.translate(E4,E4);if(C)for(v=Math.floor(d-u)/2-k,k=Math.floor(d+u)/2+k,y=v;y<k;y++)for(A=v;A<k;A++)q[y][A]=!1;for(v=0;v<d;v++)for(k=0;k<d;k++)(v<7&&k<7||v<7&&k>=d-
7||v>=d-7&&k<7)&&(q[v][k]=!1);var iO;v=(iO=w.markerColor)!=null?iO:w.color;lMx(H,0,0,r,v);lMx(H,r*(d-7),0,r,v);lMx(H,0,r*(d-7),r,v);switch(w.cellStyle){case 0:iO=q;q=iO.length;v=w.cellSize;H.beginPath();for(k=0;k<q;k++)for(y=0;y<q;y++)iO[k][y]&&H.rect(k*v,y*v,v,v);H.fillStyle=w.color;H.fill();break;case 1:iO=q;q=iO.length;v=w.cellSize;k=v*w.relativeCircleSize;H.fillStyle=w.color;H.beginPath();for(w=0;w<q;w++)for(y=0;y<q;y++)iO[w][y]&&(H.beginPath(),H.ellipse((w+.5)*v,(y+.5)*v,k/2,k/2,0,0,2*Math.PI),
H.fill());H.fill();break;case 2:iO=q;q=iO.length;v=w.cellSize;H.fillStyle=w.color;w=[[1,1],[-1,1],[-1,-1],[1,-1]];H.beginPath();for(k=0;k<q;k++)for(y=0;y<q;y++)if(iO[k][y])H.roundRect(k*v,y*v,v,v,v/2),k+1<q&&iO[k+1][y]&&H.rect(k*v+v/2,y*v,v,v),y+1<q&&iO[k][y+1]&&H.rect(k*v,y*v+v/2,v,v);else{A=k*v+v/2;E4=y*v+v/2;for(var RW=0;RW<4;RW++){var NN=_.G(w[RW]),Cd=NN.next().value;NN=NN.next().value;k+Cd>=0&&k+Cd<q&&y+NN>=0&&y+NN<q&&iO[k+Cd][y]&&iO[k][y+NN]&&iO[k+Cd][y+NN]&&(Cd=RW*Math.PI/2,NN=v/2,H.moveTo(A+
NN*Math.cos(Cd),E4+NN*Math.sin(Cd)),H.arc(A,E4,v/2,Cd,Cd+Math.PI/2,!1),H.lineTo(A+NN*(Math.cos(Cd)-Math.sin(Cd)),E4+NN*(Math.cos(Cd)+Math.sin(Cd))),H.lineTo(A+NN*Math.cos(Cd),E4+NN*Math.sin(Cd)))}}H.fill()}C&&H.drawImage(C,(d-u)*r/2,(d-u)*r/2,u*r,u*r);H.restore();g.style.removeProperty("display")};
B.src=_.$r(U);_.SK(L)})};
_.p.hasCommunityPostRenderer=function(){var h,E,g,Z;return!!((h=this.data)==null?0:(E=h.header)==null?0:(g=E.sharePanelHeaderRenderer)==null?0:(Z=g.communityPost)==null?0:Z.communityPostSectionRenderer)};
_.p.onTapClose=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.p.getScreenLayer=function(){return this.screenLayer};
_.p.logSharePanelPage=function(){if(!_.J("enable_share_panel_navigation_logging_fix_on_web")){var h;if((h=this.data)!=null&&h.trackingParams){h=this.data.trackingParams;var E=this.parentClickTrackingParams;E=E?_.rp(E):void 0;var g=_.SQ();_.mw(g,21760,E,{layer:7,parentLayer:0});g.graftServerVe(h,void 0,7);_.Gv().dispatch(_.RY({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
ug.prototype.onDataChanged=ug.prototype.onDataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ug.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ug.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],ug.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ug.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],ug.prototype,"data",void 0);_.Y([_.x({value:_.NH("SBOX_INAPPROPRIATE_CANCEL")}),_.V("design:type",String)],ug.prototype,"closeButtonAriaLabel",void 0);_.Y([_.Sg("yt-share-panel-header-renderer"),_.V("design:type",HTMLElement)],ug.prototype,"header",void 0);_.Y([_.x({selector:O7R.parentClickTrackingParamsSelector}),_.V("design:type",String)],ug.prototype,"parentClickTrackingParams",void 0);_.Y([_.x(),_.V("design:type",Object)],ug.prototype,"qrCodeEnabled",void 0);
_.Y([_.Sg("#scroller"),_.V("design:type",Object)],ug.prototype,"JSC$20078_scroller",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ug.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],ug);
_.X(ug,"ytd-unified-share-panel-renderer",function(){if(IkU!==void 0)return IkU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return IkU=h},{mode:1});var XvC;var QD=function(){var h=_.D.apply(this,arguments)||this;h.modernModal=!0;return h};
_.f(QD,_.D);QD.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
QD.prototype.computeShouldHideOldButtons=function(){var h;return!((h=this.data)==null?0:h.button)};
_.ze.Object.defineProperties(QD.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var h,E;return(h=this.data)==null?void 0:(E=h.button)==null?void 0:E.buttonRenderer}}});
_.Y([_.x(),_.V("design:type",Object)],QD.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],QD.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],QD.prototype,"modernModal",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],QD.prototype,"buttonRendererData",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],QD);
_.X(QD,"ytd-modal-with-title-and-button-renderer",function(){if(XvC!==void 0)return XvC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XvC=h},{mode:1});var YbU;var h4=function(){return _.D.apply(this,arguments)||this};
_.f(h4,_.D);h4.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("page-changed",this.page))};
h4.prototype.pageChangedForBinding=h4.prototype.pageChangedForBinding;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],h4.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],h4.prototype,"page",void 0);_.Y([_.Nm("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],h4.prototype,"pageChangedForBinding",null);
_.Y([_.K({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],h4);
_.X(h4,"ytd-account-item-section-header-renderer",function(){if(YbU!==void 0)return YbU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return YbU=h},{mode:1});var s0I;var E2=function(){return _.D.apply(this,arguments)||this};
_.f(E2,_.D);E2.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"}}}};
E2.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],E2.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],E2.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Function)],E2.prototype,"onAccountItemTap",void 0);
_.Y([_.K({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],E2);
_.X(E2,"ytd-account-item-section-renderer",function(){if(s0I!==void 0)return s0I;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return s0I=h},{mode:1});var VBG;var kUC;var gz=function(){return _.D.apply(this,arguments)||this};
_.f(gz,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gz.prototype,"data",void 0);_.Y([_.K({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],gz);
_.X(gz,"ytd-accounts-dialog-header-renderer",function(){if(kUC!==void 0)return kUC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return kUC=h},{mode:1});var y$G;var Zh=function(){return _.D.apply(this,arguments)||this};
_.f(Zh,_.D);Zh.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Zh.prototype,"data",void 0);_.Y([_.K({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Zh);
_.X(Zh,"ytd-google-account-header-renderer",function(){if(y$G!==void 0)return y$G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return y$G=h},{mode:1});var Me=function(){return _.D.apply(this,arguments)||this};
_.f(Me,_.D);Me.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"}}}};
Me.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("page-changed",this.page))};
Me.prototype.pageChangedForBinding=Me.prototype.pageChangedForBinding;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Me.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],Me.prototype,"page",void 0);
_.Y([_.Nm("page"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Me.prototype,"pageChangedForBinding",null);_.Y([_.K({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Me);
_.BK()(Me,"ytd-account-section-list-renderer",function(){if(VBG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);VBG=h}h=VBG;return h},{allowedProps:["data"],
mode:1});var FRZ;var WO=function(){var h=_.D.apply(this,arguments)||this;h.enableHandlesAccountMenuSwitcher=_.J("enable_handles_account_menu_switcher");return h};
_.f(WO,_.D);WO.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
WO.prototype.dataChanged=WO.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],WO.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],WO.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.Y([_.Sg("#avatar"),_.V("design:type",Object)],WO.prototype,"avatar",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WO.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],WO);
_.BK()(WO,"ytd-active-account-header-renderer",function(){if(FRZ===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);FRZ=h}h=FRZ;return h},{allowedProps:["data"],
mode:1});var A$Z;var TsU;var pR=function(){return _.D.apply(this,arguments)||this};
_.f(pR,_.D);pR.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pR.prototype.onBackTap=function(){_.Ra(this.hostElement,"yt-menu-back-tapped")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pR.prototype,"data",void 0);_.Y([_.K({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],pR);
_.BK()(pR,"ytd-simple-menu-header-renderer",function(){if(TsU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);TsU=h}h=TsU;return h},{allowedProps:["data"],
mode:2});var b7Z;var G4=function(){return _.D.apply(this,arguments)||this};
_.f(G4,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],G4.prototype,"data",void 0);_.Y([_.K({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],G4);
_.X(G4,"ytd-comment-video-thumbnail-header-renderer",function(){if(b7Z!==void 0)return b7Z;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return b7Z=h},{mode:1});var uup;var z4=function(){return _.D.apply(this,arguments)||this};
_.f(z4,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],z4.prototype,"data",void 0);_.Y([_.K({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],z4);
_.X(z4,"ytd-abuse-type-selector-renderer",function(){if(uup!==void 0)return uup;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return uup=h},{mode:1});var Q0i;var hEi=(0,_.IPU)(_.gR.reportChannelAbuse,{isVideoIdSelectedSelector:function(h,E){return E in h.selectedVideoIds},
additionalContextSelector:function(h){return h.additionalContext},
impersonatedChannelUrlSelector:function(h){return h.impersonatedChannelUrl},
reportChannelAbuseSelector:function(h){return h}});var a3=function(){return _.D.apply(this,arguments)||this};
_.f(a3,_.D);a3.prototype.attached=function(){var h=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){h.additionalContextInput.focusTextInput()})};
a3.prototype.handleAdditionalContextChanged=function(){var h=this;_.EQ(this,"ytd-report-channel-additional-context-update",function(){h.ytdReduxBehavior.dispatch(_.RY({type:"ADDITIONAL_CONTEXT_UPDATED",payload:h.additionalContext}))},300)};
a3.prototype.updateAdditionalContextFromBinding=function(h){this.additionalContext=h.detail.value};
a3.prototype.handleAdditionalContextChanged=a3.prototype.handleAdditionalContextChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],a3.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",String)],a3.prototype,"additionalContext",void 0);_.Y([_.x({selector:hEi.additionalContextSelector}),_.V("design:type",String)],a3.prototype,"additionalContextRedux",void 0);_.Y([_.x(),_.V("design:type",Object)],a3.prototype,"data",void 0);
_.Y([_.Sg("yt-text-input-form-field-renderer"),_.V("design:type",Object)],a3.prototype,"additionalContextInput",void 0);_.Y([_.Nm("additionalContext"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],a3.prototype,"handleAdditionalContextChanged",null);_.Y([_.K({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],a3);
_.X(a3,"ytd-report-channel-modal-additional-context-renderer",function(){if(Q0i!==void 0)return Q0i;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return Q0i=h},{mode:1});var EnU;var cO=function(){var h=_.D.apply(this,arguments)||this;h.nextButtonDisabled=null;h.submitEndpoint=null;h.navigationEndpoint=null;h.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return h};
_.f(cO,_.D);_.p=cO.prototype;_.p.computeNextButtonData=function(h,E,g){var Z={};E&&(Z.navigationEndpoint=E);g&&(Z.serviceEndpoint=g);h&&h.buttonRenderer&&_.Kt.extend(Z,h.buttonRenderer);return Z};
_.p.handleReportChannelModalDisableNextButtonAction=function(h){this.setNextButtonIsDisabled(h)};
_.p.handleReportFormEndpointUpdateAction=function(h){this.setNextButtonIsDisabled(!!h.disableSubmitButton);this.resetEndpointData();h.submitEndpoint?this.submitEndpoint=h.submitEndpoint:h.submitNavigationEndpoint&&(this.navigationEndpoint=h.submitNavigationEndpoint)};
_.p.handleSignalActionSubmitForm=function(){var h,E=Object.keys(((h=this.reportChannelAbuseForm)==null?void 0:h.selectedVideoIds)||{}),g;h=((g=this.reportChannelAbuseForm)==null?void 0:g.additionalContext)||"";var Z;g=((Z=this.reportChannelAbuseForm)==null?void 0:Z.impersonatedChannelUrl)||"";var M;if((M=this.data)==null?0:M.submitEndpoint){E={impersonated_channel_url:g,text:h,video_ids:E};var W;_.GF().resolve(_.zF).resolveCommand((W=this.data)==null?void 0:W.submitEndpoint,{form:Object.assign({},
E,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.p.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.p.onYtServiceRequestError=function(h){this.setNextButtonIsDisabled(!1);_.uv(this.hostElement,h.detail.error.message)};
_.p.setNextButtonIsDisabled=function(h){this.set("data.nextButton.buttonRenderer.isDisabled",h)};
_.p.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
cO.prototype.onYtServiceRequestError=cO.prototype.onYtServiceRequestError;cO.prototype.onYtServiceRequestCompleted=cO.prototype.onYtServiceRequestCompleted;_.Y([_.x(),_.V("design:type",Object)],cO.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],cO.prototype,"nextButtonDisabled",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],cO.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cO.prototype,"submitEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],cO.prototype,"navigationEndpoint",void 0);_.Y([_.x({selector:hEi.reportChannelAbuseSelector}),_.V("design:type",Object)],cO.prototype,"reportChannelAbuseForm",void 0);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],cO.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],cO.prototype,"onYtServiceRequestError",null);_.Y([_.K({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],cO);
_.X(cO,"ytd-report-channel-modal-footer-renderer",function(){if(EnU!==void 0)return EnU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return EnU=h},{mode:1});var gnc;var ia=function(){var h=_.D.apply(this,arguments)||this;h.boundOnTapDismissButton=function(){h.closePopup()};
return h};
_.f(ia,_.D);ia.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
ia.prototype.handleDataChanged=function(){_.h1(this.hostElement)};
ia.prototype.closePopup=function(){_.BX(this.hostElement,"yt-close-popup-action")};
ia.prototype.handleDataChanged=ia.prototype.handleDataChanged;_.Y([_.x(),_.V("design:type",Object)],ia.prototype,"boundOnTapDismissButton",void 0);_.Y([_.x(),_.V("design:type",Object)],ia.prototype,"data",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ia.prototype,"handleDataChanged",null);_.Y([_.K({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],ia);
_.X(ia,"ytd-report-channel-modal-header-renderer",function(){if(gnc!==void 0)return gnc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return gnc=h},{mode:1});var ZnZ;var o3=function(){var h=_.D.apply(this,arguments)||this;h.autoValidate=!1;h.invalid=!1;h.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return h};
_.f(o3,_.D);_.p=o3.prototype;_.p.attached=function(){var h=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){h.channelUrlInput.focusTextInput()})};
_.p.disableNextButton=function(h){_.BX(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[h])};
_.p.handleImpersonatedChannelUrlChanged=function(){var h=this;this.disableNextButton(!0);this.invalid=!1;_.EQ(this,"ytd-report-channel-impersonated-channel-update",function(){var E=h.impersonatedChannelUrl.trim();h.ytdReduxBehavior.dispatch(_.RY({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:E}));var g;((g=h.data)==null?0:g.submitEndpoint)&&E&&_.GF().resolve(_.zF).resolveCommand(h.data.submitEndpoint,{form:{impersonated_channel_url:E,element:h.hostElement}})},500)};
_.p.handleModifyReportFormCommand=function(h){this.invalid=this.get("modifyReportFormCommand.action",h)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.p.updateInvalidFromBinding=function(h){this.invalid=h.detail.value};
_.p.updateImpersonatedChannelUrlFromBinding=function(h){this.impersonatedChannelUrl=h.detail.value};
o3.prototype.handleImpersonatedChannelUrlChanged=o3.prototype.handleImpersonatedChannelUrlChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],o3.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],o3.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],o3.prototype,"autoValidate",void 0);_.Y([_.x(),_.V("design:type",Object)],o3.prototype,"invalid",void 0);
_.Y([_.x(),_.V("design:type",String)],o3.prototype,"impersonatedChannelUrl",void 0);_.Y([_.x({selector:hEi.impersonatedChannelUrlSelector}),_.V("design:type",String)],o3.prototype,"impersonatedChannelUrlRedux",void 0);_.Y([_.x(),_.V("design:type",Object)],o3.prototype,"data",void 0);_.Y([_.Sg("#text-input"),_.V("design:type",Object)],o3.prototype,"channelUrlInput",void 0);
_.Y([_.Nm("impersonatedChannelUrl"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],o3.prototype,"handleImpersonatedChannelUrlChanged",null);_.Y([_.K({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],o3);
_.X(o3,"ytd-report-channel-modal-impersonation-renderer",function(){if(ZnZ!==void 0)return ZnZ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ZnZ=h},{mode:1});var MGi;var WSG;var I3=function(){return _.D.apply(this,arguments)||this};
_.f(I3,_.D);I3.prototype.onCheckboxToggled=function(h){var E,g,Z=(g=_.e((E=this.data)==null?void 0:E.video,_.ax))==null?void 0:g.videoId;Z&&this.ytdReduxBehavior.dispatch(h.target.checked?_.RY({type:"VIDEO_SELECTED",payload:Z}):_.RY({type:"VIDEO_UNSELECTED",payload:Z}))};
I3.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ze.Object.defineProperties(I3.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var h,E=(h=this.data)==null?void 0:h.video;if(!E)return{};var g;h=(g=_.e(E,_.ax))==null?void 0:g.navigationEndpoint;if(!h)return E;_.e(h==null?void 0:h.commandMetadata,_.qH)&&(_.e(h.commandMetadata,_.qH).ignoreNavigation=!0);return E}}});
_.Y([_.x({reflectToAttribute:!0,selector:hEi.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.V("design:type",Boolean)],I3.prototype,"checked",void 0);_.Y([_.x(),_.V("design:type",Object)],I3.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],I3.prototype,"video",null);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],I3.prototype,"ytdReduxBehavior",void 0);_.Y([_.K({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],I3);
_.X(I3,"ytd-selectable-video-renderer",function(){if(WSG!==void 0)return WSG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return WSG=h},{mode:1});var R3=function(){var h=_.D.apply(this,arguments)||this;h.monitorScroll=!0;return h};
_.f(R3,_.D);R3.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],R3.prototype,"data",void 0);_.Y([_.K({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],R3);
_.X(R3,"ytd-selectable-video-list-renderer",function(){if(MGi!==void 0)return MGi;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return MGi=h},{mode:1});var pex;_.$P("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var PO=function(){return _.D.apply(this,arguments)||this};
_.f(PO,_.D);PO.prototype.onChange=function(h){if(h=_.zw(h).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.J("kevlar_command_handler_migration_killswitch"))_.jj(this.hostElement,h,this.hostElement);else{h=_.G(h);for(var E=h.next();!E.done;E=h.next())this.ytComponentBehavior.resolveCommand(E.value)}};
PO.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
PO.prototype.updateDataToggledFromBinding=function(h){this.set("data.toggled",h.detail.value)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],PO.prototype,"data",void 0);_.Y([_.x({computed:"isEnabled(data)"}),_.V("design:type",Boolean)],PO.prototype,"enabled",void 0);_.Y([_.K({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],PO);
_.X(PO,"ytd-toggle-item-renderer",function(){if(pex!==void 0)return pex;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return pex=h},{mode:1});var GxU;var zEp;var aFp;var BO=function(){var h=_.D.apply(this,arguments)||this;h.setVisible=!1;h.boundOnSubmitButtonClick=function(){h.onSubmitButtonClick()};
h.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return h};
_.f(BO,_.D);BO.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}}}}}};
BO.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
BO.prototype.onSubmitButtonClick=function(){var h;((h=this.data)==null?0:h.submitEndpoint)&&!_.J("enable_ytc_refunds_submit_form_signal_action")&&_.LZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
BO.prototype.handleSignalActionSubmitForm=function(){var h;((h=this.data)==null?0:h.submitEndpoint)&&_.LZ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ze.Object.defineProperties(BO.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.hiddenByDefault)&&!this.setVisible}}});
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],BO.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BO.prototype,"setVisible",void 0);_.Y([_.x(),_.V("design:type",Object)],BO.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],BO.prototype,"surveyFeedbackData",void 0);_.Y([_.x(),_.V("design:type",Object)],BO.prototype,"boundOnSubmitButtonClick",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data","setVisible"),_.V("design:type",Object),_.V("design:paramtypes",[])],BO.prototype,"visibilityHidden",null);_.Y([_.yc({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],BO);
_.X(BO,"yt-flow-footer-renderer",function(){if(aFp===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;zEp===void 0&&(zEp=document.createElement("template"));var Z=zEp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);aFp=h}h=aFp;return h},{mode:2});var cuJ=(0,_.IPU)(_.gR.ypc,{surveyFeedbackDataSelector:function(h){return h.surveyFeedbackData}});var U2=function(){return _.D.apply(this,arguments)||this};
_.f(U2,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],U2.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],U2.prototype,"data",void 0);_.Y([_.x({selector:cuJ.surveyFeedbackDataSelector}),_.V("design:type",Object)],U2.prototype,"surveyFeedbackData",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],U2);
_.X(U2,"ytd-flow-footer-renderer",function(){if(GxU!==void 0)return GxU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GxU=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var in0;var onI;var LR=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return h};
_.f(LR,_.D);_.p=LR.prototype;_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.KO("multiPageMenuSectionItems")}}};
_.p.handleHideEnclosingAction_=function(h){if(this.data&&this.data.items)for(var E=0;E<this.data.items.length;E++){var g=this.data.items[E].notificationRenderer;if(g&&g.notificationId==h.hideEnclosingAction.notificationId){this.splice("data.items",E,1);_.BX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.p.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.dD(this.hostElement,"hidden",!0)};
_.p.updateMenu_=function(h){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&h&&!h.doNotRefreshInbox){h=this.data.continuations;for(var E=0;E<h.length;E++)if(h[E].invalidationContinuationData){var g=void 0;var Z=(g=h[E].invalidationContinuationData)==null?void 0:g.continuation;break}h=_.Kt.clone(this.data.continuationUpdateEndpoint||null);h.continuation=Z;h.click_tracking_params=this.data.trackingParams;_.LZ(this.hostElement,[h])}};
_.p.onServiceRequestCompleted_=function(h,E){if(this.data&&(h=E.actions)){E=0;for(var g=h.length;E<g;E++){var Z=_.e(h[E],_.aYl);if(!Z)break;if((Z.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||Z.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&Z.continuationItems&&this.data.items){var M=this.data.items.length-1;this.data.items[M].continuationItemRenderer&&(Z=["data.items",M,1].concat(Z.continuationItems),this.splice.apply(this,Z))}}}};
LR.prototype.onServiceRequestCompleted_=LR.prototype.onServiceRequestCompleted_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],LR.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],LR.prototype,"data",void 0);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],LR.prototype,"onServiceRequestCompleted_",null);_.Y([_.yc({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],LR);
_.BK()(LR,"yt-multi-page-menu-section-renderer",function(){if(onI===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;in0===void 0&&(in0=document.createElement("template"));var Z=in0;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);onI=h}h=onI;return h},{allowedProps:["data"],
mode:2});var IF0;var REC;var jw=function(){return _.D.apply(this,arguments)||this};
_.f(jw,_.D);jw.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ze.Object.defineProperties(jw.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.progress)==null?0:this.data.progress*100}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jw.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jw.prototype,"data",void 0);_.Y([_.S("data.progress"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],jw.prototype,"showProgressBar",null);
_.Y([_.S("data.progress"),_.V("design:type",Number),_.V("design:paramtypes",[])],jw.prototype,"progress",null);_.Y([_.yc({is:"yt-flow-header-renderer",disableElementRegistration:!0})],jw);
_.X(jw,"yt-flow-header-renderer",function(){if(REC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;IF0===void 0&&(IF0=document.createElement("template"));var Z=IF0;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);REC=h}h=REC;return h},{mode:2});var P70;var BwG;var dz=function(){return _.D.apply(this,arguments)||this};
_.f(dz,_.D);dz.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],dz.prototype,"data",void 0);_.Y([_.yc({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],dz);
_.X(dz,"yt-post-confirmation-flow-step-renderer",function(){if(BwG===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;P70===void 0&&(P70=document.createElement("template"));var Z=P70;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);BwG=h}h=BwG;return h},{mode:2});var U1Z;var LSR;var CR=function(){return _.D.apply(this,arguments)||this};
_.f(CR,_.D);
CR.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],CR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],CR.prototype,"data",void 0);_.Y([_.yc({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],CR);
_.X(CR,"yt-refund-confirmation-flow-step-renderer",function(){if(LSR===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;U1Z===void 0&&(U1Z=document.createElement("template"));var Z=U1Z;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);LSR=h}h=LSR;return h},{mode:2});var jyp=_.O(function(h){var E=h.data;return _.R("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.R("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.R(_.pO,{data:function(){return{thumbnails:[{url:E().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.R("div",{class:"profileBadgeViewModelContent"},_.R("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return E().badgeDesc}),_.R(_.P,{cond:function(){return E().badgeSubtitle},
then:function(){return _.R("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return E().badgeSubtitle})}})))},"oh");
jyp.idomCompat=!0;var d1U=_.O(function(h){var E=h.data;return _.R("yt-comment-interaction-view-model",{el:_.zT(_.n4(function(){return E().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.R("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return E().onTapA11yLabel},
"on:keydown":_.acW(),tabindex:0},_.R("div",{class:"ytCommentInteractionViewModelHeader"},_.R("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return E().headerPrefix},' "',function(){return E().videoTitle}),_.R("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.R("div",{class:"ytCommentInteractionViewModelContent"},_.R("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return E().commentContent}),_.R("div",{class:"ytCommentInteractionViewModelChevron"},
_.R(_.pO,{data:function(){return{thumbnails:[{url:E().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ph");
d1U.idomCompat=!0;var C7C=_.O(function(h){var E=h.data;return _.R("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq}),_.R("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return E().channelName}))},"qh");
C7C.idomCompat=!0;var NwG=_.O(function(h){var E=h.data;h={};return _.R("yt-profile-info-view-model",{class:_.CO("ytProfileInfoViewModelHost",(h.ytProfileInfoViewModelWithVideoShelf=function(){return E().videosHorizontalShelf},h))},_.R(JuJ,{profileInfo:E}),_.R(_.Sv,{data:function(){return E().videosHorizontalShelf}},{horizontalShelfViewModel:function(g){return _.R("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.R(_.cE,{data:g.data}))}}),_.R(_.P,{cond:function(){return E().comments},
then:function(){return _.R(eEZ,{profileInfo:E})}}),_.R(_.P,{cond:function(){return E().sharedSubscriptionsTitle},
then:function(){return _.R(_.P,{cond:function(){return E().subscriptionsAccessButtonCommand},
then:function(){return _.R(qyG,{profileInfo:E})},
else:function(){return _.R(fFZ,{profileInfo:E})}})}}))},"rh");
NwG.idomCompat=!0;var eEZ=_.O(function(h){var E=h.profileInfo;return _.R("div",{class:"ytProfileInfoViewModelActivity"},_.R("div",{class:"ytProfileInfoViewModelHeader"},_.R("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().commentsInteractionTitle})),_.R(_.Sv,{data:function(){return E().comments}},{commentInteractionViewModel:function(g){return _.R("div",{class:"ytProfileInfoViewModelActivity"},_.R(d1U,{data:g.data}))}}))},"sh"),qyG=_.O(function(h){var E=h.profileInfo;
return _.R("div",{class:"ytProfileInfoViewModelSubSection"},_.R("div",{class:"ytProfileInfoViewModelSubHeader"},_.R(_.lk,{command:function(){return E().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.R("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return E().sharedSubscriptionsTitle}),_.R("div",null,_.R(_.Sv,{data:function(){return E().subscriptionsAccessButton}},{buttonViewModel:_.$l})))),_.R(tGU,{sharedSubscriptions:function(){var g;
return((g=E().sharedSubscriptions)==null?void 0:g.slice(0,5))||[]}}))},"th"),fFZ=_.O(function(h){var E=h.profileInfo;
return _.R("div",{class:"ytProfileInfoViewModelSubSection"},_.R("div",{class:"ytProfileInfoViewModelSubHeader"},_.R("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().sharedSubscriptionsTitle})),_.R(tGU,{sharedSubscriptions:function(){var g;
return((g=E().sharedSubscriptions)==null?void 0:g.slice(0,5))||[]}}))},"uh"),tGU=_.O(function(h){return _.R("div",{class:"ytProfileInfoViewModelSubs"},_.R(_.Sv,{data:h.sharedSubscriptions},{sharedSubscriptionViewModel:function(E){return _.R("div",{class:"ytProfileInfoViewModelSub"},_.R(C7C,{data:E.data}))}}))},"vh"),JuJ=_.O(function(h){var E=h.profileInfo;
return _.R("div",{class:"ytProfileInfoViewModelActivity"},_.R(_.SX,{each:function(){return[E().profileBadgeInfoYtWide,E().profileBadgeInfoChannelWide].filter(function(g){return!!g})},
keyBy:"INDEX"},function(g){return _.R(_.zt,null,_.R("div",{class:"ytProfileInfoViewModelHeader"},_.R("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return g().profileSectionTitle}),_.R("div",{class:"ytProfileInfoViewModelSectionDesc"},_.R("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Z;
return(Z=g().commentBadge)==null?void 0:Z.commentDesc}),_.R(_.P,{cond:function(){var Z;
return(Z=g().commentBadge)==null?void 0:Z.blackHeartDesc},
then:function(){return _.R("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.R("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.R(_.pO,{data:function(){var Z;
return{thumbnails:[{url:(Z=g().commentBadge)==null?void 0:Z.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.R("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var Z;return(Z=g().commentBadge)==null?void 0:Z.blackHeartDesc}))),_.R("div",{class:"ytProfileInfoViewModelBadge"},_.R(_.SX,{each:function(){return g().badges||[]}},function(Z){return _.R(jyp,{data:Z})})))}))},"wh");var SyI=_.O(function(h){var E=h.data;var g=function(){return E().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.R("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.R(_.Sv,{data:function(){return E().profileIdentityInfo}},{profileIdentityInfoViewModel:function(Z){return _.R(_.e80,{data:Z.data,
hideDivider:g,isChannelInfoCard:g})},
profileInfoViewModel:NwG}),_.R(_.Sv,{data:function(){return E().profileInfo}},{profileIdentityInfoViewModel:_.e80,
profileInfoViewModel:NwG}))},"xh");
SyI.idomCompat=!0;_.I9(SyI,"yt-profile-card-view-model",{props:{data:_.C6}});var J4=function(){var h=_.D.apply(this,arguments)||this;h.enableFocusFix=_.J("music_web_enable_focus_on_setting_menu_fix")&&_.Xn("IS_MOBILE_WEB",!1);h.covered=!1;h.hideMenu=!1;h.isCommentNotificationOnProfileCard=!1;h.scrolledByTouch=!1;h.disableBackdropFilter=_.J("web_disable_backdrop_filter");h.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return h};
_.f(J4,_.D);_.p=J4.prototype;
_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.p.ready=function(){var h=this;this.JSC$20179_containerElement.addEventListener("scroll",function(){h.ytRendererBehavior.markDirty()})};
_.p.attributeChanged=function(h,E){h==="menu-style"&&_.BX(this.hostElement,"yt-multi-page-menu-closed-action",[E])};
_.p.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qm(this,this.focusOnStampFinished))};
_.p.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.qm(this,this.focusOnStampFinished))};
_.p.reset=function(){this.closeJobId&&(_.KP.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.p.focusOnStampFinished=function(h){h.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qm(this,this.focusOnStampFinished)),this.doFocus())};
_.p.doFocus=function(){var h=_.ouM(this.sectionsElement);h.length&&h[0].focus()};
_.p.computeMenuStyle=function(h){return h?h.toLowerCase().replace(/_/g,"-"):""};
_.p.computeIsCommentNotificationOnProfileCard=function(h){return _.J("enable_profile_cards_on_comments")&&h.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.p.computeHideMenu=function(h,E){return h||!(!E||!E.showLoadingSpinner)};
_.p.onPopupClosed=function(){this.isPopUpOpen=!1;_.BX(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.p.onPopupOpened=function(h,E){this.isPopUpOpen=!0;E.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Ra(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.RY({type:"CHANNEL_REPORT_RESET"})))};
_.p.onYtNavigate=function(h,E){this.shouldCloseOnNavigateEvent(E.endpoint)&&_.BX(this.hostElement,"yt-close-all-popups-action")};
_.p.handleEndpoint=function(h){h=_.e(h,_.Zs);!this.isCommentNotificationOnProfileCard&&h&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20179_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.p.handleActions=function(h){for(var E=0,g=h.length;E<g;E++){var Z=_.e(h[E],ZJZ);Z&&this.handleGetMultiPageMenuAction(Z);(Z=_.e(h[E],_.aYl))&&this.handleAppendContinuationItemsAction(Z)}};
_.p.onServiceRequestSentOrCompleted=function(h,E){h.detail&&h.detail.endpoint&&this.handleEndpoint(h.detail.endpoint);E.actions&&this.handleActions(E.actions)};
_.p.handleGetMultiPageMenuAction=function(h){var E=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.UB(this.submenuElement).appendChild(E);(h=h.menu.multiPageMenuRenderer)&&this.logSubmenu(h);E.data=h;E.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.p.handleAppendContinuationItemsAction=function(h){if(this.data&&h.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&h.continuationItems&&this.data.sections){var E=this.data.sections.length-1;this.data.sections[E].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),E--);if(this.data.sections[E].multiPageMenuNotificationSectionRenderer&&h.continuationItems){h=_.G(h==null?void 0:h.continuationItems);for(var g=h.next();!g.done;g=h.next())if(g=g.value,_.e(g,xyG)){var Z=
void 0,M=void 0,W=void 0,z=void 0,c=void 0;((Z=this)==null?0:(M=Z.data)==null?0:(W=M.sections)==null?0:(z=W[E])==null?0:(c=z.multiPageMenuNotificationSectionRenderer)==null?0:c.items)&&this.push("data.sections."+E+".multiPageMenuNotificationSectionRenderer.items",g)}else if(_.e(g,_.QbD)||_.e(g,_.Ec))this.push("data.sections",g),E++}}};
_.p.logSubmenu=function(h){if(!_.J("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var E=this.ytRendererBehavior.getScreenLayer(),g=_.sH(E),Z=_.YN(E);if((h=h.trackingParams)&&g&&Z){var M=_.rp(h);_.J("combine_ve_grafts")?_.SQ().graftServerVe(h,Z,E):_.uw(g,Z,M)}}};
_.p.emptySubmenuContainer=function(){for(var h=_.UB(this.submenuElement);h.firstChild;)h.removeChild(h.firstChild)};
_.p.onMenuBackTap=function(h){_.Ra(this.hostElement,"yt-submenu-closed");h.stopPropagation()};
_.p.onSubmenuClosed=function(h){_.zw(h)!==this.hostElement&&(this.covered=!1,_.Ra(this.hostElement,"yt-refit"),h.stopPropagation())};
_.p.onRetrieveLocation=function(h,E){E.hasComments&&(E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),h.stopPropagation())};
_.p.shouldCloseOnNavigateEvent=function(h){if(!h)return!0;if(_.e(h,_.qrD)||_.e(h,_.fLH)||_.e(h,_.eRM)||_.e(h,_.yX))return!1;var E;return((E=_.e(h==null?void 0:h.commandMetadata,_.qH))==null?0:E.ignoreNavigation)?!1:!0};
_.p.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.p.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.p.refitAfterRender=function(){var h=this;_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit")})};
J4.prototype.refitAfterRender=J4.prototype.refitAfterRender;J4.prototype.onRetrieveLocation=J4.prototype.onRetrieveLocation;J4.prototype.onSubmenuClosed=J4.prototype.onSubmenuClosed;J4.prototype.onMenuBackTap=J4.prototype.onMenuBackTap;J4.prototype.onServiceRequestSentOrCompleted=J4.prototype.onServiceRequestSentOrCompleted;J4.prototype.onYtNavigate=J4.prototype.onYtNavigate;J4.prototype.onPopupOpened=J4.prototype.onPopupOpened;J4.prototype.onPopupClosed=J4.prototype.onPopupClosed;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],J4.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],J4.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],J4.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],J4.prototype,"enableFocusFix",void 0);_.Y([_.x(),_.V("design:type",Object)],J4.prototype,"covered",void 0);_.Y([_.x({computed:"computeHideMenu(covered, data)"}),_.V("design:type",Object)],J4.prototype,"hideMenu",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.V("design:type",String)],J4.prototype,"menuStyle",void 0);
_.Y([_.x({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.V("design:type",Object)],J4.prototype,"isCommentNotificationOnProfileCard",void 0);_.Y([_.x(),_.V("design:type",Boolean)],J4.prototype,"isPopUpOpen",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],J4.prototype,"scrolledByTouch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],J4.prototype,"disableBackdropFilter",void 0);
_.Y([_.Sg("#sections"),_.V("design:type",HTMLElement)],J4.prototype,"sectionsElement",void 0);_.Y([_.Sg("#spinner"),_.V("design:type",HTMLElement)],J4.prototype,"spinnerElement",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],J4.prototype,"headerElement",void 0);_.Y([_.Sg("#container"),_.V("design:type",HTMLElement)],J4.prototype,"JSC$20179_containerElement",void 0);_.Y([_.Sg("#submenu"),_.V("design:type",HTMLElement)],J4.prototype,"submenuElement",void 0);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J4.prototype,"onPopupClosed",null);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],J4.prototype,"onPopupOpened",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],J4.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-service-request-completed"),_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],J4.prototype,"onServiceRequestSentOrCompleted",null);_.Y([_.f3("yt-menu-back-tapped"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],J4.prototype,"onMenuBackTap",null);
_.Y([_.f3("yt-submenu-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],J4.prototype,"onSubmenuClosed",null);_.Y([_.f3("yt-retrieve-location"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],J4.prototype,"onRetrieveLocation",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],J4.prototype,"refitAfterRender",null);
_.Y([_.K({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],J4);
_.X(J4,"ytd-multi-page-menu-renderer",function(){if(A$Z!==void 0)return A$Z;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return A$Z=h},{mode:1});var x1x;var ew=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return h};
_.f(ew,_.D);_.p=ew.prototype;_.p.created=function(){this.showTooltips=!0};
_.p.computeAccessibility_=function(h){return this.get("accessibility.accessibilityData",h)||null};
_.p.onTap=function(){var h=_.U7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(h&&h.length===1&&h[0])_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var E;if((E=this.data)==null?0:E.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var g;((g=this.data)==null?0:g.menuRequest)&&_.LZ(this.hostElement,[this.data.menuRequest])}}};
_.p.handleTopbarMenuClosedAction=function(h){var E,g;(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(h)===((E=this.data)==null?void 0:(g=E.icon)==null?void 0:g.iconType)&&this.toggleIconState(!1)};
_.p.toggleIconState=function(h){_.J("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=h)};
_.p.handleUpdateTopbarAvatarAction=function(h){var E;h=(E=_.e(h,TK0))==null?void 0:E.avatarUrl;var g,Z;E=(g=this.data)==null?void 0:(Z=g.avatar)==null?void 0:Z.thumbnails;h&&E&&(g={thumbnails:[Object.assign({},E[0],{url:h})]},this.set("data.avatar",g))};
_.ze.Object.defineProperties(ew.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.UB(this.hostElement).querySelector("#button")}}});
ew.prototype.onTap=ew.prototype.onTap;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],ew.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],ew.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.GQf.YtButtonBehavior),_.V("design:type",Object)],ew.prototype,"ytButtonBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ew.prototype,"data",void 0);
_.Y([_.Sg("yt-icon-button#button"),_.V("design:type",Object)],ew.prototype,"iconButton",void 0);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ew.prototype,"onTap",null);_.Y([_.K({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],ew);
_.BK()(ew,"ytd-topbar-menu-button-renderer",function(){if(x1x===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);x1x=h}h=x1x;return h},{allowedProps:["data"],
mode:1});var wex;var qe=function(){return _.D.apply(this,arguments)||this};
_.f(qe,_.D);qe.prototype.getSelected=function(){return this.reasons.selected};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],qe.prototype,"data",void 0);_.Y([_.Sg("#reasons"),_.V("design:type",Object)],qe.prototype,"reasons",void 0);_.Y([_.K({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],qe);
_.X(qe,"ytd-ad-feedback-content",function(){if(wex!==void 0)return wex;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return wex=h},{mode:1});var D1U;var fR=function(){return _.D.apply(this,arguments)||this};
_.f(fR,_.D);_.p=fR.prototype;_.p.onPopupOpened=function(){_.BX(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.p.computeConfirmButton=function(h){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:h.confirmLabel}};
_.p.computeCancelButton=function(h){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:h.cancelLabel}};
_.p.onConfirmTap=function(){var h=this.content.getSelected();h!==void 0&&(h=this.data.reasons[h].endpoint)&&(_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}}),_.BX(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.p.sendFeedbackSubmitToastAction=function(){var h;(h=this.data)!=null&&h.completionMessage&&_.BX(this.hostElement,"yt-open-popup-action",[_.at(this.data.completionMessage),this])};
_.p.onCancelTap=function(){_.BX(this.hostElement,"yt-close-popup-action")};
fR.prototype.onPopupOpened=fR.prototype.onPopupOpened;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],fR.prototype,"data",void 0);_.Y([_.Sg("#content"),_.V("design:type",Object)],fR.prototype,"content",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],fR.prototype,"onPopupOpened",null);
_.Y([_.K({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],fR);
_.X(fR,"ytd-ad-feedback-renderer",function(){if(D1U!==void 0)return D1U;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return D1U=h},{mode:1});var lFG;var Ne=function(){return _.D.apply(this,arguments)||this};
_.f(Ne,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ne.prototype,"data",void 0);_.Y([_.K({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Ne);
_.X(Ne,"ytd-ad-info-dialog-content",function(){if(lFG!==void 0)return lFG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return lFG=h},{mode:1});var ruZ;var t4=function(){return _.D.apply(this,arguments)||this};
_.f(t4,_.D);t4.prototype.computeConfirmButton=function(h){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:h.confirmLabel}};
t4.prototype.onConfirmTap=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
t4.prototype.computeShouldShowTitle=function(){var h;return!((h=this.data)==null||!h.title)};
t4.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
t4.prototype.onPopupClosed=t4.prototype.onPopupClosed;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],t4.prototype,"data",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],t4.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],t4);
_.X(t4,"ytd-ad-info-dialog-renderer",function(){if(ruZ!==void 0)return ruZ;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ruZ=h},{mode:1});var m1x;var Sw=function(){var h=_.D.apply(this,arguments)||this;h.actionButtonClass="action-button";h.dismissButtonId="dismiss-button";h.dialogDismiss=!0;return h};
_.f(Sw,_.D);_.p=Sw.prototype;_.p.computeInPlayer=function(h){return(h==null?void 0:h.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.p.computedLogo=function(){var h,E;return this.isDarkTheme()?(h=this.data)==null?void 0:h.logoDark:(E=this.data)==null?void 0:E.logo};
_.p.computedHeaderImage=function(){var h,E;return this.isDarkTheme()?(h=this.data)==null?void 0:h.headerImageDark:(E=this.data)==null?void 0:E.headerImage};
_.p.computeLogoIconId=function(){var h,E,g,Z=(h=this.computedLogo())==null?void 0:(E=h.sources)==null?void 0:(g=E[0])==null?void 0:g.height;return Z&&Z%31===0?"logo-icon-with-padding":"logo-icon"};
_.p.computeLogoIconHeight=function(){var h,E,g,Z=(h=this.computedLogo())==null?void 0:(E=h.sources)==null?void 0:(g=E[0])==null?void 0:g.height;return Z&&Z%31===0?"31":"24"};
_.p.onPopupClosed=function(){_.GF().resolve(_.Yy).dispose()};
_.p.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.p.onShow=function(){this.inPlayer&&_.qR(6);this.titleElement.focus()};
_.p.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var h=0;h<this.data.impressionEndpoints.length;h++){var E=_.e(this.data.impressionEndpoints[h],_.V1);E&&this.ytComponentBehavior.resolveCommand(E)}};
_.p.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.BX(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ze.Object.defineProperties(Sw.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var h,E;return!((h=this.data)==null||!h.headerImageDark)&&!((E=this.data)==null||!E.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.secondaryButton)}}});
Sw.prototype.onPopupClosed=Sw.prototype.onPopupClosed;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Sw.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.B4.YtVisibilityBehavior),_.V("design:type",Object)],Sw.prototype,"ytVisibilityBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Sw.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],Sw.prototype,"actionButtonClass",void 0);_.Y([_.x(),_.V("design:type",Object)],Sw.prototype,"dismissButtonId",void 0);_.Y([_.x(),_.V("design:type",Object)],Sw.prototype,"dialogDismiss",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sw.prototype,"hasHeaderImage",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Sw.prototype,"hasPremiumButton",null);
_.Y([_.x({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.V("design:type",Boolean)],Sw.prototype,"inPlayer",void 0);_.Y([_.Sg("#dismiss-button"),_.V("design:type",HTMLElement)],Sw.prototype,"dismissButton",void 0);_.Y([_.Sg("#title"),_.V("design:type",HTMLElement)],Sw.prototype,"titleElement",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Sw.prototype,"onPopupClosed",null);
_.Y([_.K({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Sw);
_.X(Sw,"ytd-enforcement-message-view-model",function(){if(m1x!==void 0)return m1x;var h=document.createElement("template");_.N(h,'\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="fc-dialog-container 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" tabindex="0" role="heading" 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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return m1x=h},{mode:1});var vnC;var HnI;var xH=function(){var h=_.D.apply(this,arguments)||this;h.TEST_ONLY={immediateValidation:function(){h.immediateValidation()},
onValidationResponse:function(E){h.onValidationResponse(E)},
onGenerateHandleFromNameResponse:function(E){h.onGenerateHandleFromNameResponse(E)}};
return h};
_.f(xH,_.D);_.p=xH.prototype;_.p.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.p.validate=function(){this.immediateValidation()};
_.p.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.p.setHandleInputValue=function(h){this.handleDir=this.getHandleDir(h);this.handleInput.value=h;this.validationState={status:"PENDING"};this.immediateValidation()};
_.p.getHandleDir=function(h){var E=h===""&&!1;return(E=_.bIF.test.call(_.bIF,h))?"rtl":"ltr"};
_.p.onDataChanged=function(){var h,E;this.handleDir=this.getHandleDir((E=(h=this.data)==null?void 0:h.handle)!=null?E:"");var g;this.validationState=((g=this.data)==null?0:g.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var Z;((Z=this.data)==null?0:Z.validateOnInit)&&this.immediateValidation()};
_.p.stopPropagation=function(h){h.stopPropagation()};
_.p.onInput=function(){var h;this.handleDir=this.getHandleDir((h=this.handleInput.value)!=null?h:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.p.onFocusout=function(h){this.handleInput.contains(h.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.p.delayedValidation=function(){var h,E;this.debouncedValidation((E=(h=this.data)==null?void 0:h.validationDelayMs)!=null?E:1E3)};
_.p.immediateValidation=function(){this.debouncedValidation(0)};
_.p.debouncedValidation=function(h){var E=this;_.EQ(this,"debouncedValidation",function(){var g,Z=E.staticValidation((g=E.handleInput.value)!=null?g:"");if(Z!==void 0)E.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:Z};else{var M;if((M=E.data)!=null&&M.validateChannelHandleCommand){E.validationState={status:"LOADING"};var W;E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{handle:(W=E.handleInput.value)!=null?W:""},commandController:{onSuccess:function(z,
c){E.onValidationResponse(c)},
onServerError:function(z,c){E.onValidationServerError(c)}}})}else E.handleUnexpectedValidationError(new _.xX("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",E.data))}},h)};
_.p.staticValidation=function(h){var E;if(((E=this.data)==null?void 0:E.channelHandleStaticValidationParams)!==void 0){E=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(h)&&E.validValueRegexpErrorMessage!==void 0)return E.validValueRegexpErrorMessage;if(E.minLength!==void 0&&h.length<E.minLength&&E.minLengthErrorMessage!==void 0)return E.minLengthErrorMessage;if(E.maxLength!==void 0&&h.length>E.maxLength&&E.maxLengthErrorMessage!==void 0)return E.maxLengthErrorMessage}};
_.p.onValidationResponse=function(h){var E=_.e(h.result,b6c);E===void 0?this.handleUnexpectedValidationError(new _.xX("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",h)):this.handleValidationResultRenderer(E)};
_.p.onValidationServerError=function(h){this.handleUnexpectedValidationError(new _.xX("ValidateChannelHandle request failed.",h))};
_.p.handleValidationResultRenderer=function(h){if(h.handle===void 0)this.handleUnexpectedValidationError(new _.xX("ChannelHandleValidationResultRenderer does not contain handle.",h));else if(h.handle===this.handleInput.value)switch(h.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:h.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:h.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.xX("Unrecognized ChannelHandleValidationResult",h));break;default:_.Vk(h.result)}};
_.p.handleUnexpectedValidationError=function(h){var E;this.validationState={status:"UNKNOWN",handle:(E=this.handleInput.value)!=null?E:""};_.O$(h)};
_.p.stopEventPropagation=function(h){h.stopPropagation()};
_.p.updateHandleOnChannelNameInputChange=function(h){if(!this.wasEdited){var E,g;this.debouncedGenerateHandleFromName(h,(g=(E=this.data)==null?void 0:E.validationDelayMs)!=null?g:1E3)}};
_.p.debouncedGenerateHandleFromName=function(h,E){var g=this;_.EQ(this,"debouncedGenerateHandleFromName",function(){var Z;(Z=g.data)!=null&&Z.validateChannelHandleCommand?g.ytComponentBehavior.resolveCommand(g.data.validateChannelHandleCommand,{form:{name:h},commandController:{onSuccess:function(M,W){g.onGenerateHandleFromNameResponse(W)},
onServerError:function(M,W){_.O$(new _.xX("Error calling GenerateHandleFromName",W))}}}):_.O$(new _.xX("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",g.data))},E)};
_.p.onGenerateHandleFromNameResponse=function(h){this.wasEdited||((h=_.e(h.result,udc))?this.setHandleInputValue(h.handle):_.O$(new _.xX("Invalid results when generate handle from name")))};
_.ze.Object.defineProperties(xH.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var h;if(h=this.validationState)h=this.validationState,h=h.status==="OK"||h.status==="UNKNOWN";if(h)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var h;if(((h=this.validationState)==null?void 0:h.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 h,E=(h=this.channelHandleEntity)==null?void 0:h.handleEdit;this.handleDir=this.getHandleDir(E!=null?E:"");return E}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var h,E;if(((h=this.data)==null?void 0:(E=h.channelHandleStaticValidationParams)==null?void 0:E.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
xH.prototype.stopEventPropagation=xH.prototype.stopEventPropagation;xH.prototype.onDataChanged=xH.prototype.onDataChanged;xH.prototype.applyHandleEdit=xH.prototype.applyHandleEdit;xH.prototype.onValueChanged=xH.prototype.onValueChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xH.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],xH.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xH.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],xH.prototype,"wasEdited",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],xH.prototype,"handleDir",void 0);_.Y([_.Sg("#handle-input"),_.V("design:type",Object)],xH.prototype,"handleInput",void 0);_.Y([_.x(),_.S("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],xH.prototype,"value",null);
_.Y([_.Nm("value"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xH.prototype,"onValueChanged",null);_.Y([_.S("validationState"),_.V("design:type",Object),_.V("design:paramtypes",[])],xH.prototype,"errorIndicator",null);_.Y([_.x({reflectToAttribute:!0}),_.S("errorIndicator"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],xH.prototype,"borderErrorIndicator",null);
_.Y([_.x({selectorArgs:["data.channelHandleEntityKey"],selector:function(h,E){return _.Jj(h.entities,"channelHandle",E)}}),
_.V("design:type",Object)],xH.prototype,"channelHandleEntity",void 0);_.Y([_.S("channelHandleEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],xH.prototype,"handleEdit",null);_.Y([_.Nm("handleEdit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xH.prototype,"applyHandleEdit",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xH.prototype,"onDataChanged",null);
_.Y([_.S("data.channelHandleStaticValidationParams.validValueRegexp"),_.V("design:type",Object),_.V("design:paramtypes",[])],xH.prototype,"validValueRegexp",null);_.Y([_.f3("yt-service-request-sent"),_.f3("yt-service-request-completed"),_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],xH.prototype,"stopEventPropagation",null);_.Y([_.K({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],xH);
_.X(xH,"ytd-channel-handle-input-renderer",function(){if(HnI!==void 0)return HnI;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return HnI=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var wz=function(){var h=_.D.apply(this,arguments)||this;h.data=null;h.errorMessage=null;h.isLoading=!0;h.hideContainer=!1;h.enableNewChannelCreationOnIdForAll=_.J("enable_new_channel_creation_for_id4all");h.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"};h.testOnly={setErrorMessage:function(E){h.resetErrorState();
h.setErrorState(E)}};
return h};
_.f(wz,_.D);_.p=wz.prototype;_.p.created=function(){this.logScreenVe()};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var h;((h=this.zeroStepErrorMessageEntity)==null?0:h.value)&&this.set("errorMessage",_.MR(this.zeroStepErrorMessageEntity.value))};
_.p.onCreateTap=function(){var h=this;if(this.data&&this.data.channelCreationEndpoint){var E,g;if(!((E=this.data.createChannelButton)==null?0:(g=E.buttonRenderer)==null?0:g.isDisabled)){var Z;if((Z=this.nameInput)!=null&&Z.value){this.setLoadingState();var M,W;E=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(M=this.handleInput)==null?void 0:M.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((W=this.handleInput)==null?void 0:W.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:E,commandController:{onSuccess:function(z,c){h.onChannelCreationEndpointSuccess(c);h.obakeImageSource&&_.vT("channelCreatedWithObakeImage",{imageSourceType:h.obakeImageSource})},
onServerError:function(){h.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.p.endpointRequiresServiceRequestAction=function(h){return!!_.e(h,_.lz)||!!_.e(h,TK0)};
_.p.isNavigateAction=function(h){var E;return!!_.e(h,_.Dm)||!!_.e((E=_.e(h,EKG))==null?void 0:E.command,_.Dm)};
_.p.isPlaylistAction=function(h){return!!_.e(h,_.M8)||!!_.e(h,_.ct)};
_.p.onChannelCreationEndpointSuccess=function(h){if(h.createChannelError){var E;this.setErrorState((E=h.createChannelError)==null?void 0:E.errorMessage);this.handleInput&&this.handleInput.validate()}else{h.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(h.navigationEndpoint);if(h.actions){E=_.G(h.actions);for(var g=E.next();!g.done;g=E.next())if(g=g.value,this.endpointRequiresServiceRequestAction(g)&&this.ytComponentBehavior.resolveCommand(g),this.isNavigateAction(g)){var Z=void 0;g=_.e((Z=
_.e(g,EKG))==null?void 0:Z.command,_.Dm);Z=void 0;this.isPlaylistAction((Z=g)==null?void 0:Z.endpoint)&&(_.BX(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),Z=void 0,this.ytComponentBehavior.resolveCommand((Z=g)==null?void 0:Z.endpoint))}}h.actions&&h.actions.some(function(M){var W;return _.e(M,_.Dm)||_.e((W=_.e(M,EKG))==null?void 0:W.command,_.Dm)})||_.BX(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.p.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.p.onCancelTap=function(){var h,E,g;if(!((h=this.data)==null?0:(E=h.cancelButton)==null?0:(g=E.buttonRenderer)==null?0:g.isDisabled)){var Z,M,W;h=(Z=this.data)==null?void 0:(M=Z.cancelButton)==null?void 0:(W=M.buttonRenderer)==null?void 0:W.command;if(!h||!_.e(h,_.Q$$)){var z;this.nameInput&&((z=this.data)==null?0:z.name)&&(this.nameInput.value=this.data.name);var c;this.handleInput&&((c=this.data)==null?0:c.channelHandleInput)&&(this.handleInput.data=_.e(this.data.channelHandleInput,QUc));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.p.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.p.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.p.onClearProfilePhotoTap=function(){var h,E,g;((h=this.data)==null?0:(E=h.clearProfilePhotoButton)==null?0:(g=E.buttonRenderer)==null?0:g.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.p.onEditAvatarTap=function(){var h,E,g;((h=this.data)==null?0:(E=h.editAvatarButton)==null?0:(g=E.buttonRenderer)==null?0:g.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.p.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.p.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var h;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((h=this.data)==null?0:h.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.p.setErrorState=function(h){this.resetErrorState();if(h)this.set("errorMessage",h);else{var E;if((E=this.zeroStepErrorMessageEntity)==null?0:E.value)this.set("errorMessage",_.MR(this.zeroStepErrorMessageEntity.value));else{var g;((g=this.data)==null?0:g.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.p.fetchImageBlobWithAlr=function(h,E){E=E===void 0?5:E;var g=this,Z,M,W,z,c;return _.a(function(I){switch(I.nextAddress){case 1:return I.yield(fetch(h,{method:"GET",mode:"cors"}),2);case 2:Z=I.yieldResult;if(Z.ok){I.jumpTo(3);break}if(E===0)throw Error();M=g.addJitter(Math.pow(2,5-E));return I.yield(new Promise(function(B){setTimeout(B,M*1E3)}),4);
case 4:return I.return(g.fetchImageBlobWithAlr(h,E-1));case 3:if(!Z.headers.get("content-type").split(";").some(function(B){return B.trim()==="text/plain"})){I.jumpTo(5);
break}W=g;z=W.fetchImageBlobWithAlr;return I.yield(Z.text(),6);case 6:return I.return(z.call(W,I.yieldResult,E-1));case 5:return I.yield(Z.blob(),7);case 7:return c=I.yieldResult,I.return(c)}})};
_.p.addJitter=function(h){var E=h*.3*Math.random();Math.random()>.5&&(E*=-1);return h+E};
_.p.openProfilePicturePicker=function(){var h=this,E,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){E=h.data.scottyUploadUrl;if(!E)return z.return();g=document.documentElement.hasAttribute("dark");Z=document.body.style.colorScheme;g&&(document.body.style.colorScheme="dark");M=MuG(WCR(Z20(ThC(g?"dark":"light")),function(c){var I,B,U,L,d;return _.a(function(C){if(C.nextAddress==1)return I=_.hO(CoC(new Cq(c.photoUrl,!1)).build(),"alr","yes"),h.obakeImageSource=h.pictureChangeSourceToObakeImageSourceType(c.photoSource),
_.CX(C,2),h.setLoadingState(),C.yield(h.fetchImageBlobWithAlr(I),4);if(C.nextAddress!=2)return B=C.yieldResult,U=new FileReader,U.addEventListener("load",function(){var q,w,r,v,H,u;return _.a(function(k){if(k.nextAddress==1){if(B.size>15728640)return h.setErrorState((q=h.data)==null?void 0:q.imageSizeErrorMessage),_.O$(Error("Bl")),k.return();if(!U.result)return h.setErrorState((w=h.data)==null?void 0:w.genericImageLoadErrorMessage),_.O$(Error("Cl")),k.return();r=U.result;_.CX(k,2);return k.yield($iJ(B,
E),4)}if(k.nextAddress!=2)return v=k.yieldResult,h.handleImageUpdatedAction(r,v),h.resetErrorState(),_.bN(k,0);H=_.th(k);h.setErrorState((u=h.data)==null?void 0:u.uploadErrorMessage);if(H instanceof Error)_.$W(H);else{var y=new _.xX(JSON.stringify(H));_.$W(y)}_.SK(k)})}),U.readAsDataURL(B),_.bN(C,0);
L=_.th(C);h.setErrorState((d=h.data)==null?void 0:d.genericImageLoadErrorMessage);L instanceof Error?_.$W(L):_.KI(new _.xX(JSON.stringify(L)));_.SK(C)})}),function(){h.hideContainer=!1;
document.body.style.colorScheme=Z});
_.CX(z,2);return z.yield(M.openPicker(),4)}if(z.nextAddress!=2)return _.bN(z,0);_.th(z);h.setErrorState((W=h.data)==null?void 0:W.selectImageErrorMessage);_.SK(z)})};
_.p.pictureChangeSourceToObakeImageSourceType=function(h){switch(h){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.p.logScreenVe=function(){_.mw(_.SQ(),124448)};
_.p.graftServerVe=function(){var h=_.YN(),E,g,Z=(E=this.data)==null?void 0:(g=E.loggingDirectives)==null?void 0:g.trackingParams;Z&&h&&(this.channelCreationFormVe=_.SQ().graftServerVe(Z,h),h={visualElement:this.channelCreationFormVe},_.NB().reportShown(h))};
_.p.isNameChanged=function(h){var E;return((E=this.data)==null?void 0:E.name)!==h};
_.p.isHandleChanged=function(h){var E,g=_.e((E=this.data)==null?void 0:E.channelHandleInput,QUc);return g&&h?g.handle!==h:!1};
_.p.handleImageUpdatedAction=function(h,E){this.hideContainer=!1;this.previewDataUrl=h;this.encryptedBlobId=E};
_.p.handleImageSelectionErrorAction=function(h){this.hideContainer=!1;this.setErrorState(h)};
_.p.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.p.showContainer=function(){this.hideContainer=!1};
_.p.maybeWipeZeroStepErrorMessage=function(){var h,E=(h=this.data)==null?void 0:h.zeroStepErrorMessageEntityKey,g;E&&((g=this.zeroStepErrorMessageEntity)==null?0:g.value)&&this.ytdReduxBehavior.dispatch(_.xx("stringEntity",E,{key:E,value:""}))};
_.ze.Object.defineProperties(wz.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 h;return((h=this.photoThumbnail)==null?0:h.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 h;return!((h=this.data)==null||!h.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.descriptionInfo}}});
wz.prototype.dataChanged=wz.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],wz.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],wz.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],wz.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],wz.prototype,"errorMessage",void 0);
_.Y([_.x(),_.V("design:type",Object)],wz.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",String)],wz.prototype,"previewDataUrl",void 0);_.Y([_.x(),_.V("design:type",Number)],wz.prototype,"obakeImageSource",void 0);_.Y([_.x(),_.V("design:type",Object)],wz.prototype,"hideContainer",void 0);_.Y([_.Sg("#title-input"),_.V("design:type",Object)],wz.prototype,"nameInput",void 0);_.Y([_.Sg("#handle-input"),_.V("design:type",Object)],wz.prototype,"handleInput",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],wz.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.Y([_.x({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.vIu}),_.V("design:type",Object)],wz.prototype,"zeroStepErrorMessageEntity",void 0);_.Y([_.S("data","data.isDefaultProfilePhoto","previewDataUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],wz.prototype,"photoThumbnail",null);
_.Y([_.S("data","data.isDefaultProfilePhoto","photoThumbnail"),_.V("design:type",Object),_.V("design:paramtypes",[])],wz.prototype,"userSetPhotoThumbnailUrl",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"hideProfilePhotoButtonLayer",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],wz.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.Y([_.lq("data","zeroStepErrorMessageEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],wz.prototype,"dataChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.descriptionInfo","zeroStepErrorMessageEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],wz.prototype,"description",null);_.Y([_.K({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],wz);
_.X(wz,"ytd-channel-creation-dialog-renderer",function(){if(vnC!==void 0)return vnC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return vnC=h},{mode:1});var $1G;var m$=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;h.isDisabled=!1;return h};
_.f(m$,_.D);m$.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
m$.prototype.updateDisabled=function(){var h;this.isDisabled=this.isLoading||((h=this.handleInput)==null?void 0:h.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
m$.prototype.onSaveClick=function(){var h=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var E;((E=this.data)==null?void 0:E.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 g;if((g=h.data)==null?0:g.nextEndpoint){var Z;h.ytComponentBehavior.resolveCommand((Z=h.data)==null?void 0:Z.nextEndpoint)}else h.isLoading=
!1,h.closeDialog()},
onServerError:function(){h.isLoading=!1;h.handleInput.validate();var g;h.errorMessage=(g=h.data)==null?void 0:g.errorMessage}}}))}};
m$.prototype.closeDialog=function(){_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
m$.prototype.updateDisabled=m$.prototype.updateDisabled;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],m$.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],m$.prototype,"data",void 0);_.Y([_.Sg("#handle-input"),_.V("design:type",Object)],m$.prototype,"handleInput",void 0);_.Y([_.Nm("isLoading"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m$.prototype,"updateDisabled",null);
_.Y([_.K({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],m$);
_.X(m$,"ytd-channel-handle-edit-dialog-renderer",function(){if($1G!==void 0)return $1G;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $1G=h},{mode:1});var KSR;var vO=function(){return _.D.apply(this,arguments)||this};
_.f(vO,_.D);vO.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vO.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vO.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],vO);
_.X(vO,"ytd-channel-switcher-footer-renderer",function(){if(KSR!==void 0)return KSR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return KSR=h},{mode:1});var OnU;var nnR;var HO=function(){return _.D.apply(this,arguments)||this};
_.f(HO,_.D);HO.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
HO.prototype.onIronChange=HO.prototype.onIronChange;_.Y([_.x(),_.V("design:type",Object)],HO.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Function)],HO.prototype,"onDontAskAgainChanged",void 0);_.Y([_.Sg("#checkbox"),_.V("design:type",Object)],HO.prototype,"checkbox",void 0);_.Y([_.f3("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],HO.prototype,"onIronChange",null);
_.Y([_.K({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],HO);
_.X(HO,"ytd-identity-prompt-footer-renderer",function(){if(nnR!==void 0)return nnR;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return nnR=h},{mode:1});var $H=function(){var h=_.D.apply(this,arguments)||this;h.dontAskAgain=!1;h.showPopup=!1;h.boundDontAskAgainChanged=function(E){h.dontAskAgainChanged(E)};
h.boundOnAccountItemTap=function(E){h.onAccountItemTap(E)};
return h};
_.f($H,_.D);_.p=$H.prototype;
_.p.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.p.ready=function(){var h=this;_.UB(this.hostElement).querySelector("#container").addEventListener("scroll",function(){h.ytRendererBehavior.markDirty()})};
_.p.dontAskAgainChanged=function(h){this.dontAskAgain=h};
_.p.onAccountItemTap=function(h){if(h){var E={};this.dontAskAgain&&(E={dont_ask_again:this.dontAskAgain});_.gD(h,E)}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.p.redirectOnlyAccount=function(h){h.sections&&h.sections.length>0&&(h=_.e(h.sections[0],_.bzD),(h==null?0:h.contents)&&(h==null?void 0:h.contents.length)<=1?(h=_.uI(window.location.href),(h==null?0:h.next)&&_.wXV(h.next)?_.gD(h.next):_.gD("/")):this.showPopup=!0)};
$H.prototype.dataChanged=$H.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$H.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],$H.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$H.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Object)],$H.prototype,"dontAskAgain",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],$H.prototype,"showPopup",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Object)],$H.prototype,"boundDontAskAgainChanged",void 0);_.Y([_.x({reflectToAttribute:!1}),_.V("design:type",Object)],$H.prototype,"boundOnAccountItemTap",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$H.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],$H);
_.X($H,"ytd-channel-switcher-renderer",function(){if(OnU!==void 0)return OnU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return OnU=h},{mode:1});var XeG;var KR=function(){return _.D.apply(this,arguments)||this};
_.f(KR,_.D);_.ze.Object.defineProperties(KR.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.Y([_.x(),_.V("design:type",Object)],KR.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],KR.prototype,"steps",null);_.Y([_.K({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],KR);
_.X(KR,"ytd-channel-transfer-stepper-renderer",function(){if(XeG!==void 0)return XeG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XeG=h},{mode:1});var YyZ;var O2=function(){var h=_.D.apply(this,arguments)||this;h.data=null;h.isError=!1;h.isLoading=!1;return h};
_.f(O2,_.D);_.p=O2.prototype;_.p.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.p.computeProfileName=function(h){return h?h.givenNameValue+" "+h.familyNameValue:""};
_.p.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.p.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
O2.prototype.onYtServiceRequestError=O2.prototype.onYtServiceRequestError;O2.prototype.onYtServiceRequestSent=O2.prototype.onYtServiceRequestSent;O2.prototype.dataChanged=O2.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],O2.prototype,"data",void 0);
_.Y([_.x({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.V("design:type",String)],O2.prototype,"profileName",void 0);_.Y([_.x(),_.V("design:type",Object)],O2.prototype,"isError",void 0);_.Y([_.x(),_.V("design:type",Object)],O2.prototype,"isLoading",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],O2.prototype,"dataChanged",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],O2.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],O2.prototype,"onYtServiceRequestError",null);_.Y([_.K({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],O2);
_.X(O2,"ytd-channel-warm-welcome-cont-renderer",function(){if(YyZ!==void 0)return YyZ;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YyZ=h},{mode:1});var syI;var nR=function(){var h=_.D.apply(this,arguments)||this;h.data=null;return h};
_.f(nR,_.D);nR.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
nR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],nR.prototype,"data",void 0);_.Y([_.K({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],nR);
_.X(nR,"ytd-channel-warm-welcome-renderer",function(){if(syI!==void 0)return syI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return syI=h},{mode:1});var VGX;var XI=function(){return _.D.apply(this,arguments)||this};
_.f(XI,_.D);_.ze.Object.defineProperties(XI.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.authorThumbnail)||{}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],XI.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],XI.prototype,"thumbnailDetails",null);_.Y([_.K({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],XI);
_.X(XI,"ytd-comment-preview-renderer",function(){if(VGX!==void 0)return VGX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return VGX=h},{mode:1});var kxX;var YH=function(){return _.D.apply(this,arguments)||this};
_.f(YH,_.D);YH.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ze.Object.defineProperties(YH.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.submitButton}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],YH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],YH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],YH.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],YH.prototype,"submitButton",null);_.Y([_.K({is:"ytd-notice-renderer",disableElementRegistration:!0})],YH);
_.X(YH,"ytd-notice-renderer",function(){if(kxX!==void 0)return kxX;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return kxX=h},{mode:1});var yuC;var s2=function(){return _.D.apply(this,arguments)||this};
_.f(s2,_.D);s2.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],s2.prototype,"data",void 0);_.Y([_.K({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],s2);
_.X(s2,"ytd-preview-comment-dialog-content",function(){if(yuC!==void 0)return yuC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return yuC=h},{mode:1});var FSU;var Vo=function(){return _.D.apply(this,arguments)||this};
_.f(Vo,_.D);Vo.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Vo.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Vo.prototype,"data",void 0);_.Y([_.K({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Vo);
_.X(Vo,"ytd-preview-comment-dialog-renderer",function(){if(FSU!==void 0)return FSU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return FSU=h},{mode:1});var Aui;var TwZ=_.J("web_button_rework")&&_.Xn("BUTTON_REWORK")||_.J("web_button_rework_with_live"),kH=function(){var h=_.D.apply(this,arguments)||this;h.closeLabel=_.NH("CLOSE");h.selectedAmountIndex=1;h.privacyCheckboxValue=!1;h.useAmsterdamStyle=TwZ;h.amountPlaceholderIndex=-1;return h};
_.f(kH,_.D);_.p=kH.prototype;_.p.onAmountClick=function(h){this.selectedAmountIndex=_.UB(this.hostElement).querySelector("#amounts").indexForElement(h.currentTarget)};
_.p.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.BX(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.p.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.BX(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.BX(this.hostElement,"yt-close-popup-action",[this.is]);var h;(h=_.zD())==null||h.getPlayerPromise().then(function(E){E.pauseVideo()})}};
_.p.donationCallback=function(h){h.success?(this.hostElement.hasAttribute("live-chat")&&h.response&&h.response.data&&h.response.data.actions&&_.BX(this.hostElement,"yt-live-chat-open-popup",[h.response.data.actions[0]]),_.BX(this.hostElement,"yt-close-popup-action",[this.is]),_.BX(this.hostElement,"yt-live-chat-close-buy-flow")):h.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(h.errorMessageRenderer)};
_.p.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.UB(this.hostElement).querySelector("#custom-amount-input").focus()};
_.p.updateConfirmationDialogTextWithAmount=function(h){var E=this.getConfirmDialogRuns();E&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(E),"text"],this.getFormattedAmount(h))};
_.p.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.p.getAmountPlaceholderIndex=function(h){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=h.findIndex(function(E){return E.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.p.getFormattedAmount=function(h){var E;return(new _.Q7(4,((E=this.data)==null?void 0:E.currencyCode)||"")).format(h)};
_.p.isAmountValid=function(h){if(h==="")return!1;h=Number(h)*1E6;var E=this.get("minAmountMicros",this.data),g=this.get("maxAmountMicros",this.data);return E&&h<E||g&&h>g?!1:!0};
_.p.setInputError=function(){this.shouldShowValidationError?_.UB(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.UB(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.p.setInitialCheckboxValue=function(){var h;this.privacyCheckboxValue=!((h=this.data)==null||!h.privacyCheckboxInitialState)};
_.p.updateCustomAmountInputFromBinding=function(h){this.customAmountInput=h.detail.value};
_.p.updatePrivacyCheckboxValueFromBinding=function(h){this.privacyCheckboxValue=h.detail.value};
_.ze.Object.defineProperties(kH.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var h=this,E,g;return((E=this.data)==null?void 0:(g=E.suggestedAmounts)==null?void 0:g.map(function(Z,M){return{buttonRenderer:{style:h.selectedAmountIndex===M?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:Z.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 h;return!((h=this.data)==null||!h.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 h=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(h&&this.amountMicros!==null)return Object.assign({},h,{ypcGetCartEndpoint:Object.assign({},h.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 h=this.get("confirmLargeAmount",this.data);if(h&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),h}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var h=this.get("donateButton.buttonRenderer",this.data);if(h)return Object.assign({},h,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
kH.prototype.setInitialCheckboxValue=kH.prototype.setInitialCheckboxValue;kH.prototype.setInputError=kH.prototype.setInputError;kH.prototype.setFocusOnCustomAmountInput=kH.prototype.setFocusOnCustomAmountInput;_.Y([_.t(WtI),_.V("design:type",Object)],kH.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],kH.prototype,"closeLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],kH.prototype,"selectedAmountIndex",void 0);_.Y([_.x(),_.V("design:type",String)],kH.prototype,"customAmountInput",void 0);_.Y([_.x(),_.V("design:type",Object)],kH.prototype,"privacyCheckboxValue",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],kH.prototype,"useAmsterdamStyle",void 0);_.Y([_.Nm("customAmount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kH.prototype,"setFocusOnCustomAmountInput",null);_.Y([_.S("data","selectedAmountIndex"),_.V("design:type",Array),_.V("design:paramtypes",[])],kH.prototype,"suggestedAmountButtons",null);
_.Y([_.S("data","selectedAmountIndex"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kH.prototype,"isCustomAmountSelected",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kH.prototype,"showPrivacyCheckbox",null);_.Y([_.S("data","selectedAmountIndex","customAmount"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"amountMicros",null);
_.Y([_.S("isCustomAmountSelected","customAmountInput"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"customAmount",null);_.Y([_.S("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kH.prototype,"shouldShowValidationError",null);_.Y([_.S("customAmount"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],kH.prototype,"isDonateButtonEnabled",null);
_.Y([_.S("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"donateCommand",null);_.Y([_.S("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"donateCommandWithConfirmation",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"largeDonationThreshold",null);
_.Y([_.S("customAmount","donateCommand","amountMicros"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"confirmLargeAmountCommand",null);_.Y([_.S("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.V("design:type",Object),_.V("design:paramtypes",[])],kH.prototype,"donateButtonRenderer",null);_.Y([_.Nm("shouldShowValidationError"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kH.prototype,"setInputError",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kH.prototype,"setInitialCheckboxValue",null);_.Y([_.K({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],kH);
_.X(kH,"ytd-donation-amount-picker-renderer",function(){if(Aui!==void 0)return Aui;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Aui=h},{mode:1});var bnU;var yo=function(){return _.D.apply(this,arguments)||this};
_.f(yo,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],yo.prototype,"ytComponentBehavior",void 0);_.Y([_.x({}),_.V("design:type",Object)],yo.prototype,"data",void 0);_.Y([_.K({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],yo);
_.X(yo,"ytd-donation-post-transaction-content",function(){if(bnU!==void 0)return bnU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return bnU=h},{mode:1});var ulG;var FI=function(){return _.D.apply(this,arguments)||this};
_.f(FI,_.D);FI.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.Y([_.x({}),_.V("design:type",Object)],FI.prototype,"data",void 0);_.Y([_.K({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],FI);
_.X(FI,"ytd-donation-post-transaction-renderer",function(){if(ulG!==void 0)return ulG;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ulG=h},{mode:1});var Qyx;var hcp;var A4=function(){return _.D.apply(this,arguments)||this};
_.f(A4,_.D);A4.prototype.computeIsStreamingProvider=function(h){return!!h.isStreamingShelf};
A4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],A4.prototype,"data",void 0);_.Y([_.x({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],A4.prototype,"isStreamingProvider",void 0);
_.Y([_.K({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],A4);
_.X(A4,"ytd-media-provider-renderer",function(){if(hcp!==void 0)return hcp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return hcp=h},{mode:1});var E6C;var T4=function(){return _.D.apply(this,arguments)||this};
_.f(T4,_.D);T4.prototype.observeLightsourcePalette=function(){var h,E=(h=this.data)==null?void 0:h.vibrantsourceColorPaletteData;E&&_.v$(this.hostElement,E)};
T4.prototype.observeLightsourcePalette=T4.prototype.observeLightsourcePalette;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],T4.prototype,"data",void 0);
_.Y([_.Nm("data.vibrantsourceColorPaletteData"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T4.prototype,"observeLightsourcePalette",null);_.Y([_.K({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],T4);
_.X(T4,"ytd-streaming-pop-up-dialog",function(){if(E6C!==void 0)return E6C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return E6C=h},{mode:1});var ba=function(){return _.D.apply(this,arguments)||this};
_.f(ba,_.D);ba.prototype.onPopupOpened_=function(){var h;((h=this.data)==null?0:h.serviceEndpoint)&&_.GF().resolve(_.zF).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ba.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ba.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"}}}}};
ba.prototype.onPopupOpened_=ba.prototype.onPopupOpened_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Bv),_.V("design:type",Object)],ba.prototype,"ytContinuationHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ba.prototype,"data",void 0);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ba.prototype,"onPopupOpened_",null);_.Y([_.K({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ba);
_.X(ba,"ytd-brandconnect-popup-renderer",function(){if(Qyx!==void 0)return Qyx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Qyx=h},{mode:1});var g6x;var ua=function(){return _.D.apply(this,arguments)||this};
_.f(ua,_.D);_.p=ua.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){for(var h=0;h<this.getOptionRenderers().length;h++)this.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+h+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.p.updateSubmitButton=function(h){this.set("data.submitButton.buttonRenderer.isDisabled",!h)};
_.p.computeAlt=function(h){return _.Wp(h)};
_.p.onDismissTap=function(){_.BX(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.getOptionRenderers=function(h){return(h=h||this.data)&&h.options?h.options.reduce(function(E,g){g.checkboxSurveyOptionRenderer&&E.push(g.checkboxSurveyOptionRenderer);return E},[]):[]};
_.p.onOptionChange=function(h){var E=this,g=!1;if(h.detail.checked)for(var Z=this.getOptionRenderers().find(function(c){return c.value===h.detail.value}),M=this.getOptionRenderers(),W=0;W<M.length;W++){var z=M[W];
this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked");z.checked&&((Z==null?0:Z.isExclusiveOption)?!z.isExclusiveOption:z.isExclusiveOption)?this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1):z.checked&&(g=!0)}else g=this.getOptionRenderers().some(function(c,I){E.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked");return c.checked});
this.updateSubmitButton(g)};
_.p.onSubmitTap=function(){var h=this.getOptionRenderers().filter(function(W){return W.checked});
if(h.length!==0){var E=h.map(function(W){return W.responseEndpoint});
h=[];for(var g=1;g<E.length;g++){var Z=void 0,M=(Z=_.e(E[g],_.rE))==null?void 0:Z.feedbackToken;M&&h.push(M)}E=[E[0]];h.length&&E.push({extra_feedback_tokens:h});_.LZ(this.hostElement,E);_.BX(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);h=this.data&&this.data.submitActions||[];if(_.J("kevlar_command_handler_migration_killswitch"))_.jj(this.hostElement,h,this.hostElement);else for(h=_.G(h),E=h.next();!E.done;E=h.next())this.ytComponentBehavior.resolveCommand(E.value)}};
ua.prototype.onOptionChange=ua.prototype.onOptionChange;ua.prototype.dataChanged=ua.prototype.dataChanged;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],ua.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ua.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.Y([_.t(ej0),_.V("design:type",Object)],ua.prototype,"ytdHatsSurveyBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ua.prototype,"data",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ua.prototype,"dataChanged",null);
_.Y([_.f3("ytd-checkbox-survey-option-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ua.prototype,"onOptionChange",null);_.Y([_.K({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],ua);
_.X(ua,"ytd-checkbox-survey-renderer",function(){if(g6x!==void 0)return g6x;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return g6x=h},{mode:1});var ZjX;var M4i;var Qo=function(){return _.D.apply(this,arguments)||this};
_.f(Qo,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.Y([_.t(JYp),_.V("design:type",Object)],Qo.prototype,"ytdDismissalReasonBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Qo.prototype,"data",void 0);_.Y([_.K({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Qo);
_.X(Qo,"ytd-dismissal-reason-text-renderer",function(){if(M4i!==void 0)return M4i;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return M4i=h},{mode:1});var WWI;var hH=function(){return _.D.apply(this,arguments)||this};
_.f(hH,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(JYp),_.V("design:type",Object)],hH.prototype,"ytdDismissalReasonBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hH.prototype,"data",void 0);_.Y([_.K({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],hH);
_.X(hH,"ytd-dismissal-reason-video-renderer",function(){if(WWI!==void 0)return WWI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return WWI=h},{mode:1});var ET=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(ET,_.D);_.p=ET.prototype;_.p.created=function(){this.selectedFeedbackTokens=new yz};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.p.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.p.onDismissalReasonSelected=function(h,E){_.Ra(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(E);this.hasReasonsSelected=!0};
_.p.onDismissalReasonDeselected=function(h,E){_.Ra(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(E);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.p.onCancelTap=function(){_.BX(this.hostElement,"yt-close-popup-action")};
_.p.onSubmitTap=function(){var h=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(h={feedback_tokens:h},_.GF().resolve(_.zF).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},h,{element:this.hostElement})}));_.BX(this.hostElement,"yt-close-popup-action")};
ET.prototype.onDismissalReasonDeselected=ET.prototype.onDismissalReasonDeselected;ET.prototype.onDismissalReasonSelected=ET.prototype.onDismissalReasonSelected;ET.prototype.dataChanged=ET.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ET.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ET.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],ET.prototype,"hasReasonsSelected",void 0);_.Y([_.x(),_.V("design:type",yz)],ET.prototype,"selectedFeedbackTokens",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],ET.prototype,"darkerDarkTheme",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ET.prototype,"dataChanged",null);
_.Y([_.f3("yt-dismissal-reason-selected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],ET.prototype,"onDismissalReasonSelected",null);_.Y([_.f3("yt-dismissal-reason-deselected"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,String]),_.V("design:returntype")],ET.prototype,"onDismissalReasonDeselected",null);_.Y([_.K({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],ET);
_.X(ET,"ytd-dismissal-follow-up-renderer",function(){if(ZjX!==void 0)return ZjX;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ZjX=h},{mode:1});var pGR;var gF=function(){return _.D.apply(this,arguments)||this};
_.f(gF,_.D);_.p=gF.prototype;_.p.onCheckedChange=function(){this.multiselect||_.Ra(this.hostElement,"yt-feedback-single-select-changed");_.UB(this.hostElement).querySelector("#freeform").focus();_.Ra(this.hostElement,"yt-refit")};
_.p.showTextBox=function(h,E){return h&&E};
_.p.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.p.updateDataCheckedFromBinding=function(h){this.set("data.checked",h.detail.value)};
_.p.updateDataResultTextFromBinding=function(h){this.set("data.resultText",h.detail.value)};
gF.prototype.dataChanged=gF.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],gF.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],gF.prototype,"multiselect",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],gF.prototype,"dataChanged",null);
_.Y([_.K({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],gF);
_.X(gF,"ytd-feedback-option-renderer",function(){if(pGR!==void 0)return pGR;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return pGR=h},{mode:1});var GS0;var ZQ=function(){return _.D.apply(this,arguments)||this};
_.f(ZQ,_.D);ZQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
ZQ.prototype.onSingleSelectCheckedChanged=function(h){h=_.zw(h);for(var E=0;E<this.data.options.length;E++)if(h.data!==_.e(this.data.options[E],KlC)){var g="data.options."+E+".feedbackOptionRenderer.checked";this.notifyPath(g);this.set(g,!1)}};
ZQ.prototype.onSingleSelectCheckedChanged=ZQ.prototype.onSingleSelectCheckedChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ZQ.prototype,"data",void 0);
_.Y([_.f3("yt-feedback-single-select-changed"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],ZQ.prototype,"onSingleSelectCheckedChanged",null);_.Y([_.K({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],ZQ);
_.X(ZQ,"ytd-feedback-question-renderer",function(){if(GS0!==void 0)return GS0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GS0=h},{mode:1});var zcC;var MU=function(){return _.D.apply(this,arguments)||this};
_.f(MU,_.D);MU.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
MU.prototype.getSelectedFeedbackResults=function(){for(var h={},E=0;E<this.data.questions.length;E++)for(var g=_.e(this.data.questions[E],$yi),Z=0;Z<g.options.length;Z++){var M=_.e(g.options[Z],KlC);M&&M.checked&&(h[M.optionKey]=M.resultText)}return h};
MU.prototype.onKeyUp=function(){var h=this;_.LO(_.KP,function(){_.Ra(h.hostElement,"yt-refit")});
_.KP.start()};
MU.prototype.submitSurvey=function(){var h=this.getSelectedFeedbackResults();Object.keys(h).length>0&&this.data.submitFeedbackEndpoint&&(h={survey_results:h,is_feedback_token_unencrypted:!0},_.GF().resolve(_.zF).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},h,{element:this.hostElement})}))};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],MU.prototype,"data",void 0);_.Y([_.K({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],MU);
_.X(MU,"ytd-feedback-survey-renderer",function(){if(zcC!==void 0)return zcC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zcC=h},{mode:1});var a5I;var cZi;var Wd=function(){return _.D.apply(this,arguments)||this};
_.f(Wd,_.D);Wd.prototype.computeAlt=function(h){return _.Wp(h)};
Wd.prototype.submitResponse=function(){var h,E;(h=this.data)!=null&&h.feedbackToken&&((E=this.data)==null?void 0:E.nextStageIndex)!==void 0&&(_.U7(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.U7(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Wd.prototype.onClick=function(){this.submitResponse()};
Wd.prototype.onClick=Wd.prototype.onClick;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Wd.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Wd.prototype,"vertical",void 0);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Wd.prototype,"onClick",null);
_.Y([_.K({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Wd);
_.X(Wd,"ytd-single-select-answer-option-renderer",function(){if(cZi!==void 0)return cZi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return cZi=h},{mode:1});var ijG;var py=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return h};
_.f(py,_.D);py.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
py.prototype.dataChanged=function(){var h,E;this.vertical=((E=(h=this.data)==null?void 0:h.answerOrientation)!=null?E:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
py.prototype.submitFeedback=function(h){var E;((E=this.data)==null?0:E.responseEndpoint)&&h&&_.LZ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[h]}])};
py.prototype.dataChanged=py.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],py.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],py.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],py.prototype,"vertical",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],py.prototype,"darkerDarkTheme",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],py.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],py);
_.X(py,"ytd-single-select-question-renderer",function(){if(ijG!==void 0)return ijG;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return ijG=h},{mode:1});var Gz=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return h};
_.f(Gz,_.D);_.p=Gz.prototype;_.p.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.p.dataChanged=function(){this.jumpToStage(0)};
_.p.jumpToStage=function(h){var E,g;if((E=this.data)==null?0:(g=E.stages)==null?0:g[h])this.currentStage=this.data.stages[h],this.refitAfterRender()};
_.p.computeAlt=function(h){return _.Wp(h)};
_.p.computeSimpleMessage=function(h){var E;return(E=_.e(h,XB0))==null?void 0:E.messageText};
_.p.computeHideDismiss=function(h){var E;return(E=_.e(h,R_C))==null?void 0:E.hideParentDismissButton};
_.p.onDismissTap=function(){_.BX(this.hostElement,"yt-close-popup-action");_.e(this.currentStage,XB0)||this.data.dismissalEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.p.refitAfterRender=function(){var h=this;_.pQ(this,function(){_.Ra(h.hostElement,"yt-refit")})};
Gz.prototype.dataChanged=Gz.prototype.dataChanged;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Gz.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);
_.Y([_.t(ej0),_.V("design:type",Object)],Gz.prototype,"ytdHatsSurveyBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Gz.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Gz.prototype,"currentStage",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Gz.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],Gz);
_.X(Gz,"ytd-multi-stage-survey-renderer",function(){if(a5I!==void 0)return a5I;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return a5I=h},{mode:1});var o60;var zz=function(){return _.D.apply(this,arguments)||this};
_.f(zz,_.D);zz.prototype.computeAlt=function(h){return _.Wp(h)};
zz.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.GF().resolve(_.zF).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.BX(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.lNJ(!1)))};
zz.prototype.onTap=function(){this.vertical&&this.submitResponse()};
zz.prototype.onTap=zz.prototype.onTap;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],zz.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zz.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],zz.prototype,"vertical",void 0);
_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],zz.prototype,"onTap",null);_.Y([_.K({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],zz);
_.X(zz,"ytd-single-option-survey-option-renderer",function(){if(o60!==void 0)return o60;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return o60=h},{mode:1});var I5U;var ac=function(){return _.D.apply(this,arguments)||this};
_.f(ac,_.D);_.p=ac.prototype;_.p.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){var h,E;this.vertical=(((h=this.data)==null?void 0:(E=h.surveyOrientation)==null?void 0:E.type)||"HORIZONTAL")==="VERTICAL"};
_.p.computeAlt=function(h){return _.Wp(h)};
_.p.onDismissTap=function(){_.BX(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.GF().resolve(_.zF).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.lNJ(!1))};
ac.prototype.dataChanged=ac.prototype.dataChanged;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],ac.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(ej0),_.V("design:type",Object)],ac.prototype,"ytdHatsSurveyBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],ac.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ac.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],ac.prototype,"vertical",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ac.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],ac);
_.X(ac,"ytd-single-option-survey-renderer",function(){if(I5U!==void 0)return I5U;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return I5U=h},{mode:1});var RcC;var cd=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(cd,_.D);cd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cd.prototype.onDismissTap=function(){_.BX(this.hostElement,"yt-close-popup-action")};
cd.prototype.onNavigate=function(){_.BX(this.hostElement,"yt-close-popup-action")};
cd.prototype.onNavigate=cd.prototype.onNavigate;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],cd.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cd.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cd.prototype,"darkerDarkTheme",void 0);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],cd.prototype,"onNavigate",null);_.Y([_.K({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],cd);
_.X(cd,"ytd-survey-follow-up-renderer",function(){if(RcC!==void 0)return RcC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return RcC=h},{mode:1});var P6i;var B8Z;var UzJ;var iW=function(){var h=_.D.apply(this,arguments)||this;h.polymer2="Element"in Polymer;return h};
_.f(iW,_.D);_.p=iW.prototype;_.p.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.p.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.p.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.p.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("minutes-changed",this.minutes))};
_.p.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("seconds-changed",this.seconds))};
_.p.updateMinutesFromBinding=function(h){this.minutes=h.detail.value};
_.p.updateSecondsFromBinding=function(h){this.seconds=h.detail.value};
iW.prototype.secondsChangedForBinding=iW.prototype.secondsChangedForBinding;iW.prototype.minutesChangedForBinding=iW.prototype.minutesChangedForBinding;iW.prototype.secondsChanged=iW.prototype.secondsChanged;_.Y([_.x(),_.V("design:type",String)],iW.prototype,"minutes",void 0);_.Y([_.x(),_.V("design:type",String)],iW.prototype,"seconds",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],iW.prototype,"polymer2",void 0);
_.Y([_.Sg("#seconds"),_.V("design:type",Object)],iW.prototype,"secondsEl",void 0);_.Y([_.Nm("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iW.prototype,"secondsChanged",null);_.Y([_.Nm("minutes"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iW.prototype,"minutesChangedForBinding",null);
_.Y([_.Nm("seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],iW.prototype,"secondsChangedForBinding",null);_.Y([_.yc({is:"yt-timestamp-input",disableElementRegistration:!0})],iW);
_.X(iW,"yt-timestamp-input",function(){if(UzJ===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;B8Z===void 0&&(B8Z=document.createElement("template"));var Z=B8Z;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);UzJ=h}h=UzJ;return h},{mode:2});var oc=function(){return _.D.apply(this,arguments)||this};
_.f(oc,_.D);_.p=oc.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20351_scroller.dialogElement=this.hostElement.parentNode};
_.p.dataChanged=function(){var h=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.aJ().getPlayerPromise().then(function(E){E=E.getCurrentTime();h.minutes=Math.floor(E/60).toString();h.seconds=(Math.floor(E)%60).toString()})};
_.p.onTapSubmit=function(h){h.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(h={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(h.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(h.minutes=this.minutes,h.seconds=this.seconds),_.GF().resolve(_.zF).resolveCommand(this.serviceEndpoint,{form:Object.assign({},h,{element:this.hostElement})}))};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.p.onYtServiceRequestCompleted=function(h,E){E=E.actions;if(Array.isArray(E))for(var g=0,Z=E.length;g<Z;g++)_.e(E[g],_.sr)&&(h.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(E[g]))};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.p.toggleSubmitButton=function(h){this.set("submitButton.isDisabled",!h)};
_.p.handleInput=function(){var h=this.issueType,E=this.affiliation,g=this.minutes,Z=this.seconds;g=!this.showTimestamp||!!g&&!!Z;this.toggleSubmitButton(!!this.descriptionText&&!!h&&!!E&&g)};
_.p.computeServiceEndpoint=function(h){return this.get("submitButton.buttonRenderer.serviceEndpoint",h)};
_.p.computeSubmitButton=function(h){(h=this.get("submitButton.buttonRenderer",h))&&(h=Object.assign({},h,{serviceEndpoint:void 0}));return h};
_.p.computeShowTimestamp=function(h){return!!h};
_.p.onValueChangedForIssueType=function(h){this.issueType=h.detail.value};
_.p.onValueChangedForAffiliation=function(h){this.affiliation=h.detail.value};
_.p.updateDescriptionTextFromBinding=function(h){this.descriptionText=h.detail.value};
_.p.updateFullNameTextFromBinding=function(h){this.fullNameText=h.detail.value};
_.p.updateMinutesFromBinding=function(h){this.minutes=h.detail.value};
_.p.updateSecondsFromBinding=function(h){this.seconds=h.detail.value};
oc.prototype.handleInput=oc.prototype.handleInput;oc.prototype.onYtServiceRequestError=oc.prototype.onYtServiceRequestError;oc.prototype.onYtServiceRequestCompleted=oc.prototype.onYtServiceRequestCompleted;oc.prototype.onYtServiceRequestSent=oc.prototype.onYtServiceRequestSent;oc.prototype.dataChanged=oc.prototype.dataChanged;_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],oc.prototype,"ytOpenPopupBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.Y([_.Sg("#scroller"),_.V("design:type",Object)],oc.prototype,"JSC$20351_scroller",void 0);_.Y([_.Sg("#description"),_.V("design:type",HTMLInputElement)],oc.prototype,"description",void 0);_.Y([_.Sg("#full-name"),_.V("design:type",Object)],oc.prototype,"fullName",void 0);_.Y([_.x(),_.V("design:type",Object)],oc.prototype,"data",void 0);
_.Y([_.x({computed:"computeShowTimestamp(data.timestampLabel)"}),_.V("design:type",Boolean)],oc.prototype,"showTimestamp",void 0);_.Y([_.x({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.V("design:type",Object)],oc.prototype,"serviceEndpoint",void 0);_.Y([_.x({computed:"computeSubmitButton(data)"}),_.V("design:type",Object)],oc.prototype,"submitButton",void 0);_.Y([_.x(),_.V("design:type",String)],oc.prototype,"descriptionText",void 0);
_.Y([_.x(),_.V("design:type",Number)],oc.prototype,"issueType",void 0);_.Y([_.x(),_.V("design:type",Number)],oc.prototype,"affiliation",void 0);_.Y([_.x(),_.V("design:type",String)],oc.prototype,"fullNameText",void 0);_.Y([_.x(),_.V("design:type",String)],oc.prototype,"minutes",void 0);_.Y([_.x(),_.V("design:type",String)],oc.prototype,"seconds",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oc.prototype,"dataChanged",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],oc.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],oc.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],oc.prototype,"onYtServiceRequestError",null);_.Y([_.Nm("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],oc.prototype,"handleInput",null);_.Y([_.K({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],oc);
_.X(oc,"ytd-legal-report-details-form-renderer",function(){if(P6i!==void 0)return P6i;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return P6i=h},{mode:1});var LWU;var Ic=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return h};
_.f(Ic,_.D);Ic.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Ic.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var h=this.formRenderer.getForm();h&&this.data.submitEndpoint&&(_.GF().resolve(_.zF).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},h,{element:this.hostElement})}),_.BX(this.hostElement,"yt-close-popup-action"))}};
Ic.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.BX(this.hostElement,"yt-close-popup-action"))};
Ic.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Ic.prototype.onPopupClosed=Ic.prototype.onPopupClosed;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Ic.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ic.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);
_.Y([_.Sg("yt-form-renderer"),_.V("design:type",Object)],Ic.prototype,"formRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],Ic.prototype,"data",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ic.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-form-popup-content",disableElementRegistration:!0})],Ic);
_.X(Ic,"ytd-form-popup-content",function(){if(LWU!==void 0)return LWU;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return LWU=h},{mode:1});var j4c;var Rc=function(){return _.D.apply(this,arguments)||this};
_.f(Rc,_.D);Rc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Rc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Rc.prototype.onPopupOpened=function(){_.Ra(this.hostElement,"yt-invalidate-popup-tabbables")};
Rc.prototype.onYtServiceRequestCompleted=function(h,E){E.data&&E.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Ra(this.hostElement,"yt-invalidate-popup-tabbables"))};
Rc.prototype.onYtServiceRequestCompleted=Rc.prototype.onYtServiceRequestCompleted;Rc.prototype.onPopupOpened=Rc.prototype.onPopupOpened;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Rc.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Rc.prototype,"data",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Rc.prototype,"onPopupOpened",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],Rc.prototype,"onYtServiceRequestCompleted",null);_.Y([_.K({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Rc);
_.X(Rc,"ytd-form-popup-renderer",function(){if(j4c!==void 0)return j4c;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return j4c=h},{mode:1});var dzC;var Pd=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;return h};
_.f(Pd,_.D);_.p=Pd.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");kGX(this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.isLoading=!0};
_.p.onYtServiceRequestCompleted=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.p.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.jj(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.p.closePopupHandler=function(){this.fireOnCloseActions()};
_.p.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var h=this.get("data.headerImage.thumbnails");h&&(h=_.R9(h,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+h+")")}};
_.p.onYtNavigate=function(h){(h=_.zw(h))&&h.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
Pd.prototype.onYtNavigate=Pd.prototype.onYtNavigate;Pd.prototype.onHeaderImageChanged=Pd.prototype.onHeaderImageChanged;Pd.prototype.closePopupHandler=Pd.prototype.closePopupHandler;Pd.prototype.onYtServiceRequestCompleted=Pd.prototype.onYtServiceRequestCompleted;Pd.prototype.onYtServiceRequestSent=Pd.prototype.onYtServiceRequestSent;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Pd.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Pd.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Pd.prototype,"isLoading",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLDivElement)],Pd.prototype,"header",void 0);_.Y([_.Sg("#confirm-button"),_.V("design:type",_.Ql)],Pd.prototype,"confirmButton",void 0);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Pd.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Pd.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Pd.prototype,"closePopupHandler",null);_.Y([_.Nm("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Pd.prototype,"onHeaderImageChanged",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Pd.prototype,"onYtNavigate",null);
_.Y([_.K({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],Pd);
_.X(Pd,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(dzC!==void 0)return dzC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return dzC=h},{mode:1});var C6x;var Bd=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;return h};
_.f(Bd,_.D);_.p=Bd.prototype;_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);kGX(this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.p.onYtServiceRequestError=function(h){_.uv(this.hostElement,h.detail.error.message)};
_.p.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.p.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.BX(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.p.onDataChanged=function(){this.isLoading=!1;var h=this.get("data.headerImage.thumbnails");h&&(h=_.R9(h,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+h+")");h=_.sH();var E=_.YN(),g=this.get("data.trackingParams");g&&E&&h&&_.uw(h,E,_.rp(g))};
_.ze.Object.defineProperties(Bd.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Bd.prototype.onDataChanged=Bd.prototype.onDataChanged;Bd.prototype.onDomChange=Bd.prototype.onDomChange;Bd.prototype.onYtServiceRequestError=Bd.prototype.onYtServiceRequestError;Bd.prototype.onYtServiceRequestCompleted=Bd.prototype.onYtServiceRequestCompleted;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Bd.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Bd.prototype,"isLoading",void 0);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Bd.prototype,"hasDescription",null);_.Y([_.Sg("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],Bd.prototype,"scrollable",void 0);_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],Bd.prototype,"header",void 0);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Bd.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Bd.prototype,"onYtServiceRequestError",null);
_.Y([_.f3("dom-change"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Bd.prototype,"onDomChange",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Bd.prototype,"onDataChanged",null);_.Y([_.K({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Bd);
_.X(Bd,"ytd-gaming-account-link-setting-renderer",function(){if(C6x!==void 0)return C6x;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return C6x=h},{mode:1});var JZI;var ecG;var UT=function(){var h=_.D.apply(this,arguments)||this;h.isHeader=!1;h.getEndpointForm=function(){return s9G(h.data)};
return h};
_.f(UT,_.D);_.p=UT.prototype;_.p.triggerHintActions=function(){var h=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var E=_.U7(h.hostElement,"yt-get-opened-popups-action");!(E&&E.length===1?E[0]:[]).some(function(g){g=g.openPopupAction.popupType;return g==="SURVEY"||g==="MEALBAR"||g==="HINT"})&&h.data.hintActions&&h.guideOpened&&(_.jj(h.hostElement,h.data.hintActions,h.hostElement),h.data.hintActions=void 0)})};
_.p.getBadgeIconType=function(h){return h&&h.liveBroadcasting?"live":null};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(h){if(this.data.serviceEndpoint){var E;_.J("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.e(this.data.serviceEndpoint,_.D9))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):YLG(this.data.serviceEndpoint,this);h.preventDefault()}else this.data.navigationEndpoint&&!_.MI(_.Gw(h),this.hostElement,["A".toString()])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.p.computeActive=function(h,E){if(!h)return!1;var g=h.navigationEndpoint;h=h.serviceEndpoint;if(!g&&!h||!E)return!1;if(g){h=(h=_.fm(E))&&["subscriptions","filteredsubscriptions"].includes(h);if(_.e(g,_.tk)&&_.e(E,_.tk)&&!h){var Z=_.e(g,_.tk).browseId;E=_.e(E,_.tk).browseId;return Z!==void 0&&E!==void 0&&(Z===E||Z==="VLWL"&&E==="FEwatch_later"||Z==="FEwatch_later"&&E==="VLWL")}var M;g=(M=_.e(g.commandMetadata,_.qH))==null?void 0:M.url;E=(Z=_.e(E.commandMetadata,_.qH))==null?void 0:Z.url;return!(!g||
!E||g!==E&&g!==_.jy(E))}return this.isActiveShortsTab(h,E)};
_.p.isActiveShortsTab=function(h,E){E=!!_.e(E,_.D9)||!!_.e(E,_.Wt);return(!!_.e(h,_.D9)||!!_.e(h,_.Wt))&&E};
_.p.computeIsPrimary=function(h){return!!h};
_.ze.Object.defineProperties(UT.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 h=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&h)return h}}});
UT.prototype.onTap=UT.prototype.onTap;UT.prototype.onUp=UT.prototype.onUp;UT.prototype.onDown=UT.prototype.onDown;UT.prototype.triggerHintActions=UT.prototype.triggerHintActions;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],UT.prototype,"componentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],UT.prototype,"rendererBehavior",void 0);_.Y([_.t(_.NJ.YtTaskEmitterBehavior),_.V("design:type",Object)],UT.prototype,"taskEmitterBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],UT.prototype,"activeEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],UT.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],UT.prototype,"guideOpened",void 0);_.Y([_.x(),_.V("design:type",String)],UT.prototype,"type",void 0);_.Y([_.Sg("yt-interaction"),_.V("design:type",Object)],UT.prototype,"interaction",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],UT.prototype,"isHeader",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data","activeEndpoint"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UT.prototype,"active",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],UT.prototype,"isPrimary",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.count","data.presentationStyle","data.badges.*"),_.V("design:type",String),_.V("design:paramtypes",[])],UT.prototype,"lineEndStyle",null);
_.Y([_.S("lineEndStyle"),_.V("design:type",Object),_.V("design:paramtypes",[])],UT.prototype,"ariaLabel",null);_.Y([_.Nm("data.hintActions","guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UT.prototype,"triggerHintActions",null);_.Y([_.f3("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UT.prototype,"onDown",null);
_.Y([_.f3("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],UT.prototype,"onUp",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],UT.prototype,"onTap",null);_.Y([_.K({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],UT);
_.X(UT,"ytd-guide-entry-renderer",function(){if(ecG!==void 0)return ecG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ecG=h},{mode:1});var Ly=function(){var h=_.D.apply(this,arguments)||this;h.userToggled=!1;return h};
_.f(Ly,_.D);_.p=Ly.prototype;_.p.getItemsPath=function(){return"data.expandableItems"};
_.p.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.p.onExpanderItemTapped=function(h){var E=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.J("kevlar_guide_expandable_items_killswitch")&&_.pQ(this,function(){_.E$(E.expandableItems)});
h.preventDefault()};
_.p.onCollapserItemTapped=function(h){var E=this;this._setExpanded(!1);this.userToggled=!0;h.preventDefault();this.expandableItems&&!_.J("kevlar_guide_collapsible_items_killswitch")&&_.pQ(this,function(){_.h1(E.hostElement)})};
_.p.observeActiveEndpoint=function(){for(var h=this.activeEndpoint,E=this.data,g=this.expandableItems.children,Z=0,M=g.length;Z<M;Z++)g[Z].activeEndpoint=h;E&&E.autoExpandCommand&&h&&!this.userToggled&&(g=this.data.autoExpandCommand,E=!(!_.e(g,_.tk)||!_.e(h,_.tk)||_.e(g,_.tk).browseId!==_.e(h,_.tk).browseId),h=this.get("commandMetadata.webCommandMetadata.url",h),g=this.get("commandMetadata.webCommandMetadata.url",g),E=E||!!(h&&g&&h.includes(g)),this._setExpanded(E),E&&this.ytLazyListBehavior.fillRemainingListItems())};
Ly.prototype.observeActiveEndpoint=Ly.prototype.observeActiveEndpoint;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],Ly.prototype,"ytLazyListBehavior",void 0);_.Y([_.Sg("#expandable-items"),_.V("design:type",HTMLElement)],Ly.prototype,"expandableItems",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ly.prototype,"data",void 0);_.Y([_.x({readOnly:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ly.prototype,"expanded",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],Ly.prototype,"initialCount",void 0);_.Y([_.x(),_.V("design:type",Object)],Ly.prototype,"activeEndpoint",void 0);_.Y([_.Nm("data","activeEndpoint","canShowMore"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ly.prototype,"observeActiveEndpoint",null);
_.Y([_.K({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],Ly);
_.X(Ly,"ytd-guide-collapsible-entry-renderer",function(){if(JZI!==void 0)return JZI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return JZI=h},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var qXi;var f5J;var jZ=function(){var h=_.D.apply(this,arguments)||this;h.allVideosCount=0;h.renderGuideEntry=!1;return h};
_.f(jZ,_.D);jZ.prototype.observeRenderEntry=function(){var h;this.renderGuideEntry=!((h=this.data)==null||!h.alwaysShow)||!!this.allVideosCount};
jZ.prototype.observeRenderEntry=jZ.prototype.observeRenderEntry;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],jZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],jZ.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],jZ.prototype,"activeEndpoint",void 0);_.Y([_.x({selector:_.omV}),_.V("design:type",Object)],jZ.prototype,"allVideosCount",void 0);
_.Y([_.x(),_.V("design:type",Object)],jZ.prototype,"renderGuideEntry",void 0);_.Y([_.lq("allVideosCount","data.alwaysShow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],jZ.prototype,"observeRenderEntry",null);_.Y([_.K({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],jZ);
_.X(jZ,"ytd-guide-downloads-entry-renderer",function(){if(f5J===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);f5J=h}h=f5J;return h},{mode:1});var dF=function(){var h=_.D.apply(this,arguments)||this;h.youtab=_.J("web_enable_youtab");h.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return h};
_.f(dF,_.D);_.p=dF.prototype;_.p.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.p.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var h=this.sectionItems.children,E=0,g=h.length;E<g;E++)h[E].activeEndpoint=this.activeEndpoint}};
_.p.handleAddToGuideSectionAction=function(h){var E=_.e(h,MRU);if(E&&this.data&&(h=E.items,E=E.handlerData,h&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1)){E=0;for(var g=h.length;E<g;E++)h[E].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,h[E])}};
_.p.handleRemoveFromGuideSectionAction=function(h){var E=_.e(h,WlU);E&&this.data&&(h=E.guideEntryId,E=E.handlerData,h&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(h,this.data.sectionItems),this.removeFromCollapsedSection(h,this.data.sectionItems)))};
_.p.removeFromExpandedSection=function(h,E){h=this.getEntryIndexMatchingId(h,E);h!==-1&&this.splice("data.sectionItems",h,1)};
_.p.removeFromCollapsedSection=function(h,E){var g=E.findIndex(function(Z){return!!_.e(Z,Cex)});
g&&g!==-1&&E[g]&&_.e(E[g],Cex)&&(E=_.e(E[g],Cex).expandableItems)&&(h=this.getEntryIndexMatchingId(h,E),h!==-1&&this.splice("data.sectionItems."+g+".guideCollapsibleEntryRenderer.expandableItems",h,1))};
_.p.getEntryIndexMatchingId=function(h,E){var g=this;return E.findIndex(function(Z){return g.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===h})};
dF.prototype.activeEndpointChanged=dF.prototype.activeEndpointChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],dF.prototype,"actionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#section-items"),_.V("design:type",HTMLDivElement)],dF.prototype,"sectionItems",void 0);
_.Y([_.Sg("#header-entry"),_.V("design:type",Object)],dF.prototype,"headerEntry",void 0);_.Y([_.x(),_.V("design:type",Object)],dF.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],dF.prototype,"activeEndpoint",void 0);_.Y([_.x(),_.V("design:type",Object)],dF.prototype,"youtab",void 0);_.Y([_.Nm("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],dF.prototype,"activeEndpointChanged",null);
_.Y([_.K({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],dF);
_.X(dF,"ytd-guide-collapsible-section-entry-renderer",function(){if(qXi===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);qXi=h}h=qXi;return h},{mode:1});var N8c;var t4C;var Cy=function(){var h=_.D.apply(this,arguments)||this;h.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 h};
_.f(Cy,_.D);_.p=Cy.prototype;
_.p.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.p.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var h=_.U7(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);h&&h.length===1&&h[0]&&_.U7(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.p.handleResetChannelUnreadCountCommand=function(h){var E;(h=(E=_.e(h,GAi))==null?void 0:E.channelId)&&this.data&&this.data.items&&(E=this.getPathToEntryMatchingId(h))&&(this.set(E+".guideEntryRenderer.count",0),this.set(E+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.handleResetSubscriptionsUnreadDotCommand=function(h){var E,g=(E=_.e(h,z_U))==null?void 0:E.targetId,Z;g&&(Z=this.data)!=null&&Z.items&&(h=this.data.items.findIndex(function(M){var W;return((W=M.guideEntryRenderer)==null?void 0:W.targetId)===g}),h<0||this.set("data.items."+h+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.p.getPathToEntryMatchingId=function(h){if(this.data&&this.data.items){var E=this.getEntryIndexMatchingId(h,this.data.items);if(E>-1)return"data.items."+E;for(var g=0;g<this.data.items.length;g++)if(E=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[g]))if(E=this.getEntryIndexMatchingId(h,E),E>-1)return"data.items."+g+".guideCollapsibleEntryRenderer.expandableItems."+E}};
_.p.handleAddToGuideSectionAction=function(h){var E=this;if(_.e(h,MRU)){var g=_.e(h,MRU).items;h=_.e(h,MRU).handlerData;var Z,M;if(g&&h&&((Z=this.data)==null?void 0:(M=Z.handlerDatas)==null?void 0:M.indexOf(h))>-1){g=g.filter(function(z){return(z=E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",z))&&!E.isGuideItemPresent(z)});
var W;if(h==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((W=this.data)==null?0:W.items)&&(Z=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),Z>-1)){this.splice.apply(this,["data.items",Z+1,0].concat(_.$E(g)));return}this.unshift.apply(this,["data.items"].concat(_.$E(g)))}}};
_.p.isGuideItemPresent=function(h){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(h,this.data.items)!==-1)return!0;var E=this.data.items.find(function(g){return!!g.guideCollapsibleEntryRenderer});
if((E==null?0:E.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(h,E.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.p.getEntryIndexMatchingId=function(h,E){var g=this;return E.findIndex(function(Z){return g.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===h})};
_.p.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(h,E){var g=this;return E.findIndex(function(Z){return g.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",Z)===h})};
_.p.handleRemoveFromGuideSectionAction=function(h){if(_.e(h,WlU)){var E=_.e(h,WlU).guideEntryId;h=_.e(h,WlU).handlerData;var g,Z;E&&h&&((g=this.data)==null?void 0:(Z=g.handlerDatas)==null?void 0:Z.indexOf(h))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(E,this.data.items),this.removeFromCollapsedSection(E,this.data.items))}};
_.p.removeFromExpandedSection=function(h,E){h=this.getEntryIndexMatchingId(h,E);h!==-1&&this.splice("data.items",h,1)};
_.p.removeFromCollapsedSection=function(h,E){var g=E.findIndex(function(Z){return!!Z.guideCollapsibleEntryRenderer});
g!==-1&&(E=E[g].guideCollapsibleEntryRenderer.expandableItems)&&(h=this.getEntryIndexMatchingId(h,E),h!==-1&&this.splice("data.items."+g+".guideCollapsibleEntryRenderer.expandableItems",h,1))};
_.p.activeEndpointChanged=function(){for(var h=_.UB(this.hostElement).querySelector("#items").children,E=0,g=h.length;E<g;E++)h[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.guideOpenedChanged=function(){for(var h=_.UB(this.hostElement).querySelector("#items").children,E=0,g=h.length;E<g;E++)h[E].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Cy.prototype.guideOpenedChanged=Cy.prototype.guideOpenedChanged;Cy.prototype.activeEndpointChanged=Cy.prototype.activeEndpointChanged;Cy.prototype.persistentGuideChanged=Cy.prototype.persistentGuideChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Cy.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],Cy.prototype,"ytLazyListBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],Cy.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Cy.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Cy.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",String)],Cy.prototype,"type",void 0);_.Y([_.x({value:20}),_.V("design:type",Number)],Cy.prototype,"initialCount",void 0);_.Y([_.x({value:10}),_.V("design:type",Number)],Cy.prototype,"targetFramerate",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],Cy.prototype,"autoFill",void 0);_.Y([_.x({value:50}),_.V("design:type",Number)],Cy.prototype,"renderDelay",void 0);
_.Y([_.Nm("guidePersistentAndVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"persistentGuideChanged",null);_.Y([_.lq("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"activeEndpointChanged",null);_.Y([_.lq("guideOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Cy.prototype,"guideOpenedChanged",null);
_.Y([_.K({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Cy);
_.X(Cy,"ytd-guide-section-renderer",function(){if(t4C!==void 0)return t4C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return t4C=h},{mode:_.UQ("kevlar_poly_si_batch_j073")?1:2});var SX0;var JH=function(){return _.D.apply(this,arguments)||this};
_.f(JH,_.D);_.ze.Object.defineProperties(JH.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],JH.prototype,"rendererBehaviors",void 0);_.Y([_.x(),_.V("design:type",Object)],JH.prototype,"data",void 0);_.Y([_.x(),_.S("data.signInButton.buttonRenderer.style"),_.V("design:type",Object),_.V("design:paramtypes",[])],JH.prototype,"alignByText",null);_.Y([_.K({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],JH);
_.X(JH,"ytd-guide-signin-promo-renderer",function(){if(SX0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);SX0=h}h=SX0;return h},{mode:1});var eZ=function(){var h=_.D.apply(this,arguments)||this;h.showFooter=!1;return h};
_.f(eZ,_.D);eZ.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}}}}};
eZ.prototype.attached=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1){E=_.GF().resolve(_.pl(_.RF));if(!E)return g.jumpTo(0);E.setGuideData(h.hostElement);return g.yield(0,3)}h.ytLazyListBehavior.initialCount=2;return g.return()})};
eZ.prototype.onMouseExit=function(){_.J("web_guide_hover_expansion")&&_.U7(this.hostElement,"yt-guide-mouseleaved",[])};
eZ.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
eZ.prototype.dataChanged=eZ.prototype.dataChanged;eZ.prototype.onMouseExit=eZ.prototype.onMouseExit;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wM.YtLazyListBehavior),_.V("design:type",Object)],eZ.prototype,"ytLazyListBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],eZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],eZ.prototype,"showFooter",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],eZ.prototype,"autoFill",void 0);_.Y([_.f3("mouseleave"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eZ.prototype,"onMouseExit",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eZ.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-guide-renderer",disableElementRegistration:!0})],eZ);
_.X(eZ,"ytd-guide-renderer",function(){if(N8c!==void 0)return N8c;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return N8c=h},{mode:_.UQ("kevlar_poly_si_batch_j073")?1:2});var xzI;var qU=function(){var h=_.D.apply(this,arguments)||this;h.systemIcons=_.J("kevlar_system_icons");h.frostedGlass=_.J("web_frosted_glass");h.getEndpointForm=function(){return s9G(h.data)};
return h};
_.f(qU,_.D);_.p=qU.prototype;_.p.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.p.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Wp(this.data.formattedTitle))};
_.p.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.p.onDown=function(){this.interaction.triggerDown()};
_.p.onUp=function(){this.interaction.triggerUp()};
_.p.onTap=function(h){if(this.data.serviceEndpoint){var E;_.J("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.e(this.data.serviceEndpoint,_.D9))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):YLG(this.data.serviceEndpoint,this);h.preventDefault()}else{var g;((g=this.data)==null?0:g.navigationEndpoint)&&!_.MI(_.Gw(h),this.hostElement,["A".toString()])&&_.Ra(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.p.computeActive=function(h,E){if(!h)return!1;var g=h.navigationEndpoint;h=h.serviceEndpoint;if(!g&&!h||!E)return!1;if(g){h=_.e(g,_.tk);var Z=_.e(E,_.tk);if(h&&Z)return h.browseId===Z.browseId&&h.params===Z.params;var M;g=(M=_.e(g.commandMetadata,_.qH))==null?void 0:M.url;var W;E=(W=_.e(E.commandMetadata,_.qH))==null?void 0:W.url;return!(!g||!E||g!==E&&g!==_.jy(E))}return this.isActiveShortsTab(h,E)};
_.p.isActiveShortsTab=function(h,E){E=!!_.e(E,_.D9)||!!_.e(E,_.Wt);return(!!_.e(h,_.D9)||!!_.e(h,_.Wt))&&E};
_.p.computeTitle=function(h,E){return E?"":_.Wp(h)};
_.ze.Object.defineProperties(qU.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
qU.prototype.onTap=qU.prototype.onTap;qU.prototype.onUp=qU.prototype.onUp;qU.prototype.onDown=qU.prototype.onDown;qU.prototype.onActiveStateChange=qU.prototype.onActiveStateChange;qU.prototype.dataChanged=qU.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],qU.prototype,"ytComponentBehavior",void 0);
_.Y([_.t(_.Td),_.V("design:type",Object)],qU.prototype,"ironButtonState",void 0);_.Y([_.x(),_.V("design:type",Object)],qU.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],qU.prototype,"activeEndpoint",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],qU.prototype,"noLabels",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.V("design:type",Boolean)],qU.prototype,"isActive",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],qU.prototype,"systemIcons",void 0);_.Y([_.Sg("yt-interaction"),_.V("design:type",Object)],qU.prototype,"interaction",void 0);_.Y([_.S("isActive"),_.V("design:type",Object),_.V("design:paramtypes",[])],qU.prototype,"ariaSelected",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],qU.prototype,"frostedGlass",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qU.prototype,"dataChanged",null);_.Y([_.Nm("isActive"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qU.prototype,"onActiveStateChange",null);_.Y([_.f3("down"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qU.prototype,"onDown",null);
_.Y([_.f3("up"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],qU.prototype,"onUp",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],qU.prototype,"onTap",null);_.Y([_.K({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],qU);
_.X(qU,"ytd-mini-guide-entry-renderer",function(){if(xzI!==void 0)return xzI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return xzI=h},{mode:_.UQ("kevlar_poly_si_batch_j063")?1:2});var wGR;var fy=function(){var h=_.D.apply(this,arguments)||this;h.allVideosCount=0;h.noLabels=_.J("kevlar_mini_guide_no_labels")||_.J("kevlar_modern_mini_guide");h.frostedGlass=_.J("web_frosted_glass");return h};
_.f(fy,_.D);_.p=fy.prototype;_.p.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.p.onMouseEnter=function(){_.J("web_guide_hover_expansion")&&_.U7(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.p.visibleChanged=function(){if(this.visible&&!this.data){var h=_.GF().resolve(_.pl(_.RF));h&&h.setGuideData(this.hostElement)}};
_.p.dataChanged=function(){var h=[],E;if((E=this.data)!=null&&E.items){E=_.G(this.data.items);for(var g=E.next();!g.done;g=E.next()){g=g.value;var Z=void 0;if((Z=g.guideSectionRenderer)==null?0:Z.items)for(Z=void 0,g=_.G((Z=g.guideSectionRenderer)==null?void 0:Z.items),Z=g.next();!Z.done;Z=g.next())if(Z=Z.value,Z.guideEntryRenderer)Z=Z.guideEntryRenderer,Z.isPrimary&&h.push({guideEntryRenderer:Z});else if(Z.guideCollapsibleSectionEntryRenderer){var M=void 0;((M=_.e(Z.guideCollapsibleSectionEntryRenderer.headerEntry,
Ad))==null?0:M.isPrimary)&&h.push({guideEntryRenderer:_.e(Z.guideCollapsibleSectionEntryRenderer.headerEntry,Ad)});if(Z=Z.guideCollapsibleSectionEntryRenderer.sectionItems)for(Z=_.G(Z),M=Z.next();!M.done;M=Z.next()){var W=M.value;M=_.e(W,Jg0);var z=void 0;((z=_.e(W,Ad))==null?0:z.isPrimary)?h.push({guideEntryRenderer:_.e(W,Ad)}):M&&(W=void 0,_.e((W=M)==null?void 0:W.entryRenderer,Ad)&&(M.alwaysShow||this.allVideosCount)&&h.push({guideEntryRenderer:_.e(M.entryRenderer,Ad)}))}}}}this.miniGuideItems=
h};
_.p.activeEndpointChanged=function(){for(var h=this.items.children,E=0;E<h.length;E++)h[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.p.registerWithViewTransitionManager=function(){var h=this;_.xW(_.KP,function(){var E=_.GF().resolve(_.pl(_.Vr));if(E&&E.isAnyTransitionEnabled){var g={};E.viewTransitionCoordinator.registerElement(h.hostElement,(g.slide="mini-guide-page-transition",g))}})};
fy.prototype.activeEndpointChanged=fy.prototype.activeEndpointChanged;fy.prototype.dataChanged=fy.prototype.dataChanged;fy.prototype.visibleChanged=fy.prototype.visibleChanged;fy.prototype.onMouseEnter=fy.prototype.onMouseEnter;_.Y([_.t(_.aF),_.V("design:type",Object)],fy.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],fy.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],fy.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],fy.prototype,"ytComponentBehavior",void 0);_.Y([_.Sg("#items"),_.V("design:type",Object)],fy.prototype,"items",void 0);_.Y([_.x(),_.V("design:type",Object)],fy.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],fy.prototype,"visible",void 0);_.Y([_.x(),_.V("design:type",Object)],fy.prototype,"miniGuideItems",void 0);_.Y([_.x({selector:_.omV}),_.V("design:type",Object)],fy.prototype,"allVideosCount",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],fy.prototype,"noLabels",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],fy.prototype,"frostedGlass",void 0);
_.Y([_.f3("mouseenter"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fy.prototype,"onMouseEnter",null);_.Y([_.lq("visible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fy.prototype,"visibleChanged",null);_.Y([_.lq("data","allVideosCount"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fy.prototype,"dataChanged",null);
_.Y([_.lq("activeEndpoint"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],fy.prototype,"activeEndpointChanged",null);_.Y([_.K({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],fy);
_.X(fy,"ytd-mini-guide-renderer",function(){if(wGR===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);wGR=h}h=wGR;return h},{mode:1});var DzR;var l5x=/^[\x00-\x7F]+$/,NU=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(NU,_.D);_.ze.Object.defineProperties(NU.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var h,E=_.Wp((h=this.data)==null?void 0:h.handle);if(E)return _.MR("@"+E)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var h=_.Wp(this.displayHandle),E,g=_.Wp((E=this.data)==null?void 0:E.handleUrl);if(h&&g)return _.MR(g+h)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var h=_.Wp(this.displayHandle);if(h&&!l5x.test(h)){var E;return(E=this.data)==null?void 0:E.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var h=_.Wp(this.displayHandleUrl),E,g=_.Wp((E=this.data)==null?void 0:E.urlInfoText);if(h&&g)return _.MR(g+" "+h)}}});
_.Y([_.x(),_.V("design:type",Object)],NU.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],NU.prototype,"displayHandle",null);_.Y([_.S("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],NU.prototype,"displayHandleUrl",null);_.Y([_.S("displayHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],NU.prototype,"warningText",null);
_.Y([_.S("displayHandleUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],NU.prototype,"urlInfoTextWithUrl",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],NU.prototype,"darkerDarkTheme",void 0);_.Y([_.K({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],NU);
_.X(NU,"ytd-handles-claiming-confirm-dialog-content",function(){if(DzR!==void 0)return DzR;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return DzR=h},{mode:1});var rZX;var tH=function(){var h=_.D.apply(this,arguments)||this;h.okButtonOverride={style:"mono",type:"outline",size:"M"};return h};
_.f(tH,_.D);tH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
tH.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tH.prototype,"okButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],tH.prototype,"data",void 0);_.Y([_.K({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],tH);
_.X(tH,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(rZX!==void 0)return rZX;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return rZX=h},{mode:1});var mzp;var v6i=/^[\x00-\x7F]+$/,SZ=function(){var h=_.D.apply(this,arguments)||this;h.isLoading=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(SZ,_.D);SZ.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var h;this.selectedHandle=(h=this.handleInput)==null?void 0:h.value;this.onSelectedHandleChanged(this.selectedHandle);_.U7(this.hostElement,"yt-refit-popups-action")}};
_.ze.Object.defineProperties(SZ.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var h;return(h=this.data)==null?void 0:h.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.MR("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.MR(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!v6i.test(this.selectedHandle)){var h;return(h=this.data)==null?void 0:h.warningText}}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],SZ.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SZ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],SZ.prototype,"selectedHandle",void 0);_.Y([_.x(),_.V("design:type",Object)],SZ.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Function)],SZ.prototype,"onSelectedHandleChanged",void 0);_.Y([_.Sg("#channel-handle-input"),_.V("design:type",Object)],SZ.prototype,"handleInput",void 0);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],SZ.prototype,"handleUrlPrefix",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],SZ.prototype,"displayHandle",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],SZ.prototype,"displayHandleUrl",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],SZ.prototype,"warningText",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],SZ.prototype,"darkerDarkTheme",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.Y([_.K({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],SZ);
_.X(SZ,"ytd-handles-claiming-edit-dialog-content",function(){if(mzp!==void 0)return mzp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return mzp=h},{mode:1});var HjC;var xh=function(){var h=_.D.apply(this,arguments)||this;h.actionButtonOverride={style:"mono",type:"filled",size:"M"};h.cancelButtonOverride={style:"mono",type:"text",size:"M"};h.selectButtonDisabled=!1;h.isLoading=!1;h.hasSelectedHandleEventListener=!1;h.selectedHandleChanged=function(E){h.selectedHandle=E};
return h};
_.f(xh,_.D);_.p=xh.prototype;_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.p.onDataChanged=function(){var h,E;this.selectedHandle=(E=_.e((h=this.data)==null?void 0:h.inputField,QUc))==null?void 0:E.handle};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.selectedHandle="";_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var h=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(g,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.uv(h.hostElement,_.Wp(Z.newHandleUpdateStatus.errorMessage)),
h.isLoading=!1;else{var M;if((M=h.data)==null?0:M.onChannelUpdateSuccess){g=h.data.onChannelUpdateSuccess;var W,z;if(Z=(W=_.e(g,_.sr))==null?void 0:(z=W.popup)==null?void 0:z.handlesClaimingConfirmDialogRenderer)Z.handle=_.MR(h.selectedHandle);h.ytComponentBehavior.resolveCommand(g);_.BX(h.hostElement,"yt-close-popup-action",[h.is])}else h.isLoading=!1}},
onServerError:function(){var g;h.content&&((g=h.content)==null?0:g.handleInput)&&h.content.handleInput.validate();h.isLoading=!1;_.uv(h.hostElement,_.NH("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
xh.prototype.onDataChanged=xh.prototype.onDataChanged;xh.prototype.onSelectedHandleChanged=xh.prototype.onSelectedHandleChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xh.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"actionButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"cancelButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",String)],xh.prototype,"selectedHandle",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"selectButtonDisabled",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"hasSelectedHandleEventListener",void 0);_.Y([_.x(),_.V("design:type",Object)],xh.prototype,"handleInput",void 0);
_.Y([_.Nm("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xh.prototype,"onSelectedHandleChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xh.prototype,"onDataChanged",null);_.Y([_.Sg("ytd-handles-claiming-edit-dialog-content"),_.V("design:type",Object)],xh.prototype,"content",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.K({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],xh);
_.X(xh,"ytd-handles-claiming-edit-dialog-renderer",function(){if(HjC!==void 0)return HjC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HjC=h},{mode:1});var $zU;var wF=function(){return _.D.apply(this,arguments)||this};
_.f(wF,_.D);_.ze.Object.defineProperties(wF.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null?0:h.handle){var E;return _.MR("@"+_.Wp((E=this.data)==null?void 0:E.handle))}}}});
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],wF.prototype,"formattedHandle",null);_.Y([_.x(),_.V("design:type",Object)],wF.prototype,"data",void 0);_.Y([_.K({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],wF);
_.X(wF,"ytd-handles-claiming-radio-option-renderer",function(){if($zU!==void 0)return $zU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $zU=h},{mode:1});var KWx;var OjC=/^[\x00-\x7F]+$/,DQ=function(){var h=_.D.apply(this,arguments)||this;h.initialRadioIndex="-1";h.isLoading=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.maybeSubmitFeedback=function(){h.feedbackSurveyRenderer.submitSurvey()};
return h};
_.f(DQ,_.D);DQ.prototype.updateSelectedHandleIndexFromBinding=function(h){this.selectedRadioIndex=+h.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(h)};
DQ.prototype.selectedHandleChanged=function(h){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var E;this.selectedHandle=(E=this.handleInput)==null?void 0:E.value;this.onSelectedHandleChanged(h)}};
_.ze.Object.defineProperties(DQ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var h;return this.ytRendererBehavior.getSimpleString((h=this.data)==null?void 0:h.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.MR("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.MR(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!OjC.test(this.selectedHandle)){var h;return(h=this.data)==null?void 0:h.warningText}}}});
_.Y([_.x(),_.V("design:type",Object)],DQ.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],DQ.prototype,"initialRadioIndex",void 0);_.Y([_.x(),_.V("design:type",Number)],DQ.prototype,"selectedRadioIndex",void 0);_.Y([_.x(),_.V("design:type",String)],DQ.prototype,"selectedHandle",void 0);_.Y([_.x(),_.V("design:type",Object)],DQ.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Function)],DQ.prototype,"onSelectedHandleChanged",void 0);
_.Y([_.x(),_.V("design:type",Function)],DQ.prototype,"onSelectedRadioIndexChanged",void 0);_.Y([_.Sg("#channel-handle-input"),_.V("design:type",Object)],DQ.prototype,"handleInput",void 0);_.Y([_.Sg("ytd-feedback-survey-renderer"),_.V("design:type",Object)],DQ.prototype,"feedbackSurveyRenderer",void 0);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],DQ.prototype,"radioButtonLength",null);
_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],DQ.prototype,"handleUrlPrefix",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],DQ.prototype,"displayHandle",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],DQ.prototype,"displayHandleUrl",null);_.Y([_.S("selectedHandle"),_.V("design:type",Object),_.V("design:paramtypes",[])],DQ.prototype,"warningText",null);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],DQ.prototype,"darkerDarkTheme",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.Y([_.K({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],DQ);
_.X(DQ,"ytd-handles-claiming-select-dialog-content",function(){if(KWx!==void 0)return KWx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return KWx=h},{mode:1});var n6X;var lW=function(){var h=_.D.apply(this,arguments)||this;h.actionButtonOverride={style:"mono",type:"filled",size:"M"};h.cancelButtonOverride={style:"mono",type:"text",size:"M"};h.initialRadioIndex="-1";h.selectButtonDisabled=!1;h.isLoading=!1;h.selectedRadioIndexChanged=function(E){h.selectedRadioIndex=Number(E.detail.value)};
h.selectedHandleChanged=function(E){h.selectedHandle=E.detail.value};
h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(lW,_.D);_.p=lW.prototype;_.p.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.p.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.p.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.U7(this.hostElement,"yt-refit-popups-action")};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onSelectHandle=function(){var h=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(g,Z){if(Z.newHandleUpdateStatus!==void 0&&Z.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&Z.newHandleUpdateStatus.errorMessage)_.uv(h.hostElement,_.Wp(Z.newHandleUpdateStatus.errorMessage)),
h.isLoading=!1;else{var M;if((M=h.data)==null?0:M.onChannelUpdateSuccess){g=h.data.onChannelUpdateSuccess;Z=_.e(g,_.sr);var W;if(Z==null?0:(W=Z.popup)==null?0:W.handlesClaimingConfirmDialogRenderer)Z.popup.handlesClaimingConfirmDialogRenderer.handle=_.MR(h.selectedHandle);h.ytComponentBehavior.resolveCommand(g);_.BX(h.hostElement,"yt-close-popup-action",[h.is])}else h.isLoading=!1}},
onServerError:function(){if(h.selectedRadioIndex===h.radioButtonLength){var g;h.content&&((g=h.content)==null?0:g.handleInput)&&h.content.handleInput.validate()}h.isLoading=!1;_.uv(h.hostElement,_.NH("TRY_AGAIN_LATER"))}}}))}};
_.p.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var h,E;this.selectedHandle=(h=this.content)==null?void 0:(E=h.handleInput)==null?void 0:E.value}else this.selectedRadioIndex>=0&&((h=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(h==null?void 0:h.handle):this.selectedHandle=void 0)};
_.p.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.p.getRadioItem=function(h){if(this.radioButtonLength>h&&h>=0)return _.e(this.data.radioButton[h],PeC)};
_.ze.Object.defineProperties(lW.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var h;return(((h=this.data)==null?void 0:h.radioButton)||[]).length}}});
lW.prototype.onSelectedHandleChanged=lW.prototype.onSelectedHandleChanged;lW.prototype.onSelectedHandleIndexChanged=lW.prototype.onSelectedHandleIndexChanged;lW.prototype.onDataChanged=lW.prototype.onDataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lW.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"actionButtonOverride",void 0);_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"cancelButtonOverride",void 0);
_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"initialRadioIndex",void 0);_.Y([_.x(),_.V("design:type",Number)],lW.prototype,"selectedRadioIndex",void 0);_.Y([_.x(),_.V("design:type",String)],lW.prototype,"selectedHandle",void 0);_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"selectButtonDisabled",void 0);_.Y([_.x(),_.V("design:type",Object)],lW.prototype,"isLoading",void 0);
_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],lW.prototype,"radioButtonLength",null);_.Y([_.Sg("ytd-handles-claiming-select-dialog-content"),_.V("design:type",Object)],lW.prototype,"content",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"onDataChanged",null);
_.Y([_.Nm("selectedRadioIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"onSelectedHandleIndexChanged",null);_.Y([_.Nm("selectedHandle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lW.prototype,"onSelectedHandleChanged",null);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],lW.prototype,"darkerDarkTheme",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.K({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],lW);
_.X(lW,"ytd-handles-claiming-select-dialog-renderer",function(){if(n6X!==void 0)return n6X;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return n6X=h},{mode:1});var XGx;var YXC;var rF=function(){return _.D.apply(this,arguments)||this};
_.f(rF,_.D);rF.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],rF.prototype,"data",void 0);_.Y([_.K({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],rF);
_.X(rF,"ytd-hotkey-dialog-section-option-renderer",function(){if(YXC!==void 0)return YXC;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return YXC=h},{mode:1});var s4U;var mG=function(){return _.D.apply(this,arguments)||this};
_.f(mG,_.D);mG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],mG.prototype,"data",void 0);_.Y([_.K({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],mG);
_.X(mG,"ytd-hotkey-dialog-section-renderer",function(){if(s4U!==void 0)return s4U;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return s4U=h},{mode:1});var vd=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(vd,_.D);vd.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vd.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],vd.prototype,"darkerDarkTheme",void 0);_.Y([_.K({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],vd);
_.X(vd,"ytd-hotkey-dialog-content",function(){if(XGx!==void 0)return XGx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return XGx=h},{mode:1});var V4Z;var Hd=function(){return _.D.apply(this,arguments)||this};
_.f(Hd,_.D);Hd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var h=document.querySelector("ytd-hotkey-dialog-content #scrollable");h&&(h.dialogElement=this.hostElement.parentElement)};
Hd.prototype.onCloseTap=function(){_.BX(this.hostElement,"yt-close-popup-action")};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Hd.prototype,"data",void 0);_.Y([_.K({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Hd);
_.X(Hd,"ytd-hotkey-dialog-renderer",function(){if(V4Z!==void 0)return V4Z;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return V4Z=h},{mode:1});var kSG;var $h=function(){return _.D.apply(this,arguments)||this};
_.f($h,_.D);$h.prototype.onYtServiceRequestError=function(){if(this.blocked){var h;var E=(h=this.data)==null?void 0:h.defaultServiceEndpoint}else{var g;E=(g=this.data)==null?void 0:g.toggledServiceEndpoint}var Z;(E=(Z=_.e(E,_.EiM))==null?void 0:Z.onFailureAction)&&this.ytComponentBehavior.resolveCommand(E);this.updateBlockState(!this.blocked)};
$h.prototype.onYtToggleButton=function(h){this.updateBlockState(h.detail.toggled)};
$h.prototype.updateBlockState=function(h){if(h!==this.blocked){var E=this.blockedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.xx("blockStateEntity",E,{key:E,blocked:h}));this.set("data.isToggled",h)}};
_.ze.Object.defineProperties($h.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)}}});
$h.prototype.onYtToggleButton=$h.prototype.onYtToggleButton;$h.prototype.onYtServiceRequestError=$h.prototype.onYtServiceRequestError;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],$h.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],$h.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$h.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],$h.prototype,"blockedEntityKey",void 0);
_.Y([_.x({selectorArgs:["blockedEntityKey"],selector:function(h,E){return _.Jj(h.entities,"blockStateEntity",E)}}),
_.V("design:type",Object)],$h.prototype,"blockStateEntity",void 0);_.Y([_.S("data","blockStateEntity"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],$h.prototype,"blocked",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$h.prototype,"onYtServiceRequestError",null);
_.Y([_.f3("yt-toggle-button"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],$h.prototype,"onYtToggleButton",null);_.Y([_.K({is:"ytd-block-button",disableElementRegistration:!0})],$h);
_.X($h,"ytd-block-button",function(){if(kSG!==void 0)return kSG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return kSG=h},
{mode:1});var yZX;var FWc;var Ky=function(){return _.D.apply(this,arguments)||this};
_.f(Ky,_.D);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Ky.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ky.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Ky.prototype,"data",void 0);_.Y([_.K({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Ky);
_.X(Ky,"ytd-kids-blocklist-picker-item-renderer",function(){if(FWc!==void 0)return FWc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return FWc=h},{mode:1});var OT=function(){return _.D.apply(this,arguments)||this};
_.f(OT,_.D);OT.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],OT.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OT.prototype,"data",void 0);_.Y([_.K({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],OT);
_.X(OT,"ytd-kids-blocklist-picker-content",function(){if(yZX!==void 0)return yZX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return yZX=
h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var AZc;var ny=function(){var h=_.D.apply(this,arguments)||this;h.hasAnyRequestSucceeded=!1;h.hasAnyRequestFailed=!1;h.numPendingRequests=0;return h};
_.f(ny,_.D);_.p=ny.prototype;_.p.attached=function(){this.hostElement.setAttribute("dialog","")};
_.p.onDoneButtonTap=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.p.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.p.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.p.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.p.onPopupClosed=function(h){var E,g;if(((E=h.detail)==null?void 0:(g=E.popup)==null?void 0:g.is)==="tp-yt-paper-dialog"){var Z;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((Z=this.data)==null?0:Z.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.at(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
ny.prototype.onPopupClosed=ny.prototype.onPopupClosed;ny.prototype.onYtServiceRequestError=ny.prototype.onYtServiceRequestError;ny.prototype.onYtServiceRequestCompleted=ny.prototype.onYtServiceRequestCompleted;ny.prototype.onYtServiceRequestSent=ny.prototype.onYtServiceRequestSent;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ny.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],ny.prototype,"data",void 0);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ny.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ny.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],ny.prototype,"onYtServiceRequestError",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ny.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],ny);
_.X(ny,"ytd-kids-blocklist-picker-renderer",function(){if(AZc!==void 0)return AZc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return AZc=h},{mode:1});var T8X;var bjI;var Xo=function(){return _.D.apply(this,arguments)||this};
_.f(Xo,_.D);Xo.prototype.setTip=function(h){var E=this;this.data&&(this.tip=n90(KDR.getInstance(),h,this.data),_.pQ(this,function(){_.Ra(E.hostElement,"yt-refit")}))};
Xo.prototype.clearTip=function(){this.tip=void 0};
Xo.prototype.computeHidden=function(h){return!h};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Xo.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.V("design:type",Boolean)],Xo.prototype,"hidden",void 0);_.Y([_.x(),_.V("design:type",Object)],Xo.prototype,"tip",void 0);_.Y([_.K({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Xo);
_.X(Xo,"ytd-menu-popup-tip-renderer",function(){if(bjI!==void 0)return bjI;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);
return bjI=h},{mode:1});var u4p;var Yh=function(){var h=_.D.apply(this,arguments)||this;h.useIcons=!1;h.systemIcons=_.J("kevlar_system_icons");h.useListItemStyles=_.J("web_list_item_style_for_menu_items");return h};
_.f(Yh,_.D);_.p=Yh.prototype;_.p.onFocus=function(){var h;(h=_.UB(this.hostElement).querySelector("tp-yt-paper-item"))==null||h.focus()};
_.p.onTap=function(){var h=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(h&&_.e(h,_.CZ))this.componentBehavior.resolveCommand(h),this.updateToggledStateInEntity();else if(h){this.componentBehavior.resolveCommand(h)||_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}});var E;((E=_.e(h,_.ej))==null?void 0:E.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.p.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.p.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.p.updateToggledStateInEntity=function(){var h=this.data.toggleMenuServiceItemEntityKey,E=!this.data.isToggled;h&&this.ytdReduxBehavior.dispatch(_.xx("toggleMenuServiceItemEntity",h,{key:h,isToggled:E}))};
_.p.computeIcon=function(h,E,g){return(h=h?g:E)&&h.iconType?_.CL(h.iconType):""};
_.p.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.p.isIconActive=function(h){return!_.J("toggle_menu_active_icon_killswitch")&&h};
_.ze.Object.defineProperties(Yh.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?0:h.isToggled)?(E=this.data)==null?void 0:E.toggledText:(g=this.data)==null?void 0:g.defaultText}}});
Yh.prototype.toggledStateEntityChanged=Yh.prototype.toggledStateEntityChanged;Yh.prototype.onYtServiceRequestCompleted=Yh.prototype.onYtServiceRequestCompleted;Yh.prototype.onTap=Yh.prototype.onTap;Yh.prototype.onFocus=Yh.prototype.onFocus;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Yh.prototype,"componentBehavior",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Yh.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yh.prototype,"useIcons",void 0);_.Y([_.x({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.V("design:type",String)],Yh.prototype,"icon",void 0);
_.Y([_.x({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(h,E){return _.Jj(h.entities,"toggleMenuServiceItemEntity",E)}}),
_.V("design:type",Object)],Yh.prototype,"toggleMenuServiceItemEntity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yh.prototype,"systemIcons",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Yh.prototype,"useListItemStyles",void 0);_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yh.prototype,"onFocus",null);
_.Y([_.S("data.isToggled"),_.V("design:type",Object),_.V("design:paramtypes",[])],Yh.prototype,"toggleButtonText",null);_.Y([_.f3("tap"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yh.prototype,"onTap",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yh.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.Nm("toggleMenuServiceItemEntity.isToggled","data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yh.prototype,"toggledStateEntityChanged",null);_.Y([_.K({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Yh);
_.X(Yh,"ytd-toggle-menu-service-item-renderer",function(){if(u4p!==void 0)return u4p;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return u4p=h},{mode:1});var Q4I;var sT=function(){return _.D.apply(this,arguments)||this};
_.f(sT,_.D);sT.prototype.onFocus=function(){var h;(h=_.UB(this.hostElement).querySelector("tp-yt-paper-item"))==null||h.focus()};
_.ze.Object.defineProperties(sT.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Yr(this.data.iconUrl)}}});
sT.prototype.onFocus=sT.prototype.onFocus;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],sT.prototype,"rendererBehavior",void 0);_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],sT.prototype,"ytEndpointBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],sT.prototype,"data",void 0);_.Y([_.f3("focus"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],sT.prototype,"onFocus",null);
_.Y([_.S("data.iconUrl"),_.V("design:type",Object),_.V("design:paramtypes",[])],sT.prototype,"imageSource",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],sT);
_.X(sT,"ytd-menu-custom-icon-item-renderer",function(){if(Q4I!==void 0)return Q4I;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Q4I=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});_.I9(_.zo,"yt-list-item-view-model",{props:{data:_.C6,isMenuItem:_.C6,isCompact:_.C6,onTap:_.c$,trailingAccessory:_.c$,hideSelectionTextChevron:_.C6,disabled:_.C6,inPopup:_.C6,disableHorizontalPadding:_.C6,isOverlay:_.C6,isToggled:_.C6,ariaLabel:_.C6,ariaPressed:_.C6}});var V9=function(){var h=_.D.apply(this,arguments)||this;h.disableBackdropFilter=_.J("web_disable_backdrop_filter");return h};
_.f(V9,_.D);_.p=V9.prototype;
_.p.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.p.computeAriaLabel=function(h){return h};
_.p.onPopupOpened=function(){this.items.selected=0;for(var h=_.G(_.UB(this.items).children),E=h.next();!E.done;E=h.next())E.value.popupPositionTarget=this.positionTarget;if(h=this.popupTip||void 0)h.setTip(this.source||""),this.source=void 0;this.veData&&(h=_.sH())&&_.Eo(h,[this.veData])};
_.p.onPopupClosed=function(){var h=this.popupTip||void 0;h&&h.clearTip()};
_.p.onIronActivate=function(h){this.shouldPersist(h)||_.BX(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(h=_.sH())&&_.Z$(h,this.veData)};
_.p.shouldPersist=function(h){var E,g;if(((E=h.detail)==null?void 0:E.selected)===void 0||(g=this.data)==null||!g.items)return!1;var Z,M;return!((M=(Z=this.data.items[h.detail.selected])==null?void 0:Z.toggleMenuServiceItemRenderer)==null||!M.persistentOnMenuPopup)};
_.p.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(h){return h.menuNavigationItemRenderer?!!h.menuNavigationItemRenderer.icon:h.menuServiceItemRenderer?!!h.menuServiceItemRenderer.icon:h.menuConditionalServiceItemRenderer?!!h.menuConditionalServiceItemRenderer.icon:h.menuConditionalNavigationItemRenderer?!!h.menuConditionalNavigationItemRenderer.icon:h.toggleMenuServiceItemRenderer?!!h.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
V9.prototype.onPopupClosed=V9.prototype.onPopupClosed;V9.prototype.onPopupOpened=V9.prototype.onPopupOpened;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],V9.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],V9.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],V9.prototype,"veData",void 0);_.Y([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.V("design:type",String)],V9.prototype,"ariaLabel",void 0);_.Y([_.x({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],V9.prototype,"useIcons",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],V9.prototype,"disableBackdropFilter",void 0);_.Y([_.Sg("#items"),_.V("design:type",Object)],V9.prototype,"items",void 0);_.Y([_.Sg("ytd-menu-popup-tip-renderer"),_.V("design:type",Object)],V9.prototype,"popupTip",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],V9.prototype,"onPopupOpened",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],V9.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],V9);
_.X(V9,"ytd-menu-popup-renderer",function(){if(T8X!==void 0)return T8X;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return T8X=h},{mode:1});var hNU;var ECJ=_.O(function(h){h=_.au(h,{icon:void 0});var E=h.data;h=h.icon;var g=function(){return E().iconBadgeText},Z={},M=_.CO("yt-spec-icon-badge-shape",function(){a:switch(E().iconBadgeType){case "notification":var W="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":W="yt-spec-icon-badge-shape--type-cart";break a;default:W=""}return W},function(){a:switch(E().iconBadgeStyle){case "overlay":var W="yt-spec-icon-badge-shape--style-overlay";
break a;default:W=""}return W},(Z["yt-spec-icon-badge-shape--text-size-small"]=function(){var W=g();
return!!((W==null?0:W.length)&&W.length>2)},Z));
return _.R("yt-icon-badge-shape",null,_.R(_.P,{cond:h,then:function(W){return _.R("div",{class:M},_.R("div",{class:"yt-spec-icon-badge-shape__icon"},_.R(_.Ni,{icon:W})),_.R(_.P,{cond:g,then:function(z){return _.R("div",{class:"yt-spec-icon-badge-shape__badge"},z)}}))}}))},"yh");
ECJ.idomCompat=!0;_.I9(ECJ,"yt-icon-badge-shape",{props:{data:_.C6,icon:_.C6}});var kh=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};h.unseenCount=0;h.isOverlay=!1;return h};
_.f(kh,_.D);_.p=kh.prototype;_.p.attached=function(){var h=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(E){h.onServiceWorkerMessage(E)})};
_.p.onDataChanged=function(){this.isAttached&&!this.JSC$20482_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20482_lastData=this.data};
_.p.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.computeIcon=function(){var h,E;return(h=this.data)==null?void 0:(E=h.icon)==null?void 0:E.iconType};
_.p.onServiceWorkerMessage=function(h){h.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.p.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.e(this.data.updateUnseenCountEndpoint,_.ej)&&_.e(this.data.updateUnseenCountEndpoint,_.ej).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.p.handleUpdateNotificationsUnseenCountAction=function(h){var E=this;h=_.e(h,pBJ);h!=null&&h.unseenCount&&h.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(h.unseenCount),_.KP.addLowPriorityJob(function(){E.data.updateUnseenCountEndpoint&&E.ytComponentBehavior.resolveCommand(E.data.updateUnseenCountEndpoint)},h.timeoutMs))};
_.p.onClick=function(){_.Ra(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var h=_.U7(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),E=this.data.menuRequest;h&&h.length===1&&h[0]?_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):E&&this.ytComponentBehavior.resolveCommand(E)};
_.p.handleTopbarMenuClosedAction=function(h){h==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.p.toggleIconState=function(h){this.iconButton&&(this.iconButton.pressed=h)};
_.p.sendUnseenCountRequest=function(h){var E=this;_.xW(_.KP,function(){E.ytComponentBehavior.resolveCommand(h)})};
_.p.updateCountUI=function(h){this.set("unseenCount",h<9?h:"9+")};
_.ze.Object.defineProperties(kh.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
kh.prototype.handleUpdateNotificationsUnseenCountAction=kh.prototype.handleUpdateNotificationsUnseenCountAction;kh.prototype.onDataChanged=kh.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],kh.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.fJ),_.V("design:type",Object)],kh.prototype,"ytdOpenPopupBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],kh.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],kh.prototype,"unseenCount",void 0);_.Y([_.x(),_.V("design:type",Object)],kh.prototype,"isOverlay",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],kh.prototype,"showTooltips",void 0);_.Y([_.Sg("yt-icon-button"),_.V("design:type",Object)],kh.prototype,"iconButton",void 0);
_.Y([_.S("unseenCount"),_.V("design:type",Object),_.V("design:paramtypes",[])],kh.prototype,"showNotificationCount",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],kh.prototype,"onDataChanged",null);_.Y([_.f3("yt-update-notifications-unseen-count-action"),_.V("design:type",Function),_.V("design:paramtypes",[Object]),_.V("design:returntype")],kh.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.Y([_.K({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],kh);
_.X(kh,"ytd-notification-topbar-button-renderer",function(){if(hNU!==void 0)return hNU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return hNU=h},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var gCC;var y9=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return h};
_.f(y9,_.D);y9.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}}}}}};
y9.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
y9.prototype.onDarkModeToggled=function(h){this.dark=h};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],y9.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],y9.prototype,"data",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],y9.prototype,"dark",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],y9);
_.X(y9,"yt-pdg-buy-flow-header-renderer",function(){if(gCC!==void 0)return gCC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return gCC=h},{mode:1});var ZYG;var MmG;var Fo=function(){var h=_.D.apply(this,arguments)||this;h.immediateValue=0;h.isDarkTheme=!1;h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(Fo,_.D);_.p=Fo.prototype;_.p.created=function(){_.ZL.requestAvailability()};
_.p.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.p.dataChanged=function(){var h=_.UB(this.hostElement).querySelector("#color-slider");h.immediateValue&&this.updateSliderKnobAndGradientStyles(h.immediateValue);this.data.notches[0].knobColorArgb&&_.Ja(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.uU(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.nF("HTML_DIR")==="rtl"&&_.UB(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.p.onSliderImmediateChange=function(){var h=_.UB(this.hostElement).querySelector("#color-slider");h.dragging&&(h.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(h.immediateValue),this.updateSliderKnobAndGradientStyles(h.immediateValue)),this.updateSliderAria())};
_.p.onSliderChange=function(){var h=_.UB(this.hostElement).querySelector("#color-slider");h.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(h.immediateValue),this.updateSliderKnobAndGradientStyles(h.immediateValue));this.updateSliderAria()};
_.p.updateSliderAria=function(){var h=_.UB(this.hostElement).querySelector("#color-slider"),E=_.UB(this.hostElement).querySelector("#color-slider");E=_.Wp(this.data.notches[E.immediateValue].tierValue);_.cMz()&&_.Ra(this.hostElement,"iron-announce",{text:E});h.setAttribute("aria-valuetext",E)};
_.p.updateSuperThanksSelectedTierEntity=function(h){if(h!==this.immediateValue){var E,g,Z=this==null?void 0:(E=this.data)==null?void 0:(g=E.superThanksSelectedTierEntity)==null?void 0:g.key;Z&&Z.length>0&&this.ytdReduxBehavior.dispatch(_.xx("superThanksSelectedTierEntity",Z,{key:Z,index:h}))}};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.updateSliderKnobAndGradientStyles=function(h){this.immediateValue=h;h=this.data.notches[h];if(h==null?0:h.knobColorArgb)var E={"--ytd-pdg-color-slider-knob-color":_.uU(h.knobColorArgb)};(h==null?0:h.linearGradientCssStyle)&&E!==null&&(E=Object.assign({},E,{"--ytd-pdg-color-slider-active-color":h==null?void 0:h.linearGradientCssStyle}));E!==null&&_.Ja(this.hostElement,E)};
Fo.prototype.onSliderChange=Fo.prototype.onSliderChange;Fo.prototype.onSliderImmediateChange=Fo.prototype.onSliderImmediateChange;Fo.prototype.dataChanged=Fo.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],Fo.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Fo.prototype,"immediateValue",void 0);_.Y([_.x(),_.V("design:type",Number)],Fo.prototype,"maxMarkers",void 0);
_.Y([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QYC}),_.V("design:type",Object)],Fo.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Fo.prototype,"isDarkTheme",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],Fo.prototype,"ytdReduxBehavior",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fo.prototype,"dataChanged",null);
_.Y([_.f3("immediate-value-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fo.prototype,"onSliderImmediateChange",null);_.Y([_.f3("change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Fo.prototype,"onSliderChange",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Fo);
_.X(Fo,"ytd-pdg-color-slider-renderer",function(){if(MmG!==void 0)return MmG;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return MmG=h},{mode:1});var W0R;var p1Z;var AH=null;
_.OB({is:"ytd-comment-input",_template:function(){if(p1Z!==void 0)return p1Z;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return p1Z=h},
behaviors:[_.lk$.YtHostElementBehavior,_.Kf,_.IU.YtComponentBehavior,_.wK.YtRendererstamperBehavior,_.OTf.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 _.PB}},
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",_.qm(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;_.xi();this.focus()},
detached:function(){document.removeEventListener("tap",_.qm(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(h){h=h.detail;h=h.isCustomEmoji?h.shortcuts[0]:h.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,h);this.maybeUpdateTextDirection_();_.Ra(this.hostElement,"input")},
getInputRange_:function(){var h=_.Pg();if(h){h=h.getBrowserRangeObject();for(var E=h.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return h;E=E.parentNode}}h=this.getEditableTextArea_();h=_.QI(h,h.childNodes.length);h.select();return h.getBrowserRangeObject()},
insertTextWithEmojis_:function(h,E,g){(E=this.emojiManager.createDocumentFragment(E,!0,!1,g===void 0?!0:g))&&E.childNodes.length!==0&&(h.collapsed||h.deleteContents(),g=E.lastChild,h.insertNode(E),_.zbB(g).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var h=_.Pg();if(h){var E=h.JSC$11350_getStartNode(),g=h.JSC$11350_getEndNode();if(VdU(E)&&VdU(g)){var Z=h.JSC$11350_getStartOffset(),M;if(_.UK&&E.nodeType===Node.ELEMENT_NODE&&(M=_.zCD(E)))_.QI(M,0).select();else{M=Z2(E)?E:_.Vw(E,Z2);var W=Z2(g)?g:_.Vw(g,Z2);if(M||W)if(h.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){h=!0;Z===E.length&&(h=!1);if(AH==="end"||AH==="right")h=!1;E=E.parentNode;h=[].concat(_.$E(E.parentNode.childNodes)).indexOf(E)+(h?0:1);_.QI(E.parentNode,
h).select()}}else M?M.previousSibling&&M.previousSibling.length>0?_.hX(g,h.JSC$11350_getEndOffset(),M.previousSibling,M.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),M.parentNode.insertBefore(E,M),_.hX(g,h.JSC$11350_getEndOffset(),E,0).select()):W&&(W.nextSibling&&W.nextSibling.length>0?_.hX(E,h.JSC$11350_getStartOffset(),W.nextSibling,1).select():(g=document.createTextNode("\u200b"),W.parentNode.insertBefore(g,W.nextSibling),_.hX(E,h.JSC$11350_getStartOffset(),g,g.length).select()));
AH=null}}else AH=null}else AH=null},
leftKeyPressed_:function(){AH="left"},
rightKeyPressed_:function(){AH="right"},
endKeyPressed_:function(){AH="end"},
maybeDeleteChip_:function(){var h=bOG(!0);if(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();_.Ff(g,E,h,h.childNodes.length).select()}},
maybeBackspaceChip_:function(){var h=bOG(!1);if(h){var E=_.Pg(),g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();_.Ff(g,E,h,0).select()}},
maybeBackspaceChipWordMode_:function(h){var E=_.Pg();if(E.isCollapsed()){var g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();var Z=uNp(g,E,!0);Z&&(_.Ff(g,E,Z,0).select(),document.execCommand("delete"),h.preventDefault(),h.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(h){var E=_.Pg();if(E.isCollapsed()){var g=E.JSC$11350_getStartNode();E=E.JSC$11350_getStartOffset();var Z=uNp(g,E,!1);Z&&(_.Ff(g,E,Z,Z.childNodes.length).select(),document.execCommand("delete"),h.preventDefault(),h.stopImmediatePropagation())}},
onContentClick:function(h){h.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(h){h.defaultPrevented||h.currentTarget.tagName==="YTD-COMMENT-INPUT"&&Z2(h.target)&&h.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.UB(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.UB(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(h,E){h=y7C(h,this.emojiManager,E).cloneNode(!0);for(E=h.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var g=_.Op();_.BIk(g,E);E=g.nextSibling;break;case "DIV":(g=E.lastChild)&&E.nextSibling&&_.sp(_.Op(),g);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.YS(_.Op(),E);g&&g.nodeName==="BR"&&_.f8(g);g=E;E.hasChildNodes()?(E=E.firstChild,
_.UZm(g)):(E=E.nextSibling,_.f8(g));break;default:E=E.nextSibling}return Q9p(h)},
setTextAreaValue:function(h){h||(h="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof h==="string"&&(h={runs:[{text:h}]});E.text=h},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();AH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var h=this.getEditableTextArea_();h&&(_.QI(h,h.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.nF("HTML_DIR")==="rtl"){var h=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";h.setAttribute("dir",E)}},
handleInputEvent_:function(){var h=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(h=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(h,!0);this.updateCharCount_();h=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=h.scrollHeight>h.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var h=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:h})},
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(h){this.isEmojiButtonDisplayed&&(h.preventDefault(),h.stopImmediatePropagation(),h=h.clipboardData.getData("text/plain"),this.insertText_(h,!1,!1),_.Ra(this.hostElement,"input"))},
insertText_:function(h,E,g){E=E===void 0?!1:E;g=g===void 0?!0:g;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&h){var Z=this.getInputRange_().cloneRange();this.emojiManager&&Z&&(E&&this.emojiInput.offsetStartOfRangeBy(Z,h.length),this.insertTextWithEmojis_(Z,h,g),kTp(this.getEditableTextArea_().lastChild)||(Z=this.getInputRange_().cloneRange()),Z&&(this.emojiInput.updateSuggestions(Z,h),this.updateSuggestionOffset_(Z)))}},
getSimpleString:_.Wp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(h){return h?"focused":"not-focused"},
computePlaceholderText_:function(h){return this.getSimpleString(h)},
computeEditableText_:function(h){return this.getSimpleString(h)},
onPrefilledContentDismissed_:function(h){h.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(h,E){h?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(h){var E=this.getEditableTextArea_();[].concat(_.$E(h.dataTransfer.items)).forEach(function(g){g.kind==="string"&&g.type.match("^text/plain")&&g.getAsString(function(Z){E.appendChild(document.createTextNode(Z))})});
h.preventDefault()},
preventDefault_:function(h){h.preventDefault()},
onSuggestionInsert_:function(h){this.insertTextWithEmojis_(h.detail.range,h.detail.text)},
onEmojiSuggestionClick_:function(h){this.emojiInput.insertSuggestion(h.detail)},
updateSuggestionOffset_:function(h){if(this.emojiInput&&_.UB(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,g=h.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-g)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;h=h.getBoundingClientRect().left-E;_.UB(this.emojiInput).querySelector("#dropdown").style.marginLeft=h+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.sY("yt-post"));return this.localStorage}});var Tz=function(){var h=_.D.apply(this,arguments)||this;h.currentCommentOptionIndex=0;h.isEmojiPickerDisplayed=!1;h.emojiManager=_.PB;h.isUgcEmpty=!1;h.userGeneratedCommentChangedHandler=function(){_.Ra(h.hostElement,"ytd-pdg-user-generated-comment-changed");h.isEmojiYtdCommentInputEnabled&&(h.isUgcEmpty=!h.ytdCommentInputEl.getTextAreaValue())};
h.pasteHandler=function(E){E.preventDefault();E.stopImmediatePropagation();var g;if(E=(g=E.clipboardData)==null?void 0:g.getData("text/plain"))g=document.getSelection().getRangeAt(0),g.collapsed||g.deleteContents(),E=document.createTextNode(E),g.insertNode(E),g.selectNodeContents(E),g.collapse(!1),E=window.getSelection(),E.removeAllRanges(),E.addRange(g)};
h.onDocumentClick=function(E){if(h.isEmojiPickerDisplayed){var g,Z,M;!(E.target instanceof Node)||(g=E.composedPath())!=null&&g.includes(h.editableTextEl)||(Z=E.composedPath())!=null&&Z.includes(h.emojiButtonEl)||(M=E.composedPath())!=null&&M.includes(h.emojiPickerEl)||(h.isEmojiPickerDisplayed=!1)}};
return h};
_.f(Tz,_.D);_.p=Tz.prototype;_.p.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.p.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.p.detached=function(){var h;(h=this.contentEl)==null||h.removeEventListener("input",this.userGeneratedCommentChangedHandler);var E;(E=this.contentEl)==null||E.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.p.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.p.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var h;this.contentEl.textContent=this.rendererBehavior.getSimpleString((h=this.data)==null?void 0:h.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.p.reloadEmojis=function(){this.emojiPickerEl&&_.e(this.emojiPicker,_.mum)&&this.emojiPickerEl.updateEmojiCategories()};
_.p.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Ja(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.p.handleBackgroundColorStyling=function(){var h;if((h=this.currentCommentOption)==null?0:h.commentBackgroundColorArgb){var E;_.Ja(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.uU((E=this.currentCommentOption)==null?void 0:E.commentBackgroundColorArgb)})}else _.Ja(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.p.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var h;(h=this.contentEl)==null||h.focus()}};
_.p.onEditButtonClick=function(h){var E=document.getSelection();E&&this.contentEl&&(h.stopPropagation(),h.preventDefault(),E.selectAllChildren(this.contentEl),E.collapseToEnd())};
_.p.onContentDrop=function(h){var E=this;if(h.dataTransfer){h=_.G(h.dataTransfer.items);for(var g=h.next();!g.done;g=h.next())g=g.value,g.kind==="string"&&g.type.match("^text/plain")&&g.getAsString(function(Z){var M;(M=E.contentEl)==null||M.appendChild(document.createTextNode(Z))})}};
_.p.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.p.getUserGeneratedCommentText=function(){var h,E=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(h=this.contentEl)==null?void 0:h.textContent;return E?E.trim():""};
_.p.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.p.onEmojiSelect=function(h){this.ytdCommentInputEl.onEmojiSelect(h)};
_.ze.Object.defineProperties(Tz.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.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 h;return!((h=this.currentCommentOption)==null||!h.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var h;if(_.e((h=this.currentCommentOption)==null?void 0:h.chipRenderer,_.htn)){var E;return _.e((E=this.currentCommentOption)==null?void 0:E.chipRenderer,_.htn)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var h,E;return((h=this.data)==null?0:h.commentOptionRenderers)?_.e((E=this.data)==null?void 0:E.commentOptionRenderers[this.superThanksSelectedTierEntity.index],l7I):void 0}var g,Z;return((g=this.data)==null?0:g.commentOptionRenderers)?_.e((Z=this.data)==null?void 0:Z.commentOptionRenderers[this.currentCommentOptionIndex],l7I):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var h;return this.rendererBehavior.getSimpleString((h=this.data)==null?void 0:h.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var h;return this.rendererBehavior.getSimpleString((h=this.data)==null?void 0:h.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.commentDialog,_.gsf))==null?void 0:E.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.commentDialog,_.gsf))==null?void 0:E.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=_.e((h=this.data)==null?void 0:h.commentDialog,_.gsf))==null?void 0:E.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(E=_.e((h=this.data)==null?void 0:h.commentDialog,_.gsf))==null?void 0:E.emojiPicker;if(!_.e(g,_.mum)||!_.e(g,_.mum).categories)return!1;h=function(W){return W.emojiPickerCategoryRenderer?W.emojiPickerCategoryRenderer.emojiIds&&W.emojiPickerCategoryRenderer.emojiIds.length>0:W.emojiPickerUpsellCategoryRenderer?W.emojiPickerUpsellCategoryRenderer.emojis&&W.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var Z,M;return((Z=_.e(g,_.mum))==null?0:(M=Z.categories)==null?0:M.find(h))?!0:!1}}});
Tz.prototype.onEmojiSelect=Tz.prototype.onEmojiSelect;Tz.prototype.dataChanged=Tz.prototype.dataChanged;Tz.prototype.currentCommentOptionChanged=Tz.prototype.currentCommentOptionChanged;_.Y([_.t(_.aF),_.V("design:type",Object)],Tz.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Tz.prototype,"rendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.Sg("#content-dom-if"),_.V("design:type",_.sB)],Tz.prototype,"contentDomIfEl",void 0);_.Y([_.Sg("#content-no-emojis"),_.V("design:type",HTMLElement)],Tz.prototype,"contentEl",void 0);_.Y([_.Sg("#container"),_.V("design:type",HTMLElement)],Tz.prototype,"containerEl",void 0);_.Y([_.Sg("#comment-chip-container"),_.V("design:type",HTMLElement)],Tz.prototype,"paidCommentChipContainerEl",void 0);_.Y([_.Sg("#text-input"),_.V("design:type",HTMLElement)],Tz.prototype,"editableTextEl",void 0);
_.Y([_.Sg("#emoji-button"),_.V("design:type",HTMLElement)],Tz.prototype,"emojiButtonEl",void 0);_.Y([_.Sg("#emoji-picker > yt-emoji-picker-renderer"),_.V("design:type",Object)],Tz.prototype,"emojiPickerEl",void 0);_.Y([_.Sg("#text-input > ytd-comment-input"),_.V("design:type",Object)],Tz.prototype,"ytdCommentInputEl",void 0);_.Y([_.x(),_.V("design:type",Object)],Tz.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Tz.prototype,"currentCommentOptionIndex",void 0);
_.Y([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QYC}),_.V("design:type",Object)],Tz.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.x(),_.V("design:type",Object)],Tz.prototype,"isEmojiPickerDisplayed",void 0);_.Y([_.x(),_.V("design:type",Object)],Tz.prototype,"emojiManager",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Tz.prototype,"isUgcEmpty",void 0);
_.Y([_.Nm("currentCommentOption"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tz.prototype,"currentCommentOptionChanged",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Tz.prototype,"dataChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tz.prototype,"isEmojiYtdCommentInputEnabled",null);
_.Y([_.S("data.title"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"title",null);_.Y([_.S("data.authorText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"channelName",null);_.Y([_.S("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tz.prototype,"shouldShowPaidCommentChipRenderer",null);
_.Y([_.S("data.commentOptionRenderers","currentCommentOption"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"paidCommentChipRenderer",null);_.Y([_.S("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"currentCommentOption",null);
_.Y([_.S("data.defaultCommentText","superThanksSelectedTierEntity"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"commentText",null);_.Y([_.S("data.placeholderText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"placeholderText",null);_.Y([_.S("data.commentDialog.commentDialogRenderer.editableText"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"editableText",null);
_.Y([_.S("data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"emojiButton",null);_.Y([_.S("data.commentDialog.commentDialogRenderer.emojiPicker"),_.V("design:type",Object),_.V("design:paramtypes",[])],Tz.prototype,"emojiPicker",null);
_.Y([_.S("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Tz.prototype,"isEmojiButtonDisplayed",null);_.Y([_.f3("yt-emoji-select"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Tz.prototype,"onEmojiSelect",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Tz);
_.X(Tz,"ytd-pdg-comment-preview-renderer",function(){if(W0R!==void 0)return W0R;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return W0R=h},{mode:2});var GOp;var bW=function(){var h=_.D.apply(this,arguments)||this;h.selected=!1;return h};
_.f(bW,_.D);_.p=bW.prototype;_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.p.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.p.dataChanged=function(){this.data&&(_.L3(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Ja(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.uU(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.uU(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.p.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.p.onClick=function(){this.logClick()};
_.p.onKeyboardSelect=function(){_.Ra(this.hostElement,"tap");this.onClick()};
_.p.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
bW.prototype.onClick=bW.prototype.onClick;bW.prototype.selectedChanged=bW.prototype.selectedChanged;bW.prototype.dataChanged=bW.prototype.dataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],bW.prototype,"componentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Kf),_.V("design:type",Object)],bW.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.t(_.Z6),_.V("design:type",Object)],bW.prototype,"ironSelectableBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bW.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],bW.prototype,"shownThumbnail",void 0);_.Y([_.x(),_.V("design:type",Object)],bW.prototype,"basePriceText",void 0);_.Y([_.x(),_.V("design:type",Object)],bW.prototype,"purchaseCommand",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],bW.prototype,"selected",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bW.prototype,"dataChanged",null);_.Y([_.Nm("selected"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bW.prototype,"selectedChanged",null);_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],bW.prototype,"onClick",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],bW);
_.X(bW,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(GOp!==void 0)return GOp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return GOp=h},{mode:1});var uW=function(){var h=_.D.apply(this,arguments)||this;h.selectedItemIndex=0;h.buyButtonDisabled=!1;return h};
_.f(uW,_.D);_.p=uW.prototype;
_.p.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.p.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var h;var E=(h=_.e(this.data.colorSlider,DyC))==null?void 0:h.notches[this.selectedItemIndex].purchaseCommand}else{var g;E=(g=_.e(this.data.selectableItemButtons[this.selectedItemIndex],myC))==null?void 0:g.purchaseCommand}if(E){h=_.e(E,_.$yf);h.productData||(h.productData={});var Z;h.productData={pdgData:{commentMessageText:(Z=this.commentPreviewRenderer)==null?void 0:Z.getUserGeneratedCommentText()}};
_.Ra(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(E)}}};
_.p.dataChanged=function(){if(this.data){_.PB.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Pum(_.PB,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.PB.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var h;this.buyButtonDisabled=!((h=_.e(this.data.commentPreview,rgx))==null||!h.placeholderText);this.updatePriceSelectorStatus();var E;if((E=this.data)==null?0:E.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;h=[];this.data.preloadImages&&(h=this.data.preloadImages);
h=h.map(function(g){return _.R9(g.thumbnails,1920)});
h=_.G(h);for(E=h.next();!E.done;E=h.next())(E=E.value)&&_.cRu(E).thenCatch(function(){_.O$(Error("Dl"))})}};
_.p.superThanksSelectedTierEntityChanged=function(){var h;(this==null?void 0:(h=this.superThanksSelectedTierEntity)==null?void 0:h.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.p.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.p.updatePriceSelectorStatus=function(){this.isColorSlider?(_.UB(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.UB(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.UB(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.UB(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.p.closeBuyFlow=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.p.onUserGeneratedContentChanged=function(){var h;this.buyButtonDisabled=!((h=this.commentPreviewRenderer)==null?0:h.getUserGeneratedCommentText())};
_.p.updateSelectedItemIndexFromBinding=function(h){this.selectedItemIndex=h.detail.value};
_.ze.Object.defineProperties(uW.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var h;return!((h=this.data)==null||!h.disclaimerText)}}});
uW.prototype.onUserGeneratedContentChanged=uW.prototype.onUserGeneratedContentChanged;uW.prototype.closeBuyFlow=uW.prototype.closeBuyFlow;uW.prototype.selectedItemIndexChanged=uW.prototype.selectedItemIndexChanged;uW.prototype.superThanksSelectedTierEntityChanged=uW.prototype.superThanksSelectedTierEntityChanged;uW.prototype.dataChanged=uW.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],uW.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uW.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],uW.prototype,"selectedItemIndex",void 0);_.Y([_.x(),_.V("design:type",Boolean)],uW.prototype,"isColorSlider",void 0);
_.Y([_.x(),_.V("design:type",Object)],uW.prototype,"buyButtonDisabled",void 0);_.Y([_.x({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:QYC}),_.V("design:type",Object)],uW.prototype,"superThanksSelectedTierEntity",void 0);_.Y([_.Sg("ytd-pdg-comment-preview-renderer"),_.V("design:type",Object)],uW.prototype,"commentPreviewRenderer",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],uW.prototype,"ytdReduxBehavior",void 0);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uW.prototype,"dataChanged",null);_.Y([_.Nm("superThanksSelectedTierEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uW.prototype,"superThanksSelectedTierEntityChanged",null);_.Y([_.Nm("selectedItemIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uW.prototype,"selectedItemIndexChanged",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uW.prototype,"closeBuyFlow",null);_.Y([_.f3("ytd-pdg-user-generated-comment-changed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],uW.prototype,"onUserGeneratedContentChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],uW.prototype,"isDisclaimerTextShown",null);
_.Y([_.K({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],uW);
_.X(uW,"yt-super-vod-buy-flow-content-renderer",function(){if(ZYG!==void 0)return ZYG;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return ZYG=h},{mode:1});var zNp;var Q9=function(){var h=_.D.apply(this,arguments)||this;h.lottieAnimationRef={};return h};
_.f(Q9,_.D);_.p=Q9.prototype;_.p.created=function(){_.ZL.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.qm(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.p.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Ra(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.p.detached=function(){this.autoCloseJobId&&_.KP.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.qm(this,this.onPopupIronOverlayOpened))};
_.p.dataChanged=function(){var h=this;this.data&&this.data.autoCloseDelay&&(_.BX(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.LO(_.KP,function(){h.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Ja(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.p.onDOMLoadedLottie=function(){var h=this,E,g,Z=Number((E=this.data)==null?void 0:(g=E.autoCloseDelay)==null?void 0:g.seconds)||0;this.fadeOutJobId=_.LO(_.KP,function(){h.lottiePlayerEl.classList.add("fadeout")},(Z-.25)*1E3);
this.autoCloseJobId=_.LO(_.KP,function(){h.closePopup()},Z*1E3)};
_.p.openPopup=function(){this.ironOverlayBehavior.open()};
_.p.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.BX(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.jj(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.GF().resolve(_.zF).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.KP.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.KP.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.p.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var h,E;(h=this.lottieAnimationRef)==null||(E=h.lottieEl)==null||E.destroy();h=this.data.lottie;var g,Z;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:h.url+"_"+Math.random(),path:h.url,autoplay:!0,loop:(Z=(g=h.settings)==null?void 0:g.loop)!=null?Z:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ze.Object.defineProperties(Q9.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var h,E;return!!((h=this.data)==null?0:(E=h.lottie)==null?0:E.url)}}});
Q9.prototype.maybeInitializeLottie=Q9.prototype.maybeInitializeLottie;Q9.prototype.dataChanged=Q9.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Q9.prototype,"rendererBehavior",void 0);_.Y([_.t(_.aR),_.V("design:type",Object)],Q9.prototype,"ironOverlayBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Q9.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Q9.prototype,"lottiePlayerProps",void 0);
_.Y([_.x(),_.V("design:type",Object)],Q9.prototype,"lottieAnimationRef",void 0);_.Y([_.Sg("ytd-lottie-player"),_.V("design:type",HTMLElement)],Q9.prototype,"lottiePlayerEl",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q9.prototype,"dataChanged",null);_.Y([_.S("data"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Q9.prototype,"hasLottieAnimation",null);
_.Y([_.Nm("data.lottie.url"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Q9.prototype,"maybeInitializeLottie",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Q9);
_.X(Q9,"ytd-desktop-image-overlay-renderer",function(){if(zNp!==void 0)return zNp;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return zNp=h},{mode:1});var aSC;var hq=function(){return _.D.apply(this,arguments)||this};
_.f(hq,_.D);_.p=hq.prototype;_.p.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.qm(this,this.closePopup))};
_.p.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qm(this,this.closePopup))};
_.p.dataChanged=function(){_.U7(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.e(this.data.header,wBJ)&&(this.hasBackgroundBanner=!!_.e(this.data.header,wBJ).backgroundBanner)};
_.p.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qm(this,this.closePopup))};
_.p.closePopup=function(){this.data&&this.data.onCloseCommand&&_.LZ(this.hostElement,[this.data.onCloseCommand])};
hq.prototype.handleBuyflowSelectionSubmitted=hq.prototype.handleBuyflowSelectionSubmitted;hq.prototype.dataChanged=hq.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],hq.prototype,"data",void 0);
_.Y([_.x({value:!0,reflectToAttribute:!0}),_.V("design:type",Boolean)],hq.prototype,"hasBackgroundBanner",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hq.prototype,"dataChanged",null);_.Y([_.f3("yt-pdg-buy-flow-selection-submitted"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hq.prototype,"handleBuyflowSelectionSubmitted",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],hq);
_.X(hq,"ytd-pdg-buy-flow-renderer",function(){if(aSC!==void 0)return aSC;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return aSC=h},{mode:1});var c3X;var ES=function(){var h=_.D.apply(this,arguments)||this;h.isOpen=!1;h.isPlaylistCreated=!1;return h};
_.f(ES,_.D);_.p=ES.prototype;_.p.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.p.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Ra(this.hostElement,"yt-refit")};
_.p.onCreateTap=function(){var h=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.LZ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(E,g){if(!_.J("killswitch_ep_in_create_playlist_response")&&(g==null?0:g.actions))for(E=_.G(g.actions),g=E.next();!g.done;g=E.next())g=g.value,_.e(g,_.lz)&&h.ytComponentBehavior.resolveCommand(g)}}]),this.isPlaylistCreated=!0)};
_.p.onKeydown=function(h){if(h.keyCode===13)this.onCreateTap()};
_.p.onServiceRequestCompleted=function(h){h.stopPropagation();_.BX(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.p.computePrivacyBadge=function(h){return h?[{metadataBadgeRenderer:h}]:[]};
ES.prototype.onServiceRequestCompleted=ES.prototype.onServiceRequestCompleted;ES.prototype.onKeydown=ES.prototype.onKeydown;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ES.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],ES.prototype,"isOpen",void 0);
_.Y([_.x(),_.V("design:type",Object)],ES.prototype,"isPlaylistCreated",void 0);_.Y([_.x({value:{REQUIRED_LABEL:_.NH("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.NH("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],ES.prototype,"addToStrings",void 0);_.Y([_.x({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.V("design:type",Array)],ES.prototype,"privacyBadge",void 0);
_.Y([_.Sg("#privacy-input"),_.V("design:type",Object)],ES.prototype,"privacyInput",void 0);_.Y([_.Sg("#name-input"),_.V("design:type",Object)],ES.prototype,"nameInput",void 0);_.Y([_.f3("keydown"),_.V("design:type",Function),_.V("design:paramtypes",[KeyboardEvent]),_.V("design:returntype")],ES.prototype,"onKeydown",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],ES.prototype,"onServiceRequestCompleted",null);
_.Y([_.K({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],ES);
_.X(ES,"ytd-add-to-playlist-create-renderer",function(){if(c3X!==void 0)return c3X;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return c3X=h},{mode:1});var iYc;var oCU;var g0=function(){var h=_.D.apply(this,arguments)||this;h.transferState="TRANSFER_STATE_UNKNOWN";return h};
_.f(g0,_.D);g0.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
g0.prototype.onCheckboxChange=function(h){var E=this;this.data&&_.EQ(this,"yt-playlist-checkbox-changed",function(){var g=_.zw(h).checked?E.data.addToPlaylistServiceEndpoint:E.data.removeFromPlaylistServiceEndpoint;g&&_.GF().resolve(_.zF).resolveCommand(g,{form:{element:E.hostElement}});_.J("dl_playlist_killswitch")||E.transferState!=="TRANSFER_STATE_UNKNOWN"&&E.transferState!=="TRANSFER_STATE_FAILED"&&E.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:E.data.playlistId,action:"ACTION_SYNC"}})},
100)};
g0.prototype.computeIconType=function(h){return h?"yt-icons:"+h.toLowerCase():null};
g0.prototype.dataChanged=g0.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],g0.prototype,"data",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],g0.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],g0.prototype,"ytComponentBehavior",void 0);_.Y([_.Sg("#checkbox"),_.V("design:type",HTMLInputElement)],g0.prototype,"checkbox",void 0);
_.Y([_.x({selector:_.FM,selectorArgs:["data.playlistId"]}),_.V("design:type",String)],g0.prototype,"transferState",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g0.prototype,"dataChanged",null);_.Y([_.K({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],g0);
_.X(g0,"ytd-playlist-add-to-option-renderer",function(){if(oCU!==void 0)return oCU;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return oCU=h},{mode:1});var ISU=_.O(function(h){var E=h.data;return _.R("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.R("div",null,_.R(_.dK,{text:function(){return E().title}})),_.R(_.P,{cond:function(){return E().subtitle},
then:function(g){return _.R("div",{class:"ytdMenuTitleRendererSubtitle"},_.R(_.dK,{text:g}))}}))},"zh");
ISU.idomCompat=!0;_.I9(ISU,"ytd-menu-title-renderer",{props:{data:_.C6}});var Zg=function(){var h=_.D.apply(this,arguments)||this;h.addToStrings={ADD_TO_DROPDOWN_LABEL:_.NH("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};h.closeButtonAriaLabel=_.NH("SBOX_INAPPROPRIATE_CANCEL");h.dialog=_.J("desktop_add_to_playlist_renderer_dialog_popup");return h};
_.f(Zg,_.D);_.p=Zg.prototype;_.p.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.p.onPopupOpened=function(){_.jg(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.p.onPopupClosed=function(){_.jg(this.playlists,"scrollable",!1)};
_.p.computeAriaLabel=function(){var h;if(this==null?0:(h=this.data)==null?0:h.actions){h=_.G(this.data.actions);for(var E=h.next();!E.done;E=h.next())if(E=E.value,E.menuTitleRenderer)return _.Wp(E.menuTitleRenderer.title)}};
_.p.onTapClose=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ze.Object.defineProperties(Zg.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var h;if(this==null?0:(h=this.data)==null?0:h.actions){h=_.G(this.data.actions);for(var E=h.next();!E.done;E=h.next())if(E=E.value,E.menuTitleRenderer)return E.menuTitleRenderer}return!1}}});
Zg.prototype.onPopupClosed=Zg.prototype.onPopupClosed;Zg.prototype.onPopupOpened=Zg.prototype.onPopupOpened;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Zg.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Zg.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],Zg.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],Zg.prototype,"addToStrings",void 0);_.Y([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],Zg.prototype,"ariaLabel",void 0);_.Y([_.x(),_.V("design:type",String)],Zg.prototype,"closeButtonAriaLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Zg.prototype,"dialog",void 0);
_.Y([_.Sg("#playlists"),_.V("design:type",HTMLElement)],Zg.prototype,"playlists",void 0);_.Y([_.Sg("ytd-add-to-playlist-create-renderer"),_.V("design:type",Object)],Zg.prototype,"createRenderer",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Zg.prototype,"menuTitleRenderer",null);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zg.prototype,"onPopupOpened",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zg.prototype,"onPopupClosed",null);_.Y([_.K({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Zg);
_.X(Zg,"ytd-add-to-playlist-renderer",function(){if(iYc!==void 0)return iYc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return iYc=h},{mode:1});var RNp;var M7=function(){var h=_.D.apply(this,arguments)||this;h.isPlaylistEditComplete=!1;h.isCollabEngagementDisabled=!1;h.closeButtonAriaLabel=_.NH("SBOX_INAPPROPRIATE_CANCEL");h.saveButton={title:_.NH("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"};h.onValueChanged=function(){h.updateSaveButtonState();h.computeCollabEngagementDisabled()};
return h};
_.f(M7,_.D);_.p=M7.prototype;_.p.attached=function(){this.JSC$20536_scroller&&(this.JSC$20536_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20536_scroller.attached&&typeof this.JSC$20536_scroller.attached==="function"&&this.JSC$20536_scroller.attached())};
_.p.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.p.onPopupClosed=function(){this.reset()};
_.p.close=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.p.onClickSave=function(){var h=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var E=[];this.nameInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var g=Number(this.privacyInput.value);isNaN(g)||E.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:g})}this.votingInput.value!==null&&(g=this.votingInput.value)&&E.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:g});if(E.length>0){var Z;_.e((Z=this.data)==null?void 0:Z.updateSettingsEndpoint,_.M8).actions=E;var M;if((M=this.data)==null?0:M.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){h.close()}}}),this.isPlaylistEditComplete=!0}}};
_.p.computePrivacyBadge=function(h){return h?[{metadataBadgeRenderer:h}]:[]};
_.p.computeEditorData=function(h){var E,g;return h==null?void 0:(E=h.sections)==null?void 0:(g=E[0])==null?void 0:g.playlistSettingsEditorCasualSectionRenderer};
_.p.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.p.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.p.computeAriaLabel=function(){var h,E,g,Z=(h=this.data)==null?void 0:(E=h.sections)==null?void 0:(g=E[0])==null?void 0:g.playlistSettingsEditorCasualSectionRenderer;return _.Wp(Z==null?void 0:Z.title)};
_.p.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.p.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.p.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.p.isNameChanged=function(){var h,E,g;return(((h=this.editorData)==null?void 0:(E=h.name)==null?void 0:(g=E.textInputFormFieldRenderer)==null?void 0:g.value)||"")!==(this.nameInput.value||"")};
_.p.isDescriptionChanged=function(){var h,E,g;return(((h=this.editorData)==null?void 0:(E=h.description)==null?void 0:(g=E.textInputFormFieldRenderer)==null?void 0:g.value)||"")!==(this.descriptionInput.value||"")};
_.p.isPrivacyChanged=function(){var h,E,g,Z,M,W,z,c;return((z=(h=this.editorData)==null?void 0:(E=h.privacy)==null?void 0:(g=E.dropdownFormFieldRenderer)==null?void 0:(Z=g.dropdown)==null?void 0:(M=Z.dropdownRenderer)==null?void 0:(W=M.entries)==null?void 0:W.find(function(I){var B;return I==null?void 0:(B=I.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(c=z.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.privacyInput.value};
_.p.isVotingChanged=function(){var h,E,g,Z,M,W,z,c;return((z=(h=this.editorData)==null?void 0:(E=h.voting)==null?void 0:(g=E.dropdownFormFieldRenderer)==null?void 0:(Z=g.dropdown)==null?void 0:(M=Z.dropdownRenderer)==null?void 0:(W=M.entries)==null?void 0:W.find(function(I){var B;return I==null?void 0:(B=I.privacyDropdownItemRenderer)==null?void 0:B.isSelected}))==null?void 0:(c=z.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.votingInput.value};
M7.prototype.onPopupClosed=M7.prototype.onPopupClosed;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],M7.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],M7.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],M7.prototype,"ytRendererStamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],M7.prototype,"data",void 0);_.Y([_.x({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.V("design:type",Array)],M7.prototype,"privacyBadge",void 0);_.Y([_.x({computed:"computeEditorData(data)"}),_.V("design:type",Object)],M7.prototype,"editorData",void 0);_.Y([_.x(),_.V("design:type",Object)],M7.prototype,"isPlaylistEditComplete",void 0);_.Y([_.x(),_.V("design:type",Object)],M7.prototype,"isCollabEngagementDisabled",void 0);
_.Y([_.x({value:{REQUIRED_LABEL:_.NH("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.NH("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.V("design:type",Object)],M7.prototype,"addToStrings",void 0);_.Y([_.x({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.V("design:type",String)],M7.prototype,"ariaLabel",void 0);_.Y([_.x(),_.V("design:type",String)],M7.prototype,"closeButtonAriaLabel",void 0);
_.Y([_.x(),_.V("design:type",Object)],M7.prototype,"saveButton",void 0);_.Y([_.Sg("#name-input"),_.V("design:type",Object)],M7.prototype,"nameInput",void 0);_.Y([_.Sg("#description-input"),_.V("design:type",Object)],M7.prototype,"descriptionInput",void 0);_.Y([_.Sg("#privacy-input"),_.V("design:type",Object)],M7.prototype,"privacyInput",void 0);_.Y([_.Sg("#voting-input"),_.V("design:type",Object)],M7.prototype,"votingInput",void 0);
_.Y([_.Sg("#scroller"),_.V("design:type",Object)],M7.prototype,"JSC$20536_scroller",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],M7.prototype,"onPopupClosed",null);_.Y([_.x(),_.V("design:type",Object)],M7.prototype,"onValueChanged",void 0);_.Y([_.K({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],M7);
_.X(M7,"ytd-playlist-settings-editor-renderer",function(){if(RNp===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);RNp=h}h=RNp;return h},{mode:1});var PHG;_.$P("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var WH=function(){return _.D.apply(this,arguments)||this};
_.f(WH,_.D);_.p=WH.prototype;_.p.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var h=this.get("data.nextButton.buttonRenderer.navigationEndpoint");h&&(this.nextNavigationEndpoint=h,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.p.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var h={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",h)}}};
_.p.onPopupOpened=function(h){h.detail!==this&&h.detail!==this.hostElement||!_.J("enable_premium_voluntary_pause")||_.BX(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.p.onNextButtonTap=function(){var h=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);h&&this.ytdOpenPopupBehavior.openPopup(h)};
_.p.updateSelectedResponseIndexFromBinding=function(h){this.selectedResponseIndex=h.detail.value};
WH.prototype.onPopupOpened=WH.prototype.onPopupOpened;WH.prototype.onSelectedResponseIndexChange=WH.prototype.onSelectedResponseIndexChange;WH.prototype.dataChanged=WH.prototype.dataChanged;_.Y([_.t(_.fJ),_.V("design:type",Object)],WH.prototype,"ytdOpenPopupBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],WH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],WH.prototype,"selectedResponseIndex",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WH.prototype,"dataChanged",null);_.Y([_.Nm("selectedResponseIndex"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],WH.prototype,"onSelectedResponseIndexChange",null);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],WH.prototype,"onPopupOpened",null);_.Y([_.K({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],WH);
_.X(WH,"ytd-red-cancel-survey-renderer",function(){if(PHG!==void 0)return PHG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return PHG=h},{mode:1});var BLc;var pB=function(){var h=_.D.apply(this,arguments)||this;h.closeButtonAriaLabel=_.NH("SBOX_INAPPROPRIATE_CANCEL");return h};
_.f(pB,_.D);pB.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
pB.prototype.onClickClose=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],pB.prototype,"rendererStamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],pB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],pB.prototype,"closeButtonAriaLabel",void 0);_.Y([_.K({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],pB);
_.X(pB,"ytd-search-filter-options-dialog-renderer",function(){if(BLc!==void 0)return BLc;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return BLc=h},{mode:1});var USX;var gxU=function(){return function(h){h=h.availabilityType;return h===void 0||h==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||h==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var G0=function(){var h=_.D.apply(this,arguments)||this;h.qualityOptions=[];h.upsellOptions=[];h.showUpsellSection=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.rememberSettingsChecked=!1;return h};
_.f(G0,_.D);_.p=G0.prototype;_.p.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.p.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.p.updateQualityOptions=function(){if(this.formats===void 0)_.BX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var h=[],E=[];this.showUpsellSection=!1;for(var g=_.G(this.formats),Z=g.next();!Z.done;Z=g.next())(Z=Z.value)&&(Z.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?E.push(Z):h.push(Z));h.length&&(this.qualityOptions=ExC(h));E.length&&(this.showUpsellSection=!0,this.upsellOptions=ExC(E))}};
_.p.updateRememberString=function(){if(this.downloadQualityPickerEntity)var h=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var E;h=(E=this.data)==null?void 0:E.premiumRememberSettingString}else{var g;h=(g=this.data)==null?void 0:g.rememberSettingString}h=h===void 0?_.NH("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):h;this.rememberSettingsCheckboxRenderer={title:_.iV(h),disabled:!1}};
_.p.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ze.Object.defineProperties(G0.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var h;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(h=this.data)==null?void 0:h.qualityFormats}}});
G0.prototype.updateRememberString=G0.prototype.updateRememberString;G0.prototype.updateQualityOptions=G0.prototype.updateQualityOptions;G0.prototype.dataChanged=G0.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],G0.prototype,"data",void 0);
_.Y([_.t(_.aF),_.V("design:type",Object)],G0.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Boolean)],G0.prototype,"selectedUpsellQuality",void 0);_.Y([_.x({computed:"computeIcon_(data.premiumIcon)",value:""}),_.V("design:type",String)],G0.prototype,"premiumIcon",void 0);_.Y([_.x({selector:TCI,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],G0.prototype,"downloadQualityPickerEntity",void 0);
_.Y([_.x(),_.V("design:type",Array)],G0.prototype,"qualityOptions",void 0);_.Y([_.x(),_.V("design:type",Array)],G0.prototype,"upsellOptions",void 0);_.Y([_.x(),_.V("design:type",Object)],G0.prototype,"showUpsellSection",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],G0.prototype,"darkerDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],G0.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.Y([_.Sg("#remember-settings"),_.V("design:type",HTMLInputElement)],G0.prototype,"rememberSettingsCheckbox",void 0);_.Y([_.x(),_.V("design:type",Object)],G0.prototype,"rememberSettingsChecked",void 0);_.Y([_.x(),_.V("design:type",Function)],G0.prototype,"onRememberSettingsCheckedChanged",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G0.prototype,"dataChanged",null);
_.Y([_.Nm("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G0.prototype,"updateQualityOptions",null);_.Y([_.Nm("selectedUpsellQuality"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],G0.prototype,"updateRememberString",null);_.Y([_.K({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],G0);
_.X(G0,"ytd-download-quality-selector-content",function(){if(USX!==void 0)return USX;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return USX=h},{mode:1});var L0C;var z0=function(){var h=_.D.apply(this,arguments)||this;h.selectedUpsellQuality=!1;h.qualityOptions=[];h.darkerDarkTheme=_.J("web_darker_dark_theme");h.useUpsellDismissAlternate=_.J("use_not_now_dl_upsell_dismiss_cta");h.shouldShowAlternateUpsellDimiss=!1;h.rememberSettings=!1;h.rememberSettingsChecked=!1;h.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};h.rememberSettingsCheckedChanged=function(E){h.rememberSettingsChecked=E};
return h};
_.f(z0,_.D);_.p=z0.prototype;
_.p.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iV(_.NH("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.p.updateQualityOptions=function(){this.formats===void 0?_.BX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=ExC(this.formats)};
_.p.onQualityOptionsSelect=function(h){if(this.qualityOptions&&h){h!==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 E=_.G(this.qualityOptions.entries()),g=E.next();!g.done;g=
E.next()){g=_.G(g.value);var Z=g.next().value;g=g.next().value;var M=void 0,W=void 0;if(((M=g)==null?void 0:(W=M.settingsRadioOptionRenderer)==null?void 0:W.id)===h){this.selectedQualityIndex=Z;h=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((h=this.formats[Z])==null?void 0:h.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.p.onClickSubmit=function(){var h;if((h=this.downloadButtonRenderer)==null||!h.isDisabled){var E,g;h=(g=(E=this.data)==null?void 0:E.onSubmitEndpoint)!=null?g:{};var Z,M;if(this.formats&&(((Z=_.e(h,_.JU))==null?0:Z.videoId)||((M=_.e(h,_.ev))==null?0:M.playlistId))){var W,z,c,I,B,U;E={formatType:(I=(W=this.formats)==null?void 0:(z=W[(c=this.selectedQualityIndex)!=null?c:0])==null?void 0:z.format)!=null?I:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(B=this.getOfflineEndpoint(h))==null?void 0:(U=B.actionParams)==null?void 0:U.settingsAction)};this.getOfflineEndpoint(h).actionParams=E;this.ytComponentBehavior.resolveCommand(h)}_.BX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.p.onClickUpsell=function(){var h;if((h=this.upsellButtonRenderer)==null||!h.isDisabled){var E,g;h=(g=(E=this.data)==null?void 0:E.upsellEndpoint)!=null?g:{};this.ytComponentBehavior.resolveCommand(h);_.BX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);E="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var Z,M,W,z;E=(z=(Z=this.formats)==null?void 0:(M=Z[(W=this.selectedQualityIndex)!=null?W:0])==null?void 0:M.format)!=null?z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:E}})}};
_.p.onClickClose=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.p.getOfflineSettingsAction=function(h,E){return h?E===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":E:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.p.getOfflineEndpoint=function(h){return _.e(h,_.JU)?_.e(h,_.JU):_.e(h,_.ev)};
_.ze.Object.defineProperties(z0.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.iV(_.NH("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var h;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(h=this.data)==null?void 0:h.qualityFormats}}});
z0.prototype.updateQualityOptions=z0.prototype.updateQualityOptions;z0.prototype.dataChanged=z0.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],z0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],z0.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],z0.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Number)],z0.prototype,"selectedQualityIndex",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"selectedUpsellQuality",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],z0.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x({selector:TCI,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.V("design:type",Object)],z0.prototype,"downloadQualityPickerEntity",void 0);_.Y([_.x(),_.V("design:type",Array)],z0.prototype,"qualityOptions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],z0.prototype,"darkerDarkTheme",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],z0.prototype,"useUpsellDismissAlternate",void 0);
_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"downloadButtonRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"upsellButtonRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"cancelButtonRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"upsellCancelButtonRenderer",void 0);_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"rememberSettings",void 0);
_.Y([_.x(),_.V("design:type",Object)],z0.prototype,"rememberSettingsChecked",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z0.prototype,"dataChanged",null);_.Y([_.Nm("downloadQualityPickerEntity"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],z0.prototype,"updateQualityOptions",null);_.Y([_.K({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],z0);
_.X(z0,"ytd-download-quality-selector-renderer",function(){if(L0C!==void 0)return L0C;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return L0C=h},{mode:1});var jwG;var as=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(as,_.D);as.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
as.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],as.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],as.prototype,"darkerDarkTheme",void 0);_.Y([_.x({computed:"computeIcon_(data.infoIcon)"}),_.V("design:type",Object)],as.prototype,"infoIcon",void 0);
_.Y([_.x({computed:"computeIcon_(data.warningIcon)"}),_.V("design:type",Object)],as.prototype,"warningIcon",void 0);_.Y([_.K({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],as);
_.X(as,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(jwG!==void 0)return jwG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jwG=h},{mode:1});var dSU;var cH=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(cH,_.D);cH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cH.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"}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],cH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],cH.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],cH.prototype,"darkerDarkTheme",void 0);_.Y([_.K({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],cH);
_.X(cH,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(dSU!==void 0)return dSU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return dSU=h},{mode:1});var CHX;var iD=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(iD,_.D);iD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iD.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"}}}}};
iD.prototype.onServiceRequestSentOrCompleted=function(h,E){E&&E.actions&&E.actions.length>0&&_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
iD.prototype.onServiceRequestSentOrCompleted=iD.prototype.onServiceRequestSentOrCompleted;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],iD.prototype,"darkerDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],iD.prototype,"data",void 0);
_.Y([_.f3("yt-service-request-completed"),_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],iD.prototype,"onServiceRequestSentOrCompleted",null);_.Y([_.K({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],iD);
_.X(iD,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(CHX!==void 0)return CHX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return CHX=h},{mode:1});var J3C;var Is=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.submitButtonDisabled=!0;return h};
_.f(Is,_.D);_.p=Is.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.p.onDataChanged=function(){var h,E,g;if(((h=this.data)==null?void 0:(E=h.confirmButton)==null?void 0:(g=E.buttonRenderer)==null?void 0:g.isDisabled)!==void 0){var Z,M,W;this.submitButtonDisabled=(Z=this.data)==null?void 0:(M=Z.confirmButton)==null?void 0:(W=M.buttonRenderer)==null?void 0:W.isDisabled}};
_.p.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.p.updateSubmitButtonDisabledFromBinding=function(h){this.submitButtonDisabled=h.detail.value};
_.p.updateSubmitButtonDisabledFromConfirmCheckbox=function(h){this.submitButtonDisabled=!h.detail.value};
Is.prototype.onDataChanged=Is.prototype.onDataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Is.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Is.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Is.prototype,"darkerDarkTheme",void 0);
_.Y([_.x(),_.V("design:type",Object)],Is.prototype,"submitButtonDisabled",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Is.prototype,"onDataChanged",null);_.Y([_.K({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Is);
_.X(Is,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(J3C!==void 0)return J3C;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return J3C=h},{mode:1});var eNU;var Rs=function(){return _.D.apply(this,arguments)||this};
_.f(Rs,_.D);_.ze.Object.defineProperties(Rs.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var h,E,g;return((h=this.data)==null?void 0:h.title)+" "+((E=this.data)==null?void 0:E.metadataPrimary)+" "+((g=this.data)==null?void 0:g.metadataSecondary)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Rs.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Rs.prototype,"data",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],Rs.prototype,"ariaLabel",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Rs);
_.X(Rs,"ytd-compact-product-list-item-renderer",function(){if(eNU!==void 0)return eNU;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return eNU=h},{mode:1});var qiJ;var PH=function(){return _.D.apply(this,arguments)||this};
_.f(PH,_.D);PH.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]]"}}}}}};
_.ze.Object.defineProperties(PH.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],PH.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],PH.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],PH);
_.X(PH,"ytd-compact-product-list-renderer",function(){if(qiJ!==void 0)return qiJ;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return qiJ=h},{mode:1});var fSR;var BH=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(BH,_.D);_.p=BH.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.getBackgroundUrl=function(){var h=this.get("data.headerImage.thumbnails");return h?"url("+_.R9(h,this.hostElement.clientWidth)+")":""};
_.p.onDataChanged=function(){var h=this.getBackgroundUrl();h&&(this.header.style.backgroundImage=h);h=_.sH();var E=_.YN(),g=this.get("data.trackingParams");g&&E&&h&&_.uw(h,E,_.rp(g));h=_.G(this.hostElement.querySelectorAll("yt-img-shadow"));for(E=h.next();!E.done;E=h.next())E.value.onShow()};
_.p.onPopupClosed=function(h){_.zw(h).localName==="ytd-membership-post-cancel-renderer"&&_.BX(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
BH.prototype.onPopupClosed=BH.prototype.onPopupClosed;BH.prototype.onDataChanged=BH.prototype.onDataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],BH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],BH.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],BH.prototype,"darkerDarkTheme",void 0);
_.Y([_.Sg("#header"),_.V("design:type",HTMLDivElement)],BH.prototype,"header",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],BH.prototype,"onDataChanged",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],BH.prototype,"onPopupClosed",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],BH);
_.X(BH,"ytd-membership-post-cancel-renderer",function(){if(fSR!==void 0)return fSR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return fSR=h},{mode:1});var NLU;var US=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(US,_.D);US.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
US.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],US.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],US.prototype,"darkerDarkTheme",void 0);_.Y([_.Sg("ytd-feedback-survey-renderer"),_.V("design:type",Object)],US.prototype,"feedbackSurveyRenderer",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],US);
_.X(US,"ytd-sponsorship-confirm-cancel-content",function(){if(NLU!==void 0)return NLU;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return NLU=h},{mode:1});var tmC;var LB=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.maybeSubmitFeedback=function(){h.content&&h.content.maybeSubmitFeedback()};
return h};
_.f(LB,_.D);_.p=LB.prototype;_.p.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.p.onYtPopupOpened=function(h,E){E===this&&this.data&&this.data.onOpenCommands&&_.jj(this.hostElement,this.data.onOpenCommands,this.hostElement);_.BX(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.p.onYtPopupClosed=function(h,E){(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.jj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestCompleted=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.p.onYtServiceRequestError=function(h){_.uv(this.hostElement,h.detail.error.message)};
_.p.onDataChanged=function(){if(this.isAttached){var h=this.backgroundUrl;h&&(_.UB(this.hostElement).querySelector("#header").style.backgroundImage=h)}};
_.ze.Object.defineProperties(LB.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var h=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return h?"url("+_.R9(h,this.hostElement.clientWidth)+")":""}}});
LB.prototype.onDataChanged=LB.prototype.onDataChanged;LB.prototype.onYtServiceRequestError=LB.prototype.onYtServiceRequestError;LB.prototype.onYtServiceRequestCompleted=LB.prototype.onYtServiceRequestCompleted;LB.prototype.onYtPopupClosed=LB.prototype.onYtPopupClosed;LB.prototype.onYtPopupOpened=LB.prototype.onYtPopupOpened;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],LB.prototype,"data",void 0);_.Y([_.x({value:function(){return _.NH("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],LB.prototype,"closeButtonAriaLabel",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],LB.prototype,"darkerDarkTheme",void 0);_.Y([_.Sg("#scrollable"),_.V("design:type",Object)],LB.prototype,"scrollable",void 0);_.Y([_.Sg("ytd-sponsorship-confirm-cancel-content"),_.V("design:type",Object)],LB.prototype,"content",void 0);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],LB.prototype,"onYtPopupOpened",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],LB.prototype,"onYtPopupClosed",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],LB.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],LB.prototype,"onYtServiceRequestError",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],LB.prototype,"onDataChanged",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],LB);
_.X(LB,"ytd-sponsorship-confirm-cancel-renderer",function(){if(tmC!==void 0)return tmC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return tmC=h},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var SiX;var jH=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(jH,_.D);jH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],jH.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],jH.prototype,"darkerDarkTheme",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],jH);
_.X(jH,"ytd-sponsorships-celebration-content",function(){if(SiX!==void 0)return SiX;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return SiX=
h},{mode:1});var xSx;var w1i=_.uz(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),d0=function(){var h=_.D.apply(this,arguments)||this;h.scriptsAppended=!1;h.useFullWidthPrimaryButton=!1;h.buttonOverrides={type:"tonal",style:"overlay-dark"};return h};
_.f(d0,_.D);_.p=d0.prototype;_.p.dataChanged=function(){var h;this.useFullWidthPrimaryButton=!((h=this.data)==null||!h.useFullWidthPrimaryButton)};
_.p.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.J("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.onDataChanged=function(){var h;(h=this.header)==null||h.style.setProperty("background-color",this.backgroundColor);if(h=this.headerImageUrl){var E;(E=this.header)==null||E.style.setProperty("background-image",h)}E=_.sH(4);h=_.YN(4);var g=this.get("data.trackingParams");if(g&&h&&E){var Z=_.rp(g);_.uw(E,h,Z);_.J("combine_ve_grafts")?_.SQ().graftServerVe(g,h,4):_.uw(E,h,Z)}E=_.G(this.hostElement.querySelectorAll("yt-img-shadow"));for(h=E.next();!h.done;h=E.next())h.value.onShow();if(E=this.get("data.gtmId"))_.Eh(E,
_.nF("GL","")),this.setupConversionTracking()};
_.p.setupConversionTracking=function(){if(!this.scriptsAppended){var h=document.createElement("script");var E=_.Mc(w1i.join(""));_.WA(h,E);document.head.appendChild(h);h=document.createElement("noscript");h.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(h);this.scriptsAppended=!0}};
_.p.onPopupClosed=function(h){if(_.zw(h).localName==="ytd-sponsorships-celebration-renderer"){_.BX(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var E;this.data&&((E=this.data)==null?0:E.dismissCommand)&&_.eQ.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ze.Object.defineProperties(d0.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var h=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.uU(h)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var h=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return h?"url("+_.R9(h,this.hostElement.getBoundingClientRect().width)+")":""}}});
d0.prototype.onPopupClosed=d0.prototype.onPopupClosed;d0.prototype.onDataChanged=d0.prototype.onDataChanged;d0.prototype.dataChanged=d0.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],d0.prototype,"data",void 0);
_.Y([_.Sg("#header"),_.V("design:type",HTMLElement)],d0.prototype,"header",void 0);_.Y([_.x(),_.V("design:type",Object)],d0.prototype,"scriptsAppended",void 0);_.Y([_.x({type:Boolean,reflectToAttribute:!0}),_.V("design:type",Object)],d0.prototype,"useFullWidthPrimaryButton",void 0);_.Y([_.x(),_.V("design:type",Object)],d0.prototype,"buttonOverrides",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d0.prototype,"dataChanged",null);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],d0.prototype,"onDataChanged",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],d0.prototype,"onPopupClosed",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],d0);
_.X(d0,"ytd-sponsorships-celebration-renderer",function(){if(xSx!==void 0)return xSx;var h=document.createElement("template");_.N(h,'\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="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return xSx=h},{mode:1});var DSZ;var CB=function(){var h=_.D.apply(this,arguments)||this;h.isToggleChecked=!1;return h};
_.f(CB,_.D);CB.prototype.onDataChanged=function(){var h;this.isToggleChecked=((h=this.data)==null?void 0:h.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
CB.prototype.close=function(){var h;((h=this.data)==null?0:h.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
CB.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var h,E=_.e((h=this.data)==null?void 0:h.switchButton,vKp);E&&(this.isToggleChecked&&E.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOnInnertubeCommand),!this.isToggleChecked&&E.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOffInnertubeCommand))};
CB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
CB.prototype.onDataChanged=CB.prototype.onDataChanged;_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],CB.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],CB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],CB.prototype,"isToggleChecked",void 0);_.Y([_.x({value:_.NH("CLOSE")}),_.V("design:type",String)],CB.prototype,"closeButtonAriaLabel",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],CB.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],CB);
_.X(CB,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(DSZ!==void 0)return DSZ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return DSZ=h},{mode:1});var lSC;var Jq=function(){return _.D.apply(this,arguments)||this};
_.f(Jq,_.D);_.p=Jq.prototype;_.p.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.playerElement.stop()};
_.p.onYtServiceRequestCompleted=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.p.onYtServiceRequestError=function(h){_.uv(this.hostElement,h.detail.error.message)};
_.p.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.p.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.p.getTier=function(h,E){return!h||!h.tiers||E<0?null:_.e(h.tiers[E],OJU)};
_.p.moreThanOne=function(h){return!!(h&&h.length>1)};
_.p.tierOverviewTap=function(h){var E=this;this.selectedTier=h.model.index;_.pQ(this,function(){_.Ra(E.hostElement,"yt-refit")})};
_.p.computeSelectedClass=function(h,E){return this.isSelected(h,E)?"selected":""};
_.p.computeButtonAriaPressed=function(h,E){return this.isSelected(h,E)?"true":"false"};
_.p.isSelected=function(h,E){return h===E};
_.p.onDataChanged=function(){_.UB(this.hostElement).querySelector("#header-overlay").style.visibility="";_.UB(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 h=_.G(this.hostElement.querySelectorAll("yt-img-shadow")),
E=h.next();!E.done;E=h.next())E.value.onShow();var g;this.set("selectedTier",(g=this.get("data.targetTierIndex"))!=null?g:0);var Z;(h=(Z=this.data)==null?void 0:Z.onVisible)&&this.ytComponentBehavior.resolveCommand(h)};
_.p.initializeVe=function(h){var E=_.sH(),g=_.YN(),Z=this.get("data.trackingParams");g&&E&&(this.screenLayer=4,E=_.k3(_.vJW)(void 0,69877,{clientScreenNonce:E,visualElement:g},void 0,void 0,void 0),_.kN(E,69877,4),g=_.YN(4),Z&&g&&(Z=_.rp(Z),_.uw(E,g,Z),h&&(this.offerVideoVe=_.Uz(74659),_.uw(E,Z,this.offerVideoVe))))};
_.p.setHeaderBackground=function(){var h=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.UB(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.uU(h);if(h=this.getHeaderImage())h=_.R9(h,screen.width),_.UB(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+h+")"};
_.p.getHeaderImage=function(){var h=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&h?h:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setupVideoPlayer=function(h){var E=this,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1)return g=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),Z=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.J("kevlar_player_update_killswitch")?E.playerElement.update({args:{autoplay:g,video_id:h,player_params:Z}}):E.playerElement.loadVideoWithPlayerVars({autoplay:g,video_id:h,player_params:Z}),
z.yield(E.playerElement.getPlayerPromise(),2);M=z.yieldResult;M.addEventListener("onStateChange",function(c){E.onPlayerStateChange(c)});
M.setScreenLayer(E.screenLayer);(W=_.sH(4))&&E.offerVideoVe&&_.hj(W,E.offerVideoVe);g&&(E.pauseOtherPlayers(),E.playerElement.focusOnPlayer(),E.playerElement.getPlayer().hideControls(),_.xW(_.KP,function(){E.fadeOutHeaderOverlay()},4E3));
_.SK(z)})};
_.p.onPlayerStateChange=function(h){h===1?this.backgroundPlayerElement&&(h=this.backgroundPlayerElement.player_.getPlayerState(),h!==1&&h!==3||this.backgroundPlayerElement.pause()):h===0&&(_.UB(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.UB(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.p.fadeOutHeaderOverlay=function(){_.UB(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.p.onHeaderTap=function(){if(this.offerVideo){_.UB(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var h;((h=this.playerElement.player_)==null?void 0:h.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(h=_.sH(4))&&this.offerVideoVe&&_.Z$(h,this.offerVideoVe)}};
_.p.getBackgroundImageLayerClass=function(h){return h?"background-image-layer-with-video":""};
_.p.getHeaderClass=function(h){return h?"header-with-video":""};
_.p.getHeaderOverlayClass=function(h){return h?"header-overlay-with-video":""};
_.p.getTitleContainerClass=function(h,E){return h?"title-container-with-video":E?"title-container-without-video-flexible":"title-container-without-video"};
_.p.tierTitleDisplayStatus=function(h){return this.moreThanOne(h)?"hide":"show"};
_.p.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.GF().resolve(_.Yu).getPlayerElement():this.backgroundPlayerElement=_.zD();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var h=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=h===1||h===3;this.backgroundPlayerElement.pause()}};
_.p.isMiniplayerActive=function(){return _.GF().resolve(_.Yu).isMiniplayerActive()};
_.p.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("selected-tier-changed",this.selectedTier))};
Jq.prototype.selectedTierChangedForBinding=Jq.prototype.selectedTierChangedForBinding;Jq.prototype.onDataChanged=Jq.prototype.onDataChanged;Jq.prototype.onYtPopupClosed=Jq.prototype.onYtPopupClosed;Jq.prototype.onYtPopupOpened=Jq.prototype.onYtPopupOpened;Jq.prototype.onYtServiceRequestError=Jq.prototype.onYtServiceRequestError;Jq.prototype.onYtServiceRequestCompleted=Jq.prototype.onYtServiceRequestCompleted;
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Jq.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Jq.prototype,"data",void 0);_.Y([_.x({value:0}),_.V("design:type",Number)],Jq.prototype,"selectedTier",void 0);
_.Y([_.x({value:""}),_.V("design:type",String)],Jq.prototype,"offerVideo",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],Jq.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.Y([_.x({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.AM(this)}}),
_.V("design:type",String)],Jq.prototype,"playerId",void 0);_.Y([_.Sg("tp-yt-paper-dialog-scrollable"),_.V("design:type",Object)],Jq.prototype,"scrollable",void 0);_.Y([_.Sg("ytd-sponsorships-tier-renderer"),_.V("design:type",Object)],Jq.prototype,"tierRenderer",void 0);_.Y([_.Sg("#player"),_.V("design:type",Object)],Jq.prototype,"playerElement",void 0);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jq.prototype,"onYtServiceRequestCompleted",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Jq.prototype,"onYtServiceRequestError",null);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jq.prototype,"onYtPopupOpened",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jq.prototype,"onYtPopupClosed",null);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jq.prototype,"onDataChanged",null);
_.Y([_.Nm("selectedTier"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Jq.prototype,"selectedTierChangedForBinding",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Jq);
_.X(Jq,"ytd-sponsorships-offer-renderer",function(){if(lSC!==void 0)return lSC;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return lSC=h},{mode:_.UQ("kevlar_poly_si_batch_j077")?1:2});var r3c;var eH=function(){var h=_.D.apply(this,arguments)||this;h.buttonOverrides={type:"filled",style:"mono"};return h};
_.f(eH,_.D);eH.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}}}}}};
eH.prototype.backgroundColorChanged=function(){var h,E,g,Z=(E=_.e((h=this.data)==null?void 0:h.content,nKZ))==null?void 0:(g=E.backgroundColor)==null?void 0:g.backgroundColor;Z&&(h=_.bU(Z),_.UB(this.hostElement).querySelector("#banner").style.backgroundColor=h,_.UB(this.hostElement).querySelector("#abstract-art").style.backgroundColor=h)};
eH.prototype.attached=function(){this.JSC$20622_scroller&&(this.JSC$20622_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20622_scroller.attached&&typeof this.JSC$20622_scroller.attached==="function"&&this.JSC$20622_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eH.prototype.backgroundColorChanged=eH.prototype.backgroundColorChanged;_.Y([_.x(),_.V("design:type",Object)],eH.prototype,"data",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#scroller"),_.V("design:type",Object)],eH.prototype,"JSC$20622_scroller",void 0);_.Y([_.x(),_.V("design:type",Object)],eH.prototype,"buttonOverrides",void 0);
_.Y([_.Nm("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],eH.prototype,"backgroundColorChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],eH);
_.X(eH,"ytd-sponsorships-promotion-celebration-renderer",function(){if(r3c!==void 0)return r3c;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return r3c=h},{mode:_.UQ("kevlar_poly_si_batch_j077")?1:2});var mSZ;var vCi;var q7=function(){return _.D.apply(this,arguments)||this};
_.f(q7,_.D);q7.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
q7.prototype.computeIsInitiallyChecked=function(h){return h===1};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],q7.prototype,"data",void 0);_.Y([_.Sg("#checkbox"),_.V("design:type",Object)],q7.prototype,"checkbox",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],q7);
_.X(q7,"ytd-subscription-toggle-option-renderer",function(){if(vCi!==void 0)return vCi;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return vCi=h},{mode:1});var fB=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return h};
_.f(fB,_.D);fB.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"}}}};
fB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
fB.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var h=_.UB(this.hostElement).querySelector("#options").selected;h=this.data.options[h].subscriptionRadioOptionRenderer.serviceEndpoint;var E=_.UB(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");E&&h&&h.modifyChannelNotificationPreferenceEndpoint&&(E=E.getValue())&&(h.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[E]);_.GF().resolve(_.zF).resolveCommand(h,{form:{element:this.hostElement}});
_.BX(this.hostElement,"yt-close-popup-action")};
_.ze.Object.defineProperties(fB.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var h=this.data.options,E=0;E<h.length;E++){var g=h[E].subscriptionRadioOptionRenderer;if(g&&g.selected)return E}return null}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],fB.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],fB.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],fB.prototype,"darkerDarkTheme",void 0);_.Y([_.S("data.options"),_.V("design:type",Object),_.V("design:paramtypes",[])],fB.prototype,"initialIndex",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],fB);
_.X(fB,"ytd-subscription-notification-options-renderer",function(){if(mSZ!==void 0)return mSZ;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return mSZ=h},{mode:1});var HYJ;var N7=function(){return _.D.apply(this,arguments)||this};
_.f(N7,_.D);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],N7.prototype,"data",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],N7);
_.X(N7,"ytd-tvfilm-offer-groups-renderer",function(){if(HYJ!==void 0)return HYJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return HYJ=h},{mode:1});var $SG;var tq=function(){var h=_.D.apply(this,arguments)||this;h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(tq,_.D);_.p=tq.prototype;_.p.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.p.computeThumbnailClass=function(h){return h.thumbnailOverlays?h.isShow?"thumbnail-show":"thumbnail-movie":h.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.p.computeCommerceSectionClass=function(h){return h.offers&&h.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.p.computeTitleClass=function(h){return h.offers&&h.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.p.onDataChanged=function(){[].concat(_.$E(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(h){h.onShow()})};
tq.prototype.onDataChanged=tq.prototype.onDataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],tq.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],tq.prototype,"darkerDarkTheme",void 0);
_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],tq.prototype,"onDataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],tq);
_.X(tq,"ytd-ypc-offers-overlay-renderer",function(){if($SG!==void 0)return $SG;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return $SG=h},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var K0I;var OYG=function(){this.usedMethods=new Set};
OYG.prototype.add=function(h){this.usedMethods.add(h)};
OYG.prototype.reset=function(){this.usedMethods.clear()};var YiG=function(h,E){this.query=h;this.previousSearchQuery=E;this.id=nC0++;if(!X1Z){E=_.nF("SBOX_SETTINGS");h="https://"+((E==null?void 0:E.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var g=E==null?void 0:E.REQUEST_LANGUAGE;g&&(h+="&hl="+g);(g=E==null?void 0:E.REQUEST_DOMAIN)&&(h+="&gl="+g);h+="&client=youtube&gs_ri=youtube";(g=E==null?void 0:E.SUGG_EXP_ID)&&(h+="&sugexp="+encodeURIComponent(g));(g=E==null?void 0:E.PSUGGEST_TOKEN)&&(h+="&tok="+g);(E=
E==null?void 0:E.SESSION_INDEX)&&(h+="&authuser="+E);_.J("desktop_enable_visual_suggest")&&(h+="&h=180&w=320&ytvs=1");X1Z=h}},swZ=function(h){var E="q="+encodeURIComponent(h.query);
h.previousSearchQuery&&(E+="&pq="+encodeURIComponent(h.previousSearchQuery));return E},VmU=function(){var h=_.nF("SBOX_SETTINGS"),E={};
if(h==null?0:h.SEND_VISITOR_DATA)E["X-Goog-Visitor-Id"]=h==null?void 0:h.VISITOR_DATA;return E},kOZ=function(h){var E=X1Z;
E+="&gs_id="+h.id.toString(36);E+="&q="+encodeURIComponent(h.query);E+="&cp="+h.query.length;h.previousSearchQuery&&(E+="&pq="+encodeURIComponent(h.previousSearchQuery));(h=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(E+="&video_id="+h);return E},nC0=0,X1Z="";var y3I=_.HL.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,F0C=_.HL.SEARCH_ENTITY_SUGGESTION_MOVIE,A3G=_.HL.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,TL0=_.HL.SEARCH_ENTITY_SUGGESTION_TV_SHOW,bYI=function(h,E){this.text=h;this.bold=E},uGp=function(h,E,g){this.input=E;
this.index=g;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=h[0];this.type=h[1];this.subtypes=h[2];var Z;this.displayText=Wo((Z=h[3])==null?void 0:Z.b);var M;this.ignoredPrefix=Wo((M=h[3])==null?void 0:M.a);var W,z;this.hasNewVideo=((W=h[3])==null?void 0:(z=W.zam)==null?void 0:z.toString())==="true"?!0:!1;var c;this.visualSuggestUrl=(c=h[3])==null?void 0:c.zai;var I;this.entityType=Wo((I=h[3])==null?void 0:I.zap);var B;this.entityName=Wo((B=h[3])==null?void 0:B.zao);var U;E=Wo((U=
h[3])==null?void 0:U.zaf);var L;this.entityMid=(L=h[3])==null?void 0:L.zae;U=Mvi(this.subtypes,this.entityMid);if(E&&U){if(E){L="";switch(U){case "YOUTUBE_ENTITY_TYPE_SONG":L=A3G;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":L=y3I;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":L=TL0;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":L=F0C}U=U==="YOUTUBE_ENTITY_TYPE_SONG"||U==="YOUTUBE_ENTITY_TYPE_ALBUM"?L+" \u2022  \u2022 "+E:E}else U="";this.entitySubtitle=U}var d;this.externalChannelId=(d=h[3])==null?void 0:d.zav;var C;
this.entityThumbnailAttributionUrl=(C=h[3])==null?void 0:C.zaq},hZI=function(h,E){var g=[],Z,M=(Z=h.displayText)!=null?Z:h.text;
(E==null?0:E.useEntityName)&&QwZ(h)&&h.entityName&&(M=h.entityName);if(h.type===33)return g.push(new bYI(M,!1)),g;if(M.length>=h.input.length&&M.substring(0,h.input.length)===h.input)g.push(new bYI(h.input,!1)),g.push(new bYI(M.substring(h.input.length),!0));else{var W=new Set(h.input.split(/\s/)),z=M.split(/\s/);g=z.map(function(c,I){return new bYI(c.trim()+(I===z.length-1?"":" "),!W.has(c))})}return g},QwZ=function(h){var E=!!Mvi(h.subtypes);
h=!!h.entityMid;return E||h};var Ejc=function(h){this.rawResponse=["",[],{}];this.suggestions=[];try{var E=JSON.parse(Wzp(h));if(typeof E==="object"&&E!==null)this.rawResponse=E;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(Z){console.log("Suggest: Failed to parse SuggestResponse!");return}var g=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(Z,M){return new uGp(Z,g,M)})};var gjR=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new OYG;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20659_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},ZNx,MhG=function(){ZNx||(ZNx=new gjR);
return ZNx};
gjR.prototype.updateSuggestions=function(h){var E=this;this.availableSuggestions.forEach(function(g){E.previousSuggestions[g]=!0});
this.availableSuggestions=h.map(function(g){var Z=g.type.toString();g.subtypes.length>0&&(Z+="i"+g.subtypes.join("i"),Z+="k"+g.suggestionSources.COMPLETE_SERVER.toString());return Z})};
var WFi=function(h,E){var g=Date.now();h.firstEditTime<0&&(h.firstEditTime=g);E&&(h.lastQueryBuildTime=g);h.lastEditTime=g};
gjR.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20659_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var pEG=function(h){var E="";h.availableSuggestions.forEach(function(M){delete h.previousSuggestions[M]});
for(var g=_.G(Object.keys(h.previousSuggestions)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.previousSuggestions[Z]&&(E+=(E?"j":"")+Z);return E},GoC=function(h,E){var g=[];
E&&(g[1]=E.toString());g[0]="youtube";g[7]=Date.now()-h.startTime;g[6]=h.sessionNumber;h.zeroPrefixSuggestionCount>=0&&(g[33]=h.zeroPrefixSuggestionCount);g[13]=h.outOfSyncResponseCount;if(h.availableSuggestions.length>0){for(var Z=E="",M=0,W=_.G(h.availableSuggestions),z=W.next();!z.done;z=W.next())z=z.value,z!==Z&&(M>1&&(E+="l"+M),E+=(Z?"j":"")+z,M=0,Z=z),M+=1;M>1&&(E+="l"+M);g[3]=E}g[35]=pEG(h);h.selectedSuggestionIndex>=0&&(g[2]=h.selectedSuggestionIndex);var c;if(E=(c=_.nF("SBOX_SETTINGS"))==
null?void 0:c.SUGG_EXP_ID)g[19]=h.normalize(E),c=0,h.experimentTriggeredBeforeFinal&&(c|=1),h.experimentTriggeredFinal&&(c|=2),g[20]=c;g[26]=Array.from(h.inputMethodsTracker.usedMethods).join("j");if(h.JSC$20659_totalRoundTripTime>0){g[15]=h.JSC$20659_totalRoundTripTime;g[14]=h.maxRoundTripTime;c=[];for(M=E=0;M<10;M++)Z=h.roundTripTimeHistogram[M],Z===0?E++:(E>1?c.push(M+"-"+Z):E===1?c.push("0j"+Z):c.push(Z.toString()),E=0);c=c.join("j");g[16]=c}h.zeroPrefixRoundTripTime>0&&(g[36]=h.zeroPrefixRoundTripTime);
h.lastQueryBuildTime>0&&(g[18]=h.lastQueryBuildTime-h.startTime);h.firstEditTime>0&&(g[4]=h.firstEditTime-h.startTime);h.lastEditTime>0&&(g[5]=h.lastEditTime-h.startTime);return g.join(".")};
gjR.prototype.normalize=function(h){return h.replaceAll(".","-")};
var zZG=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var SH=function(){var h=_.D.apply(this,arguments)||this;h.microphoneSpinnerActive=!1;h.noAnimations=!1;h.boundExitClick=function(){h.onExitButtonClick()};
h.speechOverlayClassName="";h.isLevelAnimating=!1;h.playCloseDialogAudioFeedback=!0;h.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return h};
_.f(SH,_.D);_.p=SH.prototype;_.p.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.p.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=yYR()};
_.p.dataChanged=function(){this.logDialog()};
_.p.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var h;(h=this.manager.audioPlayer)!=null&&(h.JSC$19980_audioEnabled=!1)}this.manager.stop();(h=this.manager.audioPlayer)!=null&&(h.JSC$19980_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.p.handleSpeechQueryCompleteAction=function(h){var E=h.navigationAction;E&&(h.trackingParams&&_.SQ().graftServerVe(h.trackingParams,this.dialogVe,5),_.Ra(this.hostElement,"yt-navigate",{endpoint:E,tempData:this.getNavigationParams(E),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.p.onExitButtonClick=function(){this.closeDialog()};
_.p.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var h;if((h=this.manager)!=null){var E;(E=h.audioPlayer)==null||Dx(E,"failure");h.setState("microphone-off");h.stop()}}else(h=this.manager)==null||h.start()};
_.p.transcriptionChanged=function(){var h,E;(((h=this.transcription)==null?0:h.low)||((E=this.transcription)==null?0:E.high))&&this.setState("transcribing",this.transcription)};
_.p.stateChanged=function(){this.setState(this.state,this.transcription)};
_.p.logDialog=function(){var h;(h=this.data)!=null&&h.trackingParams&&(h=_.SQ(),_.mw(h,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=h.graftServerVe(this.data.trackingParams,void 0,5))};
_.p.getNavigationParams=function(h){var E={};if(_.J("web_yt_searchbox")){var g=MhG();g.inputMethodsTracker.add(6);g=GoC(g,15);E.gs_l=g;var Z;E.oq=((Z=_.e(h,_.Sl))==null?void 0:Z.query)||""}else if(h=window.ytvoicesearchloggingparams){if(h=h())E.oq=h.oq,E.gs_l=h.gs_l}else _.Fn(Error("El"));return E};
_.p.closeDialog=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.p.setState=function(h,E){if(this.data){var g=this.data,Z={};switch(h){case "listening":Z={headerText:g.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:g.microphoneButtonAriaLabel};break;case "timeout":Z={headerText:g.promptHeader,microphoneState:"try-again",microphoneLabel:g.promptMicrophoneLabel,microphoneAriaLabel:g.promptMicrophoneLabel};break;case "microphone-off":Z={headerText:g.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:g.promptMicrophoneLabel,
microphoneAriaLabel:g.promptMicrophoneLabel};break;case "transcribing":(E==null?0:E.low)||(E==null?0:E.high)?Z={transcriptionLow:E==null?void 0:E.low,transcriptionHigh:E==null?void 0:E.high,microphoneState:"speaking",microphoneAriaLabel:g.microphoneButtonAriaLabel}:Z={headerText:g.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:g.microphoneButtonAriaLabel};break;case "processing":Z={headerText:g.loadingHeader,microphoneState:"processing",microphoneAriaLabel:g.microphoneButtonAriaLabel};
break;case "offline":Z={headerText:g.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:g.connectionErrorMicrophoneLabel,microphoneAriaLabel:g.connectionErrorMicrophoneLabel};break;case "permission":Z={headerText:g.permissionsHeader,bodyLine1:g.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:g.permissionsSubtext};break;case "permission-denied":Z={headerText:g.disabledHeader,bodyLine1:g.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:g.disabledSubtext}}Z.className=
h;this.speechOverlayState=Z;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.p.setMicrophoneState=function(h){var E=this.isLevelAnimating;this.isLevelAnimating=h==="speaking";!E&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=h==="processing"&&!this.noAnimations};
_.p.setClass=function(h){this.speechOverlayClassName&&_.jg(this.hostElement,this.speechOverlayClassName,!1);h&&(this.speechOverlayClassName=h,_.jg(this.hostElement,h,!0))};
_.p.runLevelAnimation=function(){var h=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var E=1+Math.random()*.75,g=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+g/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+E+")");_.KP.addJob(function(){h.runLevelAnimation()},3,g)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
SH.prototype.stateChanged=SH.prototype.stateChanged;SH.prototype.transcriptionChanged=SH.prototype.transcriptionChanged;SH.prototype.onPopupClosed=SH.prototype.onPopupClosed;SH.prototype.dataChanged=SH.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],SH.prototype,"rendererStamperBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],SH.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],SH.prototype,"eventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],SH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],SH.prototype,"speechOverlayState",void 0);
_.Y([_.x(),_.V("design:type",Object)],SH.prototype,"microphoneSpinnerActive",void 0);_.Y([_.x({type:_.J("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.V("design:type",Object)],SH.prototype,"noAnimations",void 0);_.Y([_.x({selector:function(h){var E;return(E=h.voiceSearch)==null?void 0:E.transcription}}),
_.V("design:type",Object)],SH.prototype,"transcription",void 0);_.Y([_.x({selector:function(h){var E;return(E=h.voiceSearch)==null?void 0:E.overlay}}),
_.V("design:type",String)],SH.prototype,"state",void 0);_.Y([_.x(),_.V("design:type",Object)],SH.prototype,"boundExitClick",void 0);_.Y([_.Sg("#microphone-levels"),_.V("design:type",HTMLElement)],SH.prototype,"level",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SH.prototype,"dataChanged",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SH.prototype,"onPopupClosed",null);
_.Y([_.lq("transcription"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SH.prototype,"transcriptionChanged",null);_.Y([_.lq("state"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],SH.prototype,"stateChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],SH);
_.X(SH,"ytd-voice-search-dialog-renderer",function(){if(K0I!==void 0)return K0I;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return K0I=h},{mode:1});var aOR;var xv=function(){var h=_.D.apply(this,arguments)||this;h.isOverlay=!1;h.hidden=!1;return h};
_.f(xv,_.D);_.p=xv.prototype;_.p.onPopupClosed=function(){this.toggleIconState(!1)};
_.p.computeIcon=function(){var h,E,g;return(E=_.e((h=this.data)==null?void 0:h.icon,kAI))==null?void 0:(g=E.icon)==null?void 0:g.iconType};
_.p.computeIconBadgeShape=function(){var h;return{iconBadgeType:"cart",iconBadgeText:(h=this.iconBadgeEntity)==null?void 0:h.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.p.onClick=function(){var h;(h=this.data)!=null&&h.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.p.computeHidden=function(h){return!h};
_.p.toggleIconState=function(h){this.iconButton&&(this.iconButton.pressed=h)};
xv.prototype.onPopupClosed=xv.prototype.onPopupClosed;_.Y([_.t(_.aF),_.V("design:type",Object)],xv.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],xv.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],xv.prototype,"isOverlay",void 0);
_.Y([_.x({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.V("design:type",Object)],xv.prototype,"hidden",void 0);_.Y([_.x({selectorArgs:["data.iconBadgeEntityKey"],selector:function(h,E){return _.Jj(h.entities,"iconBadgeEntity",E)}}),
_.V("design:type",Object)],xv.prototype,"iconBadgeEntity",void 0);_.Y([_.Sg("yt-icon-button"),_.V("design:type",HTMLButtonElement)],xv.prototype,"iconButton",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],xv.prototype,"onPopupClosed",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],xv);
_.X(xv,"ytd-icon-badge-topbar-button-renderer",function(){if(aOR!==void 0)return aOR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return aOR=h},{mode:1});var cPp;var w0=function(){var h=_.D.apply(this,arguments)||this;h.premiumOptions=[];h.darkerDarkTheme=_.J("web_darker_dark_theme");return h};
_.f(w0,_.D);w0.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ze.Object.defineProperties(w0.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],w0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Array)],w0.prototype,"premiumOptions",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],w0.prototype,"darkerDarkTheme",void 0);_.Y([_.S("premiumOptions"),_.V("design:type",Object),_.V("design:paramtypes",[])],w0.prototype,"hasPremiumOptions",null);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],w0);
_.X(w0,"ytd-offline-promo-content",function(){if(cPp!==void 0)return cPp;var h=document.createElement("template");_.N(h,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return cPp=h},{mode:1});var iNJ;var Dg=function(){var h=_.D.apply(this,arguments)||this;h.premiumOptions=[];return h};
_.f(Dg,_.D);Dg.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var h;this.premiumOptions=Z4J((h=this.data)==null?void 0:h.formats)};
Dg.prototype.onClickSubmit=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var h;(h=_.zD())==null||h.pause()};
Dg.prototype.attached=function(){this.JSC$20679_scroller&&(this.JSC$20679_scroller.dialogElement=this.hostElement.parentNode)};
_.ze.Object.defineProperties(Dg.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Dg.prototype.dataChanged=Dg.prototype.dataChanged;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Dg.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Dg.prototype,"data",void 0);
_.Y([_.x({computed:"computeIcon_(data.headersIcon)",value:""}),_.V("design:type",String)],Dg.prototype,"headersIcon",void 0);_.Y([_.x(),_.V("design:type",Array)],Dg.prototype,"premiumOptions",void 0);_.Y([_.Sg("#scroller"),_.V("design:type",Object)],Dg.prototype,"JSC$20679_scroller",void 0);_.Y([_.S("headersIcon"),_.V("design:type",Object),_.V("design:paramtypes",[])],Dg.prototype,"showIcon",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Dg.prototype,"dataChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Dg);
_.X(Dg,"ytd-offline-promo-renderer",function(){if(iNJ!==void 0)return iNJ;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return iNJ=h},{mode:1});var oj0;var lD=function(){var h=_.D.apply(this,arguments)||this;h.playbackPauseInterval=NaN;h.isLoading=!1;h.hasError=!1;h.dialogClass="";h.youtubeLabel=_.NH("LOGO_ALT_LABEL",{},"YouTube Home");h.logoName="yt-logos-ext:yt-logo-updated";h.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return h};
_.f(lD,_.D);_.p=lD.prototype;_.p.onDataChange=function(){var h;if(this.showEOMV1Text=!((h=this.data)==null||!h.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.p.attached=function(){this.pausePlayer()};
_.p.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.p.handleLangSelect=function(h){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[h.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.p.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.p.handleSaveConsent=function(h){var E=this;this.showLoadingSpinner();this.showLoadingSpinner();KcX(_.e(h,y6c)).catch(function(g){_.O$(new _.xX("Something went wrong when save consent "+(g.message?g.message:g)+"."));E.hideLoadingSpinner();E.showErrorMessage()})};
_.p.handleDisablePersonalization=function(h){var E=this;this.showLoadingSpinner();OZG(_.e(h,krc)).then(function(){E.dialog.close();E.resumePlayer()}).catch(function(g){_.O$(new _.xX("Something went wrong when disable personalization "+(g.message?g.message:g)+"."));
E.hideLoadingSpinner();E.showErrorMessage()})};
_.p.showLoadingSpinner=function(){var h=this;this.showSpinnerJobId=_.KP.addLowPriorityJob(function(){h.isLoading=!0},500)};
_.p.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.KP.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.p.showErrorMessage=function(){var h=this;this.hasError=!0;_.KP.addLowPriorityJob(function(){h.hasError=!1},2E3)};
_.p.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Uq(function(){try{var h=_.zD();h&&h.pause()}catch(E){}},100))};
_.p.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var h=_.zD();h&&h.play()}catch(E){}};
_.ze.Object.defineProperties(lD.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.eomV1Text)return[];h=[];for(var E=["SHIELD","WARNING","BAR_CHART"],g=this.data.eomV1Text.essentialCookieMsg.items,Z=0;Z<E.length&&Z<g.length;Z++)h.push({icon:E[Z],text:g[Z]});return h}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var h;if((h=this.data)==null||!h.eomV1Text)return[];h=[];for(var E=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],g=this.data.eomV1Text.nonEssentialCookieMsg.items,Z=0;Z<E.length&&Z<g.length;Z++)h.push({icon:E[Z],text:g[Z]});return h}}});
lD.prototype.onDataChange=lD.prototype.onDataChange;_.Y([_.x(),_.V("design:type",Object)],lD.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],lD.prototype,"showEOMV1Text",void 0);_.Y([_.x(),_.V("design:type",Object)],lD.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Object)],lD.prototype,"hasError",void 0);_.Y([_.x(),_.V("design:type",Number)],lD.prototype,"showSpinnerJobId",void 0);_.Y([_.x(),_.V("design:type",Object)],lD.prototype,"dialogClass",void 0);
_.Y([_.Sg("#dialog"),_.V("design:type",Object)],lD.prototype,"dialog",void 0);_.Y([_.Sg("#cb-header"),_.V("design:type",HTMLElement)],lD.prototype,"header",void 0);_.Y([_.Sg("#lang-select"),_.V("design:type",HTMLElement)],lD.prototype,"langSelect",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],lD.prototype,"ytComponentBehavior",void 0);
_.Y([_.x(),_.V("design:type",String)],lD.prototype,"youtubeLabel",void 0);_.Y([_.x(),_.V("design:type",Object)],lD.prototype,"logoName",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],lD.prototype,"onDataChange",null);_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],lD.prototype,"eomEssentialCookieMsgItems",null);
_.Y([_.S("data"),_.V("design:type",Array),_.V("design:paramtypes",[])],lD.prototype,"eomNonEssentialCookieMsgItems",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],lD);
_.X(lD,"ytd-consent-bump-v2-lightbox",function(){if(oj0!==void 0)return oj0;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return oj0=h},{mode:1});var IO0;var r0=function(){return _.D.apply(this,arguments)||this};
_.f(r0,_.D);r0.prototype.ready=function(){if(!_.Nd()||GbC)var h=!0;else GbC=!0,h=!1;h||(h=document.querySelector("ytd-app"),h||(h=document.body),this.internalLightBox=_.UB(h).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.Y([_.x(),_.V("design:type",Object)],r0.prototype,"data",void 0);_.Y([_.Sg("#lightbox"),_.V("design:type",Object)],r0.prototype,"lightBox",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],r0);
_.X(r0,"ytd-consent-bump-v2-renderer",function(){if(IO0!==void 0)return IO0;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return IO0=h},{mode:1});var RZX;var PyG;var BoU;var m3=function(){return _.D.apply(this,arguments)||this};
_.f(m3,_.D);_.p=m3.prototype;_.p.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&dvZ(this.toastManager,this.toastType)};
_.p.open=function(h){this.toast&&(this.ephemeralAction&&_.GF().resolve(_.gm).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=h!=null?h:0,this.toastManager.enqueue(this.toast,h)):this.toast.open())};
_.p.close=function(h){var E;(E=this.toast)==null||E.close();this.toastManager&&h===1&&dvZ(this.toastManager,h)};
_.p.refit=function(){var h;(h=this.toast)==null||h.refit()};
_.p.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var h;(h=this.toast)==null||h.close()}};
_.p.setVerticalOffset=function(h){this.toast&&(this.toast.verticalOffset=h,this.toast.fit())};
_.p.computeButtonClass_=function(h){return h?"toast-button":""};
_.p.computeText_=function(h){return _.Wp(h)};
_.p.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jR("toast-opened-changed",this.toastOpened))};
_.p.updateToastOpenedFromBinding=function(h){this.toastOpened=h.detail.value};
_.ze.Object.defineProperties(m3.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var h,E,g=(h=this.data)==null?void 0:(E=h.actionButton)==null?void 0:E.buttonRenderer;return(g==null?void 0:g.command)||(g==null?void 0:g.serviceEndpoint)||(g==null?void 0:g.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var h=[],E;((E=this.data)==null?0:E.responseText)&&h.push(_.Wp(this.data.responseText));var g;((g=this.data)==null?0:g.subText)&&h.push(_.Wp(this.data.subText));var Z,M;if((Z=this.data)==null?0:(M=Z.actionButton)==null?0:M.buttonRenderer){var W,z;h.push(((W=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(z=W.accessibilityData)==null?void 0:z.label)||_.Wp(this.data.actionButton.buttonRenderer.text))}return h.filter(function(c){return c}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var h,E;return(E=(h=this.toast)==null?void 0:h.opened)!=null?E:!1}}});
m3.prototype.toastOpenedChangedForBinding=m3.prototype.toastOpenedChangedForBinding;m3.prototype.toastOpenedChanged=m3.prototype.toastOpenedChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],m3.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],m3.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],m3.prototype,"duration",void 0);
_.Y([_.x(),_.V("design:type",Number)],m3.prototype,"toastType",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],m3.prototype,"useCloseButton",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],m3.prototype,"closeToastOnActionButtonClick",void 0);_.Y([_.x({value:function(){return _.NH("SBOX_INAPPROPRIATE_CANCEL")}}),
_.V("design:type",String)],m3.prototype,"closeButtonAriaLabel",void 0);_.Y([_.x(),_.V("design:type",Boolean)],m3.prototype,"toastOpened",void 0);_.Y([_.x(),_.V("design:type",Boolean)],m3.prototype,"hasOpened",void 0);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],m3.prototype,"command",null);_.Y([_.S("labelText","command","duration"),_.V("design:type",Object),_.V("design:paramtypes",[])],m3.prototype,"ephemeralAction",null);
_.Y([_.S("ephemeralAction"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],m3.prototype,"hasEphemeralAction",null);_.Y([_.Sg("#toast"),_.V("design:type",Object)],m3.prototype,"toast",void 0);_.Y([_.x({value:function(){return{style:"call-to-action-inverse"}}}),
_.V("design:type",Object)],m3.prototype,"buttonOverrides",void 0);_.Y([_.x({value:{style:"mono-inverse"}}),_.V("design:type",Object)],m3.prototype,"closeButtonOverrides",void 0);_.Y([_.x({value:function(){return _.GF().resolve(_.pl(_.b8))}}),
_.V("design:type",Object)],m3.prototype,"toastManager",void 0);_.Y([_.S("data.responseText","data.subText","data.actionButton"),_.V("design:type",Object),_.V("design:paramtypes",[])],m3.prototype,"labelText",null);_.Y([_.Nm("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m3.prototype,"toastOpenedChanged",null);
_.Y([_.Nm("toastOpened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],m3.prototype,"toastOpenedChangedForBinding",null);_.Y([_.yc({is:"yt-notification-action-renderer",disableElementRegistration:!0})],m3);
_.X(m3,"yt-notification-action-renderer",function(){if(BoU===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;PyG===void 0&&(PyG=document.createElement("template"));var Z=PyG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);BoU=h}h=BoU;return h},{mode:2});var vH=function(){var h=_.D.apply(this,arguments)||this;h.duration=4E3;h.downloadingCount=0;h.downloadedCount=0;h.downloadingOnlySmartDownloads=!1;h.sessionTotalDownloads=0;h.sessionDownloaded=0;h.previousSessionsDownloaded=0;h.totalDownloadPercentage=0;h.currentDownloadProgress=0;h.currentDownloadPercentage=0;h.isLeaderTab=!0;h.isFullScreen=!1;h.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};h.boundBeforeUnload=function(E){h.isLeaderTab&&h.downloadingCount>0&&(E.preventDefault(),
E.returnValue=!0)};
return h};
_.f(vH,_.D);_.p=vH.prototype;
_.p.open=function(){this.updateDownloadState();if(this.data){var h=this.sessionDownloaded+1,E=this.sessionTotalDownloads>1?_.NH("VIDEOS_DOWNLOADING_RATIO",{downloaded:h.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+h+"/"+this.sessionTotalDownloads):_.NH("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(E=this.sessionTotalDownloads>1?_.NH("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:h.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
h+"/"+this.sessionTotalDownloads):_.NH("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));h=this.isLeaderTab?_.NH("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Wp(this.data.responseText)!==E||_.Wp(this.data.subText)!==h)this.set("data.responseText",_.MR(E)),this.set("data.subText",_.MR(h)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.p.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.p.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.p.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.p.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var h=this.downloadedCount-this.previousSessionsDownloaded;h<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-h);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.p.handleFullscreenChange=function(h){(this.isFullScreen=h)||this.updatePopup()};
vH.prototype.updateCurrentDownloadProgress=vH.prototype.updateCurrentDownloadProgress;vH.prototype.updatePopup=vH.prototype.updatePopup;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],vH.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],vH.prototype,"ytEventForwardingBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],vH.prototype,"actionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"duration",void 0);_.Y([_.x({selector:function(h){return _.iC$(h.entities).length}}),
_.V("design:type",Object)],vH.prototype,"downloadingCount",void 0);_.Y([_.x({selector:ATc}),_.V("design:type",Object)],vH.prototype,"downloadedCount",void 0);_.Y([_.x({selector:function(h){var E=_.iC$(h.entities);return Fcp(h.entities,E)}}),
_.V("design:type",Object)],vH.prototype,"downloadingOnlySmartDownloads",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"sessionTotalDownloads",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"sessionDownloaded",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"previousSessionsDownloaded",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"totalDownloadPercentage",void 0);
_.Y([_.x({selector:function(h){var E;h=(E=_.iC$(h.entities))!=null?E:[];return h.length>0?_.htM(h.slice(-1)):0}}),
_.V("design:type",Object)],vH.prototype,"currentDownloadProgress",void 0);_.Y([_.x(),_.V("design:type",Object)],vH.prototype,"currentDownloadPercentage",void 0);_.Y([_.x({selector:_.BWx}),_.V("design:type",Object)],vH.prototype,"isLeaderTab",void 0);_.Y([_.Sg("yt-notification-action-renderer"),_.V("design:type",Object)],vH.prototype,"notificationActionRenderer",void 0);
_.Y([_.lq("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vH.prototype,"updatePopup",null);_.Y([_.lq("currentDownloadProgress"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],vH.prototype,"updateCurrentDownloadProgress",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],vH);
_.X(vH,"ytd-video-download-toast-renderer",function(){if(RZX!==void 0)return RZX;var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return RZX=h},{mode:1});var UtC;var LFZ;var HH=function(){return _.D.apply(this,arguments)||this};
_.f(HH,_.D);HH.prototype.computeIsRedLogo=function(h,E){!h&&E&&(h=E);return h==="YOUTUBE_RED_LOGO"||h==="YOUTUBE_PREMIUM_LOGO"};
HH.prototype.computeLogoName=function(h){h=this.componentBehavior.computeIcon_(h);return h===""?"yt-logos-ext:yt-logo-updated":h};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],HH.prototype,"componentBehavior",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.V("design:type",Boolean)],HH.prototype,"isRedLogo",void 0);_.Y([_.x({computed:"computeLogoName(data)"}),_.V("design:type",String)],HH.prototype,"logoName",void 0);_.Y([_.x({value:{}}),_.V("design:type",Object)],HH.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],HH.prototype,"logoType",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-logo"})],HH);
_.X(HH,"ytd-logo",function(){if(LFZ!==void 0)return LFZ;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return LFZ=h},{mode:_.UQ("kevlar_poly_si_batch_j074")?1:2});var $v=function(){var h=_.D.apply(this,arguments)||this;h.animationRef={};return h};
_.f($v,_.D);_.p=$v.prototype;_.p.attached=function(){document.addEventListener("yt-navigate-finish",_.qm(this,this.logYoodle))};
_.p.detached=function(){document.removeEventListener("yt-navigate-finish",_.qm(this,this.logYoodle))};
_.p.logYoodle=function(){var h,E;if((h=this.data)==null?0:(E=h.loggingDirectives)==null?0:E.trackingParams)this.ytRendererBehavior.markDirty(),_.SQ().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.p.computeHideImg=function(h,E){return!!h||!!E};
_.p.computeHideYtdLogo=function(h,E){return!h||!!E};
_.p.computeHideLottie=function(h){return!h};
_.p.computeIsRedLogo=function(h){return h==="YOUTUBE_RED_LOGO"||h==="YOUTUBE_PREMIUM_LOGO"};
_.p.renderLogoEntity=function(){var h=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),g=this.getLogoTitleText(this.data),Z=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==h&&(this.url=h);this.animatedUrl!==E&&(this.animatedUrl=E);this.logoTitleText!==g&&(this.logoTitleText=g);this.lottieUrl!==Z&&(this.lottieUrl=Z,this.lottiePlayerProps=this.computeLottiePlayerProps(Z))};
_.p.getSanitizedThumbnail=function(h){return h&&h.thumbnails?_.JIu(h.thumbnails,122)||"":""};
_.p.getThumbnailUrl=function(h,E){if(!E)return"";var g,Z;h=h?(g=E.darkThemeLogo)==null?void 0:g.thumbnail:(Z=E.lightThemeLogo)==null?void 0:Z.thumbnail;return this.getSanitizedThumbnail(h)};
_.p.getAnimatedThumbnailUrl=function(h,E){return E?this.getSanitizedThumbnail(h?E.darkThemeAnimatedLogo:E.lightThemeAnimatedLogo):""};
_.p.getLogoTitleText=function(h){if(h)return _.Wp(h.tooltipText)};
_.p.computeLogoIcon=function(h,E){if(E){var g,Z;return h?(g=E.darkThemeLogo)==null?void 0:g.icon:(Z=E.lightThemeLogo)==null?void 0:Z.icon}};
_.p.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.p.getLottieUrl=function(h,E){var g,Z,M,W;return h?E==null?void 0:(g=E.darkThemeLogo)==null?void 0:(Z=g.lottieAnimation)==null?void 0:Z.url:E==null?void 0:(M=E.lightThemeLogo)==null?void 0:(W=M.lottieAnimation)==null?void 0:W.url};
_.p.computeLottiePlayerProps=function(h){if(h){var E;if((E=this.animationRef)==null?0:E.lottieEl){var g;(g=this.animationRef)==null||g.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:h,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.p.onLottieError=function(){this.data&&this.lottieUrl&&_.Ra(this.hostElement,"yoodle-error")};
_.p.onImgError=function(){this.data&&!this.lottieUrl&&_.Ra(this.hostElement,"yoodle-error")};
$v.prototype.playAnimation=$v.prototype.playAnimation;$v.prototype.renderLogoEntity=$v.prototype.renderLogoEntity;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],$v.prototype,"data",void 0);_.Y([_.x({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],$v.prototype,"hideImg",void 0);
_.Y([_.x({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.V("design:type",Boolean)],$v.prototype,"hideYtdLogo",void 0);_.Y([_.x({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.V("design:type",Boolean)],$v.prototype,"hideLottie",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.V("design:type",Boolean)],$v.prototype,"isRedLogo",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],$v.prototype,"useDarkThemeYoodle",void 0);_.Y([_.x(),_.V("design:type",String)],$v.prototype,"url",void 0);_.Y([_.x(),_.V("design:type",String)],$v.prototype,"animatedUrl",void 0);_.Y([_.x(),_.V("design:type",String)],$v.prototype,"logoTitleText",void 0);_.Y([_.x({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.V("design:type",Object)],$v.prototype,"logoIcon",void 0);_.Y([_.x(),_.V("design:type",Object)],$v.prototype,"logoType",void 0);
_.Y([_.x(),_.V("design:type",String)],$v.prototype,"lottieUrl",void 0);_.Y([_.x(),_.V("design:type",Object)],$v.prototype,"lottiePlayerProps",void 0);_.Y([_.x(),_.V("design:type",Object)],$v.prototype,"animationRef",void 0);_.Y([_.Nm("data"),_.Nm("useDarkThemeYoodle"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],$v.prototype,"renderLogoEntity",null);
_.Y([_.f3("click"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],$v.prototype,"playAnimation",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],$v);
_.X($v,"ytd-yoodle-renderer",function(){if(UtC!==void 0)return UtC;var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return UtC=h},{mode:_.UQ("kevlar_poly_si_batch_j074")?1:2});var jhC;var dtR;var Cyc=_.AU.currentPageTypeSelector,JPC=_.AU.currentPageSubTypeSelector,KB=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return h};
_.f(KB,_.D);_.p=KB.prototype;_.p.onYoodleError=function(){_.J("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.p.computeLogoName=function(h){h=this.componentBehavior.computeIcon_(h);return h===""?"yt-logos-ext:yt-logo-updated":h};
_.p.computeTitle=function(h,E,g){return g&&(E==null?0:E.tooltipText)?_.Wp(E.tooltipText):_.Wp(h)};
_.p.computeAriaLabel=function(h,E,g){return g&&(E==null?0:E.tooltipText)?_.Wp(h):""};
_.p.computeShowYoodle=function(h,E,g){return!h||!E&&!!g&&!_.Kt.isEmpty(g)};
_.p.onNavigateHomeAction=function(){if(_.J("kevlar_miniplayer_navigate_home_from_app_killswitch")){var h;(h=_.UB(this.hostElement).querySelector(".yt-simple-endpoint"))==null||h.click()}};
_.p.computeLogoHref=function(h,E,g){var Z;(g==null?0:g.onTapCommand)?Z=this.componentBehavior.computeHref_(g.onTapCommand):h&&(Z=this.componentBehavior.computeHref_(h));return Z?Z:E};
_.p.computeCommand=function(h,E){return(E==null?void 0:E.onTapCommand)||h};
_.p.getEndpointForm=function(){if(_.J("kevlar_topbar_disable_cache_only_home")){var h=_.GF().resolve(_.c4),E=Cyc(h.getState())||"";h=JPC(h.getState())||"";return{disableCache:E==="ytd-browse"&&h==="home"}}return{disableCache:!0}};
KB.prototype.onYoodleError=KB.prototype.onYoodleError;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],KB.prototype,"componentBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],KB.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],KB.prototype,"countryCode",void 0);_.Y([_.x({selectorArgs:["data.overrideEntityKey"],selector:function(h,E){return _.Jj(h.entities,"logoEntity",E)}}),
_.V("design:type",Object)],KB.prototype,"logoEntity",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.V("design:type",Boolean)],KB.prototype,"showYoodle",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],KB.prototype,"yoodleError",void 0);_.Y([_.x({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],KB.prototype,"titleText",void 0);
_.Y([_.x({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.V("design:type",String)],KB.prototype,"ariaLabelText",void 0);_.Y([_.x({value:"/"}),_.V("design:type",String)],KB.prototype,"defaultEndpointUrl",void 0);_.Y([_.x({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.V("design:type",String)],KB.prototype,"endpointUrl",void 0);
_.Y([_.x({computed:"computeCommand(data.endpoint, logoEntity)"}),_.V("design:type",String)],KB.prototype,"command",void 0);_.Y([_.x(),_.V("design:type",Object)],KB.prototype,"logoType",void 0);_.Y([_.x({}),_.V("design:type",Boolean)],KB.prototype,"useDarkThemeYoodle",void 0);_.Y([_.f3("yoodle-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],KB.prototype,"onYoodleError",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],KB);
_.X(KB,"ytd-topbar-logo-renderer",function(){if(dtR!==void 0)return dtR;var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return dtR=h},{mode:_.UQ("kevlar_poly_si_batch_j027")?1:2});var eZU=0;var q5R=_.HL.SEARCH_APPEND_LABEL,fOU=_.HL.SUGGESTION_NEW_VIDEOS_TEXT,NoG=_.HL.SUGGESTION_THUMBNAIL_LABEL,thC=_.HL.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,S5U=_.O(function(h){function E(fD){var U0,QF;return _.a(function(RG){if(RG.nextAddress==1)return U0=new Request(fD),_.CX(RG,2),RG.yield(fetch(U0,{credentials:"include"}),4);if(RG.nextAddress!=2)return xU(!0),_.bN(RG,0);QF=_.th(RG);_.O$(QF);_.SK(RG)})}
var g=h.isHighlighted;var Z=h.suggestion;var M=h.onClickCallback;var W=h.onHoverUpdateCallback;var z=h.labels;var c=h.queryBuilderFunction;var I=h.onRemoveCallback;var B=h.suggestionIndex;var U=h.generateUniqueId;var L=h.highlightedId;var d=h.useScrollMargin;var C=h.isKeyboardMode;var q=null,w=null,r=_.hf("div"),v=_.hf("span");h=_.G(_.Bm(!1,void 0,"mxSc0e"));var H=h.next().value,u=h.next().value,k=_.MC("a",function(fD){fD&&_.x7(237477,fD,w,function(U0){w=U0})}),y=_.MC("button",function(fD){fD&&_.x7(237477,
fD,w,function(U0){w=U0})}),A=_.J7(function(fD){if((fD==null?void 0:fD.button)===2)return fD.preventDefault(),!1;
var U0=_.sH();U0&&q&&_.Mw(U0,q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var QF;M(fD,Z().text,Z().index,Z().entityMid,fD==null?void 0:(QF=fD.detail)==null?void 0:QF.wasSelectedByKeyboard);return!1}),E4=function(){return Z().type===35},iO=function(){return _.J("desktop_enable_single_suggestion_highlight")},RW=function(){return _.cx("desktop_suggestions_panel_row_height")||0},NN=function(){var fD;
return _.J("desktop_enable_new_video_metadata")&&((fD=Z())==null?void 0:fD.hasNewVideo)===!0},Cd=function(){return _.J("desktop_enable_visual_suggest")},Ba=function(){return _.J("desktop_enable_entity_suggest")&&QwZ(Z())},$$=function(){return Z().entitySubtitle},Ha=function(){return iO()?(g==null?void 0:g())||gB()&&!(C==null?0:C()):(g==null?void 0:g())||gB()},zf=function(){var fD=_.nF("SBOX_SETTINGS");
return E4()&&!(fD==null?0:fD.HIDE_REMOVE_LINK)},eF=function(){return hZI(Z(),{useEntityName:Ba()})},Rm,bO=!((Rm=_.GF().resolve(_.pl(_.gu)))==null||!Rm()),jF=function(){return E4()?_.J("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},PM=function(){return z==null?void 0:z().SUGGESTION_DISMISS_LABEL},ll=function(){return z==null?void 0:z().SUGGESTION_DISMISSED_LABEL};
h=_.G(_.Bm(!1,void 0,"WMms1e"));Rm=h.next().value;var xU=h.next().value;h=_.G(_.Bm(!1,void 0,"PyL0t"));var pU=h.next().value,pd=h.next().value,gB=pU,CD=_.J7(function(){c(v.value.innerText);return!1}),E0=_.J7(function(fD){fD.preventDefault();
return!1}),Im=_.J7(function(fD){var U0=Z().text,QF=_.nF("SBOX_SETTINGS"),RG="https://"+(QF.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
RG+="&delq="+encodeURIComponent(U0);(U0=QF==null?void 0:QF.PSUGGEST_TOKEN)&&(RG+="&tok="+U0);(QF=QF==null?void 0:QF.SESSION_INDEX)&&(RG+="&authuser="+QF);E(RG);fD.preventDefault();(fD=_.sH())&&w&&_.Mw(fD,w,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");I(B==null?void 0:B());return!1}),Qk=_.J7(function(){if(iO()&&(C==null?0:C()))return!1;
pd(!0);W(!0);return!1}),TN=_.J7(function(){pd(!1);
W(!1);return!1}),hC=_.J7(function(){u(!0);
return!1}),cM=_.J7(function(){u(!1);
return!1}),FC=_.J7(function(fD){fD.preventDefault();
if(Z().entityThumbnailAttributionUrl){fD=Z().entityThumbnailAttributionUrl;var U0=Z().entityName,QF={urlEndpoint:{url:fD},commandMetadata:{webCommandMetadata:{url:fD}}};fD={buttonViewModel:{title:_.NH("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};QF={buttonViewModel:{title:_.NH("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:QF}}};
U0={dialogHeaderViewModel:{headline:{content:U0!=null?U0:_.NH("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var RG={basicContentViewModel:{paragraphs:[{text:{content:_.NH("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};fD={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:U0,footer:{panelFooterViewModel:{primaryButton:QF,secondaryButton:fD,shouldHideDivider:!0}},content:RG}}}}};_.GF().resolve(_.zF).resolveCommand(fD)}return!1});
h=_.G(_.Bm("",void 0,"yG5Sx"));var jx=h.next().value,wB=h.next().value;_.m1(function(){zf()&&wB(U==null?void 0:U(B==null?void 0:B()));r.value&&_.x7(12453,r.value,q,function(fD){q=fD})});
return _.R(_.P,{cond:Rm,then:function(){var fD={};return _.R("div",{class:_.CO("ytSuggestionComponentRemovedText",(fD.ytSuggestionComponentLargerRemovedText=function(){return Cd()},fD)),
style:function(){return RW()>0?"height: "+RW()+"px;":""},
role:"button"},ll)},
else:function(){var fD={},U0={};return _.R("div",{class:_.CO("ytSuggestionComponentSuggestion",(fD.ytSuggestionComponentSuggestionHover=function(){return!iO()},fD.ytSuggestionComponentHighlighted=Ha,fD.ytSuggestionComponentPersonalizedSuggestion=E4,fD.ytSuggestionComponentMweb=!1,fD.ytSuggestionComponentLargerSuggestion=function(){return NN()||Cd()},fD.ytSuggestionComponentThumbnailSuggestion=function(){return Cd()},fD.ytSuggestionComponentRoundedSuggestion=function(){return _.J("desktop_enable_scrollable_suggestions_panel")&&
_.J("desktop_enable_suggestions_panel_padding")},fD.ytSuggestionComponentThumbnailPadding=function(){return Cd()&&!E4()},fD)),
style:function(){return RW()>0?"height: "+RW()+"px;":""},
role:"presentation","on:mousedown":A,"on:mouseover":Qk,"on:mouseout":TN,el:r},_.R("div",{class:_.CO("ytSuggestionComponentText",(U0.ytSuggestionComponentScrollMargin=d,U0)),"aria-label":function(){return NN()?Z().text+" "+fOU:Z().text},
id:function(){return U==null?void 0:U(B==null?void 0:B())},
"on:mousedown":A,role:"option"},_.R(_.P,{cond:function(){return Z().type!==33},
then:function(){return _.R(_.Ni,{icon:jF,className:"ytSuggestionComponentIcon"})}}),_.R("div",{class:"ytSuggestionComponentLeftContainer"},_.R("span",{el:v,
role:"button",tabindex:0},_.R(_.SX,{each:eF},function(QF){return QF.bold?_.R("span",{class:"ytSuggestionComponentBold"},QF.text):_.R("span",null,QF.text)})),_.R(_.P,{cond:function(){return Ba()&&!!Z().entitySubtitle||NN()},
then:function(){return _.R("div",{class:"ytSuggestionComponentMetadataContainer"},_.R(_.P,{cond:function(){return Ba()&&!!Z().entitySubtitle},
then:function(){return _.R("div",{class:"ytSuggestionComponentEntitySubtitle"},$$)}}),_.R(_.P,{cond:function(){return NN()},
then:function(){return _.R("div",{class:"ytSuggestionComponentNewVideoContainer"},_.R("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.R("div",{class:"ytSuggestionComponentNewVideoText"},fOU))}}))}}))),_.R("div",{class:"ytSuggestionComponentRightContainer"},_.R(_.P,{cond:function(){return Cd()&&Z().visualSuggestUrl!==void 0},
then:function(){var QF={};return _.R("div",{class:"ytSuggestionComponentThumbnailContainer"},_.R("img",{"aria-label":NoG,class:_.CO("ytSuggestionComponentVisualSuggestThumbnail",(QF.ytSuggestionComponentCircularFrame=function(){return Ba()&&Z().subtypes.includes(790)},QF.ytSuggestionComponentEntitySuggestThumbnail=function(){return Ba()},QF)),
src:function(){return Z().visualSuggestUrl}}),_.R(_.P,{cond:function(){return Ba()&&!!Z().entityThumbnailAttributionUrl},
then:function(){var RG={};return _.R("span",{title:thC,role:"tooltip"},_.R("div",{"on:mouseover":hC,"on:mouseout":cM,"on:mousedown":FC,class:_.CO("ytSuggestionComponentThumbnailOverlay",(RG.ytSuggestionComponentThumbnailOverlayHidden=function(){return!H()},RG))},_.R(_.Ni,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.R(_.DG,null,_.R(_.x3,{when:function(){return Cd()&&zf()}},function(){var QF={};
return _.R("button",{class:_.CO("ytSuggestionComponentRemoveLinkClearButton",(QF.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return jx()&&jx()===(L==null?void 0:L())},QF.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ha()},QF)),
el:y,"on:mousedown":Im,"aria-label":PM,id:function(){return jx()}},_.R(_.Ni,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.R(_.x3,{when:function(){return!(Cd()&&Z().visualSuggestUrl!==void 0)&&zf()}},function(){var QF={};
return _.R("a",{class:_.CO("ytSuggestionComponentRemoveLink",(QF.ytSuggestionComponentRemoveLinkDark=bO,QF.ytSuggestionComponentRemoveLinkSelected=function(){return jx()&&jx()===(L==null?void 0:L())},QF)),
el:k,"on:mousedown":Im,"aria-label":PM,tabindex:0,role:"button",id:function(){return jx()}},PM)}),_.R(_.x3,{when:function(){return!1}},function(){return _.R("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":CD,"on:mousedown":E0,role:"button","aria-label":q5R},_.R(_.Ni,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Ah");var xtC=_.uz(["//www.google.com/textinputassistant/","/","_tia.js"]),wEC=_.O(function(){return _.R("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.R("button",{class:"ytdTextInputAssistantButton","on:click":_.J7(function(){MhG().inputMethodsTracker.add(3);var h,E=(h=_.nF("SBOX_SETTINGS"))==null?void 0:h.REQUEST_LANGUAGE;if(E)return _.bC(_.BR(xtC,14,E)),!1})},_.R("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Bh");var DtG=function(){this.cache=new Map},lOC=function(h){for(var E=_.G(h.cache.entries()),g=E.next();!g.done;g=E.next()){var Z=_.G(g.value);
g=Z.next().value;Z=Z.next().value;Z.suggestions.some(function(M){return M.type===35})&&h.cache.delete(g)}};var rPX=_.HL.SEARCH,mtJ=_.HL.SEARCH_CLEAR_LABEL,vj0=new _.Ps("FAKE_SUGGEST_RESPONSE");_.I9(_.O(function(h){function E(){hC||(hC=setTimeout(function(){FC()},1E3))}
function g(qA,Jn,rI){if(qA.trim()){TN=qA;_.OW("REFINEMENTS_TUPLE",void 0);Im=!0;var dU;Jn=GoC(pU,Jn);var UD=(dU=h.searchEndpoint)==null?void 0:dU.call(h);_.GDp(qA,Jn,UD,jF.value.value,rI);FC();jF.value.value=qA;jF.value.blur();pU.reset()}}
function Z(qA){return _.a(function(Jn){return Jn.return(new Promise(function(rI){var dU=new XMLHttpRequest;dU.open("GET",kOZ(qA),!0);dU.withCredentials=!0;var UD=_.nF("SBOX_SETTINGS");(UD==null?0:UD.SEND_VISITOR_DATA)&&dU.setRequestHeader("X-Goog-Visitor-Id",UD==null?void 0:UD.VISITOR_DATA);dU.onload=function(){rI(dU.responseText)};
dU.onerror=function(){_.O$(Error("Gl"));rI(null)};
setTimeout(function(){dU.abort()},1E4);
dU.send(null)}))})}
function M(qA){var Jn,rI,dU,UD;return _.a(function(tb){switch(tb.nextAddress){case 1:return Jn={credentials:"include",headers:VmU()},window.AbortController&&(rI=new AbortController,setTimeout(function(){rI.abort("ytsbox-suggest-timeout")},1E4),Jn.signal=rI.signal),_.CX(tb,2),tb.yield(fetch(kOZ(qA),Jn),4);
case 4:dU=tb.yieldResult.text();_.bN(tb,3);break;case 2:return UD=_.th(tb),UD!=="ytsbox-abort-last"&&UD!=="ytsbox-suggest-timeout"&&_.O$(UD),tb.return(null);case 3:return tb.return(dU)}})}
function W(qA){var Jn,rI,dU;return _.a(function(UD){switch(UD.nextAddress){case 1:if(Jn=_.GF().resolve(_.pl(vj0)))return UD.return(Jn);rI=Date.now();E();return _.J("yt_searchbox_xhr")?UD.yield(Z(qA),5):UD.yield(M(qA),4);case 4:dU=UD.yieldResult;UD.jumpTo(3);break;case 5:dU=UD.yieldResult;case 3:if(dU){hC&&(clearTimeout(hC),hC=null);var tb=pU,Oq=rI,KM=qA.query.length===0;Oq=Date.now()-Oq;KM?tb.zeroPrefixRoundTripTime=Oq:(tb.JSC$20659_totalRoundTripTime+=Oq,tb.maxRoundTripTime=Math.max(tb.maxRoundTripTime,
Oq),KM=Math.floor(Oq/100),KM>=zZG.length?++tb.roundTripTimeHistogram[9]:++tb.roundTripTimeHistogram[zZG[KM]])}return UD.return(dU)}})}
function z(qA){var Jn,rI,dU;return _.a(function(UD){if(UD.nextAddress==1)return(Jn=xU.cache.get(swZ(qA)))?UD.return(Jn):UD.yield(W(qA),2);rI=UD.yieldResult;if(rI===null)return UD.return(null);dU=new Ejc(rI);qA.query.length===0&&dU.suggestions.length===0||xU.cache.set(swZ(qA),dU);return UD.return(dU)})}
function c(qA){var Jn,rI;return _.a(function(dU){if(dU.nextAddress==1){Qk=!1;var UD=TN;UD=_.VaO()==="search"?(_.FR(location.href,"search_query")||_.FR(location.href,"q"))===UD:!1;Jn=new YiG(qA,UD?TN:null);return dU.yield(z(Jn),2)}rI=dU.yieldResult;if(rI===null)return dU.return();Jn.query.length===0&&(pU.zeroPrefixSuggestionCount=rI.suggestions.length);if(Jn.id<=cM)return pU.outOfSyncResponseCount++,dU.return();if(document.activeElement!==jF.value)return dU.return();cM=Jn.id;var tb=pU,Oq=rI.rawResponse[2]||
{};tb.experimentTriggeredBeforeFinal||(tb.experimentTriggeredBeforeFinal=tb.experimentTriggeredFinal);tb.experimentTriggeredFinal=!!Oq.e;pU.updateSuggestions(rI.suggestions);r(-1);zf([]);rI.suggestions!==C()&&Ro(rI.suggestions.length);q(rI.suggestions);iO(rI.suggestions.length>0&&rI.suggestions[0].type===33);ll&&(ll.hidden=rI.suggestions.length===0,E4()?(ll.style.minWidth="",tb=ll.style,Oq=(UD=C()[0])==null?void 0:UD.ignoredPrefix,tb.marginLeft=(Oq?Math.min(Oq.length*6,PM.value.offsetWidth):0).toString()+
"px"):(ll.style.minWidth=PM.value.offsetWidth+"px",ll.style.marginLeft="0"),HA());_.SK(dU)})}
function I(){if(!Im)return!1;var qA=_.nF("REFINEMENTS_TUPLE");return qA?(qA=qA[1].map(function(Jn,rI){return new uGp([Jn,0,[71]],jF.value.value,rI)}),C()!==qA&&Ro(qA.length),zf([]),q(qA),pU.updateSuggestions(qA),Im=!1,ll.hidden=qA.length===0,Qk=qA.length>0,!0):!1}
function B(){var qA=jF.value.value;(typeof qA==="string"||qA instanceof String)&&qA!==""?k(!0):k(!1)}
function U(){if(_.VaO()==="search"){var qA=window.location.href;try{var Jn=_.FR(qA,"search_query")||_.FR(qA,"q")||""}catch(rI){Jn=""}Jn&&(jF.value.value=Jn,k(!0))}}
var L=_.G(_.Bm([],void 0,"OC8EPc")),d=L.next().value;L=L.next().value;var C=d,q=L;d=_.G(_.Bm(-1,void 0,"t2tVQb"));var w=d.next().value,r=d.next().value;d=_.G(_.Bm(-1,void 0,"v0RZCe"));var v=d.next().value,H=d.next().value;d=_.G(_.Bm(!1,void 0,"rjAnI"));var u=d.next().value,k=d.next().value;d=_.G(_.Bm(!1,void 0,"SyGLvb"));var y=d.next().value,A=d.next().value;L=_.G(_.Bm(!1,void 0,"tL09Cb"));d=L.next().value;L=L.next().value;var E4=d,iO=L;L=_.G(_.Bm(!1,void 0,"FlH7mc"));d=L.next().value;var RW=L.next().value;
L=_.G(_.Bm(!1,void 0,"ea3fwe"));var NN=L.next().value,Cd=L.next().value;L=_.G(_.Bm(1,void 0,"vSK1xe"));var Ba=L.next().value,$$=L.next().value;L=_.G(_.Bm([],void 0,"ijlw4b"));var Ha=L.next().value,zf=L.next().value;L=_.G(_.Bm(!1,void 0,"HcRey"));var eF=L.next().value,Rm=L.next().value;L=_.J("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var bO=_.hf("yt-searchbox"),jF=_.hf("input"),PM=_.hf("div"),ll,xU=
new DtG,pU=MhG(),pd=_.GF().resolve(_.pl(_.gu)),gB=function(){var qA;return((qA=h.forceDarkMode)==null?void 0:qA.call(h))||!(pd==null||!pd())},CD=function(){return _.J("desktop_enable_scrollable_suggestions_panel")},E0="i"+eZU++,Im=!1,Qk=!1,TN="",hC=null,cM=-1,FC=function(){zf([]);
q([]);iO(!1);ll&&(ll.hidden=!0);hC&&(clearTimeout(hC),hC=null);r(-1)},jx=function(qA,Jn){qA.preventDefault();
Rm(!0);ll&&(ll.hidden=!1);var rI=w();qA=C();var dU=Ha();Jn=znU(Jn);rI+=Jn;for(rI>=qA.length?rI=-1:rI<-1&&(rI=qA.length-1);rI!==-1&&(dU.includes(rI)||rI>=qA.length||rI<0);)rI+=Jn,rI>=qA.length&&(rI=-1);r(rI);w()>=0&&(jF.value.value=C()[w()].text,H(0),B(),qA=w(),dU=v(),(dU=document.getElementById(QL[qA][dU]))&&CD()&&(qA===C().length-1?ll.scrollTop=ll.scrollHeight:dU.scrollIntoView({block:"nearest",inline:"start"})))},wB=_.J7(function(qA){if(!(qA.relatedTarget instanceof Element&&qA.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){A(!0);
var Jn;(Jn=h.focusCallback)==null||Jn.call(h,!0);I()||(Qk?ll.hidden=!1:(_.Ra(bO.value,"yt-autonav-pause-focus",{}),c(qA.target.value)))}}),fD=_.J7(function(qA){if(!(qA.relatedTarget instanceof Element&&qA.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){A(!1);
var Jn;(Jn=h.focusCallback)==null||Jn.call(h,!1);ll.scrollTop=0;ll.hidden=!0;_.Ra(bO.value,"yt-autonav-pause-blur",{})}}),U0=function(qA){qA=znU(qA);
var Jn;((Jn=QL[w()])==null?0:Jn[v()+qA])&&H(v()+qA)},QF=_.J7(function(qA){var Jn=qA.target;
switch(qA.keyCode){case 13:qA.preventDefault();var rI;if((rI=QL[w()])==null?0:rI[v()]){var dU;(dU=document.getElementById(QL[w()][v()]))==null||dU.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}qA=qA.shiftKey?4:3;rI=pU;dU=w();rI.selectedSuggestionIndex=dU;g(Jn.value,qA);break;case 27:ll&&(ll.hidden=!0);break;case 40:jx(qA,40);break;case 38:jx(qA,38);break;case 39:U0(39);break;case 37:U0(37);break;case 229:pU.inputMethodsTracker.add(4);break;default:pU.inputMethodsTracker.add(1),
WFi(pU)}return!1}),RG=_.J7(function(qA){c(qA.target.value);
B();CD()&&ll&&(ll.scrollTop=0);return!1}),Db=_.J7(function(){pU.inputMethodsTracker.add(2);
WFi(pU);return!1});
_.m1(function(){if(ll){pU.reset();if(window.ResizeObserver){var qA=new ResizeObserver(function(){E4()||(ll.style.minWidth=PM.value.offsetWidth+"px")});
qA.observe(PM.value);(new ResizeObserver(function(){HA()})).observe(ll);
_.r9(function(){qA.disconnect()})}U();
window.addEventListener("yt-navigate-finish",U);window.addEventListener("yt-focus-searchbox",function(){jF.value.focus()});
var Jn;RW((Jn=_.nF("SBOX_SETTINGS"))==null?void 0:Jn.HAS_ON_SCREEN_KEYBOARD)}else _.$W(new _.xX("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var mO=_.J7(function(qA){qA.preventDefault();g(jF.value.value,12);return!1}),XC=_.J7(function(qA){qA.preventDefault();
var Jn,rI;(Jn=jF)==null||(rI=Jn.value)==null||rI.focus();var dU,UD;((dU=jF)==null?void 0:(UD=dU.value)==null?void 0:UD.value)!==""&&(jF.value.value="",jF.value.dispatchEvent(new Event("input")));return!1}),$U=_.J7(function(){var qA=h9U(jF.value.value,C().filter(function(Jn){return Jn.type!==35}).map(function(Jn){return{label:Jn.text}}));
_.BX(bO.value,"yt-open-popup-action",[{openPopupAction:qA},document.body]);return!1}),kU=_.J7(function(){jF.value.focus();
return!1}),zN=function(qA,Jn,rI,dU,UD){pU.selectedSuggestionIndex=rI;
g(Jn,UD?3:1,dU)},IC=function(qA){jF.value.value=qA;
jF.value.dispatchEvent(new Event("input"));pU.inputMethodsTracker.add(5);WFi(pU,!0)},QL=[[]],Fi=function(qA){var Jn="searchbox-suggestion"+_.y$(_.Mt);
QL[qA].push(Jn);return Jn},Ro=function(qA){if(C()){QL=[[]];
for(var Jn=0;Jn<qA;Jn++)QL.push([])}},HA=function(){if(CD()){var qA=ll,Jn=qA.scrollTop;
qA=qA.scrollHeight-qA.clientHeight;Cd(Jn>=qA);Jn=Math.abs(qA-Jn);Jn<=40?$$(1-(40-Jn)/40):$$(1)}},xL=function(){return"opacity: "+Ba()*100+"%"},tM=_.J7(function(){HA();
return!1}),Kd=_.J7(function(){Rm(!1);
return!1}),k$,LD={},Pc={},D0={},ex={};
return _.R("yt-searchbox",{class:_.CO("ytSearchboxComponentHost",(LD.ytSearchboxComponentMweb=!1,LD.ytSearchboxComponentDesktop=!0,LD["yt-searchbox-filled-query"]=function(){return u()},LD["ytd-masthead"]=function(){return!y()},LD.ytSearchboxComponentHostDark=gB,LD)),
role:"search",el:bO,"client-ve-type":10349},_.R("div",{el:PM,"on:click":kU,class:_.CO("ytSearchboxComponentInputBox",(Pc.ytSearchboxComponentInputBoxDark=gB,Pc.ytSearchboxComponentInputBoxHasFocus=y,Pc))},_.R("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":mO},_.R(_.P,{cond:y,then:function(){return _.R("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.R(_.Ni,{icon:"SEARCH"}))}}),_.R("input",{el:jF,
class:_.CO("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":E0,"aria-expanded":!((k$=ll)==null?0:k$.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":fD,"on:focus":wB,"on:input":RG,"on:keydown":QF,"on:paste":Db,placeholder:h.placeholderText,"aria-activedescendant":function(){var qA;return(qA=QL[w()])==null?void 0:qA[v()]},
"aria-autocomplete":"list",role:"combobox"})),_.R(_.P,{cond:d,then:function(){return _.R("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.R(wEC,null))}}),_.R(_.P,{cond:u,
then:function(){return _.R("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.R("button",{class:"ytSearchboxComponentClearButton","on:click":XC,"aria-label":h.clearButtonAriaLabel||mtJ},_.R(_.Ni,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.R(_.rK,{model:{}})))}})),_.R("button",{class:_.CO("ytSearchboxComponentSearchButton",(D0.ytSearchboxComponentSearchButtonDark=gB,D0)),
"on:click":mO,"aria-label":rPX,title:h.placeholderText},_.R(_.Ni,{icon:"SEARCH"})),_.R(_.P,{cond:function(){if(vPG()&&_.J("mweb_voice_search")&&h.voiceSearchButton)return h.voiceSearchButton()},
then:function(qA){var Jn={};return _.R("div",{class:_.CO("ytSearchboxComponentVoiceSearchWrapper",(Jn.ytSearchboxComponentHideVoiceSearchButton=function(){return u()},Jn))},_.R(_.Sv,{data:qA},{buttonRenderer:function(rI){return _.R(_.dS,{data:rI.data,
onButtonClickCallback:function(){}})}}))}}),_.R("div",{el:_.zT(function(qA){return void(ll=qA)}),
id:E0,class:_.CO("ytSearchboxComponentSuggestionsContainer",(ex.ytSearchboxComponentSuggestionsContainerDark=gB,ex["yt-searchbox-suggestions-container"]=!1,ex.ytSearchboxComponentSuggestionsContainerScrollable=CD(),ex.ytSearchboxComponentSuggestionsContainerAnimated=L,ex)),"on:scroll":tM,"on:mousemove":Kd,role:"listbox",hidden:!0},_.R(_.SX,{each:C},function(qA,Jn){return _.R(S5U,{suggestion:qA,isHighlighted:function(){return Jn()===w()},
onClickCallback:zN,onHoverUpdateCallback:function(rI){if(_.J("desktop_enable_single_suggestion_highlight")){var dU=Jn();rI&&(H(0),r(dU))}},
onRemoveCallback:function(rI){lOC(xU);rI===void 0||rI<0||Ha().includes(rI)||zf([].concat(_.$E(Ha()),[rI]))},
labels:h.labels,queryBuilderFunction:IC,suggestionIndex:Jn,generateUniqueId:Fi,highlightedId:function(){var rI;return(rI=QL[w()])==null?void 0:rI[v()]},
useScrollMargin:CD(),isKeyboardMode:eF})}),_.R(_.P,{cond:function(){return!E4()&&C().find(function(qA){return qA.type!==35})&&_.J("searchbox_reporting")},
then:function(){return _.R("button",{class:"ytSearchboxComponentReportButton","on:mousedown":$U},_.NH("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.R(_.P,{cond:function(){return!NN()&&CD()},
then:function(){return _.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.R("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:xL}))}})))},"Ch"),"yt-searchbox",{props:{searchEndpoint:_.C6,
placeholderText:_.C6,labels:_.C6,voiceSearchButton:_.C6,focusCallback:_.c$,clearButtonAriaLabel:_.C6,forceDarkMode:_.C6}});var OS=function(){var h=_.D.apply(this,arguments)||this;h.menuButtonTargetId="topbar-guide-menu";h.narrow=!1;h.menuStrings={BACK_ALT_LABEL:_.NH("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.NH("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.NH("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.NH("SBOX_PLACEHOLDER",void 0,"Search")};h.pageDarkTheme=document.documentElement.hasAttribute("dark");h.watchPageScrollTop=0;h.theater=!1;h.fullscreen=!1;h.disableFrostedGlassDuringViewTransition=
!1;h.desktopUnifiedSearchPanelMode=_.J("desktop_enable_unified_search_panel");h.cinematicTheaterMode=_.J("web_cinematic_theater_mode");h.aiCompanionEnabled=_.J("enable_ai_companion");h.ytSearchboxFocused=!1;h.searchboxLabels=_.nF("SBOX_LABELS");h.topbarIsAboveChipbar=!1;h.isDarkThemeForced=!1;h.areGhostCardsHidden=!1;h.guideKeyboardToggle=!1;h.voiceSearchManager=yYR();h.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};h.setYtSearchboxFocused=
function(E){h.ytSearchboxFocused=E};
h.toggleFrostedGlassDuringViewTransition=function(E){h.disableFrostedGlassDuringViewTransition=E};
return h};
_.f(OS,_.D);_.p=OS.prototype;_.p.computeSimpleText=function(h){return _.Wp(h)};
_.p.onDarkChanged=function(){for(var h=_.G(this.buttons||[]),E=h.next();!E.done;E=h.next())E.value.isOverlay=!!this.dark;h=_.G(this.buttonRenderers||[]);for(E=h.next();!E.done;E=h.next())E.value.overrides=this.computeButtonOverride()};
_.p.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.p.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var h=_.PZ(_.RS(),"aa");_.jg(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||h||(this.isDarkThemeForced=this.dark=!0);this.logoType?(h=this.hostElement.querySelector("#masthead-logo"))&&(_.J("polymer_on_demand_shady_dom")?h.setAttribute("slot","masthead-logo-old"):_.f8(h)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.qm(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.qm(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.p.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.qm(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.qm(this,this.onSetTheaterModeEnabled))};
_.p.dataChanged=function(){var h=this.data;h&&(this.voiceEnabled=h.voiceSearchButton?yYR().isSupported():!1,_.j4M(_.bc(),this.menuButtonTargetId,this.guideButton),h.onReceivedActions&&h.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.jj(this.hostElement,h.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&h&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.jg(this.hostElement,"dark",!1),_.jg(this.hostElement,"theater",!1),
(h=this.hostElement.querySelector("#masthead-logo"))&&(_.J("polymer_on_demand_shady_dom")?h.setAttribute("slot","masthead-logo-old"):_.f8(h))))};
_.p.computeCenterHidden=function(){var h;return this.data&&!((h=this.data.searchbox)==null?0:h.fusionSearchboxRenderer)};
_.p.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.jg(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.p.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.p.onWatchScroll=function(h){this.watchPageScrollTop=h.detail||0;this.updateMastheadBackgroundOpacity()};
_.p.onFullscreenChangeAction=function(h){h||(this.watchPageScrollTop=0);this.fullscreen=h;this.updateMastheadBackgroundOpacity()};
_.p.onSetTheaterModeEnabled=function(h){this.theater=h.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.p.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.p.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.p.setBackgroundOpacity=function(h){h=this.calculateBackgroundOpacity(h);this.background.style.opacity=""+h};
_.p.calculateBackgroundOpacity=function(h){var E=this.theater&&this.cinematicTheaterMode?.6:0,g=this.hostElement.clientHeight/2;return Math.min(Math.max(h,0),g)/g*(1-E)+E};
_.p.shouldShowCinematicMastHead=function(){var h=_.J("kevlar_watch_grid")&&!_.J("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(h||this.pageDarkTheme)};
_.p.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.p.focusGuide=function(){this.guideButton.focus()};
_.p.onGuideToggleTap=function(){_.Ra(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.p.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.p.onGuideToggleHover=function(){_.Ra(this.hostElement,"yt-guide-hover")};
_.p.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.p.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.p.closeOnOutsideClickCondition=function(h){for(h=_.Gw(h);h[0];){var E=h.shift();if(E instanceof Element&&E.id==="kbd")return!1}return!0};
_.p.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.p.pausePlayer=function(){var h;(h=_.zD())==null||h.pause();this.pauseMiniplayer()};
_.p.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var h;(h=_.GF().resolve(_.Yu).getPlayerElement())==null||h.pause()}};
_.p.isMiniplayerActive=function(){return _.GF().resolve(_.Yu).isMiniplayerActive()};
_.p.updateNarrowFromBinding=function(h){this.narrow=h.detail.value};
_.p.onYtSendFeedbackAction=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.registerWithViewTransitionManager=function(){lWU(_.GF().resolve(_.Vr),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ze.Object.defineProperties(OS.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.J("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 h;return(h=this.data)==null?void 0:h.voiceSearchButton}}}});
OS.prototype.narrowChanged=OS.prototype.narrowChanged;OS.prototype.onWatchPageChange=OS.prototype.onWatchPageChange;OS.prototype.onRendererStamperFinished=OS.prototype.onRendererStamperFinished;OS.prototype.dataChanged=OS.prototype.dataChanged;OS.prototype.onDarkChanged=OS.prototype.onDarkChanged;_.Y([_.t(_.F3),_.V("design:type",Object)],OS.prototype,"ironResizableBehavior",void 0);_.Y([_.t(_.v3C),_.V("design:type",Object)],OS.prototype,"ytdExpandableInputBehavior",void 0);
_.Y([_.t(_.P_.YtdGuideStateAwareBehavior),_.V("design:type",Object)],OS.prototype,"ytdGuideStateAwareBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.aF),_.V("design:type",Object)],OS.prototype,"ytdReduxBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"narrow",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"logoType",void 0);_.Y([_.x(),_.V("design:type",Boolean)],OS.prototype,"voiceEnabled",void 0);
_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"menuStrings",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],OS.prototype,"dark",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OS.prototype,"pageDarkTheme",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"watchPageScrollTop",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.Mnz}),_.V("design:type",Boolean)],OS.prototype,"isWatchPage",void 0);
_.Y([_.x({reflectToAttribute:!0,selector:_.Wua}),_.V("design:type",Boolean)],OS.prototype,"isShortsPage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OS.prototype,"theater",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OS.prototype,"fullscreen",void 0);_.Y([_.x({reflectToAttribute:!0,selector:_.aIa}),_.V("design:type",String)],OS.prototype,"frostedGlassMode",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],OS.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"aiCompanionEnabled",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"ytSearchboxFocused",void 0);_.Y([_.xA("#buttons > *"),_.V("design:type",Array)],OS.prototype,"buttons",void 0);_.Y([_.xA("ytd-button-renderer"),_.V("design:type",Array)],OS.prototype,"buttonRenderers",void 0);
_.Y([_.Sg("#background"),_.V("design:type",HTMLDivElement)],OS.prototype,"background",void 0);_.Y([_.Sg("#guide-button"),_.V("design:type",Object)],OS.prototype,"guideButton",void 0);_.Y([_.Sg("#logo"),_.V("design:type",Object)],OS.prototype,"logo",void 0);_.Y([_.x({computed:"computeButtonOverride(dark)"}),_.V("design:type",Object)],OS.prototype,"buttonOverrides",void 0);
_.Y([_.lq("dark"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OS.prototype,"onDarkChanged",null);_.Y([_.x({value:function(){return this.onVoiceTap.bind(this)}}),
_.V("design:type",Function)],OS.prototype,"boundOnTapVoiceButton",void 0);_.Y([_.x(),_.V("design:type",Object)],OS.prototype,"topbarIsAboveChipbar",void 0);_.Y([_.x(),_.V("design:type",String),_.V("design:paramtypes",[])],OS.prototype,"guideIcon",null);_.Y([_.S("voiceEnabled"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],OS.prototype,"shouldShowVoiceSearchButton",null);_.Y([_.S("data"),_.V("design:type",Object),_.V("design:paramtypes",[])],OS.prototype,"voiceSearchButton",null);
_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OS.prototype,"dataChanged",null);_.Y([_.f3("yt-rendererstamper-finished"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OS.prototype,"onRendererStamperFinished",null);_.Y([_.lq("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OS.prototype,"onWatchPageChange",null);
_.Y([_.lq("narrow"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],OS.prototype,"narrowChanged",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-masthead"})],OS);
_.X(OS,"ytd-masthead",function(){if(jhC!==void 0)return jhC;var h=document.createElement("template");_.N(h,'\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 id="ai-companion-button" hidden="[[!data.aiCompanionButton]]" 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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return jhC=h},{mode:_.UQ("kevlar_poly_si_batch_j036")?1:2});var HNc;var $tC={},KFI={},ONx={},njR={},XEp=(njR.OFFLINE=($tC["publicytnetworkstatus-online"]="BACK_ONLINE",$tC),njR.ONLINE=(KFI["publicytnetworkstatus-offline"]="OFFLINE",KFI),njR.BACK_ONLINE=(ONx["publicytnetworkstatus-offline"]="OFFLINE",ONx.TIMER_TRIGGER="ONLINE",ONx),njR),nB=function(){var h=_.D.apply(this,arguments)||this;h.currentState="ONLINE";h.scheduledJobId=0;h.bannerString="";h.bannerVe=null;h.networkStatusManagerInstance=new _.bK;return h};
_.f(nB,_.D);_.p=nB.prototype;_.p.attached=function(){var h=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){h.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){h.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.detached=function(){var h=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){h.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){h.stateChangeHandler("publicytnetworkstatus-offline")})};
_.p.enterState=function(h){var E=this;this.scheduledJobId&&_.KP.cancelJob(this.scheduledJobId);h==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):h==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.NH("NO_INTERNET_CONNECTION",void 0,"No internet connection")):h==="BACK_ONLINE"&&(this.bannerString=_.NH("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.xW(_.KP,function(){E.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=h};
_.p.stateChangeHandler=function(h){(h=XEp[this.currentState][h])&&this.enterState(h)};
_.p.logVisibility=function(h){var E=_.sH();this.createBannerVe(h);E&&this.bannerVe&&(h?_.Eo(E,[this.bannerVe]):_.gZ(E,[this.bannerVe]))};
_.p.createBannerVe=function(h){!this.bannerVe&&h&&(this.bannerVe=_.Uz(37929),_.Ht(_.SQ(),this.bannerVe))};
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",String)],nB.prototype,"currentState",void 0);_.Y([_.x(),_.V("design:type",Object)],nB.prototype,"scheduledJobId",void 0);_.Y([_.x(),_.V("design:type",Object)],nB.prototype,"bannerString",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-network-status-banner"})],nB);
_.X(nB,"ytd-network-status-banner",function(){if(HNc!==void 0)return HNc;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return HNc=
h},{mode:1});var Y5c;var X7=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};h.hidden=!0;h.frostedGlass=_.J("web_frosted_glass");return h};
_.f(X7,_.D);X7.prototype.computeHidden=function(h){return h&&h.status?!1:!0};
X7.prototype.handleUpdatePermissionRoleCommand=function(h){if(h=_.e(h,_.gTm))if(h=_.e(h.renderer,_.ETk))this.data=h};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],X7.prototype,"componentBehavior",void 0);_.Y([_.x({value:!0,computed:"computeHidden(data)"}),_.V("design:type",Object)],X7.prototype,"hidden",void 0);_.Y([_.x(),_.V("design:type",Object)],X7.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],X7.prototype,"frostedGlass",void 0);
_.Y([_.K({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],X7);
_.X(X7,"ytd-permission-role-bottom-bar-renderer",function(){if(Y5c!==void 0)return Y5c;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Y5c=h},{mode:1});var shc;var Vhx;var adR={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Yv=function(){return _.D.apply(this,arguments)||this};
_.f(Yv,_.D);_.p=Yv.prototype;_.p.attached=function(){this.JSC$20774_scroller&&(this.JSC$20774_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20774_scroller.attached&&typeof this.JSC$20774_scroller.attached==="function"&&this.JSC$20774_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(g){g.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var h=_.UB(this.hostElement);h.querySelector("tp-yt-paper-radio-group").selected="";var E=h.querySelector("#reason-text");E&&(E.value="");h.querySelector("#description-text").value=""}};
_.p.canSubmit=function(h,E){_.Ra(this.hostElement,"yt-invalidate-popup-tabbables");return!(h&&E)};
_.p.onCancel=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.p.onSubmit=function(){var h=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(W){return W.active}).map(function(W){return W.innerText.trim()}),E=this.hostElement.querySelector("tp-yt-paper-radio-group"),g=E.selectedItem,Z=g.name;
g=g.innerText.trim();var M=E.querySelector("#reason-text");E=void 0;M&&(E=M.value);(M=this.descriptionText.value)&&(M=M.trim());cUp(this.data.searchQuery,h,Z,g,M,E);_.BX(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.p.sendFormSubmitToast=function(){var h=_.cp(_.NH("SBOX_INAPPROPRIATE_TOAST"));_.BX(this.hostElement,"yt-open-popup-action",[h,this])};
_.p.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(h){return h.active})};
_.p.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Yv.prototype.onIronSelect=Yv.prototype.onIronSelect;Yv.prototype.onIronChange=Yv.prototype.onIronChange;Yv.prototype.dataChanged=Yv.prototype.dataChanged;_.Y([_.x(),_.V("design:type",Object)],Yv.prototype,"data",void 0);_.Y([_.x({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.V("design:type",Boolean)],Yv.prototype,"submitDisabled",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Yv.prototype,"suggestionSelected",void 0);
_.Y([_.x(),_.V("design:type",Boolean)],Yv.prototype,"catagorySelected",void 0);_.Y([_.Sg("#scroller"),_.V("design:type",Object)],Yv.prototype,"JSC$20774_scroller",void 0);_.Y([_.Sg("#description-text"),_.V("design:type",Object)],Yv.prototype,"descriptionText",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yv.prototype,"dataChanged",null);
_.Y([_.f3("iron-change"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yv.prototype,"onIronChange",null);_.Y([_.f3("iron-select"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Yv.prototype,"onIronSelect",null);_.Y([_.K({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Yv);
_.X(Yv,"ytd-search-suggestion-report-dialog",function(){if(Vhx!==void 0)return Vhx;var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);return Vhx=h},{mode:1});var sS=function(h){var E=h.openPopupAction;var g=h.target;var Z=h.container;var M=h.popupContainerConfig;var W=h.getElement;h=h.removeWhenClosed===void 0?!1:h.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=E;this.target=g;this.container=Z;this.popupContainerConfig=M;this.getElement=W;this.JSC$20780_popupConfig=this.popupContainerConfig.JSC$19915_popupConfig[this.openPopupAction.popupType];this.rendererName=(E=this.getName())?_.YzN(E,qVc(this.popupContainerConfig,
E)):"";_.J("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=h);this.createPopup()};
sS.prototype.updatePopup=function(h){this.openPopupAction=h;this.JSC$20780_popupConfig=this.popupContainerConfig.JSC$19915_popupConfig[this.openPopupAction.popupType];koI(this);_.J("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
sS.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var APU=function(h,E,g){(E=E&&h.JSC$20780_popupConfig.narrowProperties?h.JSC$20780_popupConfig.narrowProperties:h.JSC$20780_popupConfig.properties)&&g!==void 0&&(E.isAriaModal=g);yPG(h,E);h.isRtl()&&yPG(h,h.JSC$20780_popupConfig.rtlProperties);FFZ(h)};
sS.prototype.createPopup=function(){var h=this.JSC$20780_popupConfig.component;if(this.popupContent=ToC(this,this.rendererName)){if(h){this.popup=ToC(this,h);var E=this.popupContent;_.J("web_enable_wrapper_for_cow_component_in_popup")&&(E=document.createElement("div"),E.appendChild(this.popupContent));_.J("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20780_popupConfig.slotName&&E.setAttribute("slot",this.JSC$20780_popupConfig.slotName);h=this.popup;var g=this.container.tagName.toLowerCase(),
Z=_.aN(E);_.mq$(_.iq(h),_.RN(E,g,Z));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.J("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.UB(this.container).appendChild(this.popup)}};
var koI=function(h){var E,g,Z=(E=h.openPopupAction.accessibilityData)==null?void 0:(g=E.accessibilityData)==null?void 0:g.label;Z&&(h.popup.ariaLabel=Z);var M;((M=h.popupContent.polymerController)!=null?M:h.popupContent).data=(0,_.Kt.unsafeClone)(h.openPopupAction.popup[h.getName()]);h.popupContent.duration=bNx(h);h.popupContent.positionType=h.openPopupAction.position;var W=h.openPopupAction.properties;W&&Object.keys(W).forEach(function(z){h.popupContent[z]=W[z]})},yPG=function(h,E){if(E)for(var g=
_.G(Object.keys(E)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.popup[Z]=E[Z]},FFZ=function(h){if(h.openPopupAction.position){var E=h.JSC$20780_popupConfig.positionalProperties&&h.JSC$20780_popupConfig.positionalProperties[h.openPopupAction.position],g=h.JSC$20780_popupConfig.rtlPositionalProperties&&h.JSC$20780_popupConfig.rtlPositionalProperties[h.openPopupAction.position];
E=h.isRtl()&&g?g:E;E.shiftedHorizontalOffset&&(g=h.popup.style.display,h.popup.style.display="block",h.popupContent&&h.popup.positionTarget&&h.popupContent.clientWidth>h.popup.positionTarget.clientWidth&&(E.horizontalOffset=h.popup.positionTarget.clientWidth/2-E.shiftedHorizontalOffset),h.popup.style.display=g);yPG(h,E)}},uvC=function(h,E){if(E)for(var g=_.G(Object.keys(E)),Z=g.next();!Z.done;Z=g.next())Z=Z.value,h.popup.style[Z]=E[Z]};
sS.prototype.getName=function(){return _.$3(this.openPopupAction.popup,"renderer")||_.$3(this.openPopupAction.popup,"dialog")||_.$3(this.openPopupAction.popup,"model")||void 0};
var bNx=function(h){h=h.openPopupAction.durationHintMs;return h===0?h:Math.max(4E3,h||4E3)};
sS.prototype.isRtl=function(){return _.nF("HTML_DIR")==="rtl"};
var ToC=function(h,E){h=h.getElement(E,h.target);h==null&&_.O$(new _.xX("popup getElement returned null",E));return h};var Qh0={};
Qh0.YtPopupContainerBehavior=[_.IU.YtComponentBehavior,_.Yl.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_);_.oa(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Ia(this.hostElement)},
closePopup:function(h){var E=this.createCacheKey(void 0,h);this.popups_[E]&&this.handleClosePopupAction_(void 0,h)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.KP.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.KP.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(h){h.opened&&h.keepBelowPlayer&&this.ensurePopupBelowPlayer(h)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var h in this.popups_){var E=this.popups_[h];if(E.popup.scrollAction==="refit"){var g=E.popup.positionTarget.getBoundingClientRect(),Z=E.popup;g=g.top;var M=E;if(!M.naturalHeight){M.popup.hidden=!1;M.popup.style.position="fixed";M.popup.style.top="0px";M.popup.style.left="0px";var W=M.popup.getBoundingClientRect();M.naturalHeight=W.bottom-W.top;M.popup.refit()}Z.hidden=!(g>=M.naturalHeight+60);E.popupContent.clientHeight===0&&E.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(h){this.popupContainerConfig=h},
handleOpenPopupAction:function(h,E){var g=h.openPopupAction,Z=_.GF().resolve(_.pl(_.b8))&&g.popupType==="TOAST";Z&&!g.uniqueId&&(g.uniqueId=_.BD());if(!_.J("popup_container_parent_target_killswitch")){var M;E=(M=this.getParentTarget(E))!=null?M:E}var W=this.ensurePopup_(g,E);return new _.jM(function(z){W.then(function(c){if(!c)return z();this.maybeCreateNarrowMediaQuery_();var I=this.createCacheKey(c.rendererName,c.openPopupAction.uniqueId);if(g.showOncePerUniqueId){if(this.shownPopupKeys_.has(I))return z();
this.shownPopupKeys_.add(I)}I=this.popups_[I];var B=!(!I||!I.openPopupAction.beReused);B=!!g.reusePopup||B;if(c.popup.opened&&!B){Z&&!c.openPopupAction.replacePopup||this.handleClosePopupAction_(c.rendererName,c.openPopupAction.uniqueId);B=g.popupType==="DIALOG"&&!_.J("popup_container_dialog_reopen_killswitch");if(!Z&&!B&&I&&I.target==E&&!c.openPopupAction.replacePopup)return z();_.pQ(c.popup,function(){this.completeOpenPopupAction_(g,E,c);z()}.bind(this))}else c.popup.opened?c.updatePopup(g):this.completeOpenPopupAction_(g,
E,c),z()}.bind(this))}.bind(this))},
getParentTarget:function(h){if(h&&h instanceof HTMLElement)for(var E=_.G(Object.entries(this.popups_)),g=E.next();!g.done;g=E.next())if(g=_.G(g.value),g.next(),g=g.next().value,this.popupClosesOnClick(g)&&g.popup.contains(h))return g.target},
popupClosesOnClick:function(h){return h.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(h.rendererName.toUpperCase())},
completeOpenPopupAction_:function(h,E,g){g.updatePopup(h);h=this.narrowMediaQuery_.queryMatches;var Z=this.isAriaModal;g.target=E;var M;E=((M=g.target.polymerController)!=null?M:g.target).popupPositionTarget||g.target;g.JSC$20780_popupConfig.targetContainer&&(E=g.container);g.popup.positionTarget=E;g.popupContent.positionTarget=E;FFZ(g);g.JSC$20780_popupConfig.forceFocus&&(g.popupContent.style.outline="none");g.popupContent.tabIndex=-1;g.JSC$20780_popupConfig.narrowProperties&&(g.popup.style.position=
"static");g.JSC$20780_popupConfig.preventAutonav&&g.popup.setAttribute("prevent-autonav",!0);g.JSC$20780_popupConfig.forceCloseOnOutsideClick&&g.popup.setAttribute("force-close-on-outside-click",!0);APU(g,h,Z);uvC(g,g.JSC$20780_popupConfig.styles);g.isRtl()&&uvC(g,g.JSC$20780_popupConfig.rtlStyles);if(!g.openPopupAction.shouldStopParentSignal){var W;M=(W=g.target.polymerController)!=null?W:g.target;(g.popupContent.startForwardingEvents||g.popupContainerConfig.forwardingEnabledPopups.has(g.rendererName))&&
M.parentComponent!==g.popupContent&&g.popupContent!==g.target&&g.target!==document.body&&(g.popupContent.startForwardingEvents?g.popupContent.startForwardingEvents(g.popupContainerConfig.forwardedEvents,g.target):(g.JSC$20780_eventForwarder||(g.JSC$20780_eventForwarder=new _.ae(g.popupContent)),g.JSC$20780_eventForwarder.start(g.popupContainerConfig.forwardedEvents,g.target)))}g=g.popup;g.addEventListener("iron-overlay-opened",_.qm(this,this.onPopupIronOverlayOpened_));g.addEventListener("iron-overlay-closed",
_.qm(this,this.onPopupIronOverlayClosed_));g.addEventListener("iron-overlay-canceled",_.qm(this,this.onPopupIronOverlayCanceled_));g.addEventListener("yt-refit",_.qm(this,this.refitPopup_));g.addEventListener("yt-invalidate-popup-tabbables",_.qm(this,this.handleInvalidatePopupTabbables_));g.open()},
getPopupDurationMs_:function(h){return h.durationHintMs===0?h.durationHintMs:Math.max(4E3,h.durationHintMs||4E3)},
handleClosePopupAction_:function(h,E){var g=_.J("web_popup_cache_key_killswitch")||!!E;if(h||g){var Z=this.createCacheKey(h,E);h=(h=this.popups_[Z])&&h.popup}else h=_.Pzf(_.Gg);if(h&&h.close){if(E=_.GF().resolve(_.pl(_.DX)))h.restoreFocusOnClose=E.isKeyBoardInUse();h.close();this.removePopup_(h,Z)}},
handleClosePopupCommand_:function(h){h.closePopupCommand&&h.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,h.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(h){var E={},g;for(g in this.popups_)if(E={key$jscomp$1210:E.key$jscomp$1210},E.key$jscomp$1210=g,!h||!h.some(function(W){return function(z){return z==W.key$jscomp$1210}}(E))){var Z=this.popups_[E.key$jscomp$1210],M=Z.popup;
_.GF().resolve(_.pl(_.b8))&&Z.openPopupAction.popupType==="TOAST"||(M&&M.close&&M.close(),this.removePopup_(M,E.key$jscomp$1210))}},
handleClosePopupsAction_:function(h){h.forEach(function(E){var g=this.popups_[E];g&&((g=g.popup)&&g.close&&g.close(),this.removePopup_(g,E))}.bind(this))},
handleGetPopupOpenedAction_:function(h,E){return(E=this.createCacheKey(h,E))&&this.popups_[E]?this.popups_[h].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var h=[],E;for(E in this.popups_){var g=this.popups_[E];g.popup.opened&&h.push(g)}return h},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(h,E){_.J("ytpopup_disable_default_html_caching")&&h&&h.removeWhenClosed&&(_.UB(this.hostElement).removeChild(h),E&&this.popups_[E]&&delete this.popups_[E])},
shouldReusePopup_:function(h){return!(!h||!h.reusePopup)||!(!h||!h.beReused)},
ensurePopup_:function(h,E){this.maybeCreateNarrowMediaQuery_();var g=_.$3(h.popup,"renderer")||_.$3(h.popup,"dialog")||_.$3(h.popup,"model");if(!g)return _.dC();g=_.YzN(g,qVc(this.popupContainerConfig,g));return _.dC(this.getAndMaybeCreatePopup_(h,g,E))},
getAndMaybeCreatePopup_:function(h,E,g){var Z=this.createCacheKey(E,h.uniqueId);if(this.popups_[Z])return this.popups_[Z];h=new sS({openPopupAction:h,target:g,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(E)});return this.popups_[Z]=h},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(h){return _.J("ytpopup_disable_default_html_caching")?h&&h.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",_.qm(this,this.openPopupQueryMatchesChanged_)),_.UB(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(h){h=h.detail.value;for(var E in this.popups_)APU(this.popups_[E],h)},
onPopupIronOverlayClosed_:function(h){var E=h.currentTarget,g=_.E_q(E);g=g.length>0?g[0]:E;if(g.is!=="ytd-reel-watch-while-dialog-renderer"||h.target.is!=="tp-yt-iron-dropdown"){h.detail.popup=E;h.detail.popupRenderer=g;var Z,M={context:{openingElement:((Z=this.popups_[(g==null?void 0:g.is)||""])==null?void 0:Z.target)||void 0}};Object.assign(M,h.detail);var W;_.Ra((W=g.hostElement)!=null?W:g,"yt-popup-closed",M);E.removeEventListener("yt-refit",_.qm(this,this.refitPopup_));E.removeEventListener("yt-invalidate-popup-tabbables",
_.qm(this,this.handleInvalidatePopupTabbables_));E.removeEventListener("iron-overlay-canceled",_.qm(this,this.onPopupIronOverlayCanceled_));E.removeEventListener("iron-overlay-closed",_.qm(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(E)}},
onPopupIronOverlayCanceled_:function(h,E){var g=h.currentTarget,Z=_.E_q(g);Z=Z.length>0?Z[0]:g;if(Z.is!=="ytd-reel-watch-while-dialog-renderer"||h.target.is!=="tp-yt-iron-dropdown"){var M;_.Ra((M=Z.hostElement)!=null?M:Z,"yt-popup-canceled",h.detail);M=E?_.Gw(E):null;(!E||["click","tap"].includes(E.type))&&!g.hasAttribute("force-close-on-outside-click")&&g.positionTarget&&M&&M.includes(g.positionTarget)&&h.preventDefault();g.restoreFocusOnClose=_.Kf.keyboardEventMatchesKeys(E,"esc")}},
onPopupIronOverlayOpened_:function(h){h=h.currentTarget;var E=_.E_q(h);E=E.length>0?E[0]:h;var g,Z;_.Ra((g=E.hostElement)!=null?g:E,"yt-popup-opened",(Z=E.hostElement)!=null?Z:E);h.keepBelowPlayer&&(this.ensurePopupBelowPlayer(h,!0),this.dynamicallyPositionedElements_.add(h));g=_.GF().resolve(_.pl(_.DX));Z=!!E.querySelector("#toast");g&&g.isKeyBoardInUse()&&!Z&&(typeof E.focusFirstItem==="function"?E.focusFirstItem():(E=_.ouM(h),E.length&&E[0].focus()));h.removeEventListener("iron-overlay-opened",
_.qm(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(h){h=h.currentTarget;h.refit&&h.refit()},
refitPopups_:function(){for(var h in this.popups_)this.popups_[h].refit()},
handleInvalidatePopupTabbables_:function(h){h=h.currentTarget;h.invalidateTabbables&&h.invalidateTabbables()},
createCacheKey:function(h,E){return _.J("web_popup_cache_key_killswitch")?E?h+"#"+E:h:E?"#"+E:h},
openSheet:function(h,E){var g=h==null?void 0:h.openPopupActionCommand;!g&&(h==null?0:h.viewModel)&&(g={openPopupAction:{popup:{sheetViewModel:h.viewModel},popupType:"CONTEXTUAL_SHEET"}});g&&this.handleOpenPopupAction(g,E)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var h=this;return _.a(function(E){return E.return(h.handleGetOpenedPopupsAction_().filter(function(g){var Z;return((Z=g.openPopupAction)==null?void 0:Z.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(h,E,g){if(_.J("web_dialog_utils_killswitch")){var Z=h==null?void 0:h.openPopupActionCommand,M=(g==null?0:g.ariaLabel)?{accessibilityData:{accessibilityData:{label:g.ariaLabel}}}:void 0;!Z&&(h==null?0:h.viewModel)&&(Z={openPopupAction:Object.assign({},{popup:{dialogViewModel:h.viewModel},popupType:(g==null?0:g.isModal)?"MODAL":"DIALOG"},M&&M)});Z&&this.handleOpenPopupAction(Z,E)}else{if(M=h==null?void 0:h.viewModel){var W=g=g===void 0?{}:g;g=W.ariaLabel;M={popup:{dialogViewModel:M},
popupType:W.isModal?"MODAL":"DIALOG"};W={accessibilityData:{label:g}};g&&(M.accessibilityData=W);M={openPopupAction:M}}else M=void 0;if(M=(Z=M)!=null?Z:h==null?void 0:h.openPopupActionCommand)this.isAriaModal=_.J("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(M,E)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var h=this;return _.a(function(E){return E.return(h.handleGetOpenedPopupsAction_().filter(function(g){var Z;return((Z=g.openPopupAction)==null?void 0:Z.popupType)==="DIALOG"}).length>0)})}}];var h2i;var EyU;var gyR=_.uz(["about:blank"]),VN=function(){var h=_.D.apply(this,arguments)||this;h.isMuted=!1;h.pageLoadTimeoutId=void 0;return h};
_.f(VN,_.D);_.p=VN.prototype;_.p.dataChanged=function(){var h=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var E=this.data.url,g=_.OY(E);_.J("enable_yt_ata_iframe_authuser")?(g=_.OY(E),_.hh(this.iframe,i4x(g))):_.hh(this.iframe,g);this.pageLoadTimeoutId=_.xW(_.xu(),function(){return void h.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.iY({destination:window,iframe:this.iframe,origin:_.grm(g.toString()),channelName:"ataiframe",onMessage:_.paH(FaC,function(Z){A6G(Z.data)?(Z=_.Tp(Z.data,1,_.ZR,_.ch()),Z.length!==1?_.O$(Error("Hl")):(Z=Z[0],Z===3?(h.isMuted=!0,h.logStateChanged({adMuteRequested:!0})):Z===1&&h.close())):_.O$(Error("Il"))}),
onEstablished:function(){h.cancelPageLoadTimeout();h.logStateChanged({pageLoadSucceeded:!0})}})}};
_.p.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.xu().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.p.logStateChanged=function(h){var E;if((E=this.data)==null?0:E.trackingParams)h={adsClientData:{aboutThisAdData:h}},_.SQ().stateChanged(this.data.trackingParams,h)};
_.p.close=function(){_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.handlesPopupClosed=function(h,E){var g=this,Z,M;return _.a(function(W){if(W.nextAddress==1)return _.nF("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.BX(g.hostElement,"on-about-this-ad-popup-closed",[g.isMuted,E]),W.jumpTo(0)):h&&oxX(h)?W.yield(IdU(h),4):(g.isMuted&&_.BX(g.hostElement,"yt-mute-ad-action",[g.is,g]),W.jumpTo(0));if(Z=W.yieldResult){var z=M=new _.Qb(Z),c=g.isMuted;z.getOptions().includes("onAboutThisAdPopupClosed")?_.bEl(z,"onAboutThisAdPopupClosed",{isMuted:c,layoutId:E}):_.bv("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.SK(W)})};
_.p.onPopupClosed=function(h){var E=this,g,Z;return _.a(function(M){g=_.BR(gyR);_.hh(E.iframe,g);E.cancelPageLoadTimeout();if(!E.data)return M.jumpTo(0);E.ytRendererBehavior.markDirty();Z=h.detail.context.openingElement;return M.yield(E.handlesPopupClosed(Z,E.data.layoutId),0)})};
_.p.detached=function(){this.cancelPageLoadTimeout()};
_.p.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VN.prototype.onPopupClosed=VN.prototype.onPopupClosed;VN.prototype.dataChanged=VN.prototype.dataChanged;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.Y([_.Sg("#iframe"),_.V("design:type",HTMLIFrameElement)],VN.prototype,"iframe",void 0);_.Y([_.x(),_.V("design:type",Object)],VN.prototype,"data",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],VN.prototype,"dataChanged",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype",Promise)],VN.prototype,"onPopupClosed",null);_.Y([_.yc({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],VN);
_.X(VN,"yt-about-this-ad-renderer",function(){if(EyU===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;h2i===void 0&&(h2i=document.createElement("template"));var Z=h2i;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);EyU=h}h=EyU;return h},{mode:2});var ZvX;var MTJ;var kv=function(h){var E=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.maxFileSizeMB=h;Object.setPrototypeOf(this,kv.prototype)};
_.f(kv,Error);var WpJ=function(h,E){var g=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=g.message;"stack"in g&&(this.stack=g.stack);this.minWidth=h;this.minHeight=E;Object.setPrototypeOf(this,WpJ.prototype)};
_.f(WpJ,Error);var pjc=function(h){this.requirements=h;this.JSC$20807_maxFileSize=h.maxFileSizeMB*1024*1024},GBp=function(h,E){if(E.size>h.JSC$20807_maxFileSize)throw new kv(h.requirements.maxFileSizeMB);
};var z2C=function(h,E){this.canvas=h;this.imageEditorBuilder=E};
z2C.prototype.addEventListeners=function(h){var E=function(M){a8U(h,M)};
this.JSC$20813_mouseDownEvent=E;var g=function(M){cvX(h,M)};
this.JSC$20813_mouseMoveEvent=g;var Z=function(){ivR(h)};
this.JSC$20813_mouseUpEvent=Z;this.canvas.addEventListener("mousedown",E);this.canvas.addEventListener("mousemove",g);document.addEventListener("mouseup",Z)};
z2C.prototype.removeEventListeners=function(){this.JSC$20813_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20813_mouseDownEvent);this.JSC$20813_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20813_mouseMoveEvent);this.JSC$20813_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20813_mouseUpEvent)};
var oyX=function(h,E){h.removeEventListeners();return new Promise(function(g){var Z=new Image;Z.crossOrigin="anonymous";Z.onload=function(){var M=h.imageEditorBuilder(h.canvas,Z);h.addEventListeners(M);g(M)};
Z.src=E})},yN=function(h,E,g,Z,M,W,z,c){this.canvas=h;
this.image=E;this.requiredRatio=g;this.minImageCropDimension=Z;this.minOutputImageResolution=M;this.component=W;this.styleFocusedCorner=c===void 0?!0:c;this.action=2;this.focusedCorner=this.resizeCorner=0;h=this.canvas.getContext("2d");if(!h)throw Error("Jl");this.ctx=h;this.canvasMargin=z!=null?z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;z=this.image;h=this.canvasInnerWidth/z.width;z.height*h>912&&(h=z.width/z.height*912/z.width);z=h;this.scaledImageWidth=this.canvas.width%2?
PvC(this.image.width*z):RnC(this.image.width*z);this.scaledImageHeight=Math.round(this.image.height*z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20816_overlayMarginBottom=this.JSC$20816_overlayMarginTop=this.canvasMargin;this.JSC$20816_overlayMarginRight=this.JSC$20816_overlayMarginLeft=this.horizontalMargin;this.JSC$20816_overlayWidth=this.scaledImageWidth;this.JSC$20816_overlayHeight=this.scaledImageHeight;
h=this.image.width/this.image.height;h>this.requiredRatio?(this.JSC$20816_overlayWidth=this.canvas.width%2?PvC(this.scaledImageHeight*this.requiredRatio):RnC(this.scaledImageHeight*this.requiredRatio),this.JSC$20816_overlayMarginRight=this.JSC$20816_overlayMarginLeft=(this.canvas.width-this.JSC$20816_overlayWidth)/2):h<this.requiredRatio&&(this.JSC$20816_overlayHeight=this.canvas.height%2?PvC(this.scaledImageWidth/this.requiredRatio):RnC(this.scaledImageWidth/this.requiredRatio),this.JSC$20816_overlayMarginBottom=
this.JSC$20816_overlayMarginTop=(this.canvas.height-this.JSC$20816_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*z,this.scaledImageWidth);I8G(this)};
yN.prototype.getContext=function(){return this.ctx};
var a8U=function(h,E){E={x:Math.round(E.pageX-h.canvas.getBoundingClientRect().left),y:Math.round(E.pageY-h.canvas.getBoundingClientRect().top)};h.dragStart=E;R20(h,E)!==0?(h.action=1,Pti(h,E),h.resizeCorner=R20(h,E)):E.x>h.JSC$20816_overlayMarginLeft&&E.x<h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth&&E.y>h.JSC$20816_overlayMarginTop&&E.y<h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight&&(h.action=0)},BYZ=function(h,E){switch(E){case 1:return{x:h.JSC$20816_overlayMarginLeft,
y:h.JSC$20816_overlayMarginTop};case 2:return{x:h.JSC$20816_overlayMarginLeft,y:h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight};case 3:return{x:h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth,y:h.JSC$20816_overlayMarginTop};case 4:return{x:h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth,y:h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight};default:throw Error("Kl");}},LpG=function(h,E){if(h.focusedCorner!==0){h.dragStart=BYZ(h,h.focusedCorner);
h.action=1;h.resizeCorner=h.focusedCorner;var g=h.dragStart.x,Z=h.dragStart.y;switch(E){case 0:h.focusedCorner===1||h.focusedCorner===4?(g-=10,Z-=10):(g-=10,Z+=10);break;case 1:h.focusedCorner===1||h.focusedCorner===4?(g+=10,Z+=10):(g+=10,Z-=10);break;case 2:g=h.focusedCorner===1||h.focusedCorner===4?g-10:g+10;Z-=10;break;case 3:g=h.focusedCorner===1||h.focusedCorner===4?g+10:g-10;Z+=10;break;default:throw Error("Ll");}UYX(h,{x:g,y:Z});I8G(h);h.action=2;h.dragStart=void 0}},cvX=function(h,E){E={x:Math.round(E.pageX-
h.canvas.getBoundingClientRect().left),
y:Math.round(E.pageY-h.canvas.getBoundingClientRect().top)};Pti(h,E);switch(h.action){case 1:UYX(h,E);break;case 0:h.dragStart&&(h.JSC$20816_overlayMarginLeft=Math.max(h.horizontalMargin,Math.min(h.JSC$20816_overlayMarginLeft-(h.dragStart.x-E.x),h.horizontalMargin+h.scaledImageWidth-h.JSC$20816_overlayWidth)),h.JSC$20816_overlayMarginRight=h.canvas.width-h.JSC$20816_overlayMarginLeft-h.JSC$20816_overlayWidth,h.JSC$20816_overlayMarginTop=Math.max(h.canvasMargin,Math.min(h.JSC$20816_overlayMarginTop-
(h.dragStart.y-E.y),h.scaledImageHeight-h.JSC$20816_overlayHeight+h.canvasMargin)),h.JSC$20816_overlayMarginBottom=h.canvas.height-(h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight));break;default:return}I8G(h);h.dragStart=E},ivR=function(h){h.action=2;
h.dragStart=void 0;document.body.style.cursor="auto"},Pti=function(h,E){switch(R20(h,E)){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:h.action!==1&&(document.body.style.cursor="auto")}},R20=function(h,E){var g=h.JSC$20816_overlayMarginLeft-5,Z=h.JSC$20816_overlayMarginTop-5,M=h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth-5;
h=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-5;return jkX(E,{x:g,y:Z})?1:jkX(E,{x:M,y:Z})?3:jkX(E,{x:g,y:h})?2:jkX(E,{x:M,y:h})?4:0},jkX=function(h,E){return h.x>=E.x&&h.x<=E.x+10&&h.y>=E.y&&h.y<=E.y+10},UYX=function(h,E){if(h.dragStart)switch(h.resizeCorner){case 2:Math.abs((h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth-E.x)/(E.y-h.JSC$20816_overlayMarginTop))>=h.requiredRatio?dYC(h,E.x):CtG(h,E.y);
break;case 1:Math.abs((h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth-E.x)/(h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-E.y))>=h.requiredRatio?Jvc(h,E.x):CtG(h,E.y);break;case 4:Math.abs((E.x-h.JSC$20816_overlayMarginLeft)/(E.y-h.JSC$20816_overlayMarginTop))>=h.requiredRatio?dYC(h,E.x):e2J(h,E.y);break;case 3:Math.abs((E.x-h.JSC$20816_overlayMarginLeft)/(h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-E.y))>=h.requiredRatio?Jvc(h,E.x):e2J(h,E.y);break;default:throw Error("Ml");
}},dYC=function(h,E){var g=h.JSC$20816_overlayMarginTop;
h.JSC$20816_overlayMarginBottom=qAU(h,E);h.JSC$20816_overlayHeight=h.canvas.height-h.JSC$20816_overlayMarginBottom-g;h.JSC$20816_overlayWidth=Math.round(h.JSC$20816_overlayHeight*h.requiredRatio);f8G(h)},Jvc=function(h,E){var g=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight;
h.JSC$20816_overlayMarginTop=qAU(h,E);h.JSC$20816_overlayHeight=g-h.JSC$20816_overlayMarginTop;h.JSC$20816_overlayWidth=Math.round(h.JSC$20816_overlayHeight*h.requiredRatio);f8G(h)},f8G=function(h){switch(h.resizeCorner){case 2:case 1:h.JSC$20816_overlayMarginLeft=h.canvas.width-h.JSC$20816_overlayMarginRight-h.JSC$20816_overlayWidth;
break;case 4:case 3:h.JSC$20816_overlayMarginRight=h.canvas.width-h.JSC$20816_overlayMarginLeft-h.JSC$20816_overlayWidth;break;default:throw Error("Ml");}},CtG=function(h,E){var g=h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth;
h.JSC$20816_overlayMarginLeft=NYU(h,E);h.JSC$20816_overlayWidth=g-h.JSC$20816_overlayMarginLeft;h.JSC$20816_overlayHeight=Math.round(h.JSC$20816_overlayWidth/h.requiredRatio);tT0(h)},e2J=function(h,E){var g=h.JSC$20816_overlayMarginLeft;
h.JSC$20816_overlayMarginRight=NYU(h,E);h.JSC$20816_overlayWidth=h.canvas.width-h.JSC$20816_overlayMarginRight-g;h.JSC$20816_overlayHeight=Math.round(h.JSC$20816_overlayWidth/h.requiredRatio);tT0(h)},tT0=function(h){switch(h.resizeCorner){case 2:case 4:h.JSC$20816_overlayMarginBottom=h.canvas.height-h.JSC$20816_overlayMarginTop-h.JSC$20816_overlayHeight;
break;case 1:case 3:h.JSC$20816_overlayMarginTop=h.canvas.height-h.JSC$20816_overlayMarginBottom-h.JSC$20816_overlayHeight;break;default:throw Error("Ml");}},qAU=function(h,E){switch(h.resizeCorner){case 2:E=h.canvas.height-(h.JSC$20816_overlayMarginTop+SAR(h,E));
break;case 4:E=h.canvas.height-(h.JSC$20816_overlayMarginTop+xYp(h,E));break;case 1:E=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-SAR(h,E);break;case 3:E=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-xYp(h,E);break;default:throw Error("Ml");}return Math.max(E,h.canvasMargin)},SAR=function(h,E){E=h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth-Math.max(E,h.horizontalMargin);
E=E<0?h.JSC$20816_overlayWidth:Math.max(E,h.minOverlayWidth);return Math.round(E/h.requiredRatio)},xYp=function(h,E){E=h.canvas.width-Math.max(h.canvas.width-E,h.horizontalMargin)-h.JSC$20816_overlayMarginLeft;
E=E<0?h.JSC$20816_overlayWidth:Math.max(E,h.minOverlayWidth);return Math.round(E/h.requiredRatio)},NYU=function(h,E){switch(h.resizeCorner){case 2:E=h.canvas.width-h.JSC$20816_overlayMarginRight-wjC(h,E);
break;case 4:E=h.canvas.width-h.JSC$20816_overlayMarginLeft-wjC(h,E);break;case 1:E=h.canvas.width-h.JSC$20816_overlayMarginRight-DYI(h,E);break;case 3:E=h.canvas.width-h.JSC$20816_overlayMarginLeft-DYI(h,E);break;default:throw Error("Ml");}return Math.max(E,h.horizontalMargin)},wjC=function(h,E){E=h.canvas.height-Math.max(h.canvas.height-E,h.canvasMargin)-h.JSC$20816_overlayMarginTop;
return E<0?h.JSC$20816_overlayWidth:Math.max(Math.round(E*h.requiredRatio),h.minOverlayWidth)},DYI=function(h,E){E=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-Math.max(E,h.canvasMargin);
return E<0?h.JSC$20816_overlayWidth:Math.max(Math.round(E*h.requiredRatio),h.minOverlayWidth)},I8G=function(h){h.ctx.clearRect(0,0,h.canvas.width,h.canvas.height);
h.ctx.drawImage(h.image,0,0,h.image.width,h.image.height,h.horizontalMargin,h.canvasMargin,h.canvas.width-2*h.horizontalMargin,h.scaledImageHeight);h.ctx.fillStyle="rgba(0, 0, 0, 0.7)";h.ctx.fillRect(h.horizontalMargin,h.JSC$20816_overlayMarginTop,h.JSC$20816_overlayMarginLeft-h.horizontalMargin,h.JSC$20816_overlayHeight);h.ctx.fillRect(h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth,h.JSC$20816_overlayMarginTop,h.JSC$20816_overlayMarginRight-h.horizontalMargin,h.JSC$20816_overlayHeight);h.ctx.fillRect(h.horizontalMargin,
h.canvasMargin,h.scaledImageWidth,h.JSC$20816_overlayMarginTop-h.canvasMargin);h.ctx.fillRect(h.horizontalMargin,h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight,h.scaledImageWidth,h.JSC$20816_overlayMarginBottom-h.canvasMargin);h.drawOverlay();h.component&&_.Ra(h.component,"image-updated")};
yN.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20816_overlayMarginLeft,this.JSC$20816_overlayMarginTop,this.JSC$20816_overlayWidth,this.JSC$20816_overlayHeight);l8U(this)};
var l8U=function(h){var E=h.JSC$20816_overlayMarginLeft-5,g=h.JSC$20816_overlayMarginTop-5,Z=h.JSC$20816_overlayMarginLeft+h.JSC$20816_overlayWidth-5,M=h.JSC$20816_overlayMarginTop+h.JSC$20816_overlayHeight-5;h.ctx.fillStyle="#FFF";h.ctx.fillRect(E,g,10,10);h.ctx.strokeRect(E,g,10,10);h.ctx.fillRect(Z,g,10,10);h.ctx.strokeRect(Z,g,10,10);h.ctx.fillRect(E,M,10,10);h.ctx.strokeRect(E,M,10,10);h.ctx.fillRect(Z,M,10,10);h.ctx.strokeRect(Z,M,10,10);if(h.focusedCorner!==0&&h.styleFocusedCorner){h.ctx.lineWidth=
4;h.ctx.strokeStyle="#3EA6FF";switch(h.focusedCorner){case 1:--E;--g;break;case 2:--E;g=M-1;break;case 3:E=Z-1;--g;break;case 4:E=Z-1;g=M-1;break;default:return}h.ctx.strokeRect(E,g,12,12)}};
yN.prototype.crop=function(h,E){E=E===void 0?!0:E;var g=this.image.width/this.scaledImageWidth,Z=document.createElement("canvas"),M=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],W=this.JSC$20816_overlayWidth*g,z=this.JSC$20816_overlayHeight*g;Z.width=Math.max(W,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);Z.height=Math.max(z,M);h&&(Z.width=Math.min(Z.width,Z.height),Z.height=Math.min(Z.width,Z.height));
h=Z.getContext("2d");if(!h)throw Error("Al");M=(this.JSC$20816_overlayMarginLeft-this.horizontalMargin)*g;g*=this.JSC$20816_overlayMarginTop-this.canvasMargin;E||(h.fillStyle="white",h.fillRect(0,0,Z.width,Z.height));h.drawImage(this.image,M,g,W,z,0,0,Z.width,Z.height);return Z};var rvX=function(h,E,g,Z,M){yN.call(this,h,E,g,Z,void 0,M,8,!1)};
_.f(rvX,yN);rvX.prototype.drawOverlay=function(){var h=this.getContext(),E=this.JSC$20816_overlayWidth,g=this.JSC$20816_overlayHeight,Z=this.JSC$20816_overlayMarginTop,M=this.JSC$20816_overlayMarginLeft;h.lineWidth=2;h.strokeStyle="#3EA6FF";h.beginPath();h.arc(M+E/2,Z+g/2,E/2,0,2*Math.PI);h.stroke();h.strokeRect(M,Z,E,g);l8U(this)};
var mY0={maxFileSizeMB:15,minWidth:98,minHeight:98},vyC=["image/png","image/jpeg","image/gif"],F7=function(){var h=_.D.apply(this,arguments)||this;h.fileSelectorFocusListener=null;h.errorMessage=null;h.isLoading=!0;h.hideContainer=!0;h.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return h};
_.f(F7,_.D);_.p=F7.prototype;_.p.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.p.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.p.computePlaylistThumbnail=function(h){return h==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.p.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.BX(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.p.setErrorState=function(h){this.resetErrorState();h&&(this.errorMessage=h)};
_.p.showPopup=function(){var h=this;this.hideContainer=!1;_.xW(_.KP,function(){_.Ra(h.hostElement,"yt-refit")});
this.isLoading=!1};
_.p.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.p.closePopup=function(){this.resetFileSelector();_.BX(this.hostElement,"yt-close-popup-action",[this.is])};
_.p.onCancelTap=function(){this.isPlaylistThumbnail||_.BX(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.p.openFileSelector=function(){var h=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.xW(_.KP,function(){setTimeout(function(){if(!h.fileSelector.files||h.fileSelector.files.length===0)h.onCancelTap();h.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(E){E instanceof Error?_.$W(E):_.KI(new _.xX(JSON.stringify(E)))}};
_.p.handleFileSelection=function(){var h=this,E,g,Z,M,W,z;return _.a(function(c){switch(c.nextAddress){case 1:_.CX(c,2);if(!h.fileSelector.files||!h.imageEditorCanvas)return h.onCancelTap(),c.return();E=h.fileSelector.files[0];GBp(h.imageChecker,E);_.CX(c,4);return c.yield(OOU(E),6);case 6:h.mimeType=c.yieldResult;_.bN(c,5,2);break;case 4:_.th(c,2),_.BX(h.hostElement,"yt-image-selection-error-action",[(g=h.data)==null?void 0:g.genericImageLoadErrorMessage]),h.onCancelTap();case 5:Z=new FileReader;
Z.addEventListener("load",function(){var I,B;return _.a(function(U){if(U.nextAddress==1){if(!Z.result)return _.O$(Error("Cl")),U.return();I=Z.result;B=new Image;B.src=I;B.onload=function(){try{var L=h.imageChecker;if(B.width<L.requirements.minWidth||B.height<L.requirements.minHeight)throw new WpJ(L.requirements.minWidth,L.requirements.minHeight);}catch(C){if(C instanceof WpJ){var d;_.BX(h.hostElement,"yt-image-selection-error-action",[(d=h.data)==null?void 0:d.imageDimensionErrorMessage]);h.logImageDimensionErrorVe()}else C instanceof
Error?_.$W(C):(L=new _.xX(JSON.stringify(C)),_.$W(L));h.onCancelTap()}h.showPopup()};
B.onerror=function(){var L;_.BX(h.hostElement,"yt-image-selection-error-action",[(L=h.data)==null?void 0:L.genericImageLoadErrorMessage]);h.onCancelTap()};
return U.yield(oyX(h.imageEditorCanvas,I),2)}h.imageEditor=U.yieldResult;h.updatePositionOfAllCorners();h.addEventListeners(h.imageEditor);_.SK(U)})},!1);
Z.readAsDataURL(E);_.bN(c,0);break;case 2:M=_.th(c),M instanceof kv?_.BX(h.hostElement,"yt-image-selection-error-action",[(W=h.data)==null?void 0:W.imageSizeErrorMessage]):(M instanceof Error?_.$W(M):_.KI(new _.xX(JSON.stringify(M))),_.BX(h.hostElement,"yt-image-selection-error-action",[(z=h.data)==null?void 0:z.genericImageLoadErrorMessage])),h.onCancelTap(),_.SK(c)}})};
_.p.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var h=_.tW(_.SQ(),{veType:232707,visualElement:_.Uz(232707)});h&&(h={visualElement:h},_.NB().reportShown(h))}};
_.p.handleImageSelectionErrorAction=function(h){this.isPlaylistThumbnail&&_.$0u(this.hostElement,h)};
_.p.convertToImageFormatBundle=function(h){var E=this,g,Z,M;return _.a(function(W){switch(W.nextAddress){case 1:return g=h.toDataURL(E.outputMimeType,1),W.yield(nPx(g),2);case 2:Z=W.yieldResult;_.CX(W,3);GBp(E.imageChecker,Z);_.bN(W,4);break;case 3:M=_.th(W);if(!(M instanceof kv))throw M;_.O$(new _.xX("Output size is bigger than input size for image",E.mimeType,E.outputMimeType,Z.size));g=h.toDataURL("image/jpeg",.95);return W.yield(nPx(g),6);case 6:Z=W.yieldResult;case 4:return W.return({dataUrl:g,
imageFile:Z})}})};
_.p.handleUploadImageToScottyCommand=function(h){var E=this,g,Z,M,W,z,c,I,B,U,L;return _.a(function(d){switch(d.nextAddress){case 1:if(!E.imageEditor||!_.e(h,cgX))return d.return();g=_.e(h,cgX).scottyUploadUrl;if(!g){var C=new _.xX("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.$W(C);return d.return()}_.CX(d,2);E.setLoadingState();Z=E.imageEditor.crop(!1,!1);return d.yield(E.convertToImageFormatBundle(Z),4);case 4:return M=d.yieldResult,d.yield($iJ(M.imageFile,g),5);
case 5:W=d.yieldResult;((z=E.data)==null?0:z.onUploadEndpoint)?(c=E.buildUploadServiceEndpoint(W),E.ytComponentBehavior.resolveCommand(c),I=_.e(c,_.M8),((B=I)==null?0:B.params)?E.closePopup():E.resetFileSelector()):(_.BX(E.hostElement,"yt-image-updated-action",[M.dataUrl,W]),E.closePopup());_.bN(d,0);break;case 2:U=_.th(d),E.setErrorState((L=E.data)==null?void 0:L.uploadErrorMessage),U instanceof Error?_.$W(U):(C=new _.xX(JSON.stringify(U)),_.$W(C)),_.SK(d)}})};
_.p.buildUploadServiceEndpoint=function(h){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",h),this.data.onUploadEndpoint):null};
_.p.dataChanged=function(){var h=this,E;return _.a(function(g){if(g.nextAddress==1){if(!h.data||!h.canvasElement)return g.return();h.data.imageRatio&&h.data.minImageCropWidth||_.KI(new _.xX("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));E=function(Z,M){return h.data.imageType==="IMAGE_TYPE_AVATAR"?new rvX(Z,M,h.data.imageRatio,[h.data.minImageCropWidth,h.data.minImageCropWidth/h.data.imageRatio],h.hostElement):new yN(Z,M,h.data.imageRatio,[h.data.minImageCropWidth,
h.data.minImageCropWidth/h.data.imageRatio],void 0,h.hostElement,8,!1)};
h.imageEditorCanvas=new z2C(h.canvasElement,E);return h.data.url?g.yield(oyX(h.imageEditorCanvas,h.data.url),3):(h.hideContainer=!0,h.openFileSelector(),g.jumpTo(0))}h.imageEditor=g.yieldResult;h.showPopup();h.addEventListeners(h.imageEditor);_.SK(g)})};
_.p.addEventListeners=function(h){this.removeEventListeners();var E=function(M){a8U(h,M)};
this.JSC$20824_mouseDownEvent=E;var g=function(M){cvX(h,M)};
this.JSC$20824_mouseMoveEvent=g;var Z=function(){ivR(h)};
this.JSC$20824_mouseUpEvent=Z;this.topLeftCorner.addEventListener("mousedown",E);this.topLeftCorner.addEventListener("mousemove",g);this.topLeftCorner.addEventListener("mouseup",Z);this.topRightCorner.addEventListener("mousedown",E);this.topRightCorner.addEventListener("mousemove",g);this.topRightCorner.addEventListener("mouseup",Z);this.bottomLeftCorner.addEventListener("mousedown",E);this.bottomLeftCorner.addEventListener("mousemove",g);this.bottomLeftCorner.addEventListener("mouseup",Z);this.bottomRightCorner.addEventListener("mousedown",
E);this.bottomRightCorner.addEventListener("mousemove",g);this.bottomRightCorner.addEventListener("mouseup",Z)};
_.p.removeEventListeners=function(){this.JSC$20824_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20824_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20824_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20824_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20824_mouseDownEvent));this.JSC$20824_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20824_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20824_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20824_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20824_mouseMoveEvent));this.JSC$20824_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20824_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20824_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20824_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20824_mouseUpEvent))};
_.p.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var h=document.activeElement;h&&h.shadowRoot&&h.shadowRoot.activeElement;)h=h.shadowRoot.activeElement;switch(h){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.p.updatePositionOfCorner=function(h,E){var g=h.y-E.offsetHeight/2+4;E.style.left=h.x-E.offsetWidth/2+16+"px";E.style.top=g+"px"};
_.p.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var h=_.G([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),E=h.next();!E.done;E=h.next()){E=E.value;var g=BYZ(this.imageEditor,E.corner);this.updatePositionOfCorner(g,E.div)}};
_.p.onLeft=function(h){this.imageEditor&&this.setFocusInImageEditor()&&(LpG(this.imageEditor,0),this.updatePositionOfAllCorners(),h.preventDefault())};
_.p.onRight=function(h){this.imageEditor&&this.setFocusInImageEditor()&&(LpG(this.imageEditor,1),this.updatePositionOfAllCorners(),h.preventDefault())};
_.p.onUp=function(h){this.imageEditor&&this.setFocusInImageEditor()&&(LpG(this.imageEditor,2),this.updatePositionOfAllCorners(),h.preventDefault())};
_.p.onDown=function(h){this.imageEditor&&this.setFocusInImageEditor()&&(LpG(this.imageEditor,3),this.updatePositionOfAllCorners(),h.preventDefault())};
_.p.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ze.Object.defineProperties(F7.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&vyC.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var h,E,g;((E=this.data)==null?0:E.imageRatio)&&((g=this.data)==null?0:g.minImageCropWidth)?h={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:h=mY0;return new pjc(h)}}});
F7.prototype.updatePositionOfAllCorners=F7.prototype.updatePositionOfAllCorners;F7.prototype.dataChanged=F7.prototype.dataChanged;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],F7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],F7.prototype,"ytComponentBehavior",void 0);_.Y([_.t(_.Kf),_.V("design:type",Object)],F7.prototype,"ironA11yKeysBehavior",void 0);
_.Y([_.Sg("#canvas"),_.V("design:type",HTMLCanvasElement)],F7.prototype,"canvasElement",void 0);_.Y([_.Sg("#file-selector"),_.V("design:type",HTMLInputElement)],F7.prototype,"fileSelector",void 0);_.Y([_.Sg("#top-left-corner"),_.V("design:type",HTMLDivElement)],F7.prototype,"topLeftCorner",void 0);_.Y([_.Sg("#top-right-corner"),_.V("design:type",HTMLDivElement)],F7.prototype,"topRightCorner",void 0);
_.Y([_.Sg("#bottom-left-corner"),_.V("design:type",HTMLDivElement)],F7.prototype,"bottomLeftCorner",void 0);_.Y([_.Sg("#bottom-right-corner"),_.V("design:type",HTMLDivElement)],F7.prototype,"bottomRightCorner",void 0);_.Y([_.x(),_.V("design:type",Object)],F7.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],F7.prototype,"errorMessage",void 0);_.Y([_.x(),_.V("design:type",Object)],F7.prototype,"isLoading",void 0);_.Y([_.x(),_.V("design:type",Object)],F7.prototype,"hideContainer",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.V("design:type",Boolean)],F7.prototype,"isPlaylistThumbnail",void 0);_.Y([_.lq("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],F7.prototype,"dataChanged",null);_.Y([_.f3("image-updated"),_.f3("yt-refit"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],F7.prototype,"updatePositionOfAllCorners",null);
_.Y([_.yc({is:"yt-image-editor-renderer",disableElementRegistration:!0})],F7);
_.X(F7,"yt-image-editor-renderer",function(){if(MTJ===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;ZvX===void 0&&(ZvX=document.createElement("template"));var Z=ZvX;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);MTJ=h}h=MTJ;return h},{mode:2});var HvR;var $YG;var Aq=function(){return _.D.apply(this,arguments)||this};
_.f(Aq,_.D);Aq.prototype.updateMinutesFromBinding=function(h){this.handleMinutesChanged&&this.handleMinutesChanged(h)};
Aq.prototype.updateSecondsFromBinding=function(h){this.handleSecondsChanged&&this.handleSecondsChanged(h)};
Aq.prototype.updateDescriptionFromBinding=function(h){this.handleDescriptionChanged&&this.handleDescriptionChanged(h)};
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Aq.prototype,"ytComponentBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Aq.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",String)],Aq.prototype,"minutes",void 0);_.Y([_.x(),_.V("design:type",String)],Aq.prototype,"seconds",void 0);_.Y([_.x(),_.V("design:type",String)],Aq.prototype,"description",void 0);_.Y([_.x(),_.V("design:type",Function)],Aq.prototype,"handleMinutesChanged",void 0);
_.Y([_.x(),_.V("design:type",Function)],Aq.prototype,"handleSecondsChanged",void 0);_.Y([_.x(),_.V("design:type",Function)],Aq.prototype,"handleDescriptionChanged",void 0);_.Y([_.x(),_.V("design:type",Number)],Aq.prototype,"characterLimit",void 0);_.Y([_.x(),_.V("design:type",Number)],Aq.prototype,"textNumRows",void 0);_.Y([_.yc({is:"yt-report-details-form-content",disableElementRegistration:!0})],Aq);
_.X(Aq,"yt-report-details-form-content",function(){if($YG===void 0){var h=document.createElement("template");_.N(h,'\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>');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;HvR===void 0&&(HvR=document.createElement("template"));var Z=HvR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);$YG=h}h=$YG;return h},{mode:2});var KpC;var OvG;var T0=function(){var h=_.D.apply(this,arguments)||this;h.updateMinutesFromBinding=function(E){h.minutes=E.detail.value};
h.updateSecondsFromBinding=function(E){h.seconds=E.detail.value};
h.updateDescriptionFromBinding=function(E){h.description=E.detail.value};
return h};
_.f(T0,_.D);_.p=T0.prototype;_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.p.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.ready=function(){_.UB(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.p.onSubmitYtAction=function(h){var E=h.detail;E.actionName==="yt-service-request"&&(E=E.args[1],E.flagEndpoint&&(h.stopPropagation(),this.refireAction(E)))};
_.p.refireAction=function(h){var E={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(E.vss_id=this.vssId);_.LZ(this.hostElement,[h,E]);this.submitDisabled=!0};
_.p.dataChanged=function(){var h=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var E=_.zD();E&&E.getPlayerPromise().then(function(g){var Z=g.getOption("cc","track")||g.getOption("captions","track");Z&&(h.vssId=Z.vss_id);g=g.getCurrentTime();h.minutes=Math.floor(g/60).toString();h.seconds=(Math.floor(g)%60).toString()})};
_.p.updateSubmitButtonState=function(){var h;((h=this.data)==null?0:h.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.p.onYtServiceRequestCompleted=function(){_.BX(this.hostElement,"yt-close-popup-action")};
_.p.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ze.Object.defineProperties(T0.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var h;return((h=this.data)==null?void 0:h.textNumRows)||4}}});
T0.prototype.onYtServiceRequestError=T0.prototype.onYtServiceRequestError;T0.prototype.onYtServiceRequestCompleted=T0.prototype.onYtServiceRequestCompleted;T0.prototype.updateSubmitButtonState=T0.prototype.updateSubmitButtonState;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);
_.Y([_.x({observer:"dataChanged"}),_.V("design:type",Object)],T0.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Boolean)],T0.prototype,"submitDisabled",void 0);_.Y([_.x(),_.V("design:type",String)],T0.prototype,"minutes",void 0);_.Y([_.x(),_.V("design:type",String)],T0.prototype,"seconds",void 0);_.Y([_.x(),_.V("design:type",String)],T0.prototype,"description",void 0);_.Y([_.x(),_.V("design:type",String)],T0.prototype,"vssId",void 0);
_.Y([_.x({value:_.nF("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.V("design:type",Boolean)],T0.prototype,"isMusic",void 0);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],T0.prototype,"characterLimit",null);_.Y([_.S("data"),_.V("design:type",Number),_.V("design:paramtypes",[])],T0.prototype,"textNumRows",null);
_.Y([_.lq("minutes","seconds","description","submitDisabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T0.prototype,"updateSubmitButtonState",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T0.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],T0.prototype,"onYtServiceRequestError",null);_.Y([_.yc({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],T0);
_.X(T0,"yt-report-details-form-renderer",function(){if(OvG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;KpC===void 0&&(KpC=document.createElement("template"));var Z=KpC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);OvG=h}h=OvG;return h});var ny0;var XjJ;var YAR;var sk0;var bD=function(){return _.D.apply(this,arguments)||this};
_.f(bD,_.D);
bD.prototype.onCheckedChanged_=function(){if(this.data){var h=_.UB(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.BX(this.hostElement,"yt-additional-detail-checkbox-update",[h]):this.data.identifier==="yt-hide-user-checkbox"?_.BX(this.hostElement,"yt-hide-user-checkbox-update",[h]):h&&this.data.enableCommand?_.BX(this.hostElement,"yt-modify-report-form-command",[_.e(this.data.enableCommand,Uyp)]):!h&&this.data.disableCommand&&_.BX(this.hostElement,
"yt-modify-report-form-command",[_.e(this.data.enableCommand,Uyp)])}};
bD.prototype.onLabelTap_=function(h){h.target.tagName!="A"&&(_.UB(this.hostElement).querySelector("#checkbox").checked=!_.UB(this.hostElement).querySelector("#checkbox").checked)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],bD.prototype,"data",void 0);_.Y([_.yc({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],bD);
_.X(bD,"yt-boolean-form-field-v2-renderer",function(){if(sk0===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;YAR===void 0&&(YAR=document.createElement("template"));var Z=YAR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);sk0=h}h=sk0;return h});var uD=function(){var h=_.D.apply(this,arguments)||this;h.canShowAdditionalDetailCheckbox=!1;h.canShowCheckbox=!1;h.keepDropdownFocusedAfterSelection=!0;return h};
_.f(uD,_.D);uD.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}}}}};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],uD.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],uD.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Y([_.x(),_.V("design:type",Object)],uD.prototype,"canShowCheckbox",void 0);_.Y([_.x(),_.V("design:type",Object)],uD.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Y([_.yc({is:"yt-report-form-modal-content",disableElementRegistration:!0})],uD);
_.X(uD,"yt-report-form-modal-content",function(){if(XjJ===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;ny0===void 0&&(ny0=document.createElement("template"));var Z=ny0;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);XjJ=h}h=XjJ;return h},{mode:2});var VTG;var kBX;var QN=function(){var h=_.D.apply(this,arguments)||this;h.submitting=!1;h.submitButtonDisabled=!0;h.command=null;h.canShowCheckbox=!1;h.canShowAdditionalDetailCheckbox=!1;h.canShowNextButton=!1;h.additionalDetailCheckboxChecked=!1;h.refitJob=0;h.keepDropdownFocusedAfterSelection=!0;h.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 h};
_.f(QN,_.D);_.p=QN.prototype;_.p.created=function(){this.refitJob=0};
_.p.attached=function(){this.JSC$20847_scroller&&(this.JSC$20847_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20847_scroller.attached&&typeof this.JSC$20847_scroller.attached==="function"&&this.JSC$20847_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.dataChanged=function(h){h&&(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,h.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),h.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.p.onYtPopupOpened=function(){var h=_.zD();h&&h.getPlayerPromise().then(function(E){E.pauseVideo()})};
_.p.onYtNavigate=function(h){_.e(h.detail.endpoint,_.wQB)&&(h.stopPropagation(),this.hideReportForm=!0)};
_.p.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.p.onYtServiceRequestCompleted=function(h,E){var g=E.actions;if(g){if(g.length===1&&_.e(g[0],_.CZ)){var Z;g=((Z=_.e(g[0],_.CZ))==null?void 0:Z.commands)||[]}Z=0;for(var M=g.length;Z<M;Z++)_.e(g[Z],_.sr)&&(h.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(g[Z]))}if(E.data&&(h=this.get("feedbackResponses",E.data)))for(E=0;E<h.length;E++)if(h[E].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.p.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.p._onDescendantIronResize=function(h){h.stopPropagation();return!1};
_.p.handleReportFormEndpointUpdateAction=function(h){if(h.submitEndpoint){var E=this.command=h.submitEndpoint;E=_.e(E,_.SRD);if(E==null?0:E.additionalDetailCheckboxChecked)E.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else h.submitNavigationEndpoint?(this.command=h.submitNavigationEndpoint,this.toggleSubmitButton(!1)):h.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:h.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;h.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",h));this.refit()};
_.p.handleConfirmDialogCloseAction=function(h){h.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.p.submitButtonDisabledChanged=function(){var h=this.hostElement.parentElement;h&&h.invalidateTabbables&&h.invalidateTabbables()};
_.p.handleModifyReportFormCommand=function(h){h=this.get("action",h);h==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:h==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:h==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:h==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:h==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:h==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.p.updateDialogStyling=function(){var h,E,g,Z,M,W=((M=(h=this.data)==null?void 0:(E=h.optionsSupportedRenderers)==null?void 0:(g=E.optionsRenderer)==null?void 0:(Z=g.items)==null?void 0:Z.length)!=null?M:0)<=2?0:240;_.Ja(this.hostElement,{"--yt-report-form-modal-renderer-min-width":W+"px"})};
_.p.toggleSubmitButton=function(h){this.submitButtonDisabled=!h;this.submitButtonDisabled=h};
_.p.computeSubmitButtonData=function(h,E){var g={};_.e(E,_.wQB)?g.navigationEndpoint=E:g.command=E||void 0;h&&h.buttonRenderer&&_.Kt.extend(g,h.buttonRenderer);return g};
_.p.computeNextButtonData=function(h,E){var g={};if(!h||!h.buttonRenderer)return g;_.Kt.extend(g,h.buttonRenderer);if(!E)return g;if(_.e(E,_.wQB))g.navigationEndpoint=OWU(E);else if(g.command=OWU(E),h=_.e(g.command,_.SRD))h.legalCheckboxChecked=!0;return g};
_.p.computeShowNextButton=function(h,E,g){return!!h&&E&&g};
_.p.refit=function(){var h=this;this.refitJob||(this.refitJob=_.KP.addLowPriorityJob(function(){_.Ra(h.hostElement,"yt-refit");h.refitJob=0}))};
_.p.handleAdditionalDetailCheckboxUpdateAction=function(h){this.additionalDetailCheckboxChecked=h;_.e(this.command,_.SRD).additionalDetailCheckboxChecked=h};
_.ze.Object.defineProperties(QN,{template:{configurable:!0,enumerable:!0,get:function(){if(kBX===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;VTG===void 0&&(VTG=document.createElement("template"));var Z=VTG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);kBX=h}h=kBX;return h}}});
QN.prototype.onYtServiceRequestError=QN.prototype.onYtServiceRequestError;QN.prototype.onYtServiceRequestCompleted=QN.prototype.onYtServiceRequestCompleted;QN.prototype.onYtServiceRequestSent=QN.prototype.onYtServiceRequestSent;QN.prototype.onYtNavigate=QN.prototype.onYtNavigate;QN.prototype.onYtPopupOpened=QN.prototype.onYtPopupOpened;_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],QN.prototype,"openPopupBehavior",void 0);
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],QN.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],QN.prototype,"eventForwardingBehavior",void 0);_.Y([_.t(_.F3),_.V("design:type",Object)],QN.prototype,"ironResizableBehavior",void 0);_.Y([_.x({observer:"dataChanged"}),_.V("design:type",Object)],QN.prototype,"data",void 0);
_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"submitting",void 0);_.Y([_.x({observer:"submitButtonDisabledChanged"}),_.V("design:type",Object)],QN.prototype,"submitButtonDisabled",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"command",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],QN.prototype,"hideReportForm",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"canShowCheckbox",void 0);
_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"canShowNextButton",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"additionalDetailCheckboxChecked",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"refitJob",void 0);_.Y([_.x(),_.V("design:type",Object)],QN.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Y([_.Sg("#scroller"),_.V("design:type",Object)],QN.prototype,"JSC$20847_scroller",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],QN.prototype,"onYtPopupOpened",null);_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],QN.prototype,"onYtNavigate",null);
_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],QN.prototype,"onYtServiceRequestSent",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],QN.prototype,"onYtServiceRequestCompleted",null);
_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],QN.prototype,"onYtServiceRequestError",null);_.Y([_.yc({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],QN);var yvi;var FpX;var hF=function(){return _.D.apply(this,arguments)||this};
_.f(hF,_.D);_.p=hF.prototype;_.p.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.p.onVisible=function(){var h,E;(E=_.GF().resolve(_.pl(_.gm)))==null||E.enqueue({label:_.Wp((h=this.data)==null?void 0:h.messageTitle),elementToFocus:this.hostElement})};
_.p.onThumbnailLoaded=function(){_.Ra(this.hostElement,"yt-refit")};
_.p.onDismissTap=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.p.computeAlternateIcon=function(h){return h?h==="BACKSTAGE_ARTWORK"?"backstage:artwork":h:null};
_.p.computeFontFamily=function(h){return h==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.p.computeBackgroundStyle=function(h,E){if(h=this.computeBackgroundImage(h,E))if(h=_.P$(h.thumbnails))return'background-image: url("'+h+'");'};
_.p.computeHasFullHeightImage=function(h){return!(!(h&&h.thumbnails&&h.thumbnails.length>0)||this.modern)};
_.p.isModernStyle=function(h){return h.style==="STYLE_MODERN"};
_.p.computeIcon=function(h,E){if(h&&h.icon)return E?h.iconDark:h.icon};
_.p.computeBackgroundImage=function(h,E){if(h&&h.backgroundImage)return E?h.backgroundImageDark:h.backgroundImage};
_.p.computeLogo=function(h,E){if(h&&h.logo)return E?h.logoDark:h.logo};
_.p.computeShouldShowModernIcon=function(h,E){return h&&!!E};
_.p.getLogoContainerClassName=function(h){return this.logoWithPadding(h)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.p.getLogoImageId=function(h){return this.logoWithPadding(h)?"mealbar-logo-with-padding":"mealbar-logo"};
_.p.logoWithPadding=function(h){var E,g,Z;return(h=(E=this.computeLogo(h,this.isDarkTheme))==null?void 0:(g=E.thumbnails)==null?void 0:(Z=g[0])==null?void 0:Z.height)&&h%31===0?!0:!1};
hF.prototype.onThumbnailLoaded=hF.prototype.onThumbnailLoaded;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.Y([_.x({}),_.V("design:type",Object)],hF.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.V("design:type",Boolean)],hF.prototype,"modern",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],hF.prototype,"isDarkTheme",void 0);
_.Y([_.x({computed:"computeIcon(data, isDarkTheme)"}),_.V("design:type",Object)],hF.prototype,"icon",void 0);_.Y([_.x({computed:"computeLogo(data, isDarkTheme)"}),_.V("design:type",Object)],hF.prototype,"logo",void 0);_.Y([_.x({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.V("design:type",Object)],hF.prototype,"backgroundStyle",void 0);_.Y([_.x({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.V("design:type",Object)],hF.prototype,"alternateIcon",void 0);
_.Y([_.x({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.V("design:type",Boolean)],hF.prototype,"hasFullHeightImage",void 0);_.Y([_.x({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.V("design:type",Boolean)],hF.prototype,"useYoutubeSans",void 0);_.Y([_.x({computed:"computeShouldShowModernIcon(modern, icon)"}),_.V("design:type",Boolean)],hF.prototype,"shouldShowModernIcon",void 0);
_.Y([_.f3("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],hF.prototype,"onThumbnailLoaded",null);_.Y([_.yc({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],hF);
_.X(hF,"yt-mealbar-promo-renderer",function(){if(FpX===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;yvi===void 0&&(yvi=document.createElement("template"));var Z=yvi;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);FpX=h}h=FpX;return h},{mode:2});var AvG;var TYC;var En=function(){return _.D.apply(this,arguments)||this};
_.f(En,_.D);_.p=En.prototype;_.p.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.p.computeHasButtons_=function(h){return!(!h.dismissButton&&!h.acceptButton)};
_.p.computeStyle_=function(h){return h||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.p.observeImpressionEndpoints_=function(){var h=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;_.LZ(h.hostElement,[E])})};
_.p.onTap_=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
En.prototype.observeImpressionEndpoints_=En.prototype.observeImpressionEndpoints_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],En.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],En.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],En.prototype,"positionType",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],En.prototype,"hasButtons_",void 0);_.Y([_.x({value:function(){return this.onTap_.bind(this)}}),
_.V("design:type",Function)],En.prototype,"boundOnTap_",void 0);_.Y([_.x({value:{style:"mono-inverse"}}),_.V("design:type",Object)],En.prototype,"buttonOverride",void 0);_.Y([_.Nm("data.promoConfig.impressionEndpoints"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],En.prototype,"observeImpressionEndpoints_",null);_.Y([_.yc({is:"yt-tooltip-renderer",disableElementRegistration:!0})],En);
_.X(En,"yt-tooltip-renderer",function(){if(TYC===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;AvG===void 0&&(AvG=document.createElement("template"));var Z=AvG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);TYC=h}h=TYC;return h},{mode:2});var bvG;var uPI;var Qkp={},hfG=(Qkp.WEB_REMIX="music.youtube.com",Qkp),g7=function(){var h=_.D.apply(this,arguments)||this;h.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return h};
_.f(g7,_.D);_.p=g7.prototype;_.p.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.created=function(){this.embedHost_=hfG[_.nF("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.p.ready=function(){_.UB(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.p.computeEmbedCode_=function(h,E,g,Z,M){if(!h)return"";var W=h.videoId,z=h.fullListId,c=[];h.attributionId&&c.push("si="+h.attributionId);Z||c.push("controls=0");g&&Number(E)>0&&c.push("start="+E);z&&(W="videoseries",c.push("list="+z));g="https://"+(M?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+W;h.clipId&&(c.push("clip="+h.clipId),c.push("clipt="+h.clipTiming));E=c.length>0?g+"?"+c.join("&amp;"):g;h.encryptedEmbedConfig&&c.push("embed_config="+JSON.stringify({enc:h.encryptedEmbedConfig}));
c=c.length>0?g+"?"+c.join("&amp;"):g;_.J("web_sharing_embed_preview_killswitch")?_.UB(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(c,h.previewWidth||854,h.previewHeight||480):(_.XV(this.videoPreviewContainer),_.UB(this.videoPreviewContainer).appendChild(this.buildIframeElement(c)));return this.getEmbedCode_(E,h.width||560,h.height||315)};
_.p.buildIframeElement=function(h){var E=document.createElement("iframe"),g,Z;E.width=""+((Z=(g=this.data)==null?void 0:g.previewWidth)!=null?Z:854);var M,W;E.height=""+((W=(M=this.data)==null?void 0:M.previewHeight)!=null?W:480);_.MKx(E,2,h);E.title="YouTube video player";E.frameBorder="0";E.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";E.referrerPolicy="strict-origin-when-cross-origin";E.allowFullscreen=!0;return E};
_.p.computeIsSquareAspectRatio_=function(h){return h.previewHeight&&h.previewWidth?h.previewHeight==h.previewWidth:!1};
_.p.computeShowEmbedOptions_=function(h){return!!h.enablePrivacyModeOptionLabel||!!h.showPlayerControlsOptionLabel};
_.p.getEmbedCode_=function(h,E,g){return'<iframe width="'+E+'" height="'+g+'" src="'+h+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.p.handleSignalActionCopyShareEmbedUrl_=function(){_.UB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.p.handleSetTimestamp_=function(h){this.startAtTimeStamp_=(this.startAtChecked_=h.isSet)?h.timestamp:0};
_.p.closePanel_=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.p.onEmbedCode_=function(){_.UB(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.p.onYtPopupClosed_=function(){_.XV(_.UB(this.hostElement).querySelector("#video-preview"))};
_.p.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.e(this.data.actionButtons[0],_.Gh)&&this.ytRendererBehavior.logExplicitClick(_.e(this.data.actionButtons[0],_.Gh))};
g7.prototype.onYtPopupClosed_=g7.prototype.onYtPopupClosed_;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],g7.prototype,"data",void 0);
_.Y([_.x({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.V("design:type",String)],g7.prototype,"embedCode_",void 0);_.Y([_.x({value:!0}),_.V("design:type",Boolean)],g7.prototype,"isPlayerControlsOptionChecked_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],g7.prototype,"isPrivacyModeOptionChecked_",void 0);_.Y([_.x({value:!1,notify:!0}),_.V("design:type",Boolean)],g7.prototype,"startAtChecked_",void 0);
_.Y([_.x({value:0}),_.V("design:type",Number)],g7.prototype,"startAtTimeStamp_",void 0);_.Y([_.x({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],g7.prototype,"isSquareAspectRatio_",void 0);_.Y([_.Sg("#video-preview"),_.V("design:type",HTMLElement)],g7.prototype,"videoPreviewContainer",void 0);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],g7.prototype,"onYtPopupClosed_",null);
_.Y([_.yc({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],g7);
_.X(g7,"yt-sharing-embed-renderer",function(){if(uPI===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;bvG===void 0&&(bvG=document.createElement("template"));var Z=bvG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);uPI=h}h=uPI;return h},{mode:2});var EqX={};
EqX.YtUnlimitedFamilyInterstitialBehavior=[_.n6.YtOpenPopupBehavior,_.Yl.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(h){h=_.DZm(_.zw(h),"yt-button-renderer");return h?h.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(h){this.dialogHistory_.push(h)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var h=this.popFromHistory();if(h){var E={openPopupAction:{popupType:"DIALOG",popup:{}}};E.openPopupAction.popup[h.renderer]=h.data;this.showingPreviousDialog_=!0;this.openPopup(E)}},
handleOpenPopupAction_:function(h){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var E=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(Z){return!!h.openPopupAction.popup[Z]}),g=this.getElementName_();
E&&this.data&&(this.pushToHistory({renderer:g,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(h){if(h=_.e(h,VRG))this.loading=!0,_.BX(this.hostElement,"yt-open-create-family-dialog",[h,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var h=this.hostElement.nodeName.split("-").slice(1).map(function(E){return""+E[0].toUpperCase()+E.slice(1).toLowerCase()}).join("");
return h[0].toLowerCase()+h.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var gqc;var Z5G;var Zn=function(){return _.D.apply(this,arguments)||this};
_.f(Zn,_.D);_.p=Zn.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.BX(this.hostElement,"yt-register-create-family-dialog");_.UB(this.hostElement).querySelector("#thumbnail").onShow()};
_.p.fireOnCloseCommand_=function(){var h;((h=this.data)==null?0:h.onCloseCommand)&&_.jj(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.p.onYtServiceRequestSent_=function(h,E){E&&E.endpoint&&_.e(E.endpoint,_.ej)||(this.loading=!0)};
_.p.onYtServiceRequestCompleted_=function(){var h=this.hostElement.parentElement;h.close&&h.close();this.loading=!1};
_.p.openPopupHandler_=function(h){if(h.detail==this){var E;((E=this.data)==null?0:E.onOpenCommands)&&_.jj(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.p.closePopupHandler_=function(h,E){this.fireOnCloseCommand_();if(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1){var g;((g=this.data)==null?0:g.onDismissCommands)&&_.jj(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.p.dataChanged_=function(){this.loading=!1};
Zn.prototype.dataChanged_=Zn.prototype.dataChanged_;Zn.prototype.closePopupHandler_=Zn.prototype.closePopupHandler_;Zn.prototype.openPopupHandler_=Zn.prototype.openPopupHandler_;Zn.prototype.onYtServiceRequestCompleted_=Zn.prototype.onYtServiceRequestCompleted_;Zn.prototype.onYtServiceRequestSent_=Zn.prototype.onYtServiceRequestSent_;_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Zn.prototype,"ytEventForwardingBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(EqX.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],Zn.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Zn.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Zn.prototype,"loading",void 0);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],Zn.prototype,"onYtServiceRequestSent_",null);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],Zn.prototype,"onYtServiceRequestCompleted_",null);
_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Zn.prototype,"openPopupHandler_",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Zn.prototype,"closePopupHandler_",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Zn.prototype,"dataChanged_",null);
_.Y([_.yc({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Zn);
_.X(Zn,"yt-unlimited-family-message-interstitial-renderer",function(){if(Z5G===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;gqc===void 0&&(gqc=document.createElement("template"));var Z=gqc;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Z5G=h}h=Z5G;return h},{mode:2});var M9p;var WAp;var Mk=function(){return _.D.apply(this,arguments)||this};
_.f(Mk,_.D);Mk.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"}}}};
Mk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.UB(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(h){h.onShow()});
_.UB(this.hostElement).querySelector("#main-thumbnail").onShow()};
Mk.prototype.onButtonTap_=function(h){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(h)};
Mk.prototype.computeMainThumbnailWidth_=function(h){return h&&h.length!==0?72:96};
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.Y([_.t(EqX.YtUnlimitedFamilyInterstitialBehavior),_.V("design:type",Object)],Mk.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Mk.prototype,"data",void 0);
_.Y([_.x({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.V("design:type",Number)],Mk.prototype,"mainThumbnailWidth_",void 0);_.Y([_.x({value:function(){return this.onButtonTap_.bind(this)}}),
_.V("design:type",Function)],Mk.prototype,"boundButtonTap_",void 0);_.Y([_.yc({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Mk);
_.X(Mk,"yt-unlimited-family-profile-interstitial-renderer",function(){if(WAp===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;M9p===void 0&&(M9p=document.createElement("template"));var Z=M9p;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);WAp=h}h=WAp;return h},{mode:2});var pqU;var GQp;var W7=function(){var h=_.D.apply(this,arguments)||this;h.sliderAriaValueText_=null;h.selectedIndex_=0;h.messages={PAUSE_SLIDER:_.NH("PAUSE_SLIDER",void 0,"Pause Duration")};return h};
_.f(W7,_.D);_.p=W7.prototype;_.p.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.p.onPopupOpened_=function(h){h.detail==this&&_.J("enable_premium_voluntary_pause")&&(_.BX(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.p.setDialogData=function(h){this.data=h;this.resetSlider_()};
_.p.dataChanged_=function(){this.data&&this.resetSlider_()};
_.p.onSubmitTap_=function(){if(this.data.confirmCommand){var h=this.data.confirmCommand;_.e(h,_.JgD)&&_.LZ(this.hostElement,[h,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.p.onExitButtonTap_=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.p.closePopupHandler_=function(h,E){(E&&E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.handleOnDismissCommands_()};
_.p.onSliderChange_=function(){this.selectedIndex_=_.UB(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.p.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.p.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.p.resetSlider_=function(){if(this.data){var h=this.data.defaultEndOptionIndex||0,E=_.UB(this.hostElement).querySelector("#id-pause-slider");if(E.immediateValue<h)for(;E.immediateValue!=h;)E.increment();else if(h<E.immediateValue)for(;E.immediateValue!=h;)E.decrement();this.selectedIndex_=h;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.p.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.jj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.jj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestSent=function(){this.loading=!0};
_.p.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
W7.prototype.onYtServiceRequestCompleted=W7.prototype.onYtServiceRequestCompleted;W7.prototype.onYtServiceRequestSent=W7.prototype.onYtServiceRequestSent;W7.prototype.closePopupHandler_=W7.prototype.closePopupHandler_;W7.prototype.dataChanged_=W7.prototype.dataChanged_;W7.prototype.onPopupOpened_=W7.prototype.onPopupOpened_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],W7.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],W7.prototype,"loading",void 0);_.Y([_.x(),_.V("design:type",Number)],W7.prototype,"selectIndexMax_",void 0);_.Y([_.x(),_.V("design:type",Object)],W7.prototype,"selectedData_",void 0);
_.Y([_.x(),_.V("design:type",Object)],W7.prototype,"sliderAriaValueText_",void 0);_.Y([_.x({value:function(){return this.onSubmitTap_.bind(this)}}),
_.V("design:type",Function)],W7.prototype,"onButtonTap_",void 0);_.Y([_.x({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.V("design:type",Function)],W7.prototype,"onSecondaryTap_",void 0);_.Y([_.x(),_.V("design:type",Object)],W7.prototype,"messages",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],W7.prototype,"onPopupOpened_",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],W7.prototype,"dataChanged_",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],W7.prototype,"closePopupHandler_",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],W7.prototype,"onYtServiceRequestSent",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],W7.prototype,"onYtServiceRequestCompleted",null);_.Y([_.yc({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],W7);
_.X(W7,"yt-unplugged-pause-membership-dialog-renderer",function(){if(GQp===void 0){var h=document.createElement("template");_.N(h,'\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>');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;pqU===void 0&&(pqU=document.createElement("template"));var Z=pqU;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);GQp=h}h=GQp;return h},{mode:2});var zfC;var ayc;var ph=function(){return _.D.apply(this,arguments)||this};
_.f(ph,_.D);ph.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.KO("vcBalanceRenderer")}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],ph.prototype,"data",void 0);_.Y([_.yc({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],ph);
_.X(ph,"yt-vc-offer-layout-header-renderer",function(){if(ayc===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;zfC===void 0&&(zfC=document.createElement("template"));var Z=zfC;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);ayc=h}h=ayc;return h},{mode:2});var cIG;var i5X;var oqR;var Iy0;var GX=function(){return _.D.apply(this,arguments)||this};
_.f(GX,_.D);GX.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ze.Object.defineProperties(GX.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)}}});
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.TJf.YtTappableItemBehavior),_.V("design:type",Object)],GX.prototype,"ytTappableItemBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],GX.prototype,"data",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.S("data.accessibilityText"),_.V("design:type",String),_.V("design:paramtypes",[])],GX.prototype,"ariaLabel",null);_.Y([_.x({reflectToAttribute:!0}),_.S("data.style"),_.V("design:type",String),_.V("design:paramtypes",[])],GX.prototype,"vcOfferStyle",null);_.Y([_.S("data.style","data.titleText"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],GX.prototype,"showTitleText",null);_.Y([_.yc({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],GX);
_.X(GX,"yt-vc-offer-renderer",function(){if(Iy0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;oqR===void 0&&(oqR=document.createElement("template"));var Z=oqR;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Iy0=h}h=Iy0;return h},{mode:2});var zX=function(){return _.D.apply(this,arguments)||this};
_.f(zX,_.D);zX.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],zX.prototype,"data",void 0);_.Y([_.yc({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],zX);
_.X(zX,"yt-vc-offer-layout-renderer",function(){if(i5X===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;cIG===void 0&&(cIG=document.createElement("template"));var Z=cIG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);i5X=h}h=i5X;return h},{mode:2});var RfG;var PEU;var BqI;var Uj0;var a7=function(){return _.D.apply(this,arguments)||this};
_.f(a7,_.D);a7.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}}}}}};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],a7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],a7.prototype,"data",void 0);_.Y([_.yc({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],a7);
_.X(a7,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Uj0===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;BqI===void 0&&(BqI=document.createElement("template"));var Z=BqI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);Uj0=h}h=Uj0;return h},{mode:2});var c7=function(){return _.D.apply(this,arguments)||this};
_.f(c7,_.D);c7.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"}}}}};
c7.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
c7.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var h=this.scrollable;h.attached&&typeof h.attached==="function"&&h.attached()};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.Sg("#scrollable"),_.V("design:type",Object)],c7.prototype,"scrollable",void 0);_.Y([_.x(),_.V("design:type",Object)],c7.prototype,"data",void 0);_.Y([_.yc({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],c7);
_.X(c7,"yt-ypc-offers-modal-renderer",function(){if(PEU===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;RfG===void 0&&(RfG=document.createElement("template"));var Z=RfG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);PEU=h}h=PEU;return h},{mode:2});var LAc;var jZG;var iR=function(){return _.D.apply(this,arguments)||this};
_.f(iR,_.D);_.p=iR.prototype;_.p.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.UB(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.p.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.BX(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.p.onYtPopupOpened_=function(h,E){(E==null?void 0:E.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.jj(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.p.onYtPopupClosed_=function(h,E){this.continueButtonTapped||E&&(E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.data.onDismissCommands&&_.jj(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.p.onYtServiceRequestError_=function(h){this.set("showSpinner",!1);_.uv(this.hostElement,h.detail.error.message)};
_.p.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.J("enable_ypc_spinners")?_.BX(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
iR.prototype.onYtServiceRequestError_=iR.prototype.onYtServiceRequestError_;iR.prototype.onYtPopupClosed_=iR.prototype.onYtPopupClosed_;iR.prototype.onYtPopupOpened_=iR.prototype.onYtPopupOpened_;iR.prototype.onYtServiceRequestCompleted_=iR.prototype.onYtServiceRequestCompleted_;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);
_.Y([_.x(),_.V("design:type",Object)],iR.prototype,"data",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],iR.prototype,"showSpinner",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],iR.prototype,"continueButtonTapped",void 0);_.Y([_.x({value:function(){return this.onContinueTapped_.bind(this)}}),
_.V("design:type",Function)],iR.prototype,"bindOnContinueTapped_",void 0);_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iR.prototype,"onYtServiceRequestCompleted_",null);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],iR.prototype,"onYtPopupOpened_",null);
_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],iR.prototype,"onYtPopupClosed_",null);_.Y([_.f3("yt-service-request-error"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],iR.prototype,"onYtServiceRequestError_",null);_.Y([_.yc({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],iR);
_.X(iR,"yt-ypc-upgrade-dialog-renderer",function(){if(jZG===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;LAc===void 0&&(LAc=document.createElement("template"));var Z=LAc;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);jZG=h}h=jZG;return h},{mode:2});var djI;var CEC;var o7=function(){return _.D.apply(this,arguments)||this};
_.f(o7,_.D);o7.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
o7.prototype.computeHasButtons_=function(h){return!(!h.dismissButton&&!h.confirmButton)};
o7.prototype.computeStyle_=function(h){return h||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],o7.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],o7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],o7.prototype,"data",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],o7.prototype,"positionType",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.V("design:type",Boolean)],o7.prototype,"hasButtons_",void 0);_.Y([_.x({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.V("design:type",Boolean)],o7.prototype,"style_",void 0);_.Y([_.yc({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],o7);
_.X(o7,"yt-bubble-hint-renderer",function(){if(CEC===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;djI===void 0&&(djI=document.createElement("template"));var Z=djI;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);CEC=h}h=CEC;return h},{mode:2});var JIp;var efC;var I7=function(){var h=_.a5.apply(this,arguments)||this;h.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return h};
_.f(I7,_.a5);_.p=I7.prototype;_.p.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.p.attached=function(){var h=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){h.$.thumbnail.onShow();h.$["header-image"].onShow()})};
_.p.handleCheckBoxUpdateAction_=function(h){this.canShowCheckboxEnabledConfirmButton=h};
_.p.computeUseOverlayForSpinner_=function(h,E){return!!h&&E};
_.p.computeShowSpinner_=function(h,E){return h||!!E};
_.p.fireOnCloseActions_=function(){var h,E=_.G(((h=this.data)==null?void 0:h.onClosedActions)||[]);for(h=E.next();!h.done;h=E.next())this.ytRendererBehavior.resolveCommand(h.value)};
_.p.fireOnOpenCommands_=function(h){var E,g=(E=this.data)==null?void 0:E.onOpenCommands;if(g)for(h.stopImmediatePropagation(),h=_.G(g),E=h.next();!E.done;E=h.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.p.fireOnDismissCommands_=function(h){var E,g=(E=this.data)==null?void 0:E.onDismissCommands;if(g)for(h.stopImmediatePropagation(),h=_.G(g),E=h.next();!E.done;E=h.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.p.openPopupHandler_=function(h){h.detail==this&&this.fireOnOpenCommands_(h)};
_.p.closePopupHandler_=function(h,E){_.U7(this,"yt-confirm-dialog-close-action",[E]);this.fireOnCloseActions_();(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.fireOnDismissCommands_(h)};
_.p.onHeaderImageChanged_=function(){var h;((h=this.data)==null?0:h.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.p.computeHasHeaderImageWidth_=function(h){return h!=void 0};
_.p.computeHasLoadingMessage=function(h){return!!h};
_.p.onHeaderImageWidthChanged_=function(){var h,E=(h=this.data)==null?void 0:h.headerImageWidth;if(E){if(h=1.25*E*2+E,this.$.main.style.width=h+"px",E=this.$.scroller.firstElementChild)E.style.minWidth=h+"px"}else this.$.main.style.width="100%"};
_.p.onThumbnailChanged_=function(){var h;((h=this.data)==null?0:h.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.p.onYtNavigate_=function(h){h=_.zw(h);h instanceof Node&&_.L3(this.$["confirm-button"]).contains(h)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.p.computePrimaryIsCancel_=function(h){return h};
_.p.computeIsCancelButtonHidden_=function(h){return h.skipCancelButton||!h.cancelButton};
_.p.computeIsCheckboxHidden_=function(h){return!h.checkbox};
_.p.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.p.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.p.onYtServiceRequestCompleted_=function(){var h;((h=this.data)==null?0:h.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ze.Object.defineProperties(I7,{template:{configurable:!0,enumerable:!0,get:function(){if(efC===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;JIp===void 0&&(JIp=document.createElement("template"));var Z=JIp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);efC=h}h=efC;return h}}});
I7.prototype.onYtServiceRequestCompleted_=I7.prototype.onYtServiceRequestCompleted_;I7.prototype.onYtServiceRequestSent_=I7.prototype.onYtServiceRequestSent_;I7.prototype.onThumbnailLoaded_=I7.prototype.onThumbnailLoaded_;I7.prototype.onYtNavigate_=I7.prototype.onYtNavigate_;I7.prototype.onThumbnailChanged_=I7.prototype.onThumbnailChanged_;I7.prototype.onHeaderImageWidthChanged_=I7.prototype.onHeaderImageWidthChanged_;I7.prototype.onHeaderImageChanged_=I7.prototype.onHeaderImageChanged_;
I7.prototype.closePopupHandler_=I7.prototype.closePopupHandler_;I7.prototype.openPopupHandler_=I7.prototype.openPopupHandler_;_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);
_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],I7.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],I7.prototype,"data",void 0);_.Y([_.x({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.V("design:type",Boolean)],I7.prototype,"primaryIsCancel",void 0);_.Y([_.x({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],I7.prototype,"isCancelButtonHidden",void 0);
_.Y([_.x({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.V("design:type",Boolean)],I7.prototype,"isCheckboxHidden",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],I7.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.Y([_.x({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.V("design:type",Boolean)],I7.prototype,"useOverlayForSpinner_",void 0);
_.Y([_.x({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.V("design:type",Boolean)],I7.prototype,"showSpinner_",void 0);_.Y([_.x({value:!1}),_.V("design:type",Boolean)],I7.prototype,"isActionInProgress_",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.V("design:type",Boolean)],I7.prototype,"hasHeaderImageWidth_",void 0);
_.Y([_.x({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.V("design:type",Boolean)],I7.prototype,"hasLoadingMessage",void 0);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],I7.prototype,"openPopupHandler_",null);_.Y([_.f3("yt-popup-closed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],I7.prototype,"closePopupHandler_",null);
_.Y([_.Nm("data.headerImage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I7.prototype,"onHeaderImageChanged_",null);_.Y([_.Nm("data.headerImageWidth"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I7.prototype,"onHeaderImageWidthChanged_",null);_.Y([_.Nm("data.thumbnail"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I7.prototype,"onThumbnailChanged_",null);
_.Y([_.f3("yt-navigate"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],I7.prototype,"onYtNavigate_",null);_.Y([_.f3("yt-img-shadow-loaded"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],I7.prototype,"onThumbnailLoaded_",null);_.Y([_.f3("yt-service-request-sent"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.A7]),_.V("design:returntype")],I7.prototype,"onYtServiceRequestSent_",null);
_.Y([_.f3("yt-service-request-completed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,_.Zd]),_.V("design:returntype")],I7.prototype,"onYtServiceRequestCompleted_",null);_.Y([_.yc({is:"yt-confirm-dialog-renderer",noInjection:!0})],I7);var qsx;var fyx;var R7=function(){return _.D.apply(this,arguments)||this};
_.f(R7,_.D);R7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.UB(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
R7.prototype.computeConfirmButton_=function(h){var E={text:h.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};h.confirmNavigationEndpoint?E.navigationEndpoint=h.confirmNavigationEndpoint:h.confirmServiceEndpoint&&(E.serviceEndpoint=h.confirmServiceEndpoint);return E};
R7.prototype.computeShowTitle_=function(h){return!(h==null||!h.title)};
_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],R7.prototype,"data",void 0);_.Y([_.x({computed:"computeShowTitle_(data)"}),_.V("design:type",Boolean)],R7.prototype,"showTitle",void 0);_.Y([_.yc({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],R7);
_.X(R7,"yt-fancy-dismissible-dialog-renderer",function(){if(fyx===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;qsx===void 0&&(qsx=document.createElement("template"));var Z=qsx;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);fyx=h}h=fyx;return h});var NqG;var t9X;var P7=function(){var h=_.D.apply(this,arguments)||this;h.spinnerActive=!1;return h};
_.f(P7,_.D);P7.prototype.created=function(){z1U(2201)};
P7.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
P7.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
P7.prototype.onIronOverlayClosed=P7.prototype.onIronOverlayClosed;P7.prototype.onIronOverlayOpened=P7.prototype.onIronOverlayOpened;_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.aR),_.V("design:type",Object)],P7.prototype,"tpYtIronOverlayBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],P7.prototype,"data",void 0);_.Y([_.x(),_.V("design:type",Object)],P7.prototype,"spinnerActive",void 0);
_.Y([_.f3("iron-overlay-opened"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P7.prototype,"onIronOverlayOpened",null);_.Y([_.f3("iron-overlay-closed"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],P7.prototype,"onIronOverlayClosed",null);_.Y([_.yc({is:"yt-loading-renderer",disableElementRegistration:!0})],P7);
_.X(P7,"yt-loading-renderer",function(){if(t9X===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;NqG===void 0&&(NqG=document.createElement("template"));var Z=NqG;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);t9X=h}h=t9X;return h},{mode:2});var Ssc;var xjG;var B7=function(){var h=_.D.apply(this,arguments)||this;h.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);h.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);h.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";h.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return h};
_.f(B7,_.D);_.p=B7.prototype;_.p.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.p.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.p.onDarkModeToggledAction=function(h){this.isDarkTheme=h};
_.p.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.p.openPopupHandler_=function(h){h.detail===this.hostElement&&this.hostElement.hidden&&_.BX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.p.onDismissButtonTap_=function(){var h;this.closeOnDismissButton_.has(((h=this.data)==null?void 0:h.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.BX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.onAcceptButtonTap_=function(){var h;this.closeOnAcceptButton_.has(((h=this.data)==null?void 0:h.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.BX(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.p.computeHasHeader_=function(h){return!!h.headerBackgroundImage};
_.p.computeLayoutStyle_=function(h){return h};
_.p.computePopupSize_=function(h){return h};
_.p.computeIconType_=function(h){return h.dialogIcon&&h.dialogIcon.iconType?h.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":h.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":h.dialogIcon.iconType:""};
_.p.computeIsLogo_=function(h){return!!h.dialogIcon&&!!h.dialogIcon.iconType&&(h.dialogIcon.iconType==="YOUTUBE_LOGO"||h.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||h.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.p.computeHasCustomLogo=function(h){return!(h==null||!h.headerForegroundImage)};
_.p.computeCustomLogo=function(h,E){if(h!=null&&h.headerForegroundImage)return h.headerForegroundImageDark?E?h.headerForegroundImageDark:h.headerForegroundImage:h.headerForegroundImage};
_.p.computeHeaderBackgroundImage=function(h,E){if(h!=null&&h.headerBackgroundImage)return E&&(h==null?0:h.headerBackgroundImageDark)?h.headerBackgroundImageDark:h.headerBackgroundImage};
_.p.shouldShowIconContainer=function(h,E){return h&&!E};
_.p.shouldShowNonYouTubeIcon=function(h,E){return!h&&!E};
_.p.getLogoImageId=function(h){var E,g,Z;return(h=(E=this.computeCustomLogo(h,this.isDarkTheme))==null?void 0:(g=E.thumbnails)==null?void 0:(Z=g[0])==null?void 0:Z.height)&&h%31===0?"custom-logo-with-padding":"custom-logo"};
B7.prototype.openPopupHandler_=B7.prototype.openPopupHandler_;B7.prototype.dataChanged_=B7.prototype.dataChanged_;_.Y([_.t(_.wK.YtRendererstamperBehavior),_.V("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.Y([_.x(),_.V("design:type",Boolean)],B7.prototype,"isDarkTheme",void 0);
_.Y([_.x({computed:"computeCustomLogo(data, isDarkTheme)"}),_.V("design:type",Object)],B7.prototype,"customLogo",void 0);_.Y([_.x({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.V("design:type",Object)],B7.prototype,"headerBackgroundImage",void 0);_.Y([_.x(),_.V("design:type",Object)],B7.prototype,"data",void 0);_.Y([_.x({computed:"computeHasHeader_(data)"}),_.V("design:type",Boolean)],B7.prototype,"hasHeader",void 0);
_.Y([_.x({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.V("design:type",Object)],B7.prototype,"layoutStyle",void 0);_.Y([_.x({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.V("design:type",Object)],B7.prototype,"popupSize",void 0);_.Y([_.x({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B7.prototype,"hasLogo",void 0);
_.Y([_.x({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.V("design:type",Boolean)],B7.prototype,"hasCustomLogo",void 0);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],B7.prototype,"dataChanged_",null);_.Y([_.f3("yt-popup-opened"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],B7.prototype,"openPopupHandler_",null);
_.Y([_.yc({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],B7);
_.X(B7,"yt-upsell-dialog-renderer",function(){if(xjG===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;Ssc===void 0&&(Ssc=document.createElement("template"));var Z=Ssc;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);xjG=h}h=xjG;return h},{mode:2});var wqJ=_.O(function(h){return _.R("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.R(_.P,{cond:h.title,then:function(E){return _.R("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},E)}}))},"Dh"),DjU=_.O(function(h){return _.R("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.R(_.Sv,{data:h.closeButton},{buttonViewModel:function(E){return _.R("div",null,_.R(_.$l,{data:E.data}))}}))},"Eh"),lyU=_.O(function(h){var E=h.data;
return _.R(_.zt,null,_.R("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.R("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.R(_.P,{cond:function(){return!!E().image&&!!E().title},
then:function(){return _.R(_.pO,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.R("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.R(_.P,{cond:function(){return E().title},
then:function(g){return _.R("h3",{class:"miniAppGameInfoDialogViewModelTitle"},g)}}),_.R(_.P,{cond:function(){return E().primaryGenre},
then:function(g){return _.R("span",{class:"miniAppGameInfoDialogViewModelGenre"},g)}}))),_.R(_.P,{cond:function(){var g=E().description;
return g&&g.length<=150},
then:function(){return _.R("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.R("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return E().description}))}}))},"Fh"),rIR=_.O(function(h){h=h.infoRows;
var E=_.GF().resolve(_.Lv),g=_.J("enable_displaying_ppn");return _.R("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.R(_.SX,{each:h},function(Z){return _.R("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.R(_.P,{cond:function(){return Z.label},
then:function(M){return _.R("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},M)}}),_.R(_.P,{cond:function(){return Z.attributedLabel},
then:function(M){return _.R("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.R(_.dK,{text:M,noPreWrap:!0}))}}),_.R(_.P,{cond:function(){return Z.value},
then:function(M){return _.R("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},M)}}),_.R(_.P,{cond:function(){return Z.attributedValue},
then:function(M){return _.R("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.R(_.dK,{text:M,noPreWrap:!0}))}}))}),_.R(_.P,{cond:function(){return g&&E.clientData.has("post_play_nonce")},
then:function(){return _.R("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.R("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.R("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},E.getData("post_play_nonce")))}}))},"Gh"),mjU=_.O(function(h){var E=h.data;
return _.R("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.R(wqJ,{title:function(){return E().dialogTitle}}),_.R(lyU,{data:E}),_.R(_.P,{cond:function(){return E().infoRow},
then:function(g){return _.R(rIR,{infoRows:g})}}),_.R(DjU,{closeButton:function(){return E().closeButton}}))},"Hh");
mjU.idomCompat=!0;_.I9(mjU,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;return _.R("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.R(_.pO,{data:function(){return E().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.R("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.R(_.P,{cond:function(){var g=E().ytLogo;return g?g.iconType:null},
then:function(g){return _.R(_.Ni,{icon:g,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.R("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.R("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.R(_.dK,{text:function(){return E().body}})),_.R("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.R(_.dK,{text:function(){return E().verifyStateText}}))),
_.R("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.R("div",null,_.R(_.Sv,{data:function(){return E().dismissButton}},{buttonViewModel:_.$l})),_.R("div",null,_.R(_.Sv,{data:function(){return E().linkParentButton}},{buttonViewModel:_.$l})))))},"Ih"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.C6}});var vqU=_.O(function(h){var E=h.data;h=_.zl(function(){return E().agreements},[]);
return _.R("installment-agreements-view-model",{class:_.CO("ytInstallmentAgreementsViewModelHost")},_.R(_.SX,{each:h},function(g){return _.R("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.R(_.dK,{text:g.label})),_.R("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.R(_.Sv,{data:function(){return g.openButton}},{buttonViewModel:_.$l})))}))},"Jh");
vqU.idomCompat=!0;var H5J=_.O(function(h){var E=_.G(_.qi(function(){var A,E4;return((A=h.data().createPlaylistDialogFormSchema)==null?0:(E4=A.initialValues)==null?0:E4.title)?h.data().createPlaylistDialogFormSchema.initialValues.title:""})),g=E.next().value,Z=E.next().value;
E=_.G(_.qi(function(){h.data();return!1}));
var M=E.next().value,W=E.next().value;E=_.G(_.qi(function(){h.data();return!1}));
var z=E.next().value,c=E.next().value;E=_.G(_.qi(function(){var A,E4;return(A=h.data().createPlaylistDialogFormSchema)==null?void 0:(E4=A.initialValues)==null?void 0:E4.visibility}));
var I=E.next().value,B=E.next().value;E=_.G(_.qi(function(){h.data();return!1}));
var U=E.next().value,L=E.next().value;E=_.G(_.qi(function(){var A,E4;return(A=h.data().createPlaylistDialogFormSchema)==null?void 0:(E4=A.initialValues)==null?void 0:E4.isCollaborative}));
var d=E.next().value,C=E.next().value,q=_.hf("div");_.lX(function(){var A=q.value.querySelector("textarea");A&&(A.value=g())},"sgS9sc");
_.vJ(function(){var A;_.hw0((A=h.data().createPlaylistDialogFormSchema)==null?void 0:A.id,{onSubmit:function(){var E4=g();var iO=I(),RW=d(),NN=h.data();E4={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:E4,privacyStatus:iO,videoIds:NN.videoIds,sourcePlaylistId:NN.sourcePlaylistId,params:RW?NN.createPlaylistParamsCollaborationEnabled:NN.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.GF().resolve(_.zF).resolveCommand(E4)},
isValid:function(){return M()&&!z()&&!U()}})});
var w=function(A){if(A!==void 0&&(Z(A),!M()&&A.length>0&&W(!0),M())){var E4=B5i(h.data());if(E4){var iO=E4.minLength;E4=E4.maxLength;iO&&A.length<iO?c(!0):E4&&A.length>E4?c(!0):c(!1)}}},r=function(){var A=!(!d()||I()!=="PRIVATE");
L(A)},v=function(A){A!==void 0&&(B(A),r())},H=function(){if(U())return LzZ(h.data())},u=function(){C(!d());
r()},k=function(){return{validate:function(A){if(M()){var E4=B5i(h.data());
if(E4){var iO=E4.minLength;E4=E4.translations;if(iO&&A.length<iO)return E4==null?void 0:E4.minLengthErrorMessage}}}}},y=function(){var A=B5i(h.data()),E4=A==null?void 0:A.maxLength,iO;
A=A==null?void 0:(iO=A.translations)==null?void 0:iO.maxLengthErrorMessage;if(E4&&A)return{maxChars:E4,errorMessage:A}};
return _.R("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.R("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:q},_.R(_.Sv,{data:function(){return h.data().playlistTitle}},{textFormFieldViewModel:function(A){return _.R(_.sTp,{data:A.data,
text:g,onInput:w,validation:k,characterLimit:y})},
textFieldViewModel:function(A){return _.R(_.YvU,{data:A.data,text:g,onInput:w,validation:k,characterLimit:y})}})),_.R("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.R(_.Sv,{data:function(){return h.data().playlistVisibility}},{dropdownViewModel:function(A){return _.R(_.ENJ,{data:A.data,
onSelected:v,error:H})}})),_.R(_.P,{cond:function(){return!!h.data().playlistCollaborate},
then:function(){return _.R("div",null,_.R(_.Sv,{data:function(){return h.data().playlistCollaborate}},{switchListItemViewModel:function(A){return _.R(_.y8D,{data:A.data,
onTap:u})}}))}}))},"Kh");var $jc=_.O(function(h){var E=h.data;return _.R("upsell-offer-table-cell-content-view-model",null,_.R("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.R(_.DG,null,_.R(_.x3,{when:function(){return E().iconType}},function(){return _.R("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.R(_.Ni,{icon:function(){return E().iconType.toString()}}))}),_.R(_.x3,{when:function(){return E().title}},function(){return _.R(_.dK,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return E().title}})}),_.R(_.x3,{when:function(){return E().subtitle}},function(){return _.R(_.dK,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return E().subtitle}})}),_.R(_.x3,{when:function(){return E().infoText}},function(){return _.R(_.dK,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return E().infoText}})}),_.R(_.x3,{when:function(){return E().featureDescription}},function(){return _.R(_.dK,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.R(_.x3,{when:function(){return E().note}},function(){return _.R(_.dK,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return E().note}})}))))},"Lh");
$jc.idomCompat=!0;var KAZ=_.O(function(h){var E=h.data;return _.R("upsell-offer-table-cell-view-model",null,_.R("div",{class:_.CO("ytUpsellOfferTableCellViewModelCellWrapper",function(){return E().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.R(_.Sv,{data:function(){return E().contents}},{upsellOfferTableCellContentViewModel:$jc})))},"Mh");
KAZ.idomCompat=!0;var O5U=_.O(function(h){var E=h.data;var g=h.upsellTableIsFirstRow;var Z=function(){return(g==null?0:g())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},M=function(){return(g==null?0:g())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.R("ytm-upsell-offer-table-row-view-model",null,_.R("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.R(_.Sv,{data:function(){return E().rowHeaderCell}},{upsellOfferTableCellViewModel:function(W){return _.R("div",{class:Z},_.R(KAZ,{data:W.data}))}}),_.R(_.Sv,{data:function(){return E().contentCells}},{upsellOfferTableCellViewModel:function(W){return _.R("div",{class:M},_.R(KAZ,{data:W.data}))}})))},"Nh");
O5U.idomCompat=!0;var nqC=_.O(function(h){var E=h.data;return _.R("ytm-upsell-offer-table-view-model",null,_.R("div",{class:"ytUpsellOfferTableViewModelHost"},_.R("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.R(_.Sv,{data:function(){return E().rows}},{upsellOfferTableRowViewModel:function(g,Z){return _.R(O5U,{data:g.data,
upsellTableIsFirstRow:function(){return Z()===0}})}}))))},"Oh");
nqC.idomCompat=!0;var XqU=_.O(function(h){var E=_.zl(h.noPadding,!1),g=function(){var W,z;return(z=(W=h.data().logo.accessibilityData)==null?void 0:W.label)!=null?z:""},Z=function(){return h.data().offerTable},M={};
return _.R("upsell-view-model",{class:_.CO("ytUpsellViewModelHost",(M.ytUpsellViewModelHostNoPadding=function(){return E()},M.ytUpsellViewModelHostWide=function(){return Z()!==void 0},M))},_.R("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.R(_.P,{cond:function(){return _.yS(h.data().logo)},
then:function(W){return _.R(_.pO,{data:W,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:g})}})),_.R("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.R(_.dK,{text:function(){return h.data().title}})),_.R("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.R(_.SX,{each:function(){var W;
return(W=h.data().subtitles)!=null?W:[]},
keyBy:"INDEX"},function(W){var z={};return _.R("div",{class:_.CO("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(z.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return Z()!==void 0},z))},_.R(_.dK,{text:W}))})),_.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.R(_.SX,{each:function(){var W;
return(W=h.data().benefitInfos)!=null?W:[]},
keyBy:"INDEX"},function(W){return _.R(_.P,{cond:function(){return W().info},
then:function(z){return _.R("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.R(_.Ni,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.R(_.dK,{text:z}))}})})),_.R(_.P,{cond:function(){return Z()!==void 0},
then:function(){return _.R("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.R(nqC,{data:Z}))}}),_.R("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.R(_.SX,{each:function(){var W;
return(W=h.data().legalInfos)!=null?W:[]},
keyBy:"INDEX"},function(W){var z={};return _.R("div",{class:_.CO("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(z.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return Z()!==void 0},z))},_.R(_.dK,{text:W}))})))},"Ph");var YsC=_.O(function(h){var E=h.data;h={};h=(h.ytMiniAppScoreChallengeViewModelScoreRadial=!0,h.ytMiniAppScoreChallengeViewModelDarkScoreRadial=jJc(),h);return _.R("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.R("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return E().title}),_.R("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return E().subtitle}),_.R("div",{class:_.v3(h)},_.R("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return E().score})),_.R("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return E().prompt}))},"Qh");var sZJ=function(){this.store=_.pL();this.formId=""};
sZJ.prototype.onInit=function(h){h.formId&&(this.formId=h.formId,this.store.dispatch(_.RY({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var V9C=_.O(function(h){function E(c){if(c&&(c=_.e(c,_.Dd)))return Object.assign({},c,{isSelected:W()})}
var g=_.G(_.qi(function(){var c,I;return(I=(c=_.e(h.data().option,_.Dd))==null?void 0:c.isSelected)!=null?I:!1})),Z=g.next().value,M=g.next().value,W=Z;
_.vJ(function(){var c;_.hw0((c=h.data().formSchema)==null?void 0:c.id,{onSubmit:function(){var I=_.GF().resolve(_.zF),B=!!h.data().selectedCommand,U=!!h.data().unselectedCommand;if(W()){if(B)var L=h.data().selectedCommand}else U&&(L=h.data().unselectedCommand);L=_.kB(L);E(h.data().option)&&!L?(I="",!B&&U?I="selected ":B&&!U&&(I="unselected "),B=new _.xX("No "+I+"command found for SelectionListItemFormViewModel"),_.$W(B)):L&&I.resolveCommand(L)},
isValid:function(){return!0}})});
var z=function(){M(!W())};
_.r9(function(){var c,I,B=(c=h.data())==null?void 0:(I=c.formSchema)==null?void 0:I.id;B&&_.NI()().delete(B)});
return _.R("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.R("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.R(_.dK,{text:function(){return h.data().paragraph}})),_.R(_.P,{cond:function(){return E(h.data().option)},
then:function(c){return _.R(_.zo,{data:c,isCompact:!0,hideSelectionTextChevron:!0,onTap:z,disableHorizontalPadding:!0})}}))},"Rh");var kQ0=_.O(function(h){var E=h.data;var g=h.disablePadding;var Z=h.className;var M=_.hf("yt-dialog-header-view-model"),W=function(){var c=E().imageBanner;a:switch(E().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var I="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:I="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:c,style:I,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},z=function(){return E().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.vJ(function(){var c=function(){_.BX(M.value,"yt-refit-popups-action")},I;
(I=M.value)==null||I.addEventListener("image-loaded",c);_.r9(function(){var B;(B=M.value)==null||B.removeEventListener("image-loaded",c)})});
h={};return _.R("yt-dialog-header-view-model",{el:M,class:_.CO(Z,(h.ytDialogHeaderViewModelHost=!0,h.ytDialogHeaderViewModelHostDisablePadding=g,h))},_.R(_.P,{cond:function(){return E().imageBanner},
then:function(){var c={};return _.R("div",{class:_.CO(Z,(c.ytDialogHeaderViewModelBanner=!0,c.ytDialogHeaderViewModelBannerFullBleed=z,c)),style:_.fO({"max-height":function(){return E().assetContainerMaxHeight!==void 0?E().assetContainerMaxHeight+"px":void 0}})},_.R(_.wS,{data:W,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.R(_.P,{cond:function(){return E().headerBlock},
then:function(){return _.R("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.R(_.Sv,{data:function(){return E().headerBlock}},{contentPreviewImageViewModel:function(c){return _.R(_.wS,{data:c.data,
notifyOnLoaded:!0})}}))}}),_.R(_.P,{cond:function(){return E().customBanner},
then:function(c){return _.R("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.R(_.Sv,{data:c},{avatarStackViewModel:_.p0}))}}),_.R(_.P,{cond:function(){return E().headline},
then:function(c){return _.R("h2",null,_.R(_.dK,{text:c,className:"ytDialogHeaderViewModelText"}))}}))},"Sh");
kQ0.idomCompat=!0;var yII=_.O(function(h){var E=_.kId(function(){return h.data().formId}),g=E.submitForm,Z=E.isValid;
return _.R("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.R(_.Sv,{data:function(){return h.data().panelFooter}},{panelFooterViewModel:function(M){return _.R(_.wR,{data:M.data,
disablePadding:!0,disablePrimaryButton:function(){return!Z()},
onClickPrimaryButton:function(){g()}})}}))},"Th");var FA0=_.O(function(h){var E=function(){var g,Z;return(Z=(g=_.e(h.data().rendererContext,_.te))==null?void 0:g.label)!=null?Z:""};
return _.R("yt-dialog-image-content-view-model",{class:_.CO("ytDialogImageContentViewModelHost",h.className)},_.R(_.P,{cond:function(){return _.yS(h.data().image)},
then:function(g){var Z={};return _.R("div",{style:_.fO((Z.width=(0,_.WE)(function(){var M;return(M=h.data().imageMaxWidth)!=null?M:""}),Z)),
class:"ytDialogImageContentViewModelImage"},_.R(_.pO,{data:g,alt:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.R(_.dK,{text:function(){return h.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Uh");var b5U=_.O(function(h){var E=_.au(h,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),g=E.elRefCallback;h=E.iconWiz;var Z=E.assetWiz,M=E.assetType,W=E.titleWiz,z=E.leadingActionHeaderWiz,c=E.trailingActionHeaderWiz,I=E.headerPosition,B=E.contentWiz,U=E.buttonLayout,L=E.buttonStyle,d=E.primaryButtonWiz,C=E.secondaryButtonWiz,q=E.contentAlignment,w=E.isFullscreen,r=E.width,v=E.maxHeight,H=E.isHeaderWizDefined,
u=E.headerWiz,k=E.isFooterWizDefined,y=E.footerWiz;E=_.hf("dialog-layout",function(Ha){g==null||g(Ha)});
var A=Z?function(){return Z({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,E4=d?function(){var Ha={};
return d({buttonOverrides:function(){return{style:(L==null?void 0:L())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.CO((Ha["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ha["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(U==null?void 0:U())===0||(U==null?void 0:U())===2},Ha))})}:void 0,iO=C?function(){var Ha={};
return C({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.CO((Ha["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ha["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(U==null?void 0:U())===0||(U==null?void 0:U())===2},Ha))})}:void 0,RW=function(){return(!!W||!!z||!!c)&&I()===0},NN={},Cd={},Ba={},$$={};
return _.R("dialog-layout",{el:E,class:_.CO((NN["yt-spec-dialog-layout"]=!0,NN["yt-spec-dialog-layout--dialog-layout-fullscreen"]=w,NN["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!w()},NN["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return v()===1},NN["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(M==null?void 0:M())===1},NN)),
style:function(){return(r==null?void 0:r())!==void 0?"width: "+r+"px;":""}},h?_.R("div",{class:_.CO((Cd["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Cd["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!Z&&I()===1},Cd["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return q()===1},Cd))},_.R(h,null)):null,_.R(_.P,{cond:H,
then:function(){return u?_.R("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.R(u,null)):null},
else:function(){return _.R(_.zt,null,_.R(_.P,{cond:RW,then:function(){return _.R(AIC,{contentAlignment:q,LeadingActionHeader:z,TrailingActionHeader:c,Title:W,isAboveAsset:!!A})}}),A?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.R(A,null)):null)}}),_.R("div",{class:_.CO((Ba["yt-spec-dialog-layout__dialog-layout-container"]=!0,Ba["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(q==null?void 0:q())===1},Ba["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!W&&!(u&&H())||!!A&&(I==null?void 0:I())===0},Ba))},_.R(_.P,{cond:function(){return W&&!u&&(I==null?void 0:I())===1},
then:function(){return _.R(AIC,{contentAlignment:q,LeadingActionHeader:z,TrailingActionHeader:c,Title:W,isAboveAsset:!1})}}),B?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.R(B,null))):null,_.R(_.P,{cond:k,
then:function(){return y?_.R("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.R(y,null)):null}}),E4||iO?_.R(Tqc,{footerClasses:_.CO(($$["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,$$["yt-spec-dialog-layout__dialog-layout-footer"]=!0,$$["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(U==null?void 0:U())===2},$$["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(U==null?void 0:U())===1},$$)),
PrimaryButton:E4,SecondaryButton:iO}):null))},"Vh"),AIC=_.O(function(h){var E=_.au(h,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),g=E.contentAlignment,Z=E.LeadingActionHeader;h=E.Title;var M=E.TrailingActionHeader,W=E.isAboveAsset,z=E.enableLeadingActionHeader;E={};return _.R("div",{class:_.CO((E["yt-spec-dialog-layout__dialog-header-container"]=!0,E["yt-spec-dialog-layout__dialog-header"]=!0,E["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=W,E["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(g==null?void 0:g())===1&&z()},E))},_.R(_.P,{cond:function(){return z()},
then:function(){return Z?_.R("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.R(Z,null)):null}}),h?_.R("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.R(h,null)):null,M?_.R("div",null,_.R(M,null)):null)},"Wh"),Tqc=_.O(function(h){var E=h.footerClasses;
var g=h.PrimaryButton;h=h.SecondaryButton;return _.R("div",{class:E},h?_.R(h,null):null,g?_.R(g,null):null)},"Xh");var u0U=_.O(function(h){var E=h.data;return _.R("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.R("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.R(_.Sv,{data:function(){return E().avatar}},{avatarViewModel:_.Mq})),_.R("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R(_.dK,{text:function(){return E().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Yh");var QZX=_.O(function(h){return _.R("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.R(_.dK,{text:function(){return h.data().inviteMessage}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.R(_.dK,{text:function(){return h.data().attributedAccountSectionHeaderText}})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.R(_.Sv,{data:function(){return h.data().accountAvatar}},{avatarViewModel:_.Mq}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.R(_.dK,{text:function(){return h.data().accountName}}),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.R(_.dK,{text:function(){return h.data().handle}}))),_.R(_.Sv,{data:function(){return h.data().trailingButton}},{buttonViewModel:_.$l})),_.R("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.R(_.dK,{text:function(){return h.data().termsOfService}})))},"Zh");var hDR=_.O(function(h){var E=h.data;return _.R("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.R("div",{class:"ytAccessConfirmationViewModelContent"},_.R(_.Sv,{data:function(){var g;return(g=E().avatar)!=null?g:E().dualAvatar}},{dualAvatarViewModel:function(g){return _.R(_.mQf,{data:g.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(g){return _.R(_.W0,{data:g.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.R("h2",{class:"ytAccessConfirmationViewModelTitle"},_.R(_.dK,{text:function(){return E().title}})),_.R(_.dK,{text:function(){return E().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"$h");var Ef0=_.O(function(h){var E=h.data;var g=void 0;h=_.G(_.qi(function(){var B;return((B=_.e(E().content,_.hp))==null?void 0:B.defaultSelectedKey)||""}));
var Z=h.next().value,M=h.next().value,W,z=function(){M("");var B;(B=g)!=null&&B.store.dispatch(_.RY({type:"RESET_COMMAND_MAP"}))};
_.vJ(function(){g=new sZJ;window.addEventListener("yt-popup-closed",z)});
_.lX(function(){if(g&&W!==E().formId&&(g.onInit(E()),(W=E().formId)&&Z())){var B=g,U={key:Z()};U.command&&B.store.dispatch(z7x(W,U.command))}},"c2n8Gf");
_.r9(function(){window.removeEventListener("yt-popup-closed",z)});
var c=function(B,U,L){U.key&&L&&U.key!==Z()&&(M(U.key),g&&U.command&&g.store.dispatch(z7x(L,U.command)))},I=function(){if(_.e(E().content,_.hp))return!(Z==null?0:Z())};
return _.R("yt-dialog-view-model",{class:_.CO("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.R(b5U,{headerWiz:function(){return _.R("span",{skip:!0},_.R(_.Sv,{data:function(){return E().header}},{dialogHeaderViewModel:function(B){return _.R(kQ0,{data:B.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!E().header},
contentWiz:function(){return _.R("span",{skip:!0},_.R(_.Sv,{data:function(){return E().customContent?E().customContent:E().content}},{basicContentViewModel:_.K2x,
createPlaylistDialogFormViewModel:H5J,collaborativePlaylistInviteMessageViewModel:QZX,miniAppScoreChallengeViewModel:YsC,radioButtonGroupViewModel:function(B){var U=B.data;return _.R(_.KOc,{data:U,selectedKey:Z,onSelected:c,groupName:function(){return U().formId}})},
selectionListItemFormViewModel:V9C,upsellViewModel:function(B){return _.R(XqU,{data:B.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:u0U,installmentAgreementsViewModel:vqU,accessConfirmationViewModel:hDR,listViewModel:function(B){return _.R(_.EGm,{data:B.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:FA0}))},
footerWiz:function(){return _.R("span",{skip:!0},_.R(_.Sv,{data:function(){return E().footer}},{panelFooterViewModel:function(B){return _.R(_.wR,{data:B.data,
disablePadding:!0,disablePrimaryButton:I})},
formPanelFooterViewModel:yII,formFooterViewModel:function(B){return _.R(_.rfJ,{data:B.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!E().footer}}))},"ai");
Ef0.idomCompat=!0;_.I9(Ef0,"yt-dialog-view-model",{props:{data:_.C6},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var gfc=_.O(function(h){var E=h.data;h={};return _.R("yt-panel-header-view-model",{class:_.CO("ytPanelHeaderViewModelHost",(h.ytPanelHeaderViewModelHostHideDivider=function(){return!!E().shouldHideDivider},h.ytPanelHeaderViewModelHostCompact=function(){return!!E().subtitle},h))},_.R("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.R(_.P,{cond:function(){return E().title},
then:function(g){return _.R("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.R(_.dK,{text:g,className:"ytPanelHeaderViewModelTitle"}))}}),_.R(_.P,{cond:function(){return E().subtitle},
then:function(g){return _.R(_.dK,{text:g,className:"ytPanelHeaderViewModelSubtitle"})}})),_.R("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.R(_.Sv,{data:function(){return E().trailingButtons}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
className:"ytPanelHeaderViewModelButton"})}})))},"bi");
gfc.idomCompat=!0;var ZGc=_.O(function(h){var E=_.J7(function(W){var z;if((z=h.skipContentClick)==null?0:z.call(h))return!1;h.onContentWrapperClick(W);return!0}),g,Z,M;
return _.R("div",{class:_.CO("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return h.isAnimating()?"transform: translateY("+h.currentY()+"px);transition: 0.2s":""}},(g=h.header)==null?void 0:g.call(h),_.R("div",{id:h.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.fO({"max-height":(0,_.WE)(h.maxHeightForContentWrapper)}),"on:scroll":enC(h.onScroll),"on:touchmove":enC(function(W){return void W.stopPropagation()})},_.R("div",{el:{onRender:h.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":E},(Z=h.body)==null?void 0:Z.call(h))),(M=h.footer)==null?void 0:M.call(h))},"ci");
ZGc.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var MCp=_.O(function(h){var E=_.zl(h.leadingLabel),g=_.zl(h.trailingLabel),Z=_.zl(h.footerButtonType),M=function(){return E()||g()||h.hasPrimaryButton()||h.hasSecondaryButton()},W={},z=_.CO("yt-spec-bottom-sheet-layout__primary-button",(W["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return Z()===0&&h.hasPrimaryButton()},W["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return Z()===1&&h.hasPrimaryButton()},W["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return Z()===2&&h.hasPrimaryButton()},W["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return Z()===3&&h.hasPrimaryButton()},W));
W={};var c=_.CO("yt-spec-bottom-sheet-layout__secondary-button",(W["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return Z()===1&&h.hasSecondaryButton()},W["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return Z()===2&&h.hasSecondaryButton()},W["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return Z()===3&&h.hasPrimaryButton()},W));
return _.R(_.P,{cond:h.hasFooterOverride,then:function(){var I;return _.R(_.zt,null,(I=h.footerOverride)==null?void 0:I.call(h))},
else:function(){return _.R(_.P,{cond:M,then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.R(_.P,{cond:function(){return E()||g()},
then:function(){var I={};return _.R("div",{class:_.CO("yt-spec-bottom-sheet-layout__footer-label-wrapper",(I["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!h.hasPrimaryButton()},I))},_.R(_.P,{cond:E,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},E)}}),_.R(_.P,{cond:g,
then:function(){return _.R("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},g)}}))}}),_.R(_.P,{cond:function(){return h.hasPrimaryButton()||h.hasSecondaryButton()},
then:function(){var I={};return _.R("div",{class:_.CO("yt-spec-bottom-sheet-layout__footer-button-wrapper",(I["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.VhF,I))},_.R(_.P,{cond:function(){return h.hasSecondaryButton()&&Z()!==0},
then:function(){var B;return _.R("div",{class:c},(B=h.secondaryButton)==null?void 0:B.call(h))}}),_.R(_.P,{cond:h.hasPrimaryButton,
then:function(){var B;return _.R("div",{class:z},(B=h.primaryButton)==null?void 0:B.call(h))}}))}}))}})}})},"di");
MCp.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var W_G=_.O(function(h){var E=_.zl(h.title),g=_.zl(h.subtitle);return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:h.headerId,"on:touchstart":_.J7(function(Z){var M;(M=h.touchstart)==null||M.call(h,Z);return!1}),
"on:touchmove":_.J7(function(Z){var M;(M=h.touchmove)==null||M.call(h,Z);return!1}),
"on:touchend":_.J7(function(Z){var M;(M=h.touchend)==null||M.call(h,Z);return!1})},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.R(_.P,{cond:h.hasHeaderOverride,
then:function(){var Z;return _.R(_.zt,null,(Z=h.headerOverride)==null?void 0:Z.call(h))},
else:function(){var Z={};return _.R("div",{class:_.CO((Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=E,Z))},_.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.R(_.P,{cond:E,then:function(){return _.R(_.zt,null,_.R("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},E),_.R(_.P,{cond:g,then:function(){return _.R("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
g)}}))}})),_.R(_.P,{cond:function(){return E()&&h.hasActionHeader()},
then:function(){var M;return _.R("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(M=h.actionHeader)==null?void 0:M.call(h))}}))}}))},"ei");
W_G.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.O(function(h){function E(A){if(!v&&typeof MutationObserver!=="undefined"){var E4={childList:!0};"MutationObserver"in window&&(v=new MutationObserver(g.bind(void 0,A)),v.observe(A,E4))}}
function g(A){typeof v!=="undefined"&&(H["content-wrapper"]===void 0&&(H["content-wrapper"]=A.children[0].clientHeight),C(H["content-wrapper"]),d()>q()||w(d()))}
function Z(){L(window.innerHeight);d()>q()||w(d());u.isFullScreen[0]()&&d()>q()?k().dispatch("Snap To Full Screen",{maxHeight:r()}):k().dispatch("Snap To Neutral Position",{maxHeight:q()})}
function M(A){document.body.style.overscrollBehavior="none";A.preventDefault();k().dispatch("Touch Start",{event:A})}
function W(A){A.preventDefault();k().dispatch("Touch Move",{event:A,contentScrollable:d()>q(),fullContentWrapperHeight:r(),contentWrapperHeight:q(),contentHeightMap:H,contentWrapperId:"content-wrapper",header:fdp(h),footer:fdp(h)})}
function z(){document.body.style.overscrollBehavior="";u.isFullScreen[0]()?u.currentY[0]()>=60?k().dispatch("Snap To Neutral Position",{maxHeight:q()}):k().dispatch("Snap To Full Screen",{maxHeight:r()}):u.currentY[0]()>=60?c():u.currentY[0]()<=-60&&d()>q()?k().dispatch("Snap To Full Screen",{maxHeight:r()}):k().dispatch("Snap To Neutral Position",{maxHeight:q()})}
function c(){k().dispatch("Close Sheet",{clientHeight:U(),maxHeight:0});setTimeout(function(){qzX()},250)}
var I=_.G(_.Bm(window.innerHeight,void 0,"Q6Nekc")),B=I.next().value;I=I.next().value;var U=B,L=I;I=_.G(_.Bm(0,void 0,"vjnlmb"));B=I.next().value;I=I.next().value;var d=B,C=I;I=_.G(_.qi(function(){var A=fdp(h);return.6*U()-dIJ(A)-CvJ(A)}));
B=I.next().value;I=I.next().value;var q=B,w=I,r=function(){var A=fdp(h);return U()-dIJ(A)-CvJ(A)-24-24},v=null,H={},u={initialY:_.Bm(0,void 0,"B0aY2c"),
currentY:_.Bm(0,void 0,"nLPMcf"),isAnimating:_.Bm(!1,void 0,"lXnnZ"),isFullScreen:_.Bm(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.qi(q)},k=function(){var A=null;return function(){if(!A){var E4={initialY:u.initialY[0](),currentY:u.currentY[0](),isAnimating:u.isAnimating[0](),isFullScreen:u.isFullScreen[0](),maxHeightForContentWrapper:u.maxHeightForContentWrapper[0]()};A=JUC(E4)}return A}}();
_.vJ(function(){window.addEventListener("resize",Z);k().subscribe(function(A){u.initialY[1](A.initialY);u.currentY[1](A.currentY);u.isAnimating[1](A.isAnimating);u.isFullScreen[1](A.isFullScreen);u.maxHeightForContentWrapper[1](A.maxHeightForContentWrapper)})});
_.r9(function(){window.removeEventListener("resize",Z);v&&(v.disconnect(),v=null)});
var y=_.CO({"bottom-sheet-content-without-icon":function(){var A;return!((A=h.shouldShowIcons)==null?0:A.call(h))}});
return _.R("bottom-sheet-layout",null,_.R(ZGc,{contentWrapperId:"content-wrapper",isAnimating:function(){return u.isAnimating[0]()},
currentY:function(){return u.currentY[0]()},
maxHeightForContentWrapper:function(){return u.maxHeightForContentWrapper[0]()},
shouldShowIcons:h.shouldShowIcons,skipContentClick:h.skipContentClick,onScroll:function(){var A=document.getElementById("header-wrapper"),E4=document.getElementById("content-wrapper");if(A&&E4){var iO={};iO=(iO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,iO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,iO);A.className=E4.scrollTop>1?_.v3(iO):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:qzX,contentWrapperEl:function(A){E(A);requestAnimationFrame(function(){g(A)})},
header:function(){return _.R(W_G,{touchstart:M,touchmove:W,touchend:z,title:h.headerTitle,subtitle:h.headerSubtitle,headerId:"header-wrapper",headerOverride:h.headerFn,hasHeaderOverride:h.hasHeaderFn,actionHeader:h.headerActionHeader,hasActionHeader:h.hasHeaderActionHeader})},
footer:function(){return _.R(MCp,{footerButtonType:h.footerButtonType,leadingLabel:h.footerLeadingLabel,trailingLabel:h.footerTrailingLabel,primaryButton:h.footerPrimaryButton,hasPrimaryButton:h.hasFooterPrimaryButton,secondaryButton:h.footerSecondaryButton,hasSecondaryButton:h.hasFooterSecondaryButton,footerOverride:h.footerFn,hasFooterOverride:h.hasFooterFn})},
body:function(){return _.R(_.P,{cond:h.hasContentFn,then:function(){var A;return _.R("div",{class:y},(A=h.contentFn)==null?void 0:A.call(h))}})}}))},"fi").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var pfG=_.O(function(h){var E=_.GF().resolve(_.hz);return _.R("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.J7(function(){return void E.closeSheet()})},_.R(_.P,{cond:function(){return!!h.header},
then:function(){return _.R("div",{class:"ytContextualSheetLayoutHeaderContainer"},h.header())}}),_.R(_.P,{cond:function(){return!!h.content},
then:function(){return _.R("div",{class:"ytContextualSheetLayoutContentContainer"},h.content())}}),_.R(_.P,{cond:function(){return!!h.footer},
then:function(){return _.R("div",{class:"ytContextualSheetLayoutFooterContainer"},h.footer())}}))},"gi");
pfG.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var GLU=_.O(function(h){h=h.data;var E=_.hf("yt-sheet-view-model",function(Z){if(_.J("web_focus_first_element_sheet")||!_.J("sheet_focus_first_killswitch"))return Z.addEventListener("focus",function(){PUC(Z)}),function(){Z.removeEventListener("focus",function(){PUC(Z)})}}),g={};
return _.R("yt-sheet-view-model",{"on:mousedown":_.J7(function(Z){_.J("sheet_focus_first_killswitch")||Z.currentTarget!==Z.target&&Z.preventDefault()}),
"on:focus":_.J7(function(){_.J("sheet_focus_first_killswitch")||PUC(E.value)}),
class:_.CO("ytSheetViewModelHost",(g.ytSheetViewModelContextual=!0,g.ytSheetViewModelDisableBackdropFilter=_.J("web_disable_backdrop_filter"),g)),el:E,tabindex:-1},_.R(_.P,{cond:h,then:function(Z){return _.R(pfG,{header:function(){return _.R(_.Sv,{data:function(){return Z().header}},{panelHeaderViewModel:gfc})},
content:function(){return _.R(_.Sv,{data:function(){return Z().content}},{listViewModel:function(M){return _.R(_.EGm,{data:M.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:XqU,miniAppScoreChallengeViewModel:YsC})},
footer:function(){return _.R(_.Sv,{data:function(){return Z().footer}},{panelFooterViewModel:_.wR})}})}}))},"hi");
GLU.idomCompat=!0;_.I9(GLU,"yt-sheet-view-model",{props:{data:_.C6}});var aKx=_.O(function(h){var E=function(){var g;return(g=h.data().enableDebuggingFeatures)!=null?g:!1};
return _.R("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.R(_.SX,{each:function(){var g;return(g=h.data().stickers)!=null?g:[]}},function(g){return _.R(zDc,{data:function(){return g},
debugMode:E})}))},"ii"),zDc=_.O(function(h){var E=_.au(h,{debugMode:!1}).debugMode,g=_.zl(function(){var I;
return(I=h.data().region)==null?void 0:I.w},0),Z=_.zl(function(){var I;
return(I=h.data().region)==null?void 0:I.h},0),M=_.zl(function(){var I;
return(I=h.data().region)==null?void 0:I.x},0),W=_.zl(function(){var I;
return(I=h.data().region)==null?void 0:I.y},0),z=_.J7(function(){var I=h.data().onTap;
I&&_.Tl(I)}),c={};
return _.R("div",{class:_.CO("ytStoriesStickerLayerViewModelSticker",(c.ytStoriesStickerLayerViewModelDebugMode=E,c)),style:_.fO({width:function(){return 100*g()+"%"},
height:function(){return 100*Z()+"%"},
left:function(){return 100*M()+"%"},
top:function(){return 100*W()+"%"},
"flex-direction":function(){return N5G(h.data().flexDirection)},
"justify-content":function(){return tvC(h.data().justifyContent)},
"align-items":function(){return SzC(h.data().alignItems)}}),
"on:click":z},_.R(_.Sv,{data:function(){return h.data().button||h.data().toggleButton}},{buttonViewModel:function(I){return _.R(_.$l,{data:I.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(I){return _.R(_.Z7,{data:I.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ji");var iGG=_.O(function(h){var E=function(){return h.data()},g={},Z=_.zl(function(){return E().backgroundColor},0),M=_.zl(function(){return E().actionButtons},[]),W=_.zl(function(){return E().stickerLayer},{}),z=function(){var I,B;
return{animationRef:g,animationConfig:{autoplay:!1,loop:!1,path:(B=(I=E().foregroundAnimation)==null?void 0:I.url)!=null?B:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){h.navigateToNextItemOnLottieComplete()}}}},c=function(){var I,B,U,L,d,C,q,w;
return{animationConfig:{autoplay:(C=(I=E().backgroundAnimation)==null?void 0:(B=I.settings)==null?void 0:B.autoplay)!=null?C:!1,loop:(q=(U=E().backgroundAnimation)==null?void 0:(L=U.settings)==null?void 0:L.loop)!=null?q:!1,path:(w=(d=E().backgroundAnimation)==null?void 0:d.url)!=null?w:"",name:"stories_item_background_animation"}}};
_.lX(function(){if(h.isVisible()){var I;(I=g.lottieEl)==null||I.play();h.animationRef()&&(h.animationRef().lottieEl=g.lottieEl)}else{var B;(B=g.lottieEl)==null||B.stop()}},"AvUgVe");
return _.R("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.fO({"background-color":function(){return _.uU(Z())+";"}})},_.R("div",{class:"ytStoriesItemViewModelAssetContent"},_.R(_.P,{cond:function(){return!!E().backgroundAnimation},
then:function(){return _.R(_.sh,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.P,{cond:function(){return!!E().backgroundImage},
then:function(){return _.R(_.pO,{data:function(){return E().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.R(_.P,{cond:function(){return!!E().foregroundAnimation},
then:function(){return _.R(_.sh,{data:z,animationName:function(){return z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.R(_.P,{cond:function(){return!!E().foregroundImage},
then:function(){return _.R(_.pO,{data:function(){return E().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.R("div",{class:"ytStoriesItemViewModelTopShadow"}),_.R(_.Sv,{data:function(){return W()}},{storiesStickerLayerViewModel:aKx})),_.R("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.fO({"background-color":function(){return _.uU(Z())}})},_.R("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.R(_.SX,{each:M},function(I){return _.R(c_c,{data:function(){return I},
pauseAutoNavigation:h.pauseAutoNavigation})}))))},"ki"),ofi={style:"overlay",
type:"outline"},c_c=_.O(function(h){var E={};return _.R("div",{class:_.CO("ytStoriesItemViewModelActionButton",(E.ytStoriesItemViewModelStretchedActionButton=function(){return h.data().size==="STORIES_BUTTON_SIZE_STRETCH"},E)),
"on:click":_.J7(h.pauseAutoNavigation)},_.R(_.Sv,{data:function(){return h.data().button}},{buttonViewModel:function(g){return _.R(_.$l,{data:g.data,
buttonOverrides:ofi})}}))},"li");_.I9(_.O(function(h){var E=function(){var Cd;return(Cd=h.data().startIndex)!=null?Cd:0},g=_.G(_.qi(E)),Z=g.next().value,M=g.next().value;
g=_.G(_.Bm(!1,void 0,"PXfG3d"));var W=g.next().value,z=g.next().value,c=function(){var Cd;return(Cd=h.data().storyItems)!=null?Cd:[]},I={},B=_.hf("yt-stories-viewer-view-model"),U=function(){return h.data().dismissButton},L=function(){var Cd;
return _.kB((Cd=_.e(U(),_.i_))==null?void 0:Cd.onTap)},d=_.hf("div"),C,q,w=!1,r=function(){var Cd;
(Cd=C)==null||Cd.cancel();C=v(Z()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});C.onfinish=function(){var Ba=_.e(c()[Z()],f7J),$$,Ha;Ba!=null&&Ba.foregroundAnimation&&((Ba==null?0:($$=Ba.foregroundAnimation)==null?0:$$.url)||(Ba==null?0:(Ha=Ba.foregroundAnimation)==null?0:Ha.payload))||(Z()!==c().length-1?(M(Z()+1),r()):L()&&_.y1(L()))}},v=function(Cd){return d.value.children[Cd].children[0]},H=function(){for(var Cd=0;Cd<Z();Cd++)v(Cd).style.transform=
"scaleX(1)"},u=function(){w||(W()?z(!1):(Z()===c().length-1&&L()&&_.y1(L()),v(Z()).style.transform="scaleX(1)",Z()!==c().length-1&&(M(Z()+1),r())))},k=function(){w||(W()?z(!1):(v(Z()).style.transform="scaleX(0)",Z()!==0&&M(Z()-1),r()))},y=function(){z(!0)},A=function(){v(Z()).style.transform="scaleX(1)";
Z()!==c().length-1?(M(Z()+1),r()):L()&&_.y1(L())};
g=function(){w=!1;q=setTimeout(function(){z(!0);w=!0},300)};
var E4=function(){clearTimeout(q);w&&W()&&z(!1)};
_.lX(function(){if(W()){var Cd;(Cd=C)==null||Cd.pause();var Ba;(Ba=I.lottieEl)==null||Ba.pause()}else{var $$;($$=C)==null||$$.play();var Ha;(Ha=I.lottieEl)==null||Ha.play()}},"q47fR");
_.lX(function(){H();Z()===E()&&r()},"ydZxlf");
var iO=function(Cd){Cd.key==="ArrowLeft"?k():Cd.key==="ArrowRight"&&u()},RW=function(Cd){if(Cd.target===B.value){(Cd=L())&&_.y1(Cd);
clearTimeout(q);var Ba;(Ba=C)==null||Ba.cancel();window.removeEventListener("keydown",iO);window.removeEventListener("yt-popup-closed",RW)}},NN=function(Cd){Cd.target===B.value&&(window.addEventListener("keydown",iO),window.addEventListener("yt-popup-closed",RW))};
_.vJ(function(){H();r();window.addEventListener("yt-popup-opened",NN)});
return _.R("yt-stories-viewer-view-model",{el:B,class:_.CO("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.R("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.R("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.J7(k),"on:mousedown":_.J7(g),"on:mouseup":_.J7(E4),"on:mouseleave":_.J7(E4)}),_.R("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.J7(u),"on:mousedown":_.J7(g),"on:mouseup":_.J7(E4),"on:mouseleave":_.J7(E4)})),
_.R("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.R(_.Sv,{data:c},{storiesItemViewModel:function(Cd,Ba){var $$=Cd.data;return _.R(_.P,{cond:function(){return Math.abs(Ba()-Z())<=1},
then:function(){var Ha={};return _.R("div",{class:_.CO("ytStoriesViewerViewModelStoryItem",(Ha.ytStoriesViewerViewModelActiveStoryItem=function(){return Ba()===Z()},Ha))},_.R(iGG,{data:$$,
pauseAutoNavigation:y,navigateToNextItemOnLottieComplete:A,isVisible:function(){return Ba()===Z()},
animationRef:I}))}})}})),_.R("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:d},_.R(_.SX,{each:c},function(){return _.R("div",{class:"ytStoriesViewerViewModelProgressBar"},_.R("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.R("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.R(_.Sv,{data:U},{buttonViewModel:_.$l})))},"mi"),"yt-stories-viewer-view-model",{props:{data:_.C6}});_.I9(_.O(function(h){var E=h.data;var g=_.hf("yt-gen-ai-feedback-form-view-model"),Z=[];return _.R("yt-gen-ai-feedback-form-view-model",{el:g,class:"ytGenAiFeedbackFormViewModelHost"},_.R(_.dK,{text:function(){return E().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.R(_.Sv,{data:function(){return E().feedbackChips}},{toggleButtonViewModel:function(M){var W=M.data;
return _.R(_.Z7,{data:W,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(z){var c=W();c=_.e(c,_.Ix);c=_.e(c==null?void 0:c.defaultButtonViewModel,_.i_).trackingParams;z?Z.push(c):(z=Z.indexOf(c),z>-1&&Z.splice(z,1))}})}})),_.R(_.dK,{text:function(){return E().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.R("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.R(_.Sv,{data:function(){return E().submitButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){xIc(g.value,Z,E().uniqueId)}})}}),_.R(_.Sv,{data:function(){return E().moreFeedbackButton}},{buttonViewModel:function(M){return _.R(_.$l,{data:M.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ni"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.C6},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Un=function(){return _.D.apply(this,arguments)||this};
_.f(Un,_.D);Un.prototype.created=function(){z1U(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(NSC);var h=_.GF().resolve(_.I0x);h&&(h.container=this.ytPopupContainerBehavior);if(h=_.GF().resolve(_.hz))h.container=this.ytPopupContainerBehavior;if(h=_.GF().resolve(_.Eu)){var E=this.ytPopupContainerBehavior;h.containerWasInjected?_.O$(Error("nj")):h.container=E}};
Un.prototype.ensurePopupBelowPlayer=function(h,E){var g=_.GF().resolve(_.pl(_.p4));if(!g||!g.isOnWatch()||!_.zD())return!1;g=g.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.wN().height>g+this.getPopupHeight(h,E)?(h.style.top="auto",h.style.bottom="0px"):(h.style.top=g+"px",h.style.bottom="auto");return!0};
Un.prototype.getPopupHeight=function(h,E){E&&(h.cachedPopupHeight=0);if(!h.cachedPopupHeight){E=0;var g=h.clientHeight,Z=window.getComputedStyle(h);E+=parseInt(Z.marginTop,10);E+=parseInt(Z.marginBottom,10);h.cachedPopupHeight=g+E}return h.cachedPopupHeight};
Un.prototype.getElement=function(h){return document.createElement(h)};
_.Y([_.t(Qh0.YtPopupContainerBehavior),_.V("design:type",Object)],Un.prototype,"ytPopupContainerBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Un.prototype,"ytComponentBehavior",void 0);_.Y([_.K({disableElementRegistration:!0,is:"ytd-popup-container"})],Un);
_.X(Un,"ytd-popup-container",function(){if(shc!==void 0)return shc;var h=document.createElement("template");_.N(h,"\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");h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);return shc=h},{mode:1});var IKU;var RDG={};RDG.YtLogYpcFlowCommandsBehavior=[_.Yl.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(h){_.e(h,sqx)&&(h=_.e(h,sqx))&&(h.serializedTransactionFlowLoggingParams?_.EzM(h.serializedTransactionFlowLoggingParams):h.serializedYpcCancelFlowLoggingParams?(h=h.serializedYpcCancelFlowLoggingParams)&&_.j0("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",h):h.serializedYpcResumeFlowLoggingParams?(h=h.serializedYpcResumeFlowLoggingParams)&&_.j0("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",h):h.serializedYpcPauseFlowLoggingParams?(h=h.serializedYpcPauseFlowLoggingParams)&&
_.j0("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",h):h.serializedYpcRefundFlowLoggingParams?(h=h.serializedYpcRefundFlowLoggingParams)&&VDC("YPC_EVENT_TYPE_START",h):h.serializedYpcDeactivateFlowLoggingParams?(h=h.serializedYpcDeactivateFlowLoggingParams)&&_.j0("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",h):h.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(h=h.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.j0("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",h))},
handleLogYpcFlowDismiss_:function(h){_.e(h,YEG)&&(h=_.e(h,YEG),h.serializedTransactionFlowLoggingParams?_.gzV(h.serializedTransactionFlowLoggingParams):h.serializedYpcCancelFlowLoggingParams?(h=h.serializedYpcCancelFlowLoggingParams)&&_.j0("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",h):h.serializedYpcResumeFlowLoggingParams?(h=h.serializedYpcResumeFlowLoggingParams)&&_.j0("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",h):h.serializedYpcPauseFlowLoggingParams?(h=
h.serializedYpcPauseFlowLoggingParams)&&_.j0("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",h):h.serializedYpcRefundFlowLoggingParams&&(h=h.serializedYpcRefundFlowLoggingParams)&&VDC("YPC_EVENT_TYPE_CANCEL",h))}}];var PuG={};PuG.YtCancelRecurrenceBehavior=[_.IU.YtComponentBehavior,_.HGD,{attached:function(){var h=this;V6I(this,function(E,g){return h.ypcCancelRecurrenceHandler(E,g)})},
ypcCancelRecurrenceHandler:function(h,E){var g=this;if(!E||!E.ypcCancelRecurrenceEndpoint)return!1;if(!E.ypcCancelRecurrenceEndpoint.params)return _.Vy(Error("Nl")),!0;_.sa(this.hostElement);var Z=_.bF.instance,M=_.GF().resolve(_.pl(_.kY));Z&&_.uF(Z,E)?_.QQ(Z,E).then(function(W){g.ypcCancelRecurrenceSuccess_(h,E,{data:W})},function(W){g.ypcCancelRecurrenceFailure_(h,E,W)}).thenCatch(function(){_.Vy(Error("Ol"))}):M?M.requestDataForServiceEndpoint(E).then(function(W){g.ypcCancelRecurrenceSuccess_(h,
E,W)},function(W){g.ypcCancelRecurrenceFailure_(h,E,W)}).thenCatch(function(){_.Vy(Error("Ol"))}):_.Vy(Error("Pl"));
return!0},
ypcCancelRecurrenceSuccess_:function(h,E,g){_.VK(this.hostElement);g.data||(g={data:g});g.data&&g.data.actions&&_.jj(this.hostElement,g.data.actions,this.hostElement);g.data.messageRenderer?yjG(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(E=E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.j0("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",E);_.Ra(h,"yt-service-request-completed",g)},
ypcCancelRecurrenceFailure_:function(h,E,g){_.VK(this.hostElement);yjG(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Ra(h,"yt-service-request-error",{error:g,params:[h,E]})}}];var BVx=function(h,E){_.g$.call(this,E)};
_.f(BVx,dGU);var U4J={};U4J.YtCompleteTransactionBehavior=[_.IU.YtComponentBehavior,_.HGD,{attached:function(){var h=this;V6I(this,function(E,g){return h.ypcCompleteTransactionHandler(E,g)})},
completeTransaction:function(h,E){var g=this;E={payments_payload:window.btoa(E.integratorData),buybucket_params:h.data.buybucketParams,offer_params:h.data.offerParams};var Z=_.GF().resolve(_.kY),M=h.data.completeTransactionEndpoint,W=this.get("ypcCompleteTransactionEndpoint.actions",M);W&&_.jj(this.hostElement,W,this.hostElement);return(W=_.bF.instance)&&_.uF(W,M)?_.QQ(W,M,E).then(function(z){return!z||(z==null?0:z.error)?(z=g.get("data.serializedTransactionFlowLoggingParams",h),_.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
z))):{data:z}}).then(function(z){return g.handleCompleteTransactionSuccess_(z,h)},function(){return g.handleCompleteTransactionFailure_(h)}):Z.requestDataForServiceEndpoint(M,E).then(function(z){return g.handleCompleteTransactionSuccess_(z,h)},function(){return g.handleCompleteTransactionFailure_(h)})},
handleCompleteTransactionSuccess_:function(h,E){h.data||(h={data:h});if(h.data.messageRenderer)return _.$B(new BVx(h.data.messageRenderer));if(h.data.trackingParams){var g=_.sH(),Z=_.YN();g&&Z&&_.uw(g,Z,_.rp(h.data.trackingParams))}E=this.get("data.serializedTransactionFlowLoggingParams",E);kyx(E);return _.dC(h)},
handleCompleteTransactionFailure_:function(h){h=this.get("data.serializedTransactionFlowLoggingParams",h);_.Wb("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",h);return _.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",h))},
ypcCompleteTransactionHandler:function(h,E){var g=this;if(!E.ypcCompleteTransactionEndpoint)return!1;if(!E.ypcCompleteTransactionEndpoint.transactionParams)return _.Vy(Error("Ql")),!0;E.ypcCompleteTransactionEndpoint&&E.ypcCompleteTransactionEndpoint.gtmData&&_.gK(E.ypcCompleteTransactionEndpoint.gtmData);var Z=_.GF().resolve(_.pl(_.kY));if(Z){_.sa(this.hostElement);var M=_.bF.instance;M&&_.uF(M,E)?_.QQ(M,E).then(function(W){return!W||(W==null?0:W.error)?(W=g.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
E),_.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))):{data:W}}).then(function(W){_.Ra(h,"yt-service-request-completed");
g.ypcCompleteTransactionSuccess_(E,W)},function(){return g.ypcCompleteTransactionFailure_(E)}):Z.requestDataForServiceEndpoint(E).then(function(W){_.Ra(h,"yt-service-request-completed");
g.ypcCompleteTransactionSuccess_(E,W)},function(){return g.ypcCompleteTransactionFailure_(E)})}return!0},
ypcCompleteTransactionSuccess_:function(h,E){_.VK(this.hostElement);E.data||(E={data:E});_.BX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);E.data.messageRenderer||E.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(h):(_.gK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",h));E.data.actions&&(h=ez0(E.data.actions),E=qL0(E.data.actions),h.length&&_.LZ(this.hostElement,
h),E.length&&_.jj(this.hostElement,E,this.hostElement))},
ypcCompleteTransactionFailure_:function(h){_.VK(this.hostElement);_.BX(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",h,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(h,E,g){if(E=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",E))E={serializedTransactionFlowLoggingParams:E},g&&(E.errorType=g),_.vT(h,E),_.HT()}}];var L_Z={};L_Z.YtEndpointHandlerWithYpcBehavior=[_.HGD,_.Yl.YtActionHandlerBehavior,[{openWalletDialog:function(h,E,g,Z,M,W,z){var c=this,I=_.hU();E=E.replace(/-/g,"+").replace(/_/g,"/");var B=_.xe().get("hl");_.hx4(_.Zt(_.p3),E,I.resolve,M,function(U){W&&W();I.reject(U)},B,function(U){return c.onServerBackendAnalyticEvent_(h,g,U)},this.onDialogClose_.bind(this),Z,z);
return I.promise},
openFixFlowDialog:function(h,E,g,Z){h=h.replace(/-/g,"+").replace(/_/g,"/");_.Zt(_.p3).openFixFlowDialog(h,E,g,Z)},
onDialogClose_:function(){_.BX(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(h,E,g){_.Ra(h,"yt-commerce-action-init-done");E&&_.LZ(this.hostElement,[E,{backend_analytics:g}])}}],
_.n6.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(h,E){h=this.get("data.nativeFlowEndpoint",E);E=this.get("data.fallbackEndpoint",E);h?_.LZ(this.hostElement,[h]):E&&_.Ra(this.hostElement,"yt-navigate",{endpoint:E})}}],
PuG.YtCancelRecurrenceBehavior,U4J.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 h=this;V6I(this,function(E,g,Z){return h.handleYPCEndpoint(E,g,Z)});
this.ypcRegisterActionMapJobId_=_.xW(_.KP,function(){h.registerActionMap(h.buyFlowActionMap_)})},
detached:function(){var h=this;_.KP.cancelJob(this.ypcRegisterActionMapJobId_);_.xW(_.KP,function(){h.unregisterActionMap(h.buyFlowActionMap_)})},
handleYPCEndpoint:function(h,E,g){var Z=E.ypcGetCartEndpoint;if(Z){_.Ye("commerce_transaction");var M=Z.gtmId;M&&_.Eh(M);(Z=Z.gtmData)&&_.gK(Z)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",E)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(h,E),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",E)!=null?(this.handleYPCFixInstrumentEndpoint_(h,E),!0):E.ypcPauseSubscriptionCommand?(KzG(this.hostElement,h,E,g),
!0):E.ypcResumeSubscriptionCommand?(X3i(this.hostElement,h,E),!0):E.getPaymentInstrumentsParamsCommand?(vxJ(this.hostElement,h,E),!0):E.ypcHandleTransactionEndpoint?(rUJ(this.hostElement,h,E,g),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(h,E){var g=this;_.s7("ttcr",void 0,"commerce_transaction");E=E.ypcGetCartEndpoint;var Z=E.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,M=Z.encryptedPurchaseParams,W=Z.serializedTransactionFlowLoggingParams,z=Z.serializedPaymentsClientParams,c=this.createGetCartResponseFromParams_(Z,E.offerParams,W);this.changeButtonState(h,!0);_.KA(this.openWalletDialog(h,M,Z.ypcLogWalletAnalyticDataEndpoint,W,function(){g.changeButtonState(h,!1)},function(){g.changeButtonState(h,
!1)},z).then(function(I){return g.handleBuyFlowCompleteCallback_(h,c,I)},function(){return g.handleOnLoadError(c)}).then(function(I){return void g.handlePostPurchaseSuccess_(h,c,I)},function(I){return void g.handlePostPurchaseError_(I)}),function(){g.changeButtonState(h,!1);
h instanceof Element&&_.Ra(h,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(h,E,g){var Z=h.completeTransactionEndpoint,M=h.handleTransactionEndpoint;E={data:{offerParams:window.btoa(E),serializedTransactionFlowLoggingParams:g}};M?E.data.handleTransactionEndpoint=M:E.data.completeTransactionEndpoint=Z;h.onCartDismissCommand&&(E.data.onCartDismissCommand=h.onCartDismissCommand);return E},
onGetCartServiceRequestCompleted_:function(h,E){var g=this,Z=h.target;if(E&&E.data&&E.data.messageRenderer)_.VK(this.hostElement),this.handleMessageRenderer_(E.data.messageRenderer),this.changeButtonState(Z,!1);else{var M=this.get("data.encryptedPurchaseParams",E),W=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",E),z=this.get("data.ypcLogWalletAnalyticDataEndpoint",E),c=this.get("data.serializedPaymentsClientParams",E),I=this.getLoggingParams_(E);if(I||M||W)h.stopPropagation(),_.s7("ttcr",
void 0,"commerce_transaction"),M||_.VK(this.hostElement),this.changeButtonState(Z,!1),W?_.BX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.nF("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:W}}},this]):M&&(this.changeButtonState(Z,!0),h=null,h=this.openWalletDialog(Z,M,z,I,function(){_.VK(g.hostElement);g.changeButtonState(Z,!1)},function(){_.VK(g.hostElement);
g.changeButtonState(Z,!1)},c),_.KA(h.then(function(B){return g.handleBuyFlowCompleteCallback_(Z,E,B)},function(){return g.handleOnLoadError(E)}).then(function(B){return g.handlePostPurchaseSuccess_(Z,E,B)},function(B){return g.handlePostPurchaseError_(B)}),function(){g.changeButtonState(Z,!1);
_.Ra(Z,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(h,E){E&&E.endpoint&&E.endpoint.ypcGetCartEndpoint&&!E.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)&&_.jj(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)],h.target),_.sa(this.hostElement),this.changeButtonState(h.target,!0))},
onServiceRequestError_:function(h,E){if(E&&E.params&&E.params.length){E=_.G(E.params);for(var g=E.next();!g.done;g=E.next())if((g=g.value)&&g.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",g.ypcGetCartEndpoint)&&_.jj(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",g.ypcGetCartEndpoint)],h.target);_.VK(this.hostElement);this.changeButtonState(h.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(h,E,g){var Z=g.integratorData;return Z==null||Z===""||g.error!=null?(Z=this.getLoggingParams_(E),String(g.error)==="-1"?(E.data.onCartDismissCommand&&_.jj(this.hostElement,[E.data.onCartDismissCommand],h),_.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z,!0))):_.$B(new pa("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",Z))):E.data.handleTransactionEndpoint?mIp(this.hostElement,E.data.handleTransactionEndpoint,{payments_payload:Z,funds_guarantee_callback_client_data:g.integratorClientCallbackData}):
this.completeTransaction(E,g)},
handlePostPurchaseSuccess_:function(h,E,g){E=g.data;var Z=!1,M,W;if(E&&((M=E.command)==null?0:(W=M.commandExecutorCommand)==null?0:W.commands)){var z,c;M=(z=E.command)==null?void 0:(c=z.commandExecutorCommand)==null?void 0:c.commands;for(z=0;z<M.length;z++)if(_.e(M[z],_.dyA)){Z=!0;break}}Z||(E&&E.gtmDatas&&E.gtmDatas.length?_.gK(E.gtmDatas[0]):_.gK('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));g.data&&g.data.actions&&(E=ez0(g.data.actions),g=qL0(g.data.actions),E.length&&
_.LZ(this.hostElement,E),g.length&&_.jj(this.hostElement,g,h))},
handlePostPurchaseError_:function(h){h&&h.payload&&h.payload.isUserDismiss||_.$W(Error("Sl"))},
handleOnLoadError:function(h){h=this.getLoggingParams_(h);return _.$B(new pa("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",h))},
getLoggingParams_:function(h){return this.get("data.serializedTransactionFlowLoggingParams",h)},
handleMessageRenderer_:function(h){var E=_.$3(h,"renderer"),g=_.nF("openPopupConfig");E==="confirmDialogRenderer"&&g&&_.BX(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:g.popupTypeMap[E],popup:h}},this])},
handleYPCFixInstrumentEndpoint_:function(h,E){var g=this,Z=E.ypcFixInstrumentEndpoint;E=Z.encryptedFixInstrumentParameters;this.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(h,!0);this.openFixFlowDialog(E,function(M,W){g.onFixFlowCompleteCallback_(Z,M,W)},function(){return g.changeButtonState(h,!1)},function(){g.changeButtonState(h,!1);
g.logFixFopEvent_(Z,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(h,E,g){var Z=_.yy("payments.business.integration.scenario.FixInstrument");if(E==Z.IntegratorCallbackType.ON_COMPLETE){E="FIX_FOP_EVENT_TYPE_CANCEL";var M=null;g.error!=null?g.error!=Z.OnCompleteCallbackError.USER_CANCELLED&&(_.jj(this.hostElement,[h.errorAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_FAILURE",M="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.jj(this.hostElement,[h.successAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_SUCCESS");_.jj(this.hostElement,[h.onFinishAction],
this.hostElement);this.logFixFopEvent_(h,E,M)}},
logFixFopEvent_:function(h,E,g){(h=h.serializedFixFopLoggingParams)?(E={eventType:E,serializedFixFopLoggingParams:h},g!=null&&(E.errorType=g),_.vT("fixFopFlow",E),_.HT()):_.$W(Error("Tl"))},
changeButtonState:function(h,E){_.J("enable_ypc_spinners")&&h&&(h.is==="yt-button-renderer"||h.is==="ytd-button-renderer")&&(h.disabled=E)}}];var jAi=function(h){this.JSC$32377_clientRoot=h;this.feedbackCollectorActionMap={"yt-help-dialog-requested":sJX,"yt-feedback-dialog-requested":YzZ,"yt-signal-action-help":VvU,"yt-signal-action-send-feedback":kDZ,"yt-send-feedback-action":FzI,"yt-user-feedback-endpoint":AUU};_.bp(_.Tq.getInstance(),this.feedbackCollectorActionMap,this.JSC$32377_clientRoot)},d4X;var Cu0=function(h){this.JSC$32382_clientRoot=h;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":T5G.bind(null,this.JSC$32382_clientRoot),"yt-signal-action-delete-all-downloads":u5U,"yt-signal-action-delete-download":QJ0,"yt-signal-action-delete-playlist-download":E7G,"yt-signal-action-install-pwa":GKU,"yt-signal-action-refresh-downloads":WqJ,"yt-offline-video-endpoint":aqU,"yt-offline-playlist-endpoint":iup,"yt-update-local-app-setting-command":IqG,"yt-offline-orchestration-action-command":P1J,
"yt-signal-action-undo-delete-download":ZuU,"yt-local-watch-history-command":LqG};_.bp(_.Tq.getInstance(),this.downloadManagerActionMap,this.JSC$32382_clientRoot);_.Km.instance=new _.Km},J_U;var Lh=function(){var h=_.D.apply(this,arguments)||this;h.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_"};h.remoteApi_=null;return h};
_.f(Lh,_.D);_.p=Lh.prototype;
_.p.ready=function(){_.J("polymer_enable_mdx")&&(gPJ({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.J("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.J("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.J("enable_cast_short_lived_lounge_token")}),_.I8("yt-remote-connection-change",this.handleConnectionChange_,this),_.I8("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=c7I())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.p.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.p.handleConnectionChange_=function(h){(this.mdxConnected=h)?(h=Wmi(),!h&&YQG()&&suG()&&(h={key:"cast-selector-receiver",name:suG()}),h=h.name):h=null;this.receiverName=h;_.p8(this.remoteApi_);(this.remoteApi_=c7I())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.p.handleReceiverAvailabilityChange_=function(){var h=MdG();YQG()&&_.YY("yt-remote-cast-available")&&h.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=h.length>0};
_.p.handleRemoteQueueChange_=function(){var h=this.currentVideoId_,E=this.currentListId_,g=ai(this.remoteApi_);this.currentVideoId_=g.videoId;this.currentListId_=g.listId;this.currentVideoId_&&_.BX(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.J("polymer_enable_mdx_queue")?this.currentListId_:null,h,E])};
_.p.handleAddToQueueAction_=function(h){h=_.e(h,NPU);this.remoteApi_&&(h.videoId?this.remoteApi_.addVideo(h.videoId):h.playlistId&&this.remoteApi_.addPlaylist(h.playlistId))};
_.p.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.p.handleInsertInQueueAction_=function(h){h=_.e(h,tRp);this.remoteApi_&&h.videoId&&this.remoteApi_.JSC$19820_insertVideo(h.videoId)};
_.p.handleRemoveFromQueueAction_=function(h){h=_.e(h,SE0);this.remoteApi_&&h.videoId&&this.remoteApi_.JSC$19820_removeVideo(h.videoId)};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x(),_.V("design:type",Object)],Lh.prototype,"appId",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Lh.prototype,"mdxConnected",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Lh.prototype,"receiverAvailable",void 0);_.Y([_.x(),_.V("design:type",Object)],Lh.prototype,"receiverName",void 0);_.Y([_.x(),_.V("design:type",Object)],Lh.prototype,"currentVideoId_",void 0);
_.Y([_.x(),_.V("design:type",Object)],Lh.prototype,"currentListId_",void 0);_.Y([_.yc({is:"yt-mdx-manager",disableElementRegistration:!0})],Lh);_.X(Lh,"yt-mdx-manager",void 0,{mode:2});var eDp;var qg0;var j2=function(){var h=_.D.apply(this,arguments)||this;h.APP_IDS={ytr:3,ytm:5};h.JSC$21038_timeoutId_=0;h.actionMap={"yt-open-create-family-dialog":"open"};return h};
_.f(j2,_.D);_.p=j2.prototype;_.p.created=function(){z1U(2200)};
_.p.detached=function(){this.observer_&&this.observer_.disconnect()};
_.p.open=function(h,E){var g=this,Z=h.serializedYpcFamilyCreateLoggingParams;this.JSC$21038_timeoutId_=setTimeout(this.abort_.bind(this,h.postFlowErrorEndpoint,Z),3E4);E&&(this.onReadyCallback_=E);var M=_.UB(this.hostElement).querySelector("#unicorn-iframe");Z&&Z&&sYx("ypcFamilyCreateFlowStarted",Z);_.vi$("family_creation",function(){var W=_.yy("gapi.family_creation.render");_.yy("gapi.config.update")("iframes/family_creation/url",g.getFamilyCreationUrlWithUnicornParams_());var z=3;h.appId&&h.appId in
g.APP_IDS&&(z=g.APP_IDS[h.appId]);z={authUser:_.nF("SESSION_INDEX")||0,clientId:z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.nF("HL"),initialflow:[4,5,6,7],m:g.isMobile?1:0,onFlowComplete:g.onUnicornFlowComplete_.bind(g,h.postFlowSuccessEndpoint,Z),onError:g.onUnicornFlowError_.bind(g,h.postFlowErrorEndpoint,Z),onReady:g.onUnicornFlowReady_.bind(g,h.referencePcidParams)};W(M,z)})};
_.p.close=function(){_.UB(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.p.onUnicornFlowComplete_=function(h,E){this.close();E&&E&&sYx("ypcFamilyCreateFlowSucceeded",E);_.Ra(this.hostElement,"yt-navigate",{endpoint:h})};
_.p.onUnicornFlowError_=function(h,E){this.close();E&&sYx("ypcFamilyCreateFlowCancelled",E);_.Ra(this.hostElement,"yt-navigate",{endpoint:h})};
_.p.onUnicornFlowReady_=function(h){var E=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();h&&_.yy("gapi.family_creation.setConfig")(0,h);this.observer_=new MutationObserver(function(){_.UB(E.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.UB(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.UB(this.hostElement).querySelector("#dialog").open()};
_.p.getFamilyCreationUrlWithUnicornParams_=function(){return _.nF("YTR_FAMILY_CREATION_URL")};
_.p.getCurrentUrl_=function(){return document.location.href};
_.p.abort_=function(h,E){this.clearTimeout_();this.onUnicornFlowError_(h,E)};
_.p.clearTimeout_=function(){clearTimeout(this.JSC$21038_timeoutId_)};
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],j2.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],j2.prototype,"isMobile",void 0);_.Y([_.x(),_.V("design:type",Object)],j2.prototype,"onReadyCallback_",void 0);_.Y([_.x(),_.V("design:type",Object)],j2.prototype,"observer_",void 0);_.Y([_.yc({is:"yt-create-family-dialog",disableElementRegistration:!0})],j2);
_.X(j2,"yt-create-family-dialog",function(){if(qg0===void 0){var h=document.createElement("template");_.N(h,'\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');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);var E=h.content,g=E.insertBefore;eDp===void 0&&(eDp=document.createElement("template"));var Z=eDp;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);qg0=h}h=qg0;return h},{mode:2});var fKZ;var NVR;var d7=function(){var h=_.D.apply(this,arguments)||this;h.STEP=1;h.BLOCK_ON=80;h.MIN_PROGESS=0;h.MAX_PROGESS=100;return h};
_.f(d7,_.D);_.p=d7.prototype;_.p.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.p.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.GF().addProvider({provide:cYZ,useValue:this})};
_.p.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.p.finish=function(){var h=this;this.progress=this.MAX_PROGESS;jdJ(function(){h.progress==h.MAX_PROGESS&&(h.hostElement.hidden=!0)})};
_.p.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ze.Object.defineProperties(d7.prototype,{progress:{configurable:!0,enumerable:!0,set:function(h){this.progress_=h;var E="scaleX("+h/this.MAX_PROGESS+")",g=_.UB(this.hostElement).querySelector("#progress").style;g.transform=E;g.webkitTransform=E;this.hostElement.setAttribute("aria-valuenow",String(h))},
get:function(){return this.progress_}}});
_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],d7.prototype,"ytComponentBehavior",void 0);_.Y([_.yc({is:"yt-page-navigation-progress",disableElementRegistration:!0})],d7);
_.X(d7,"yt-page-navigation-progress",function(){if(NVR===void 0){var h=document.createElement("template");_.N(h,'\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');h.content.insertBefore(_.F().content.cloneNode(!0),
h.content.firstChild);var E=h.content,g=E.insertBefore;fKZ===void 0&&(fKZ=document.createElement("template"));var Z=fKZ;g.call(E,Z.content.cloneNode(!0),h.content.firstChild);NVR=h}h=NVR;return h},{mode:2});var tCX={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"},SgU={"font-size":"12px","font-style":"italic"},x4G={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.eAc=function(){return _.a(function(h){_.SK(h)})};var wfU=_.O(function(h){var E=function(){return h.data().subtext},g={};
return _.R("snackbar-view-model",{class:_.CO("snackbarViewModelHost",h.className)},_.R("div",{class:_.CO("snackbarViewModelEngagementBarWrapper",h.className)},_.R(_.P,{cond:function(){return h.data().image},
then:function(Z){return _.R(_.pO,{data:Z,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.R(_.P,{cond:function(){return h.data().imageContent},
then:function(){return _.R("div",{class:"snackbarViewModelAvatarContainer"},_.R(_.Sv,{data:function(){return h.data().imageContent}},{decoratedAvatarViewModel:_.W0}))}}),_.R("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.R("div",{class:_.CO((g.snackbarViewModelTitle=!0,g.snackbarViewModelTitleWithSubtext=E,g))},_.R(_.dK,{text:function(){return h.data().text}})),_.R(_.P,{cond:E,
then:function(){return _.R("div",{class:"snackbarViewModelSubtext"},_.R(_.dK,{text:function(){return E()}}))}})),_.R(_.P,{cond:function(){return h.data().buttons},
then:function(){return _.R("div",{class:"snackbarViewModelButtonClassWrapper"},_.R(_.Sv,{data:function(){return h.data().buttons}},{buttonViewModel:function(Z){return _.R(_.$l,{data:Z.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:h.target})}}))}})))},"oi");_.I9(_.O(function(){function h(H,u,k){q(H);r(k);d("in");U(!0);E(H,u);z=setTimeout(function(){g()},u)}
function E(H,u){var k,y=(k=H.text)==null?void 0:k.content;H=_.K4(H.rendererContext);y&&(u={label:y,command:H,durationMs:u},_.GF().resolve(_.gm).enqueue(u))}
function g(H){d("out");H&&clearTimeout(z)}
function Z(){g(!0)}
function M(H){if(H){var u=H.snackbarViewModel,k=H.durationMs,y=H.target;k||(k=3E3);u&&(H=_.GF().resolve(_.pl(_.b8)))&&H.enqueue({isOpened:B,open:function(){h(u,k,y)},
close:g},0)}}
var W=_.MC("snackbar-container"),z=void 0,c=_.G(_.Bm(!1,void 0,"mDc5N")),I=c.next().value;c=c.next().value;var B=I,U=c;I=_.G(_.Bm("out",void 0,"FpOs5e"));var L=I.next().value,d=I.next().value;I=_.G(_.Bm(void 0,void 0,"jIDRob"));var C=I.next().value,q=I.next().value;I=_.G(_.Bm(void 0,void 0,"kOA3Mb"));var w=I.next().value,r=I.next().value,v=_.J7(function(){if(L()==="out"){U(!1);q(void 0);r(void 0);var H=_.GF().resolve(_.pl(_.b8));H&&dvZ(H,0)}});
_.vJ(function(){var H=_.GF().resolve(_.pl(_.vMi));H&&(H.showSnackbarFn=M,H.closeSnackbarFn=Z)});
return _.R("snackbar-container",{class:"ytSnackbarContainerHost",el:W},_.R(_.P,{cond:function(){return B()&&!!C()},
then:function(){var H={};return _.R("div",{class:_.CO("ytSnackbarContainerSnackbarContainer",(H.ytSnackbarContainerMobile=!1,H.ytSnackbarContainerPivotBar=function(){var u;return!((u=_.GF().resolve(_.pl(_.HDX)))==null||!u())},H.ytSnackbarContainerOpened=function(){return B()&&L()==="in"},H.ytSnackbarContainerClosed=function(){return B()&&L()==="out"},H)),
"on:animationend":v},_.R(wfU,{data:function(){return C()},
target:function(){return w()}}))}}))},"pi"),"snackbar-container");_.I9(_.Hvl,"yt-tooltip");var D4C=_.ha0.ephemeralActionSelector;_.I9(_.O(function(){var h=_.VQ(D4C);return _.R("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var E;return(E=h())==null?void 0:E.announcement})},"qi"),"yt-ephemeral-actions");var XgX=new Map;var q7p=function(h,E){var g=this;this.handleError=h;this.logEventInternal=E;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){g.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
q7p.prototype.logError=function(h){this.handleError(h)};
q7p.prototype.logEvent=function(h,E){switch(h){case "IDB_DATA_CORRUPTED":_.J("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",E);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",E);break;case "IS_SUPPORTED_COMPLETED":_.J("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",E);break;case "QUOTA_EXCEEDED":lKI(this,E);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",E);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":h=Object.assign({},E,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",h)}};
var lKI=function(h,E){_.MD.getInstance().estimate().then(function(g){g=Object.assign({},E,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:sdC(g==null?void 0:g.usage),deviceStorageQuotaMbytes:sdC(g==null?void 0:g.quota)});h.logEventInternal("idbQuotaExceeded",g)})};var r_G=_.O(function(h){var E=_.hf("yt-draggable"),g=h.onDrag,Z=h.onDragStart,M=h.onDragEnd,W=_.au(h,{allowClicks:!1,dragThreshold:5}),z=W.dragThreshold,c=W.allowClicks;h=W.children;W=W.className;var I=void 0,B=void 0,U=new _.nt(0,0),L=!1;_.vJ(function(){I=new _.bG(E.value);B=new _.iC(C);d(I,B);if(c()){_.x2D(I,z());var w;(w=E.value)==null||w.addEventListener("click",q,{capture:!0})}_.r9(function(){var r;(r=I)==null||r.dispose();if(c()){var v;(v=E.value)==null||v.removeEventListener("click",q,{capture:!0})}})});
var d=function(w,r){_.vK(w,"earlycancel",function(){c()&&(L=!1)});
_.vK(w,"start",function(v){Z==null||Z(v);v.defaultPrevented||c()&&(L=!0)});
_.vK(w,"beforedrag",function(v){I&&B&&(v.preventDefault(),U=new _.nt(v.clientX-I.startX,v.clientY-I.startY),B.start())});
_.vK(w,"end",function(){r.stop();M==null||M();U=new _.nt(0,0)})},C=function(){U&&g(U)},q=function(w){L&&(L=!1,w.stopPropagation(),w.preventDefault())};
return _.R("yt-draggable",{el:E,class:_.CO("ytDraggableComponentHost",W)},h)},"ri");var m4c=_.O(function(h){var E=_.G(_.Bm(0,void 0,"Qf0tbc")),g=E.next().value,Z=E.next().value;E=function(M){var W={},z={};return _.R(r_G,{className:_.CO("ytdMiniplayerComponentResizer",(W.ytdMiniplayerComponentResizerDisabled=function(){return M===h.horizontalAlignment()||M===h.verticalAlignment()},W.ytdMiniplayerComponentResizerNorth=M==="north",W.ytdMiniplayerComponentResizerEast=M==="east",W.ytdMiniplayerComponentResizerSouth=M==="south",W.ytdMiniplayerComponentResizerWest=M==="west",W)),
onDragStart:function(){Z(h.currentMiniplayerSize());if(h.onResizeStart)h.onResizeStart()},
onDrag:function(c){M!=="north"&&M!=="west"||c.scale(-1);var I;c=(I=M==="north"||M==="south")?c.y:c.x;var B=h.currentAspectRatio();I&&B>=1?c*=B:!I&&B<1&&(c/=B);I=c;h.onResize(g()+I)}},_.R("div",{class:_.CO("ytdMiniplayerComponentResizerCorner",(z.ytdMiniplayerComponentResizerNorthCorner=M==="north",z.ytdMiniplayerComponentResizerEastCorner=M==="east",z.ytdMiniplayerComponentResizerSouthCorner=M==="south",z.ytdMiniplayerComponentResizerWestCorner=M==="west",z))}))};
return _.R("div",{class:"ytdMiniplayerComponentResizers"},E("north"),E("east"),E("south"),E("west"))},"si");var vfU=16/9;_.I9(_.O(function(){var h=_.hf("ytd-miniplayer"),E=_.G(_.Bm(new _.Ns(NaN,NaN),void 0,"GhwGi")),g=E.next().value,Z=E.next().value;E=_.G(_.Bm(!1,void 0,"YCGMub"));var M=E.next().value,W=E.next().value;E=_.G(_.Bm(!1,void 0,"tMABIb"));var z=E.next().value,c=E.next().value;E=_.G(_.Bm(!1,void 0,"XAbRxc"));var I=E.next().value,B=E.next().value;E=_.G(_.Bm(!1,void 0,"qcycIb"));var U=E.next().value,L=E.next().value;E=_.G(_.Bm(!1,void 0,"HJauAf"));var d=E.next().value,C=E.next().value;E=_.G(_.Bm(!1,void 0,"P0Rfsf"));
var q=E.next().value,w=E.next().value;E=_.G(_.Bm(vfU,void 0,"mfCCDe"));var r=E.next().value,v=E.next().value,H=_.G(_.Bm(!1,void 0,"QfcC7b"));E=H.next().value;var u=H.next().value;H=_.G(_.Bm(!1,void 0,"armgtc"));var k=H.next().value,y=H.next().value;H=_.G(_.Bm(void 0,void 0,"yK0pGf"));var A=H.next().value,E4=H.next().value;H=_.G(_.Bm(_.nF("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var iO=H.next().value,RW=H.next().value;H=_.G(_.Bm("south",void 0,"aWTWh"));var NN=H.next().value,Cd=H.next().value;
H=_.G(_.Bm(400,void 0,"IY6bpb"));var Ba=H.next().value,$$=H.next().value,Ha=_.GF().resolve(_.Yu).miniplayerPropSignalMap[0],zf=Ha.data,eF=Ha.externalPlaylistData;H=Ha.toastData;var Rm=Ha.playabilityStatus,bO=Ha.isReadyToResume,jF=Ha.isDisabled,PM=Ha.watchWhile,ll=Ha.playerVe,xU=Ha.expandVe,pU=Ha.closeVe,pd=Ha.readyToResumeVe,gB=Ha.readyToResumeCloseVe,CD=Ha.repositionVe,E0=Ha.resizeVe;Ha=_.G(_.qi(bO));var Im=Ha.next().value,Qk=Ha.next().value,TN=!1,hC=!1,cM;_.vJ(function(){Z(_.wN());h.value.addEventListener("animationend",
function(XC){XC.target===h.value&&(C(!1),w(!1))});
THR(h.value)});
_.QX("yt-window-resized",function(XC){XC&&Z(XC)});
var FC=function(){cM&&v(cM.getVideoAspectRatio())},jx=function(){if(cM){var XC=cM.getPlayerState()===1;
Im()&&XC&&Qk(!1)}},wB=function(){var XC=xU();
if(XC){var $U=_.sH(3);$U&&_.Z$($U,XC)}},fD=function(){var XC=pU(),$U=gB();
XC&&_.Z$(_.sH(3),XC);bO()&&$U&&_.Z$(_.sH(3),$U)};
_.QX("yt-activate-miniplayer",function(XC){var $U;return _.a(function(kU){if(kU.nextAddress==1)return M()?kU.return():kU.yield(($U=_.GF().resolve(_.Yu).getPlayerElement())==null?void 0:$U.getPlayerPromise(),2);cM=kU.yieldResult;if(!cM)return kU.return();!k()&&_.J("kevlar_watch_while_v2")&&(Cd(XC&&!_.J("kevlar_watch_while_bottom_align")?"north":"south"),RW(_.nF("HTML_DIR")==="rtl"?"west":"east"));var zN=cM;zN.addEventListener("onVideoDataChange",FC);zN.addEventListener("onStateChange",jx);zN.addEventListener("onExpandMiniplayer",
wB);zN.addEventListener("onCloseMiniplayer",fD);v(cM.getVideoAspectRatio());W(!0);AeU()||C(!0);_.SK(kU)})});
_.QX("yt-deactivate-miniplayer",function(XC){return _.a(function($U){if(!M())return $U.return();W(!1);Qk(!1);w(XC);L(!1);c(!1);if(cM){var kU=cM;kU.removeEventListener("onVideoDataChange",FC);kU.removeEventListener("onStateChange",jx);kU.removeEventListener("onExpandMiniplayer",wB);kU.removeEventListener("onCloseMiniplayer",fD)}AeU()||C(!0);_.SK($U)})});
var U0=function(){return!(PM()&&_.J("kevlar_watch_while_modern"))},QF=function(){var XC;
return!((XC=eF())==null||!XC.contents)},RG=function(){var XC=Ba();
var $U=g();$U=Math.min(Math.min($U.width,$U.height)-32,720);var kU=r(),zN=U0(),IC=QF()&&z(),QL=Math.min(XC,$U);XC=new _.Ns(192,zN?116:192);kU=new _.Ns(IC?vfU:kU,1);QL=new _.Ns(QL,zN?QL-76:QL);QL=kU.aspectRatio()>QL.aspectRatio()?QL.width/kU.width:QL.height/kU.height;kU=kU.scale(QL);XC.width<=kU.width&&XC.height<=kU.height||(XC=kU.aspectRatio()<=XC.aspectRatio()?XC.width/kU.width:XC.height/kU.height,kU.scale(XC),kU.width=Math.min(kU.width,$U),kU.height=Math.min(kU.height,$U));return new _.Ns(kU.width,
_.vw(192,kU.height+h1J(zN,IC),720))},Db=function(){var XC=RG(),$U=U0(),kU=QF()&&z();
return new _.Ns(XC.width,XC.height-h1J($U,kU))},mO=function(){var XC=function($U){$U.target===h.value&&U()&&(L(!1),h.value.removeEventListener("transitionend",XC))};
AeU()||(h.value.addEventListener("transitionend",XC),L(!0));c(!z())};
_.lX(function(){var XC=ll(),$U=_.sH(3),kU=_.YN(3);if($U&&kU&&XC){_.uw($U,kU,XC);kU=CD();var zN=E0(),IC=xU(),QL=pU(),Fi=gB();IC&&QL&&Fi&&(_.Qp($U,XC,[IC,QL,Fi]),_.Eo($U,[IC,QL]));kU&&zN&&_.Qp($U,XC,[kU,zN])}},"DuFzOc");
_.lX(function(){var XC=pd();if(XC){var $U=_.sH(0),kU=_.YN(0);$U&&kU&&(_.uw($U,kU,XC),_.Eo($U,[XC]))}},"vwRnmc");
Ha={};return _.R("ytd-miniplayer",{el:h,class:_.CO("ytdMiniplayerComponentHost",(Ha.ytdMiniplayerComponentVisible=function(){return M()||d()},Ha.ytdMiniplayerComponentAnimatingSnap=I,Ha.ytdMiniplayerComponentAnimatingPlaylistExpand=U,Ha.ytdMiniplayerComponentAnimatingFade=d,Ha),function(){if(d()){var XC=NN();
var $U=M(),kU=q();XC=$U?XC==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":kU?XC==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":XC==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else XC="";return XC}),
style:_.fO({top:function(){return NN()==="north"?"16px":""},
right:function(){return iO()==="east"?"16px":""},
bottom:function(){return NN()==="south"?"16px":""},
left:function(){return iO()==="west"?"16px":""},
width:function(){return RG().width+"px"},
height:function(){return RG().height+"px"},
transform:function(){var XC=A();return XC?"translate("+XC.x+"px, "+XC.y+"px)":""}})},_.R("div",{class:"ytdMiniplayerComponentContent"},_.R(r_G,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(XC){var $U=Qdi(iO(),NN(),g(),RG(),A()),kU=Db();Math.abs(XC.clientY-($U.y+kU.height))>15?(u(!0),XC=_.sH(3),$U=CD(),TN||(TN=!0,XC&&$U&&_.Eo(XC,[$U])),XC&&$U&&_.Z$(XC,$U)):XC.preventDefault()},
onDrag:function(XC){E4(XC)},
onDragEnd:function(){var XC=buG(Qdi(iO(),NN(),g(),RG(),A()),g(),RG()),$U=uDJ(iO(),NN(),g(),RG()),kU=uDJ(XC.horizontalAlignment,XC.verticalAlignment,g(),RG());kU=new _.nt(kU.x-$U.x,kU.y-$U.y);var zN;$U=$U.y+(((zN=A())==null?void 0:zN.y)||0)+RG().height/2;var IC=function(){iO()===XC.horizontalAlignment&&NN()===XC.verticalAlignment||y(!0);RW(XC.horizontalAlignment);Cd(XC.verticalAlignment);E4(void 0)},QL=function(Fi){Fi.target===h.value&&I()&&(B(!1),IC(),h.value.removeEventListener("transitionend",QL))};
u(!1);NN()==="south"&&$U>g().height?(IC(),_.GF().resolve(_.Yu).close()):(h.value.addEventListener("transitionend",QL),B(!0),E4(kU))}},_.R(_.P,{cond:M,
then:function(){return _.R(_.WxX,{isDisabled:jF,playabilityStatus:Rm,size:Db})}}),_.R(_.P,{cond:U0,
then:function(){return _.R(_.Z8R,{isReadyToResume:Im,data:zf,expanded:z,onExpandClick:mO,playlistData:eF})}}),_.R(_.P,{cond:E,
then:function(){return _.R("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.R(_.P,{cond:function(){return QF()&&z()||U()},
then:function(){return _.R(_.F4f,{className:"ytdMiniplayerComponentPlaylistPanel",data:eF,hideHeaderText:!0,withinMiniplayer:!0})}}),_.R("div",{class:"ytdMiniplayerComponentToast"},_.R(_.phU,{toastData:H}))),_.R(m4c,{onResize:function(XC){$$(_.vw(192,XC,720))},
onResizeStart:function(){var XC=_.sH(3),$U=E0();hC||(hC=!0,XC&&$U&&_.Eo(XC,[$U]));XC&&$U&&_.Z$(XC,$U)},
currentAspectRatio:r,currentMiniplayerSize:Ba,horizontalAlignment:iO,verticalAlignment:NN}))},"ti"),"ytd-miniplayer",{});var HGU=_.AU.persistentPanelVisibleSelector,Ch=function(){var h=_.D.apply(this,arguments)||this;h.tabGesturesIsActive=!1;h.persistentPanelEnabled=_.J("enable_ai_companion");h.hasDelegation=!1;h.darkerDarkTheme=_.J("web_darker_dark_theme");h.isFrostedGlassInitialized=!1;h.frostedGlassExp=_.J("web_frosted_glass");h.mastheadHiddenFocusWithinKillswitch=_.J("web_masthead_hidden_focus_within_killswitch");h.clientOnlyWizTooltipsEnabled=_.J("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
h.scrollAtTop=!0;h.guideScrollTop=0;h.isTheaterModeSession=_.Xn("START_IN_THEATER_MODE");h.iMaxTheaterMode=_.J("web_watch_imax_theater_mode");h.isFullWindowSession=_.Xn("START_IN_FULL_WINDOW_MODE");h.hasCreateFamilyDialog=!1;h.mastheadHeight=56;h.networkStatusManager=new _.bK;h.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"};h.dynamicActionMap={"yt-run-attestation-command":function(E){var g=_.rMR.instance,Z=_.e(E,_.yoD);return Z?_.J("use_rta_manager_for_async")&&
cTU()?b$G(g,Z,E.clickTrackingParams):TEU(g,Z,E.clickTrackingParams):_.$B(Error("vi"))}};
h.isFrostedGlassDisabled=!1;h.isChannelOrPlaylistPage=!1;return h};
_.f(Ch,_.D);_.p=Ch.prototype;_.p.created=function(){var h=_.GF();_.J("kevlar_clear_duplicate_pref_cookie")&&_.xW(_.KP,function(){var E=_.qd.get("PREF");E&&!/f\d=/.test(E)&&(E=_.iN("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=E?"PREF=null;domain="+E+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.J("gzip_gel_with_worker")&&_.O3V();_.J("jspb_serialize_with_worker")&&mHR();_.J("web_worker_availability_check")&&Yax();_.J("nwl_init_killswitch")||lAU().then(function(){_.KP.addLowPriorityJob(PFX)});
this.pageManagerAttachedPromise=_.hU();this.ytdAppBehavior.loadDepsPromise=_.$D([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.TD(this.onThrottledScroll,200,this);_.J("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);fAU();jOC=!!_.yy("ytappsettings.initialized");Gm=_.yy("ytappsettings.previousValue");WMc=_.yy("ytappsettings.previousSnapshotTime");jOC||(jOC=!0,pnJ());CFc();J7Z();_.OW("DEFERRED_DETACH",
_.J("kevlar_tuner_should_defer_detach"));_.OW("REUSE_COMPONENTS",!0);_.OW("STAMPER_STABLE_LIST",!0);_.OW("SCHEDULED_LAZY_LIST",!0);_.OW("openPopupConfig",ffx);_.OW("useClickHandler",!0);_.J("kevlar_shell_cleanup")&&_.KP.addLowPriorityJob(PV0.bind(this,_.MN.caches));_.Xn("IS_SHELL_LOAD")&&_.nZ({shellStartupDurationMs:Math.round((0,_.zn)()-_.vX())});tpp(this.networkStatusManager);_.J("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",dTJ(tCX)),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!",
dTJ(SgU)),console.log("%cVisit http://go/join-youtube-web to apply today.",dTJ(x4G)));_.YYI(h.resolve(_.hi),1E3)};
_.p.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var h=VjU();h&&!_.J("external_fullscreen_killswitch")&&document.addEventListener(h,this.setFullscreen.bind(this));(h=window.matchMedia("(prefers-color-scheme: dark)"))&&h.addEventListener&&h.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.p.attached=function(){var h=this;_.RS().processSignal("ci");_.J("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.hVm?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Ie(_.gid(),"SUCCESS");this.updateIconSet();_.oa(this.guideInnerContent,!1);_.bc().initVisibilityObserver();this.guideService.guideElement=this.guide;var E=document.createElement("ytd-miniplayer"),g=_.UB(this.hostElement).querySelector("#content");
_.UB(this.hostElement).insertBefore(E,g);_.RS().processSignal("ma");_.GF().resolve(_.Yu).init(E);this.persistentPanelEnabled&&_.T90(_.GF().resolve(_.g_),this.persistentPanelContainer,"APP");_.Xn("IS_SHELL_LOAD")&&(g=document.createElement("ytd-network-status-banner"),_.UB(this.hostElement).insertBefore(g,E));_.J("kevlar_right_click_on_lockups")&&_.Gg._onCaptureClick&&document.addEventListener("contextmenu",_.Gg._onCaptureClick.bind(_.Gg),!0);var Z=function(){var M=_.t6("yt-page-navigation-progress");
_.UB(h.hostElement).appendChild(M)};
setTimeout(function(){_.RS().parkOrScheduleJob(Z,0,"eocs",16)},0);
_.J("service_worker_push_enabled")&&_.xW(_.KP,YoG);_.bp(_.Tq.getInstance(),this.dynamicActionMap,this.hostElement);_.Ra(this.hostElement,"ytd-app-attached");_.RS().processSignal("aa");MDG(this.hostElement);_.Wu("gapi.load",_.vi$);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.xW(_.KP,
function(){var M=document.createElement("ytd-video-preview");_.UB(_.UB(h.hostElement).querySelector("#video-preview")).appendChild(M)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.xW(_.KP,function(){qax();h.registerWithViewTransitionManager()});
if(_.$Y()&&this.isAppDarkTheme()!==_.vp())this.onDarkModeToggledAction();else E=_.Hp()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==E&&(_.J("enable_dark_theme_only_on_shorts")?_.gD(_.J("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Qy(window.location.href,{theme:"dark"})):_.O$(new _.xX("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(xqC=new SVR(this.hostElement)),J_U=new Cu0(this.hostElement),d4X=new jAi(this.hostElement),AYJ=new FtX(this.hostElement)};
_.p.getThemeSettingsToLog=function(){var h=_.Hp()==="USER_INTERFACE_THEME_DARK";h=_.$Y()?_.vp()?"os-dark":"os-light":h?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:h,cookiesEnabled:_.Nd()}};
_.p.detached=function(){_.Ia(this.guideInnerContent);_.KP.cancelJob(Mn);Mn=0;_.KP.cancelJob(pq);pq=0;_.Qux(Ze0);Ze0.length=0;hOU=_.va$=null;_.bc().dispose();_.J("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.up(_.Tq.getInstance(),xqC.playlistHandlerActionMap,xqC.JSC$32093_clientRoot);_.up(_.Tq.getInstance(),J_U.downloadManagerActionMap,J_U.JSC$32382_clientRoot);_.up(_.Tq.getInstance(),d4X.feedbackCollectorActionMap,d4X.JSC$32377_clientRoot);
for(var h=_.G(AYJ.eventListeners),E=h.next();!E.done;E=h.next()){var g=_.G(E.value);E=g.next().value;g=g.next().value;g=_.G(g);for(var Z=g.next();!Z.done;Z=g.next()){var M=_.G(Z.value);Z=M.next().value;M=M.next().value;E.removeEventListener(Z,M)}}_.up(_.Tq.getInstance(),AYJ.autonavPauseActionMap,AYJ.JSC$20002_clientRoot)};
_.p.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.xe().getFlag(186)};
_.p.computeIsInlinePreviewEnabled=function(h,E,g){return!g&&_.KgJ({miniplayerIsActive:h,miniplayerPlaybackState:E})};
_.p.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.RY({type:"SET_FROSTED_GLASS_MODE",payload:!_.J("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.p.computeIsFrostedGlassDisabled=function(h,E,g,Z){return h||E||g||Z&&_.J("web_frosted_glass_disable_watch")};
_.p.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.J("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.p.computeIsHomePage=function(h,E){if(!h||E==null||!E.endpoint)return!1;var g;return((g=_.e(E.endpoint,_.tk))==null?void 0:g.browseId)==="FEwhat_to_watch"};
_.p.updateIsChannelOrPlaylistPage=function(){if(_.J("web_frosted_glass")){var h,E,g=(E=(h=_.GF().resolve(_.pl(_.p4)))==null?void 0:h.getCurrentPage())==null?void 0:E.pageSubtype;this.isChannelOrPlaylistPage=g?["channel","channels","playlist"].includes(g):!1}};
_.p.scheduleFrostedGlassInitialization=function(){var h=this;_.J("web_frosted_glass")&&_.RS().parkOrScheduleJob(function(){h.isFrostedGlassInitialized=!0},0,_.dm(["eocs",
"cr"]),300)};
_.p.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.LRM(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.RY({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.RY({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.p.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(coc(!0))};
_.p.onYtSignalActionRequestPersistentStorage=function(){if(!_.J("request_persistent_storage_killswitch")){var h=_.GF().resolve(_.wiU);h.cachedPersistStatePromise||(h.cachedPersistStatePromise=wWG())}};
_.p.handleYtChannelCreationFormEndpoints=function(h){h&&this.ytComponentBehavior.resolveCommand(h)};
_.p.handleShowEngagementPanelEndpoint=function(h){h&&this.ytComponentBehavior.resolveCommand(h)};
_.p.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(coc(!1))};
_.p.initIconDefs=function(h,E){var g=document.createElement("iron-iconset-svg");g.name=h;h=document.createElementNS("http://www.w3.org/2000/svg","svg");g.appendChild(h);h.appendChild(E);document.body.appendChild(g);return g};
_.p.onWindowResized=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var h=_.tGD.getInstance();h.documentWidth_=document.body.clientWidth;e1G(h)};
_.p.onWindowScrolled=function(){var h=_.GF().resolve(_.p4).getCurrentPage();if(h!=null&&h.getScrollTop){var E=this.ytdReduxBehavior,g=E.dispatch;h=h.getScrollTop()<=0;g.call(E,_.RY({type:"SET_SCROLL_AT_TOP",payload:h}))}};
_.p.guideIsVisibleButNotPersistentSelectorChanged=function(){var h=_.GF().resolve(_.p4).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=h.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"),
h.setScrollTop(this.guideScrollTop));_.U7(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.p.getCurrentPageScrollableElementType=function(){var h=_.GF().resolve(_.p4).getCurrentPage();if(h&&h.getPageScrollingElement())return h.getPageScrollingElement().nodeName};
_.p.observeGuideVisibility=function(){var h=_.tGD.getInstance(),E=this.miniGuideVisible;h.guidePersistentAndVisible_=this.guidePersistentAndVisible;h.miniGuideVisible_=E;e1G(h)};
_.p.handleEduDismissAction=function(h){h&&h.eduDismissAction&&(_.BX(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Jul.getInstance(),_.Sn.set(h.eduDismissAction.key+"-dismissed",!0))};
_.p.handleEduImpressionAction=function(h){if(h&&h.eduImpressionAction){var E=_.Jul.getInstance();h=h.eduImpressionAction.key;E.JSC$13024_eduDisplayedThisLoad_[_.C7H[h].setKey||h]=!0;_.Sn.set(h+"-impression",parseInt(_.Sn.get(h+"-impression")||0,10)+1)}};
_.p.onYtSignalActionConfirmMentionsEdu=function(){_.BX(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.DI.getInstance();_.wW.set("edu-dismissed",!0)};
_.p.onYtSignalActionRecordMentionsEduImpression=function(){_.DI.getInstance();var h=_.wW.set,E=parseInt(_.wW.get("edu-impressions"),10);h.call(_.wW,"edu-impressions",(isFinite(E)?E:0)+1)};
_.p.onYtPageManagerAttached=function(h){var E;((E=_.zw(h))==null?void 0:E.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.p.onInvokeInstrumentManagerAction=function(h,E){FqC(E,h)};
_.p.updateIconSet=function(){var h=this.hostElement.querySelector("#masthead");if(h){var E=_.L3(h),g=E.querySelector("g#yt-logo-updated");g&&(h=document.createElementNS("http://www.w3.org/2000/svg","defs"),h.appendChild(g.cloneNode(!0)),(E=E.querySelector("g#yt-logo-red-updated"))&&h.appendChild(E.cloneNode(!0)),this.initIconDefs("yt-logos-ext",h))}};
_.p.updateMastheadData=function(){var h=this,E,g,Z,M,W;return _.a(function(z){if(z.nextAddress==1){E=h.data;g=h.hostElement.querySelector("#masthead");if(!g)return z.return();_.pQ(h,function(){g.data=h.topbarData});
if(!h.get("response.topbar",E)||h.get("response.topbar.responseContext.maxAgeSeconds",E)===0)return z.jumpTo(0);if(Z=_.GF().resolve(_.rn))return z.yield(Z(),6);M=_.GF().resolve(_.H_);return z.yield(M.put("service:topbar:fallback",new _.$a({innertubeResponse:h.get("response.topbar",E)})),0)}return(W=z.yieldResult)?z.yield(W.put("service:topbar:fallback",new _.$a({innertubeResponse:h.get("response.topbar",E)})),0):z.jumpTo(0)})};
_.p.computeTopbarData=function(h){if(!h)return null;var E;return this.isShortsPage&&this.topbarData&&!_.e((E=h.response)==null?void 0:E.topbar,I7U)?this.topbarData:h.response&&"topbar"in h.response?_.e(h.response.topbar,I7U)||null:null};
_.p.onSetTheaterModeEnabled=function(h,E){this.isTheaterModeSession=E.enabled;this.setTheaterModeStyles(E.enabled)};
_.p.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.p.onDarkModeToggledAction=function(){var h=_.jy(window.location.href);if(!_.ySz(h)){(h=!!_.uI(window.location.href).themeRefresh)&&_.O$(new _.xX("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!h){pnJ();h={themeRefresh:1};var E=_.GF().resolve(_.p4);if(E.isOnWatch()){var g,Z;E=((g=E.getPlayerFromWatch())==null?void 0:(Z=g.getPlayer())==null?void 0:Z.getCurrentTime())||0;E>=1&&(h.time_continue=Math.floor(E))}_.Nd()||_.Hp()!=="USER_INTERFACE_THEME_DARK"||(h.theme="dark");_.gD(_.Qy(window.location.href,
h))}_.J("web_appshell_refresh_trigger")&&_.MN.caches&&this.refreshAppShellResponse();g=_.QE(window.location.href);_.nV(_.GF().resolve(_.XJ),_.aa(g,"theme"))}};
_.p.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.p.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.p.onPlayerFullscreen=function(h){_.cX();this.playerFullscreen=h};
_.p.setRestrictedMode=function(h){var E=_.xe();_.wC(0,58,h);E.save();_.GF().resolve(_.TV).reload()};
_.p.onPageChanged=function(h){h.detail.newPageType==="ytd-watch-flexy"||h.detail.newPageType==="ytd-watch-fixie"||h.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.wE("WEB_PAGE_TYPE_WATCH")):h.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.wE("WEB_PAGE_TYPE_SHORTS")):h.detail.newPageType==="ytd-browse"&&h.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.wE("WEB_PAGE_TYPE_MINI_APP")):_.J("web_frosted_glass")&&h.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.wE("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.wE("WEB_PAGE_TYPE_UNKNOWN"));h.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.p.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.p.onGuideToggleTap=function(){_.Ra(this.hostElement,"yt-guide-toggle")};
_.p.onGuideToggleHover=function(){_.Ra(this.hostElement,"yt-guide-hover")};
_.p.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.p.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.p.setMastheadTheme=function(){var h=_.L3(this.hostElement).querySelector("#masthead");h&&(h.dark=h.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),h.isDarkThemeForced=!1)};
_.p.onRequestPanelModeChange=function(h,E){this.hideHeaderShadow=E.mode!=="seamed"};
_.p.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.p.onDrawerIronSelect=function(h){_.zw(h).id==="guide"&&this.processDrawerIronSelect()};
_.p.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var h="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(h="opened"));_.Ra(this.hostElement,"yt-autonav-pause-guide-"+h)};
_.p.onAddElementToApp=function(h){_.UB(this.hostElement).appendChild(h.detail)};
_.p.onThrottledScroll=function(){var h=_.GF().resolve(_.p4).getCurrentPage();h&&(this.scrollAtTop=h.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.p.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.p.setFullscreen=function(){if(_.J("external_fullscreen")||!this.isWatchPage){var h=_.J("kevlar_fullerscreen_root_only_killswitch")?!!_.cX():!!_.cX()&&_.cX()===document.documentElement;h=(this.isWatchPage||_.J("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(h||this.isFullWindowSession);this.fullscreen!==h&&((this.fullscreen=h)&&_.U7(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Gv().dispatch(_.GUl(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.BX(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.p.setFullscreenLoggingForShorts=function(h){var E,g,Z;return _.a(function(M){if(M.nextAddress==1)return M.yield((E=_.zD())==null?void 0:E.getPlayerPromise(),2);g=M.yieldResult;(Z=g)==null||Z.setAppFullscreen(h);_.SK(M)})};
_.p.updateMastheadCssHeight=function(){var h=this.mastheadHeight;this.fullscreen&&(h=0);_.Ja(this.hostElement,{"--ytd-masthead-height":h+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.p.updateNetworkStatusBannerDisplayStatus=function(){var h="unset";this.fullscreen&&(h="none");_.Ja(this.hostElement,{"--ytd-network-status-banner-display":h})};
_.p.updateNetworkStatusBannerCssHeight=function(){var h="unset";this.fullscreen&&(h="0px");_.Ja(this.hostElement,{"--ytd-network-status-banner-max-height":h})};
_.p.updateScrollAndMasthead=function(h,E,g,Z){this.iMaxTheaterMode||(Z=!1);var M=_.GF().resolve(_.p4).getCurrentPage();h||E||Z?(document.body.classList.add("no-scroll"),M.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.qm(this,this.onScroll)),M.setScrollTop(0),_.Ja(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.UI()+"px"})):g?_.Ra(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Ra(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
M.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.qm(this,this.onScroll)));this.mastheadHidden=h||E||g;this.updateMastheadCssHeight();_.J("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.p.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.p.onYtNavigateAction=function(h){h=this.get("navigateAction.endpoint",h);_.Ra(this.hostElement,"yt-navigate",{endpoint:h})};
_.p.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var h=document.createElement("yt-create-family-dialog");_.UB(this.hostElement).appendChild(h);this.hasCreateFamilyDialog=!0}};
_.p.onSetPushNotificationsEnabledCommand=function(h){var E=this,g=_.e(h,oKZ);g&&typeof g.enabled==="boolean"&&(Notification.permission!=="granted"?$wG().then(function(){Notification.permission==="granted"?(JjU(!g.enabled).then(f$I),g.successAction&&_.LZ(E.hostElement,[g.successAction])):g.failureAction&&_.LZ(E.hostElement,[g.failureAction])}):(JjU(!g.enabled).then(f$I),g.successAction&&_.LZ(this.hostElement,[g.successAction])))};
_.p.onYtSignalActionEnableChromeNotifications=function(){KM0(!0)};
_.p.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.e(this.topbarData.hotkeyDialog,BPi)}}})};
_.p.onYtSignalActionShowKeyboardShortcutDialog=function(){_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.p.onYtEndpointChangeHandler=function(h,E){var g=_.Zt(_.Ac);g.pendingPrefetchJob_&&(E=!(!E||E.autonav!="1"),g.pendingPrefetchJob_.resolve(h&&_.HVO(h)?_.$9x(h,E):""),g.pendingPrefetchJob_=null);_.BX(this.hostElement,"yt-pause-active-page-context");_.BX(this.hostElement,"ytd-log-youthere-nav");_.BX(this.hostElement,"yt-prepare-page-dispose")};
_.p.handleCommandWithCommandHandler=function(h,E){_.eQ.instance.resolveCommand(h,{form:{element:E}})};
_.p.onYtTimedCommand=function(h){var E=this;h=_.e(h,EKG);var g=h.command;g&&_.Pw(_.KP,function(){var Z=_.e(g,_.KwD);Z?(_.eQ.instance.resolveCommand(g),E.maybeLogGetAnswerRequestTick(Z)):_.jj(E.hostElement,[g],E.hostElement)},h.timeoutMs||0)};
_.p.maybeLogGetAnswerRequestTick=function(h){h&&h.isFirstRequest&&(_.Ye("search_overview_answer"),_.s7("so_rq",void 0,"search_overview_answer"))};
_.p.onYtSignalActionSkipNavigation=function(){var h=_.GF().resolve(_.p4).getCurrentPage();_.E$(h)};
_.p.onYtSignalActionCopyDebugData=function(){uMc()};
_.p.handleEntityUpdateCommand=function(h){_.tj(_.e(h,_.ReC).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.p.logFlowLoggingEventCommand=function(h){if(h=_.e(h,_.eZd))if(h.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var E=h.flowEventNamespace,g=h.flowEventType,Z=h.flowType;Z&&E&&g&&_.S3z(_.Cm(E,g,h.flowEventMetadata),Z)}else{E=_.el();g=h.flowEventNamespace;Z=h.flowEventType;var M=h.flowType;M&&g&&Z&&_.Jk(E,_.Cm(g,Z,h.flowEventMetadata),M,h.flowNonce)}};
_.p.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.p.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.p.onTouchStart=function(){var h=_.uc();_.sH()&&_.TT(h.JSC$13252_screenManager,{visualElement:h.ve})};
_.p.handleSelectLanguageCommand=function(h){if(h=_.e(h,a7U).hl){var E=_.xe();E.set("hl",h);E.save();_.GF().resolve(_.TV).reload()}};
_.p.handleConfirmDialogEndpoint=function(h){(h=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(h))&&this.ytOpenPopupBehavior.openPopup(h)};
_.p.handleOpenPopupNavigationEndpoints=function(h,E){_.J("web_button_rework")&&(h=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(h))&&this.ytOpenPopupBehavior.openPopup(h,E)};
_.p.handleSaveCommandToSessionStorage=function(h){if(h=_.e(h,_.QOl)){var E=h.key;E&&h.command&&window.sessionStorage.setItem(E,JSON.stringify(h.command))}};
_.p.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(h){h&&h.active&&h.active.postMessage({type:"refresh_shell"})}).catch(function(h){h.name!=="SecurityError"&&_.$W(h)})};
_.p.onDeviceThemeChanged=function(){var h=_.vp();_.wC(_.xe(),185,h);_.xe().save()};
_.p.handleYtRegisterPromoCommand=function(h){if(_.e(h,iJG)){var E=_.GF().resolve(_.p4).getCurrentPage()||this.hostElement;MVX().registerPromoCommand(_.e(h,iJG),E)}};
_.p.onYtNavigateHomeAction=function(){if(!_.J("kevlar_miniplayer_navigate_home_from_app_killswitch")){var h,E,g,Z,M=(Z=(h=this.topbarData)==null?void 0:(E=h.logo)==null?void 0:(g=E.topbarLogoRenderer)==null?void 0:g.endpoint)!=null?Z:_.VU;this.ytComponentBehavior.resolveCommand(M)}};
_.p.onYtLocationCollectionCommand=function(h){JeR(_.e(h,qEJ))};
_.p.onYtGetLocationCommand=function(h){NuG(_.e(h,e_0),this)};
_.p.updateRenderGuideFromBinding=function(h){this.renderGuide=h.detail.value};
_.p.updateGuidePersistentAndVisibleFromBinding=function(h){this.guidePersistentAndVisible=h.detail.value};
_.p.updateMiniGuideVisibleFromBinding=function(h){this.miniGuideVisible=h.detail.value};
_.p.onThemeSelected=function(h,E){var g=_.xe(),Z=h||E?h:_.vp(),M=(Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Z&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.ySz(_.jy(window.location.href));_.wC(0,165,h);_.wC(0,174,E);g.save();M&&_.BX(this.hostElement,"yt-dark-mode-toggled-action",[Z]);_.BX(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.p.getCurrentTheme=function(){return _.$Y()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hp()};
_.p.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.p.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.p.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.p.handleShowConsentPrimitive=function(h){var E=this,g,Z;return _.a(function(M){if(M.nextAddress==1){try{g=(Z=_.zD())==null?void 0:Z.getPlayerPromise()}catch(W){}return M.yield(n7i(h,g),2)}_.BX(E.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.SK(M)})};
_.p.handleSelectActiveIdentityEndpointInternal=function(h){_.ha();h=_.e(h,_.Eml);if(h!=null&&h.supportedTokens){h=_.G(h.supportedTokens);for(var E=h.next();!E.done;E=h.next())E=E.value,E.accountSigninToken&&_.gD(E.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.p.handleUpdatePermissionRoleCommand=function(h){if(h=_.e(h,_.gTm)){var E;this.hasDelegation=!((E=_.e(h.renderer,_.ETk))==null||!E.status)}};
_.p.registerWithViewTransitionManager=function(){var h=_.GF().resolve(_.pl(_.Vr));if(h){var E,g=(E=this.guide)==null?void 0:E.querySelector("#scrim"),Z;E=(Z=this.guide)==null?void 0:Z.querySelector("#contentContainer");g&&E&&h.isAnyTransitionEnabled&&(Z={},h.viewTransitionCoordinator.registerElement(g,(Z.slide="app-drawer-scrim-page-transition",Z["lockup-to-watch"]="app-drawer-scrim-page-transition",Z["learning-journey"]="app-drawer-scrim-page-transition",Z)),g={},h.viewTransitionCoordinator.registerElement(E,
(g.slide="app-drawer-container-page-transition",g["lockup-to-watch"]="app-drawer-container-page-transition",g["learning-journey"]="app-drawer-container-page-transition",g)))}};
_.ze.Object.defineProperties(Ch.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.J("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.ze.Object.defineProperties(Ch,{template:{configurable:!0,enumerable:!0,get:function(){if(IKU===void 0){var h=document.createElement("template");_.N(h,'\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 id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
h.content.insertBefore(_.F().content.cloneNode(!0),h.content.firstChild);IKU=h}h=IKU;return h}}});
Ch.prototype.onOpenHotkeyDialog=Ch.prototype.onOpenHotkeyDialog;Ch.prototype.setFullscreen=Ch.prototype.setFullscreen;Ch.prototype.onAddElementToApp=Ch.prototype.onAddElementToApp;Ch.prototype.onDrawerIronSelect=Ch.prototype.onDrawerIronSelect;Ch.prototype.onGuideOpenButtonHover=Ch.prototype.onGuideOpenButtonHover;Ch.prototype.onRequestPanelModeChange=Ch.prototype.onRequestPanelModeChange;Ch.prototype.onPageDataUpdated=Ch.prototype.onPageDataUpdated;Ch.prototype.onPageChanged=Ch.prototype.onPageChanged;
Ch.prototype.onSetTheaterModeEnabled=Ch.prototype.onSetTheaterModeEnabled;Ch.prototype.updateMastheadData=Ch.prototype.updateMastheadData;Ch.prototype.onYtPageManagerAttached=Ch.prototype.onYtPageManagerAttached;Ch.prototype.observeGuideVisibility=Ch.prototype.observeGuideVisibility;Ch.prototype.guideIsVisibleButNotPersistentSelectorChanged=Ch.prototype.guideIsVisibleButNotPersistentSelectorChanged;Ch.prototype.isInlinePreviewEnabledChanged=Ch.prototype.isInlinePreviewEnabledChanged;
Ch.prototype.isWatchPageChanged=Ch.prototype.isWatchPageChanged;Ch.prototype.dispatchFrostedGlassMode=Ch.prototype.dispatchFrostedGlassMode;_.Y([_.t(_.aF),_.V("design:type",Object)],Ch.prototype,"ytdReduxBehavior",void 0);_.Y([_.t(_.Az.YtEventForwardingBehavior),_.V("design:type",Object)],Ch.prototype,"ytEventForwardingBehavior",void 0);_.Y([_.t(_.n6.YtOpenPopupBehavior),_.V("design:type",Object)],Ch.prototype,"ytOpenPopupBehavior",void 0);
_.Y([_.t(_.Yl.YtActionHandlerBehavior),_.V("design:type",Object)],Ch.prototype,"ytActionHandlerBehavior",void 0);_.Y([_.t({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Tq.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.J("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var h;((h=this.actionRouterNode.hostElement)!=null?h:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var h;((h=this.actionRouterNode.hostElement)!=null?h:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(h){this.actionRouter_.handleAction(h.detail)}}),
_.V("design:type",Object)],Ch.prototype,"ytActionRouterBehavior",void 0);_.Y([_.t(i0p.YtdAppBehavior),_.V("design:type",Object)],Ch.prototype,"ytdAppBehavior",void 0);_.Y([_.t(_.Xd.YtEndpointBehavior),_.V("design:type",Object)],Ch.prototype,"ytEndpointBehavior",void 0);_.Y([_.t(L_Z.YtEndpointHandlerWithYpcBehavior),_.V("design:type",Object)],Ch.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.Y([_.t(RDG.YtLogYpcFlowCommandsBehavior),_.V("design:type",Object)],Ch.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.Y([_.t(_.T.YtRendererBehavior),_.V("design:type",Object)],Ch.prototype,"ytRendererBehavior",void 0);_.Y([_.t(_.IU.YtComponentBehavior),_.V("design:type",Object)],Ch.prototype,"ytComponentBehavior",void 0);_.Y([_.x({selector:_.Jxp}),_.V("design:type",Object)],Ch.prototype,"tabGesturesIsActive",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Ch.prototype,"renderGuide",void 0);
_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"guidePersistentAndVisible",void 0);_.Y([_.x({selector:_.CIc}),_.V("design:type",Boolean)],Ch.prototype,"guideIsVisibleButNotPersistent",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"standalone",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"miniGuideVisible",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ch.prototype,"persistentPanelEnabled",void 0);_.Y([_.x({selector:HGU,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"persistentPanelVisible",void 0);_.Y([_.x({selector:_.zFM}),_.V("design:type",Number)],Ch.prototype,"miniplayerPlaybackState",void 0);_.Y([_.x({selector:_.so,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"miniplayerIsActive",void 0);
_.Y([_.x({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.V("design:type",Boolean)],Ch.prototype,"isInlinePreviewEnabled",void 0);_.Y([_.x(),_.V("design:type",Boolean)],Ch.prototype,"isInlinePreviewDisabled",void 0);_.Y([_.x({reflectToAttribute:!0,value:function(){return _.Xn("START_IN_FULL_WINDOW_MODE")}}),
_.V("design:type",Boolean)],Ch.prototype,"mastheadHidden",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"playerFullscreen",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"fullscreen",void 0);_.Y([_.x({value:!1,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"hideHeaderShadow",void 0);
_.Y([_.x({value:{GUIDE_ALT_LABEL:_.NH("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.V("design:type",Object)],Ch.prototype,"menuStrings",void 0);_.Y([_.x({computed:"computeTopbarData(data)"}),_.V("design:type",Object)],Ch.prototype,"topbarData",void 0);_.Y([_.x({selector:_.Mnz,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"isWatchPage",void 0);_.Y([_.x({selector:_.Wua,reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"isShortsPage",void 0);
_.Y([_.x({selector:function(h){return _.V7(h)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.V("design:type",Boolean)],Ch.prototype,"isMiniAppPage",void 0);_.Y([_.x({selector:function(h){return _.V7(h)==="WEB_PAGE_TYPE_BROWSE"}}),
_.V("design:type",Boolean)],Ch.prototype,"isBrowsePage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Boolean)],Ch.prototype,"scrolling",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"hasDelegation",void 0);_.Y([_.x({reflectToAttribute:!0,value:!1}),_.V("design:type",Boolean)],Ch.prototype,"guideScrolledByTouch",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"darkerDarkTheme",void 0);
_.Y([_.x(),_.V("design:type",Object)],Ch.prototype,"isFrostedGlassInitialized",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"frostedGlassExp",void 0);_.Y([_.x({selector:function(h){return h.ui.chipBarIsSticky}}),
_.V("design:type",Boolean)],Ch.prototype,"chipBarIsSticky",void 0);_.Y([_.x({computed:"computeIsHomePage(isBrowsePage, data)"}),_.V("design:type",Boolean)],Ch.prototype,"isHomePage",void 0);_.Y([_.x({reflectToAttribute:!0}),_.V("design:type",Object)],Ch.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.Y([_.x(),_.V("design:type",Object)],Ch.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.Y([_.XQ("guide"),_.V("design:type",Object)],Ch.prototype,"guide",void 0);
_.Y([_.XQ("guide-service"),_.V("design:type",u_U)],Ch.prototype,"guideService",void 0);_.Y([_.XQ("guide-inner-content"),_.V("design:type",HTMLDivElement)],Ch.prototype,"guideInnerContent",void 0);_.Y([_.Sg("#persistent-panel-container"),_.V("design:type",HTMLElement)],Ch.prototype,"persistentPanelContainer",void 0);_.Y([_.x({selector:_.aIa}),_.V("design:type",String)],Ch.prototype,"frostedGlassMode",void 0);
_.Y([_.Nm("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"dispatchFrostedGlassMode",null);_.Y([_.x({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.V("design:type",Object)],Ch.prototype,"isFrostedGlassDisabled",void 0);
_.Y([_.Nm("isWatchPage"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"isWatchPageChanged",null);_.Y([_.S("isHomePage","chipBarIsSticky"),_.V("design:type",Boolean),_.V("design:paramtypes",[])],Ch.prototype,"applyFrostedGlassToChipBar",null);_.Y([_.x(),_.V("design:type",Object)],Ch.prototype,"isChannelOrPlaylistPage",void 0);
_.Y([_.lq("isInlinePreviewEnabled"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"isInlinePreviewEnabledChanged",null);_.Y([_.Nm("guideIsVisibleButNotPersistent"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.Y([_.Nm("guidePersistentAndVisible","miniGuideVisible"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"observeGuideVisibility",null);_.Y([_.f3("attached"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Ch.prototype,"onYtPageManagerAttached",null);_.Y([_.Nm("data"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype",Promise)],Ch.prototype,"updateMastheadData",null);
_.Y([_.f3("yt-set-theater-mode-enabled"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent,Object]),_.V("design:returntype")],Ch.prototype,"onSetTheaterModeEnabled",null);_.Y([_.f3("yt-page-type-changed"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ch.prototype,"onPageChanged",null);_.Y([_.f3("yt-page-data-updated"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"onPageDataUpdated",null);
_.Y([_.f3("yt-request-panel-mode-change"),_.V("design:type",Function),_.V("design:paramtypes",[Event,Object]),_.V("design:returntype")],Ch.prototype,"onRequestPanelModeChange",null);_.Y([_.f3("yt-guide-hover"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"onGuideOpenButtonHover",null);_.Y([_.f3("app-drawer-transitioned"),_.V("design:type",Function),_.V("design:paramtypes",[Event]),_.V("design:returntype")],Ch.prototype,"onDrawerIronSelect",null);
_.Y([_.f3("yt-add-element-to-app"),_.V("design:type",Function),_.V("design:paramtypes",[CustomEvent]),_.V("design:returntype")],Ch.prototype,"onAddElementToApp",null);_.Y([_.f3("yt-set-fullerscreen-styles"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"setFullscreen",null);_.Y([_.f3("yt-open-hotkey-dialog"),_.V("design:type",Function),_.V("design:paramtypes",[]),_.V("design:returntype")],Ch.prototype,"onOpenHotkeyDialog",null);
_.Y([_.K({is:"ytd-app"})],Ch);_.RS().processSignal("eor");
_.K8();
}catch(e){_._DumpException(e)}
try{
_.$d("NSzT5");
var FrC;_.FQ=function(h){var E=document.createElement("link");_.aH(E,h,"stylesheet");document.head.appendChild(E)};
_.Ap=function(h,E){var g,Z;return _.a(function(M){g=document.createElement("div");g.id=h.id;h.className&&(g.className=h.className);Z=h.element;if(!Z)throw Error("bk");if(h.location==="prepend")Z.prepend(g);else if(h.location==="appendChild")Z.appendChild(g);else if(h.location==="after")Z.after(g);else throw Error("ck");return M.return(_.rX(g,E,"hh"))})};
_.Ta=function(h){var E;return _.a(function(g){(E=document.getElementById(h))&&E.remove();_.SK(g)})};
_.bA=function(h,E){var g=document.querySelector(h);g?E(g):setTimeout(function(){_.bA(h,E)},1E3)};
_.AQC=function(h,E,g){var Z;_.a(function(M){if(M.nextAddress==1)return(Z=document.getElementById(h))?M.jumpTo(2):M.yield(FrC(h,E,g),2);if(Z=document.getElementById(h))Z.style.display="block";_.SK(M)})};
FrC=function(h,E,g){return _.a(function(Z){return Z.return(new Promise(function(M){_.bA("div #panels",function(W){_.Ap({element:W,location:"appendChild",id:h,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+g},E);M()})}))})};
_.Q5I=function(){_.Ta("creator_chatbots-entry-point");_.Ta("creator_chatbots-panel");_.FQ(TAR);_.bA("ytd-watch-metadata #top-level-buttons-computed",function(h){document.getElementById("creator_chatbots-entry-point")||(_.Ap({element:h,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.R(bQZ,null)}),_.AQC("creator_chatbots-panel",function(){return _.R(uax,{usePlayerHeight:!0})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.uA=_.O(function(h){var E=h.text;var g=h.onClick;var Z=h.color;var M=h.backgroundColor;var W=h.buttonSize;var z=h.disabled;var c=h.iconName;var I=h.iconSize;h=h.className;var B=_.J7(function(L){g(L)}),U={};
return _.R("button",{class:_.CO("ytpStandardButtonsHost",(U.ytpStandardButtonsLarge=function(){return(W==null?void 0:W())==="large"},U),h),
"on:click":B,style:_.fO({color:Z,"background-color":M}),disabled:z}," ",_.R(_.P,{cond:c,then:function(){return _.R(_.Ni,{className:"ytpStandardButtonsIconContainer",icon:c,size:I})}}),E)},"gh");_.hhp=_.O(function(h){var E;return _.R("div",{class:_.CO("ytprototypesEngagementPanelComponentHost",h.className),id:h.id},_.R("div",{class:_.CO("ytprototypesEngagementPanelComponentEngagementPanelHeader",h.headerClassName)},_.R("div",null,h.header()),_.R("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.R("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(E=h.HeaderButton)==null?void 0:E.call(h)),_.R(_.uA,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var g;(g=h.onHide)==null||g.call(h);g=h.id();if(g=document.getElementById(g))g.style.display="none"}}))),_.R("div",{class:_.CO("ytprototypesEngagementPanelComponentEngagementPanelContent",h.contentClassName),
style:function(){var g;return"height: "+(((g=h.height)==null?void 0:g.call(h))||"800px")+";"}},h.content()))},"ih");var EeC=_.uz(["https://portraits.google.com"]),geX=_.uz(["https://portraits.google.com/kimscott_vidcontexttests"]),ZZI=_.uz(["https://labs-characters.teams.x20web.corp.google.com"]),Mjc=_.BR(EeC),WcI=_.BR(geX),pXI=_.BR(ZZI),uax=_.O(function(h){var E=h.usePlayerHeight;var g=h.isPersistentPanel;var Z=_.J("enable_creator_chatbots_extension_dev_server"),M=document.createElement("iframe"),W=Z?pXI:WcI;_.MKx(M,1,W);M.className="ytprotoCreatorChatbotsAppLabsIframe";M.allow="microphone; clipboard-read; clipboard-write self "+
W;var z=function(){var I;return _.a(function(B){if(B.nextAddress==1)return B.yield(_.GF().resolve(_.IJ),2);(I=B.yieldResult)&&I.pauseVideo();_.SK(B)})},c=function(){var I,B,U;
return _.a(function(L){return L.nextAddress==1?L.yield(_.GF().resolve(_.IJ),2):(I=L.yieldResult)?L.return({video_id:(U=(B=I.getVideoData())==null?void 0:B.video_id)!=null?U:"",timestamp_sec:I.getCurrentTime().toString()}):L.return({})})};
window.addEventListener("message",function(I){var B,U,L,d,C,q;return _.a(function(w){if(w.nextAddress==1){B=Z?pXI.toString():Mjc.toString();if(I.origin!==B)return console.warn("Received message from untrusted origin:",I.origin),w.return();U=I.data;if(typeof U!=="object"||U===null||!U.action)return w.return();if(U.action==="pause")return w.yield(z(),0);if(U.action!=="getYouTubeContext"||!I.source)return w.jumpTo(0);L=I.source;d=L.postMessage;C=JSON;q=C.stringify;return w.yield(c(),7)}d.call(L,q.call(C,
{youTubeContext:w.yieldResult}),{targetOrigin:I.origin});return w.jumpTo(0)})});
_.z$("yt-page-type-changed",function(){if(g==null?0:g()){var I;((I=_.GF().resolve(_.p4).getCurrentPage())==null?void 0:I.pageSubtype)!=="channels"&&(I=document.getElementById("creator_chatbots-panel-persistent"))&&(I.style.display="none")}});
return _.R("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(E==null?0:E())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.R(_.hhp,{id:function(){return(g==null?0:g())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var I=Z?pXI.toString():Mjc.toString(),B;(B=M.contentWindow)==null||B.postMessage("ep_closed",I)},
header:function(){return _.R("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.R("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.R(_.cP,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.R(_.uA,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.EZ(window,_.nM(W.toString()),"_blank")}})},
content:function(){return M}}))},"jh");var GGJ,TAR,bQZ;GGJ=_.uz(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);TAR=_.BR(GGJ);bQZ=_.O(function(){var h=function(){_.AQC("creator_chatbots-panel",function(){return _.R(uax,{usePlayerHeight:!0})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.R("div",{class:"ytd-menu-renderer"},_.R(_.H4,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:h}},
icon:function(){return _.R(_.Ni,{icon:"SPARK"})}}))},"kh");
_.S6x=function(){var h;return _.a(function(E){return(h=document.getElementById("creator_chatbots-panel-persistent"))?(h.style.display==="none"&&(h.style.display="block"),E.jumpTo(0)):E.yield(new Promise(function(g){_.bA("ytd-app",function(Z){_.Ap({element:Z,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.R(uax,{isPersistentPanel:!0})});
g()})}),0)})};
_.K8();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
